1 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6 (frame_saved_regs_zalloc): Update.
7 (frame_saved_regs_register_unwind): Update.
8 (create_new_frame): Update.
9 (get_prev_frame): Update.
10 (frame_extra_info_zalloc): Update.
11 (deprecated_get_frame_saved_regs): Update.
12 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13 * cris-tdep.c: Update comment.
15 * somsolib.h: Fix function indentation.
16 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
17 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
18 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
19 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
20 * somsolib.c, inftarg.c: Remove assignment in if conditional.
22 * infrun.c (follow_fork): Use ISO C definition.
23 * expprint.c (print_subexp): Use xfree instead of free.
24 * charset.c: Include "gdb_string.h" instead of <string.h>.
25 (register_iconv_charsets): Use ISO C definition.
26 (host_charset, target_charset): Ditto.
27 * Makefile.in (charset.o): Update dependencies.
28 (mi-cmd-env.o): Update dependencies.
30 2003-01-08 Andrew Cagney <cagney@redhat.com>
32 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
35 2003-01-08 Andrew Cagney <ac131313@redhat.com>
37 * gdb_mbuild.sh: Add --keep option. When specified, keep the
38 build directories. Save edited gdb output in Mbuild.log. If a
39 build fails, remove any final GDB executable.
41 2003-01-08 Andrew Cagney <ac131313@redhat.com>
43 * gdb_mbuild.sh: Edit the output of `maint print architecture'
44 replacing hex constants with function names and stripping leading
45 file name directory prefixes.
47 2003-01-08 Andrew Cagney <cagney@redhat.com>
49 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
52 2003-01-08 David Carlton <carlton@math.stanford.edu>
54 * linespec.c (decode_line_1): Move code into decode_variable.
55 (decode_variable): New function.
57 2003-01-08 Andrew Cagney <ac131313@redhat.com>
59 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
61 2003-01-08 Andrew Cagney <cagney@redhat.com>
63 * cris-tdep.c (cris_frame_init_saved_regs): Use
64 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
66 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
67 (sh64_nofp_frame_init_saved_regs): Ditto.
68 (sh_fp_frame_init_saved_regs): Ditto.
69 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
70 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
71 * mcore-tdep.c (analyze_dummy_frame): Ditto.
72 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
74 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
76 * minsyms.c (lookup_minimal_symbol): Update comment.
77 (lookup_minimal_symbol_text): Update comment. Use the hash table.
78 (lookup_minimal_symbol_solib_trampoline): Likewise.
80 2003-01-08 Andrew Cagney <cagney@redhat.com>
82 * d10v-tdep.c (d10v_init_extra_frame_info): Use
85 * alpha-tdep.c: Use get_frame_extra_info.
86 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
87 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
88 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
89 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
91 * alpha-tdep.c: Use get_next_frame.
92 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
93 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
94 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
95 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
96 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
97 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
98 * xstormy16-tdep.c: Ditto.
100 2003-01-07 Andrew Cagney <cagney@redhat.com>
102 * alpha-tdep.c: Use get_frame_base.
103 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
104 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
105 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
106 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
107 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
108 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
109 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
110 * config/sparc/tm-sparc.h: Ditto.
112 2003-01-07 Andrew Cagney <cagney@redhat.com>
114 * frame.c (deprecated_get_frame_context): New function.
115 (deprecated_set_frame_context): New function.
116 * frame.h (deprecated_get_frame_context): Declare.
117 (deprecated_set_frame_context): Declare.
118 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
119 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
121 2003-01-07 Andrew Cagney <cagney@redhat.com>
123 * frame.c (deprecated_set_frame_next_hack): New function.
124 (deprecated_set_frame_prev_hack): New function.
125 * frame.h (deprecated_set_frame_next_hack): Declare.
126 (deprecated_set_frame_prev_hack): Declare.
127 * mcore-tdep.c (analyze_dummy_frame): Use
128 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
129 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
131 2003-01-07 David Carlton <carlton@math.stanford.edu>
133 * linespec.c (decode_line_1): Move code into decode_dollar.
134 (decode_dollar): New function.
136 2003-01-07 Andrew Cagney <cagney@redhat.com>
138 * arm-tdep.c (arm_init_extra_frame_info): Use
139 deprecated_update_frame_base_hack.
140 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
141 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
142 (fix_frame_pointer): Ditto.
143 (mn10300_analyze_prologue): Ditto.
145 2003-01-07 Andrew Cagney <cagney@redhat.com>
147 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
148 extra_info using frame_extra_info_zalloc.
149 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
150 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
151 (sh64_init_extra_frame_info): Ditto.
152 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
153 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
154 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
155 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
156 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
157 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
158 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
159 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
160 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
161 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
162 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
163 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
165 * mn10300-tdep.c (analyze_dummy_frame): Use
166 deprecated_set_frame_extra_info_hack.
167 * mcore-tdep.c (analyze_dummy_frame): Ditto.
169 2003-01-07 J. Brobecker <brobecker@gnat.com>
171 * mdebugread.c (parse_symbol): Skip stProc entries which storage
172 class is not scText. These do not define "real" procedures.
173 (parse_partial_symbols): Likewise.
175 2003-01-06 Michael Snyder <msnyder@redhat.com>
177 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
179 2003-01-06 Andrew Cagney <ac131313@redhat.com>
181 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
182 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
183 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
184 deprecated_frame_xmalloc_with_cleanup.
185 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
186 deprecated_frame_xmalloc.
187 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
188 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
190 2003-01-06 Andrew Cagney <cagney@redhat.com>
192 * x86-64-linux-tdep.c: Include "osabi.h".
193 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
195 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
197 2003-01-06 Andrew Cagney <cagney@redhat.com>
199 * MAINTAINERS (Target Instruction Set Architectures): Update
200 arm-elf. Can be built with -Werror, has been multiarched.
202 * value.h (unpack_long): Make buffer parameter constant.
203 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
204 * scm-lang.h (scm_parse): Ditto.
205 * defs.h (extract_typed_address, extract_address): Ditto.
206 (extract_long_unsigned_integer): Ditto.
207 * inferior.h (unsigned_pointer_to_address): Ditto.
208 (signed_pointer_to_address): Ditto.
209 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
210 * gdbarch.h, gdbarch.c: Regenerate.
211 * findvar.c (extract_long_unsigned_integer): Update.
212 (extract_address): Update.
213 (extract_typed_address): Update.
214 (unsigned_pointer_to_address): Update.
215 * values.c (unpack_long): Update.
216 (unpack_double): Update.
217 (unpack_pointer): Update.
218 (unpack_field_as_long): Update.
219 * d10v-tdep.c (d10v_pointer_to_address): Update.
220 * avr-tdep.c (avr_pointer_to_address): Update.
221 * scm-lang.c (scm_unpack): Update.
222 * findvar.c (signed_pointer_to_address): Update.
224 2003-01-06 Michal Ludvig <mludvig@suse.cz>
226 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
227 since it is in i386-tdep.c.
229 2003-01-06 J. Brobecker <brobecker@gnat.com>
231 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
232 failure introduced in the previous change.
234 2003-01-05 Michael Chastain <mec@shout.net>
236 * README: Remove references to deleted remote-*.c files:
237 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
238 remote-nrom.c, remote-os9k.c, remote-udi.c.
240 2003-01-05 Mark Kettenis <kettenis@gnu.org>
242 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
243 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
244 i386_get_longjmp_target.
246 2003-01-05 Andrew Cagney <ac131313@redhat.com>
248 * arm-tdep.c (prologue_cache): Change to a pointer.
249 (_initialize_arm_tdep): Allocate prologue_cache.
250 (check_prologue_cache): Update.
251 (save_prologue_cache): Update.
252 (arm_gdbarch_init): Update.
254 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
256 * stabsread.c (update_method_name_from_physname): Call complaint()
259 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
261 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
262 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
263 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
265 * blockframe.c: Include "gdbcmd.h" and "command.h".
266 (backtrace_below_main): New variable.
267 (file_frame_chain_valid, func_frame_chain_valid)
268 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
269 (generic_func_frame_chain_valid): Remove functions.
270 (frame_chain_valid, do_flush_frames_sfunc): New functions.
271 (_initialize_blockframe): New function.
272 * Makefile.in (blockframe.o): Update dependencies.
273 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
274 comment. Call frame_chain_valid ().
275 * frame.h: Remove old prototypes. Add prototype for
276 frame_chain_valid and update comments to match.
277 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
279 * gdbarch.h: Regenerated.
280 * gdbarch.c: Regenerated.
282 * alpha-tdep.c (alpha_gdbarch_init): Don't call
283 set_gdbarch_frame_chain_valid.
284 * avr-tdep.c (avr_gdbarch_init): Likewise.
285 * cris-tdep.c (cris_gdbarch_init): Likewise.
286 * frv-tdep.c (frv_gdbarch_init): Likewise.
287 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
288 * i386-tdep.c (i386_svr4_init_abi): Likewise.
289 (i386_nw_init_abi): Likewise.
290 (i386_gdbarch_init): Likewise.
291 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
293 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
294 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
295 * mips-tdep.c (mips_gdbarch_init): Likewise.
296 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
297 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
298 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
299 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
300 * s390-tdep.c (s390_gdbarch_init): Likewise.
301 * sh-tdep.c (sh_gdbarch_init): Likewise.
302 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
303 * v850-tdep.c (v850_gdbarch_init): Likewise.
304 * vax-tdep.c (vax_gdbarch_init): Likewise.
305 * x86-64-tdep.c (x86_64_init_abi): Likewise.
307 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
308 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
309 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
310 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
311 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
312 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
313 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
314 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
316 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
318 * Makefile.in (acconfig_h): Remove incorrect macro.
320 (osabi.o): Update dependencies.
321 * configure.tgt: Set gdb_osabi based on target triplet.
322 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
323 * configure: Regenerated.
324 * config.in: Regenerated.
325 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
326 (GDB_OSABI_DEFAULT): Define if not already defined.
327 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
328 (set_osabi_string): New variables.
329 (gdbarch_register_osabi): Add new OS ABI to
330 gdb_osabi_available_names.
331 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
332 (set_osabi, show_osabi): New functions.
333 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
335 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
337 * arch-utils.c (gdbarch_info_init): Set osabi to
338 GDB_OSABI_UNINITIALIZED.
339 * gdbarch.sh: Add osabi to struct gdbarch and to struct
340 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
341 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
342 * gdbarch.c: Regenerated.
343 * gdbarch.h: Regenerated.
344 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
346 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
347 * osabi.h (enum gdb_osabi): Move to defs.h.
348 (gdbarch_init_osabi): Update prototype.
349 * defs.h (enum gdb_osabi): Moved here.
350 * Makefile.in: Update dependencies.
352 * alpha-tdep.h: Don't include "osabi.h".
353 (struct gdbarch_tdep): Remove osabi member.
354 * alpha-tdep.c: Include "osabi.h".
355 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
356 iterate over arches. Update call to gdbarch_init_osabi.
357 (alpha_dump_tdep): Don't dump osabi.
358 * alpha-linux-tdep.c: Include "osabi.h".
359 * alpha-osf1-tdep.c: Include "osabi.h".
360 * alphafbsd-tdep.c: Include "osabi.h".
361 * alphanbsd-tdep.c: Include "osabi.h".
363 * arm-tdep.h: Don't include "osabi.h".
364 (struct gdbarch_tdep): Remove osabi member.
365 * arm-tdep.c: Include "osabi.h".
366 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
367 iterate over arches. Update call to gdbarch_init_osabi.
368 (arm_dump_tdep): Don't dump osabi.
369 * arm-linux-tdep.c: Include "osabi.h".
370 * armnbsd-tdep.c: Include "osabi.h".
372 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
373 Update call to gdbarch_init_osabi.
375 * i386-tdep.h: Don't include "osabi.h".
376 (struct gdbarch_tdep): Remove osabi member.
377 * i386-tdep.c: Include "osabi.h".
378 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
379 iterate over arches. Update call to gdbarch_init_osabi.
380 (i386_dump_tdep): Don't dump osabi.
381 * i386-linux-tdep.c: Include "osabi.h".
382 * i386-sol2-tdep.c: Include "osabi.h".
383 * i386bsd-tdep.c: Include "osabi.h".
384 * i386gnu-tdep.c: Include "osabi.h".
385 * i386ly-tdep.c: Include "osabi.h".
386 * i386nbsd-tdep.c: Include "osabi.h".
387 * i386obsd-tdep.c: Include "osabi.h".
389 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
390 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
391 check osabi when iterating over arches. Update call to
393 (mips_dump_tdep): Don't dump osabi.
395 * ns32k-tdep.h: Don't include "osabi.h".
396 (struct gdbarch_tdep): Remove.
397 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
398 gdbarch_lookup_osabi. Don't iterate over arches. Don't
399 allocate tdep. Update call to gdbarch_init_osabi.
400 (ns32k_dump_tdep): Remove.
401 (_initialize_ns32k_tdep): Update call to gdbarch_register.
402 * ns32knbsd-tdep.c: Include "osabi.h".
404 * ppc-tdep.h: Don't include "osabi.h".
405 (struct gdbarch_tdep): Remove osabi member.
406 * rs6000-tdep.c: Include "osabi.h".
407 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
408 osabi when iterating over arches. Update call to
410 (rs6000_dump_tdep): Don't dump osabi.
411 * ppc-linux-tdep.c: Include "osabi.h".
412 * ppcnbsd-tdep.c: Include "osabi.h".
414 * sh-tdep.h: Don't include "osabi.h".
415 (struct gdbarch_tdep): Remove osabi member.
416 * sh-tdep.c: Include "osabi.h".
417 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
418 iterate over arches. Update call to gdbarch_init_osabi.
419 (sh_dump_tdep): Don't dump osabi.
420 * shnbsd-tdep.c: Include "osabi.h".
422 * sparc-tdep.c: Include "osabi.h".
423 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
424 iterate over arches. Update call to gdbarch_init_osabi.
425 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
428 * vax-tdep.h: Don't include "osabi.h".
429 (struct gdbarch_tdep): Remove.
430 * vax-tdep.c: Include "osabi.h".
431 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
432 iterate over arches. Don't allocate tdep. Update call
433 to gdbarch_init_osabi.
434 (vax_dump_tdep): Remove.
435 (_initialize_vax_tdep): Update call to gdbarch_register.
437 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
439 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
441 (breakpoint_re_set_one): Don't fetch the value for a disabled
444 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
446 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
447 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
448 (COERCE_FLOAT_TO_DOUBLE): Remove.
449 * gdbarch.c: Regenerate.
450 * gdbarch.h: Regenerate.
451 * Makefile.in: Remove value_h from gdbarch_h.
452 * valops.c (coerce_float_to_double): New variable.
453 (default_coerce_float_to_double): Remove.
454 (standard_coerce_float_to_double): Remove.
455 (value_arg_coerce): Use coerce_float_to_double.
456 (_initialize_valops): Add "set coerce-float-to-double".
457 * value.h (default_coerce_float_to_double): Remove prototype.
458 (standard_coerce_float_to_double): Remove prototype.
460 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
462 * mdebugread.c (parse_symbol): Likewise.
463 * stabsread.c (define_symbol): Mark all functions as prototyped.
465 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
466 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
467 set_gdbarch_coerce_float_to_double.
468 * arm-tdep.c (arm_gdbarch_init): Likewise.
469 * frv-tdep.c (frv_gdbarch_init): Likewise.
470 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
471 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
472 * mips-tdep.c (mips_gdbarch_init): Likewise.
473 (mips_coerce_float_to_double): Remove.
474 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
475 (rs6000_coerce_float_to_double): Remove.
476 * s390-tdep.c (s390_gdbarch_init): Likewise.
477 * sh-tdep.c (sh_gdbarch_init): Likewise.
478 (sh_coerce_float_to_double): Remove.
479 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
480 (sparc_coerce_float_to_double): Remove.
481 * v850-tdep.c (v850_gdbarch_init): Likewise.
482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
483 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
484 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
485 (hppa_coerce_float_to_double): Remove prototype.
486 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
488 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
490 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
492 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
494 Suggested by Stewart Brown <sb24@avaya.com>:
495 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
496 in recursive calls. Handle TYPE_CODE_TYPEDEF.
497 (c_type_print_varspec_suffix): Likewise.
499 2003-01-04 Mark Kettenis <kettenis@gnu.org>
501 * configure.in: Don't set and AC_SUBST SUBDIRS.
502 * configure: Regenerated.
504 * configure.in: Remove code dealing with shared libraries.
505 * Makefile.in: Remove HLDFLAGS and HLDENV.
506 * configure: Regenerated.
508 2003-01-04 Andrew Cagney <ac131313@redhat.com>
510 * frame.c (deprecated_frame_xmalloc): New function.
511 (deprecated_set_frame_saved_regs_hack): New function.
512 (deprecated_set_frame_extra_info_hack): New function.
513 * frame.h (deprecated_frame_xmalloc): Declare.
514 (deprecated_set_frame_saved_regs_hack): Declare.
515 (deprecated_set_frame_extra_info_hack): Declare.
517 2003-01-04 Mark Kettenis <kettenis@gnu.org>
519 * configure.in: Move code that provides the --enable-gdbtk option
520 right after the code that handles the --enable-tui option, and
522 * configure: Regenerated.
524 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
525 AC_CHECK_FUNCS and remove the old check for pread64.
526 * acinclude.m4 (AC_GNU_SOURCE): New macro.
527 * acconfig.h (_GNU_SOURCE): Add.
528 (HAVE_PREAD64): Remove.
529 * configure, aclocal.m4, config.in: Regenerated.
531 2003-01-03 Andrew Cagney <ac131313@redhat.com>
533 * alpha-tdep.c: Use get_frame_saved_regs.
534 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
535 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
536 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
537 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
538 * vax-tdep.c, xstormy16-tdep.c: Ditto.
540 2003-01-03 Mark Kettenis <kettenis@gnu.org>
542 * configure.in: Remove all use of the SUBDIRS variable; add
543 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
544 code providing the --enable-multi-ice option, and move it right in
545 front of the code that checks whether gdbserver is supported.
547 * configure: Regenerated.
548 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
551 2003-01-03 Andrew Cagney <cagney@redhat.com>
553 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
554 * avr-tdep.c, cris-tdep.c: Ditto.
555 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
556 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
558 2003-01-03 Mark Kettenis <kettenis@gnu.org>
560 * configure.in: Remove --enable-netrom option.
561 * configure: Regenerated.
563 2003-01-03 Mark Kettenis <kettenis@gnu.org>
565 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
566 declaration for `struct re_pattern_buffer' instead.
567 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
569 2003-01-03 J. Brobecker <brobecker@gnat.com>
571 * mdebugread.c (parse_symbol): Count until the stEnd matching
574 2003-01-02 Mark Kettenis <kettenis@gnu.org>
576 * configure.in: Remove --with-cpu option.
577 subscripts. Remove evil changequotes here.
578 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
579 * config.in, configure: Regenerated.
581 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
582 * configure.in: Cleanup section that sources GDB and BFD configure
583 subscripts. Remove evil changequotes here.
584 * config.in, configure: Regenerated.
586 2003-01-02 Andrew Cagney <ac131313@redhat.com>
588 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
589 frame accessor methods.
590 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
591 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
592 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
593 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
594 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
595 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
598 2003-01-02 Mark Kettenis <kettenis@gnu.org>
600 * configure.in: Remove UI_OUT configuration code.
601 * ada-lang.c: Update assuming UI_OUT is always true.
602 * Makefile.in (UIOUT_CFLAGS): Remove.
603 * configure: Regenerated.
604 * TODO: Remove blurb about elimination of -DUI_OUT.
606 * configure.in: Move code that provides the --enable-gdbcli,
607 --enable-gdbmi options right before the code that handles the
608 --enable-tui option. Polish a bit.
609 * configure: Regenerated.
611 * configure.in: Rewrite check for GNU regex and the
612 --without-included regex option, and move it into the "Checks for
613 library functions" section. This makes us use the system regex
614 again by default on systems with version 2 of the GNU C library.
615 This was apparently broken.
616 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
617 * acconfig.h (USE_INCLUDED_REGEX): Remove.
618 * config.in, configure: Regenerated.
620 * configure.in: Move code that provides the --enable-tui option
621 before the "Checks for libraries" section. Polish the code
622 somewhat and set need_curses to yes if we build the TUI. Rewrite
623 code that looks for a library providing termcap functionality to
624 match more closely what's done in the Readline library, and move
625 it into to the "Checks for libraries" section.
626 * configure: Regenerated.
627 * Makefile.in (TERMCAP): Remove variable.
628 * config/i386/go32.mh (TERMCAP): Remove variable.
630 2003-01-02 Andrew Cagney <ac131313@redhat.com>
632 * MAINTAINERS: Mention gdb_mbuild.sh.
633 * gdb_mbuild.sh: Rewrite.
635 2003-01-02 Mark Kettenis <kettenis@gnu.org>
637 * configure.in: Fix typo in last change.
638 * config.in, configure: Regenerated.
640 2003-01-02 Andrew Cagney <ac131313@redhat.com>
642 * valarith.c (value_binop): Delete obsolete code and comments.
643 * configure.host: Ditto.
644 * buildsym.h (make_blockvector): Ditto.
645 * buildsym.c (make_blockvector): Ditto.
646 * defs.h (enum language): Ditto.
647 (chill_demangle): Ditto.
648 * elfread.c (elf_symtab_read): Ditto.
649 * dwarfread.c (CHILL_PRODUCER): Ditto.
650 (set_cu_language): Ditto.
651 (handle_producer): Ditto.
652 * expprint.c (print_subexp): Ditto.
653 * gdbtypes.c (chill_varying_type): Ditto.
654 * gdbtypes.h (builtin_type_chill_bool): Ditto.
655 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
656 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
657 (chill_varying_type): Ditto.
658 * language.h (_LANG_chill): Ditto.
659 * language.c (binop_result_type, integral_type): Ditto.
660 (character_type, string_type, structured_type): Ditto.
661 (lang_bool_type, binop_type_check): Ditto.
662 * stabsread.h (os9k_stabs): Ditto.
663 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
664 (define_symbol, read_type, read_struct_fields): Ditto.
665 (read_array_type, read_enum_type, read_huge_number): Ditto.
666 (read_range_type, start_stabs): Ditto.
667 * symfile.c (init_filename_language_table): Ditto.
668 (add_psymbol_with_dem_name_to_list): Ditto.
669 * symtab.c (symbol_init_language_specific): Ditto.
670 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
671 * symtab.h (struct general_symbol_info): Ditto.
672 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
673 * typeprint.c (typedef_print): Ditto.
674 * utils.c (fprintf_symbol_filtered): Ditto.
675 * valops.c (value_cast, search_struct_field, value_slice): Delete
677 (varying_to_slice): Delete function.
678 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
679 (varying_to_slice): Delete declaration.
680 * MAINTAINERS: Update.
682 2003-01-02 Mark Kettenis <kettenis@gnu.org>
684 * configure.in: Reorganize "Checks for library functions section"
685 a bit. Remove check for `btowc' and `isascii' functions.
686 * configure: Regenerated.
688 * acconfig.h (_MSE_INT_H): Remove.
689 * configure.in: Create "Checks for header files" section, and move
690 appropriate tests there. Don't check for objlist.h, wchar.h,
691 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
692 misdetection fix. Also add "Checks for types", "Checks for
693 compiler characteristics" and "Checks for library functions"
695 * config.in, configure: Regenerated.
697 * configure.in: Create "Checks for programs" section, and move
698 appropriate tests there.
700 2003-01-01 Mark Kettenis <kettenis@gnu.org>
702 * configure.in: Create "Checks for libraries" section, and move
703 appropriate tests there. Cleanup check for wctype in libw. Use
704 AC_SEARCH_LIBS to see whether we need libsocket.
705 * configure: Regenerated.
707 2002-12-31 Mark Kettenis <kettenis@gnu.org>
709 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
710 * config.in, configure: Regenerated.
712 2002-12-31 Mark Kettenis <kettenis@gnu.org>
714 * gdb_dirent.h: Cleanup and update code to match the example in
716 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
717 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
718 * configure: Regenerated.
720 2002-12-30 Adam Fedor <fedor@gnu.org>
722 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
723 (yylex): Initialize c to avoid uninitialized warning.
725 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
727 * doc/fdl.texi: Revert the last change.
729 2002-12-29 Mark Kettenis <kettenis@gnu.org>
731 * tracepoint.c (ISATTY): Removed.
733 2002-12-26 J. Brobecker <brobecker@gnat.com>
735 Continuing work to convert the hppa targets to multiarch partil.
737 * hppa-tdep.c: Add some missing forward declarations.
738 (frameless_function_invocation): Prefix the function name
739 by "hppa_" to avoid polluting the namespace. Update all calls
740 to use the new function name.
741 (saved_pc_after_call): Ditto.
742 (init_extra_frame_info): Ditto.
743 (frame_chain): Ditto.
744 (push_dummy_frame): Ditto.
745 (target_read_pc): Ditto.
746 (target_write_pc): Ditto.
747 (in_solib_call_trampoline): Ditto.
748 (in_solib_return_trampoline): Ditto.
749 (skip_trampoline_code): Ditto.
750 (hppa_read_fp): New function, renamed from target_read_fp.
751 (hppa_target_read_fp): New function, using hppa_read_fp.
752 This function conforms to the function profile for the
753 READ_FP gdbarch method.
754 (hppa_extract_struct_value_address): New function, extracted
755 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
757 (hppa_frame_num_args): New function.
758 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
760 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
761 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
762 for the switch to multiarch partial.
763 Update some of the macros definitions to match some changes
764 described above in the name of the function they are calling.
765 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
766 not be straightforward to convert. Do now wrap it inside
767 "#if !... #endif" to remember that this macro has still not
769 (FIX_CALL_DUMMY): Likewise.
771 2002-12-26 J. Brobecker <brobecker@gnat.com>
773 Continuing work to convert the hppa targets to multiarch partial.
775 * hppa-tdep.c (hppa_register_raw_size): New function replacing
776 the body of macro REGISTER_RAW_SIZE.
777 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
778 config/pa/tm-hppah.h. These functions will be used to initialize
779 the gdbarch structure.
780 (hppa_hpux_pc_in_sigtramp): New function.
781 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
782 (hppa_hpux_frame_base_before_sigtramp): New function.
783 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
784 Add gdbcore.h #include.
785 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
786 of this gdbarch-eligible macro to a call to the new associated
788 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
789 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
790 into a call to the new associated function.
791 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
792 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
793 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
795 2002-12-24 David Carlton <carlton@math.stanford.edu>
797 * config/sparc/tm-sparc.h: Delete duplicate definition of
798 DEPRECATED_PC_IN_CALL_DUMMY.
800 2002-12-24 Kevin Buettner <kevinb@redhat.com>
802 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
804 * configure.tgt: Recognize mips64*-*-linux*.
805 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
806 (supply_32_bit_reg): New function.
807 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
808 (fill_gregset): Use regcache_collect() instead of
809 deprecated_registers[].
810 (register_addr): Change name to mips_linux_register_addr().
811 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
812 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
813 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
814 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
815 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
816 (MIPS64_LINUX_JB_PC): New defines.
817 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
818 (mips64_elf_fpregset_t): New typedefs.
819 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
820 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
821 (mips64_linux_register_addr, set_mips_linux_register_addr)
822 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
823 (init_register_addr_data)
825 (fetch_core_registers): Add support for core file formats with 64-bit
827 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
828 (register_addr_data): New static global variable.
829 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
830 gdbarch_register_osabi() for each MIPS machine.
831 * config/mips/linux64.mt: New file.
832 * config/mips/tm-linux64.h: New file.
834 2002-12-23 Adam Fedor <fedor@gnu.org>
836 * maint.c (maintenance_demangle): Add switch to demangle
837 ObjC language symbols as well.
839 2002-12-23 Adam Fedor <fedor@gnu.org>
841 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
842 last argument from complaint function call.
844 2002-12-23 Kevin Buettner <kevinb@redhat.com>
846 * exec.c (print_section_info): Add FIXME comments regarding format
849 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
851 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
852 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
854 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
856 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
858 2002-12-23 David Carlton <carlton@math.stanford.edu>
860 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
861 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
862 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
863 information associated to a minsym, not lookup_symbol.
865 2002-12-21 Mark Kettenis <kettenis@gnu.org>
867 * x86-64-tdep.h (x86_64_init_abi): New prototype.
868 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
869 (x86_64_init_abi): Make non-static. Set number of pseudo
871 (x86_64_gdbarch_init): Remove function.
872 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
873 Remove code dealing with dissambly.
874 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
875 (_initialize_x86_64_linux_tdep): New function.
876 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
879 2002-12-14 Mark Kettenis <kettenis@gnu.org>
881 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
882 (struct gdb_osabi_handler): Remove member `arch'. Add member
884 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
885 construct a `struct bfd_arch_info' and store it in the `struct
886 gdb_osabi_handler' that is created.
887 (gdbarch_init_osabi): Check for compatibility based on machine
888 type and architecture.
889 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
891 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
892 second argument in call to gdbarch_register_osabi.
893 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
894 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
895 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
896 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
897 * arm-tdep.c (_initialize_arm_tdep): Likewise.
898 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
899 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
900 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
901 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
902 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
903 * i386-tdep.c (_initialize_i386_tdep): Likewise.
904 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
905 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
906 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
907 _initialize_i386bsd_tdep and updated likewise.
908 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
909 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
910 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
911 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
912 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
913 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
914 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
915 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
916 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
917 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
919 2002-12-20 Kevin Buettner <kevinb@redhat.com>
921 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
922 DT_MIPS_RLD_MAP case for 64-bit targets.
924 2002-12-20 Kevin Buettner <kevinb@redhat.com>
926 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
927 ``temp_saved_regs'', not the pointer or other storage contiguous
930 2002-12-20 Kevin Buettner <kevinb@redhat.com>
932 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
933 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
934 (mips_linux_get_longjmp_target): Delete declarations.
935 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
936 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
937 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
938 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
939 (mips_linux_get_longjmp_target)
940 (mips_linux_svr4_fetch_link_map_offsets): Make static.
941 (mips_linux_init_abi): New function.
942 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
944 2002-12-19 Keith Seitz <keiths@redhat.com>
946 patch committed by Elena Zannoni <ezannoni@redhat.com>
947 * thread.c (do_captured_list_thread_ids): Call prune_threads and
948 target_find_new_threads. Fix for PR mi/669.
950 2002-12-19 David Carlton <carlton@math.stanford.edu>
952 * linespec.c (decode_line_1): Move code into decode_all_digits.
953 (decode_all_digits): New function.
955 2002-12-19 Kevin Buettner <kevinb@redhat.com>
957 * exec.c (print_section_info): Select a format string to use with
958 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
960 2002-12-18 Andrew Cagney <ac131313@redhat.com>
962 * frame.c (deprecated_update_current_frame_pc_hack): Replace
963 deprecated_update_current_frame_pc_hack.
964 (deprecated_update_frame_base_hack): New function.
965 * frame.h (deprecated_update_frame_pc_hack): Replace
966 (deprecated_update_frame_base_hack): Declare.
967 * infrun.c (normal_stop): Update.
969 2002-12-18 Andrew Cagney <ac131313@redhat.com>
971 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
972 frame_extra_info_zalloc.
973 (rs6000_frame_args_address): Use get_frame_extra_info.
974 (frame_get_saved_regs): Use get_frame_saved_regs.
975 (frame_initial_stack_address): Use get_frame_saved_regs and
976 get_frame_extra_info.
977 (frame_initial_stack_address): Use get_frame_extra_info.
979 2002-12-17 Kevin Buettner <kevinb@redhat.com>
981 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
983 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
984 checks for r3900_regnames[].
986 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
988 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
990 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
992 2002-12-17 David Carlton <carlton@math.stanford.edu>
994 * symtab.c (lookup_partial_symbol): Don't search past the end of
997 2002-12-17 Andrew Cagney <ac131313@redhat.com>
999 * stack.c (frame_info): Use get_frame_saved_regs.
1000 * breakpoint.c (until_break_command): Use get_frame_pc.
1002 2002-12-16 Kevin Buettner <kevinb@redhat.com>
1004 * buildsym.c (block_end_complaint, anon_block_end_complaint)
1005 (innerblock_complaint, innerblock_anon_complaint)
1006 (blockvector_complaint): Delete deprecated complaint structs.
1007 (finish_block, make_blockvector, end_symtab): Replace calls
1008 to complain() with calls to complaint().
1009 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
1010 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
1011 (unexpected_type_complaint, bad_sclass_complaint)
1012 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
1013 Delete deprecated complaint structs.
1014 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
1015 Replace calls to complain() with calls to complaint().
1016 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
1017 (unknown_symtype_complaint, unknown_symchar_complaint)
1018 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
1019 (lbrac_mismatch_complaint, repeated_header_complaint)
1020 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
1021 Delete deprecated complaint structs.
1022 (unknown_symtype_complaint, lbrac_mismatch_complaint)
1023 (repeated_header_complaint)
1024 (function_outside_compiliation_unit_complaint): New functions.
1025 (add_old_header_file, find_corresponding_bincl_psymtab)
1026 (set_namestring, find_stab_function_addr, read_dbx_symtab)
1027 (process_one_symbol): Replace calls to complain() with, possibly
1028 indirect, calls to complaint().
1029 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
1030 (unknown_attribute_form, unknown_attribute_length)
1031 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
1032 (const_ignored, botched_modified_type, op_deref2, op_deref4)
1033 (basereg_not_handled, dup_user_type_allocation)
1034 (dup_user_type_definition, missing_tag, bad_array_element_type)
1035 (subscript_data_items, unhandled_array_subscript_format)
1036 (unknown_array_subscript_format, not_row_major)
1037 (missing_at_name): Delete deprecated complaint structs.
1038 (bad_die_ref_complaint, unknown_attribute_form_complaint)
1039 (dup_user_type_definition_complaint)
1040 (bad_array_element_type_complaint): New functions.
1041 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
1042 (decode_subscript_data_item, dwarf_read_array_type)
1043 (read_tag_string_type, read_subroutine_type, read_func_scope)
1044 (locval, scan_partial_symbols, decode_modified_type)
1045 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1046 (attribute_size): Replace calls to complain() with, possibly
1047 indirect, calls to complaint().
1048 * elfread.c (section_info_complaint, section_info_dup_complaint)
1049 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1050 Delete deprecated complaint structs.
1051 (elf_symtab_read, elfstab_offset_sections): Replace calls to
1052 complain() with calls to complaint().
1053 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1055 (stub_noname_complaint): New function.
1056 (check_typedef, add_mangled_type): Replace calls to complain()
1057 with calls to complaint().
1058 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1059 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1060 (hpread_unhandled_type_complaint, hpread_struct_complaint)
1061 (hpread_array_complaint, hpread_type_lookup_complaint)
1062 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1063 (hpread_unhandled_common_complaint)
1064 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1065 struct definitions and declarations.
1066 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1067 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1068 Replace calls to complain() with, possibly indirect, calls to
1070 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1072 * mdebugread.c (bad_file_number_complaint, index_complaint)
1073 (aux_index_complaint, block_index_complaint)
1074 (unknown_ext_complaint, unknown_sym_complaint)
1075 (unknown_st_complaint, block_overflow_complaint)
1076 (basic_type_complaint, unknown_type_qual_complaint)
1077 (array_index_type_complaint, bad_tag_guess_complaint)
1078 (block_member_complaint, stEnd_complaint)
1079 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1080 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1081 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1082 (bad_continued_complaint, bad_rfd_entry_complaint)
1083 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1084 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1085 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1086 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1088 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1089 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1090 (unexpected_type_code_complaint)
1091 (function_outside_compilation_unit_complaint): New functions.
1092 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1093 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1094 Replace calls to complain() with, possibly indirect calls to
1096 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1097 Delete deprecated complaint structs.
1098 (lookup__objc_class, lookup_child_selector): Replace complain()
1100 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1102 (vx_lookup_symbol): Replace complain() with complaint().
1103 * stabsread.c (invalid_cpp_abbrev_complaint)
1104 (invalid_cpp_type_complaint, member_fn_complaint)
1105 (const_vol_complaint, error_type_complaint)
1106 (invalid_member_complaint, range_type_base_complaint)
1107 (reg_value_complaint, vtbl_notfound_complaint)
1108 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1109 (unresolved_sym_chain_complaint, stabs_general_complaint)
1110 (lrs_general_complaint, multiply_defined_struct): Delete
1111 deprecated complaint structs.
1112 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1113 (stabs_general_complaint, lrs_general_complaint)
1114 (msg_unknown_complaint): New functions.
1115 (dbx_lookup_type, read_cfront_baseclasses)
1116 (read_cfront_member_functions, resolve_symbol_reference)
1117 (define_symbol, resolve_live_range, add_live_range, read_type)
1118 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1119 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1120 (read_cfront_static_fields, attach_fields_to_type)
1121 (complain_about_struct_wipeout, read_range_type)
1122 (common_block_start, common_block_end, cleanup_undefined_types)
1123 (scan_file_globals): Replace complain() with complaint().
1124 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1125 Delete deprecated complaint struct declarations.
1126 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1127 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1128 (bf_not_found_complaint, ef_complaint, eb_complaint)
1129 (function_outside_compilation_unit_complaint): New functions.
1130 (record_include_begin, record_include_end, enter_line_range)
1131 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1132 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1133 complain() with complaint().
1135 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1137 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1138 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1139 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1140 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1141 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1142 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1143 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1144 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1145 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1146 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1147 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1148 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1149 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1150 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1151 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1152 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1153 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1154 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1155 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1156 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1157 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1158 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1159 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1160 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1161 * config/m88k/xm-dgux.h: Delete.
1162 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1163 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1164 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1165 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1166 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1167 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1168 * ch-valprint.c: Delete.
1170 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1172 * infrun.c (handle_inferior_event): Rearrange code to resume if
1173 no catchpoint triggers for an event.
1175 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1177 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1178 and TARGET_WAITKIND_VFORKED cases.
1180 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1182 * infrun.c (handle_inferior_event): Assume that catchpoints
1183 are not affected by DECR_PC_AFTER_BREAK.
1185 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1187 * target.c (update_current_target): Don't inherit DONT_USE.
1188 * target.h (struct target_ops): Remove DONT_USE.
1189 (target_next): Remove macro.
1191 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1193 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1195 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1197 * arm-tdep.c (convert_from_extended): New argument to hold the
1198 type of floating point result we want to convert to. Make input
1199 argument const. Fix all callers.
1200 (convert_to_extended): Similarly.
1201 (arm_extract_return_value): Now takes a regcache argument. Change
1202 code to use regcache accessor functions. Correctly extract
1203 smaller-than-word results on big-endian machines.
1204 (arm_store_return_value): Now takes a regcache argument. Change
1205 code to use regcache accessor functions. Correctly zero/sign extend
1206 smaller than word results before storing into r0.
1207 (arm_gdbarch_init): Register new-style extract_return_value and
1208 store_return_value functions.
1210 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1212 * thread-db.c (thread_from_lwp): Uniquify error msg.
1213 (lwp_from_thread): Ditto.
1214 (check_event): Ditto.
1215 (find_new_threads_callback): Ditto.
1216 (thread_db_pid_to_str): Ditto.
1218 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1220 * frame.h (get_frame_saved_regs): Declare.
1221 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1223 * frame.c (get_frame_saved_regs): New function.
1224 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1226 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1228 * frame.c (deprecated_update_current_frame_pc_hack): New
1230 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1231 * infrun.c (normal_stop): Use said function instead of directly
1232 modifying the frame's PC.
1234 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1236 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1238 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1240 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1241 config/mips/tm-irix6.h (NUM_REGS): Delete.
1242 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1243 (temp_saved_regs): Declare as a pointer rather than an array.
1244 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1245 that ``temp_saved_regs'' has storage allocated to it and that
1246 it's the correct size.
1248 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1250 * defs.h (init_last_source_visited): New prototype.
1252 * source.c (add_path): New function that adds to a specified path.
1253 (mod_path): Change to call add_path.
1254 (init_last_source_visited): New function to allow interfaces to
1255 initialize static variable: last_source_visited. Part of fix
1257 * Makefile.in: Add support for mi/mi-cmd-env.c.
1259 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1261 * frame.h (frame_id_unwind): Declare.
1262 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1264 (frame_id_unwind_ftype): Declare.
1265 * frame.c (frame_id_unwind): New function.
1266 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1267 (create_new_frame, get_prev_frame): Pass id_unwind to
1269 (frame_saved_regs_id_unwind): New function.
1270 (frame_saved_regs_id_unwind): New function.
1271 * dummy-frame.c (dummy_frame_id_unwind): New function.
1272 (struct dummy_frame): Add field id.
1273 (generic_push_dummy_frame): Initialize `id'.
1274 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1276 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1278 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1279 pass that to set_momentary_breakpoint. Move comments to where they
1281 * frame.h (set_current_frame): Delete declaration.
1282 * frame.c (set_current_frame): Delete function.
1284 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1286 * frame.c (frame_extra_info_zalloc): New function.
1287 * frame.h (frame_extra_info_zalloc): Declare.
1289 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1291 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1292 in the previous prototype change to set_momentary_breakpoint.
1294 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1296 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1298 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1299 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1300 (stop_stepping): Remove outdated check for child vfork events.
1302 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1304 * GDB 5.3 released from gdb_5_3-branch.
1306 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1308 * corelow.c (init_core_ops): Delete references to to_require_attach
1309 and to_require_detach.
1310 * exec.c (init_exec_ops): Likewise.
1311 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1312 hppa_require_detach directly.
1313 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1314 * inftarg.c (child_detach): Remove.
1315 (child_detach_from_process): Rename to child_detach, remove
1316 after_fork argument.
1317 (child_attach): Remove.
1318 (child_attach_to_process): Rename to child_attach, remove after_fork
1320 (init_child_ops): Delete references to to_require_attach
1321 and to_require_detach.
1322 * infttrace.c (hppa_require_attach): Update comment.
1323 * target.c (cleanup_target, update_current_target)
1324 (init_dummy_target, setup_target_debug): Delete references to
1325 to_require_attach and to_require_detach.
1326 (find_default_require_detach, find_default_require_attach)
1327 (debug_to_require_attach, debug_to_require_detach): Remove
1329 * target.h (struct target_ops): Remove to_require_attach
1330 and to_require_detach.
1331 (target_require_attach, target_require_detach): Delete macros.
1332 (find_default_require_detach, find_default_require_attach): Delete
1334 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1336 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1338 * frame.c (get_frame_extra_info): New function.
1339 * frame.h (get_frame_extra_info): Declare.
1341 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1343 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1344 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1345 with `struct frame_id'.
1346 (set_longjmp_resume_breakpoint): Ditto.
1347 * infrun.c (handle_inferior_event): Update.
1348 * breakpoint.c (watch_command_1, until_break_command): Update.
1349 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1350 (handle_inferior_event, step_over_function): Update.
1351 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1352 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1353 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1354 * infcmd.c (finish_command, run_stack_dummy): Update.
1356 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1358 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1359 (dwarf2_non_const_array_bound_ignored)
1360 (dwarf2_missing_line_number_section)
1361 (dwarf2_statement_list_fits_in_line_number_section)
1362 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1363 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1364 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1365 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1366 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1367 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1368 (dwarf2_missing_member_fn_type_complaint)
1369 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1370 (dwarf2_const_value_length_mismatch)
1371 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1372 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1373 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1374 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1375 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1376 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1377 complaints using deprecated struct..
1378 (dwarf2_non_const_array_bound_ignored_complaint)
1379 (dwarf2_complex_location_expr_complaint)
1380 (dwarf2_unsupported_at_frame_base_complaint)
1381 (dwarf2_const_value_length_mismatch_complaint)
1382 (dwarf2_macros_too_long_complaint)
1383 (dwarf2_macro_malformed_definition_complaint)
1384 (dwarf2_invalid_attrib_class_complaint): New functions.
1385 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1386 (read_structure_scope, read_array_type, read_common_block)
1387 (read_tag_pointer_type, read_base_type, read_partial_die)
1388 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1389 (new_symbol, dwarf2_const_value, read_type_die)
1390 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1391 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1392 complain() with, possibly indirect, calls to complaint().
1394 2002-12-11 Andrew Cagney <cagney@redhat.com>
1396 * frame.c (deprecated_get_frame_saved_regs): Rename
1397 get_frame_saved_regs.
1398 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1399 * sparc-tdep.c: Update.
1400 * hppa-tdep.c: Update.
1401 * h8500-tdep.c: Update.
1403 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1405 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1406 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1407 ``char *'' for return and parameter types.
1408 * gdbarch.h, gdbarch.c: Regenerate.
1409 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1410 return type from ``char *'' to ``const char *''.
1411 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1414 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1416 * i386-tdep.c: Include "dummy-frame.h".
1417 (i386_frame_chain, i386_frame_saved_pc): Replace
1418 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1419 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1421 2002-12-10 Andrew Cagney <cagney@redhat.com>
1423 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1424 Change to a function with predicate.
1425 * gdbarch.h, gdbarch.c: Re-generate.
1426 * frame.c (get_prev_frame): Update. Test
1427 DEPRECATED_INIT_FRAME_PC_P.
1428 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1429 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1430 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1431 * alpha-tdep.c (alpha_gdbarch_init): Update.
1432 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1433 * mips-tdep.c (mips_gdbarch_init): Update.
1434 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1435 * arm-tdep.c: Update comments.
1436 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1437 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1438 * frv-tdep.c (frv_gdbarch_init): Ditto.
1439 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1440 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1441 * s390-tdep.c (s390_gdbarch_init): Ditto.
1442 * v850-tdep.c (v850_gdbarch_init): Ditto.
1443 * vax-tdep.c (vax_gdbarch_init): Ditto.
1444 * sh-tdep.c (sh_gdbarch_init): Ditto.
1445 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1447 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1449 * i386-tdep.c (i386_gdbarch_init): Ditto.
1450 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1451 * cris-tdep.c (cris_gdbarch_init): Ditto.
1452 * avr-tdep.c (avr_gdbarch_init): Ditto.
1453 * arm-tdep.c (arm_gdbarch_init): Ditto.
1454 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1455 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1457 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1459 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1461 * hppah-nat.c (saved_vfork_pid): Add.
1462 (child_post_follow_vfork): Remove.
1463 (child_follow_fork): New function.
1464 (child_wait): Call detach_breakpoints after receiving the child vfork.
1465 Call child_resume directly instead of going through resume ().
1466 Make sure we have the exec before reporting the vfork.
1467 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1468 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1469 (follow_fork): New function. Call target_follow_fork.
1470 (follow_inferior_reset_breakpoints): New function broken out from
1471 old follow_inferior_fork.
1472 (resume): Remove hack to follow exec after vfork.
1473 * inftarg.c (child_post_follow_vfork): Remove.
1474 (child_follow_fork): New function.
1475 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1476 * target.c (cleanup_target): Replace to_post_follow_vfork with
1478 (update_current_target): Likewise.
1479 (setup_target_debug): Likewise.
1480 (debug_to_post_follow_vfork): Remove.
1481 (debug_to_follow_fork): New function.
1482 * target.h (struct target_ops): Replace to_post_folow_vfork with
1484 (child_post_follow_vfork): Remove prototype.
1485 (child_follow_fork): Add prototype.
1486 (target_post_follow_vfork): Remove macro.
1487 (target_follow_fork): Add macro.
1489 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1491 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1492 (child_post_follow_vfork): Cancel pending exec event if we follow
1494 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1495 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1496 event at the following wait call if necessary.
1497 * infrun.c (follow_vfork): Don't follow_exec here.
1498 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1499 case about HP/UX 10.20. Remove code pushed down to
1500 hppah-nat.c:child_wait.
1501 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1502 vfork_in_flight is set.
1504 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1506 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1507 for the parent's fork event.
1508 * infrun.c (handle_inferior_event): Only expect one fork event.
1509 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1510 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1512 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1514 * PROBLEMS: Delete reference to PR gdb/725.
1516 * MAINTAINERS (gdb.c++): Add David Carlton.
1518 2002-12-09 David Carlton <carlton@math.stanford.edu>
1520 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1521 * cli/cli-cmds.c: Ditto.
1523 2002-12-09 Andrew Cagney <cagney@redhat.com>
1525 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1526 function address in <>.
1527 * gdbarch.c: Re-generate.
1529 2002-12-09 David Carlton <carlton@math.stanford.edu>
1531 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1533 2002-12-09 David Carlton <carlton@math.stanford.edu>
1535 * linespec.c (symtab_from_filename): New function.
1536 (decode_line_1): Move code into symtab_from_filename.
1538 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1540 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1542 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1544 * f-valprint.c (info_common_command): Use get_frame_pc.
1545 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1546 * ax-gdb.c (agent_command): Ditto.
1547 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1548 (rs6000_pop_frame): Ditto.
1549 (rs6000_frameless_function_invocation): Ditto.
1550 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1551 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1552 * macroscope.c (default_macro_scope): Ditto.
1553 * stack.c (print_frame_info_base): Ditto.
1554 (print_frame, frame_info, print_frame_label_vars): Ditto.
1555 (return_command, func_command, get_frame_language): Ditto.
1556 * infcmd.c (finish_command): Ditto.
1557 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1558 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1559 (break_at_finish_at_depth_command_1): Ditto.
1560 (break_at_finish_command_1): Ditto.
1561 (until_break_command, get_catch_sals): Ditto.
1562 * blockframe.c (func_frame_chain_valid): Ditto.
1563 (frameless_look_for_prologue): Ditto.
1564 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1566 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1568 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1569 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1571 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1573 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1575 * gdbarch.h, gdbarch.c: Re-generate.
1576 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1577 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1579 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1580 declaration to a function returning a CORE_ADDR.
1581 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1582 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1583 (init_frame_pc_default): Ditto.
1584 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1585 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1586 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1587 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1588 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1589 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1591 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1592 to init_frame_pc_noop.
1593 (i386_interix_init_frame_pc): Delete function.
1594 * z8k-tdep.c (init_frame_pc): Delete function.
1595 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1596 (INIT_FRAME_PC_FIRST): Ditto.
1597 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1598 (INIT_FRAME_PC_FIRST): Ditto.
1599 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1600 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1602 (INIT_FRAME_PC_FIRST): Convert to an expression.
1603 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1605 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1607 * blockframe.c: Use get_frame_base instead of directly accessing
1608 the `struct frame_info' member frame.
1609 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1610 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1612 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1614 * Makefile.in (readline_h): Define.
1615 (completer.o): Depend on readline_h.
1617 (event-top.o): Ditto.
1624 (tracepoint.o): Ditto.
1626 (cli-dump.o): Ditto.
1627 (tui-hooks.o): Ditto.
1630 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1632 More cleanup from import of readline 4.3.
1633 * completer.h (complete_line, readline_line_completion_function):
1635 (line_completion_function): Removed, not used outside of completer.c.
1636 * completer.c (readline_line_completion_function,
1637 complete_function, line_completion_function): Use const for first
1639 (line_completion_function): Make static.
1640 (filename_completer): filename_completion_function is now called
1641 rl_filename_completion_function
1642 * corelow.c: Include <readline/readline.h>.
1648 * top.c (init_main): No need to coerce
1649 readline_line_completion_function anymore.
1650 * cli/cli-dump.c: Include <readline/readline.h>.
1652 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1654 * stack.c (frame_info): Use get_prev_frame.
1655 * blockframe.c (frame_address_in_block): Ditto.
1656 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1657 (rs6000_frameless_function_invocation): Ditto.
1658 (rs6000_frame_saved_pc): Ditto.
1659 (rs6000_frame_chain): Ditto.
1660 * arch-utils.c (init_frame_pc_default): Ditto.
1662 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1664 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1665 Delete redundant definition.
1667 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1669 Import of readline 4.3:
1670 * cli/cli-cmds.c: Include readline/tilde.h.
1671 * cli/cli-setshow.c: Ditto.
1672 * defs.h: Don't declare tilde_expand anymore, since readline
1675 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1677 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1678 -Werror on this file.
1680 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1682 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1684 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1685 * gdbarch.c: Regenerate.
1687 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1689 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1690 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1691 provide a default value.
1692 * gdbarch.h, gdbarch.c: Regenerate.
1693 * frame.c (get_prev_frame): Update. Check
1694 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1695 * s390-tdep.c (s390_gdbarch_init): Update.
1696 * mips-tdep.c (mips_gdbarch_init): Update.
1697 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1698 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1699 * alpha-tdep.c (alpha_gdbarch_init): Update.
1701 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1703 * ia64-linux-nat.c: Include gdb_string.h.
1704 * alpha-nat.c: Ditto.
1705 * ppc-linux-nat.c: Ditto.
1706 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1707 Update dependencies.
1709 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1711 * gdbthread.h: Include "frame.h".
1712 (struct thread_info): Replace step_frame_address with
1714 * inferior.h: Include "frame.h".
1715 (step_frame_id): Replace external variable step_frame_address.
1716 * gdbthread.h (save_infrun_state): Replace step_frame_address
1717 parameter with step_frame_id parameter.
1718 (load_infrun_state): Ditto.
1719 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1720 * infcmd.c (step_frame_id, step_1, step_once): Update.
1721 * thread.c (load_infrun_state, save_infrun_state): Update.
1722 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1723 (handle_inferior_event, step_over_function): Update.
1724 (normal_stop, context_switch, restore_inferior_status): Update.
1725 (struct inferior_status): Replace step_frame_address with
1728 2002-12-05 David Carlton <carlton@math.stanford.edu>
1730 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1731 DW_TAG_member as well as a declaration as being a C++ static data
1733 (read_structure_scope): Combine tests for DW_TAG_member and
1736 2002-12-05 David Carlton <carlton@math.stanford.edu>
1738 * linespec.c (decode_compound): New function.
1739 (decode_line_1): Move code into decode_compound.
1741 2002-12-05 David Carlton <carlton@math.stanford.edu>
1743 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1745 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1746 the static block. See PR gdb/804.
1748 2002-12-05 David Carlton <carlton@math.stanford.edu>
1750 * symtab.c (lookup_symbol_aux_block): New function.
1751 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1753 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1755 * gdbarch.sh: Dump the predicate function and macro values.
1756 (read): Print error on standard error.
1757 * gdbarch.c: Regenerate.
1759 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1761 * Makefile.in (mips_tdep_h): Define.
1762 (mips-tdep.o): Add mips_tdep_h to dependency list.
1763 * mips-tdep.h: New file.
1764 * mips-tdep.c (mips-tdep.h): Include.
1765 (enum mips_abi): Move to mips-tdep.h.
1766 (mips_abi): New function.
1768 2002-12-04 David Carlton <carlton@math.stanford.edu>
1770 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1772 2002-12-04 David Carlton <carlton@math.stanford.edu>
1774 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1776 (lookup_symbol_aux_minsyms): New function.
1778 2002-12-04 J. Brobecker <brobecker@gnat.com>
1780 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1782 2002-12-04 J. Brobecker <brobecker@gnat.com>
1784 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1785 which is an obsolete macro name.
1787 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1789 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1790 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1792 2002-12-03 H.J. Lu (hjl@gnu.org)
1794 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1795 (create_breakpoints): Make sure the addr_string field is not
1798 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1800 * sparc-nat.c (fetch_inferior_registers)
1801 (store_inferior_registers): Add comment on problem of LWP vs
1804 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1805 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1806 (lin_lwp_store_registers): Remove.
1807 (init_lin_lwp_ops): Use fetch_inferior_registers
1808 and store_inferior_registers directly.
1809 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1810 (store_inferior_registers): Likewise.
1813 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1815 * frame.h (get_frame_id): Convert to a function.
1816 (null_frame_id, frame_id_p): Declare.
1817 (frame_id_eq, frame_id_inner): Declare.
1818 (frame_id_build): New function.
1819 * frame.c (get_frame_id): Update. Use null_frame_id.
1820 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1822 (null_frame_id, frame_id_p): Define.
1823 (frame_id_eq, frame_id_inner): Define.
1824 (frame_id_build): New function.
1825 * varobj.c (varobj_create): Update.
1826 (varobj_update): Update.
1827 * valops.c (value_assign): Update.
1828 (new_root_variable): Update.
1829 * infrun.c (save_inferior_status): Update.
1830 * breakpoint.c (watch_command_1): Update.
1832 2002-12-03 J. Brobecker <brobecker@gnat.com>
1834 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1837 2002-12-03 Andrew Cagney <cagney@redhat.com>
1839 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1842 * PROBLEMS: Mention PR gdb/725.
1844 2002-12-03 Andreas Schwab <schwab@suse.de>
1846 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1848 2002-12-02 Adam Fedor <fedor@gnu.org>
1849 Klee Dienes <kdienes@apple.com>
1851 * objc-lang.c (objc_printstr): Add width arg to match
1853 (compare_selectors): Add 'const' to arg types.
1854 (compare_classes): Likewise.
1855 (find_imps): Cast msym pointer to avoid compiler warning.
1856 (print_object_command): Validate the address before
1857 passing it to the print routine.
1858 (find_objc_msgcall_submethod): Change function argument to
1860 * objc-lang.h: Add 'extern' to all function declarations.
1861 (value_nsstring): Add declaration.
1863 2002-12-02 J. Brobecker <brobecker@gnat.com>
1865 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1866 Fixes a build failure on HP/UX.
1868 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1870 (hpread_has_name): Advance declaration to avoid a compilation warning.
1871 (pst_syms_count): Add missing variable type. By change, the compiler
1872 was defaulting to int, which seems a good choice. Fixes a compilation
1874 (pst_syms_size): Likewise.
1876 2002-12-02 J. Brobecker <brobecker@gnat.com>
1878 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1879 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1880 later to set the proper gdbarch methods depending on the osabi.
1881 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1883 2002-12-02 J. Brobecker <brobecker@gnat.com>
1885 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1886 * osabi.c (gdb_osabi_name): Add strings images for the two new
1888 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1890 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1892 * MAINTAINERS (Java): Global maintainers are responible for Java.
1893 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1894 part Java maintainers.
1896 2002-12-02 J. Brobecker <brobecker@gnat.com>
1898 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1899 Fixes a compilation failure on AiX.
1901 2002-12-02 J. Brobecker <brobecker@gnat.com>
1903 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1904 why aix-thread.o is not listed.
1906 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1908 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1909 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1910 * gdbarch.h, gdbarch.c: Re-generate.
1911 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1912 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1913 * config/pa/tm-hppa.h, frame.h: Update.
1914 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1915 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1916 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1917 * cris-tdep.c, alpha-tdep.c: Update.
1918 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1919 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1920 (get_prev_frame): Ditto.
1922 2002-11-30 Andrew Cagney <cagney@redhat.com>
1924 * exec.c (xfer_memory): Replace boolean with int.
1925 * p-exp.y: Use 0 instead of false.
1926 * corelow.c (gdb_check_format): Change return type to int from
1928 * utils.c: Don't include <curses.h> or <term.h> first.
1930 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1932 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1933 (m68hc11_register_byte): Remove.
1934 (m68hc11_gdbarch_init): Don't set the above.
1936 2002-11-29 Andrew Cagney <cagney@redhat.com>
1938 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1939 by calling get_selected_frame.
1940 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1941 set_current_frame, create_new_frame, select_frame and
1943 * remote-e7000.c (e7000_start_remote): Ditto.
1944 * remote-mips.c (common_open): Ditto
1945 * remote-rdp.c (remote_rdp_open): Ditto.
1947 2002-11-29 Andreas Schwab <schwab@suse.de>
1949 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1950 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1951 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1952 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1953 read_memory_unsigned_integer instead of read_memory_integer when
1954 dealing with addresses and instruction opcodes.
1955 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1956 (m68k_linux_frame_saved_pc): Likewise.
1958 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1960 * stack.c (selected_frame, select_frame): Move from here ...
1961 * frame.c (selected_frame, select_frame): ... to here. Include
1963 * Makefile.in (frame.o): Update dependencies.
1964 * frame.c (get_selected_frame): New function.
1965 * frame.h (get_selected_frame): Declare.
1966 (deprecated_selected_frame): Rename selected_frame.
1967 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1968 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1969 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1970 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1971 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1972 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1973 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1974 * z8k-tdep.c, cli/cli-cmds.c: Update.
1976 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1978 * frame.h (get_selected_block): Add comments.
1980 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1982 * frame.c (pc_notcurrent): New function.
1983 (find_frame_sal): New function.
1984 * frame.h (find_frame_sal): Declare.
1985 (struct symtab_and_line): Add opaque declaration.
1986 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1988 (frame_info): Ditto.
1989 * ada-lang.c (find_printable_frame): Ditto.
1991 2002-11-28 J. Brobecker <brobecker@gnat.com>
1993 * configure.in: Check that the pthdebug library is recent enough
1994 before enabling thread support on native AiX.
1995 * configure: Regenerate.
1997 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1998 from the list of object files as it is now appended by configure
1999 if thread support is enabled.
2000 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
2001 if thread support is enabled.
2003 2002-11-28 Andrew Cagney <cagney@redhat.com>
2005 * stack.c (get_selected_block): In-line get_current_block.
2006 * frame.h (get_current_block): Delete declaration.
2007 * blockframe.c (get_current_block): Delete function.
2009 2002-11-28 Andrew Cagney <ac131313@redhat.com>
2011 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
2012 USE_GENERIC_DUMMY_FRAMES.
2013 * gdbarch.h, gdbarch.c: Regenerate.
2014 * valops.c, frame.c: Update.
2015 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
2016 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
2017 * config/pa/tm-hppa.h, blockframe.c: Update.
2018 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
2019 * m68k-tdep.c, alpha-tdep.c: Ditto.
2021 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
2022 * mips-tdep.c: Ditto.
2024 2002-11-27 Andrew Cagney <ac131313@redhat.com>
2026 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
2027 (USE_GENERIC_DUMMY_FRAMES): Default to true.
2028 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
2029 * gdbarch.c, gdbarch.h: Re-generate.
2030 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
2031 (CALL_DUMMY_LOCATION): Delete macro definition.
2032 (PC_IN_CALL_DUMMY): Delete macro definitions.
2034 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
2035 default is already generic_pc_in_call_dummy.
2036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2037 * v850-tdep.c (v850_gdbarch_init): Ditto.
2038 * sh-tdep.c (sh_gdbarch_init): Ditto.
2039 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2040 * mips-tdep.c (mips_gdbarch_init): Ditto.
2041 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2043 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2044 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2045 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2046 * avr-tdep.c (avr_gdbarch_init): Ditto.
2048 * arm-tdep.c (arm_gdbarch_init): Do not set
2049 use_generic_dummy_frames, default is already 1.
2050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2051 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2052 * v850-tdep.c (v850_gdbarch_init): Ditto.
2053 * sh-tdep.c (sh_gdbarch_init): Ditto.
2054 * s390-tdep.c (s390_gdbarch_init): Ditto.
2055 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2056 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2057 * mips-tdep.c (mips_gdbarch_init): Ditto.
2058 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2060 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2061 * i386-tdep.c (i386_gdbarch_init): Ditto.
2062 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2063 * frv-tdep.c (frv_gdbarch_init): Ditto.
2064 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2065 * cris-tdep.c (cris_gdbarch_init): Ditto.
2066 * avr-tdep.c (avr_gdbarch_init): Ditto.
2068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2069 call_dummy_location, default is already AT_ENTRY_POINT.
2070 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2071 * v850-tdep.c (v850_gdbarch_init): Ditto.
2072 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2073 * sh-tdep.c (sh_gdbarch_init): Ditto.
2074 * s390-tdep.c (s390_gdbarch_init): Ditto.
2075 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2077 * mips-tdep.c (mips_gdbarch_init): Ditto.
2078 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2080 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2081 * i386-tdep.c (i386_gdbarch_init): Ditto.
2082 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2083 * frv-tdep.c (frv_gdbarch_init): Ditto.
2084 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2085 * cris-tdep.c (cris_gdbarch_init): Ditto.
2086 * avr-tdep.c (avr_gdbarch_init): Ditto.
2087 * arm-tdep.c (arm_gdbarch_init): Ditto.
2088 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2090 2002-11-28 Andrew Cagney <cagney@redhat.com>
2092 * frame.h: Update comments on set_current_frame, create_new_frame,
2093 flush_cached_frames, reinit_frame_cache, select_frame and
2096 2002-11-27 Andrew Cagney <cagney@redhat.com>
2098 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2099 deprecated pc_in_call_dummy function.
2100 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2101 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2102 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2103 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2104 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2106 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2108 * Makefile.in: Remove Tix dependencies.
2109 * acinclude.m4: Ditto.
2110 * aclocal.m4: Ditto.
2111 * configure.in: Ditto.
2112 * configure: Regenerated.
2114 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2116 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2117 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2118 * gdbarch.c: Re-generate.
2120 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2122 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2123 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2124 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2125 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2126 pc_in_call_dummy_at_entry_point.
2127 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2128 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2129 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2130 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2131 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2132 pc_in_call_dummy_on_stack.
2133 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2134 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2135 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2136 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2137 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2139 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2141 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2142 pc_in_call_dummy_before_text_end
2143 (deprecated_pc_in_call_dummy_after_text_end): Rename
2144 pc_in_call_dummy_after_text_end.
2145 (deprecated_pc_in_call_dummy_on_stack): Rename
2146 pc_in_call_dummy_on_stack.
2147 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2148 pc_in_call_dummy_at_entry_point.
2149 * m68k-tdep.c (m68k_gdbarch_init): Update.
2150 * s390-tdep.c (s390_gdbarch_init): Update.
2151 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2152 * vax-tdep.c (vax_gdbarch_init): Update.
2153 * sparc-tdep.c (sparc_gdbarch_init): Update.
2154 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2155 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2156 * i386-tdep.c (i386_gdbarch_init): Update.
2157 * frv-tdep.c (frv_gdbarch_init): Update.
2158 * cris-tdep.c (cris_gdbarch_init): Update.
2159 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2160 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2161 (deprecated_pc_in_call_dummy_after_text_end)
2162 (deprecated_pc_in_call_dummy_on_stack)
2163 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2164 * alpha-tdep.c (alpha_gdbarch_init): Update.
2166 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2168 * acconfig.h (HAVE_PREAD64): Add.
2169 * configure.in: Check for pread64.
2170 * config.in: Regenerated.
2171 * configure: Regenerated.
2172 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2173 * linux-proc.c (linux_proc_xfer_memory): New function.
2174 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2176 2002-11-25 David Carlton <carlton@math.stanford.edu>
2178 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2181 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2183 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2184 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2186 2002-11-25 Jim Blandy <jimb@redhat.com>
2188 * symfile.c (init_objfile_sect_indices): New function.
2189 (default_symfile_offsets): Move the section-index-initializing
2190 stuff into init_objfile_sect_indices, and call that.
2192 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2193 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2195 * symfile.c (syms_from_objfile): Adjust indentation.
2197 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2198 || info_verbose isn't true.
2200 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2202 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2203 default to get_frame_base.
2204 * gdbarch.h, gdbarch.c: Regenerate.
2205 * arch-utils.c (default_frame_address): Delete function.
2206 * arch-utils.h (default_frame_address): Delete declaration
2208 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2210 * varobj.c (find_frame_addr_in_frame_chain):
2211 Use get_frame_base instead of FRAME_FP,
2214 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2216 * frame.h (FRAME_FP): Delete macro.
2217 (get_frame_base): New function declaration.
2218 * frame.c (get_frame_base): New function.
2219 (get_frame_id): Use ->frame.
2220 (frame_find_by_id): Rewrite to use get_frame_id.
2221 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2222 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2223 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2224 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2225 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2226 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2227 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2229 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2231 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2233 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2235 * frame.c (set_unwind_by_pc): Revert change below, use
2237 (get_prev_frame): Ditto.
2239 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2241 * dummy-frame.c (pc_in_dummy_frame): New function.
2242 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2243 (find_dummy_frame): Update comment.
2244 (generic_pop_current_frame): Use get_frame_type.
2245 * dummy-frame.h (pc_in_dummy_frame): Declare.
2246 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2247 (create_new_frame): Use pc_in_dummy_frame.
2248 (get_prev_frame): Use pc_in_dummy_frame.
2249 (frame_saved_regs_register_unwind): Use get_prev_frame.
2250 (deprecated_generic_get_saved_register): Use get_prev_frame.
2252 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2254 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2256 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2257 (varobj_create): Note that frame ID should be used.
2258 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2260 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2262 * breakpoint.c: Include "gdb_assert.h".
2263 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2265 * Makefile.in (breakpoint.o): Update dependencies.
2266 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2267 deprecated_frame_in_dummy.
2268 * stack.c (print_frame_info_base): Ditto.
2269 (frame_info): Ditto.
2270 (print_frame_info_base): Ditto. Delete dead code.
2272 2002-11-23 Andreas Schwab <schwab@suse.de>
2274 * Makefile.in (m68k_tdep_h): Define.
2275 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2276 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2277 * m68k-tdep.c: Move register number enum ...
2278 * m68k-tdep.h: ... to this new file and rename the constants from
2279 E_* to M68K_*. All uses changed.
2280 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2281 * abug-rom.c: Include "m68k-tdep.h". Use
2282 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2283 * cpu32bug-rom.c: Likewise.
2284 * dbug-rom.c: Likewise.
2285 * m68k-tdep.c: Likewise.
2286 * m68klinux-nat.c: Likewise.
2287 * remote-est.c: Likewise.
2288 * rom68k-rom.c: Likewise.
2289 * config/m68k/tm-linux.h: Likewise.
2291 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2293 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2294 dummy frame initialization code.
2295 * mips-tdep.c (mips_gdbarch_init): Ditto.
2297 2002-11-22 Christopher Faylor <cgf@redhat.com>
2299 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2302 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2304 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2305 to default_frame_address.
2306 * gdbarch.h, gdbarch.c: Re-generate.
2308 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2309 or frame_locals_address to default_frame_address.
2310 * m68k-tdep.c (m68k_gdbarch_init): Update.
2311 * i386-tdep.c (i386_gdbarch_init): Update.
2312 * frv-tdep.c (frv_gdbarch_init): Update.
2313 * sh-tdep.c (sh_gdbarch_init): Update.
2314 * v850-tdep.c (v850_gdbarch_init): Update.
2315 * sparc-tdep.c (sparc_gdbarch_init): Update.
2316 * mips-tdep.c (mips_gdbarch_init): Update.
2317 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2318 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2321 * cris-tdep.c (cris_frame_args_address): Delete function.
2322 (cris_frame_locals_address): Delete function.
2323 (cris_gdbarch_init): Do not set frame_args_address or
2324 frame_locals_address.
2326 2002-11-22 Michael Snyder <msnyder@redhat.com>
2328 * thread-db.c (thread_db_load): Tell the user what's going on
2329 if dlopen fails on libthread_db.
2331 2002-11-23 Andreas Schwab <schwab@suse.de>
2333 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2334 invariant return values.
2336 2002-11-22 Andreas Schwab <schwab@suse.de>
2338 * valops.c (value_slice): Move declaration of `offset' to avoid
2341 2002-11-22 Christopher Faylor <cgf@redhat.com>
2343 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2344 (struct so_stuff): Add end_addr field.
2345 (register_loaded_dll): Calculate and store end address of loaded dll.
2346 (solib_address): New function.
2347 (child_solib_loaded_library_pathname): Pass carefully constructed
2348 section info to safe_symbol_file_add rather than ignoring it.
2349 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2351 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2352 (child_create_inferior): Fix a compiler warning.
2353 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2354 (solib_address): Declare new function.
2356 2002-11-22 Andreas Schwab <schwab@suse.de>
2358 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2361 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2363 * maint.c (_initialize_maint_cmds): Fix typo. From
2364 Francesco Potorti` <pot@gnu.org>.
2366 2002-11-21 Andrew Cagney <cagney@redhat.com>
2368 * mips-tdep.c (mips_dump_tdep): Delete references to
2369 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2370 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2371 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2372 * printcmd.c (build_address_symbolic): Delete calls to
2373 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2374 (address_info): Ditto.
2377 2002-11-19 Klee Dienes <kdienes@apple.com>
2378 Adam Fedor <fedor@gnu.org>
2380 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2381 the ability to explicitly specify the quote characters and word
2382 break characters; if NULL is specified for either, use the old
2383 behavior of using the characters used by the completer.
2384 (skip_chars): New function. Convenience wrapper around
2385 skip_quoted_chars to provide the original skip_chars behavior.
2386 * completer.h (skip_quoted_chars): Add prototype.
2388 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2390 Problems reported by Paul Eggert.
2391 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2393 2002-11-19 Andreas Schwab <schwab@suse.de>
2395 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2396 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2397 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2398 (m68k_linux_frame_saved_pc): Move to ...
2399 * m68klinux-tdep.c: ... here. New file.
2400 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2401 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2403 2002-11-19 Adam Fedor <fedor@gnu.org>
2405 * objc-exp.y: Revert to old skip_quoted usage.
2407 2002-11-19 Adam Fedor <fedor@gnu.org>
2409 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2410 (objc_lang_h): Define.
2411 (YYFILES): Add objc-exp.tab.c.
2412 (local-maintainer-clean): Remove objc-exp.tab.c.
2413 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2415 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2417 * p-exp.y (typecast rule): Add automatic dereference of
2418 pascal classes if needed.
2419 (THIS): Set current_type.
2420 Automatically dereference pascal classes.
2421 (typebase rule): Add ^typebase recognition.
2423 2002-11-18 Adam Fedor <fedor@gnu.org>
2425 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2426 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2427 (op_name): Handle OP_OBJC_SELF.
2428 * Makefile.in (expprint.o): Add additional depends.
2430 2002-11-18 Adam Fedor <fedor@gnu.org>
2432 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2433 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2434 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2435 * objc-exp.y: Likewise.
2437 2002-11-18 Adam Fedor <fedor@gnu.org>
2439 * gdb/parser-defs.h: (struct objc_class_str): New structure
2440 for parsing ObjC classes.
2442 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2444 * stack.c (frame_relative_level): Copy function from here ...
2445 * frame.c (frame_relative_level): ...to here.
2447 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2449 * frame.h (enum frame_type): Define.
2450 (get_frame_type): Declare.
2451 (struct frame_info): Add field `type'. Delete field
2452 signal_handler_caller.
2453 (deprecated_set_frame_signal_handler_caller): Declare.
2454 * frame.c (get_frame_type): New function.
2455 (deprecated_set_frame_type): New function.
2456 (create_new_frame): Set the frame's type.
2457 (get_prev_frame): Similar.
2458 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2459 * s390-tdep.c: Ditto.
2460 * m68klinux-nat.c: Ditto.
2461 * ns32k-tdep.c: Ditto.
2462 * x86-64-linux-tdep.c: Ditto.
2463 * vax-tdep.c: Ditto.
2464 * rs6000-tdep.c: Ditto.
2465 * ppc-linux-tdep.c: Ditto.
2466 * i386-interix-tdep.c: Ditto.
2467 * mips-tdep.c: Ditto.
2468 * m68k-tdep.c: Ditto.
2469 * hppa-tdep.c: Ditto.
2470 * ia64-tdep.c: Ditto.
2471 * cris-tdep.c: Ditto.
2472 * arm-tdep.c: Ditto.
2473 * alpha-tdep.c: Ditto.
2474 * i386-tdep.c: Ditto.
2476 * ada-lang.c: Ditto.
2477 * blockframe.c: Update.
2478 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2479 deprecated_set_frame_type instead of signal_handler_caller.
2480 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2481 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2482 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2484 2002-11-18 Klee Dienes <kdienes@apple.com>
2486 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2488 2002-11-18 Klee Dienes <kdienes@apple.com>
2490 * buildsym.c (pop_context): Add comment.
2492 2002-11-18 Klee Dienes <kdienes@apple.com>
2494 * buildsym.h (pop_context): Convert to function, defined in
2496 * buildsym.c: Include gdb_assert.h.
2497 (pop_context): Implement as C function. Add check for stack
2499 * dbxread.c (process_one_symbol): Complain and stop processing
2500 that symbol if we are already at the top of the context stack for
2501 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2502 when processing N_RBRAC.
2504 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2506 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2508 (struct target_waitstatus): Add opaque definition.
2509 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2510 * exec.c (init_exec_ops): Likewise.
2511 * fork-child.c (clone_and_follow_inferior): Remove.
2512 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2513 * inferior.h (clone_and_follow_inferior): Remove prototype.
2514 * infrun.c (follow_fork_mode_both): Remove.
2515 (follow_fork_mode_kind_names): Remove commented out "both".
2516 (follow_inferior_fork): Remove follow_fork_mode_both support.
2517 * inftarg.c (child_clone_and_follow_inferior): Remove.
2518 (child_post_follow_inferior_by_clone): Remove.
2519 (init_child_ops): Don't set to_clone_and_follow_inferior
2520 or to_post_follow_inferior_by_clone.
2521 * target.c (default_clone_and_follow_inferior): Remove.
2522 (cleanup_target): Don't set to_clone_and_follow_inferior
2523 or to_post_follow_inferior_by_clone.
2524 (find_default_clone_and_follow_inferior): Remove.
2525 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2526 (debug_to_clone_and_follow_inferior): Remove.
2527 (debug_to_post_follow_inferior_by_clone): Remove.
2528 (setup_target_debug): Don't set to_clone_and_follow_inferior
2529 or to_post_follow_inferior_by_clone.
2530 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2531 and to_post_follow_inferior_by_clone.
2532 (child_clone_and_follow_inferior): Remove prototype.
2533 (child_post_follow_inferior_by_clone): Remove prototype.
2534 (target_clone_and_follow_inferior): Remove macro.
2535 (target_post_follow_inferior_by_clone): Remove macro.
2536 (find_default_clone_and_follow_inferior): Remove prototype.
2538 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2540 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2541 inferior_has_vforked, and inferior_has_execd instead of
2542 target_has_forked, target_has_vforked, and target_has_execd.
2543 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2544 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2545 (CHILD_WAIT): Define.
2546 (child_wait): Add prototype.
2547 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2549 (hpux_has_vforked): Likewise, from child_has_vforked.
2550 (hpux_has_execd): Likewise, from child_has_execd.
2551 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2552 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2553 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2554 and hpux_has_syscall_event instead of the target hooks.
2555 * infrun.c (inferior_has_forked, inferior_has_vforked)
2556 (inferior_has_execd): New functions.
2557 * inftarg.c (not_same_real_pid): Remove.
2558 (child_wait): Remove references to not_same_real_pid,
2559 target_has_forked, target_has_vforked, target_has_execd,
2560 and target_has_syscall_event.
2561 (child_has_forked, child_has_vforked, child_has_execd)
2562 (child_has_syscall_event): Remove.
2563 (init_child_ops): Remove references to child_has_forked,
2564 child_has_vforked, child_has_execd, and child_has_syscall_event.
2565 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2566 (hpux_has_vforked): Likewise, from child_has_vforked.
2567 (hpux_has_execd): Likewise, from child_has_execd.
2568 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2569 * target.c (cleanup_target): Remove references to
2570 to_has_forked, to_has_vforked, to_has_execd, and
2571 to_has_syscall_event.
2572 (update_current_target): Likewise.
2573 (setup_target_debug): Likewise.
2574 (debug_to_has_forked): Remove.
2575 (debug_to_has_vforked): Remove.
2576 (debug_to_has_execd): Remove.
2577 (debug_to_has_syscall_event): Remove.
2578 * target.h (struct target_ops): Remove to_has_forked.
2579 to_has_vforked, to_has_execd, and to_has_syscall_event.
2580 (child_has_forked, child_has_vforked, child_has_execd)
2581 (child_has_syscall_event): Remove prototypes.
2582 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2584 (target_has_forked, target_has_vforked, target_has_execd)
2585 (target_has_syscall_event): Remove macros.
2587 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2589 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2590 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2591 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2592 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2593 * target.c (cleanup_target): Remove reference to
2594 to_can_follow_vfork_prior_to_exec.
2595 (update_current_target): Likewise.
2596 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2597 (setup_target_debug): Remove reference to
2598 to_can_follow_vfork_prior_to_exec.
2599 * target.h (struct target_ops): Remove
2600 to_can_follow_vfork_prior_to_exec.
2601 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2602 (target_can_follow_vfork_prior_to_exec): Remove definition.
2603 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2605 * infrun.c (follow_vfork_when_exec): Remove.
2606 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2607 (follow_exec): Likewise.
2608 (handle_inferior_event): Likewise.
2609 (keep_going): Likewise.
2611 2002-11-15 Andrew Cagney <cagney@redhat.com>
2613 * frame.c (generic_unwind_get_saved_register): Make static.
2614 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2615 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2616 defaults to generic_unwind_get_saved_register.
2617 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2618 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2619 * frv-tdep.c (frv_gdbarch_init): Ditto.
2620 * i386-tdep.c (i386_gdbarch_init): Ditto.
2621 * s390-tdep.c (s390_gdbarch_init): Ditto.
2622 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2623 * v850-tdep.c (v850_gdbarch_init): Ditto.
2624 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2626 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2628 2002-11-15 Andrew Cagney <cagney@redhat.com>
2630 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2633 2002-11-15 Andrew Cagney <cagney@redhat.com>
2635 * frame.h (sigtramp_saved_pc): Delete declaration.
2636 * blockframe.c (sigtramp_saved_pc): Delete function.
2637 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2638 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2639 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2640 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2642 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2644 * frame.c (frame_pc_unwind): New function.
2645 (frame_saved_regs_pc_unwind): New function.
2646 (frame_register_unwind): Pass unwind_cache instead of
2647 register_unwind_cache.
2648 (set_unwind_by_pc): Add unwind_pc parameter, set.
2649 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2650 (get_prev_frame): Ditto.
2651 * frame.h (frame_pc_unwind_ftype): Declare.
2652 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2653 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2654 (frame_pc_unwind): Declare.
2655 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2656 (struct dummy_frame): Add comment mentioning that values are for
2658 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2659 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2660 (generic_file_frame_chain_valid): Ditto.
2661 * stack.c (frame_info): Ditto.
2663 2002-11-15 David Carlton <carlton@math.stanford.edu>
2665 * linespec.c (locate_first_half): New function.
2666 (decode_line_1): Move code into locate_first_half.
2668 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2670 * complaints.h: Add comment explaining how to eliminate a
2671 deprecated_complain call.
2672 * complaints.h: Fix spelling errors.
2674 2002-11-15 David Carlton <carlton@math.stanford.edu>
2676 * printcmd.c: Remove #include "disasm.h".
2678 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2680 * frame.h: Move the most relevant interface functions to the start
2683 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2685 * regcache.h (deprecated_registers): Rename registers.
2686 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2687 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2688 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2689 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2690 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2691 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2692 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2693 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2694 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2695 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2696 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2697 * v850ice.c: Update.
2699 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2701 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2704 2002-11-13 Andrew Cagney <cagney@redhat.com>
2706 * regcache.h (deprecated_read_register_bytes): Rename
2707 read_register_bytes.
2708 (deprecated_write_register_bytes): Rename write_register_bytes.
2709 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2710 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2711 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2712 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2713 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2714 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2715 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2716 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2717 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2718 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2719 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2720 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2721 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2722 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2724 2002-11-13 Jim Blandy <jimb@redhat.com>
2726 * findvar.c (read_var_value): Doc fix.
2728 2002-11-13 Andrew Cagney <cagney@redhat.com>
2730 * regcache.c (struct regcache): Replace passthough_p with
2732 (regcache_xmalloc): Initialize readonly_p.
2733 (build_regcache): Initialize readonly_p.
2734 (regcache_save): New function.
2735 (regcache_restore): New function.
2736 (regcache_cpy): Re-implement using regcache_save and
2738 (regcache_raw_read): Update.
2739 (regcache_cooked_read): When a read-only cache, checked for cached
2740 pseudo register values.
2741 (regcache_raw_write): Assert that the cache is not read-only.
2742 Remove code handling a non-passthrough cache.
2743 * regcache.h (regcache_save): Declare.
2744 (regcache_restore): Declare.
2746 2002-11-13 Andrew Cagney <cagney@redhat.com>
2748 * regcache.c (struct regcache_descr): Add fields
2749 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2750 (init_legacy_regcache_descr): Compute the size of a cooked
2751 register cache and then assign that to sizeof_raw_registers. Set
2752 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2753 (init_legacy_regcache_descr): Ditto.
2755 2002-11-13 Andrew Cagney <cagney@redhat.com>
2757 * regcache.c (register_buffer): Move to near start of file, update
2759 (regcache_raw_read): Use.
2760 (regcache_raw_write): Use.
2761 (struct regcache): Rename raw_registers to registers and
2762 raw_register_valid_p to register_valid_p.
2763 (regcache_xmalloc): Update.
2764 (regcache_xfree): Update.
2765 (register_buffer): Update.
2766 (regcache_cpy): Update.
2767 (regcache_cpy_no_passthrough): Update.
2768 (regcache_valid_p): Update.
2769 (deprecated_grub_regcache_for_registers): Update.
2770 (deprecated_grub_regcache_for_register_valid): Update.
2771 (set_register_cached): Update.
2772 (regcache_raw_write): Update.
2774 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2776 * p-exp.y (name_not_typename): Use copy_name to
2777 set current_type variable for fields of THIS.
2779 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2781 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2782 * monitor.c (init_base_monitor_ops): Likewise.
2783 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2784 * remote-array.c (init_array_ops): Likewise.
2785 * remote-e7000.c (init_e7000_ops): Likewise.
2786 * remote-es.c (init_es1800_ops): Likewise.
2787 (init_es1800_child_ops): Likewise.
2788 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2789 * remote-sim.c (init_gdbsim_ops): Likewise.
2790 * remote-st.c (init_st2000_ops): Likewise.
2791 * sol-thread.c (init_sol_core_ops): Likewise.
2792 (init_sol_thread_ops): Likewise.
2793 * v850ice.c (init_850ice_ops): Likewise.
2794 * win32-nat.c (init_child_ops): Likewise.
2795 * wince.c (init_child_ops): Likewise.
2797 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2799 * utils.c (gdb_realpath): Make rp a constant pointer.
2801 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2803 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2804 a constant buffer; cannonicalize_file_name(); realpath() with a
2805 pathconf() defined buffer, xstrdup().
2807 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2809 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2810 to hang2.C; hang3.c to hang3.C.
2812 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2814 * findvar.c (read_var_value): Reenable TLS code.
2816 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2817 Jim Blandy <jimb@redhat.com>
2819 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2820 * target.c (update_current_target): Add
2821 to_get_thread_local_address.
2822 * target.h (to_get_thread_local_address): Export.
2823 (target_get_thread_local_address): Define.
2824 (target_get_thread_local_address_p): Define.
2825 * thread-db.c: Include solib-svr4.h.
2826 (td_thr_tls_get_addr_p): Define.
2827 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2828 (thread_db_get_thread_local_address): New function.
2829 (init_thread_db_ops): Initialize to_get_thread_local_address.
2830 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2831 * configure: Regenerate.
2832 * config.in: Regenerate.
2834 2002-11-11 David Carlton <carlton@math.stanford.edu>
2836 * linespec.c (set_flags): New function.
2837 (decode_line_1): Move code into set_flags.
2839 2002-11-11 David Carlton <carlton@math.stanford.edu>
2841 * linespec.c (decode_line_1): Move chunks of code to separate
2843 (initialize_defaults): New function.
2844 (decode_indirect): New function.
2846 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2848 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2849 instead of void_code_ptr.
2850 (sigtramp_saved_pc): Ditto.
2852 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2855 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2857 * gdbtypes.h (struct main_type): Move artificial flag out of
2858 loc. New member of ``struct field'' named static_kind. Reduce
2859 overloaded meaning of bitsize.
2860 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2861 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2862 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2864 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2866 (template_to_fixed_record_type, template_to_static_fixed_type)
2867 (to_record_with_fixed_variant_part): Likewise.
2868 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2869 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2870 * dwarfread.c (struct_type, enum_type): Likewise.
2871 * hpread.c (hpread_read_enum_type)
2872 (hpread_read_function_type, hpread_read_doc_function_type)
2873 (hpread_read_struct_type): Likewise.
2874 * mdebugread.c (parse_symbol): Likewise.
2876 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2878 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2879 * stack.c (print_frame_info_base): Update.
2880 (print_frame_info_base, frame_info): Update.
2881 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2882 (sparc_frame_saved_pc): Update.
2883 * ada-lang.c (find_printable_frame): Update.
2884 * breakpoint.c (deprecated_frame_in_dummy): Update.
2886 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2888 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2890 (regmap): Extend to cover all registers.
2891 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2892 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2894 (fetch_register, sore_register): Simplify.
2895 (old_fetch_inferior_registers, old_store_inferior_registers):
2897 (cannot_fetch_register, cannot_store_register): Change
2898 implementation to use regmap array to decide which registers
2899 cannot be fetched/stored. This removes $orig_eax from the
2900 registers that cannot be fetched/stored.
2901 (fetch_inferior_registers): Call fetch_register directly instead
2902 of calling old_fetch_inferior_registers.
2903 (store_inferior_registers): Call store_register directly instead
2904 of calling old_store_inferior_registers.
2905 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2906 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2907 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2909 2002-11-09 Klee Dienes <kdienes@apple.com>
2911 * i387-tdep.c (i387_supply_register): When called with NULL as a
2912 buffer, mark the register as not provided (to mirror the behavior
2913 of supply_register).
2914 (i387_supply_fxsave): Ditto.
2915 (i387_supply_fsave): Ditto (inherits the behavior from
2916 i387_supply_register).
2918 2002-11-09 Klee Dienes <kdienes@apple.com>
2920 * blockframe.c (sigtramp_saved_pc): Use
2921 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2922 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2923 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2925 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2927 * frame.c (get_prev_frame): Test prev_p to identify a previously
2928 unwound frame. Initialize prev_p.
2929 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2932 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2934 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2935 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2936 more comments. Zap dead code.
2938 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2940 * infcmd.c (print_vector_info, print_float_info): Move code that
2941 checks whether the target has any registers and whether there is a
2942 selected frame up, such that it is also used if a target provides
2943 multi-arch definitions of these functions.
2945 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2947 * Makefile.in (DESTDIR): Define.
2948 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2951 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2952 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2954 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2956 * i386-linux-tdep.c: Include "reggroups.h".
2957 (i386_linux_register_reggroup_p): New function.
2958 (i386_linux_init_abi): Set register_reggroup_p to
2959 i386_linux_register_reggroup_p.
2960 * i386-tdep.h (i386_register_reggroup_p): Declare.
2961 * i386-tdep.c: Include "reggroups.h".
2962 (i386_init_reggroups): New function.
2963 (i386_add_reggroups): New function.
2964 (i386_register_reggroup_p): New function.
2965 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2966 (_initialize_i386_tdep): Call i386_init_reggroups.
2967 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2970 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2972 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2973 request that's available in *BSD.
2975 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2977 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2980 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2982 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2983 * dummy-frame.c (find_dummy_frame): Rename
2984 generic_find_dummy_frame, make static. Return the dummy frame
2985 instead of the regcache.
2986 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2987 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2988 (dummy_frame_register_unwind): Rename
2989 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2990 * dummy-frame.h (dummy_frame_register_unwind): Rename
2991 generic_call_dummy_register_unwind.
2993 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2995 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2996 except the inclusion of "i386/tm-i386.h", to...
2997 * config/i386/nm-i386v42mp.h: ...here.
2998 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
3000 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3002 * Makefile.in (frame.o): Update dependencies.
3003 * blockframe.c (current_frame, frame_obstack_alloc)
3004 (frame_saved_regs_zalloc, get_current_frame)
3005 (set_current_frame, create_new_frame)
3006 (set_unwind_by_pc, get_next_frame)
3007 (flush_cached_frames, reinit_frame_cache)
3008 (frame_saved_regs_register_unwind)
3009 (deprecated_generic_get_saved_register)
3010 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
3011 (_initialize_blockframe): Move frame code from here...
3012 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
3013 "annotate.h" and "dummy-frame.h".
3014 (_initialize_frame): New function.
3016 2002-11-08 Jim Blandy <jimb@redhat.com>
3018 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
3019 when we finish a function a context.
3020 * buildsym.h (outermost_context_p): New macro.
3021 (Bug analyzed by David Edelsohn.)
3023 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3025 * blockframe.c: Include "dummy-frame.h".
3026 (struct dummy_frame, dummy_frame_stack)
3027 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
3028 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
3029 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
3030 (generic_save_call_dummy_addr, generic_pop_current_frame)
3031 (generic_pop_dummy_frame, generic_fix_call_dummy)
3032 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
3033 dummy frame code from here...
3034 * dummy-frame.c: ...to here. New file.
3035 * dummy-frame.h: New file.
3036 (generic_call_dummy_register_unwind): Declare.
3037 (generic_find_dummy_frame): Declare.
3038 * Makefile.in (SFILES): Add dummy-frame.c.
3039 (dummy-frame.o): Specify dependencies.
3040 (dummy_frame_h): Define.
3041 (COMMON_OBS): Add dummy-frame.o.
3042 (blockframe.o): Update dependencies.
3044 2002-11-08 Jim Blandy <jimb@redhat.com>
3046 * dwarf2read.c (read_func_scope): Restore local_symbols and
3047 param_symbols after we finish the function context. (Based on a
3048 patch from David Edelsohn.)
3050 2002-11-08 David Carlton <carlton@math.stanford.edu>
3052 * linespec.c (symbol_found): New function.
3053 (minsym_found): New function.
3054 (decode_line_1): Separate out some code into separate functions.
3056 2002-11-08 Joel Brobecker <brobecker@gnat.com>
3058 * i386-tdep.c (i386_frameless_signal_p): Make non static for
3059 the benefit of the interix target.
3060 * i386-tdep.h (i386_frameless_signal_p): Declare.
3062 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3064 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3065 declaration that snuck in from change below.
3067 2002-11-06 Andrew Cagney <cagney@redhat.com>
3069 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
3071 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
3072 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3073 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3074 (i386_mxcsr_regnum_p): new function. Use instead of
3076 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3077 (i386_sse_regnum_p): Declare.
3078 (i386_mxcsr_regnum_p): Declare.
3079 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3080 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3081 (IS_FP_REGNUM): Update definition.
3082 (IS_FPU_CTRL_REGNUM): Update definition..
3083 (IS_SSE_REGNUM): Update definition..
3084 * i386v-nat.c (register_u_addr): Update.
3085 * go32-nat.c (fetch_register): Update.
3086 (store_register): Update.
3088 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3090 Preparation work to convert the hppa targets to multiarch partial.
3092 * hppa-tdep.c: Add new functions replacing macro bodies from
3093 config/pa/tm-hppa.h. These function will be used to initialize
3094 the gdbarch structure. Import some comments from tm-hppa.h,
3095 and place them where appropriate, to avoid loosing them when
3096 we cleanup this file.
3097 (hppa_reg_struct_has_addr): New function.
3098 (hppa_inner_than): New function.
3099 (hppa_stack_align): New function.
3100 (hppa_pc_requires_run_before_use): New function.
3101 (hppa_instruction_nullified): New function.
3102 (hppa_register_byte): New function.
3103 (hppa_register_virtual_type): New function.
3104 (hppa_store_struct_return): New function.
3105 (hppa_cannot_store_register): New function.
3106 (hppa_frame_args_address): New function.
3107 (hppa_frame_locals_address): New function.
3108 (hppa_smash_text_address): New function.
3109 (hppa_coerce_float_to_double): New function. Requires the inclusion
3112 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3114 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3115 gdbarch-eligible macro to a call to the new associated function
3116 created in hppa-tdep.c.
3117 (INNER_THAN): Likewise.
3118 (STACK_ALIGN): Likewise.
3119 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3120 (INSTRUCTION_NULLIFIED): Likewise.
3121 (REGISTER_BYTE): Likewise.
3122 (REGISTER_VIRTUAL_TYPE): Likewise.
3123 (STORE_STRUCT_RETURN): Likewise.
3124 (CANNOT_STORE_REGISTER): Likewise.
3125 (FRAME_ARGS_ADDRESS): Likewise.
3126 (FRAME_LOCALS_ADDRESS): Likewise.
3127 (SMASH_TEXT_ADDRESS): Likewise.
3128 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3129 (ABOUT_TO_RETURN): Delete, as no longer used.
3131 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3133 * printcmd.c (disassemble_command): Remove obsolete function.
3134 (_initialize_printcmd): Do not create disassemble command here.
3135 * cli/cli-cmds.c (disassemble_command): New function. Implements
3136 disassemble command.
3137 (init_cli_cmds): Create disassemble command here instead.
3139 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3141 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3143 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3145 * regcache.h (regcache_cooked_read_using_offset_hack)
3146 (regcache_cooked_write_using_offset_hack): Delete declarations.
3147 (register_changed): Delete declaration.
3148 * regcache.c (regcache_cooked_read_using_offset_hack)
3149 (regcache_cooked_write_using_offset_hack): Delete functions.
3150 (cooked_xfer_using_offset_hack): Delete function.
3151 (register_changed): Delete function.
3153 2002-11-07 Jim Blandy <jimb@redhat.com>
3155 * macroscope.c: #include "complaints.h".
3156 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3157 but not in the macro table.
3158 * Makefile.in (macroscope.o): Record dependency.
3160 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3162 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3164 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3166 * regcache.c (deprecated_registers_fetched): Update.
3167 * regcache.h (deprecated_registers_fetched): Rename
3169 * remote-vxsparc.c (vx_read_register): Update.
3170 * remote-vxmips.c (vx_read_register): Update.
3171 * remote-vx68.c (vx_read_register): Update.
3172 * irix5-nat.c (fetch_core_registers): Update.
3173 * mipsm3-nat.c (fetch_inferior_registers): Update.
3174 * sun3-nat.c (fetch_inferior_registers): Update.
3175 * symm-nat.c (fetch_inferior_registers): Update.
3176 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3177 (fetch_core_registers): Update.
3178 (fetch_kcore_registers): Update.
3179 * mips-nat.c (fetch_inferior_registers): Update.
3180 * corelow.c (get_core_registers): Update.
3181 * a68v-nat.c (fetch_inferior_registers): Update.
3183 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3185 Put in place the framework necessary for multiarching the hppa targets.
3186 * hppa-tdep.c (hppa_gdbarch_init): New function.
3187 (hppa_dump_tdep): New function.
3188 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3189 tdep structure dumper.
3190 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3191 until the multi-arching conversion has partially been completed.
3193 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3195 * valops.c (value_assign): Merge lval_register case into
3196 lval_reg_frame_relative. Use frame_register and
3197 regcache_cooked_write instead of get_saved_register and
3198 write_register_bytes. After flushing the register cache, try to
3199 re-select the selected frame.
3201 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3203 * regcache.h (deprecated_register_valid): Rename register_valid.
3204 * regcache.c: Update.
3205 * ia64-aix-nat.c: Update.
3206 * i386gnu-nat.c: Update.
3207 * alpha-nat.c: Update.
3208 * sparc-nat.c: Update.
3209 * lynx-nat.c: Update.
3210 * remote-mips.c: Update.
3212 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3214 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3215 to end of file, to be more consistent with the pratice followed
3218 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3220 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3221 (print_float_info): Print registers in float_reggroup.
3222 (print_vector_info): Print registers in vector_reggroup.
3223 (default_print_registers_info): When all, print registers in
3224 all_reggroup. Otherwize, print registers in general_reggroup.
3225 (registers_info): Rewrite. Add support for register groups.
3228 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3230 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3232 (symtab_symbol_info): Remove eons old ifdeffed out code.
3233 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3236 2002-11-06 Theodore A. Roth <troth@openavr.org>
3238 * c-exp.y: Add missing semi-colons.
3239 * f-exp.y: Add missing semi-colons.
3240 * m2-exp.y: Add missing semi-colons.
3241 * p-exp.y: Add missing semi-colons.
3242 Add empty action to start rule to avoid a type clash error when
3243 building with bison >= 1.50.
3245 2002-11-06 Jim Blandy <jimb@redhat.com>
3247 * macrotab.h (struct macro_source_file): Doc fix.
3249 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3251 * varobj.c (child_exists, cplus_number_of_children): Change
3252 STREQ macro references to strcmp.
3253 (cplus_name_of_child): Change code to handle the fact that
3254 fields are not necessarily contiguous with regards to their
3255 access control. This is a fix for PR gdb/792.
3257 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3259 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3260 * gdbarch.h, gdbarch.c: Regnerate.
3261 * frame.h (frame_register): Declare.
3262 * frame.c (frame_register): New function.
3263 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3264 GET_SAVED_REGISTER, otherwize call
3265 generic_unwind_get_saved_register.
3266 (frame_register_read): Use frame_register instead of
3269 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3271 From Jim Ingham <jingham@apple.com>:
3272 * event-top.c (gdb_disable_readline): New function.
3273 (_initialize_event_loop): Move comment.
3275 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3277 * event-loop.c (start_event_loop): Add comment.
3280 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3282 * infcmd.c (default_print_registers_info): Do not call
3283 PRINT_REGISTER_HOOK.
3285 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3287 * sparc-tdep.c (sparc_print_register_hook): Make static.
3288 (sparc_print_registers_info): New function.
3289 (sparc_do_registers_info): New function.
3290 (sparclet_print_registers_info): New function.
3291 (sparclet_do_registers_info): New function.
3292 (do_sparc_print_registers_info): New function.
3293 (sparc_print_registers): New static function, clone of infcmd.c's
3294 default_print_registers_info.
3295 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3296 (sparclet_do_registers_info): Declare.
3297 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3298 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3300 (sparc_do_registers_info): Declare.
3301 (PRINT_REGISTER_HOOK): Delete macro.
3302 (sparc_print_register_hook): Delete declaration.
3304 2002-11-05 David Carlton <carlton@math.stanford.edu>
3306 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3308 (lookup_symbol_aux_local): New function.
3309 (lookup_symbol_aux_symtabs): New function.
3310 (lookup_symbol_aux_psymtabs): New function.
3312 2002-11-05 David Carlton <carlton@math.stanford.edu>
3314 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3315 previous values of 'objfile' and 'block'.
3317 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3319 * values.c (value_change_enclosing_type): Set
3320 enclosing_type field correctly also for the case where
3321 more memory needs to be allocated.
3323 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3325 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3328 * i387-tdep.c (i387_print_float_info): Replace calls to
3329 register_read and deprecated_read_register_gen with calls to
3330 frame_register_read, and make the necessary adjustments to the
3333 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3335 * gdbarch.sh (register_reggroup_p): Allow default value.
3336 * gdbarch.h, gdbarch.c: Regenerate.
3338 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3340 * regcache.h: Add coment indicating replacements for deprecated
3343 2002-11-02 Andrew Cagney <cagney@redhat.com>
3345 * reggroups.h, reggroups.c: New files.
3346 * regcache.c: Include "reggroups.h".
3347 (enum regcache_dump_what): Add `regcache_dump_groups'.
3348 (regcache_dump): Contract size of the "Type" column. When
3349 specified, dump the register's groups.
3350 (maintenance_print_register_groups): New function.
3351 (_initialize_regcache): Add command `maint print register-groups'.
3352 * Makefile.in (COMMON_OBS): Add reggroups.o
3353 (SFILES): Add reggroups.c.
3354 (reggroups_h): Define.
3355 (regcache.o, gdbarch.o): Update dependencies.
3356 (reggroups.o): Specify dependencies.
3357 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3358 Add opaque declaration for `struct reggroup' in generated .h file.
3359 Include "reggroups.h" in generated .c file.
3360 gdbarch.h, gdbarch.c: Re-generate.
3362 2002-11-02 Andrew Cagney <cagney@redhat.com>
3364 * regcache.h (deprecated_read_register_gen): Rename
3366 (deprecated_write_register_gen): Rename write_register_gen.
3367 * i387-tdep.c: Update.
3368 * x86-64-linux-nat.c: Update
3370 * thread-db.c: Update.
3371 * win32-nat.c: Update.
3372 * mips-tdep.c: Update.
3373 * d10v-tdep.c: Update.
3374 * cris-tdep.c: Update.
3375 * remote-sim.c: Update.
3376 * remote-rdi.c: Update.
3377 * remote-rdp.c: Update.
3380 * blockframe.c: Update.
3381 * x86-64-tdep.c: Update.
3382 * xstormy16-tdep.c: Update.
3383 * sh-tdep.c: Update.
3384 * s390-tdep.c: Update.
3385 * rs6000-tdep.c: Update.
3386 * sparc-tdep.c: Update.
3387 * i386-tdep.c: Update.
3388 * dwarf2cfi.c: Update.
3389 * regcache.c: Update.
3391 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3393 New interix-specific files:
3394 * config/i386/nm-interix.h: New file.
3395 * config/i386/interix.mh: New file.
3396 * config/i386/interix.mt: New file.
3397 * i386-interix-nat.c: New file.
3398 * i386-interix-tdep.c: New file.
3400 2002-11-01 Andrew Cagney <cagney@redhat.com>
3402 * frame.h (deprecated_generic_get_saved_register): Rename
3403 generic_get_saved_register.
3404 * blockframe.c (deprecated_generic_get_saved_register): Update.
3405 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3406 (xstormy16_frame_saved_register): Update.
3407 * sh-tdep.c (sh_gdbarch_init): Update.
3408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3409 * ia64-tdep.c (ia64_get_saved_register): Update.
3410 * cris-tdep.c (cris_gdbarch_init): Update.
3411 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3412 * arm-tdep.c (arm_gdbarch_init): Update.
3414 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3416 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3418 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3420 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3421 trampolines in sigaction.
3423 2002-10-31 Andrew Cagney <cagney@redhat.com>
3425 * h8300-tdep.c: Include "gdb_assert.h".
3426 (h8300_print_register): Add gdbarch, file and frame parameters.
3427 Use frame_read_unsigned_register to read the register's value.
3428 Use fprintf_filtered to display output.
3429 (h8300_print_registers_info): Replace h8300_do_registers_info.
3430 (h8300_gdbarch_init): Set print_registers_info.
3432 2002-10-31 Andrew Cagney <cagney@redhat.com>
3434 * frame.c (frame_read_unsigned_register): New function.
3435 (frame_read_signed_register): New function.
3436 * frame.h (frame_read_unsigned_register): Declare.
3437 (frame_read_signed_register): Declare.
3439 2002-10-31 Andrew Cagney <cagney@redhat.com>
3441 * h8500-tdep.c (h8500_print_registers_info): New static function,
3442 clone of infcmd.c's default_print_registers_info.
3443 (h8500_do_registers_info): New funtion.
3444 (h8500_print_register_hook): Rename print_register_hook, make
3447 * config/h8500/tm-h8500.h: Update copyright.
3448 (DEPRECATED_DO_REGISTERS_INFO): Define.
3449 (h8500_do_registers_info: Declare.
3450 (PRINT_REGISTER_HOOK): Delete macro.
3451 (print_register_hook): Delete function.
3453 2002-10-31 Andrew Cagney <cagney@redhat.com>
3455 * z8k-tdep.c (z8k_print_register_hook): Make static.
3456 (z8k_print_registers_info): New static function, clone of
3457 infcmd.c's default_print_registers_info.
3458 (z8k_do_registers_info): New function. Wrap
3459 z8k_print_registers_info.
3460 * config/z8k/tm-z8k.h: Update copyright.
3461 (PRINT_REGISTER_HOOK): Delete macro.
3462 (z8k_print_register_hook): Delete declaration.
3463 (DEPRECATED_DO_REGISTERS_INFO): Define.
3464 (z8k_do_registers_info): Declare.
3466 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3468 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3469 as this is already provided by value.h, and was actually causing
3470 a compilation error because of a conflict in parameter type
3471 declaration due to a missing const keyword.
3472 (low_text_segment_addres): Fix a compilation warning.
3474 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3476 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3477 registers without a name.
3478 (mips_linux_cannot_store_register): Don't store registers without
3481 2002-10-28 David Carlton <carlton@math.stanford.edu>
3483 * symtab.c (find_addr_symbol): Delete. (It was already commented
3485 * symtab.h: Delete prototype for find_addr_symbol.
3487 2002-10-26 Andrew Cagney <cagney@redhat.com>
3489 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3491 gdbarch.h, gdbarch.c: Re-generate.
3492 * infcmd.c (default_print_registers_info): Update reference.
3493 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3494 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3495 * sh-tdep.c (sh_gdbarch_init): Ditto.
3496 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3497 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3499 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3501 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3502 cfi_init_extra_frame_info.
3503 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3504 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3506 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3507 target where necessary. Add more comments and remove the ones
3508 that don't provide any useful information.
3510 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3511 deprecated_read_register_dummy with
3512 frame_unwind_unsigned_register.
3514 * i386-tdep.c (i386_extract_struct_value_address): Use
3515 regcache_raw_read_unsigned instead of
3516 regcache_cooked_read_unsigned since we know that the register
3517 we're reading isn't a pseudo register. Rename variable 'val' into
3518 the more descriptive 'addr'.
3520 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3521 (x86_64_push_return_address): Add comment.
3522 (x86_64_pop_frame): Make static.
3523 (examine_argument): Clarify comment.
3524 (x86_64_skip_prologue): Make prolog_expact variable static.
3526 * dwarf2cfi.c: Fix some formatting problems.
3527 (context_cpy, read_encoded_pointer): Clarify comments.
3529 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3530 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3531 i386 target back into x86_64_gdbarch_init. Add some comments and
3532 remove meaningless ones.
3534 2002-10-25 Andrew Cagney <cagney@redhat.com>
3536 * complaints.h (struct deprecated_complaint): Rename `struct
3538 * complaints.c (complain): Update.
3539 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3540 incorrect comment indicating that "symfile.h" was being included
3541 for the `struct complaint' definition.
3542 * remote-vx.c: Update.
3543 * objc-lang.c: Update.
3544 * xcoffread.c: Update.
3546 * mdebugread.c: Update.
3547 * stabsread.c: Update.
3548 * dwarf2read.c: Update.
3549 * dwarfread.c: Update.
3550 * elfread.c: Update.
3551 * coffread.c: Update.
3552 * stabsread.h: Update.
3553 * dbxread.c: Update.
3554 * buildsym.c: Update.
3555 * gdbtypes.c: Update.
3556 * macrotab.c: Update.
3558 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3560 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3561 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3562 (x86_64_init_abi): ...new function.
3564 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3565 * i386v-nat.c: Include "i386-tdep.h".
3567 2002-10-25 Andrew Cagney <cagney@redhat.com>
3569 * gdbtypes.c (address_space_name_to_int): Update.
3570 (address_space_int_to_name): Update.
3571 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3572 multi-arch predicate.
3573 (address_class_name_to_type_flags): Ditto.
3574 * gdbarch.h, gdbarch.c: Re-generate.
3576 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3578 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3580 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3582 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3584 * symtab.h (INIT_SAL): Delete macro.
3586 * symtab.c (init_sal): New function.
3588 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3589 to init_sal function call.
3590 (find_sal_from_funcs_and_line): Ditto.
3591 (all_sals_for_line): Ditto.
3592 * breakpoint.c (create_internal_breakpoint): Ditto.
3593 (create_fork_vfork_event_catchpoint): Ditto.
3594 (create_exec_event_catchpoint): Ditto.
3595 (parse_breakpoint_sals): Ditto.
3596 (watch_command_1): Ditto.
3597 (handle_gnu_4_16_catch_command): Ditto.
3598 (clear_command): Ditto.
3599 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3600 * infcmd.c (run_stack_dummy): Ditto.
3601 * infrun.c (process_event_stop_test): Ditto.
3602 (check_sigtramp2): Ditto.
3603 (step_over_function): Ditto.
3604 * linespec.c (decode_line_2): Ditto.
3605 (decode_line_1): Ditto.
3606 * source.c (line_info): Ditto.
3607 * symtab.c (find_pc_sect_line): Ditto.
3609 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3611 * dwarf2cfi.c (struct context)
3612 (struct context_reg): Moved to dwarf2cfi.h
3613 (context_alloc, frame_state_alloc, context_cpy):
3614 Made extern instead of static, removed prototypes.
3615 * dwarf2cfi.h (struct context)
3616 (struct context_reg): New, moved from dwarf2cfi.c
3617 (context_alloc, frame_state_alloc, context_cpy):
3619 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3620 Changed from static to extern.
3621 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3622 (LINUX_SIGCONTEXT_FP_OFFSET)
3623 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3624 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3625 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3626 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3627 set_gdbarch_*() calls now use x86-64 specific functions
3628 instead of DWARF2 CFI ones.
3629 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3630 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3631 (x86_64_init_extra_frame_info): New prototypes.
3633 2002-10-23 David Carlton <carlton@math.stanford.edu>
3635 * linespec.c: #include "parser-defs.h".
3636 Delete prototype for find_template_name_end.
3637 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3639 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3641 * NEWS: add recent mi fixes.
3642 * varobj.c (struct varobj): Add new "updated" flag.
3643 (new_variable): Default "updated" flag to 0.
3644 (varobj_set_value): Set "updated" flag to 1 if value
3646 (varobj_update): Check varobj "updated" flag before
3647 comparing old and refreshed values. Fix for
3650 2002-10-23 David Carlton <carlton@math.stanford.edu>
3652 * parse.c (parse_exp_1): Use BLOCK_START.
3653 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3655 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3657 2002-10-23 David Carlton <carlton@math.stanford.edu>
3659 * symtab.c: Delete cplusplus_hint.
3660 Delete prototype for find_template_name_end.
3662 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3664 * symtab.h: Update comment.
3666 2002-10-23 Michael Snyder <msnyder@redhat.com>
3668 * printcmd.c (address_info): Restore quotes in output.
3669 * valops.c (value_of_local): Restore quotes in error message.
3671 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3673 * symtab.c (symbol_demangled_name): New function.
3674 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3675 turning most of it into a function.
3676 (symbol_demangled_name): Export.
3678 2002-10-23 Michael Snyder <msnyder@redhat.com>
3680 * valops.c (value_of_local): Restore quotes in error message.
3682 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3684 * symtab.c (symbol_init_language_specific): New function.
3685 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3686 turning most of it into a function.
3687 (symbol_init_language_specific): Export.
3689 2002-10-23 David Carlton <carlton@math.stanford.edu>
3691 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3692 (dwarf_attr_name): Ditto.
3693 (dwarf_type_encoding_name): Ditto.
3694 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3695 (process_die): Handle DW_TAG_namespace,
3696 DW_TAG_imported_declaration, DW_TAG_imported_module.
3697 (read_namespace): New function.
3699 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3701 * configure.in: Define NEW_PROC_API on Interix too.
3702 * configure: Regenerate.
3704 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3706 * configure: Regenerate using the proper version of autoconf.
3708 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3710 * findvar.c (read_var_value): Temporarily disable TLS code, until
3711 complete TLS support is added.
3713 2002-10-21 Jim Blandy <jimb@redhat.com>
3714 Elena Zannoni <ezannoni@redhat.com>
3716 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3717 for thread local storage locations.
3718 (struct symbol): Add objfile field.
3719 (SYMBOL_OBJFILE): Define.
3720 * dwarf2read.c (is_thread_local): New static variable.
3721 (new_symbol): If variable is in thread local fill in address class
3722 and objfile appropriately.
3723 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3725 * printcmd.c (address_info): Print the information for thread
3726 local storage variable.
3727 * findvar.c (read_var_value): In case of thread local variable,
3728 defer to the target vector code to compute address.
3730 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3732 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3733 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3735 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3737 * symtab.h (address_class): Rename
3738 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3739 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3740 * printcmd.c (address_info): Ditto.
3741 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3743 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3745 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3746 DBREG_DRX macro to acces debug registers.
3748 * Makefile.in (i386obsd-tdep.o): New target.
3750 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3751 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3753 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3754 * config/i386/obsd.mt: New file.
3755 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3756 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3757 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3758 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3759 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3760 * i386obsd-tdep.c: New file.
3762 2002-10-19 Adam Fedor <fedor@gnu.org>
3764 * objc-exp.y (name_not_typename): Fix invalid comment.
3766 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3768 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3769 to allocate partial syms and macro byte caches.
3771 2002-10-18 David Carlton <carlton@math.stanford.edu>
3773 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3775 2002-10-18 Adam Fedor <fedor@gnu.org>
3777 * stabsread.c (find_name_end): New function.
3778 (define_symbol): Use it.
3780 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3782 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3783 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3784 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3785 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3787 2002-10-17 David Carlton <carlton@math.stanford.edu>
3789 * symfile.h: Add opaque declaration for struct obstack.
3790 Declare obsavestring to take a const char *.
3791 * symfile.c (obsavestring): Make first argument a const char *.
3793 2002-10-16 Adam Fedor <fedor@gnu.org>
3795 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3796 names when matching breakpoints in current file.
3798 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3800 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3801 (read_tag_pointer_type): Add address class support.
3802 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3803 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3805 * gdbarch.h, gdbarch.c: Regenerate.
3806 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3807 (make_type_with_address_space, recursive_type_dump): Add address
3809 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3810 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3811 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3813 2002-10-16 Klee Dienes <kdienes@apple.com>
3815 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3816 to get the last character of a char[] buffer, not
3817 name[sizeof(vptr_name)-1].
3819 2002-10-14 Adam Fedor <fedor@gnu.org>
3821 * symtab.h: New objc_specific struct.
3822 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3823 (SYMBOL_DEMANGLED_NAME): Likewise.
3825 2002-10-14 Adam Fedor <fedor@gnu.org>
3827 * symfile.c (init_filename_language_table): Add ObjC file extension.
3829 2002-10-14 Adam Fedor <fedor@gnu.org>
3831 * utils.c (puts_filtered_tabular): New function.
3832 (fprintf_symbol_filtered): Get ObjC demangled name.
3833 * defs.h (puts_filtered_tabular): Declared.
3835 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3837 * c-lang.h (c_type_print_varspec_prefix): Delete.
3838 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3839 ``need_post_space'' parameter. Adjust all callers.
3841 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3843 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3844 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3845 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3846 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3848 2002-10-13 Adam Fedor <fedor@gnu.org>
3850 * source.c (print_source_lines): Update comments.
3852 2002-10-13 Adam Fedor <fedor@gnu.org>
3854 * valops.c (value_of_local): New function.
3855 (value_of_this): Use it.
3856 * value.h (value_of_local): Declared.
3858 2002-10-13 Adam Fedor <fedor@gnu.org>
3860 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3861 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3863 2002-10-12 Adam Fedor <fedor@gnu.org>
3865 * language.c (binop_result_type): Add language_objc to case.
3866 (integral_type): Likewise.
3867 (character_type): Likewise.
3868 (string_type): Likewise.
3869 (boolean_type): Likewise.
3870 (structured_type): Likewise.
3871 (binop_type_check): Likewise.
3873 2002-10-11 Adam Fedor <fedor@gnu.org>
3875 * printcmd.c (address_info): Print 'self' for ObjC.
3877 2002-10-11 Adam Fedor <fedor@gnu.org>
3879 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3882 2002-10-11 Adam Fedor <fedor@gnu.org>
3884 * language.h (CAST_IS_CONVERSION): Add language_objc.
3886 2002-10-11 Adam Fedor <fedor@gnu.org>
3888 * defs.h (enum language): Add language_objc.
3890 2002-10-11 Klee Dienes <kdienes@apple.com>
3892 * corefile.c (read_memory_typed_address): New function.
3893 * gdbcore.h (read_memory_typed_address): Add prototype.
3894 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3895 to read a value destined for a CORE_ADDR, not read_memory_integer.
3896 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3897 (f77_get_dynamic_lowerbound): Ditto.
3899 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3901 * utils.c (string_to_core_addr): After turning string into
3902 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3903 which will do necessary sign-extension, etc.
3905 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3907 * c-exp.y (THIS): Delete token and grammar rule.
3908 (yylex): Don't return THIS.
3909 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3910 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3911 * demangle.c (cplus_markers): Update comment. Put '$'
3912 first. Remove CPLUS_MARKER.
3913 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3914 * jv-exp.y (THIS): Delete token and grammar rule.
3915 (yylex): Don't return THIS.
3916 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3917 * objc-exp.y (THIS): Delete token and grammar rule.
3918 (yylex): Don't return THIS.
3919 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3920 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3921 (read_member_functions): Likewise for opname.
3922 (read_tilde_fields): Use is_cplus_marker.
3924 * defs.h (CPLUS_MARKER): Don't define.
3925 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3926 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3927 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3928 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3929 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3931 * config/i386/tm-i386v4.h: Delete file.
3932 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3933 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3934 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3935 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3936 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3937 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3938 * config/i386/i386v4.mt (TM_FILE): Likewise.
3939 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3941 2002-10-10 Marko Mlinar <markom@opencores.org>
3943 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3944 accidentially not commited 2002-10-09
3945 * gdbarch.h, gdbarch.c: Re-generate.
3947 2002-10-09 Marko Mlinar <markom@opencores.org>
3949 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3950 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3951 * gdbarch.h, gdbarch.c: Re-generate.
3953 2002-10-08 Petr Sorfa <petrs@caldera.com>
3955 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3957 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3958 so we can work on more than one compilation unit at a time. This
3959 helps prepare GDB to handle inter-CU die references.
3960 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3961 the code to be defined before struct comp_unit_head.
3962 (comp_unit_head): Added new members - offset, cu_head,
3963 begin_die, next and dwarf2_abbrevs.
3964 (dwarf2_abbrevs): Removed single static var; now member of
3965 struct comp_unit_head.
3966 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3968 (psymtab_to_symtab_1): Changed to work with the new
3969 struct comp_unit_head.
3970 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3971 constructs the dwarf2_abbrevs[] inside the cu_header.
3972 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3973 dwarf2_abbrev table to clean up.
3974 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3975 handling of dwarf2_abbrevs inside the cu_header.
3976 (read_partial_die): Now supports the call to the new
3977 dwarf2_lookup_abbrev.
3978 (read_full_die): Now supports the call to the new
3979 dwarf2_lookup_abbrev.
3981 2002-10-06 Christopher Faylor <cgf@redhat.com>
3983 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3984 insure that shell variables, such as "transformed_name" are propagated
3985 to later shell statements in rule.
3987 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3989 * config/i386/nm-i386sco.h: Add protection against
3990 multiple-inclusion. Include "i386/nm-i386v.h".
3991 (REGISTER_U_ADDR): Remove define.
3992 (i386_register_u_addr): Remove prototype.
3994 2002-10-04 Michael Snyder <msnyder@redhat.com>
3996 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3997 before treating it as a single-step event.
3999 2002-10-03 Adam Fedor <fedor@gnu.org>
4001 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
4002 (objc_demangle): Remove assignment in if statements, Replace
4004 (add_msglist): Likewise.
4005 (end_msglist): Likewise.
4006 (complare_selectors): Likewise.
4007 (selectors_info): Likewise.
4008 (compare_classes): Likewise.
4009 (classes_info): Likewise.
4010 (print_object_command): Likewise.
4011 (find_objc_msgcall_submethod): Replace PTR with void *.
4012 * objc-lang.h: Remove check for __STDC__.
4014 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
4016 * ui-out.h (ui_out_field_fmt_int): New prototype.
4017 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
4018 of field width and alignment.
4019 * stack.c (print_frame_info_base): When printing frame level, use
4020 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
4023 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
4025 * MAINTAINERS: Add self to Write After Approval list.
4027 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4029 * infcmd.c (interrupt_target_command_wrapper): Delete.
4030 (interrupt_target_command): Make non static.
4031 (nofp_registers_info): Make static.
4032 * stack.c (return_command_wrapper): Delete.
4033 (return_command): Make non static.
4035 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4037 * event-top.c (gdb_setup_readline): New function. Code moved from
4038 _initialize_event_loop().
4039 (_initialize_event_loop): Call gdb_setup_readline().
4041 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4043 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4044 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
4045 * gdbarch.h, gdbarch.c: Re-generate.
4047 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
4050 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4052 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4053 of fill_in_vptr_fieldno.
4055 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4057 * inferior.h (registers_info, stepi_command, nexti_command,
4058 continue_command, interrupt_target_command): Export from infcmd.c.
4059 * frame.h (args_info, selected_frame_level_changed_hook,
4060 return_command): Export from stack.c.
4061 * v850ice.c (stepi_command, nexti_command, continue_command): use
4062 prototypes from inferior.h.
4063 * tracepoint.c (registers_info, args_info, locals_info): Use
4064 prototypes from frame.h and inferior.h.
4065 * Makefile.in (mi-main.o): Add dependency on frame.h.
4067 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4069 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4070 value in register 3 adjusted by ppc_gp0_regnum.
4072 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4074 2002-10-02 Marko Mlinar <markom@opencores.org>
4076 * MAINTAINERS: Add myself to the Write After Approval list.
4078 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4080 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4081 of the section for the N64 ABI, fixed.
4083 * config/mips/tm-irix6.h: Include solib.h.
4085 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4087 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4090 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4092 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4093 and that "mi0" syntax has been removed.
4095 2002-09-30 David Carlton <carlton@math.stanford.edu>
4097 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4098 * ppc-sysv-tdep.c: #include "gdb_string.h".
4099 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4102 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4104 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4105 "vrsave"'s register number.
4107 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4109 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4110 use frame_unwind_signed_register to obtain the PC.
4111 (mips_frame_chain): Handle a generic dummy frame.
4112 (mips_init_extra_frame_info): When a generic dummy frame, don't
4113 re-compute the frame base.
4114 (mips_pop_frame): Handle generic dummy frames.
4115 (mips_gdbarch_init): When generic dummy frames, set
4116 use_generic_dummy_frames, push_dummy_frame to
4117 generic_push_dummy_frame, pc_in_call_dummy to
4118 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4119 generic_save_dummy_frame_tos.
4121 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4123 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4124 against TOP when TOP was explictly set.
4125 (generic_push_dummy_frame): Set TOP to zero.
4127 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4129 * event-loop.c (start_event_loop): Rename variable 'result' to
4130 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4132 2002-09-30 Keith Seitz <keiths@redhat.com>
4134 * gdb-events.sh (selected_thread_changed): New event.
4135 * gdb-events.c: Regenerated.
4136 * gdb-events.h: Regenerated.
4138 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4140 * MAINTAINERS: Add self to Write After Approval list.
4142 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4144 * disasm.c: New file.
4145 * disasm.h: New file.
4146 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4147 (compare_lines): Ditto.
4148 (dump_insns): Ditto.
4149 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4151 (do_assembly_only): Ditto.
4152 (do_disassembly): Renamed to gdb_disassembly and moved to
4153 disasm.c. Sdded uiout argument.
4154 * Makefile.in: Add new files. Reorder SFILES list. Update
4155 dependencies. Include libgdb.a later in the insight executable.
4157 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4159 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4160 bfd/elf64-alpha-fbsd.c.
4162 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4164 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4167 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4169 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4171 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4173 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4174 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4175 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4176 (S_msg_sig_post_reply): Ditto.
4178 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4180 * sh-tdep.c (sh_use_struct_convention): Use definition according
4182 (sh_push_arguments): Store in register with correct endianess.
4183 (sh_default_store_return_value): Ditto.
4184 (sh_gdbarch_init): Set sizeof long double to 8.
4186 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4188 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4189 Fix some whitespace problems.
4191 2002-09-27 David Carlton <carlton@math.stanford.edu>
4193 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4194 (mcore-tdep.o): Ditto.
4195 (ns32k-tdep.o): Ditto.
4196 (ns32knbsd-tdep.o): Ditto.
4198 (vax-tdep.o): Ditto.
4199 * cris-tdep.c: #include "gdb_string.h"
4200 * mcore-tdep.c: Ditto.
4201 * ns32k-tdep.c: Ditto.
4202 * ns32knbsd-tdep.c: Ditto.
4204 * vax-tdep.c: Ditto.
4206 2002-09-27 David Carlton <carlton@math.stanford.edu>
4208 * config/djgpp/fnchange.lst: Add entries for
4209 gdb/testsuite/gdb.c++/m-static files.
4211 2002-09-27 Jim Wilson <wilson@redhat.com>
4213 * MAINTAINERS: Add myself to the Write After Approval list.
4215 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4217 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4220 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4222 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4225 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4227 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4228 (rs6000_struct_return_address): Delete variable.
4229 (rs6000_store_struct_return): Update.
4230 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4231 deprecated_extract_struct_value_address.
4232 (rs6000_frame_align): New function.
4233 (rs6000_gdbarch_init): Set frame_align.
4235 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4237 From Grace Sainsbury <graces@redhat.com>:
4238 * Makefile.in (gdbtk-main.o): New target.
4239 (gdb.o): New target.
4241 (main.o): Update dependencies.
4242 (gdb$(EXEEXT)): Add gdb.o.
4243 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4244 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4245 (SUBDIR_GDBTK_CLEAN): Set.
4246 (install-gdbtk): Install the insight binary.
4247 (uninstall-gdbtk): New target.
4248 (all-gdbtk, clean-gdbtk): New rule.
4249 * top.c (use_windows): Default to zero.
4250 * main.c: Include "main.h".
4252 (struct captured_main_args): Delete.
4253 (gdb_main): New function.
4257 2002-09-25 Andrew Cagney <cagney@redhat.com>
4259 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4260 (frame_map_regnum_to_name): New function.
4261 (frame_map_name_to_regnum): New function.
4262 * frame.h (frame_map_name_to_regnum): Declare.
4263 (frame_map_regnum_to_name): Declare.
4264 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4265 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4266 * parse.c: Do not include "builtin-regs.h".
4267 (target_map_name_to_register): Delete function.
4268 (write_dollar_variable): Use frame_map_name_to_regnum.
4269 * parser-defs.h (target_map_name_to_register): Delete declaration.
4270 * expprint.c: Include "frame.h".
4271 (print_subexp): Use frame_map_regnum_to_name.
4272 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4273 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4275 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4277 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4278 wasn't saved, and the next innermost frame is a dummy, return the
4279 dummy frame's link register.
4281 2002-09-24 Jim Blandy <jimb@redhat.com>
4283 Fix from Paul Breed:
4284 * main.c (captured_main): Add a `break' after the case for 'b'.
4286 2002-09-24 Keith Seitz <keiths@redhat.com>
4288 * varobj.c (c_type_of_child): Use get_target_type instead
4289 of TYPE_TARGET_TYPE.
4291 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4293 * source.c (get_current_or_default_source_symtab_and_line): Remove
4295 (set_default_source_symtab_and_line): New function. Attempts to
4296 determine a source file to list lines from if one is not currently
4298 (get_current_source_symtab_and_line): Initialize sal.pc and
4300 (set_current_source_symtab_and_line): Mark argument as const.
4301 * source.h: Update declarations and comments.
4302 * linespec.c (decode_line_1): Replace call to removed routine above.
4303 * stack.c (print_frame_info_base): Ditto.
4304 * cli/cli-cmds.c (edit_command): Ditto.
4305 (list_command): Ditto.
4307 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4309 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4310 sal.pc and sal.end fields.
4311 (get_current_or_default_source_symtab_and_line): Ditto.
4312 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4313 so we do not cause a new source symtab to be searched for (reverting an
4314 unintentional change from the 2002-09-20 patch).
4315 * scm-lang.c (scm_unpac): Ditto.
4317 2002-09-21 Andrew Cagney <cagney@redhat.com>
4319 * complaints.c (symfile_explanations): Remove new-line from
4320 ``isolated_message''.
4321 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4322 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4324 2002-09-20 Nick Clifton <nickc@redhat.com>
4326 * NEWS: Announce that V850EA ISA is no longer supported.
4327 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4329 2002-09-20 David Carlton <carlton@math.stanford.edu>
4331 * Makefile.in (c-lang.o): Correct dependencies.
4332 (utils.o): Gather dependencies.
4334 * c-lang.c: #include "gdb_string.h"
4336 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4338 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4339 * cli/cli-cmds.c (list_command): New function. Implements the new
4341 (_init_cli_cmds): Add new command definition.
4342 * gdb.1: Document edit command.
4343 * doc/gdb.texinfo: Document edit command.
4345 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4347 * source.c: Make global variables current_source_symtab and
4348 current_source_line static.
4349 (list_command): Moved to cli/cli-cmds.c.
4350 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4351 (get_first_line_listed): New accessor function.
4352 (get_lines_to_list): New accessor function.
4353 (get_current_source_symtab_and_line): New function. Retrieves the
4354 position in the source code that we consider current.
4355 (get_current_or_default_source_symtab_and_line): New function.
4356 Like the above but attempts to determine a default position if one
4357 is not currently defined.
4358 (set_current_source_symtab_and_line): New function. Sets the source
4359 code position considered current and returns the previously set one.
4360 (clear_current_source_symtab_and_line): Reset stored information about
4361 a current source line.
4362 (_initialize_source): Remove registration for the "list" command and
4364 * source.h: Add declarations for the new functions above.
4365 * symtab.h: Remove declarations for the global variables mentioned
4367 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4368 obtain current source line.
4369 * linespec.c (decode_line_1): Ditto.
4370 * macroscope.c (default_macro_scope): Ditto.
4371 * scm-lang.c (scm_unpac): Ditto.
4372 * stack.c (print_frame_info_base): Ditto.
4373 * symfile.c (clear_symtab_users): Ditto.
4374 * symtab.c (decode_line_spec): Ditto.
4375 * cli/cli-cmds.c (list_command): Moved here from source.c.
4376 (ambiguous_line_spec): Moved here from source.c.
4377 (_init_cli_cmds): Add definition for "list" and its alias.
4378 * Makefile.in: Update dependencies.
4380 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4382 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4383 with what gcc thinks is correct.
4385 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4387 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4388 multiple register push instruction.
4390 2002-09-19 Jim Blandy <jimb@redhat.com>
4392 Add support for distinct host and target character sets.
4393 * charset.c, charset.h: New files.
4394 * c-exp.y: #include "charset.h".
4395 (yylex): Convert character and string literals to the target
4396 character set, before returning them as the semantic value of the
4398 * c-lang.c: #include "charset.h".
4399 (c_emit_char): Use charset-specific methods to recognize
4400 characters with backslash escape forms, to decide which characters
4401 to print literally and which to print using numeric escape
4402 sequences, and to convert target characters to host characters
4404 * utils.c: #include "charset.h".
4405 (no_control_char_error): New function.
4406 (parse_escape): Use charset-specific methods to recognize
4407 backslash escapes, parse `control character' notation, and convert
4408 characters from the host character set to the target character set.
4409 * configure.in: Set the default host character set.
4410 Check where to find iconv, and what its argument types might be.
4411 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4412 * Makefile.in (SFILES): List charset.c.
4413 (COMMON_OBS): List charset.o.
4414 (charset.o): New rule.
4415 (charset_h): New header dependency variable.
4416 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4417 (LIBICONV): New variable, set by configure.
4418 (CLIBS): Include $(LIBICONV) here.
4419 * aclocal.m4, config.in, configure: Regenerated.
4421 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4423 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4426 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4428 * gdb_mbuild.sh: New file.
4430 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4432 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4434 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4436 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4437 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4438 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4439 valops.c, value.h: Revert previous change.
4441 2002-09-18 Michael Snyder <msnyder@redhat.com>
4443 Preliminary support for Objective-C:
4444 * defs.h (language_objc): New enum value.
4445 (puts_filtered_tabular): Declaration only, exported from utils.c.
4446 (skip_quoted): Delete, declared in completer.h.
4447 * c-exp.y: Include completer.h.
4450 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4451 New operator enum values.
4452 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4453 * language.c (binop_result_type): Handle language_objc case.
4454 (integral_type, character_type, string_type, boolean_type,
4455 structured_type, binop_type_check): Ditto.
4456 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4457 (struct objc_specific): Add to general_symbol_info.
4458 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4459 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4460 * parser-defs.h (struct objc_class_str): New struct type.
4461 (start_msglist, end_msglist, add_msglist): Declaration only,
4462 exported from objc-lang.c.
4463 * value.h (value_of_local, value_nsstring,
4464 call_function_by_hand_expecting_type): Exported from valops.c.
4465 * valops.c (find_function_addr): Export.
4466 (call_function_by_hand_expecting_type): New function.
4467 (value_of_local): New function.
4468 * symfile.c (init_filename_language_table): Add ".m" extension
4470 * utils.c (puts_filtered_tabular): New function.
4471 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4472 (set/show demangle): Extend help-string to refer to ObjC.
4473 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4474 * stabsread.c (symbol_reference_defined): Objective-C symbols
4475 may contain colons: make allowances when scanning stabs strings
4477 (objc_find_colon): New function.
4478 * printcmd.c (address_info): If language == objc then print
4479 "self" instead of "this".
4480 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4481 OP_NSSTRING, and OP_SELF.
4482 (prefixify_subexp): Ditto.
4483 * source.c (print_source_lines): Mention objc in comment.
4484 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4487 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4489 * complaints.h: Update copyright.
4490 (struct complaints): Declare.
4491 (struct complaint): Make `message' constant.
4492 (internal_complaint): Declare.
4493 (complaint): Declare.
4494 (complaint_root): Delete declaration.
4495 (symfile_complaints): Delete declaration.
4496 (struct complaints): Add opaque declaration.
4497 (clear_complaints): Add a complaints parameter.
4498 * complaints.c: Update copyright.
4499 (enum complaint_series): Define.
4500 (complaint_root): Delete.
4501 (struct complaints): Define.
4502 (complaint_sentinel, symfile_complaint_book): New variables.
4503 (symfile_explanations, symfile_complaints): New variables.
4505 (get_complaints): New function.
4506 (vcomplaint): New function.
4507 (complaint): New function.
4508 (internal_complaint): New function.
4509 (complain): Call vcomplain with symfile_complaint.
4510 (clear_complaints): Rewrite.
4511 (_initialize_complaints): Use add_setshow_command.
4512 * Makefile.in (complaints.o): Update dependencies.
4513 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4514 to call to clear_complaints.
4515 (new_symfile_objfile, reread_symbols): Ditto.
4516 (oldsyms_complaint): Delete.
4517 (empty_symtab_complaint, unknown_option_complaint): Delete.
4518 (free_named_symtabs): Use complaint instead of complain.
4520 2002-09-18 Michael Snyder <msnyder@redhat.com>
4522 Contributed by Apple Computer, Inc. Merged with current sources
4523 by Adam Fedor <fedor@doc.com> [cagney].
4525 * objc-lang.c: First clean-up round: comments, indentation.
4526 * objc-lang.h: Ditto.
4527 * objc-lang.y: Ditto.
4529 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4531 * maint.c (maintenance_internal_error): Print the parameter as the
4533 (maintenance_internal_warning): New function.
4534 (_initialize_maint_cmds): Add command `maint internal-warning'.
4536 * defs.h (internal_warning, internal_vwarning): Declare.
4537 * utils.c (struct internal_problem): Define.
4538 (internal_vproblem): New function.
4539 (internal_warning): New function.
4540 (internal_vwarning): New function.
4541 (internal_warning_problem, internal_error_problem): New variables.
4542 (internal_verror): Just call internal_vproblem.
4544 2002-09-18 Michael Snyder <msnyder@redhat.com>
4546 * objc-lang.c: New file, support for Objective-C.
4547 Preliminary check-in, not yet integrated into gdb.
4548 * objc-lang.h: New file.
4549 * objc-exp.y: New file.
4551 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4553 * infrun.c (signal_stop_update): Convert definition to ISO C.
4554 (signal_print_update): Ditto.
4555 (signal_pass_update): Ditto.
4556 * inflow.c (terminal_save_ours): Ditto.
4558 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4561 * config/djgpp/fnchange.lst: Handle name clashes between
4562 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4565 * i386-linux-tdep.h: Fix tipo.
4567 2002-09-18 Adam Fedor <fedor@gnu.org>
4569 * MAINTAINERS: Add myself to the Write After Approval list.
4571 2002-09-18 Jim Blandy <jimb@redhat.com>
4573 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4574 texthigh and textlow to reader-specific structs caused
4575 objfile_relocate to miss them. This is fixable, but the work that
4576 the change was supposed to prepare GDB for never got done anyway.
4578 2002-09-18 David Carlton <carlton@math.stanford.edu>
4580 * MAINTAINERS: Alphabetize Write After Approval list.
4582 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4585 * values.c (value_static_field): Call read_var_value.
4587 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4589 * valops.c (hand_function_call): Align the initial stack pointer
4590 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4591 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4593 * mips-tdep.c (mips_frame_align): New function.
4594 (mips_gdbarch_init): Set frame_align.
4595 * gdbarch.sh (FRAME_ALIGN): New method.
4596 * gdbarch.h, gdbarch.c: Re-generate.
4598 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4600 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4603 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4605 * NEWS: Mention that MIPS $fp behavior changed.
4606 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4607 reference to FP_REGNUM.
4608 (mipsnbsd_cannot_store_register): Ditto.
4609 * mips-linux-nat.c: Update copyright.
4610 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4611 (mips_linux_cannot_store_register): Ditto.
4612 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4613 * config/mips/tm-mips.h: Update copyright.
4614 (FP_REGNUM): Delete macro.
4615 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4616 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4617 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4618 (mips_r3041_reg_names, mips_r3051_reg_names)
4619 (mips_r3081_reg_names): Replace "fp" with "".
4622 2002-09-17 Theodore A. Roth <troth@verinet.com>
4624 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4625 generic_read_register_dummy() (PR gdb/703).
4626 (avr_push_return_address): #if 0 out unused vars.
4627 (avr_gdbarch_init): Enable use of avr_push_return_address().
4629 2002-09-17 Michael Snyder <msnyder@redhat.com>
4631 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4632 RTE will take care of it.
4634 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4636 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4637 invalid, return SP_REGNUM.
4639 2002-09-17 Michael Snyder <msnyder@redhat.com>
4641 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4642 point registers without sign extension.
4644 2002-09-17 Andrew Cagney <cagney@redhat.com>
4646 * blockframe.c (deprecated_read_register_dummy): Rename
4647 generic_read_register_dummy.
4648 * frame.c (frame_unwind_signed_register): New function.
4649 (frame_unwind_unsigned_register): New function.
4650 * frame.h (frame_unwind_signed_register): Declare.
4651 (frame_unwind_unsigned_register): Declare.
4652 (deprecated_read_register_dummy): Rename
4653 generic_read_register_dummy.
4655 * h8300-tdep.c (h8300_frame_chain): Update.
4656 (h8300_frame_saved_pc): Update.
4657 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4658 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4659 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4660 (s390_frame_chain): Update.
4661 * v850-tdep.c (v850_find_callers_reg): Update.
4662 (v850_frame_saved_pc): Update.
4663 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4664 (m32r_find_callers_reg): Update.
4665 (m32r_frame_saved_pc): Update.
4666 * sh-tdep.c (sh_find_callers_reg): Update.
4667 (sh64_get_saved_pr): Update.
4668 (sh_init_extra_frame_info): Update.
4669 (sh_init_extra_frame_info): Update.
4670 (sh64_init_extra_frame_info): Update.
4671 (sh64_init_extra_frame_info): Update.
4672 * mcore-tdep.c (mcore_find_callers_reg): Update.
4673 (mcore_frame_saved_pc): Update.
4674 (mcore_init_extra_frame_info): Update.
4675 * i386-tdep.c (i386_frame_saved_pc): Update.
4676 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4677 (ia64_init_extra_frame_info): Update.
4678 (ia64_init_extra_frame_info): Update.
4679 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4680 * cris-tdep.c (cris_init_extra_frame_info): Update.
4681 * avr-tdep.c (avr_frame_chain): Update.
4682 (avr_init_extra_frame_info): Update.
4683 (avr_frame_saved_pc): Update.
4684 * arm-tdep.c (arm_find_callers_reg): Update.
4685 (arm_init_extra_frame_info): Update.
4686 (arm_frame_saved_pc): Update.
4688 2002-09-17 Tom Tromey <tromey@redhat.com>
4690 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4693 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4695 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4696 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4698 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4701 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4703 * osfsolib.c: Remove file, replaced by solib-osf.c.
4704 * Makefile.in: Remove compilation rules for osfsolib.c.
4706 2002-09-16 David Carlton <carlton@math.stanford.edu>
4708 * cp-valprint.c (cp_print_class_method): Correct args to
4709 check_stub_method_group.
4711 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4713 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4714 `set architecture'. Unify naming convention of functions.
4715 (h8300_skip_prologue): Improve prologue analysis.
4716 (h8300_push_arguments): Rewritten to more closely match GCC's
4717 bizarre argument-passing behavior, along with the comment describing
4719 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4720 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4721 sim, remote-e7000.c, remote-hms.c and remote.c
4723 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4725 * i386-tdep.c (gdb_print_insn_i386): Removed.
4726 (i386_print_insn): New function.
4727 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4728 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4731 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4733 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4736 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4738 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4739 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4740 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4742 2002-09-13 Christopher Faylor <cgf@redhat.com>
4744 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4746 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4748 * gdbtypes.c (check_stub_method): Make static.
4749 (check_stub_method_group): New function.
4750 * gdbtypes.h: Update prototypes.
4751 * cp-support.c: New file.
4752 * cp-support.h: New file.
4754 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4755 (update_method_name_from_physname): New function.
4756 (read_member_functions): Correct method names for operators
4757 and v3 constructors/destructors. Separate v2 constructors and
4759 * Makefile.in (stabsread.o): Update dependencies.
4760 (SFILES): Add cp-support.c.
4761 (COMMON_OBS): Add cp-support.o.
4762 (cp_support_h, cp-support.o): Add.
4764 * cp-valprint.c (cp_print_class_method): Call
4765 check_stub_method_group instead of check_stub_method. Remove
4767 * p-valprint.c (pascal_object_print_class_method): Likewise.
4768 * valops.c (search_struct_method): Likewise.
4769 (find_method_list, value_struct_elt_for_reference): Likewise.
4771 2002-09-13 Andrew Cagney <cagney@redhat.com>
4773 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4774 * gdbarch.h, gdbarch.c: Regenerate.
4776 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4778 * frame.c (find_saved_register): Delete function.
4779 * frame.h (find_saved_register): Delete declaration.
4782 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4784 * mips-tdep.c (read_next_frame_reg): Re-hack using
4785 frame_register_unwind.
4787 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4789 * mips-tdep.c (mips_get_saved_register): Re-hack using
4790 frame_register_unwind.
4792 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4794 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4795 vector. Will be useful for Interix.
4796 * gdbarch.h, gdbarch.c: Regenerate.
4798 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4799 name of the malloc function by NAME_OF_MALLOC.
4801 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4803 * value.h (find_function_in_inferior): Add const keyword to
4804 one of the parameters. Allows us to invoke this function with
4806 * valops.c (find_function_in_inferior): Likewise.
4808 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4810 * exec.c (xfer_memory): Fix compilation warning with old versions
4812 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4814 2002-09-12 David Carlton <carlton@math.stanford.edu>
4816 * symtab.h: Run through gdb_indent.h.
4817 Add 2002 to Copyright year list.
4819 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4821 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4823 * MAINTAINERS: Add myself to write after approval list.
4825 2002-09-11 J. Brobecker <brobecker@gnat.com>
4827 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4829 2002-09-11 J. Brobecker <brobecker@gnat.com>
4831 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4834 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4836 * procfs.c (do_detach): Clear current signal, not just fault.
4837 Corrects problem with breakpoint trap signal leaking to detached
4840 2002-09-10 Michael Snyder <msnyder@redhat.com>
4842 * buildsym.c (finish_block): Protect against null pointer.
4844 2002-09-10 Andrew Cagney <cagney@redhat.com>
4846 * infcmd.c (default_print_registers_info): Send all output to
4847 ``file'' instead of ``gdb_stdout''.
4849 2002-09-10 Michael Snyder <msnyder@redhat.com>
4851 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4852 LONGEST, and use signed register read (addresses are sign-
4855 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4857 * event-loop.c (gdb_do_one_event): Make public.
4858 * event-loop.h (gdb_do_one_event): Declare.
4860 2002-09-10 Jeff Law <law@redhat.com>
4862 * infttrace.c (child_resume): Simplify and rework to avoid
4865 2002-09-09 Fred Fish <fnf@intrinsity.com>
4867 * printcmd.c (print_scalar_formatted): "len" is the number of
4868 target bytes, NOT the number of target bits.
4870 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4872 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4873 * top.c (init_main): Set rl_terminal_name.
4875 2002-09-08 Aidan Skinner <aidan@velvet.net>
4877 * ada-lang.c (ada_array_bound, ada_type_match,
4878 _initialize_ada_language): Fix K&R definitions.
4879 * ada-tasks.c (get_current_task): Fix K&R definitions.
4880 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4882 2002-09-07 Christopher Faylor <cgf@redhat.com>
4884 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4887 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4889 * i386-tdep.c (i386_register_virtual_type,
4890 i386_register_convertible, i386_register_convert_to_virtual,
4891 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4892 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4893 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4894 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4895 Don't set push_arguments twice.
4897 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4898 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4899 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4900 sigtramp_end to NULL.
4901 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4903 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4905 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4908 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4909 * gdbarch.h, gdbarch.c: Re-generate.
4910 * blockframe.c (find_pc_sect_partial_function): Convert to use
4911 SIGTRAMP_START_P predicate.
4913 2002-09-05 Michael Snyder <msnyder@redhat.com>
4915 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4916 generic_dummy_frame method and old method. Also distinguish
4917 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4918 (arm_extract_return_value): Use new regcache method.
4920 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4921 adjustment that doesn't conform to the ABI.
4922 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4923 saved regcache, not from current regcache.
4925 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4927 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4930 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4932 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4933 if arm_apcs_32 is false.
4935 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4937 GDB 5.3 branch created.
4939 2002-09-03 Theodore A. Roth <troth@verinet.com>
4941 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4942 generic_unwind_get_saved_register.
4944 2002-09-03 David Carlton <carlton@math.stanford.edu>
4946 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4947 argument (PR gdb/653). Update call to smash_to_method_type.
4948 (read_structure_scope): Update call to dwarf2_add_member_fn.
4950 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4952 * x86-64-linux-tdep.c: Include gdb_string.h
4953 * x86-64-linux-nat.c: Ditto.
4955 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4957 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4958 when YYDEBUG is set to 1.
4959 * c-exp.y: Likewise.
4960 * f-exp.y: Likewise.
4961 * jv-exp.y: Likewise.
4962 * m2-exp.y: Likewise.
4963 * p-exp.y: Likewise.
4965 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4967 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4969 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4970 solib_svr4_fetch_link_map_offsets to
4971 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4972 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4973 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4974 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4975 solib-svr4.o, and solib-legacy.o.
4976 * config/i386/tm-nbsd.h: Include solib.h.
4978 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4980 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4981 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4982 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4983 comment noting that this needs its own target configuration.
4984 * config/i386/nbsd.mt: New file.
4985 * config/i386/nbsdaout.mt: Remove.
4986 * config/i386/nbsdelf.mt: Ditto.
4987 * config/i386/tm-nbsdaout.h: Ditto.
4989 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4991 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4992 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4993 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4995 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4996 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4997 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4999 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
5001 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
5002 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
5003 * i386-tdep.h (i386bsd_init_abi): New prototype.
5004 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
5005 function declaration.
5006 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
5007 for NetBSD-a.out or NetBSD-ELF.
5008 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
5009 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
5010 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
5011 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
5013 (i386nbsd_pc_in_sigtramp): New function.
5014 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5015 i386nbsd_pc_in_sigtramp.
5016 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
5017 and i386nbsdelf_init_abi OS ABI handlers.
5018 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
5019 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5021 2002-09-02 Mark Kettenis <kettenis@gnu.org>
5023 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
5024 registers if the target really has them.
5026 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5028 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
5031 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5033 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
5035 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
5036 (alphanbsd_skip_sigtramp_frame): New functions.
5037 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
5038 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
5039 to alphanbsd_sigcontext_addr.
5041 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5043 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
5045 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
5046 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5047 nbsd_pc_in_sigtramp.
5048 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5049 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5050 * nbsd-tdep.c: Include gdb_string.h.
5051 (nbsd_pc_in_sigtramp): New function.
5052 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
5053 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5054 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5055 ppcnbsd_pc_in_sigtramp.
5056 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5057 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5058 shnbsd_pc_in_sigtramp.
5059 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5060 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
5061 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5063 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
5065 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5066 watchpoints to NULL.
5067 (insert_breakpoints): set val field of watchpoints if NULL.
5070 2002-08-29 Jim Blandy <jimb@redhat.com>
5072 * symtab.c (lookup_symbol_aux): In the cases where we find a
5073 minimal symbol of an appropriate name and use its address to
5074 select a symtab to read and search, use `name' (as passed to us)
5075 as the demangled name when searching the symtab's global and
5076 static blocks, not the minsym's name.
5078 2002-08-29 Keith Seitz <keiths@redhat.com>
5080 * stack.c (print_frame_info_base): Always set current_source_symtab
5081 and current_source_line.
5083 2002-08-29 Donn Terry <donnte@microsoft.com>
5085 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5087 2002-08-28 Keith Seitz <keiths@redhat.com>
5089 * stack.c (select_frame): Add FIXME concerning selected-frame
5091 (select_frame_command): Send selected-frame-level-changed
5092 event notification, but only if the level actually changed.
5093 (up_silently_base): Add selected-frame-level-changed event
5095 (down_silently_base): Likewise.
5097 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5099 * Makefile.in: Update dependencies for all gdb/*.c files.
5101 2002-08-27 Tom Tromey <tromey@redhat.com>
5103 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5104 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5105 Update dependencies.
5106 * i387-tdep.c: Include gdb_string.h.
5107 * osabi.c: Likewise.
5108 * i386-linux-nat.c: Likewise.
5109 * lin-lwp.c: Likewise.
5110 * ax-gdb.c: Likewise.
5111 * signals/signals.c: Likewise.
5112 * jv-valprint.c: Likewise.
5113 * p-lang.c: Likewise.
5114 * c-valprint.c: Likewise.
5115 * cp-abi.c: Likewise.
5117 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5119 * cli/cli-script.h (copy_command_lines): Export.
5120 * breakpoint.c: Include cli/cli-script.h.
5121 * Makefile.in (breakpoint.o): Update dependencies.
5123 2002-08-26 Michael Snyder <msnyder@redhat.com>
5125 * breakpoint.c (insert_breakpoints): Protect all references
5126 to 'process_warning'. Shorten long lines.
5128 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5130 * cli/cli-script.c (copy_command_lines): New function.
5131 * defs.h (copy_command_lines): Export.
5132 * testsuite/gdb.base/commands.exp: New tests for commands
5133 attached to a temporary breakpoint, and for commands that
5134 delete the breakpoint they are attached to.
5136 2002-08-26 Michael Snyder <msnyder@redhat.com>
5138 * breakpoint.c (bpstat_stop_status): Instead of copying the
5139 pointer to the breakpoint commands struct, make a new copy
5140 of the struct and point to that.
5141 (bpstat_clear): Free the commands struct.
5142 (bpstat_clear_actions): Free the commands struct.
5143 (bpstat_do_actions): Free the command actions. Also execute
5144 the local cleanups, instead of deleting them.
5145 (delete_breakpoint): Leave the commands field of the bpstat
5146 chain alone -- it will be freed later.
5148 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5150 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5151 deleted in 2002-08-20 commit. This function is still used by
5154 2002-08-26 Keith Seitz <keiths@redhat.com>
5156 * gdb-events.sh: Add selected-frame-level-changed event.
5157 * gdb-events.c: Regenerated.
5158 * gdb-events.h: Regenerated.
5160 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5163 * inflow.c (terminal_save_ours): New function to save terminal
5165 * inferior.h (terminal_save_ours): Declare.
5166 * target.c (debug_to_terminal_save_ours): New function.
5167 (cleanup_target): Defaults to_terminal_save_ours.
5168 (update_current_target): Inherit to_terminal_save_ours.
5169 (setup_target_debug): Set to_terminal_save_ours.
5170 * target.h (target_terminal_save_ours): New to save terminal settings.
5171 (target_ops): New member to_terminal_save_ours.
5172 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5173 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5174 * inftarg.c (init_child_ops): Likewise.
5175 * m3-nat.c (init_m3_ops): Likewise.
5176 * procfs.c (init_procfs_ops): Likewise.
5177 * wince.c (init_child_ops): Likewise.
5178 * win32-nat.c (init_child_ops): Likewise.
5179 * sol-thread.c (init_sol_thread_ops): Likewise.
5181 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5183 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5184 use regcache_* functions.
5185 (i386_gdbarch_init): Set store_return_value instead of
5186 deprecated_store_return_value.
5188 * regcache.c (regcache_raw_write_signed,
5189 regcache_raw_write_unsigned): New functions.
5190 * regcache.h (regcache_raw_write_signed,
5191 regcache_raw_write_unsigned): New prototypes.
5193 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5195 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5196 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5197 source file dependencies. Cleanup corresponding generator rules.
5199 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5201 * regcache.h (register_offset_hack): Declare.
5202 (regcache_cooked_read_using_offset_hack): Declare.
5203 (regcache_cooked_write_using_offset_hack): Declare.
5205 * regcache.c (register_offset_hack): New function.
5206 (regcache_cooked_read_using_offset_hack): New function.
5207 (regcache_cooked_write_using_offset_hack): New function.
5208 (regcache_dump): Check that the registers, according to their
5209 offset, are packed hard against each other.
5210 (cooked_xfer_using_offset_hack): New function.
5212 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5214 * regcache.c (struct regcache_descr): Add field register_type.
5215 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5217 (init_regcache_descr): Initialize register_type. Pass the descr
5218 to init_legacy_regcache_descr. Use register_type instead of
5219 REGISTER_VIRTUAL_TYPE.
5220 (register_type): New function.
5221 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5222 * regcache.h (register_type): Declare.
5224 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5226 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5227 instead of deprecated_store_return_value. Fix fallout from
5228 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5230 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5232 * regcache.c (max_register_size): New function.
5233 (init_legacy_regcache_descr): Ensure that max_register_size is
5234 large enough for REGISTER_VIRTUAL_SIZE.
5235 * regcache.h (max_register_size): Declare.
5237 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5239 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5241 (e500_extract_return_value): Change type of valbuf pointer to
5244 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5246 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5249 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5250 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5251 long long) to prevent compiler warning on 64-bit systems.
5253 2002-08-23 Andrew Cagney <cagney@redhat.com>
5255 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5256 (DEPRECATED_STORE_RETURN_VALUE): New method.
5257 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5258 * gdbarch.h, gdbarch.c: Re-generate.
5260 * values.c (set_return_value): Pass current_regcache to
5262 * arch-utils.h (legacy_store_return_value): Declare.
5263 * arch-utils.c (legacy_store_return_value): New function.
5264 (legacy_extract_return_value): Update parameters.
5266 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5268 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5269 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5270 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5271 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5272 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5273 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5274 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5275 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5276 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5277 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5280 * i386-tdep.c (i386_extract_return_value): Update.
5281 * arch-utils.c (legacy_extract_return_value): Update.
5282 * frv-tdep.c (frv_gdbarch_init): Update.
5283 * cris-tdep.c (cris_gdbarch_init): Update.
5284 * d10v-tdep.c (d10v_gdbarch_init): Update.
5285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5286 * m68k-tdep.c (m68k_gdbarch_init): Update.
5287 * mcore-tdep.c (mcore_gdbarch_init): Update.
5288 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5289 * s390-tdep.c (s390_gdbarch_init): Update.
5290 * sparc-tdep.c (sparc_gdbarch_init): Update.
5291 * sh-tdep.c (sh_gdbarch_init): Update.
5292 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5293 * v850-tdep.c (v850_gdbarch_init): Update.
5294 * avr-tdep.c (avr_gdbarch_init): Update.
5295 * ia64-tdep.c (ia64_gdbarch_init): Update.
5296 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5297 * vax-tdep.c (vax_gdbarch_init): Update.
5298 * alpha-tdep.c (alpha_gdbarch_init): Update.
5299 * arm-tdep.c (arm_gdbarch_init): Update.
5300 * mips-tdep.c (mips_gdbarch_init): Update.
5301 * i386-tdep.c (i386_gdbarch_init): Update.
5303 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5305 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5306 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5308 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5310 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5313 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5315 * infrun.c (handle_inferior_event): Move a comment outside of a
5316 function call, in order to avoid indent reformatting this part
5317 of the code in an unreadable way.
5319 2002-08-23 Grace Sainsbury <graces@redhat.com>
5321 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5322 when breakpoints fail. Move general breakpoint error messages to
5324 * breakpoint.c (insert_breakpoints): Change warnings when
5325 breakpoints are nto inserted to specify the type. Remove call to
5326 memory_error when hardware breakpoints can't be inserted. Remove
5327 multiple calls to warning so all messages are sent to the user at
5329 (delete_breakpoints): Make insert error messsages more explicit.
5331 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5333 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5334 gdbserver/ChangeLog.
5336 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5338 * i386-tdep.c: Include "objfiles.h".
5339 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5340 skip_trampoline_code.
5341 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5342 (CPLUS_MARKER): Define to '.'.
5344 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5346 (linux_corefile_thread_callback): Increase args->num_notes.
5347 (linux_make_note_section): Initialize thread_args.num_notes, and
5348 use it to determine whether notes for any threads were created.
5350 2002-08-23 Donn Terry <donnte@microsoft.com>
5352 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5353 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5355 (write_with_trace): Conditionalize out the switch branch handling
5356 PCSHOLD if the corresponding macro is not defined. Likewise for
5357 PRSABORT and PRSTOP.
5358 This change will be needed by the Interix port.
5360 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5362 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5363 write_register wherever possible instead of manipulating the
5364 register bytes directly.
5365 Assign VALUE_CONTENTS to a variable and use that.
5366 The GPR numbers are now dependent on the architecture.
5368 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5370 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5372 (skip_prologue): Add support for BookE/e500 instructions.
5373 (e500_extract_return_value): New function.
5374 (frame_get_saved_regs): Add support for saving ev registers and
5376 (e500_store_return_value): New function.
5377 (rs6000_gdbarch_init): Move up default intializations of
5378 deprecated_extract_return_value and store_return_value. Overwrite
5379 init of store_return_value with e500 specific version.
5380 Set extract_return_value for e500.
5382 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5384 * blockframe.c (generic_call_dummy_register_unwind): Use
5385 regcache_cooked_read to catch cases in which the variable is
5386 stored in a pseudo register.
5388 2002-08-22 Andrew Cagney <cagney@redhat.com>
5390 * NEWS: Mention that the i960 has been made obsolete.
5391 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5393 (remote-nrom.o): Obsolete target.
5394 (remote-nindy.o, i960-tdep.o): Ditto.
5395 * remote-nrom.c: Make file obsolete.
5396 * remote-nindy.c, remote-vx960.c: Ditto.
5397 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5398 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5399 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5400 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5401 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5402 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5403 i960-*-vxworks* obsolete.
5404 * MAINTAINERS: Note that the i960 is obsolete.
5406 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5408 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5409 detach to allow reinitialization.
5411 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5413 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5416 2002-08-22 Jim Blandy <jimb@redhat.com>
5418 * coffread.c (coff_symfile_read): Don't try to read the line
5419 number table from disk if the image file doesn't have a symbol
5420 table; we'll never actually look at the info anyway, and Windows
5421 ships DLL's with bogus file offsets for the line number data.
5423 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5425 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5428 2002-08-21 Michael Snyder <msnyder@redhat.com>
5430 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5431 (MSYMBOL_SIZE): Replace macro with function.
5432 (DEFAULT_MIPS_TYPE): Delete unused macro.
5433 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5434 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5436 2002-08-21 Jim Blandy <jimb@redhat.com>
5438 * valops.c (value_cast): Simplify and correct logic for doing a
5439 static cast from a pointer to a base class to a pointer to a
5442 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5444 * infcmd.c (default_print_registers_info): Replace
5446 (registers_info): Use gdbarch_print_registers_info instead of
5448 * inferior.h (default_print_registers_info): Replace
5450 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5451 (DO_REGISTERS_INFO): Change to a predicate function.
5452 * gdbarch.h, gdbarch.c: Regenerate.
5454 2002-08-21 Keith Seitz <keiths@redhat.com>
5456 * gdb-events.sh: Add target-changed event.
5457 * gdb-events.c: Regenerated.
5458 * gdb-events.c: Regenerated.
5459 * valops.c (value_assign): Add target-changed event notification
5460 to inlval_register, lval_memory, and lval_reg_frame_relative.
5462 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5464 * NEWS: Add an entry regarding the improvement of the next/step
5465 operation on Alpha Tru64 multi-processor machines.
5467 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5469 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5471 * Makefile.in: Update all _h macro definitions.
5472 * Makefile.in (install-gdbtk): Move to install section.
5473 (rdi-share/libangsd.a): Move to end of file.
5475 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5477 * frame.c (frame_register_unwind): When a register, set addrp to
5478 the register's byte.
5480 2002-08-20 Michael Snyder <msnyder@redhat.com>
5482 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5483 used locally, so move them from the target machine header to here.
5484 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5485 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5487 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5489 2002-08-20 Andrew Cagney <cagney@redhat.com>
5491 * NEWS: Mention that the Apollo line was made obsolete.
5492 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5493 m68*-hp-hpux* obsolete.
5494 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5495 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5496 * buildsym.c (make_blockvector): Make static.
5497 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5498 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5499 (ALLDEPFILES): Remove dstread.c.
5500 (dstread.o): Obsolete make rule.
5501 * dstread.c: Makefile obsolete.
5503 * config/m68k/hp300hpux.mt: Ditto.
5504 * config/m68k/hp300hpux.mh: Ditto.
5505 * config/m68k/hp300bsd.mt: Ditto.
5506 * config/m68k/hp300bsd.mh: Ditto.
5507 * config/m68k/apollo68b.mt: Ditto.
5508 * config/m68k/apollo68v.mh: Ditto.
5509 * config/m68k/apollo68b.mh: Ditto.
5511 2002-08-20 Michael Snyder <msnyder@redhat.com>
5513 * mips-tdep.c (mips_in_return_stub): Make static.
5514 (mips_gdbarch_init): Set in_solib_return_trampoline.
5515 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5517 2002-08-20 Michael Snyder <msnyder@redhat.com>
5519 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5520 * gdbarch.c, gdbarch.h: Regenerate.
5521 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5523 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5525 2002-08-20 Michael Snyder <msnyder@redhat.com>
5527 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5528 (mips_gdbarch_init): Set skip_trampoline_code,
5529 in_solib_call_trampoline.
5530 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5531 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5533 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5535 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5537 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5538 vector type for ev registers.
5539 (e500_pseudo_register_read): New function.
5540 (e500_pseudo_register_write): New function.
5541 (e500_dwarf2_reg_to_regnum): New function.
5542 (PPC_UISA_NOFP_SPRS): New macro.
5543 (PPC_EV_REGS): New macro.
5544 (PPC_GPRS_PSEUDO_REGS): New macro.
5545 (registers_e500): New register set for e500.
5546 (variants): Add e500 variant.
5547 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5548 before setting architectural dependent variations. Initialize ev
5549 registers numbers. Add case for e500 architecture. Set the
5550 number of pseudo registers.
5552 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5554 * rs6000-tdep.c: Clean up comments.
5556 2002-08-20 Andrew Cagney <cagney@redhat.com>
5558 * h8300-tdep.c: Re-indent file.
5560 2002-08-20 Jim Blandy <jimb@redhat.com>
5562 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5565 2002-08-20 Keith Seitz <keiths@redhat.com>
5567 * breakpoints.c (watch_command_1): Use internal breakpoint
5568 when setting a watchpoint_scope breakpoint.
5570 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5572 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5573 (build_builtin_type_vec64i): Ditto.
5574 (build_builtin_type_vec128): Ditto.
5575 (build_builtin_type_vec128i): Ditto.
5577 2002-08-19 Michael Snyder <msnyder@redhat.com>
5579 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5580 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5581 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5582 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5583 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5584 CALL_DUMMY_ADDRESS): Delete.
5585 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5586 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5587 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5588 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5589 push_return_address.
5590 (mips_register_raw_size, mips_eabi_use_struct_convention,
5591 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5592 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5593 mips_init_extra_frame_info, mips_eabi_push_arguments,
5594 mips_n32n64_push_arguments, mips_push_return_address,
5595 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5596 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5598 2002-08-19 Michael Snyder <msnyder@redhat.com>
5600 * mips-tdep.c (mips_frame_num_args): New function.
5601 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5602 frame_saved_pc, frame_args_address, frame_locals_address,
5603 frame_num_args, and frame_args_skip.
5604 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5605 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5606 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5607 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5609 2002-08-20 Michael Snyder <msnyder@redhat.com>
5611 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5612 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5613 * mips-tdep.c (mips_store_struct_return): New function.
5614 (mips_extract_struct_value_address): New function.
5615 (mips_gdbarch_init): Set store_struct_return and
5616 extract_struct_value_address.
5618 2002-08-20 David Carlton <carlton@math.stanford.edu>
5620 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5621 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5622 (read_file_scope): Check that line_header is nonzero before
5623 decoding macro information.
5625 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5627 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5628 flag the general-purpose registers as floating-point on targets
5629 that don't support the floating-point registers.
5631 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5633 * rs6000-tdep.c (altivec_register_p): Delete.
5634 (rs6000_do_altivec_registers): Delete.
5635 (rs6000_altivec_registers_info): Delete.
5636 (rs6000_do_registers_info): Delete.
5637 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5638 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5640 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5642 * infcmd.c (do_registers_info): Print vector registers in hex
5644 (print_vector_info): Check that printing registers
5646 (print_float_info): Ditto.
5648 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5650 * mips-tdep.c (mips_gdbarch_init): Update.
5651 (mips_o32_extract_return_value): Rewrite.
5652 (mips_o32_store_return_value): Rewrite.
5653 (mips_o32_xfer_return_value): New function.
5654 (mips_xfer_register): Tweak debug print message. Allow for
5655 buf_offset when dumping the value transfered.
5657 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5659 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5660 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5661 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5662 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5663 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5665 2002-08-14 Michael Snyder <msnyder@redhat.com>
5667 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5669 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5671 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5673 (P): New macro to define a register as a pseudo register.
5674 (R, R4, R8, R16, FR32, R64, R0): Updated.
5675 (struct variant): Add new fields for number of pseudo registers
5676 and number of total registers.
5677 (tot_num_registers): New macro replacing....
5678 (num_registers): ...deleted macro.
5679 (num_registers): New function.
5680 (num_pseudo_registers): New function.
5681 (variants): Update all variants to intialize new fields correctly.
5682 Postpone initialization of number of pseudo regs and real regs.
5683 (init_variants): New function.
5684 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5687 2002-08-19 David Carlton <carlton@math.stanford.edu>
5689 * valops.c (search_struct_field): Change error message to treat
5690 return value of 0 from value_static_field as meaning that field is
5692 (value_struct_elt_for_reference): Ditto.
5693 * values.c (value_static_field): Treat an unresolved location the
5694 same as a nonexistent symbol. Fix PR gdb/635.
5695 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5696 enclosed. Fix PR gdb/574.
5697 * MAINTAINERS: Add self to Write After Approval list.
5699 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5701 * mips-tdep.c (mips_xfer_register): New function.
5702 (mips_n32n64_extract_return_value): Rewrite.
5703 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5704 instead of deprecated_extract_return_value.
5706 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5708 * rs6000-tdep.c (TDEP): Delete macro.
5709 (branch_dest): Replace use of TDEP macro with its body.
5710 (rs6000_pop_frame): Ditto.
5711 (rs6000_push_arguments): Ditto.
5712 (rs6000_skip_trampoline_code): Ditto.
5713 (rs6000_frame_saved_pc): Ditto.
5714 (rs6000_frame_chain): Ditto.
5715 (rs6000_register_name): Ditto.
5716 (rs6000_register_byte): Ditto.
5717 (rs6000_register_raw_size): Ditto.
5718 (rs6000_register_virtual_type): Ditto.
5719 (rs6000_register_convertible): Ditto.
5720 (rs6000_convert_from_func_ptr_addr): Ditto.
5722 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5724 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5726 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5727 MIPS_LINUX_JB_ELEMENT_SIZE.
5728 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5729 for MAX_REGISTER_RAW_SIZE arrays.
5730 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5731 MIPS_LINUX_JB_ELEMENT_SIZE.
5733 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5735 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5737 2002-08-19 Aidan Skinner <aidan@velvet.net>
5739 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5740 ada-valprint.c ada-tasks.c.
5741 (YYFILES): Add ada-exp.y.
5742 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5743 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5744 (ada-exp.tab.o): New target.
5746 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5748 * regcache.c (regcache_xfer_part): New function.
5749 (regcache_raw_read_part): New function.
5750 (regcache_raw_write_part): New function.
5751 (regcache_cooked_read_part): New function.
5752 (regcache_cooked_write_part): New function.
5753 * regcache.h (regcache_raw_read_part): Declare.
5754 (regcache_raw_write_part): Declare.
5755 (regcache_cooked_read_part): Declare.
5756 (regcache_cooked_write_part): Declare.
5758 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5760 * remote.c (remote_open_1): Add async_p.
5761 (remote_async_open_1): Delete.
5762 (open_remote_target): Delete.
5763 (remote_open, extended_remote_open): Update calls to remote_open_1.
5764 (remote_async_open, extended_remote_async_open): Call
5765 remote_open_1 instead of remote_async_open_1.
5767 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5769 * blockframe.c: Fix a few coding standard violations.
5771 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5773 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5775 * config/i386/tm-i386sco5.h: ... here. File removed.
5776 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5778 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5779 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5780 (TM_FILE): Set to tm-i386.h.
5781 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5782 * config/i386/tm-i386v.h: Remove file.
5783 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5784 instead of "i386/tm-i386v.h".
5785 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5786 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5788 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5789 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5792 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5794 * config/i386/nm-i386v.h: Add protection against
5796 (i386_register_u_addr): Remove prototype.
5797 (register_u_addr): New prototype.
5798 (REGISTER_U_ADDR): Redefine accordingly.
5799 * i386v-nat.c: Improve several comments.
5800 (i386_register_u_addr): Change signature and rename to
5801 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5804 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5806 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5807 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5808 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5809 deprecated_extract_return_value.
5810 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5811 rename mips_o32o64_push_arguments.
5812 (mips_gdbarch_init): Update.
5813 (mips_extract_return_value): Delete.
5814 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5815 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5816 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5817 (mips_n32n64_extract_return_value): Clone
5818 mips_extract_return_value.
5819 (mips_store_return_value): Delete.
5820 (mips_o32_store_return_value): Clone mips_store_return_value.
5821 (mips_o64_store_return_value): Clone mips_store_return_value.
5822 (mips_eabi_store_return_value): Clone mips_store_return_value.
5823 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5825 2002-08-18 Aidan Skinner <aidan@velvet.net>
5827 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5828 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5830 2002-08-18 Aidan Skinner <aidan@velvet.net>
5832 * ada-lang.c: Run through gdb_indent.sh.
5833 * ada-lang.h: Run through gdb_indent.sh.
5834 * ada-tasks.c: Run through gdb_indent.sh.
5835 * ada-typeprint.c: Run through gdb_indent.sh.
5836 * ada-valprint.c: Run through gdb_indent.sh.
5838 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5840 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5843 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5845 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5847 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5848 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5850 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5851 write_register_gen instead of write_register_bytes.
5853 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5854 i[3456]-*-osf1mk* configurations have been made obsolete.
5855 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5856 i[3456]86-*-osf1mk* hosts obsolete.
5857 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5859 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5860 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5861 config/i386/i386m3.mt, config/i386/nm-m3.h,
5862 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5863 config/i386/i386mk.mh, config/i386/i386mk.mt,
5864 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5866 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5867 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5868 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5870 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5872 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5873 (hppa_value_returned_from_stack): Declare.
5874 (hppa_extract_return_value): Declare.
5875 * config/pa/hppa.mt: New file.
5876 * configure.tgt: Recognize hppa*-*-*.
5877 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5879 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5881 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5884 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5886 * top.c (gdb_rl_operate_and_get_next): Make sure
5887 operate-and-get-next functions correctly even when the history
5888 list is completely filled.
5890 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5892 * MAINTAINERS (Target Instruction Set Architectures): Rename
5893 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5894 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5895 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5896 already listed under Host/Native.
5898 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5899 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5902 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5904 * config/ia64/ia64.mt: New file.
5905 * config/alpha/alpha.mt: New file.
5906 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5907 ia64-linux-gnu. Mention that ia64-elf is broken.
5908 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5910 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5912 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5913 generic_func_frame_valid instead of func_frame_valid.
5915 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5917 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5918 procfs appears to be broken when debugging on multi-processor
5919 machines. So enable software single stepping in order to avoid
5920 using the procfs interface to do next/step operations, using
5921 internal breakpoints instead.
5923 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5924 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5925 make this pc address equal to the value it would have if the
5926 system stepping capability was used. Also set a new flag used
5927 to ensure that we don't readjust the PC one more time later.
5929 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5930 address by DECR_PC_AFTER_BREAK when software single step is
5931 in use for this architecture, as this has already been taken
5932 care of in handle_inferior_event().
5934 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5936 * infrun.c (handle_inferior_event): Minor reformatting, to make
5937 a rather long condition expression easier to read.
5939 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5941 * Makefile.in (gdbtk.o): Move to end of file.
5942 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5943 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5944 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5945 (gdbtk-wrapper.o, gdbres.o): Ditto.
5947 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5949 * Makefile.in (copying.o): Separate out compile rule.
5950 (hpux-thread.o, procfs.o, signals.o): Ditto.
5951 (v850ice.o, z8k-tdep.o): Ditto.
5952 (tui-file.o): Move to TUI section.
5953 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5954 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5956 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5958 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5959 skip_trampoline_code, for better namespace-proofing.
5961 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5963 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5965 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5967 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5969 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5970 signal, check whether we hit a breakpoint before checking for a
5971 single step breakpoint. Otherwise, GDB fails to notice that a
5972 breakpoint has been hit when stepping onto a breakpoint.
5974 2002-08-16 Keith Seitz <keiths@redhat.com>
5976 * gdb-events.sh (clear_gdb_event_hooks): New function.
5977 * gdb-events.c: Regenerate.
5978 * gdb-events.h: Regenerate.
5980 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5982 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5983 not_a_sw_breakpoint.
5984 * breakpoint.h (bpstat_stop_status): Add parameter names.
5986 2002-08-16 Grace Sainsbury <graces@redhat.com>
5988 * remote.c (remote_insert_hw_breakpoint)
5989 (remote_remove_hw_breakpoint): Fix calculation of length field
5992 2002-08-15 Michael Snyder <msnyder@redhat.com>
5994 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5995 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5996 (supply_fpregset): Ditto.
5998 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5999 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
6000 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
6001 (TARGET_READ_SP): Delete.
6002 (DO_REGISTERS_INFO): Delete.
6003 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
6005 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
6006 from macros to functions.
6008 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
6009 (mips_register_convertible, mips_register_convert_to_virtual,
6010 mips_register_convert_to_raw): Make static.
6011 (mips_read_sp): New function.
6012 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
6013 (mips_do_registers_info): Make static.
6014 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
6015 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
6016 (mips_register_convert_from_type, mips_register_convert_to_type):
6018 (mips_gdbarch_init): Set up function_start_offset,
6019 register_virtual_size, pc_in_sigtramp.
6021 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6023 * infcmd.c (vector_info): New function.
6024 (_initialize_infcmd): Add command "info vector".
6025 (print_vector_info): New function.
6027 * gdbarch.sh (PRINT_VECTOR_INFO): New method
6028 * gdbarch.h, gdbarch.c: Regenerate.
6030 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6032 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
6033 ``print_all''. Only print vector registers when ``print_all''.
6035 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6037 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
6038 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
6040 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
6041 Add `args' parameter.
6042 * gdbarch.h, gdbarch.c: Regenerate.
6044 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
6046 * infcmd.c (float_info): Call print_float_info.
6047 (print_float_info): New function. By default, print the
6048 floating-point registers.
6050 * arch-utils.h (default_print_float_info): Delete declaration.
6051 * arch-utils.c (default_print_float_info): Delete function.
6053 2002-08-16 Mark Kettenis <kettenis@gnu.org>
6055 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6058 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6061 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6062 * configure.host: Make i[3456]86-*-aix host obsolete.
6063 * configure.tgt: Make i[3456]86-*-aix target obsolete.
6064 * config/i386/i386aix.mh, config/i386/i386aix.mt,
6065 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6066 config/i386/xm-i386aix.h: Make files obsolete.
6067 * i386aix-nat.c: Make file obsolete.
6068 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6069 (i386aix-nat.o): Make target obsolete.
6071 * config/i386/nm-gnu.h: Removed.
6072 * config/i386/nm-i386gnu.h: New file.
6073 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6074 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6076 * config/i386/tm-i386gnu.h: ... here. Removed.
6077 * config/i386/xm-i386gnu.h: Removed.
6078 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6079 (NAT_FILE): Set to nm-i386gnu.h.
6080 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6081 * i386-tdep.c: New file.
6082 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6083 (i386gnu-tdep.o): Specify dependencies.
6085 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6087 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6088 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6089 Adjust a few comments to reflect reality a bit closer.
6090 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6091 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6092 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6093 target_insert_watchpoint, target_remove_watchpoint):
6095 * config/i386/nm-i386sco5.h: ... here.
6096 (kernel_u_size): Add prototype. Improve a few comments and add
6097 protection against multiple inclusion.
6099 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6102 * uw-thread.c (SP_ARG0): Define if not already defined.
6103 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6105 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6107 * config/i386/tm-i386.h: Don't include "regcache.h".
6109 * i387-tdep.h (i387_print_float_info): New prototype.
6110 * i387-tdep.c (print_i387_value, print_i387_ext,
6111 print_i387_status_word, print_i387_control_word): Add `struct
6112 ui_file *' argument and use it for output.
6113 (i387_print_float_info): Renamed from i387_float_info. Add
6114 `struct gdbarch *' and `struct ui_file *' arguments and use the
6116 * i386-tdep.c: Include "i387-tdep.h".
6117 (i386_gdbarch_init): Set print_float_info.
6118 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6119 (FLOAT_INFO): Remove define.
6121 2002-08-13 Michael Snyder <msnyder@redhat.com>
6123 * mips-tdep.c (mips_push_arguments): Rename to
6124 mips_eabi_push_arguments, and tune for EABI.
6125 (MIPS_REGS_HAVE_HOME_P): Delete.
6126 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6127 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6128 Delete references to mips_regs_have_home_p.
6130 2002-08-14 Keith Seitz <keiths@redhat.com>
6132 * Makefile.in (install-gdbtk): Create insight plugin directory.
6133 Install plugins.tcl file.
6135 2002-08-14 Keith Seitz <keiths@redhat.com>
6137 * configure.in: Move SUBDIRS to near top of the file so that
6138 --enable options may add things to it.
6139 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6140 * configure: Regenerate.
6142 2002-08-13 Michael Snyder <msnyder@redhat.com>
6144 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6145 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6146 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6148 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6150 * vax-tdep.c (vax_get_saved_register): Delete function.
6151 (vax_gdbarch_init): Update.
6152 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6153 (ns32k_gdbarch_init): Update.
6154 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6155 (alpha_gdbarch_init): Update.
6157 2002-08-13 Andrew Cagney <cagney@redhat.com>
6159 * regcache.c (init_regcache_descr): Overallocate the
6160 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6161 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6163 (set_register_cached): Add range checking assertions. Use
6166 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6168 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6169 numbers for MMX registers.
6171 2002-08-13 Andrew Cagney <cagney@redhat.com>
6173 * i386-tdep.c (i386_gdbarch_init): Use
6174 generic_unwind_get_saved_register.
6176 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6178 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6179 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6181 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6182 Delete. Add comment regarding this now-deleted target method.
6184 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6186 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6187 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6188 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6189 real PC and the page number (if it's within the memory bank window).
6190 (m68hc11_pseudo_register_write): Likewise when saving.
6191 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6192 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6193 (m68hc11_register_raw_size): And use 32-bit for it.
6194 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6195 16K memory bank is used by the prog; also use the virtual pc.
6197 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6199 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6200 (m68hc11_gdbarch_init): Install it in gdbarch.
6201 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6202 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6203 (MSYMBOL_SIZE): New for documentation.
6204 (insn_return_kind): Enum to specify how a function returns.
6205 (frame_extra_info): Cleanup and record the return mode.
6206 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6207 register in address computation.
6208 (m68hc11_get_return_insn): New to obtain the return instruction used
6210 (m68hc11_frame_init_saved_regs): Take into account the return
6211 instruction used by the function for far and interrupt functions.
6212 (m68hc11_init_extra_frame_info): Take into account page register.
6213 (m68hc11_frame_args_address): Adjust according to the return mode.
6214 (show_regs): Print page register only when it's used.
6216 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6218 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6219 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6220 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6222 (m68hc11_register_raw_size): Likewise.
6224 2002-08-13 Andrew Cagney <cagney@redhat.com>
6226 * i386-tdep.c (i386_register_name): Handle mmx registers.
6227 (mmx_regnum_p): New function.
6228 (i386_mmx_names): New array.
6229 (mmx_num_regs): New variable.
6230 (i386_pseudo_register_read): New function.
6231 (i386_pseudo_register_write): New function.
6232 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6234 * regcache.c (regcache_raw_read_unsigned): New function.
6235 (regcache_raw_read_signed): New function.
6236 * regcache.h (regcache_raw_read_unsigned): Declare.
6237 (regcache_raw_read_signed): Declare.
6239 2002-08-13 Andrew Cagney <cagney@redhat.com>
6241 * regcache.c (regcache_raw_read_as_address): Delete function.
6242 (regcache_cooked_read_signed): New function.
6243 (regcache_cooked_read_unsigned): New function.
6244 * regcache.h (regcache_cooked_read_signed): Declare.
6245 (regcache_cooked_read_unsigned): Declare.
6246 (regcache_raw_read_as_address): Delete declaration.
6248 * blockframe.c (generic_read_register_dummy): Use
6249 regcache_cooked_read_unsigned.
6250 * i386-tdep.c (i386_extract_struct_value_address): Use
6251 regcache_cooked_read_unsigned.
6253 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6256 double sizes according to ELF ABI flags.
6257 (gdbarch_tdep): Record elf_flags.
6259 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6261 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6262 (m6812_prolog): They can appear in 68HC12 function prologue.
6263 (m68hc11_frame_chain): Cleanup.
6265 2002-08-12 Andrew Cagney <cagney@redhat.com>
6267 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6269 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6270 (i386_linux_register_raw_size): Delete function.
6271 (i386_linux_init_abi): Update.
6272 * i386-tdep.c (i386_register_raw_size): Delete function.
6273 (i386_register_byte): Delete function.
6274 (i386_gdbarch_init): Update.
6275 (i386_register_size): Delete array.
6276 (i386_register_offset): Delete array.
6278 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6279 (REGISTER_RAW_SIZE): Delete macro.
6280 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6281 (REGISTER_BYTE): Delete macro.
6283 2002-08-11 Aidan Skinner <aidan@velvet.net>
6285 * ada-lang.c (ada_lookup_partial_symbol)
6286 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6287 prototype names so that grep ^func works properly.
6289 * ada-lang.c (ada_array_element_type)
6290 (ada_lookup_partial_symbol): Fix typos in parameter list.
6292 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6293 Fix prototype names so that grep ^func works properly.
6295 2002-08-10 Andrew Cagney <cagney@redhat.com>
6296 Elena Zannoni <ezannoni@redhat.com>
6297 Martin M. Hunt <hunt@redhat.com>
6299 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6300 (build_builtin_type_vec128i): Set the vector bit.
6301 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6302 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6303 (build_builtin_type_vec64): New function.
6304 (build_builtin_type_vec64i): New function.
6305 (build_gdbtypes): Initialize builtin_type_vec64 and
6306 builtin_type_vec64i.
6308 2002-08-09 Andrew Cagney <cagney@redhat.com>
6310 * regcache.c (regcache_dump): Compare the register offset
6312 * arch-utils.c (generic_register_byte): New function.
6313 * arch-utils.h (generic_register_byte): Declare.
6314 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6315 * gdbarch.h, gdbarch.c: Regenerate.
6317 2002-08-09 Andrew Cagney <cagney@redhat.com>
6319 * regcache.c: Include "gdbcmd.h"
6320 (_initialize_regcache): Add commands "maintenance print
6321 registers", "maintenance print raw-registers" and "maintenance
6322 print cooked-registers".
6323 (enum regcache_dump_what): Define.
6324 (dump_endian_bytes): New function.
6325 (regcache_dump): New function.
6326 (regcache_print): New function.
6327 (maintenance_print_registers): New function.
6328 (maintenance_print_raw_registers): New function.
6329 (maintenance_print_cooked_registers): New function.
6330 * Makefile.in (regcache.o): Update dependencies.
6332 2002-08-09 Michael Snyder <msnyder@redhat.com>
6334 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6335 (mips_push_arguments): Correct some comments. Use paddr_nz
6336 for printing addresses in debug output. Replace static
6337 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6338 (mips_n32n64_push_arguments): New function, cloned from
6339 mips_push_arguments and tuned for the n32/n64 ABI.
6340 (mips_push_register): Buffer needs dynamic allocation.
6341 (mips_print_register): Ditto.
6342 (do_gp_register_row): Ditto.
6343 (mips_store_return_value): Ditto.
6344 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6346 2002-08-09 Don Howard <dhoward@redhat.com>
6348 * memattr.c (mem_info_command): Print special case of upper bound
6349 as max CORE_ADDR + 1.
6351 2002-08-08 Michael Snyder <msnyder@redhat.com>
6353 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6354 returns structs by ref if they're too big to fit in two registers.
6356 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6358 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6360 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6361 mips_find_saved_regs().
6362 (mips_pop_frame): Likewise.
6364 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6366 * blockframe.c (frame_saved_regs_register_unwind): Revise
6367 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6370 2002-08-09 Grace Sainsbury <graces@redhat.com>
6372 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6373 T-packets; the 'a' is not taken as a register number.
6374 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6375 (remote_stopped_data_address): New functions; add to target
6377 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6378 prototypes to match other implementations of this
6379 function. replace integer argument with pointer -- the length
6380 field in the Z-packet is the length of what is pointed to or 1 if
6381 pointer is null. Add to target vector.
6382 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6386 * remote.c (remote_wait): Add support to extract optional
6387 watchpoint information from T-packet. Ignore unrecognized
6388 optional info in T-packet.
6389 (remote_async_wait): Ditto.
6391 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6393 * cli/cli-dump.c: Change fopen modes to use binary open modes
6394 as defined in include/fopen-bin.h throughout.
6396 2002-08-08 Michael Snyder <msnyder@redhat.com>
6398 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6400 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6402 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6403 assertion failure by returning early after a warning.
6405 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6407 * mips-tdep.c (mips_find_saved_regs): Make static.
6408 (mips_frame_init_saved_regs): New function.
6409 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6410 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6411 (mips_find_saved_regs): Delete declaration.
6413 2002-08-08 Grace Sainsbury <graces@redhat.com>
6415 * remote.c (remote_wait, remote_async_wait): Change
6416 thread_num from int to ULONGEST.
6417 (unpack_varlen_hex): Change result parameter from
6418 int * to ULONGEST *.
6420 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6422 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6423 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6425 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6427 2002-08-08 Andrew Cagney <cagney@redhat.com>
6429 * gcore.c (override_derive_stack_segment): Delete variable.
6430 (preempt_derive_stack_segment): Delete function.
6431 (derive_stack_segment): Delete function.
6432 (default_derive_stack_segment): Renamed to derive_stack_segment.
6433 (override_derive_heap_segment): Delete variable.
6434 (preempt_derive_heap_segment): Delete function.
6435 (derive_heap_segment): Delete function.
6436 (default_derive_heap_segment): Rename to derive_heap_segment.
6438 2002-08-06 Michael Snyder <msnyder@redhat.com>
6440 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6441 * mips-tdep.c (mips_EABI_use_struct_convention,
6442 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6443 New functions. (mips_use_struct_convention): Delete.
6444 (mips_gdbarch_init): set use_gdbarch_convention.
6446 2002-08-06 Michael Snyder <msnyder@redhat.com>
6448 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6449 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6450 mips_o32_reg_struct_has_addr): New functions.
6451 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6453 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6455 * regcache.c (pseudo_register): Delete function.
6456 (fetch_register): Delete function.
6457 (store_register): Delete function.
6458 (regcache_raw_read, legacy_read_register_gen): Use
6459 target_fetch_registers instead of fetch_register.
6460 (legacy_write_register_gen, regcache_raw_write): Use
6461 target_store_register instead of store_register.
6462 (write_register_bytes): Ditto.
6464 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6465 (STORE_PSEUDO_REGISTER): Delete.
6466 * gdbarch.h, gdbarch.c: Regenerate.
6468 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6470 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6471 write dump file binary.
6473 2002-08-05 Michael Snyder <msnyder@redhat.com>
6475 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6476 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6477 (mips_gdbarch_init): Set N32 target to be mips64.
6479 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6481 * frame.c (find_saved_register): Break out of loop once saved
6482 register address is found. Don't mention sparc in loop comment
6485 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6487 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6488 mips_default_saved_regsize to 8.
6490 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6492 * gcore.c: Do not include <sys/procfs.h>.
6493 * Makefile.in (gcore.o): Update dependencies.
6495 2002-08-06 Andrew Cagney <cagney@redhat.com>
6497 * configure.tgt: Make arc-*-* obsolete.
6498 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6499 * MAINTAINERS: Make arc-elf obsolete.
6500 * arc-tdep.c: Make file obsolete.
6501 * config/arc/arc.mt: Ditto.
6502 * config/arc/tm-arc.h: Ditto.
6504 2002-08-05 Theodore A. Roth <troth@verinet.com>
6506 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6508 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6510 * mcore-tdep.c (mcore_gdbarch_init): Use
6511 generic_unwind_get_saved_register instead of
6512 generic_get_saved_register.
6513 * v850-tdep.c (v850_gdbarch_init): Ditto.
6514 * frv-tdep.c (frv_gdbarch_init): Ditto.
6515 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6516 * s390-tdep.c (s390_gdbarch_init): Ditto.
6517 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6518 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6519 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6521 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6523 * objfiles.h: Add missing #include "symfile.h"
6525 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6527 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6529 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6530 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6533 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6535 * NEWS: Cleanup and nitpick.
6537 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6539 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6541 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6543 * Makefile.in (gdbtk-bp.o): Update dependencies.
6544 (gdbtk-register.o): Ditto.
6545 (gdbtk-varobj.o): Ditto.
6547 2002-08-03 Andrew Cagney <cagney@redhat.com>
6549 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6550 m68hc11_fetch_pseudo_register.
6551 (m68hc11_pseudo_register_write): Replace
6552 m68hc11_store_pseudo_register.
6553 (m68hc11_gdbarch_init): Update.
6555 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6557 * gdbarch.sh: Include "gdb_string.h".
6558 * gdbarch.c: Regenerate.
6560 * regcache.c: Include "gdb_string.h".
6561 * ax-general.c: Ditto.
6563 * std-regs.c: Ditto.
6564 * fbsd-proc.c: Ditto.
6567 * Makefile.in (regcache.o): Update dependencies.
6568 (thread.o, gdbarch.o): Ditto.
6569 (ax-general.o, gdbarch.o): Ditto.
6570 (varobj.o, std-regs.o): Ditto.
6571 (fbsd-proc.o): Specify dependencies.
6573 2002-08-02 Andrew Cagney <cagney@redhat.com>
6575 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6577 (regcache_cooked_write): Ditto.
6579 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6581 * regcache.c (regcache_cooked_read): New function.
6582 (regcache_cooked_write): New function.
6583 (read_register_gen): Rewrite using regcache_cooked_read.
6584 (write_register_gen): Rewrite using regcache_cooked_write.
6586 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6589 2002-08-02 Andrew Cagney <cagney@redhat.com>
6591 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6592 Replace the architecture methods register_read and register_write.
6593 * gdbarch.h, gdbarch.c: Regenerate.
6594 * regcache.c (init_regcache_descr): Update.
6595 (read_register_gen): Update.
6596 (write_register_gen): Update.
6597 (supply_register): Update comment.
6599 * sh-tdep.c (sh_gdbarch_init): Update.
6600 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6601 `regcache' and `gdbarch' parameters. Make `buffer' a void
6602 pointer. Update code.
6603 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6604 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6605 void pointer. Update code.
6606 (sh64_register_write): Delete.
6607 (sh4_register_read): Delete.
6608 (sh64_register_read): Delete.
6609 (sh4_register_write): Delete.
6610 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6611 void pointer, `to' parameter a void pointer.
6612 (sh_sh64_register_convert_to_raw): Ditto.
6614 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6616 * mips-tdep.c (mips_register_virtual_type): Use architecture
6617 invariant return values.
6619 2002-08-01 Andrew Cagney <cagney@redhat.com>
6621 * linux-proc.c: Include "gdb_string.h".
6622 * Makefile.in (linux-proc.o): Update dependency list.
6624 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6626 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6629 2002-08-01 Grace Sainsbury <graces@redhat.com>
6631 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6632 to_insert_watchpoint, to_remove_watchpoint,
6633 to_stopped_by_watchpoint, to_stopped_data_address,
6634 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6635 target vecctor. Define their corresponding macros so they call
6638 * target.c: Add default and debug versions of for
6639 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6640 to_insert_watchpoint, to_remove_watchpoint,
6641 to_stopped_by_watchpoint, to_stopped_data_address,
6642 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6644 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6646 * mips-tdep.c (mips_register_virtual_type): New function.
6647 (mips_gdbarch_init): Register mips_register_virtual_type()
6648 with gdbarch machinery.
6649 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6650 this file instead of tm-bigmips.h.
6651 (MIPS_REGSIZE): Delete this macro.
6652 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6653 multiarch version in mips-tdep.c will be found.
6655 2002-08-01 Andrew Cagney <cagney@redhat.com>
6657 * NEWS: Menion that CHILL has been made obsolete.
6659 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6660 * stabsread.c (read_range_type): Ditto.
6661 * gdbtypes.h: Ditto.
6662 * language.c (binop_type_check): Ditto.
6663 (binop_result_type): Ditto.
6664 (integral_type): Ditto.
6665 (character_type): Ditto.
6666 (string_type): Ditto.
6667 (boolean_type): Ditto.
6668 (structured_type): Ditto.
6669 (lang_bool_type): Ditto.
6670 (binop_type_check): Ditto.
6671 * language.h (_LANG_chill): Ditto.
6672 * dwarfread.c (set_cu_language): Ditto.
6673 * dwarfread.c (CHILL_PRODUCER): Ditto.
6674 * dwarfread.c (handle_producer): Ditto.
6675 * expression.h (enum exp_opcode): Ditto.
6676 * eval.c: Ditto for comments.
6677 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6678 * expprint.c (print_subexp): Ditto.
6679 (print_subexp): Ditto.
6680 * valops.c (value_cast): Ditto.
6681 (search_struct_field): Ditto.
6682 * value.h (COERCE_VARYING_ARRAY): Ditto.
6683 * symfile.c (init_filename_language_table): Ditto.
6684 (add_psymbol_with_dem_name_to_list): Ditto.
6685 * valarith.c (value_binop): Ditto.
6687 * valops.c (value_slice): Ditto.
6688 * symtab.h (union language_specific): Ditto.
6689 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6690 (SYMBOL_DEMANGLED_NAME): Ditto.
6691 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6692 * defs.h (enum language): Ditto.
6693 * symtab.c (got_symtab): Ditto.
6694 * utils.c (fprintf_symbol_filtered): Ditto.
6696 * ch-typeprint.c: Make file obsolete.
6697 * ch-valprint.c: Make file obsolete.
6698 * ch-lang.h: Make file obsolete.
6699 * ch-exp.c: Make file obsolete.
6700 * ch-lang.c: Make file obsolete.
6702 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6704 (TARGET_FLAGS_TO_PASS): Ditto.
6705 (CHILLFLAGS): Obsolete.
6707 (CHILL_FOR_TARGET): Obsolete.
6708 (CHILL_LIB): Obsolete.
6709 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6711 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6712 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6714 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6717 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6719 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6720 This does not change anything at the moment, but will be helpful
6721 later when full Ada support is integrated.
6723 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6725 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6728 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6730 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6731 and save it in a local variable. Use variable in later test.
6733 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6735 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6736 test. (Thanks to Daniel Jacobowitz.)
6738 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6740 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6741 (mips_abi_strings): Add "n64".
6742 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6744 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6746 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6747 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6749 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6751 * utils.c (host_pointer_to_address, address_to_host_pointer):
6752 Use gdb_assert() instead of explicit call to internal_error().
6754 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6756 * Makefile.in (rs6000-nat.o): Update dependencies.
6758 From Nicholas Duffek:
6759 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6760 (aix-thread.o): New rule.
6761 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6762 * config/powerpc/aix432.mh: New file.
6764 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6766 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6767 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6768 (fetch_core_registers, ppc_linux_supply_gregset)
6769 (ppc_linux_supply_fpregset): New functions.
6770 (ppc_linux_regset_core_fns): New.
6771 (_initialize_ppc_linux_tdep): Call add_core_fns.
6772 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6773 and ppc_linux_supply_gregset.
6774 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6775 (supply_fpregset): Call ppc_linux_supply_fpregset.
6776 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6778 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6780 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6782 * symtab.c (lookup_symbol): Demangle before lowercasing.
6784 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6786 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6788 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6789 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6790 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6791 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6793 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6794 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6795 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6796 (avr-tdep.o, mon960-rom.o): Ditto.
6797 (aout_stabs_gnu_h): Define.
6798 (symtab_h): Remove $(gdb_obstack_h).
6800 2002-07-30 Jim Blandy <jimb@redhat.com>
6802 Patch from David Carlton <carlton@math.stanford.edu>:
6803 * gdbinit.in: Move the `dir' commands that add GDB's own source
6804 directory to the search path to the end, so that the `gdb' source
6805 directory will be searched first.
6807 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6809 * gdb_obstack.h: New file.
6810 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6811 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6812 * objfiles.h: Include "gdb_obstack.h".
6813 * Makefile.in (gdb_obstack_h): Define.
6814 (symtab_h): Add $(gdb_obstack_h).
6815 (objfiles_h): Add $(gdb_obstack_h).
6817 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6818 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6819 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6820 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6821 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6822 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6823 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6824 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6826 * Makefile.in (bcache.o): Update dependencies.
6827 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6828 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6829 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6830 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6831 (stabsread.o, symfile.o, symmisc.o): Ditto.
6832 (symtab.o, typeprint.o, macroexp.o): Ditto.
6833 (macrotab.o, mdebugread.o): Ditto.
6834 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6835 (coff_ecoff_h, aout_aout64_h): Define.
6836 (aout_stabs_gnu_h, libaout_h): Define.
6838 2002-07-29 Andrew Cagney <cagney@redhat.com>
6840 * regcache.c (struct regcache_descr): Rename nr_registers to
6841 nr_cooked_registers. Revise comments describing the structure
6843 (init_regcache_descr): Update.
6844 (init_legacy_regcache_descr): Update.
6845 (read_register_gen, write_register_gen): When a cooked register in
6846 the raw register range, directly access the value from the raw
6849 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6851 * z8k-tdep.c: Do not include "obstack.h".
6852 * h8300-tdep.c, h8500-tdep.c: Ditto.
6853 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6854 * valprint.c, v850-tdep.c: Ditto.
6855 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6856 * mn10200-tdep.c: Ditto.
6858 * Makefile.in (z8k-tdep.o): Update dependencies.
6859 (m68hc11-tdep.o, valprint.o): Ditto.
6860 (v850-tdep.o, d10v-tdep.o): Ditto.
6861 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6862 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6863 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6864 (sh_opc_h, gdb_sim_sh_h): Define.
6865 (elf_sh_h, elf_bfd_h): Define.
6866 (opcode_m68hc11_h): Define.
6867 (OPCODES_SRC, OPCODES_DIR): define.
6868 (OPCODES): Use $(OPCODES_DIR).
6869 (gdb_sim_d10v_h): Rename sim_d10v_h.
6870 (gdb_sim_arm_h): Rename sim_arm_h.
6872 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6874 * utils.c (host_pointer_to_address, address_to_host_pointer):
6875 Change internal_error() message to indicate function responsible
6878 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6880 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6881 calls to local_hex_string_custom().
6883 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6885 * irix5-nat.c: Move IRIX shared library support from here...
6886 * solib-irix.c: ...to here. Revised substantially to work with
6887 generic solib framework.
6889 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6890 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6891 * mips-irix-tdep.c: New file.
6893 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6894 (mips-irix-tdep.o, solib-irix.o): New rules.
6895 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6897 * config/mips/irix6.mt (TDEPFILES): Likewise.
6898 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6900 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6902 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6903 disabled (via ``#if 0'') includes.
6905 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6907 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6908 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6909 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6910 Add support for the fpscr register.
6911 * rs6000-nat.c (regmap, fetch_inferior_registers)
6912 (store_inferior_registers, fetch_core_registers): Likewise.
6914 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6916 * rs6000-nat.c (language.h): Include.
6917 (special_regs): Delete this array.
6918 (regmap): New function.
6919 (fetch_register, store_register): Use regmap() to map gdb
6920 register numbers to ptrace register numbers. Also, use
6921 outputs from regmap() to make decisions regarding type of
6922 ptrace() call to make. In particular, don't compare against
6923 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6924 (fetch_inferior_registers, store_inferior_registers): Where
6925 possible, obtain register numbers from tdep struct. Don't
6926 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6927 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6928 (LAST_UISA_SP_REGNUM): Delete.
6930 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6932 * rs6000-nat.c (ppc-tdep.h): Include.
6933 (fetch_registers, store_register, fetch_core_registers): Don't
6934 access registers[] directly. Instead, use supply_register() or
6935 regcache_collect() as appropriate.
6936 (find_toc_address): Format hex address with local_hex_string().
6938 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6940 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6943 2002-07-24 Tom Tromey <tromey@redhat.com>
6945 * jv-exp.y: Marked all strings with _().
6946 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6948 (MethodInvocation, CastExpression, parse_number, yyerror,
6949 java_type_from_name, push_expression_name, yylex): Typo fixes.
6951 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6953 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6954 (tee_file_flush, tee_file_write, tee_file_fputs)
6955 (tee_file_isatty): New.
6956 * ui-file.h (tee_file_new): Add prototype.
6958 2002-07-24 Aidan Skinner <aidan@velvet.net>
6960 * ada-lang.c: Change k&r style function definitions to prototyped
6962 * ada-typeprint.c: Change k&r style function definitions to prototyped
6964 * ada-valprint.c: Change k&r style function definitions to prototyped
6967 2002-07-24 Andrew Cagney <cagney@redhat.com>
6969 * README: Remove reference to remote-bug.
6970 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6972 (m88k-nat.o): Delete rule.
6973 (m88k-tdep.o): Delete rule.
6974 (remote-bug.o): Delete rule.
6975 * MAINTAINERS: Mark as obsolete.
6976 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6977 * m88k-tdep.c: Make file obsolete.
6978 * config/m88k/m88k.mh: Ditto.
6979 * config/m88k/delta88v4.mh: Ditto.
6980 * config/m88k/delta88v4.mt: Ditto.
6981 * config/m88k/delta88.mt: Ditto.
6982 * config/m88k/delta88.mh: Ditto.
6983 * remote-bug.c: Ditto.
6984 * config/m88k/tm-delta88.h: Ditto.
6985 * config/m88k/nm-delta88v4.h: Ditto.
6986 * config/m88k/xm-delta88.h: Ditto.
6987 * config/m88k/xm-dgux.h: Ditto.
6988 * config/m88k/tm-m88k.h: Ditto.
6989 * config/m88k/nm-m88k.h: Ditto.
6990 * config/m88k/tm-delta88v4.h: Ditto.
6991 * m88k-nat.c: Ditto.
6992 * cxux-nat.c: Ditto.
6993 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6994 and m88*-*-* obsolete.
6995 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6998 2002-07-24 Andrew Cagney <cagney@redhat.com>
7000 * findvar.c (extract_unsigned_integer): Make `addr' parameter
7001 constant. Same for local pointer variables.
7002 (extract_signed_integer): Ditto.
7003 * defs.h (extract_unsigned_integer): Update.
7004 (extract_signed_integer): Update.
7006 2002-07-24 Andrew Cagney <cagney@redhat.com>
7008 * regcache.c (regcache_raw_write): Change buf parameter to a
7009 constant void pointer.
7010 (regcache_raw_read): Change buf parameter to a void pointer.
7011 (legacy_write_register_gen): Change myaddr parameter a constant
7013 (supply_register): Change val parameter to a const void pointer.
7014 * regcache.h (regcache_raw_write): Update declaration.
7015 (regcache_raw_read): Update declaration.
7016 (supply_register): Update declaration.
7018 2002-07-24 Tom Tromey <tromey@redhat.com>
7020 * defs.h (gdb_readline_wrapper): Declare.
7021 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
7022 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
7023 * top.c (gdb_readline_wrapper): New function.
7024 (command_line_input): Use it.
7026 2002-07-24 Andrew Cagney <cagney@redhat.com>
7028 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
7029 regcache_read and regcache_write.
7030 (regcache_raw_read_as_address): Replace regcache_read_as_address.
7031 * regcache.c: Update.
7032 * sh-tdep.c (sh64_push_arguments): Update comment.
7033 (sh_pseudo_register_read): Update.
7034 (sh_pseudo_register_write): Update.
7035 (sh4_register_read): Update.
7036 (sh4_register_write): Update.
7037 (sh64_pseudo_register_read): Update.
7038 (sh64_pseudo_register_write): Update.
7039 (sh64_register_read): Update.
7040 (sh64_register_write): Update.
7041 * i386-tdep.c (i386_extract_return_value): Update.
7042 (i386_extract_struct_value_address): Update.
7043 (i386_extract_return_value): Update.
7044 * blockframe.c (generic_read_register_dummy): Update.
7045 (generic_call_dummy_register_unwind): Update
7046 * infrun.c (write_inferior_status_register): Update.
7048 2002-07-23 Jim Blandy <jimb@redhat.com>
7050 * parser-defs.h (expression_context_pc): Make this extern.
7051 (Thanks to Michael Snyder.)
7053 2002-07-23 Andrew Cagney <ac131313@redhat.com>
7055 GDB 5.2.1 released from 5.2 branch.
7056 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7057 * README: Update to mention 5.2.1.
7059 2002-07-23 Mark Salter <msalter@redhat.com>
7061 * remote.c (remote_read_bytes): Fix check for error.
7063 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7065 * aix-thread.c (language.h): Include.
7066 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7067 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7068 Print newlines at end of debug messages.
7069 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7070 (pdc_write_data): Use local_hex_string() instead of %llx formats.
7072 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7074 * aix-thread.c (ppc-tdep.h): Include.
7075 (special_register_p): New function.
7076 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7077 (store_regs_user_thread): Use register number information from
7078 gdbarch_tdep struct instead of hardcoded offsets relative to
7079 FIRST_UISA_SP_REGNUM.
7080 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7081 special_register_p() instead of using FPLAST_REGNUM and
7082 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7083 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7084 will be MQ's register number.
7086 2002-07-22 Michael Snyder <msnyder@redhat.com>
7088 * aix-thread.c (ops): Rename to aix_thread_ops.
7089 (base_ops): Rename to base_target.
7090 (ops_attach): Rename to aix_thread_attach.
7091 (ops_detach): Rename to aix_thread_detach.
7092 (ops_resume): Rename to aix_thread_detach.
7093 (ops_wait): Rename to aix_thread_wait.
7094 (ops_kill): Rename to aix_thread_kill.
7095 (init_ops): Rename to init_aix_thread_ops.
7096 (ops_fetch_register): Rename to aix_thread_fetch_register.
7097 (ops_store_register): Rename to aix_thread_store_register.
7098 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7099 (ops_thread_alive): Rename to aix_thread_thread_alive.
7100 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7101 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7102 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7103 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7104 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7105 (store_regs_lib): Rename to store_regs_user_thread.
7106 (store_regs_kern): Rename to store_regs_kernel_thread.
7108 2002-07-22 Michael Snyder <msnyder@redhat.com>
7110 * aix-thread.c (ops_prepare_to_store): Eliminate.
7111 (init_ops): Don't initialize ops.prepare_to_store.
7112 (store_regs_kern): Pre-fetch register buffers from child,
7113 because some registers may not be in the cache. Copy
7114 regs from register cache only if they are cached.
7115 (store_regs_lib): Copy regs from register cache only
7117 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7118 fill_gprs64): Ditto.
7120 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7122 * aix-thread.c (gdb_assert.h): Include.
7123 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7124 register sizes (from register cache) match size of buffer holding
7126 (fill_sprs32): Change parameter types to match those in the ptrace()
7128 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7129 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7131 2002-07-22 Michael Snyder <msnyder@redhat.com>
7133 * aix-thread.c (supply_sprs64): Cosmetic change.
7134 (supply_sprs32): Cosmetic change.
7135 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7136 (fill_sprs64): Use regcache_collect instead of read_register.
7137 (store_regs_lib): Use regcache_collect instead of
7138 read_register. Use fill_sprs32 instead of fill_sprs64,
7139 if debugging a 32-bit architecture.
7140 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7141 out of the register cache, instead of passing a pointer into
7142 the register cache directly to ptrace. Use regcache_collect
7143 insteaad of read_register.
7144 (ops_prepare_to_store): Use target_read_registers instead
7145 of read_register_bytes.
7147 2002-07-20 Aidan Skinner <aidan@velvet.net>
7149 * MAINTAINERS: Add self under write after approval.
7151 2002-07-20 Aidan Skinner <aidan@velvet.net>
7153 * ada-tasks.c: Change k&r style function definitions to prototyped
7156 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7158 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7159 * x86-64-tdep.c: Include "objfiles.h".
7160 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7161 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7163 2002-07-17 Michal Ludvig <michal@suse.cz>
7165 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7166 (update_context): Initialise cfa variable.
7168 2002-07-17 Michael Snyder <msnyder@redhat.com>
7170 * aix-thread.c: Shorten some long lines.
7171 Bring comments into line with code spec.
7173 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7175 * infrun.c: Re-indent using gdb_indent.sh.
7177 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7179 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7180 Leave the indentation temporarily untouched, to minimize the diffs.
7182 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7184 * stabsread.c: Make os9k sections of the code obsolete,
7186 * stabsread.h: Make os9k sections of the code obsolete.
7188 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7190 * linux-low.c (regsets_store_inferior_registers): Add free()
7191 at the end of a loop to prevent memory leak.
7192 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7193 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7194 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7196 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7198 2002-07-17 Jim Blandy <jimb@redhat.com>
7200 * macrocmd.c (info_macro_command): Remove newline from error
7203 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7205 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7206 (sh_gdbarch_init): Use it for sh-dsp.
7208 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7210 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7211 64-bit DWARF2 format.
7213 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7215 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7216 <sys/proc.h> when not available.
7218 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7220 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7221 * stabsread.c: Make os9k sections of the code obsolete.
7222 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7223 * config/i386/i386os9k.mt: Make file obsolete.
7224 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7225 (COMMON_OBS): Remove os9kread.o
7226 (SFILES): Remove os9kread.c.
7227 (os9kread.o, remote-os9k.o): Make target obsolete.
7228 * remote-os9k.c: Make file obsolete.
7229 * os9kread.c: Make file obsolete.
7232 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7234 * NEWS: Mention that the FR30 has been made obsolete.
7235 * fr30-tdep.c: Make file obsolete.
7236 * config/fr30/tm-fr30.h: Ditto.
7237 * config/fr30/fr30.mt: Ditto.
7238 * configure.tgt: Make fr30-*-elf obsolete.
7239 * MAINTAINERS: Make fr30-elf obsolete.
7241 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7243 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7244 found is not inside a section.
7246 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7248 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7250 (pdc_realloc): Use xrealloc() instead of realloc().
7252 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7254 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7255 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7256 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7259 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7261 * aix-thread.c (ptrace_check): Eliminate goto.
7262 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7265 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7267 * aix-thread.c (gdbcmd.h): Include.
7268 (DEBUG, DBG, DBG2, dbg): Eliminate.
7269 (debug_aix_thread): New static global.
7270 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7271 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7272 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7273 invocations to DBG and DBG2 macros to test against
7274 ``debug_aix_thread'' and call fprintf_unfiltered().
7275 (_initialize_aix_thread): Add new command "set debug aix-thread".
7277 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7279 From Gerhard Tonn <TON@de.ibm.com>:
7280 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7281 instead of supply_register.
7283 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7285 * dwarf2cfi.c: Include "gdb_assert.h".
7286 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7288 (update_context): Do not use __func__. Add missing ``break''.
7289 (update_context): Do not use __func__.
7291 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7293 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7294 and its setting. Set gdbarch instruction printing functions
7295 directly. For non-rs6000 case use new function
7296 gdb_print_insn_powerpc.
7297 (gdb_print_insn_powerpc): New function.
7299 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7301 * NEWS: Mention that the d30v has been marked obsolete.
7302 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7303 * configure.tgt: Mark d30v-*-* as obsolete.
7304 * d30v-tdep.c: Mark file as obsolete.
7305 * config/d30v/d30v.mt: Ditto.
7306 * config/d30v/tm-d30v.h: Ditto.
7308 2002-07-13 Aidan Skinner <aidan@velvet.net>
7310 * ada-tasks.c (add_task_entry): replace calls to
7311 malloc() with xmalloc
7312 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7314 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7315 ada_finish_decode_line_1, all_sals_for_line
7316 ada_breakpoint_rewrite): replace calls to free() with xfree()
7318 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7320 From Nicholas Duffek (with minor changes by Martin Hunt,
7321 Louis Hamilton, and Kevin Buettner):
7322 * aix-thread.c: New file.
7324 2002-07-12 Petr Sorfa <petrs@caldera.com>
7326 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7327 complaint for invalid attribute class or form.
7328 (read_func_scope): DW_AT_frame_base
7329 better handling of DW_AT_block*.
7330 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7331 better handling of DW_AT_block*.
7332 (read_common_block): DW_AT_location
7333 better handling of DW_AT_block*.
7334 (read_partial_die): DW_AT_location better handling
7336 (new_symbol): DW_AT_external better handling of
7337 DW_AT_block*. Proper initialization of variable
7339 (attr_form_is_block): New function that returns true
7340 if the attribute's form is of DW_FORM_block*.
7342 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7344 * valops.c (find_method_list): Remove comment about
7345 removed STATIC_MEMFUNCP argument.
7346 (value_find_oload_method_list): Likewise.
7348 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7350 From Nicholas Duffek:
7351 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7352 target_new_objfile_hook.
7354 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7356 From Nicholas Duffek:
7357 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7360 2002-07-12 Andrew Cagney <cagney@redhat.com>
7362 * MAINTAINERS: Mention --enable-sim-build-warnings.
7363 (m68hc11-elf): Disable sim build warnings.
7364 (m32r-elf): Mark as broken obsolete candidate.
7365 (x86_64-linux-gnu): Mark as buildable with -Werror.
7366 (arm-elf): Change -w to ``,'' which enables warnings but not
7369 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7371 * bcache.h: Update copyright.
7372 (struct bstring, struct bcache): Move definition to "bcache.c".
7373 Replaced by opaque declaration.
7374 (bcache_xfree): Replace free_bcache.
7375 (bcache_xmalloc, bcache_memory_used): Declare.
7377 * bcache.c: Update copyright.
7378 (struct bstring, struct bcache): Moved to here from "bcache.h".
7380 (bcache_xmalloc, bcache_memory_used): New functions.
7381 (bcache_xfree): Replace function free_bcache.
7383 * Makefile.in (objfiles.o): Add $(bcache_h).
7384 (objfiles_h): Remove $(bcache_h).
7385 (symfile.o): Add $(bcache_h).
7387 * symmisc.c: Update copyright.
7388 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7389 (print_objfile_statistics): Use bcache_memory_used.
7391 * symfile.c: Include "bcache.h".
7392 (reread_symbols): Use bcache_xfree.
7393 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7394 (add_psymbol_to_list): Pass psymbol_cache by value.
7395 (add_psymbol_with_dem_name_to_list): Ditto.
7397 * objfiles.h: Update copyright.
7398 (struct bcache): Declare opaque. Do not include "bcache.h".
7399 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7401 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7403 * objfiles.c: Include "bcache.h". Update copyright.
7404 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7406 (free_objfile): Use bcache_xfree.
7408 2002-07-11 Grace Sainsbury <graces@redhat.com>
7410 * monitor.c (monitor_fetch_register): Make name a constant.
7411 (monitor_store_register): Same.
7413 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7415 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7416 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7417 (finish_block) For non-function blocks, hash the symbol table. For
7418 function blocks, mark the symbol table as unhashed.
7419 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7420 (msymbol_hash_iw): Likewise.
7421 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7423 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7424 (lookup_minimal_symbol): Likewise for both.
7425 * symtab.h (struct block): Add `hashtable' flag. Comment the
7427 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7428 (ALL_BLOCK_SYMBOLS): Update.
7429 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7430 (struct symbol): Add `hash_next' pointer.
7431 * symtab.c (lookup_block_symbol): Search using the hash table when
7433 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7434 (search_symbols, find_addr_symbol): Likewise.
7436 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7437 (read_dst_symtab): Likewise.
7438 * jv-lang.c (get_java_class_symtab): Likewise.
7439 * mdebugread.c: Include "gdb_assert.h".
7440 (shrink_block): Assert that the block being modified is not hashed.
7441 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7442 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7444 (dump_symtab): Recognize hashed blocks.
7445 * printcmd.c (print_frame_args): Assert that function blocks do not
7446 have hashed symbol tables.
7447 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7448 (fill_in_ada_prototype, debug_print_block): Likewise.
7449 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7451 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7453 * stack.c (print_frame): Use result of frame_address_in_block()
7454 instead of fi->pc when evaluating symbols.
7455 (backtrace_command_1): Ditto.
7457 2002-07-11 Andrew Cagney <cagney@redhat.com>
7459 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7462 * arm-tdep.c (arm_register_name): Make return type constant.
7464 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7466 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7468 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7469 * s390-tdep.c (s390_fp_regnum): Ditto.
7470 (s390_read_fp): Ditto.
7471 (s390_pop_frame): Ditto.
7472 (_initialize_s390_tdep): Ditto.
7473 * remote.c (get_remote_state): Ditto.
7474 * procfs.c (mappingflags): Ditto.
7475 * memattr.c (_initialize_mem): Ditto.
7476 * mcore-tdep.c (mcore_pop_frame): Ditto.
7477 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7478 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7479 * language.c (set_case_str): Ditto.
7480 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7481 * frv-tdep.c (new_variant): Ditto.
7482 (frv_stopped_data_address): Ditto.
7483 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7484 (context_alloc): Ditto.
7485 (frame_state_alloc): Ditto.
7486 (unwind_tmp_obstack_init): Ditto.
7487 (unwind_tmp_obstack_free): Ditto.
7488 (cfi_read_fp): Ditto.
7489 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7490 (cris_pop_frame): Ditto.
7491 * c-lang.c (scanning_macro_expansion): Ditto.
7492 (finished_macro_expansion): Ditto.
7493 (c_preprocess_and_parse): Ditto.
7494 * gdbarch.sh: Ditto.
7495 * gdbarch.h, gdbarch.c: Regenerate.
7496 * config/mn10200/tm-mn10200.h: Adjust indentation.
7497 * target.c: Adjust indentation.
7498 * symtab.h: Adjust indentation.
7499 * stabsread.h: Adjust indentation.
7500 * remote-es.c: Adjust indentation.
7501 * os9kread.c: Adjust indentation.
7503 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7505 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7506 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7508 2002-07-10 Grace Sainsbury <graces@redhat.com>
7510 * NEWS: Mention m68k, mcore multi-arching.
7511 * MAINTAINERS: Change status of m68k, mcore to reflect
7514 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7516 * valops.c (find_overload_match): Free oload_syms.
7518 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7520 Define HAVE_SYS_PROC_H if sys/proc.h exists
7521 * configure.in: Add check for sys/proc.h
7522 * config.in: Regenerate.
7523 * configure: Regenerate.
7525 2002-07-09 Grace Sainsbury <graces@redhat.com>
7527 * config/m68k/tm-m68k.h: Remove macros wrapped in
7528 #if !GDB_MULTI_ARCH.
7530 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7532 * config.in, configure: Regenerate.
7534 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7536 * dwarf2cfi.c: Include "gcore.h".
7537 (execute_stack_op): Fix implementation of the
7538 DW_OP_deref and DW_OP_deref_size operators by letting do their
7539 lookup in the target.
7541 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7543 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7544 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7547 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7549 Fix PR gdb/595, gdb/602
7550 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7551 Don't call value_cast, just read the vtable pointer; update comments
7554 2002-07-05 Grace Sainsbury <graces@redhat.com>
7556 * config/mcore/tm-mcore.h: Remove file.
7557 * config/mcore/mcore.mt: Remove definition of TM_FILE
7558 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7560 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7562 * i386bsd-tdep.c: Include "gdb_string.h".
7564 2002-07-04 Grace Sainsbury <graces@redhat.com>
7566 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7567 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7569 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7570 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7571 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7572 (RETVAL_REGNUM): Move macros from tm-mcore.h
7573 (mcore_reg_struct_has_addr): New function.
7574 (mcore_gdbarch_init): Added initializations for the macros removed
7577 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7579 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7580 traditonal string branding within the ELF header.
7582 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7584 * symtab.c (remove_params): New function.
7585 (make_symbol_overload_list): Use it instead of cplus_demangle.
7586 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7588 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7590 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7592 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7594 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7595 and tdep->sigtramp_end.
7596 * i386obsd-nat.c: New file.
7597 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7599 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7600 Don't call get_current_frame().
7602 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7604 * i386-nat.c (child_post_startup_inferior): New function
7605 calling i386_cleanup_dregs if
7606 I386_USE_GENERIC_WATCHPOINTS is defined.
7607 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7608 conditional to acknowledge that i386-nat.c has its
7609 own child_post_startup_inferior function.
7611 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7613 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7614 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7615 instead of MAX_REGISTER_RAW_SIZE.
7616 (i386_extract_return_value, i386_extract_struct_value_address):
7617 Convert to use regcache.
7618 (i386_gdbarch_init): Set max_register_raw_size and
7619 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7620 Set extract_return_value and extract_struct_value_address instead
7621 of their deprecated variants.
7623 Convert i386 target to generic dummy frames.
7624 * i386-tdep.c: Include "symfile.h".
7625 (i386_frameless_signal_p): Consider a function to be frameless if
7626 the pc points at the first instruction of the function.
7627 (i386_frame_chain): Handle (generic) call dummies.
7628 (i386_frame_saved_pc): Likewise.
7629 (i386_frame_init_saved_regs): Remove code dealing with call
7630 dummies on the stack.
7631 (i386_push_dummy_frame): Removed.
7632 (i386_call_dummy_words): Removed.
7633 (i386_fix_call_dummy): Removed.
7634 (i386_push_return_address): New function.
7635 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7636 parameter, and don't call get_current_frame.
7637 (i386_pop_frame): New function.
7638 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7639 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7640 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7641 call_dummy_length to 0, set call_dummy_words to NULL, set
7642 sizeof_call_dummy_words to 0, set fix_call_dummy to
7643 generic_fix_call_dummy, set pc_in_call_dummy to
7644 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7645 generic_push_dummy_frame, set push_return_address to
7646 i386_push_return_address and set frame_chain_valid to
7647 generic_file_frame_chain_valid.
7649 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7651 * gdbarch.sh (struct regcache): Add opaque declaration.
7652 (EXTRACT_RETURN_VALUE): New architecture method.
7653 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7654 * gdbarch.h, gdbarch.c: Regenerate.
7655 * arch-utils.c (legacy_extract_return_value): New function.
7656 * arch-utils.h (legacy_extract_return_value): Declare.
7657 * values.c (value_being_returned): Re-enable code handling
7658 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7659 deprecated_grub_regcache_for_registers call to block handling
7660 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7661 (EXTRACT_RETURN_VALUE): Do not define.
7663 2002-07-03 Grace Sainsbury <graces@redhat.com>
7665 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7666 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7667 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7668 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7669 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7670 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7671 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7672 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7673 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7674 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7675 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7676 argument so the function fits the prototype in the architecture
7678 (mcore_pop_frame): Remove argument so the function fits the
7679 prototype. Use get_current_frame instead of the argument.
7680 (mcore_push_arguments): Change type of struct_return so the
7681 function can be used in the architecture vector.
7682 (mcore_store_struct_return): Add.
7683 (mcore_frame_init_saved_regs): Add.
7684 (mcore_gdbarch_init): Add function calls to replace the macros
7685 removed from tm-mcore.h
7687 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7689 * infcmd.c (print_return_value): Remove compatibility code calling
7690 deprecated_grub_regcache_for_registers.
7692 * values.c: Include "regcache.h".
7693 (value_being_returned): Update. Use
7694 deprecated_grub_regcache_for_registers to extract the register
7696 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7697 ``struct regcache''.
7698 * Makefile.in (values.o): Add dependency on $(regcache_h).
7700 * inferior.h (run_stack_dummy): Change type of second parameter to
7701 a ``struct regcache''.
7702 * valops.c (hand_function_call): Change type of retbuf to ``struct
7703 regcache''. Allocate using regcache_xmalloc, clean using
7704 make_cleanup_regcache_xfree.
7705 * infcmd.c (run_stack_dummy): Update. Use
7706 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7708 * regcache.c (do_regcache_xfree): New function.
7709 (make_cleanup_regcache_xfree): New function.
7710 * regcache.h (make_cleanup_regcache_xfree): Declare.
7712 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7714 * event-top.c (command_line_handler): Don't read past
7715 beginning of buffer.
7717 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7719 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7721 (varobj_create): Store frame_id for root.
7722 (varobj_gen_name): Use xasprintf.
7723 (varobj_update): Save and restore frame using get_frame_id() and
7725 (create_child): Use xasprintf.
7726 (new_root_variable): Initialize frame_id.
7727 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7728 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7729 to prevent memory leak.
7731 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7733 * valops.c (hand_function_call): Move declaration of retbuf to
7734 start of function, allocate using malloc, add a cleanup but before
7735 the inf_status cleanup, cleanup the buffer. Rename local variable
7736 old_chain to inf_status_cleanup.
7738 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7740 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7742 * cli/cli-decode.c (cmd_func_p): New function.
7743 (cmd_func): New function.
7745 * command.h: Add cmd_func() and cmd_func_p().
7747 2002-07-03 Grace Sainsbury <graces@redhat.com>
7749 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7750 (REGISTER_SIZE): Remove.
7751 (MAX_REGISTER_RAW_SIZE): Remove.
7752 (REGISTER_VIRTUAL_TYPE): Remove.
7753 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7754 (REGISTER_NAME): Remove.
7755 (USE_GENERIC_DUMMY_FRAMES): Remove.
7756 (CALL_DUMMY): Remove.
7757 (CALL_DUMMY_START_OFFSET): Remove.
7758 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7759 (CALL_DUMMY_LOCATION): Remove.
7760 (FIX_CALL_DUMMY): Remove.
7761 (CALL_DUMMY_ADDRESS): Remove.
7762 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7763 (SAVE_DUMMY_FRAME_TOS): Remove.
7764 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7765 (mcore_register_virtual_type): New function.
7766 (mcore_register_byte): New function.
7767 (mcore_register_size): New function.
7768 (mcore_register_name): New function.
7769 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7770 macros removed from tm-mcore.h.
7771 (mcore_dump_tdep): Add.
7772 (_initialize_mcore_tdep): Add gdbarch_register call.
7774 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7776 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7777 frameless_look_for_prologue, such that we actually call this
7780 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7782 * frame.h (frame_address_in_block): New function.
7784 * blockframe.c (frame_address_in_block): New function extracted
7785 from get_frame_block().
7786 (get_frame_block): Use frame_address_in_block().
7787 (block_innermost_frame): Use frame_address_in_block() to match
7788 the frame pc address against the block boundaries rather than
7789 the frame pc directly. This prevents a failure when a frame pc
7790 is actually a return-address pointing immediately after the end
7793 2002-07-02 Grace Sainsbury <graces@redhat.com>
7795 * MAINTAINERS: Add self under write after approval.
7797 2002-07-02 Grace Sainsbury <graces@redhat.com>
7799 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7800 used in architecture vector. The default is
7801 m68k_local_breakpoint_from_pc.
7802 (m68k_local_breakpoint_from_pc): Add.
7803 (enum): Add register numbers from tm-m68k.h.
7804 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7806 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7807 GDB_MULTI_ARCH_PARTIAL.
7808 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7809 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7811 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7812 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7813 to enum in m68k-tdep.c
7815 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7817 * solib-osf.c (open_map): Compute the list of shared libraries
7818 loaded by the inferior, rather than the list of libraries loaded
7819 by GDB itself. Otherwise, GDB ends up reading the symbols from
7820 the wrong shared libraries...
7822 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7824 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7825 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7827 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7829 (FRAMELESS_SIGNAL): Remove function.
7830 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7831 i386_linux_saved_pc_after_call): Removed.
7832 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7833 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7834 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7836 * i386-tdep.c (i386_frameless_signal_p): New function.
7837 (i386_frame_chain): Deal with frameless signals.
7838 (i386_sigtramp_saved_sp): New function.
7839 (i386_frame_saved_pc): Deal with frameless signals.
7840 (i386_saved_pc_after_call): Make sure the correct value is
7841 returned just after entry into a sigtramp.
7842 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7843 i386fbsd4_sc_sp_offset): New variables.
7844 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7845 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7846 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7847 similiar to what we already did for sc_pc_offset.
7848 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7851 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7853 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7855 * config/i386/tm-x86-64linux.h: New.
7856 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7858 * config/i386/nm-x86-64.h: Rename to ...
7859 * config/i386/nm-x86-64linux.h: ... this one.
7860 * config/i386/x86-64linux.mh: Reflect the above change.
7862 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7864 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7865 with sigcontext_addr. Add sc_sp_offset.
7866 (i386bsd_sigtramp_saved_pc): Remove prototype.
7867 (i386bsd_sicontext_addr): Add prototype.
7868 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7869 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7870 (i386_svr4_sigtramp_saved_pc): Removed.
7871 (i386_svr4_sigcontext_addr): New function.
7872 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7873 Initialize tdep->sigcontext_addr instead. Initialize
7874 tdep->sc_pc_offset and tdep->sc_sp_offset.
7875 (i386_gdbarch_init): Likewise.
7876 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7878 (i386bsd_sigtramp_saved_pc): Remove function.
7879 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7880 Initialize tdep->sigcontext_addr instead. Initialize
7882 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7883 of tdep->sigtramp_saved_pc.
7884 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7885 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7888 * i386-tdep.c (i386_frameless_function_invocation,
7889 i386_frame_num_args, i386_frame_init_saved_regs,
7890 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7891 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7892 i386_extract_return_value, i386_store_return_value,
7893 i386_extract_struct_value_address, i386_register_virtual_type,
7894 i386_register_convertible, i386_register_convert_to_virtual,
7895 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7896 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7899 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7901 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7903 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7904 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7905 this macro. Include "value.h".
7907 2002-06-30 Aidan Skinner <aidan@velvet.net>
7909 * ada-exp.tab.c: remove as it's a generated file
7910 * ada-lex.c: remove as it's a generated file
7912 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7914 * config/i386/tm-i386.h (struct frame_info, struct
7915 frame_saved_regs, struct value, struct type): Remove forward
7918 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7919 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7920 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7921 (FILL_FPXREGSET): Define.
7923 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7925 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7926 i[3456]86-*-netbsd* case.
7927 * config/i386/tm-obsd.h: Removed.
7928 * config/i386/obsd.mt: Removed.
7929 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7931 (MH_CFLAGS): Add -DYYDEBUG=0.
7933 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7934 i386nbsd_sc_pc_offset on OpenBSD too.
7936 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7937 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7938 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7940 * i386bsd-tdep.c: Include "arch-utils.h".
7941 (i386bsd_aout_in_solib_call_trampoline): New function.
7942 (i386bsd_init_abi): Set in_solib_call_trampoline to
7943 i386bsd_aout_in_solib_call_trampoline.
7944 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7945 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7947 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7949 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7950 (struct obstack, struct bcache): Add opaque declarations.
7951 * Makefile.in (macrotab_h): Update
7953 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7955 * blockframe.c (generic_find_dummy_frame): Change return type to
7956 ``struct regcache''.
7957 (struct dummy_frame): Replace field ``registers'' with regcache, a
7958 struct regcache object.
7959 (generic_find_dummy_frame): Update.
7960 (generic_push_dummy_frame): Update. Use regcache_xfree,
7961 regcache_xmalloc and regcache_cpy.
7962 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7964 (deprecated_generic_find_dummy_frame): Update.
7965 (generic_read_register_dummy): Update. Use
7966 regcache_read_as_address.
7967 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7968 (generic_get_saved_register): Update. Use regcache_read.
7970 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7972 * Makefile.in (objfiles_h): Add $(bcache_h).
7973 * objfiles.h: Include "bcache.h".
7975 * Makefile.in (symtab_h): Remove $(bcache_h).
7976 * symtab.h: Do not include "bcache.h".
7978 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7980 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7981 generic_func_frame_chain_valid.
7983 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7985 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7986 * config/i386/tm-fbsd.h: Likewise.
7988 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7990 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7991 generic_unwind_get_saved_register.
7993 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7995 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7996 * regcache.c (supply_register): Add missing argument to
7997 register_buffer call.
7999 2002-06-27 Andrew Cagney <ac131313@redhat.com>
8001 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
8002 Solaris /bin/grep does not not like it. From Peter Schauer.
8004 2002-06-26 Tom Tromey <tromey@redhat.com>
8006 * command.h (add_setshow_cmd): Declare.
8007 (add_setshow_cmd_full): Declare.
8008 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
8009 returns void. Use add_setshow_cmd_full.
8010 (add_setshow_cmd_full): New function.
8011 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
8012 (add_setshow_boolean_cmd): Likewise.
8014 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8016 * config/vax/tm-vax.h: Protect from multiple inclusion.
8017 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
8018 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
8019 * config/vax/tm-vaxbsd.h: ...here. New file.
8020 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
8022 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8024 * config/vax/tm-vax.h (BREAKPOINT): Remove.
8025 (BELIEVE_PCC_PROMOTION): Remove.
8026 (AP_REGNUM): Move to...
8027 * config/vax/nm-vax.h: ...here.
8028 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
8029 (vax_breakpoint_from_pc): New function.
8030 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
8031 and gdbarch_believe_pcc_promotion.
8033 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8035 * Makefile.in (vax_tdep_h): Define.
8036 (vax-tdep.o): Use $(vax_tdep_h).
8037 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
8038 (vax_dump_tdep): New function.
8039 (_initialize_vax_tdep): Register vax_dump_tdep.
8040 * vax-tdep.h: Include osabi.h.
8041 (struct gdbarch_tdep): New.
8043 2002-06-26 Andrew Cagney <cagney@redhat.com>
8045 * frame.h (deprecated_generic_find_dummy_frame): Rename
8046 generic_find_dummy_frame.
8047 * blockframe.c (generic_find_dummy_frame): Make static.
8048 (deprecated_generic_find_dummy_frame): New function.
8049 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8050 generic_find_dummy_frame with deprecated_find_dummy_frame.
8051 (sh64_nofp_frame_init_saved_regs): Ditto.
8052 (sh_fp_frame_init_saved_regs): Ditto.
8053 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8054 (s390_frame_chain): Ditto.
8055 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8057 2002-06-26 Grace Sainsbury <graces@redhat.com>
8059 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8060 gdbarch vector are at the top.
8062 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8063 (FRAME_ARGS_ADDRESS): Remove.
8064 (FRAME_LOCALS_ADDRESS): Remove.
8065 (FRAME_NUM_ARGS): Remove.
8066 (FRAME_ARGS_SKIP): Remove.
8067 * m68k-tdep.c (enum): Add eumeration of special register numbers.
8068 (m68k_gdbarch_init): Add gdbarch initializations for macros
8069 undefined in tm-m68k.h
8071 2002-06-26 Grace Sainsbury <graces@redhat.com>
8073 * monitor.h: Add the function regname to monitor_ops
8074 structure. This way NUM_REGS does not have to be a constant.
8075 * monitor.c (monitor_fetch_register): Added support for regname
8076 function. The function is called if the array regnames is NULL.
8077 (monitor_store_register): Same.
8078 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8080 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8081 cpu32bug_cmds.regname to point to new function.
8082 * abug-rom.c (abug_regname): Same as above.
8083 (init_abug_cmds): Same.
8084 * dbug-rom.c (dbug_regname): Same as above.
8085 (init_dbug_cmds): Same.
8086 * remote-est.c (est_regname): Same.
8087 (init_est_cmds): Same.
8088 * rom68k-rom.c (rom68k_regname): Same.
8089 (init_rom68k_cmds): Same.
8091 2002-06-25 Tom Tromey <tromey@redhat.com>
8093 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8095 2002-06-25 Andrew Cagney <cagney@redhat.com>
8097 * infrun.c (stop_registers): Change variable's type to ``struct
8099 (xmalloc_inferior_status): Delete function.
8100 (free_inferior_status): Delete function.
8101 (normal_stop): Use regcache_cpy.
8102 (struct inferior_status): Change type of fields ``stop_registers''
8103 and ``registers'' to ``struct regcache''.
8104 (write_inferior_status_register): Use regcache_write.
8105 (save_inferior_status): Instead of calling
8106 xmalloc_inferior_status, allocate the inf_status buffer directly.
8107 Use regcache_dup_no_passthrough and regcache_dup to save the
8109 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8110 Replace the stop_registers regcache instead of overriding it. Use
8111 regcache_xfree. Instead of calling free_inferior_status, xfree
8112 the buffer directly.
8113 (discard_inferior_status): Use regcache_xfree. Instead of calling
8114 free_inferior_status, xfree the buffer directly.
8115 (build_infrun): Use regcache_xmalloc.
8116 (_initialize_infrun): Delete redundant call to build_infrun.
8118 * Makefile.in (infcmd.o): Add $(regcache_h).
8120 * infcmd.c: Include "regcache.h".
8121 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8122 obtain the address of `stop_registers' register buffer.
8123 (print_return_value): Ditto.
8125 * inferior.h (struct regcache): Add opaque declaration.
8126 (stop_registers): Change variable's declared type to ``struct
8129 2002-06-24 Tom Tromey <tromey@redhat.com>
8131 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8132 * target.c (initialize_targets): Fixed typo in
8133 trust-readonly-sections `show' documentation.
8135 * main.c: Marked all strings with _().
8137 2002-06-24 Don Howard <dhoward@redhat.com>
8139 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8140 that means max CORE_ADDR+1.
8141 (lookup_mem_region): Ditto.
8142 (mem_info_command): Ditto.
8144 2002-06-24 Grace Sainsbury <graces@redhat.com>
8146 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8147 (REGISTER_BYTES_OK): Remove.
8148 (REGISTER_BYTES): Remove.
8149 (STORE_STRUCT_RETURN): Remove.
8150 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8151 (STORE_RETURN_VALUE): Remove.
8152 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8153 (FRAME_CHAIN): Remove.
8154 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8155 (FRAME_SAVED_PC): Remove.
8156 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8157 (m68k_store_struct_return): Add.
8158 (m68k_deprecated_extract_return_value): Add.
8159 (m68k_deprecated_extract_struct_value_address): Add.
8160 (m68k_store_return_value): Add.
8161 (m68k_frame_chain): Add.
8162 (m68k_frameless_function_invocation): Add.
8163 (m68k_frame_saved_pc): Add.
8164 (m68k_gdbarch_init): added set_gdbarch calls for new
8165 functions and deleted macros.
8167 2002-06-23 Tom Tromey <tromey@redhat.com>
8169 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8170 (ALLDEPFILES): Likewise.
8171 (udiheaders): Removed.
8172 (udip2soc.o): Likewise.
8173 (udi2go32.o): Likewise.
8175 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8177 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8179 * infrun.c (_initialize_infrun): Delete unnecessary call to
8182 * regcache.h: Update comments describing the regcache_cpy family
8184 (regcache_save, regcache_restore): Delete declaration.
8185 (regcache_save_no_passthrough): Delete declaration.
8186 (regcache_restore_no_passthrough): Delete declaration.
8187 * regcache.c (regcache_save): Delete function.
8188 (regcache_save_no_passthrough): Delete function.
8189 (regcache_restore): Delete function.
8190 (regcache_restore_no_passthrough): Delete function.
8192 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8194 * config/m68k/tm-m68k.h: Fix typo.
8195 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8196 (m68k_frame_init_saved_regs): Declare.
8198 2002-06-21 Jim Blandy <jimb@redhat.com>
8200 Remove some vestiges of Harris 88k support.
8201 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8202 register numbering quirk.
8203 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8204 odd symbols occurring in Harris 88k ELF targets.
8206 2002-06-21 Tom Tromey <tromey@redhat.com>
8208 * gdb_locale.h: New file.
8209 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8210 (defs_h): Added gdb_locale.h.
8211 * configure, config.in: Rebuilt.
8212 * configure.in (PACKAGE): Define.
8213 * defs.h: Include gdb_locale.h.
8214 * main.c (captured_main): Call setlocale, bindtextdomain,
8217 2002-06-21 Dave Brolley <brolley@redhat.com>
8219 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8220 * config/frv/frv.mt: New file.
8221 * config/frv/tm-frv.h: New file.
8222 * configure.tgt: Support frv-*-*.
8223 * Makefile.in (frv-tdep.o): New target.
8224 * frv-tdep.c: New file.
8225 * NEWS: Mention frv.
8227 2002-06-21 Dave Brolley <brolley@redhat.com>
8229 * MAINTAINERS: Add self to "Write After Approval" list.
8231 2002-06-21 Grace Sainsbury <graces@redhat.com>
8233 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8234 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8235 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8236 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8237 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8239 * m68k-tdep.c: Include arch-utils.h
8240 (m68k_register_raw_size): Add.
8241 (m68k_register_virtual_size): Add.
8242 (m68k_register_virtual_type): Add.
8243 (m68k_register_name): Add.
8244 (m68k_stack_align): Add.
8245 (m68k_register_byte): Add.
8246 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8249 2002-06-21 Grace Sainsbury <graces@redhat.com>
8251 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8252 m68k_find_saved_regs.
8253 (m68k_pop_frame): Removed saved_regs structure, and replaced
8254 references to it with frame->saved_regs.
8255 (m68k_gdbarch_init): Added function calls to initialize the
8257 (m68k_fix_call_dummy): Add.
8258 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8259 (CALL_DUMMY): Remove.
8260 (CALL_DUMMY_LENGTH): Remove.
8261 (CALL_DUMMY_START_OFFSET): Remove.
8262 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8263 (FIX_CALL_DUMMY): Remove.
8264 (PUSH_DUMMY_FRAME): Remove.
8265 (POP_FRAME): Remove.
8267 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8269 * parse.c (parse_fprintf): New function used to avoid calls to
8270 fprintf in bison parser generated debug code.
8271 * parser-defs.h: Declaration of new parse_fprintf function.
8272 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8273 Set YYDEBUG to 1 by default.
8274 Set YYFPRINTF as parse_fprintf.
8276 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8278 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8280 (pointer_encoding, enum ptr_encoding): New.
8281 (execute_cfa_program): Take care about pointer encoding.
8282 (dwarf2_build_frame_info): Only call parse_frame_info for
8283 .debug_frame and .eh_frame.
8284 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8285 fixed augmentation handling, added relative addressing,
8286 ignore duplicate FDEs. Added comments.
8287 * dwarf2cfi.c: Reindented.
8289 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8291 * event-top.c (command_handler): Don't use space_at_cmd_start
8292 unless there is sbrk() on the host. Assign time and space data
8293 to union fields of the appropriate length.
8295 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8297 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8298 x86_64_register_name. Return type changed to 'const char *'.
8299 (x86_64_register_name2nr): Rename to x86_64_register_number.
8300 (x86_64_gdbarch_init): Update to reflect the change.
8301 * x86-64-tdep.h: Ditto.
8302 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8303 (supply_fpregset): Ditto.
8305 2002-06-19 Andrew Cagney <cagney@redhat.com>
8307 * regcache.h: Update copyright.
8308 (struct regcache, struct gdbarch): Add opaque declarations.
8309 (current_regcache): Declare global variable.
8310 (regcache_read, regcache_write): Add gdbarch parameter.
8311 (regcache_save, regcache_save_no_passthrough)
8312 (regcache_restore, regcache_restore_no_passthrough)
8313 (regcache_dup, regcache_dup_no_passthrough)
8314 (regcache_cpy, regcache_cpy_no_passthrough)
8315 (deprecated_grub_regcache_for_registers)
8316 (deprecated_grub_regcache_for_register_valid)
8317 (regcache_valid_p): Add function declarations.
8319 * regcache.c: Update copyright.
8320 (regcache_descr_handle): New global variable.
8321 (struct regcache_descr): Define.
8322 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8323 (regcache_descr, xfree_regcache_descr): New functions.
8324 (struct regcache): Define.
8325 (regcache_xmalloc, regcache_xfree): New functions.
8326 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8327 (regcache_dup, regcache_dup_no_passthrough): New functions.
8328 (regcache_valid_p, regcache_read_as_address): New functions.
8329 (deprecated_grub_regcache_for_registers): New function.
8330 (deprecated_grub_regcache_for_register_valid): New function.
8331 (current_regcache): New global variable.
8332 (register_buffer): Add regcache parameter. Update calls.
8333 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8334 (read_register_gen, write_register_gen): Update register_buffer
8335 call. Test for legacy_p instead of gdbarch_register_read_p or
8336 gdbarch_register_write_p.
8337 (regcache_collect): Update register_buffer call.
8338 (build_regcache): Rewrite. Use deprecated grub functions.
8339 (regcache_save, regcache_save_no_passthrough): New functions.
8340 (regcache_restore, regcache_restore_no_passthrough): New
8342 (_initialize_regcache): Create the regcache_data_handle. Swap
8343 current_regcache global variable.
8345 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8346 parameter to regcache_read and regcache_write calls.
8347 (sh4_register_read): Ditto.
8348 (sh64_pseudo_register_read): Ditto.
8349 (sh64_register_read): Ditto.
8350 (sh_pseudo_register_write): Ditto.
8351 (sh4_register_write): Ditto.
8352 (sh64_pseudo_register_write): Ditto.
8353 (sh64_register_write): Ditto.
8355 * defs.h (XCALLOC): Define.
8357 2002-06-19 Grace Sainsbury <graces@redhat.com>
8359 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8360 * m68k-tdep.c (m68k_gdbarch_init): Added.
8361 (m68k_dump_tdep): Added.
8363 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8365 * ada-lang.c (fill_in_ada_prototype): Update comment.
8367 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8369 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8371 (mips_abi_string, mips_abi_strings): New.
8372 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8373 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8374 tdep->mips_abi_string. Honor mips_abi_string. Default to
8375 O32 if no ABI is found.
8376 (mips_dump_tdep): Use mips_abi_strings.
8377 (mips_abi_update): New function.
8378 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8379 ``set mips abi'' and ``show mips abi''. Check the size of
8382 2002-06-19 Andrew Cagney <cagney@redhat.com>
8384 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8387 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8389 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8390 current frame using only the first stack size adjustment. All
8391 subsequent size adjustments are not considered to be part of
8392 the "static" part of the current frame.
8393 Compute the address of the saved registers relative to the
8394 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8395 in use in this frame.
8397 2002-06-18 Don Howard <dhoward@redhat.com>
8399 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8400 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8401 suggesting this solution.
8403 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8405 * config/romp/xm-rtbsd.h: Delete file.
8406 * config/romp/rtbsd.mh: Delete file.
8408 2002-06-18 Keith Seitz <keiths@redhat.com>
8410 * breakpoint.c (condition_command): Post breakpoint_modify
8411 when a condition is added to an existing breakpoint.
8412 (commands_command): Likewise for commands.
8413 (set_ignore_count): Likewise for ignore counts.
8414 If no tty, do not simply return, still need to send event
8416 (ignore_command): Only print a newline if the command came
8418 Don't call breakpoints_changed, since this is now properly
8419 handled by set_ignore_count.
8421 2002-06-18 Andrew Cagney <cagney@redhat.com>
8423 * MAINTAINERS: Note that cris-elf target can be compiled with
8425 * cris-tdep.c (cris_register_name): Make return type constant.
8426 (cris_breakpoint_from_pc): Ditto.
8428 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8430 * frame.h (struct frame_info): Change type of context to
8433 2002-06-17 Andrew Cagney <cagney@redhat.com>
8435 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8437 * gdbarch.h, gdbarch.c: Regenerate.
8438 * config/mips/tm-mips.h (mips_register_name): Update.
8439 * i386-tdep.h (i386_register_name): Update.
8440 * mips-tdep.c (mips_register_name): Update
8441 * alpha-tdep.c (alpha_register_name): Update.
8442 * arch-utils.c (legacy_register_name): Update.
8443 * arch-utils.h (legacy_register_name): Update.
8444 * avr-tdep.c (avr_register_name): Update.
8445 * ia64-tdep.c (ia64_register_name): Update.
8446 * i386-tdep.c (i386_register_name): Update.
8447 * sparc-tdep.c (sparc32_register_name): Update.
8448 (sparc64_register_name): Update.
8449 (sparclite_register_name): Update.
8450 (sparclet_register_name): Update.
8451 * sh-tdep.c (sh_generic_register_name): Update.
8452 (sh_sh_register_name): Update.
8453 (sh_sh3_register_name): Update.
8454 (sh_sh3e_register_name): Update.
8455 (sh_sh_dsp_register_name): Update.
8456 (sh_sh3_dsp_register_name): Update.
8457 (sh_sh4_register_name): Update.
8458 (sh_sh64_register_name): Update.
8459 * s390-tdep.c (s390_register_name): Update.
8460 * rs6000-tdep.c (rs6000_register_name): Update.
8461 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8462 (ns32k_register_name_32382): Update.
8463 * d10v-tdep.c (d10v_ts2_register_name): Update.
8464 (d10v_ts3_register_name): Update.
8465 * xstormy16-tdep.c (xstormy16_register_name): Update.
8466 * vax-tdep.c (vax_register_name): Update.
8467 * v850-tdep.c (v850_register_name): Update.
8468 * m68hc11-tdep.c (m68hc11_register_name): Update.
8469 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8470 (am33_register_name): Update.
8472 2002-06-17 Grace Sainsbury <graces@redhat.com>
8474 * m68k-tdep.c: Reindented.
8476 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8478 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8479 list of predefined types.
8481 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8483 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8484 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8485 REGISTER_CONVERT_TO_RAW): Remove defines.
8486 (i386_register_virtual_type, i386_register_convertible,
8487 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8489 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8490 macros mentioned above.
8492 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8493 (i386lynx_saved_pc_after_call): Remove prototype.
8494 * i386ly-tdep.c: Include "i386-tdep.h".
8495 (i386lynx_saved_pc_after_call): Make static. Use
8496 read_memory_nobpt instead of read_memory. Use
8497 read_memory_unsigned_integer instead of read_memory_integer.
8498 (i386lynx_init_abi): New function.
8499 (i386lynx_coff_osabi_sniffer): New function.
8500 (_initialize_i386bsd_tdep): New function.
8502 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8503 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8504 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8505 (i386_fix_call_dummy): Remove prototype.
8506 * i386-tdep.c (i386_call_dummy_words): New variable.
8507 (i386_gdbarch_init): Adjust for removal of the
8508 macros mentioned above.
8510 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8512 * command.h (add_setshow_auto_boolean_cmd): Replace
8513 add_set_auto_boolean_cmd.
8514 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8515 add_set_auto_boolean_cmd.
8516 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8517 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8518 mask-address'' command.
8519 (show_mask_address): Add cmd parameter.
8520 * remote.c (add_packet_config_cmd): Update. Change type of
8521 set_func and show_func to cmd_sfunc_ftype.
8522 (_initialize_remote): Update `set remote Z-packet'
8523 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8524 (show_remote_protocol_e_packet_cmd): Ditto.
8525 (show_remote_protocol_E_packet_cmd): Ditto.
8526 (show_remote_protocol_P_packet_cmd): Ditto.
8527 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8528 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8529 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8530 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8531 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8532 (show_remote_protocol_Z_packet_cmd): Ditto.
8533 (show_remote_protocol_binary_download_cmd): Ditto.
8534 (show_remote_cmd): Pass NULL to all of above.
8536 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8538 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8539 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8540 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8541 POP_FRAME): Remove defines.
8542 (i386_push_arguments, i386_store_struct_return,
8543 i386_extract_return_value, i386_store_return_value,
8544 i386_extract_struct_value_address, i386_push_dummy_frame,
8545 i386_pop_frame): Renove prototypes.
8546 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8547 macros mentioned above.
8549 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8551 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8552 add_set_boolean_cmd.
8553 (add_setshow_cmd): New function.
8554 * command.h (add_setshow_boolean_cmd): Replace
8555 add_set_boolean_cmd.
8556 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8557 and ``set rdiromatzero''.
8558 * maint.c (_initialize_maint_cmds): Update commented out code.
8559 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8560 * target.c (initialize_targets): Update `set
8561 trust-readonly-sections'.
8562 * remote.c (_initialize_remote): Update `set remotebreak'.
8564 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8566 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8567 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8568 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8569 fit into multi-arch framework.
8570 (i386_breakpoint_from_pc): New function.
8571 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8574 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8575 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8576 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8577 (i386_frameless_function_invocation, i386_frame_num_args,
8578 i386_frame_init_saved_regs): Remove prototypes.
8579 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8580 macros mentioned above.
8582 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8584 * cli/cli-decode.c (set_cmd_cfunc): Update.
8585 (set_cmd_sfunc): Update.
8586 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8587 (set_cmd_sfunc, set_cmd_cfunc): Update.
8588 * cli/cli-decode.h: Update.
8590 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8592 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8593 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8595 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8597 * defs.h (auto_boolean): Declare enum.
8598 * command.h (cmd_auto_boolean): Delete enum.
8599 * mips-tdep.c (mask_address_var): Update.
8600 (mips_mask_address_p): Update.
8601 (show_mask_address): Update.
8602 * remote.c (struct packet_config): Update.
8603 (update_packet_config): Update.
8604 (show_packet_config_cmd): Update.
8605 (packet_ok): Update.
8606 (add_packet_config_cmd): Update.
8607 (_initialize_remote):
8608 * command.h: Update.
8609 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8610 (do_setshow_command): Update.
8611 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8612 * cli/cli-decode.h: Update.
8614 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8616 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8617 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8618 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8619 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8620 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8621 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8623 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8624 list of DJGPP COFF targets.
8626 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8627 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8628 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8629 (FP0_REGNUM): Remove define.
8630 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8631 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8632 (i386_register_virtual_size): Remove protoype.
8633 * i386-tdep.c (i386_register_virtual_size): Removed.
8634 (i386_extract_return_value, i386_store_return_value): Use
8635 FP0_REGNUM instead of NUM_FREGS to determine whether the
8636 floating-point registers are available.
8637 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8638 Adjust for removal of macros mentioned above.
8640 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8642 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8644 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8646 (supply_gregset, fill_gregset): Remove use of register keyword and
8647 remove declaration for regmap. Use I386_NUM_GREGS instead of
8648 NUM_REGS and NUM_FREGS.
8649 (FPREGSET_FSAVE_OFFSET): Remove.
8650 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8651 NUM_FREGS to determine whether the floating-point registers are
8654 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8655 gnu_store_registers): Replace usage of NUM_GREGS with
8658 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8659 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8660 usage of NUM_GREGS with I386_NUM_GREGS.
8662 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8664 * i386bsd-nat.c: Include "i386-tdep.h".
8665 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8668 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8669 and associated comment. They no longer make any sense, since we
8670 don't use this file anymore on Linux.
8672 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8673 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8674 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8675 elements in these arrays.
8676 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8679 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8681 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8682 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8684 2002-06-14 Andrew Cagney <cagney@redhat.com>
8686 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8687 EXTRACT_RETURN_VALUE.
8688 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8689 EXTRACT_STRUCT_VALUE_ADDRESS.
8690 * gdbarch.h, gdbarch.c: Regenerate.
8692 * values.c (value_being_returned): Handle
8693 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8694 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8696 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8697 * arm-tdep.c (arm_gdbarch_init): Update.
8698 * avr-tdep.c (avr_gdbarch_init): Update.
8699 * cris-tdep.c (cris_gdbarch_init): Update.
8700 * d10v-tdep.c (d10v_gdbarch_init): Update.
8701 * ia64-tdep.c (ia64_gdbarch_init): Update.
8702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8703 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8704 * s390-tdep.c (s390_gdbarch_init): Update.
8705 * sh-tdep.c (sh_gdbarch_init): Update.
8706 * s390-tdep.c (s390_gdbarch_init): Update.
8707 * sparc-tdep.c (sparc_gdbarch_init): Update.
8708 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8709 * v850-tdep.c (v850_gdbarch_init): Update.
8710 * vax-tdep.c (vax_gdbarch_init): Update.
8711 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8714 * config/arc/tm-arc.h: Update.
8715 * config/d30v/tm-d30v.h: Update.
8716 * config/fr30/tm-fr30.h: Update.
8717 * config/h8300/tm-h8300.h: Update.
8718 * config/h8500/tm-h8500.h: Update.
8719 * config/i386/tm-i386.h: Update.
8720 * config/i386/tm-ptx.h: Update.
8721 * config/i386/tm-symmetry.h: Update.
8722 * config/i960/tm-i960.h: Update.
8723 * config/m32r/tm-m32r.h: Update.
8724 * config/m68k/tm-delta68.h: Update.
8725 * config/m68k/tm-linux.h: Update.
8726 * config/m68k/tm-m68k.h: Update.
8727 * config/m88k/tm-m88k.h: Update.
8728 * config/mcore/tm-mcore.h: Update.
8729 * config/mips/tm-mips.h: Update.
8730 * config/mn10200/tm-mn10200.h: Update.
8731 * config/pa/tm-hppa.h: Update.
8732 * config/pa/tm-hppa64.h: Update.
8733 * config/sparc/tm-sp64.h: Update.
8734 * config/sparc/tm-sparc.h: Update.
8735 * config/sparc/tm-sparclet.h: Update.
8736 * config/z8k/tm-z8k.h: Update.
8738 2002-06-14 Andrew Cagney <cagney@redhat.com>
8740 * Makefile.in (i386_linux_tdep_h): Define.
8741 (i386_tdep_h, i387_tdep_h): Define.
8742 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8743 $(i386_tdep_h) and $(i387_tdep_h).
8744 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8746 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8748 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8749 Already covered by the default.
8751 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8752 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8753 (i386_gdbarch_init): Initialize long_double_format and long_double
8756 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8757 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8759 * config/i386/i386sol2.mh: ... here.
8760 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8761 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8762 (SIGCONTEXT_PC_OFFSET): Remove define.
8763 (IN_SIGTRAMP): Remove define.
8764 * i386-sol2-tdep.c: New file.
8766 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8767 * config/i386/tm-i386nw.h: Removed.
8769 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8770 USE_STRUCT_CONVENTION): Remove defines.
8771 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8772 (get_longjmp_target): Remove prototype.
8773 (IN_SIGTRAMP): Remove define.
8774 (i386bsd_in_sigtramp): Remove prototype.
8775 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8776 function. Update comment accordingly
8777 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8778 (FRAME_SAVED_PC): Remove define.
8779 (i386bsd_frame_saved_pc): Remove prototype.
8780 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8781 GET_LONGJMP_TARGET): Remove defines.
8782 (get_longjmp_target): Remove prototype.
8783 (IN_SIGTRAMP): Remove define.
8784 (i386bsd_in_sigtramp): Remove prototype.
8785 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8786 function. Update comment accordingly
8787 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8788 (FRAME_SAVED_PC): Remove define.
8789 (i386bsd_frame_saved_pc): Remove prototype.
8790 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8792 (USE_STRUCT_CONVENTION): Remove prototype.
8793 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8795 (_initialize_i386bsd_nat): Revise logic to determine some
8796 constants at compile time when compiling a native GDB. Warn if
8797 things don't match up with what we expect.
8798 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8800 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8801 to use date stored in `struct gdbarch_tdep'.
8802 (i386bsd_sigcontext_offset): Remove varaible.
8803 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8804 stored in `struct gdbarch_tdep'.
8805 (i386bsd_frame_saved_pc): Make static.
8806 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8807 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8808 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8809 i386fbsd4_sc_pc_offset): New variables.
8810 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8811 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8813 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8815 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8816 Modify the value of i386fbsd_sigtramp_start and
8817 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8818 i386fbsd_sigtramp_end.
8819 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8822 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8823 define to i386-linux-tdep.h.
8824 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8825 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8827 (i386_linux_register_name, i386_linux_register_byte,
8828 i386_linux_register_raw_size): Remove prototypes.
8829 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8830 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8831 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8832 TARGET_WRITE_PC): Remove defines.
8833 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8834 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8835 i386_linux_write_pc): Remove prototypes.
8836 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8837 (get_longjmp_target): Remove prototype.
8838 * i386-linux-tdep.h: New file.
8839 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8840 * i386-linux-tdep.c: Include "i386-tdep.h" and
8841 "i386-linux-tdep.h".
8842 (i386_linux_register_name, i386_linux_register_byte,
8843 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8844 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8846 (i386_linux_init_abi): New function.
8847 (_initialize_i386_linux_tdep): New function.
8849 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8850 (i386_saved_pc_after_call): Remove prototype.
8851 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8852 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8853 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8854 (i386_register_name, i386_stab_reg_to_regnum,
8855 i386_dwarf_reg_to_regnum): Remove prototypes.
8856 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8857 SIZEOF_SSE_REGS): Remove defines.
8858 (REGISTER_BYTES): Remove define.
8859 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8860 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8861 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8862 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8863 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8864 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8865 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8866 (get_longjmp_target): Remove prototype.
8867 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8868 (sigtramp_saved_pc): Remove define.
8869 (i386v4_sigtramp_saved_pc): Remove prototype.
8870 * config/i386/tm-go32.h (FRAME_CHAIN,
8871 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8872 (i386go32_frame_saved_pc): Remove prototype.
8873 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8874 (get_longjmp_target): Remove prototype.
8875 * i386-tdep.h: Include "osabi.h".
8876 (enum i386_abi): Removed.
8877 (enum struct_return): New enum.
8878 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8879 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8880 sc_pc_offset members.
8881 (i386_gdbarch_register_os_abi): Remove prototype.
8882 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8883 I386_SSE_NUM_REGS): New defines.
8884 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8885 I386_SSE_SIZEOF_REGS): New defines.
8886 (i386_register_name, i386_register_byte, i386_register_raw_size):
8888 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8889 (i386bsd_sigtramp_saved_pc): New prototype.
8890 * i386-tdep.c: Don't include "elf-bfd.h".
8891 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8892 i386_frame_chain, i386_saved_pc_after_call): Make static.
8893 (i386_frame_saved_pc): Rewrite to call architecture dependent
8894 function to deal with signal handlers. Make static.
8895 (i386go32_frame_saved_pc): Removed.
8896 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8898 (i386_get_longjmp_target): New function.
8899 (default_struct_convention, pcc_struct_convention,
8900 reg_struct_convention, valid_conventions, struct_convention): New
8902 (i386_use_struct_convention): New function.
8903 (i386v4_sigtramp_saved_pc): Renamed to
8904 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8905 (i386_pc_in_sigtramp): New function.
8906 (i386_abi_names): Removed.
8907 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8908 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8910 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8911 i386_gdbarch_register_os_abi): Removed.
8912 (struct i386_abi_handler): Removed.
8913 (i386_abi_handler_list): Removed.
8914 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8916 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8917 i386_nw_init_abi): New functions.
8918 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8919 Use set_gdbarch_xxx() calls instead of relying on macros for a
8921 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8922 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8923 Register the various architecture variants defined in this file.
8925 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8927 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8928 (struct main_type): Remove arg_types member. Update comments for
8930 (TYPE_ARG_TYPES): Remove.
8931 (TYPE_FN_FIELD_ARGS): Update.
8932 (smash_to_method_type): Update prototype.
8934 * c-typeprint.c (cp_type_print_method_args): Take method type
8935 instead of argument list. Use new argument layout. Simplify.
8936 (c_type_print_args): Use new argument layout. Simplify.
8937 (c_type_print_base): Update call to cp_type_print_method_args.
8938 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8939 argument; use die->type instead. Update call to
8940 smash_to_method_type.
8941 (read_structure_scope): Update call to dwarf2_add_member_fn.
8942 * gdbtypes.c (allocate_stub_method): Update comment.
8943 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8944 Use new argument layout.
8945 (check_stub_method): Use new argument layout. Don't count
8946 void as an argument.
8947 (print_arg_types): Update comments. Use new argument layout.
8948 (recursive_dump_type): Don't print arg_types member.
8949 * hpread.c (hpread_read_struct_type): Use new argument layout.
8950 (fixup_class_method_type): Likewise.
8951 (hpread_type_lookup): Likewise.
8952 * stabsread.c (read_type): Update calls to read_args and
8953 smash_to_method_type.
8954 (read_args): Use new argument layout. Simplify.
8955 * valops.c (typecmp): Use new argument layout. Update parameters
8956 and comments. Simplify.
8957 (hand_function_call): Use new argument layout.
8958 (search_struct_method): Update call to typecmp.
8959 (find_overload_match): Use new argument layout.
8961 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8963 * NEWS: Mention multithreaded debug support for gdbserver.
8965 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8967 * MAINTAINERS: Mention NEWS.
8969 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8971 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8972 (struct mips_objfile_private, compare_pdr_entries): New.
8973 (non_heuristic_proc_desc): Read the ".pdr" section if it
8976 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8978 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8979 (arm_debug): New static variable.
8980 (_initialize_arm_tdep): Add ``set debug arm'' command.
8982 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8984 * Makefile.in (sim_arm_h): Define.
8985 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8986 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8987 (arm_register_sim_regno): New function, map an internal REGNUM
8988 onto a simulator register number.
8989 (arm_gdbarch_init): Set register_sim_regno.
8991 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8993 * MAINTAINERS: Add self.
8995 2002-06-11 Jim Blandy <jimb@redhat.com>
8997 * source.c (source_info): Mention whether the symtab has
8998 information about preprocessor macros.
9000 Call the command `info macro', not `show macro'.
9001 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
9003 (_initialize_macrocmd): Register `info_macro_command' in
9004 `infolist', not `showlist'.
9006 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
9008 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
9009 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
9010 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
9011 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
9012 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
9014 (set_mipsfpu_single_command, set_mipsfpu_double_command)
9015 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
9016 (_initialize_mips_tdep): Remove dead code.
9017 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
9018 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9019 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
9020 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9021 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
9022 MIPS_LAST_FP_ARG_REGNUM): Remove.
9024 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9026 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
9027 (unwind_tmp_obstack_free, parse_frame_info)
9028 (update_context, cfi_read_fp, cfi_write_fp)
9029 (cfi_frame_chain, cfi_init_extra_frame_info)
9030 (cfi_virtual_frame_pointer): Use the above function.
9031 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
9033 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
9035 * v850-tdep.c (v850_type_is_scalar): New function.
9036 (v850_use_struct_convention): Match current gcc implementation
9037 as close as possible.
9038 (v850_push_arguments): Fix stack_offset handling. Don't write
9039 struct_addr into register. This is done by v850_store_struct_return.
9040 (v850_extract_return_value): Care for structs.
9041 (v850_store_return_value): Ditto.
9042 (v850_store_struct_return): Actually write address.
9044 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9046 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9047 without debug information too.
9049 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9051 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9052 Make multi-arch pure.
9053 * gdbarch.h, gdbarch.c: Re-generate.
9054 * arm-tdep.c (arm_print_float_info): Update.
9055 * arch-utils.h (default_print_float_info): Update.
9056 * arch-utils.c (default_print_float_info): Update.
9057 * infcmd.c (float_info): Update call.
9059 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9061 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9062 the front of the initialize list.
9064 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9066 * infrun.c (struct inferior_status): Replace fields
9067 selected_frame_address and selected_level with field
9069 (save_inferior_status): Update. Use get_frame_id.
9070 (struct restore_selected_frame_args): Delete.
9071 (restore_selected_frame): Update. Use frame_find_by_id.
9072 (restore_inferior_status): Update.
9074 * breakpoint.h (struct breakpoint): Change type of
9075 watchpoint_frame to frame_id.
9076 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9077 call to get_current_frame.
9078 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9080 (watchpoint_check): Use frame_find_by_id.
9082 * frame.h (record_selected_frame): Delete declaration.
9083 * stack.c (record_selected_frame): Delete function.
9085 * frame.h (struct frame_id): Define.
9086 (get_frame_id): Declare.
9087 (frame_find_by_id): Declare.
9088 * frame.c (frame_find_by_id): New function.
9089 (get_frame_id): New function.
9091 2002-06-10 Andrey Volkov <avolkov@transas.com>
9093 * ser-e7kpc.c: Fix duplicated define and call of
9094 _initialize_ser_e7000pc
9096 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9098 * signals/signals.c (target_signal_from_host): Fix #ifdef
9100 (do_target_signal_to_host): Likewise.
9102 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9104 * mips-tdep.c (mips_find_abi_section): New function.
9105 (mips_gdbarch_init): Call it.
9107 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9109 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9110 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9111 after Andrew's 2002-06-08 gdbarch change.
9113 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9115 * i386-linux-nat.c (suppy_gregset): Don't supply
9116 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9118 (fill_gregset): Don't fetch it under the same circumstances.
9120 2002-06-09 Andrew Cagney <cagney@redhat.com>
9122 * Makefile.in (callback_h): Define.
9123 (remote_sim_h): Update path to remote-sim.h.
9124 (remote-rdp.o): Add $(callback_h).
9125 (remote-sim.o): Use $(callback_h).
9126 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9127 * remote-rdp.c: Include "gdb/callback.h".
9129 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9131 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9132 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9134 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9136 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9137 * rdi-share/serpardr.c: Ditto.
9138 * rdi-share/unixcomm.c: Ditto.
9139 * rdi-share/serdrv.c: Ditto.
9140 * rdi-share/hostchan.h: Ditto.
9141 * rdi-share/hostchan.c: Ditto.
9142 * rdi-share/host.h: Ditto.
9143 * rdi-share/devsw.c: Ditto.
9145 * objfiles.h: Change type of obj_private to void pointer.
9146 * pa64solib.c: Update copyright. Don't include "assert.h", use
9147 strcmp instead of STREQ, use LONGEST, do not use PTR
9148 * somsolib.c: Ditto.
9150 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9151 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9152 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9154 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9156 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9157 (default_get_saved_register): Delete function.
9158 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9159 generic_unwind_get_saved_register.
9160 * gdbarch.h, gdbarch.c: Re-generate.
9162 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9164 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9165 generic_func_frame_chain_valid.
9166 * gdbarch.h, gdbarch.c: Re-generate.
9167 * blockframe.c (generic_func_frame_chain_valid): Only check
9168 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9169 passing FP to PC_IN_CALL_DUMMY.
9172 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9174 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9175 (register_gdbarch_data): Initialize init_p.
9176 (gdbarch_data): Initialize data pointer using the init function.
9177 (init_gdbarch_data): Delete function.
9178 (gdbarch_update_p): Update.
9179 (initialize_non_multiarch): Update.
9180 (struct gdbarch): Add field initialized_p.
9181 * gdbarch.h, gdbarch.c: Re-generate.
9183 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9185 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9186 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9187 better do the things actually here.
9188 * x86-64-tdep.c (x86_64_register_name2nr): New.
9189 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9190 (x86_64_gdbarch_init): Respect the above change.
9191 * x86-64-tdep.h (x86_64_register_name2nr)
9192 (x86_64_register_nr2name): Add prototypes.
9193 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9195 2002-06-06 Michael Snyder <msnyder@redhat.com>
9197 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9198 Delete extra braces and re-indent.
9199 (d10v_store_return_value): Char return values
9200 must be shifted over by one byte in R0.
9201 (d10v_extract_return_value): Delete extra braces, re-indent.
9203 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9205 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9206 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9207 (d10v_integer_to_address): Rewrite.
9208 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9209 the d10v specific functions which take care of converting to the
9212 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9214 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9215 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9217 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9219 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9221 * config/tm-linux.h: Ditto.
9222 * config/alpha/tm-alphalinux.h: Ditto.
9223 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9224 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9225 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9226 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9227 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9228 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9229 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9230 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9231 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9232 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9233 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9234 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9235 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9236 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9237 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9238 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9239 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9240 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9241 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9242 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9243 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9244 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9245 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9246 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9247 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9248 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9249 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9250 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9251 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9252 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9253 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9254 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9255 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9256 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9257 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9258 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9259 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9261 2002-05-04 Aidan Skinner <aidan@velvet.net>
9263 * ada-exp.tab.c: New file
9264 * ada-exp.y: New file
9265 * ada-lang.c: New file
9266 * ada-lang.h: New file
9267 * ada-lex.c: New file
9268 * ada-lex.l: New file
9269 * ada-tasks.c: New file
9270 * ada-typeprint.c: New file
9271 * ada-valprint.c: New file
9273 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9275 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9276 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9278 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9280 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9281 insetead of ppc-linux-tdep.o.
9282 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9283 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9285 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9287 2002-05-07 Christian Groessler <chris@groessler.org>
9288 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9289 bit register contents for little endian hosts.
9291 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9293 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9296 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9298 * gdbarch.h: Regenerate.
9300 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9302 * MAINTAINERS: Add everyone to write-after-approval list.
9304 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9306 * stack.c (frame_info): Use frame_register_unwind instead of
9307 saved_regs. Mention when the SP is on the stack or in a register.
9309 * frame.h (frame_register_unwind_ftype): Define. Document.
9310 (struct frame_info): Add field register_unwind and
9311 register_unwind_cache.
9312 (frame_register_unwind): Declare.
9313 (generic_unwind_get_saved_register): Declare.
9315 * frame.c (frame_register_unwind): New function.
9316 (generic_unwind_get_saved_register): New function.
9318 * blockframe.c (generic_call_dummy_register_unwind): New function.
9319 (frame_saved_regs_register_unwind): New function.
9320 (set_unwind_by_pc): New function.
9321 (create_new_frame): New function.
9322 (get_prev_frame): New function.
9324 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9326 * a29k-share/: Delete directory.
9327 * remote-vx29k.c: Delete file.
9329 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9331 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9332 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9334 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9336 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9337 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9340 (sparcnbsd-tdep.o): New dependency lists.
9341 * NEWS: Note new UltraSPARC NetBSD native configuration.
9342 * configure.host (sparc64-*-netbsd*): New host.
9343 * configure.tgt (sparc-*-netbsdelf*)
9344 (sparc-*-netbsd*): Set gdb_target to nbsd.
9345 (sparc64-*-netbsd*): New target.
9346 * sparc64nbsd-nat.c: New file.
9347 * sparcnbsd-nat.c: New file.
9348 * sparcnbsd-tdep.c: New file.
9349 * sparcnbsd-tdep.h: New file.
9350 * config/sparc/nbsd.mt: New file.
9351 * config/sparc/nbsd64.mh: New file.
9352 * config/sparc/nbsd64.mt: New file.
9353 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9354 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9356 * config/sparc/nbsdaout.mt: Remove.
9357 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9358 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9360 * config/sparc/nbsdelf.mt: Remove.
9361 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9362 sparc-nat.c compatiblity defines.
9363 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9364 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9365 * config/sparc/tm-nbsd64.h: New file.
9366 * config/sparc/tm-nbsdaout.h: Remove.
9367 * config/sparc/xm-nbsd.h: Remove.
9369 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9371 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9372 * sparc-tdep.c: Include osabi.h.
9373 (gdbarch_tdep): Add osabi member.
9374 (_initialize_sparc_tdep): Use gdbarch_register.
9375 (sparc_gdbarch_init): Use generic OS ABI framework.
9376 (sparc_dump_tdep): New function.
9378 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9380 * corefile.c (do_captured_read_memory_integer): Return non-zero
9382 (safe_read_memory_integer): Copy result of memory read when
9383 status is non-zero. Also, add comments.
9385 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9387 * Makefile.in (ppc_tdep_h): Define.
9390 (rs6000-tdep.o): Use $(ppc_tdep_h).
9393 (ppcnbsd-tdep.o): New dependency lists.
9394 * ppc-tdep.h: Use generic OS ABI framework.
9395 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9396 (ppc_linux_init_abi): New functions.
9397 (ppc_sysv_abi_broken_use_struct_convention)
9398 (ppc_sysv_abi_use_struct_convention)
9399 (ppc_sysv_abi_push_arguments): Move to...
9400 * ppc-sysv-tdep.c: ...here.
9401 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9402 * rs6000-tdep.c (process_note_abi_tag_sections)
9403 (get_elfosabi): Remove.
9404 (rs6000_gdbarch_init): Use generic OS ABI framework.
9405 (rs6000_dump_tdep): New function.
9406 (_initialize_rs6000_tdep): Use gdbarch_register.
9407 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9408 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9409 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9410 of ppc-linux-tdep.o.
9411 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9412 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9413 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9414 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9415 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9416 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9418 2002-05-29 Jim Blandy <jimb@redhat.com>
9420 * macroscope.c (default_macro_scope): Put `void' in empty argument
9423 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9425 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9426 * arch-utils.c: Include "sim-regno.h".
9427 * gdbarch.sh: Don't include "sim-regno.h".
9428 * gdbarch.h, gdbarch.c: Regenerate.
9429 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9431 * arch-utils.h (legacy_register_sim_regno): To here.
9432 * remote-sim.c (legacy_register_sim_regno): Move function from
9434 * arch-utils.c (legacy_register_sim_regno): To here.
9436 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9438 * sim-regno.h: New file.
9439 * Makefile.in (sim_regno_h): Define.
9440 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9441 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9442 (legacy_register_sim_regno): New function.
9443 (one2one_register_sim_regno): New function.
9444 (gdbsim_fetch_register): Rewrite.
9445 (gdbsim_store_register): Only store a register when
9446 REGISTER_SIM_REGNO is valid.
9447 * d10v-tdep.c: Include "sim-regno.h".
9448 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9449 (d10v_ts3_register_sim_regno): Ditto.
9450 * gdbarch.sh: Include "sim-regno.h".
9451 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9452 * gdbarch.h, gdbarch.c: Regenerate.
9453 * arch-utils.h (default_register_sim_regno): Delete declaration.
9454 * arch-utils.c (default_register_sim_regno): Delete function.
9456 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9458 * ppcnbsd-nat.c: Rewrite.
9459 * ppcnbsd-tdep.c: New file.
9460 * ppcnbsd-tdep.h: New file.
9461 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9462 solib.o, and solib-svr4.o.
9463 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9464 nbsd-tdep.o, and corelow.o.
9466 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9468 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9469 `tr' and `sed'. Mention that `broken' targets are not expected to
9472 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9474 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9475 Let PC point right after the prologue before looking up symbols.
9477 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9479 * i386-tdep.c (i386_register_virtual_type): Return
9480 builtin_type_vec128i for SSE registers.
9482 * gdbtypes.h (builtin_type_vec128i): Declare.
9484 * gdbtypes.c (build_builtin_type_vec128i): New function.
9485 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9486 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9487 (build_gdbtypes): Initialize new builtin vector types.
9488 (_initialize_gdbtypes): Register new vector types with gdbarch.
9490 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9492 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9493 since it has been multi-arch'd.
9494 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9495 Move Alpha and VAX multi-arch news entries to same section
9496 as other multi-arch news.
9498 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9500 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9501 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9502 static. Rename some register numbers to put them in ns32k-tdep
9504 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9505 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9507 (_initialize_ns32k_tdep): Use gdbarch_register.
9508 * ns32k-tdep.h: New file.
9509 * ns32knbsd-tdep.c: New file.
9510 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9511 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9512 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9513 REGISTER_BYTES, REGISTER_BYTE): Remove.
9514 * config/ns32k/tm-ns32k.h: New file.
9515 * config/ns32k/tm-umax.h: Remove.
9517 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9519 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9520 ns32k_store_struct_return, ns32k_extract_return_value,
9521 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9523 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9524 ns32k_saved_pc_after_call.
9525 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9526 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9527 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9528 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9529 ns32k_extract_struct_value_address.
9531 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9533 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9534 ns32k_fix_call_dummy): New.
9535 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9536 ns32k_call_dummy_words.
9537 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9538 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9539 CALL_DUMMY_NARGS): Remove.
9540 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9542 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9544 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9545 ns32k_frame_saved_pc, ns32k_frame_args_address,
9546 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9547 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9548 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9549 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9550 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9551 (BREAKPOINT): Remove..
9552 (FRAME_CHAIN): Define as ns32k_frame_chain.
9553 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9554 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9555 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9556 (FRAME_FIND_SAVED_REGS): Remove.
9557 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9558 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9559 (POP_FRAME): Define as ns32k_pop_frame.
9561 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9563 * ns32k-tdep.c (ns32k_register_byte_32082,
9564 ns32k_register_byte_32382, ns32k_register_raw_size,
9565 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9567 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9568 ns32k_register_byte_32382.
9569 * config/ns32k/tm-umax.h: Update copyright years.
9570 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9571 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9572 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9573 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9574 (ns32k_get_enter_addr): Fix prototype.
9576 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9578 * ns32k-tdep.c: Update copyright years.
9579 (ns32k_register_name_32082): New function.
9580 (ns32k_register_name_32382): Ditto.
9581 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9582 (REGISTER_NAME): Define as ns32k_register_name_32382.
9583 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9584 (REGISTER_NAME): Define as ns32k_register_name_32082.
9586 2002-05-24 Jim Blandy <jimb@redhat.com>
9588 * dwarf2read.c (free_line_header): Use xfree, not free.
9590 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9592 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9593 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9595 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9597 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9599 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9601 From Ross Alexander at NEC Europe:
9602 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9604 2002-05-23 Michael Snyder <msnyder@redhat.com>
9606 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9607 for input, rather than parse_and_eval_address.
9609 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9611 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9612 * Makefile.in (sim_d10v_h): Update definition.
9614 2002-05-24 Andrew Cagney <cagney@redhat.com>
9616 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9617 change `2002-05-22 Michael Snyder' below.
9618 (d10v_push_arguments): Ditto.
9619 (d10v_extract_return_value): Ditto.
9621 2002-05-23 Jim Blandy <jimb@redhat.com>
9623 * macrotab.c (check_for_redefinition): Don't complain if the new
9624 definition is the same as the previous one. Take more arguments
9625 to allow the comparison.
9626 (macro_define_object, macro_define_function): Pass more arguments
9627 to check_for_redefinition.
9629 2002-05-22 Michael Snyder <msnyder@redhat.com>
9631 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9632 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9633 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9634 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9635 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9636 Add a temp variable to save a call (and a memory read).
9637 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9638 if possible (so that PC_IN_CALL_DUMMY will work).
9640 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9642 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9644 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9646 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9648 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9649 (dwarf2_build_frame_info): Add offset to fde->initial_location
9650 so that frames of shared libraries are mapped correctly.
9651 (execute_stack_op): Change type of 'result' from ULONGEST to
9654 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9656 * config/alpha/tm-nbsd.h: Include solib.h.
9658 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9660 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9661 assumptions about the host's byte order.
9663 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9665 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9667 * alphanbsd-tdep.c: Include solib-svr4.h.
9668 * shnbsd-tdep.c: Ditto.
9670 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9672 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9673 nbsd-tdep.h to dependency list.
9674 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9675 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9676 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9677 nbsdaout.mh and nbsdelf.mh consistently.
9678 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9679 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9680 nbsdaout.mt and nbsdelf.mh consistently.
9681 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9682 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9683 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9684 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9685 a.out shared library stuff from here...
9686 * config/nm-nbsdaout.h: ...to here.
9687 * config/tm-nbsd.h: Remove.
9688 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9689 * config/arm/nbsd.mh: Remove.
9690 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9692 * config/arm/nbsdaout.mh: New file.
9693 * config/arm/nbsdelf.mh: New file.
9694 * config/arm/nm-nbsdaout.h: New file.
9695 * config/i386/nbsd.mh: Remove.
9696 * config/i386/nbsd.mt: Remove.
9697 * config/i386/nbsdaout.mh: New file.
9698 * config/i386/nbsdaout.mt: New file.
9699 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9700 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9701 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9702 i386_register_u_addr): Remove.
9703 * config/i386/nm-nbsdaout.h: New file.
9704 * config/i386/nm-nbsdelf.h: Remove.
9705 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9706 (USE_STRUCT_CONVENTION): Remove.
9707 * config/i386/tm-nbsdaout.h: New file.
9708 * config/i386/tm-nbsdelf.h: Remove.
9709 * config/m68k/nbsd.mh: Remove.
9710 * config/m68k/nbsd.mt: Remove.
9711 * config/m68k/nbsdaout.mh: New file.
9712 * config/m68k/nbsdaout.mt: New file.
9713 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9714 * config/m68k/nm-nbsdaout.h: New file.
9715 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9716 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9717 * config/ns32k/nbsd.mh: Remove.
9718 * config/ns32k/nbsd.mt: Remove.
9719 * config/ns32k/nbsdaout.mh: New file.
9720 * config/ns32k/nbsdaout.mt: New file.
9721 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9722 * config/ns32k/nm-nbsdaout.h: New file.
9723 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9724 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9725 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9726 (SVR4_SHARED_LIBS): Remove.
9727 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9728 * config/sparc/nbsd.mh: Remove.
9729 * config/sparc/nbsd.mt: Remove.
9730 * config/sparc/nbsdaout.mh: New file.
9731 * config/sparc/nbsdaout.mt: New file.
9732 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9733 * config/sparc/nbsdelf.mt: New file.
9734 * config/sparc/nm-nbsdaout.h: New file.
9735 * config/sparc/nm-nbsdelf.h: Remove.
9736 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9737 * config/sparc/tm-nbsdaout.h: New file.
9739 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9741 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9743 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9745 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9747 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9749 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9751 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9753 * NEWS: Note new MIPS NetBSD native configuration.
9754 * configure.host (mips*-*-netbsd*): New host.
9755 * configure.tgt (mips*-*-netbsd*): New target.
9756 * mipsnbsd-nat.c: New file.
9757 * mipsnbsd-tdep.c: New file.
9758 * mipsnbsd-tdep.h: New file.
9759 * config/mips/nbsd.mh: New file.
9760 * config/mips/nbsd.mt: New file.
9761 * config/mips/nm-nbsd.h: New file.
9762 * config/mips/tm-nbsd.h: New file.
9764 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9766 * Makefile.in (SFILES): Add osabi.c.
9767 (COMMON_OBS): Add osabi.o.
9768 (osabi.o): New dependency list.
9769 * osabi.c: New file.
9770 * osabi.h: New file.
9771 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9773 * Makefile.in (alpha_tdep_h): Define and use instead of
9775 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9776 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9778 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9779 * alpha-tdep.h: Include osabi.h.
9780 (alpha_abi): Remove.
9781 (gdbarch_tdep): Use generic OS ABI framework.
9782 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9783 gdbarch_register_osabi.
9784 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9785 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9786 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9788 * Makefile.in (sh_tdep_h): Add osabi.h.
9789 * sh-tdep.h (sh_osabi): Remove.
9790 (gdbarch_tdep): Use generic OS ABI framework.
9791 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9792 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9793 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9794 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9796 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9797 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9798 gdbarch_register_osabi.
9799 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9800 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9801 (get_elfosabi): Rename to...
9802 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9803 ABI framework support routines.
9804 (arm_gdbarch_init): Use generic OS ABI framework.
9805 (arm_dump_tdep): Likewise.
9806 (_initialize_arm_tdep): Likewise.
9807 * arm-tdep.h: Include osabi.h.
9809 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9811 (arm_gdbarch_register_os_abi): Remove prototype.
9812 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9813 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9815 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9816 * mips-tdep.c: Include osabi.h.
9817 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9820 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9822 * h8300-tdep.c: Fix formatting.
9824 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9826 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9827 printing vector registers.
9829 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9831 From Fernando Nasser:
9832 * remote.c (remote_async_open_1): Re-throw the exception when the
9834 (remote_cisco_open): Ditto.
9835 (remote_open_1): Ditto.
9837 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9839 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9840 (remote_start_remote): Add uiout parameter. Pass through to
9841 remote_start_remote_dummy.
9842 (remote_open_1): Use catch_exception instead of catch_errors.
9843 (remote_async_open_1): Ditto.
9844 (remote_cisco_open): Ditto.
9846 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9848 * remote.c (remote_start_remote): Replace PTR with void pointer.
9849 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9852 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9854 * gdb_indent.sh: Allow the script to be run in the sim directory.
9856 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9858 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9859 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9861 * corelow.c (core_open): Only call set_gdbarch_from_file if
9864 2002-05-17 Andrey Volkov <avolkov@transas.com>
9866 * h8300-tdep.c: Add support of EXR register
9867 * config/h8300/tm-h8300.h: Ditto.
9869 2002-05-17 Andrey Volkov <avolkov@transas.com>
9871 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9873 2002-05-17 Andrey Volkov <avolkov@transas.com>
9875 * h8300-tdep.c: Change literal regnums to REGNO.
9877 2002-05-17 Jim Blandy <jimb@redhat.com>
9879 * NEWS: Note addition of macro support.
9881 Expand preprocessor macros in C expressions.
9882 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9883 (scan_macro_expansion, scanning_macro_expansion,
9884 finished_macro_expansion): New function declarations.
9885 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9886 variable declarations.
9887 * parser-defs.h (expression_context_pc): New declaration.
9888 * parse.c (expression_context_pc): New variable.
9889 (parse_exp_1): Set expression_context_pc, as well as
9890 expression_context_block.
9891 * c-exp.y (yylex): If we're not already reading the result of a
9892 macro expansion, try to macro-expand the next token. When we're
9893 done scanning a macro expansion, switch back to the mainline text.
9894 Commas and `if's in a macro's expansion don't terminate the input.
9895 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9896 (macro_original_text, macro_expanded_text,
9897 expression_macro_lookup_func, expression_macro_lookup_baton): New
9899 (scan_macro_expansion, scanning_macro_expansion,
9900 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9901 c_preprocess_and_parse): New functions.
9902 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9903 c_preprocess_and_parse, instead of c_parse.
9904 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9905 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9907 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9909 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9910 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9911 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9913 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9915 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9917 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9919 * Makefile.in (sh_tdep_h): Define and use.
9920 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9921 register enum): Move to...
9922 * * sh-tdep.h: ...here.
9923 * sh-tdep.c: Include sh-tdep.h.
9924 * sh3-rom.c: Likewise.
9925 * shnbsd-tdep.c: Likewise.
9927 2002-05-16 Michael Snyder <msnyder@redhat.com>
9929 * arm-tdep.c: Spelling fix in comment.
9931 2002-05-16 Jim Blandy <jimb@redhat.com>
9933 Add commands for manually expanding macros and showing their
9935 * macrocmd.c, macroscope.c, macroscope.h: New files.
9936 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9937 (macroscope_h): New variable.
9938 (HFILES_NO_SRCDIR): Add macroscope.h.
9939 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9940 (macroscope.o, macrocmd.o): New rules.
9942 Teach the Dwarf 2 reader to read macro information.
9943 * dwarf2read.c: #include "macrotab.h".
9944 (dwarf_macinfo_buffer): New variable.
9945 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9947 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9948 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9949 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9950 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9951 dwarf2_macro_spaces_in_definition): New complaints.
9952 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9953 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9954 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9955 the partial symbol table.
9956 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9957 from what's recorded in the partial symbol table.
9958 (read_file_scope): If the compilation unit has a
9959 `DW_AT_macro_info' attribute, read its macro information.
9960 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9962 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9965 * ser-tcp.c: Don't include <netinet/udp.h>.
9967 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9969 * MAINTAINERS: Update my email address.
9971 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9973 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9974 include file of the same name.
9976 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9978 * configure.tgt: Mark v850 as multi-arched.
9979 * config/v850/tm-v850.h: Remove file.
9980 * config/v850/v850.mt: Eliminate TM_FILE.
9982 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9984 * v850-tdep.c: Full multi-arch.
9985 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9986 Define GDB_MULTI_ARCH to 2.
9988 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9990 * p-exp.y (current_type): New static variable.
9991 Carries the type of the expression at the position that is parsed.
9992 (push_current_type, pop_current_type): Two new functions. Used
9993 to store/restore current_type in expression on specific tokens.
9994 (search_field): New static variable. Set to one after parsing a point
9995 as at that point only a FIELDNAME token should be searched.
9996 (FIELDNAME): New token. After a point only a token belonging to
9997 current_type type definition is allowed.
9998 (all over token rules): reset and change current_type according
10000 (exp '[' rule): insert implicit array index field if
10001 exp is a pascal string type.
10003 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
10005 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
10006 frame info. Use frame_info's saved_regs instead of matching member
10007 in extra_frame_info throughout.
10008 (v850_frame_init_saved_regs): New function.
10009 (v850_init_extra_frame_info): Move most functionality into
10010 v850_frame_init_saved_regs().
10011 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
10012 (v850_frame_find_saved_regs): Remove declaration.
10013 (FRAME_FIND_SAVED_REGS): Remove definition.
10014 (v850_frame_init_saved_regs): Add declaration.
10015 (FRAME_INIT_SAVED_REGS): Add definition.
10017 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
10019 * v850-tdep.c: Begin multi-arch'ing v850.
10020 (v850_target_architecture_hook): Remove function.
10021 (v850_gdbarch_init): New function. Add code previously in
10022 v850_target_architecture_hook().
10023 (_initialize_v850_tdep): Don't set target_architecture_hook.
10024 Call register_gdbarch_init() instead.
10026 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
10028 * gdbtypes.h (struct cplus_struct_type): Remove args field.
10029 * hpread.c (hpread_read_struct_type): Remove assignments to args.
10030 (fixup_class_method_type): Likewise.
10032 2002-05-15 Jim Blandy <jimb@redhat.com>
10034 Add macro structures to GDB's symbol tables. Nobody puts anything
10036 * symtab.h (struct symtab): New member: `macro_table'.
10037 * buildsym.h (pending_macros): New global variable.
10038 * buildsym.c: #include "macrotab.h".
10039 (buildsym_init): Initialize `pending_macros'.
10040 (end_symtab): If we found macro information while reading a CU's
10041 debugging info, do build a symtab structure for it. Make the
10042 symtab point to the macro information, and clear the
10043 `pending_macros' pointer which held it while we were reading the
10045 (really_free_pendings): Free any pending macro table.
10046 * objfiles.h (struct objfile): New member: `macro_cache'.
10047 * objfiles.c (allocate_objfile): Set allocate and free functions
10048 for the macro cache's objstack.
10049 (free_objfile): Empty the macro cache's obstack.
10050 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10051 set new allocate and free functions for it.
10052 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10053 free functions for the macro cache's objstack. (Why is this
10054 function building its own objfile?)
10055 * symmisc.c (print_objfile_statistics): Print statistics on the
10057 * Makefile.in: Note that buildsym.o depends on macrotab.h.
10059 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10061 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10062 (REGISTER_U_ADDR): Delete definition.
10063 (arm_register_u_addr): Delete declaration.
10065 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10067 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10068 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10070 2002-05-14 Andrew Cagney <ac131313@redhat.com>
10072 * regcache.c (register_valid): Revise comments refering to "Not
10073 available" and "unavailable".
10074 * frame.c (frame_register_read): Ditto.
10075 * findvar.c (value_of_register): Ditto.
10077 2002-05-15 Andrew Cagney <cagney@redhat.com>
10079 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10080 (remote-sim.o): Update dependencies.
10081 (d10v-tdep.o): Specify dependencies.
10082 (sim_d10v_h): Define.
10084 2002-05-14 Jim Blandy <jimb@redhat.com>
10086 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10087 * macrotab.c (macro_lookup_inclusion, find_definition,
10088 new_macro_table): Same.
10090 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10091 not `! strcmp ()'. This is a dubious improvement.
10092 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10094 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10095 although it's not necessary, to avoid a warning.
10097 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10099 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10100 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10101 TYPE_INSTANCE_FLAGS.
10102 (struct main_type): New.
10103 (struct type): Move most members to struct main_type. Change
10104 cv_type and as_type to new type_chain member. Add instance_flags.
10105 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10106 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10107 (finish_cv_type): Remove prototype.
10108 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10110 (alloc_type_instance): New function.
10111 (smash_type): New function.
10112 (make_pointer_type, make_reference_type, make_function_type)
10113 (smash_to_member_type, smash_to_method_type): Call smash_type.
10114 (make_qualified_type): New function.
10115 (make_type_with_address_space): Call make_qualified_type.
10116 (make_cv_type): Likewise.
10117 (finish_cv_type): Remove unnecessary function.
10118 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10119 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10120 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10121 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10122 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10123 * hpread.c (hpread_read_struct_type): Likewise.
10124 * stabsread.c (read_struct_type): Likewise.
10126 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10128 * configure.tgt: Add a catch all sh* target, for cases like
10129 sh[2,3,4]-elf and sh-hms.
10131 2002-05-14 Keith Seitz <keiths@redhat.com>
10133 * event-loop.c (create_file_handler): Don't do anything but
10134 update data when we are given a fd which we are already
10137 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10139 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10140 (update_context): Use __func__ in warnings.
10142 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10144 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10145 and tcp_close to net_open and net_close.
10146 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10147 using UDP if requested. Don't try to disable Nagle on UDP
10149 * remote.c (remote_serial_open): New function. Warn about UDP.
10150 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10152 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10154 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10156 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10158 * configure.tgt: Remove sh-hms target.
10159 * MAINTAINERS: Don't list sh-hms as a separate target.
10161 2002-05-13 Jim Blandy <jimb@redhat.com>
10163 Add first preprocessor macro-expansion files.
10164 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10165 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10166 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10167 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10168 (COMMON_OBS): Add macrotab.o, macroexp.o.
10169 (macroexp.o, macrotab.o): New rules.
10171 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10173 * config/m88k/tm-m88k.h: Update copyright.
10174 (m88k_target_write_pc): Declare
10175 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10176 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10177 (SHIFT_INST_REGS): Update definition.
10178 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10179 using old definition of TARGET_WRITE_PC.
10180 * regcache.c (generic_target_write_pc): Delete code handling
10182 * gdbarch.sh (NNPC_REGNUM): Delete.
10183 * gdbarch.h, gdbarch.c: Regenerate.
10185 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10187 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10188 builtin reg number.
10190 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10192 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10193 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10194 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10196 * c-typeprint.c (cp_type_print_method_args): Likewise.
10197 (c_type_print_args): Likewise.
10198 * d10v-tdep.c (d10v_push_arguments): Likewise.
10199 (d10v_extract_return_value): Likewise.
10200 * expprint.c (print_subexp): Likewise.
10201 * gdbtypes.c (lookup_primitive_typename): Likewise.
10202 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10203 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10204 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10205 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10206 (TYPE_VECTOR): Likewise.
10207 * hpread.c (hpread_read_struct_type)
10208 (fix_static_member_physnames, fixup_class_method_type)
10209 (hpread_type_lookup): Likewise.
10210 * mdebugread.c (parse_symbol, parse_type): Likewise.
10211 * p-lang.c (is_pascal_string_type): Likewise.
10212 * valops.c (hand_function_call): Likewise.
10213 * x86-64-tdep.c (classify_argument): Likewise.
10215 * hpread.c (hpread_read_function_type)
10216 (hpread_read_doc_function_type): Call replace_type.
10217 * dstread.c (create_new_type): Delete.
10218 (decode_dst_structure, process_dst_function): Call alloc_type.
10219 Use type access macros.
10221 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10223 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10224 the're not supported by the current architecture.
10225 (i387_fill_fxsave): Likewise.
10227 2002-05-12 Fred Fish <fnf@redhat.com>
10229 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10230 sect_index_xxx members to index the first slot in section_offsets
10231 if all of the section_offsets are zero.
10233 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10235 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10236 checked in with last change.
10238 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10240 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10241 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10244 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10246 * Makefile.in: Update dependencies.
10248 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10250 * language.c (local_hex_string_custom): Simplify. Do not depend
10251 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10253 * memattr.c (mem_info_command): Replace calls to
10254 longest_local_hex_string and longest_local_hex_string_custom.
10255 * buildsym.c (make_blockvector): Ditto.
10256 * solib.c (info_sharedlibrary_command): Ditto.
10257 * tracepoint.c (tracepoints_info): Ditto.
10258 * symtab.c (print_msymbol_info): Ditto.
10260 * language.c (local_hex_string): Delete.
10261 (local_hex_string_custom): Delete.
10262 (longest_local_hex_string): Rename to local_hex_string.
10263 (longest_local_hex_string_custom): Rename to
10264 local_hex_string_custom.
10265 * language.h (local_hex_string): Change parameter type to LONGEST.
10266 (local_hex_string_custom): Ditto.
10267 (longest_local_hex_string): Delete declaration.
10268 (longest_local_hex_string_custom): Ditto.
10270 * solib.c: Update copyright.
10271 * memattr.c: Update copyright.
10273 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10275 * arch-utils.h (legacy_register_to_value): Declare.
10276 (legacy_value_to_register): Declare.
10277 (legacy_convert_register_p): Declare.
10278 * arch-utils.c (legacy_register_to_value): New function.
10279 (legacy_value_to_register): New function.
10280 (legacy_convert_register_p): New function.
10282 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10283 (VALUE_TO_REGISTER): Define.
10284 (CONVERT_REGISTER_P): Define.
10285 * gdbarch.h, gdbarch.c: Regenerate.
10287 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10289 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10290 CONVERT_REGISTER_P.
10292 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10293 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10295 * Makefile.in: Update dependencies for valops.c.
10296 * valops.c: Include "gdb_assert.h".
10297 (typecmp): Skip THIS parameter to methods.
10298 (find_method_list): Remove static_memfuncp argument,
10299 update callers. Check for stub methods.
10300 (find_value_oload_method_list): Don't set *static_memfuncp.
10301 (find_overload_match): Don't check for stub methods. Assert
10302 that methods are not stubbed. Handle static methods.
10303 (value_find_oload_method_list): Remove static_memfuncp argument.
10304 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10305 to the argument list for static stub methods.
10306 * value.h (value_find_oload_method_list): Update prototype.
10308 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10310 * arch-utils.h (generic_register_size): Declare.
10311 (generic_register_raw_size, generic_register_virtual_size): Delete
10313 * arch-utils.c (generic_register_raw_size): Delete.
10314 (generic_register_size): New function.
10315 (generic_register_virtual_size): Delete.
10317 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10318 default generic_register_size.
10319 * gdbarch.h, gdbarch.c: Re-generate.
10321 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10322 register_virtual_size.
10323 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10324 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10326 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10328 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10329 * gdbarch.h, gdbarch.c: Regenerate.
10330 * gnu-v3-abi.c: Update copyright.
10331 (vtable_address_point_offset): Update.
10332 (gnuv3_rtti_type): Update.
10333 (gnuv3_baseclass_offset): Update.
10334 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10335 (init_fetch_link_map_offsets): Update.
10336 * remote.c (get_remote_state): Update.
10338 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10340 * TODO: Remove value_headof/value_from_vtable_info comment.
10341 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10342 * values.c (value_headof, value_from_vtable_info): Delete.
10343 * value.h (value_from_vtable_info): Delete prototype.
10345 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10347 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10348 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10350 (gdb_assert_h): Define.
10351 (gdb_wait_h): Define.
10352 (gdb_regex_h): Define.
10354 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10356 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10357 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10359 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10361 * nbsd-tdep.c: Fix comment.
10363 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10365 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10366 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10367 (nbsd-tdep.o): New dependency list.
10368 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10370 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10371 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10372 * nbsd-tdep.c: New file.
10373 * nbsd-tdep.h: New file.
10374 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10376 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10377 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10378 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10379 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10381 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10383 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10384 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10385 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10386 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10387 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10388 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10390 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10392 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10393 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10394 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10395 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10396 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10397 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10398 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10400 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10402 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10403 fetch_elfcore_registers to...
10404 * i386nbsd-tdep.c: ...here.
10405 (i386nbsd_use_struct_convention): Rename to...
10406 (i386nbsd_aout_use_struct_convention): ...this.
10407 (i386nbsd_supply_reg): New function.
10408 (i386nbsd_fill_reg): New function.
10409 (fetch_core_registers): Use i386nbsd_supply_reg.
10410 (fetch_elfcore_registers): Likewise.
10411 (_initialize_i386nbsd_tdep): New function.
10412 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10413 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10414 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10415 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10416 (i386nbsd_aout_use_struct_convention): ...this.
10418 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10420 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10421 (store_inferior_registers): Use shnbsd_fill_reg.
10422 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10423 sh_nbsd_supply_register): Collapse into...
10424 (shnbsd_supply_reg): ...this.
10425 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10426 (shnbsd_fill_reg): ...this.
10427 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10428 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10429 (fetch_core_registers): Use shnbsd_supply_reg.
10430 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10431 (sh_nbsd_core_fns): Rename to...
10432 (shnbsd_core_fns): ...this.
10433 (sh_nbsd_elfcore_fns): Rename to...
10434 (shnbsd_elfcore_fns): ...this.
10435 (sh_nbsd_init_abi): Rename to...
10436 (shnbsd_init_abi): ...this.
10437 (_initialize_sh_nbsd_tdep): Rename to...
10438 (_initialize_shnbsd_tdep): ...this.
10439 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10440 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10441 sh_nbsd_fill_register): Remove prototypes.
10442 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10444 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10446 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10447 (i387-nat.o): Delete dependency list.
10448 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10449 (x86-64-linux-nat.o): Likewise.
10450 * i387-nat.c: Delete file, moving contents to...
10451 * i387-tdep.c: ...here.
10452 * i387-nat.h: Rename...
10453 * i387-tdep.h: ...to this.
10454 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10455 * i386-linux-nat.c: Likewise.
10456 * i386bsd-nat.c: Likewise.
10457 * i386gnu-nat.c: Likewise.
10458 * i386nbsd-nat.c: Likewise.
10459 * i386v4-nat.c: Likewise.
10460 * x86-64-linux-nat.c: Likewise.
10461 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10462 * config/i386/go32.mh (NATDEPFILES): Likewise.
10463 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10464 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10465 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10466 * config/i386/linux.mh (NATDEPFILES): Likewise.
10467 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10468 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10469 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10470 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10472 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10474 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10475 (alphanbsd-nat.o): Remove dependency list.
10476 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10477 * alphanbsd-nat.c: Delete. Contents moved to...
10478 * alphanbsd-tdep.c: ...here.
10479 (_initialize_alphanbsd_tdep): Register core functions.
10480 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10482 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10484 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10485 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10486 (alphanbsd-nat.o): Likewise.
10487 (alphabsd-tdep.o): New dependency list.
10488 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10489 (fill_gregset): Use alphabsd_fill_reg.
10490 (supply_fpregset): Use alphabsd_supply_fpreg.
10491 (fill_fpregset): Use alphabsd_fill_fpreg.
10492 (fetch_inferior_registers): Use struct reg and struct fpreg
10493 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10494 and alphabsd_supply_fpreg.
10495 (store_inferior_registers): Use struct reg and struct fpreg
10496 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10497 and alphabsd_fill_fpreg.
10498 * alphabsd-tdep.c: New file.
10499 * alphabsd-tdep.h: New file.
10500 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10501 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10502 alphabsd_supply_fpreg.
10503 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10504 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10506 2002-05-11 Eric Christopher <echristo@redhat.com>
10508 * mips-tdep.c (mips_double_register_type): Fix thinko.
10509 (mips_single_register_type): Ditto.
10510 * MAINTAINERS: Add self.
10512 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10514 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10515 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10516 right thing on architectures with different endianness and/or
10519 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10521 From Christian Limpach <chris@Pin.LU>
10522 * configure.in: Change sed expression which comments out
10523 NATDEPFILES to also comment out continuation lines.
10524 * configure: Regenerate.
10526 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10528 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10531 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10533 * sh-tdep.c: Include correct file.
10535 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10537 New support for sh64-elf (sh5) target.
10539 * configure.tgt: For sh64-elf target, default to sh-elf.
10541 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10542 (struct gdbarch_tdep): Add new fields for new registers and ABI
10545 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10546 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10547 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10548 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10549 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10550 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10551 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10552 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10553 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10554 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10555 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10556 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10557 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10558 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10559 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10560 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10561 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10562 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10563 sign_extend, sh64_nofp_frame_init_saved_regs,
10564 sh64_init_extra_frame_info, sh64_get_saved_register,
10565 sh64_extract_struct_value_address, sh64_pop_frame,
10566 sh64_push_arguments, sh64_extract_return_value,
10567 sh64_store_return_value, sh64_show_media_regs,
10568 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10569 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10570 sh_sh64_register_virtual_type,
10571 sh_sh64_register_convert_to_virtual,
10572 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10573 sh64_register_read, sh64_pseudo_register_write,
10574 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10575 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10576 sh64_do_pseudo_register, sh_compact_do_registers_info,
10577 sh64_do_registers_info, sh_gdbarch_init): New functions.
10579 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10581 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10583 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10585 * linespec.c (decode_line_1): Check for a double quote after
10586 a filename correctly.
10588 2002-05-10 Jim Blandy <jimb@redhat.com>
10590 Properly track the size of the current objfile's .debug_line section.
10591 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10592 (DWARF_LINE_SIZE): New macro.
10593 (dwarf2_build_psymtabs_hard): Record the line section's size in
10594 the partial symbol table.
10595 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10598 2002-05-10 Petr Sorfa <petrs@caldera.com>
10600 * ia64-tdep.c: Handle breakpoints on L instruction type
10601 in MLX instruction bundle by moving the breakpoint to
10602 the third slot (X instruction type) as L holds only data.
10604 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10606 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10607 (process_one_symbol): Complain about discarding local symbols
10608 due to a misplaced N_LBRAC entry.
10610 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10612 From Daniel Berlin <dan@cgsoftware.com>
10613 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10614 decrease the depth we are at, in the case of templates.
10616 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10618 * mips-tdep.c (mips_float_register_type): New function.
10619 (mips_double_register_type): New function.
10620 (mips_print_register): Use them.
10621 (do_fp_register_row): Likewise.
10623 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10625 * signals/signals.c (signals): Remove conditional compilation around
10626 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10627 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10629 2002-05-09 Michael Snyder <msnyder@redhat.com>
10631 * remote-rdp.c (remote_rdp_can_run): Remove.
10633 2002-05-09 Tom Tromey <tromey@redhat.com>
10635 * jv-valprint.c (java_val_print): Handle `char' as a special case
10638 2002-05-09 Michael Snyder <msnyder@redhat.com>
10640 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10641 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10642 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10643 str r(0123),[sp,#nn].
10644 (arm_skip_prologue): Ditto. Also make disassembly
10645 order-independent by placing it in a loop.
10647 2002-05-06 Michael Snyder <msnyder@redhat.com>
10649 * stabsread.c (read_type): Add recognition for new attribute:
10650 "@V;" means that an array type is actually a vector.
10651 This is analogous to the vector flag that's been added to dwarf2.
10653 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10655 * i386-tdep.h (i386_abi): New enum.
10656 (struct gdbarch_tdep): Replace os_ident member with abi.
10657 (i386_gdbarch_register_os_abi): New prototype.
10658 * i386-tdep.c (i386_abi_names): New array.
10659 (process_note_abi_tag_sections): Removed.
10660 (process_note_sections): New function.
10661 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10662 (struct i386_abi_handler): New struct.
10663 (i386_abi_handler_list): New variable.
10664 (i386_gdbarch_register_os_abi): New function.
10665 (i386_gdbarch_init): Adapt for the changes given above.
10667 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10669 * gregset.h: Say "GNU/Linux".
10671 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10673 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10674 (build_gdbtypes): Build builtin_type_v2_float.
10675 (_initialize_gdbtypes): Register new builtin type.
10677 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10679 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10680 (clear_gdbarch_swap): New function.
10681 (initialize_non_multiarch): Call.
10682 (gdbarch_update_p): Before calling init(), swap out and clear the
10683 existing architecture.
10684 * gdbarch.c: Regenerate.
10686 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10688 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10691 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10693 * sh-nbsd-nat.c: Rename to...
10694 * shnbsd-nat.c: ...this.
10695 * sh-nbsd-tdep.c: Rename to...
10696 * shnbsd-tdep.c: ...this.
10697 * sh-nbsd-tdep.h: Rename to...
10698 * shnbsd-tdep.h: ...this.
10699 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10700 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10702 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10704 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10705 concatenation for command help messages.
10707 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10709 * NEWS: Note new sh*-*-netbsdelf* configuration.
10710 * configure.host: Set gdb_host_cpu to sh for all sh*.
10711 (sh*-*-netbsdelf*): New host.
10712 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10713 (sh*-*-netbsdelf*): New target.
10714 * sh-nbsd-nat.c: New file.
10715 * sh-nbsd-tdep.c: New file.
10716 * sh-nbsd-tdep.h: New file.
10717 * config/sh/nbsd.mh: New file.
10718 * config/sh/nbsd.mt: New file.
10719 * config/sh/nm-nbsd.h: New file.
10720 * config/sh/tm-nbsd.h: New file.
10722 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10724 * sh-tdep.c (sh_osabi_names): Declare.
10725 (process_note_abi_tag_sections): New function.
10726 (get_elfosabi): Ditto.
10727 (sh_gdbarch_register_os_abi): Ditto.
10728 (sh_dump_tdep): Ditto.
10729 _initialize_sh_tdep): Use gdbarch_register to register
10730 sh_gdbarch_init and sh_dump_tdep.
10731 * config/sh/tm-sh.h (sh_osabi): Declare.
10732 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10734 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10736 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10737 (thumb_scan_prologue): Ditto.
10738 (arm_find_callers_reg): Ditto.
10739 (arm_frame_chain): Ditto.
10740 (arm_init_extra_frame_info): Ditto.
10741 (arm_frame_saved_pc): Ditto.
10742 (arm_pop_frame): Ditto.
10743 (arm_push_return_address): New function.
10744 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10745 call_dummy_location, call_dummy_breakpoint_offset_p,
10746 call_dummy_breakpoint_offset, call_dummy_p,
10747 call_dummy_stack_adjust_p, call_dummy_words,
10748 sizeof_call_dummy_words, call_dummy_start_offset,
10749 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10750 call_dummy_address, push_return_address and push_dummy_frame for
10751 generic dummy frames.
10753 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10755 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10756 size computation for alloca.
10757 (sh_fp_frame_init_saved_regs): Likewise.
10759 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10761 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10762 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10763 * arm-tdep.c (arm_store_return_value): Use them.
10764 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10765 * remote-rdp.c (remote_rdp_fetch_register): Use
10766 ARM_MAX_REGISTER_RAW_SIZE.
10767 (remote_rdp_store_register): Likewise.
10769 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10771 * dwarf2cfi.c: Code cleanup, removed unused variables,
10772 added default labels to switch {} statements.
10773 * x86-64-tdep.c: Ditto.
10774 * x86-64-linux-nat.c: Ditto.
10776 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10778 * solib.h: Protect against multiple inclusion.
10780 2002-05-06 Jim Blandy <jimb@redhat.com>
10782 Add first preprocessor macro-expansion files.
10783 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10784 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10785 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10786 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10787 (COMMON_OBS): Add macrotab.o, macroexp.o.
10788 (macroexp.o, macrotab.o): New rules.
10790 Separate the job of reading the line number info statement program
10791 header (...expialidocious) out into its own function.
10792 * dwarf2read.c (struct line_head, struct filenames, struct
10793 directories): Replace with...
10794 (struct line_header): New structure, containing the full
10795 contents of the statement program header, including the
10796 include directory and file name tables.
10797 (read_file_scope): If we have line number info, instead of just
10798 calling dwarf_decode_lines to do all the work, call
10799 dwarf_decode_line_header first to get a `struct line_header'
10800 containing the data in the statement program header, and then
10801 pass that to dwarf_decode_lines, which will pick up where that
10802 left off. Be sure to clean up the `struct line_header' object.
10803 (dwarf_decode_line_header, free_line_header, add_include_dir,
10804 add_file_name): New functions.
10805 (dwarf_decode_lines): Move all the code to read the statement
10806 program header into dwarf_decode_line_header. Take the line
10807 header it built as the first argument, instead of the offset to
10808 the compilation unit's line number info. Use the new `struct
10809 line_header' type instead of the old structures. No need to do
10810 cleanups here now, since we don't allocate anything.
10811 (dwarf2_statement_list_fits_in_line_number_section,
10812 dwarf2_line_header_too_long): New complaints.
10814 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10816 * gdbtypes.c (init_vector_type): New function.
10817 (build_builtin_type_vec128): Simplify the representation of SIMD
10819 (build_gdbtypes): Initialize new builtin vector types.
10820 (_initialize_gdbtypes): Register new vector types with gdbarch.
10821 (builtin_type_v4_float, builtin_type_v4_int32,
10822 builtin_type_v8_int16, builtin_type_v16_int8,
10823 builtin_type_v2_int32, builtin_type_v4_int16,
10824 builtin_type_v8_int8): New (renamed) SIMD types.
10826 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10828 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10829 (i387_fill_fxsave): Likewise.
10831 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10833 * alpha-tdep.c (alpha_extract_return_value): Don't use
10834 non-constant array size in prototype.
10836 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10838 From Brian Taylor <briant at model dot com>:
10839 * ui-out.c (ui_out_field_core_addr): Use the function
10840 longest_local_hex_string_custom'to format addresses > 32 bits
10843 * ui-out.c (ui_out_field_core_addr): Update comment.
10845 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10847 * stack.c (select_and_print_frame): Make static. Delete the
10849 (func_command): Update call.
10850 (select_frame_command): Delete code computing the frame level.
10851 * frame.h (select_and_print_frame): Delete declaration.
10853 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10855 * sparc-tdep.c (sparc_get_saved_register): Comment why
10856 get_prev_frame call is safe.
10858 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10860 * frame.h (select_frame): Delete level parameter.
10861 * stack.c (select_frame): Update. Use frame_relative_level to
10862 obtain the frame's level.
10863 (select_and_print_frame): Update call.
10864 (select_frame_command): Ditto.
10865 (up_silently_base): Ditto.
10866 (down_silently_base): Ditto.
10867 * ocd.c (ocd_start_remote): Ditto.
10868 * remote-rdp.c (remote_rdp_open): Ditto.
10869 * remote-mips.c (mips_initialize): Ditto.
10870 (common_open): Ditto.
10871 * remote-e7000.c (e7000_start_remote): Ditto.
10872 * m3-nat.c (select_thread): Ditto.
10873 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10874 (child_get_current_exception_event): Ditto.
10875 * varobj.c (varobj_create): Ditto.
10876 (varobj_update): Ditto.
10877 (c_value_of_root): Ditto.
10878 * tracepoint.c (finish_tfind_command): Ditto.
10879 * corelow.c (core_open): Ditto.
10880 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10881 * thread.c (info_threads_command): Ditto.
10882 (switch_to_thread): Ditto.
10883 * infrun.c (normal_stop): Ditto.
10884 (restore_selected_frame): Ditto.
10885 (restore_inferior_status): Ditto.
10886 * breakpoint.c (insert_breakpoints): Ditto.
10887 (watchpoint_check): Ditto.
10888 (bpstat_stop_status): Ditto.
10889 (do_enable_breakpoint): Ditto.
10890 * blockframe.c (flush_cached_frames): Ditto.
10891 (reinit_frame_cache): Ditto.
10893 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10895 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10898 2002-05-04 Jim Blandy <jimb@redhat.com>
10900 * gdbtypes.c (replace_type): Doc fix.
10902 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10904 * valprint.c (strcat_longest): Delete commented out function.
10907 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10909 * MAINTAINERS: Mark a29k as deleted.
10910 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10911 Move new configurations to the top.
10912 * configure.tgt: Remove a29k.
10913 * config/a29k/tm-vx29k.h: Delete.
10914 * config/a29k/vx29k.mt: Delete.
10915 * config/a29k/tm-a29k.h: Delete.
10916 * config/a29k/a29k-udi.mt: Delete.
10917 * config/a29k/a29k.mt: Delete.
10918 * a29k-tdep.c: Delete.
10919 * remote-udi.c: Delete.
10920 * remote-mm.c: Delete.
10921 * remote-eb.c: Delete.
10922 * remote-adapt.c: Delete.
10923 * Makefile.in: Remove obsolete code.
10924 * config/s390/s390x.mt: Ditto.
10925 * config/s390/s390.mt: Ditto.
10926 * config/sparc/sparclynx.mh: Ditto.
10927 * config/sparc/linux.mh: Ditto.
10928 * config/pa/hppaosf.mh: Ditto.
10929 * config/pa/hppabsd.mh: Ditto.
10930 * config/ns32k/nbsd.mt: Ditto.
10931 * config/mips/vr5000.mt: Ditto.
10932 * config/m68k/sun3os4.mh: Ditto.
10933 * config/m68k/nbsd.mt: Ditto.
10934 * config/m68k/m68klynx.mh: Ditto.
10935 * config/m32r/m32r.mt: Ditto.
10936 * config/i386/x86-64linux.mt: Ditto.
10937 * config/i386/nbsdelf.mt: Ditto.
10938 * config/i386/nbsd.mt: Ditto.
10939 * config/i386/i386lynx.mh: Ditto.
10941 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10943 * target.c (debug_print_register): New function. Handle oversize
10945 (debug_to_fetch_registers): Call.
10946 (debug_to_store_registers): Call.
10948 2002-05-03 Jim Blandy <jimb@redhat.com>
10950 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10951 (read_type): Doc fix.
10952 * gdbtypes.c (replace_type): Doc fix.
10954 * stabsread.c (multiply_defined_struct): New complaint.
10955 (read_struct_type): If the type we were passed isn't empty, or
10956 incomplete, don't read the new struct type into it; complain,
10957 and return the original type unchanged. Take a new `type_code'
10958 argument, which is the type code for the new type.
10959 (read_type): Rather than storing the type's type code here, pass
10960 it as an argument to read_struct_type, and let that take care of
10961 storing it. That way, we don't overwrite the original type code,
10962 so read_struct_type can use it to decide whether we're overwriting
10963 something we shouldn't.
10964 (complain_about_struct_wipeout): New function.
10966 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10968 * gdbarch.sh: Assert that gdbarch is non-NULL.
10969 * gdbarch.c: Regenerate.
10971 2002-05-03 Jason Merrill <jason@redhat.com>
10973 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10976 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10978 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10979 (x86_64_dwarf2gdb_regno_map_length),
10980 (x86_64_dwarf2_reg_to_regnum): Added.
10981 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10982 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10983 (_initialize_x86_64_tdep): Synced with the change above.
10984 (x86_64_skip_prologue): Reformulated message.
10986 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10988 * f-exp.y: Also use new prev_lexptr variable
10989 to improve error reporting. Based on Michael Snyder
10990 2002-04-24 dated patch to c-exp.y.
10991 * jv-exp.y: Likewise.
10992 * m2-exp.y: Likewise.
10994 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10996 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10997 we are dealing with vectors.
10999 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11001 * config/m68k/tm-nbsd.h: Obvious fix,
11002 correct machine name.
11004 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11006 * p-typeprint.c (pascal_type_print_base): Add support
11007 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
11009 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11011 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
11012 for fondamental pascal 'char' type.
11014 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11016 * p-lang.h (is_pascal_string_type): Declaration changed,
11017 new sixth argument of type char ** added.
11018 * p-lang.c (is_pascal_string_type): Implementation
11019 changed. Args length_pos, length_size, string_pos, char_size
11020 can now be NULL. New argument arrayname set to the field
11021 name of the char array. Return value set to char array
11022 field index plus one.
11023 * p-valprint.c (pascal_val_print): Adapt to new declaration of
11024 is_pascal_string_type function.
11026 2002-05-02 Andrew Cagney <cagney@redhat.com>
11028 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
11029 <cagney@redhat.com> change.
11030 * gdbarch.c: Regenerate.
11032 2002-05-02 Andrew Cagney <cagney@redhat.com>
11034 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
11035 before probing for a new one. Detect errorenous gdbarch_init
11037 * gdbarch.c: Regenerate.
11039 2002-05-01 Andrew Cagney <cagney@redhat.com>
11041 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
11042 * config/mcore/tm-mcore.h: Ditto. Update copyright.
11043 * config/v850/tm-v850.h: Ditto. Update copyright.
11045 2002-04-30 Andrew Cagney <ac131313@redhat.com>
11047 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11050 2002-04-30 Michael Snyder <msnyder@redhat.com>
11052 * arm-tdep.c: Whitespace clean-ups.
11053 (arm_skip_prologue): Fix thinko; two lines
11054 should have been removed as part of 4/24 change.
11056 2002-04-30 Kevin Buettner <kevinb@redhat.com>
11058 * rs6000-tdep.c: Added comment describing how fpscr register
11059 numbers were chosen.
11061 2002-04-30 Michael Snyder <msnyder@redhat.com>
11063 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11065 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11067 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11068 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11069 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11071 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11073 From Louis Hamilton <hamilton@redhat.com>:
11074 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11075 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11076 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11077 not bfd-private xcoff data, to determine wordsize.
11078 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11080 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11082 GDB 5.2 released from 5.2 branch.
11084 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11086 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11087 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11088 (x86_64_register_info_table): Added comments with register numbers.
11090 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11092 * rs6000-tdep.c (rs6000_extract_return_value,
11093 rs6000_store_return_value): Handle returning vectors.
11094 (rs6000_gdbarch_init): Use
11095 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11096 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11098 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11100 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11101 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11103 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11105 * hpread.c (hpread_psymtab_to_symtab_1,
11106 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11107 with fprintf_unfiltered (gdb_stderr,...).
11109 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11111 * remote-array.c (printf_monitor, write_monitor,
11112 array_insert_breakpoint, array_remove_breakpoint ):
11113 Replace fprintf (stderr,...
11114 with fprintf_unfiltered (gdb_stderr,....
11115 * remote-es.c: Likewise.
11116 * remote-os9k.c: Likewise.
11117 * remote-st.c: Likewise.
11119 2002-04-28 Andreas Schwab <schwab@suse.de>
11121 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11122 linux-proc.o and gcore.o.
11124 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11126 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11127 code without frame pointers.
11129 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11131 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11132 ON_STACK is needed.
11134 2002-04-26 Ben Elliston <bje@redhat.com>
11136 * target.c (do_xfer_memory): Correct reference to the new option
11137 "trust-readonly-sections".
11139 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11141 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11142 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11143 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11145 (read_array_type): Record the fact that this array type is really a
11146 vector (i.e. are passed in by value).
11148 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11150 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11151 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11152 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11153 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11154 * alpha-linux-tdep.c: Include frame.h.
11155 (alpha_linux_sigcontext_addr): New function.
11156 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11157 alpha_linux_sigcontext_addr.
11158 * alpha-osf1-tdep.c: Include gdbcore.h.
11159 (alpha_osf1_sigcontext_addr): New function.
11160 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11161 alpha_osf1_sigcontext_addr.
11162 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11163 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11165 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11167 * stack.c (selected_frame_level):
11168 (select_frame): Do not set selected_frame_level.
11169 * frame.h (selected_frame_level): Delete declaration.
11171 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11173 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11174 convert_from_func_ptr-addr when AIX / PowerOpen.
11176 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11178 * valops.c (hand_function_call): Call
11179 generic_save_call_dummy_addr.
11180 * frame.h (generic_save_call_dummy_addr): Declare.
11181 * blockframe.c (struct dummy_frame): Add fields call_lo and
11183 (generic_find_dummy_frame): Check for PC in range call_lo to
11184 call_hi instead of entry_point_address.
11185 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11186 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11187 (generic_save_call_dummy_addr): New function.
11189 2002-04-24 David S. Miller <davem@redhat.com>
11191 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11192 sparc_skip_prologue.
11193 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11194 information to find prologue when possible.
11195 (sparc_prologue_frameless_p): Call examine_prologue directly.
11196 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11197 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11199 (SKIP_PROLOGUE): Likewise.
11201 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11203 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11204 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11205 indicate that the condition it was testing is always true.
11206 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11207 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11208 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11210 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11212 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11213 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11214 tdep->jb_pc and tdep->jb_elt_size.
11215 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11216 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11217 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11218 * alpha-nat.c (get_longjmp_target): Remove.
11219 (JB_ELEMENT_SIZE): Ditto.
11221 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11222 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11223 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11224 to alpha_get_longjmp_target.
11225 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11226 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11227 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11229 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11231 * README: Update to GDB 5.2.
11233 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11235 * gdbarch.sh (LC_ALL): Set to `c'.
11237 2002-04-25 Theodore A. Roth <troth@verinet.com>
11239 * avr-tdep.c: Ran through gdb_indent.sh.
11241 2002-04-25 Theodore A. Roth <troth@verinet.com>
11243 * MAINTAINERS: Add myself as AVR maintainer.
11244 * NEWS: Note new target avr.
11246 2002-04-25 Theodore A. Roth <troth@verinet.com>
11248 * Makefile.in: Add support for AVR target.
11249 * configure.tgt: Add support for AVR target.
11250 * avr-tdep.c: New file
11251 * config/avr/avr.mt: New file.
11253 2002-04-25 Theodore A. Roth <troth@verinet.com>
11255 * MAINTAINERS: Add myself to write-after-approval.
11257 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11259 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11260 with fprintf_unfiltered (gdb_stderr,....
11262 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11265 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11267 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11269 * p-exp.y: Also use new prev_lexptr variable
11270 to improve error reporting. Based on Michael Snyder
11271 2002-04-24 dated patch to c-exp.y.
11273 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11275 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11276 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11277 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11279 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11281 (FUNCTION_START_OFFSET): Remove.
11282 (BREAKPOINT): Ditto.
11284 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11286 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11289 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11291 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11292 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11293 alpha_linux_pc_in_sigtramp.
11294 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11295 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11296 alpha_osf1_pc_in_sigtramp.
11297 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11298 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11299 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11300 alphafbsd_pc_in_sigtramp.
11301 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11302 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11303 alphanbsd_pc_in_sigtramp.
11304 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11305 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11307 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11309 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11311 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11313 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11315 (alphanbsd-nat.o): New dependency list.
11316 (alphanbsd-tdep.o): Ditto.
11317 * NEWS: Note new native NetBSD/alpha configuration.
11318 * alphanbsd-nat.c: New file.
11319 * alphanbsd-tdep.c: Ditto.
11320 * configure.host (alpha*-*-netbsd*): New host.
11321 * configure.tgt (alpha*-*-netbsd*): New target.
11322 * config/alpha/nbsd.mh: New file.
11323 * config/alpha/nbsd.mt: Ditto.
11324 * config/alpha/nm-nbsd.h: Ditto.
11325 * config/alpha/tm-nbsd.h: Ditto.
11327 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11329 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11330 (alpha-osf1-tdep.o): New dependency list.
11331 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11332 and skip_sigtramp_frame members.
11333 * alpha-linux-tdep.c: Include gdbcore.h.
11334 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11335 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11336 * alpha-osf1-tdep.c: New file.
11337 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11339 (alpha_frame_past_sigtramp_frame): New function.
11340 (alpha_dynamic_sigtramp_offset): Ditto.
11341 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11342 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11343 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11344 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11345 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11346 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11347 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11348 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11349 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11350 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11351 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11352 to find_solib_trampoline_target.
11353 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11354 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11355 (SKIP_TRAMPOLINE_CODE): Remove.
11356 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11357 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11358 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11359 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11360 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11361 (PROC_SIGTRAMP_MAGIC): Ditto.
11362 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11363 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11364 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11365 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11366 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11368 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11370 * NEWS: Note that Alpha targets are now multi-arch.
11372 2002-04-24 Michael Snyder <msnyder@redhat.com>
11374 * parser-defs.h (prev_lexptr): New external variable.
11375 * parse.c (parse_exp_1): Set prev_lexptr to null before
11376 calling the language-specific parser.
11377 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11378 (yyerror): Use prev_lexptr in error reporting.
11380 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11382 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11383 * gregset.h: If FILL_FPXREGSET is defined, provide
11384 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11385 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11386 is defined, call fill_fpxregset.
11388 2002-04-24 Roland McGrath <roland@frob.com>
11390 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11391 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11392 (supply_gregset, supply_fpregset): New functions.
11394 * gnu-nat.c (gnu_find_memory_regions): New function.
11395 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11396 (gnu_xfer_memory): Add a cast.
11398 2002-04-24 Michael Snyder <msnyder@redhat.com>
11400 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11401 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11402 of argument regs ("str r(0123), [r11, #-nn"]).
11403 (arm_skip_prologue): Better handling for frameless functions.
11404 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11405 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11407 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11409 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11410 NUM_PSEUDO_REGS can be used.
11412 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11414 * arch-utils.h: Update copyright.
11416 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11417 * gdbarch.h, gdbarch.c: Re-generate.
11419 * inferior.h (IN_SIGTRAMP): Delete definition.
11420 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11421 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11423 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11424 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11425 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11426 (find_proc_framesize): Ditto.
11427 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11428 (alpha_init_extra_frame_info): Ditto.
11429 * infrun.c (handle_inferior_event): Ditto.
11430 (handle_inferior_event): Ditto.
11431 (check_sigtramp2): Ditto.
11432 * blockframe.c (create_new_frame): Ditto.
11433 (get_prev_frame): Ditto.
11434 * ppc-linux-tdep.c: Update comments.
11435 * i386-linux-tdep.c: Update comments.
11436 * breakpoint.c (bpstat_what): Update comment.
11438 2002-04-24 David S. Miller <davem@redhat.com>
11440 * i960-tdep.c (register_in_window_p): New function.
11441 (i960_find_saved_register): Use it instead of
11442 REGISTER_IN_WINDOW_P.
11443 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11445 * symtab.h (find_stab_function_addr): Kill extern.
11446 * minsyms.c (find_stab_function_addr): Remove from here...
11447 * dbxread.c: ... to here, and mark it static.
11449 2002-04-20 David S. Miller <davem@redhat.com>
11451 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11452 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11454 2002-04-21 David S. Miller <davem@redhat.com>
11456 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11457 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11458 (vx_write_register): Likewise.
11460 2002-04-23 J. Brobecker <brobecker@gnat.com>
11462 * source.c (is_regular_file): New function.
11463 (openp): Check wether file to open is a regular file
11464 to avoid opening directories.
11466 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11468 * findvar.c (extract_signed_integer): Cast printf argument
11469 to suppress format warning.
11470 (extract_unsigned_integer): Likewise.
11471 * infcmd.c (registers_info): Likewise.
11472 * top.c (get_prompt_1): Likewise.
11473 * valops.c (value_assign): Likewise.
11474 * valprint.c (print_decimal): Likewise.
11476 2002-04-22 H.J. Lu (hjl@gnu.org)
11478 * c-exp.y (typebase): Support
11480 [long|long long|short] [signed|unsigned] [int|]
11484 signed [long|long long|short] int
11486 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11488 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11490 * vax-tdep.h: New file.
11491 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11492 Make several routines static.
11493 (vax_get_saved_register): New function.
11494 (vax_gdbarch_init): New function.
11495 (_initialize_vax_tdep): Register vax_gdbarch_init.
11496 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11497 Remove macros now under the control of gdbarch.
11499 2002-04-22 Michael Snyder <msnyder@redhat.com>
11501 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11502 Some whitespace and coding standards tweaks.
11504 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11506 * vax-tdep.c: Include regcache.h.
11507 (vax_call_dummy_words): New.
11508 (sizeof_vax_call_dummy_words): New.
11509 (vax_fix_call_dummy): New function.
11510 (vax_saved_pc_after_call): Ditto.
11511 * config/vax/tm-vax.h: Don't include regcache.h.
11512 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11513 (CALL_DUMMY): Remove.
11514 (CALL_DUMMY_WORDS): Define.
11515 (SIZEOF_CALL_DUMMY_WORDS): Define.
11516 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11518 2002-04-18 Michael Snyder <msnyder@redhat.com>
11520 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11522 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11524 * vax-tdep.c (vax_frame_chain): New function.
11525 (vax_push_dummy_frame): Ditto.
11526 (vax_pop_frame): Ditto.
11527 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11528 (FRAMELESS_FUNCTION_INVOCATION): Use
11529 generic_frameless_function_invocation_not.
11530 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11531 (POP_FRAME): Use vax_pop_frame.
11533 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11535 * vax-tdep.c (vax_store_struct_return): New function.
11536 (vax_extract_return_value): Ditto.
11537 (vax_store_return_value): Ditto.
11538 (vax_extract_struct_value_address): Ditto.
11539 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11540 vax_store_struct_return.
11541 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11542 (STORE_RETURN_VALUE): Use vax_store_return_value.
11543 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11545 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11547 * vax-tdep.c (vax_frame_saved_pc): New function.
11548 (vax_frame_args_address_correct): Ditto.
11549 (vax_frame_args_address): Ditto.
11550 (vax_frame_locals_address): Ditto.
11551 (vax_frame_num_args): Move code to be in proximity to
11552 other frame-related functions.
11553 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11554 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11555 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11556 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11557 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11559 2002-04-22 H.J. Lu (hjl@gnu.org)
11561 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11564 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11566 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11567 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11568 (FRAME_INIT_SAVED_REGS): New macro.
11570 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11572 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11574 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11576 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11578 (fetch_osf_core_registers): Likewise.
11579 (supply_gregset): Likewise.
11581 2002-04-22 J. Brobecker <brobecker@gnat.com>
11583 * symfile.h (get_section_index): Define.
11584 * symfile.c (get_section_index): New function.
11585 * mdebugread.c (SC_IS_SBSS): New macro.
11586 (SC_IS_BSS): Return true for the scBss storage class only, as
11587 the scSBss storage class refers to the .sbss section.
11588 (parse_partial_symbols): Discard the symbols which associated
11589 section does not exist.
11590 Make sure to use the .sbss section index for symbols which
11591 storage class is scBss, rather than using the .bss section index.
11593 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11595 * vax-tdep.c: Update copyright years.
11596 (vax_register_name): New function.
11597 (vax_register_byte): Ditto.
11598 (vax_register_raw_size): Ditto.
11599 (vax_register_virtual_size): Ditto.
11600 (vax_register_virtual_type): Ditto.
11601 * config/vax/tm-vax.h: Update copyright years.
11602 (REGISTER_NAMES): Remove.
11603 (REGISTER_NAME): Define.
11604 (REGISTER_BYTE): Use vax_register_byte.
11605 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11606 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11607 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11609 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11611 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11613 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11615 2002-04-21 David S. Miller <davem@redhat.com>
11617 * arch-utils.c (generic_prologue_frameless_p): Kill
11618 SKIP_PROLOGUE_FRAMELESS_P code.
11619 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11621 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11622 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11623 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11625 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11626 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11627 (sparc_gdbarch_init): Pass it to
11628 set_gdbarch_prologue_frameless_p.
11630 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11632 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11633 (alphabsd-nat.o): New dependency list.
11635 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11637 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11639 (alpha-linux-tdep.o): New dependency list.
11640 (alphafbsd-tdep.o): Likewise.
11642 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11644 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11646 * alpha-tdep.c: ...from here.
11647 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11649 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11651 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11652 prototype from here...
11653 * alpha-tdep.h: ...to here.
11655 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11657 * frame.h (selected_frame_level): Document as deprecated.
11658 (frame_relative_level): Declare.
11659 * stack.c (frame_relative_level): New function.
11660 (selected_frame_level): Document as deprecated.
11661 (select_frame): Do not set the selected_frame_level.
11663 * stack.c (frame_info, record_selected_frame): Update.
11664 (frame_command, current_frame_command): Update.
11665 (up_silently_base, up_command, down_silently_base): Update.
11666 (down_command): Update.
11667 * inflow.c (kill_command): Update.
11668 * tracepoint.c (finish_tfind_command): Update.
11669 * corelow.c (core_open): Update.
11670 * thread.c (info_threads_command): Update.
11671 (do_captured_thread_select): Update.
11672 * infcmd.c (finish_command): Update.
11673 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11675 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11677 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11679 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11681 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11684 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11686 * alphafbsd-tdep.c: Update copyright years. Include
11688 (alphafbsd_use_struct_convention): Make static.
11689 (alphafbsd_init_abi): New function.
11690 (_initialize_alphafbsd_tdep): New function.
11691 * config/alpha/tm-fbsd.h: Update copyright years.
11692 (USE_STRUCT_CONVENTION): Remove.
11694 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11696 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11697 an Alpha ABI variant.
11698 (alpha_abi_handler_list): Declare.
11699 (alpha_gdbarch_register_os_abi): New function.
11700 (alpha_gdbarch_init): Give registered ABI variant handlers a
11701 chance to tweak the gdbarch once we have set up defaults.
11702 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11704 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11706 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11707 to standard_coerce_float_to_double.
11708 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11710 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11712 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11713 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11714 from gdbarch_tdep rather than a constant.
11715 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11716 the default text address for all Alpha Unix ABIs.
11717 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11718 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11720 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11722 * alpha-tdep.h: New file. Includes several Alpha target constants
11724 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11725 let gdbarch deal with.
11726 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11727 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11728 to dependency list.
11729 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11730 Alpha target register names.
11731 * alphabsd-nat.c: Likewise.
11732 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11733 Alpha target register names. Make serveral routines static.
11734 (alpha_get_saved_register): New function.
11735 (alpha_abi_names): New.
11736 (process_note_abi_tag_sections): New function.
11737 (get_elfosabi): New function.
11738 (alpha_gdbarch_init): New function.
11739 (alpha_dump_tdep): New function.
11740 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11742 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11744 * frame.c (find_saved_register): Delete #ifdef
11745 HAVE_REGISTER_WINDOWS code.
11746 * config/sparc/tm-sparc.h: Update comments.
11747 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11749 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11751 * i960-tdep.c (i960_find_saved_register): New function.
11752 (i960_get_saved_register): New function.
11753 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11754 (i960_get_saved_register): Declare.
11755 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11757 2002-04-20 David S. Miller <davem@redhat.com>
11759 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11761 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11763 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11764 instead of NUM_PSEUDO_REGS.
11766 2002-04-20 David S. Miller <davem@redhat.com>
11768 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11769 GDB_MULTI_ARCH_PARTIAL
11770 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11771 define, let tm-sp64.h do it.
11773 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11775 * frame.c (find_saved_register): Avoid a NULL pointer
11776 dereference and actually walk the frame list.
11778 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11780 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11781 sorted in most most-recent-used order. Document.
11782 * gdbarch.h, gdbarch.c: Regenerate.
11784 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11786 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11788 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11789 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11790 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11793 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11796 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11797 (build_builtin_type_vec128): Ditto.
11798 (append_composite_type_field): Fix calculation of type length in
11801 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11803 * config/djgpp/README: Update.
11805 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11808 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11810 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11811 (alpha_setup_arbitrary_frame): ...to this.
11812 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11813 for alpha_setup_arbitrary_frame.
11815 2002-04-18 Andrew Cagney <cagney@redhat.com>
11817 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11818 * gdbarch.h, gdbarch.c: Regenerate.
11820 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11821 * target.h (memory_breakpoint_from_pc): Update declaration.
11822 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11824 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11825 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11826 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11827 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11828 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11829 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11830 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11831 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11832 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11833 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11834 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11835 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11837 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11839 * monitor.c (monitor_insert_breakpoint): Ditto.
11840 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11842 * config/mcore/tm-mcore.h: Update copyright.
11843 * mem-break.c: Ditto.
11844 * xstormy16-tdep.c: Ditto.
11846 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11848 * p-exp.y: Add precedence rule for '^' token.
11849 This removes the shift/reduce conflicts.
11850 Remove the comment concerning these shift/reduce conflicts.
11852 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11854 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11855 (registers_powerpc_nofp): New register set for processors
11856 without floating point unit.
11858 2002-04-18 David S. Miller <davem@redhat.com>
11860 * MAINTAINERS: Add myself to write-after-approval.
11862 2002-04-17 Michael Snyder <msnyder@redhat.com>
11864 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11866 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11868 * rs6000-tdep.c (frame_initial_stack_address): Use
11869 frame_register_read to read the alloca_reg.
11871 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11873 * frame.c (find_saved_register): Find saved registers in the next
11877 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11879 * gdbarch.sh (LANG): Set to ``c''.
11881 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11883 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11885 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11887 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11890 * hpread.c (hpread_get_lntt): Add declaration.
11891 Also fix PR gdb/391.
11893 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11895 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11896 * aclocal.m4, configure: Re-generate.
11899 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11901 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11902 instead of tm_print_insn.
11904 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11906 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11908 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11910 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11911 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11912 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11914 2002-04-12 Don Howard <dhoward@redhat.com>
11916 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11917 max_user_call_depth.
11918 (init_cmd_lists): Initialize the new value;
11919 * cli/cli-script.c (execute_user_command): Limit the call depth of
11920 user defined commands. This avoids a core-dump when user commands
11921 are infinitly recursive.
11923 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11925 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11926 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11927 from tdep struct instead of DEFAULT_LR_SAVE.
11928 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11929 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11930 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11932 2002-04-12 Michael Snyder <msnyder@redhat.com>
11934 * Remote.c: Spelling fix.
11935 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11936 If no symbol found for "sbrk", try "_sbrk".
11937 (make_output_phdrs): Use bfd_section_name.
11938 (gcore_copy_callback): Use bfd_section_name.
11939 * eval.c: Indentation fix-ups.
11940 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11941 in case it gets applied to an address that is already
11942 in the instruction space.
11943 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11944 * symfile.c: Fix indentation, long lines.
11945 * source.c: White space fix-up.
11947 2002-04-12 Andrew Cagney <cagney@redhat.com>
11949 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11950 * frame.c (frame_register_read): New function. Return non-zero on
11952 (read_relative_register_raw_bytes_for_frame): Delete.
11953 (read_relative_register_raw_bytes): Delete.
11954 * frame.h (frame_register_read): Declare.
11955 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11956 * sh-tdep.c: Ditto.
11957 * infcmd.c (do_registers_info): Ditto.
11958 * hppa-tdep.c: Ditto.
11959 * rs6000-tdep.c: Ditto.
11960 * h8500-tdep.c: Ditto.
11961 * mips-tdep.c: Ditto.
11962 * h8300-tdep.c: Ditto.
11963 * z8k-tdep.c: Ditto.
11965 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11967 From Jimi X <jimix@watson.ibm.com>:
11968 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11971 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11973 From Jimi X <jimix@watson.ibm.com>:
11974 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11977 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11979 From Jimi X <jimix@watson.ibm.com>:
11980 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11981 register sets for these processor variants.
11983 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11985 * regformats/reg-ppc.dat: Support FPSCR.
11987 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11989 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11990 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11991 Add fpscr as an invalid/unfetchable register.
11992 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11993 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11994 (fill_fpregset): Add support for register fpscr.
11995 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11996 (fill_gregset): Account for the fact that register ``mq'' might
11998 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11999 (registers_power): Add fpscr to register set at slot 71.
12000 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
12001 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
12003 2002-04-11 Michael Snyder <msnyder@redhat.com>
12005 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
12006 * configure: Regenerate.
12007 * config.in: Regenerate.
12008 * acconfig.h: Add define for _SYSCALL32.
12009 * core-sol2.c: Remove #define _SYSCALL32.
12010 * solib-legacy.c: Remove #define _SYSCALL32.
12012 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12014 * stack.c (select_frame): Cleanup internal error message, do not
12017 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12019 * stack.c (select_frame): Check that selected_frame and the
12020 specified level are as expected.
12021 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
12023 * frame.h (struct frame_info): Add field `level'. Update
12025 Work-in-progress PR gdb/464.
12027 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12029 * maint.c (maint_print_section_info): Rename print_section_info.
12030 (print_bfd_section_info, print_objfile_section_info): Update.
12031 * inferior.h (struct gdbarch): Add opaque declaration.
12032 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
12033 * gdbarch.h: Regenerate.
12035 2002-04-10 Michal Ludvig <mludvig@suse.cz>
12037 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
12038 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
12039 (kernel_u_size): Added.
12040 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
12041 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
12043 2002-04-04 Jim Ingham <jingham@apple.com>
12045 * valarith.c (find_size_for_pointer_math): New function, either returns
12046 the size for a pointer's target, returns 1 for void *, or errors for
12048 (value_add, value_sub): use find_size_for_pointer_math.
12050 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12052 * linux-low.c (linux_look_up_symbols): New hook.
12053 (linux_target_ops): Add linux_look_up_symbols.
12054 * remote-utils.c (decode_address): New function.
12055 (look_up_one_symbol): New function.
12056 * server.c (handle_query): Call target look_up_symbols hook.
12057 * server.h (look_up_one_symbol): Add prototype.
12058 * target.h (struct target_ops): Add look_up_symbols hook.
12060 2002-04-09 Andrew Cagney <ac131313@redhat.com>
12062 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12063 override FP_REGNUM with frame->fp. Update copyright.
12064 * parse.c (num_std_regs, std_regs): Delete.
12065 (target_map_name_to_register): Do not search std_regs. Update
12066 function description.
12067 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12068 declarations. Update copyright.
12071 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12073 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12074 after the last symbol in a block.
12076 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12078 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12079 is non zero as a found symbol.
12081 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12083 * findvar.c: Include "builtin-regs.h".
12084 (value_of_register): Call value_of_builtin_reg when applicable.
12085 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12086 (target_map_name_to_register): Call
12087 builtin_reg_map_name_to_regnum.
12088 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12089 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12090 (builtin_regs_h): Define.
12091 (builtin-regs.o): New target.
12092 (findvar.o): Add $(builtin_regs_h).
12093 * builtin-regs.c, builtin-regs.h: New files.
12094 * std-regs.c: New file.
12095 Partial fix for PR gdb/251.
12097 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12099 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12100 it's no longer required.
12102 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12104 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12106 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12108 From Jimi X <jimix@watson.ibm.com>:
12109 * rs6000-tdep.c (rs6000_software_single_step): Use
12110 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12111 and size. Use target_insert_breakpoint() and
12112 target_remove_breakpoint() to insert and remove breakpoints
12113 instead of explicit memory reads and writes.
12115 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12117 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12118 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12119 ELF_OBJECT_FORMAT ifdef.
12121 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12123 From Jimi X <jimix@watson.ibm.com>:
12124 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12126 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12128 From Jimi X <jimix@watson.ibm.com>:
12129 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12130 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12132 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12134 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12135 s/asprintf/xasprintf/.
12136 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12138 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12140 I believe Jeff Law denies responsability for this one:
12141 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12142 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12143 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12144 Work-around for PR gdb/366.
12146 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12148 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12149 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12150 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12152 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12154 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12155 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12158 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12160 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12163 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12165 * README (Reporting Bugs in GDB): Document the bug web page as the
12166 prefered way of submitting bugs.
12169 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12171 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12172 -1. Update comment.
12173 * gdbarch.h, gdbarch.c: Re-generate.
12175 2002-04-07 Andreas Schwab <schwab@suse.de>
12177 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12178 buffer to regcache_collect.
12180 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12182 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12183 * gdbarch.c, gdbarch.h: Re-generate.
12185 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12187 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12188 declaration. Fix -Werror.
12190 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12192 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12193 * gdbarch.c: Regenerate.
12195 2002-04-05 Michael Snyder <msnyder@redhat.com>
12197 * breakpoint.c (clear_command): Rewrite middle section to
12198 combine two loops with identical control conditions.
12199 Add a cleanup to eliminate a memory leak.
12200 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12202 2002-04-05 H.J. Lu (hjl@gnu.org)
12204 * solib-svr4.c (bkpt_names): Add "__start".
12206 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12208 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12209 as test for 64 bit target.
12211 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12213 * h8500-tdep.c (h8500_write_fp): Delete function.
12214 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12215 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12216 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12218 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12219 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12221 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12222 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12223 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12224 (d10v_write_fp): Delete function.
12225 * inferior.h (write_fp, generic_target_write_fp): Delete
12227 * regcache.c (generic_target_write_fp): Delete function.
12228 (write_fp): Delete function.
12229 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12230 * gdbarch.h, gdbarch.c: Regenerate.
12231 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12232 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12233 (sparc64_write_fp): Delete declaration.
12234 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12235 (h8500_write_fp): Delete declaration.
12237 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12239 * sparc-tdep.c (sparc64_write_fp): Delete.
12240 (sparc_push_dummy_frame): Replace write_fp call with code to store
12242 (sparc_gdbarch_init): Do not initialize write_fp.
12244 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12246 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12249 2002-03-29 Jim Blandy <jimb@redhat.com>
12251 * stack.c (get_selected_block): Add new argument `addr_in_block',
12252 used to return the exact code address we used to select the block,
12253 not just the block.
12254 * blockframe.c (get_frame_block, get_current_block): Same.
12255 * frame.h (get_frame_block, get_current_block,
12256 get_selected_block): Update declarations.
12257 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12258 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12260 2002-04-05 Michael Snyder <msnyder@redhat.com>
12262 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12265 2002-04-05 J. Brobecker <brobecker@gnat.com>
12267 * utils.c (xfullpath): New function.
12268 * defs.h (xfullpath): Add declaration.
12269 * source.c (openp): Use xfullpath in place of gdb_realpath to
12270 avoid resolving the basename part of filenames when the
12271 associated file is a symbolic link. This fixes a potential
12272 inconsistency between the filenames known to GDB and the
12273 filenames it prints in the annotations.
12274 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12275 to be able to match a filename with either the real filename, or
12276 the name of any symbolic link to this file.
12277 (lookup_partial_symtab): Ditto.
12279 2002-04-04 Michael Snyder <msnyder@redhat.com>
12281 * breakpoint.c: Add support for hardware breakpoints in overlays.
12282 (overlay_events_enabled): New state variable.
12283 (insert_breakpoints): Use overlay_events_enabled to decide
12284 whether to attempt to set a breakpoint at the overlay load addr.
12285 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12286 (remove_breakpoint): Use overlay_events_enabled to decide
12287 whether breakpoints need to be removed from overlay load addr.
12288 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12289 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12290 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12291 disable_overlay_breakpoints): Update overlay_events_enabled.
12293 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12295 * dwarf2read.c (struct function_range): New.
12296 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12297 (check_cu_functions): New.
12298 (read_file_scope): Initialize global function lists.
12299 Call dwarf_decode_line after processing children.
12300 (read_func_scope): Add to global function list.
12301 (dwarf_decode_lines): Call check_cu_functions everywhere
12302 record_line is called. Call record_line with a linenumber
12303 of 0 to mark sequence ends.
12305 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12307 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12308 change sync with glibc.
12310 2002-04-03 Jim Blandy <jimb@redhat.com>
12312 * configure.in: Call AC_C_INLINE.
12313 * configure: Regenerated.
12315 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12317 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12318 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12320 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12322 * NEWS: Mention gcore support on FreeBSD/i386.
12324 * fbsd-proc.c: New file.
12325 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12326 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12328 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12331 2002-03-29 Jim Blandy <jimb@redhat.com>
12333 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12334 unescaped newlines in string literals, but newer ones don't. So
12337 2002-03-26 Michael Snyder <msnyder@redhat.com>
12338 Andrew Cagney <cagney@redhat.com>
12340 * cli/cli-dump.c: New file. Dump memory to file,
12341 restore file to memory.
12342 * cli/cli-dump.h: New file.
12343 * Makefile.in: Add rules, dependencies for cli-dump.o.
12344 * NEWS: Mention new commands.
12346 2002-03-28 Michael Snyder <msnyder@redhat.com>
12348 * symfile.c (symbol_file_add): Move test for null symbols to later.
12350 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12352 From veksler at il.ibm.com:
12353 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12354 the xstrduped original path.
12357 2002-03-27 Michael Snyder <msnyder@redhat.com>
12359 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12360 * infcmd.c (_initialize_infcmd): Ditto.
12361 * language.c (_initialize_language): Ditto.
12362 * symfile.c (_initialize_symfile): Ditto.
12363 * top.c (_init_main): Ditto.
12364 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12366 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12368 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12369 vector registers handling.
12370 (skip_prologue): Handle new AltiVec instructions. Fill in new
12371 fields of frame data.
12372 (frame_get_saved_regs): Fill in information for AltiVec registers.
12374 2002-03-27 Jim Blandy <jimb@redhat.com>
12376 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12377 a function; leave this macro here to invoke that function.
12378 (symbol_init_mangled_name): Declaration for that function.
12379 * symtab.c (symbol_init_mangled_name): New function.
12381 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12383 * valarith.c: Replace strerror with safe_strerror.
12384 * tracepoint.c: Ditto.
12385 * lin-lwp.c: Ditto.
12386 * go32-nat.c: Ditto.
12388 * gnu-nat.c: Ditto.
12390 2002-03-27 Andreas Schwab <schwab@suse.de>
12392 * event-top.c (command_line_handler): Remove useless if.
12394 2002-03-27 Andreas Jaeger <aj@suse.de>
12396 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12399 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12401 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12402 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12403 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12404 (x86_64_linux_dr_get_status, supply_gregset),
12405 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12406 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12407 (x86_64_register_info_table): Add.
12408 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12409 (x86_64_register_raw_size, x86_64_register_virtual_type),
12410 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12411 general x86_64_register_info_table.
12412 (i386_gdbarch_init): gdbarch_register_bytes is now set
12413 dynamicaly during initialization.
12414 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12415 * gdbserver/linux-x86-64-low.c: Ditto.
12417 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12419 * gdbserver/server.c (main): Call target_signal_to_host_p
12420 and target_signal_to_host on signals received from the remote.
12421 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12422 target_signal_from_host on signals sent to the remote.
12423 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12424 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12426 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12428 * signals/signals.c: Include "server.h" in gdbserver build.
12429 (target_signal_from_name): Don't use STREQ.
12430 (_initialize_signals): Likewise. Don't include function in
12433 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12435 * signals.c: Moved to...
12436 * signals/signals.c: Here.
12437 * Makefile (signals.o): Update.
12439 2002-03-26 Jeff Law (law@redhat.com)
12441 * somread.c (som_symtab_read): Remove some commented out code and
12442 updated related comments. Do not set the minimal symbol table to
12443 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12444 in a dynamic executable.
12445 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12446 where we are unable to find the minimal symbol for the given
12449 2002-03-25 Jeff Law (law@redhat.com)
12451 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12453 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12455 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12457 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12459 * command.h: Update copyright.
12460 (struct cmd_list_element): Replace definition with opaque
12462 (enum cmd_types): Document that it will eventually be moved to
12464 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12465 (MALLOCED_REPLACEMENT): Delete macro.
12466 * Makefile.in (cli_decode_h): Add $(command_h).
12467 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12468 * top.c: Include "cli/cli-decode.h".
12469 * completer.c: Include "cli/cli-decode.h".
12470 * maint.c: Include "cli/cli-decode.h".
12471 * cli/cli-decode.h: Include "command.h".
12472 (enum command_class): Delete.
12473 (enum cmd_types): Comment out.
12474 (enum cmd_auto_boolean): Delete.
12475 (enum var_types): Delete.
12477 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12479 * cli/cli-decode.c: Include "gdb_assert.h".
12480 (add_set_or_show_cmd): New static function.
12481 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12482 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12483 all fields, such as func, from the set command.
12485 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12487 * MAINTAINERS (sh-elf): Change warning flag to -w.
12489 2002-03-23 Andrew Cagney <cagney@redhat.com>
12491 * defs.h (error): Add printf format attribute.
12492 * thread-db.c (thread_from_lwp): Fix error format string.
12493 * stack.c (parse_frame_specification): Ditto.
12494 * cli/cli-decode.c (undef_cmd_error): Ditto.
12495 * scm-lang.c (scm_lookup_name): Ditto.
12496 * tracepoint.c (trace_error): Ditto.
12497 * remote-utils.c (usage): Ditto.
12498 * remote.c (compare_sections_command): Ditto.
12501 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12503 * gdbtypes.c (append_composite_type_field): New function.
12504 (init_composite_type): New function.
12505 * gdbtypes.h (append_composite_type_field): Declare.
12506 (init_composite_type): Ditto.
12508 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12510 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12512 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12513 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12514 structure returning convention for SYSV ABI case, but not
12515 for GNU/Linux, FreeBSD, or NetBSD.
12517 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12519 * symtab.h (lookup_block_symbol): Add mangled_name argument
12522 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12523 with new mangled_name argument.
12524 * linespec.c (decode_line_1): Likewise.
12525 * valops (value_of_this): Likewise.
12526 * symtab.c (lookup_transparent_type): Likewise.
12527 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12528 (lookup_symbol): If we are given a mangled name, pass it down
12529 to lookup_symbol_aux.
12530 (lookup_block_symbol): If we are given a mangled name to check
12531 against, only return symbols which match it.
12533 2002-03-22 Christopher Faylor <cgf@redhat.com>
12535 * win32-nat.c (child_create_inferior): Check for proper shell to use
12536 here, in case the user changes it on the fly.
12537 (_initialize_inftarg): Remove shell path considerations.
12539 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12541 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12542 for gdbarch_max_register_raw_size and max_register_virtual_size.
12543 Adjust copyright year.
12545 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12547 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12548 in a function to cover the entire beginning of the function
12549 as well if it does not already.
12551 2002-03-21 Tom Rix <trix@redhat.com>
12553 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12554 (rs6000_ptrace64): Renamed from ptrace64.
12556 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12558 * gdbserver/remote-utils.c (remote_open): Don't call
12559 getprotobyname, we're all using TCP here so just use
12561 * gdbserver/gdbreplay.c (remote_open): Ditto.
12563 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12565 * regcache.c (_initialize_regcache): No need to call
12566 build_regcache() at this time; it gets called whenever
12567 the gdbarch changes.
12569 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12571 * sparc-nat.c: Include sys/param.h where possible.
12573 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12576 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12577 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12578 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12580 * stabsread.c (rs6000_builtin_type): Likewise.
12581 (read_sun_floating_type): Likewise.
12583 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12585 * stabsread.c (read_member_functions): Remove skip code for duplicate
12586 constructor/destructor methods. Use standard parsing for these
12587 methods and just do not chain them to the list of methods after
12590 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12592 * coffread.c: Remove redundant static declarations. Replace
12593 occurrences of `PTR' with `void *'.
12594 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12595 * top.h (quit_cover): Likewise.
12596 * defs.h (catch_errors): Likewise.
12598 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12600 * defs.h (XMALLOC): Define.
12601 * gdb-events.sh (XMALLOC): Delete macro.
12602 * gdb-events.c, gdb-events.h: Regenerate.
12603 * gdbarch.sh (XMALLOC): Delete macro.
12604 * gdbarch.c: Regenerate.
12605 * serial.c (XMALLOC): Delete macro.
12606 * ui-file.c (XMALLOC): Ditto.
12607 * ser-unix.h (XMALLOC): Ditto.
12608 * sh-tdep.c (XMALLOC): Ditto.
12609 * ui-out.c (XMALLOC): Ditto.
12610 * utils.c (XMALLOC): Ditto.
12611 * i386-tdep.c (XMALLOC): Ditto.
12612 * gdb-events.c (XMALLOC): Ditto.
12613 * d10v-tdep.c (XMALLOC): Ditto.
12614 * cli-out.c (XMALLOC): Ditto.
12616 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12617 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12618 * ui-file.c, ui-out.c: Ditto.
12620 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12622 * command.h (struct cmd_list_element): Add field context.
12623 (set_cmd_context, get_cmd_context): Declare.
12624 * cli/cli-decode.h: Ditto.
12625 * cli/cli-decode.c (get_cmd_context): New function.
12626 (set_cmd_context): New function.
12627 (add_cmd): Initialize context.
12628 Part of fixing PR gdb/145 and PR gdb/146.
12630 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12632 * cli/cli-decode.c (cmd_type): New function.
12633 * command.h (cmd_type): Declare.
12634 * infrun.c (set_schedlock_func): Call function cmd_type.
12635 * kod.c (kod_set_os): Call cmd_type.
12636 * cris-tdep.c (cris_version_update): Use function cmd_type.
12637 (cris_mode_update, cris_abi_update): Ditto.
12639 * command.h: (execute_cmd_post_hook): Declare.
12640 (execute_cmd_pre_hook): Declare.
12641 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12642 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12643 functions. Execute pre/post hook while ensuring that afterwords
12644 hook_in is cleared.
12645 * top.c (execute_command): Use execute_cmd_post_hook, and
12646 execute_cmd_pre_hook to execute pre/post commands.
12647 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12649 (hook_stop_stub): Call execute_cmd_pre_hook.
12651 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12653 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12654 set'' and this leads to a core dump. Move xstrdup of
12655 operating_system to after check that it is not NULL.
12657 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12659 * kod.c (kod_set_os): Remove unnecessary check that
12660 ``command->type'' is set_cmd.
12662 * valprint.c (set_input_radix): Use input_radix.
12663 (set_output_radix): Use output_radix.
12664 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12667 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12669 * value.h (struct value): Delete field ``substring_addr''. Change
12670 aligner fields to force_doublest_align, force_longest_align,
12671 force_core_addr_align and force_pointer_aligh.
12673 * value.h (struct value): Fix typo in above change.
12675 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12677 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12678 to fix internal_error from ``maintenance print architecture''.
12680 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12682 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12683 for gcc versions after gcc-2.8.1.
12685 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12687 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12688 for method resolution. Restore adjustment of ``this'' pointer after
12689 calling value_struct_elt, which was accidentally removed during the
12692 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12694 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12696 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12697 get_saved_register.
12698 * value.h (value_of_register): Update.
12700 2002-03-14 Richard Henderson <rth@redhat.com>
12702 * configure.in: Detect declaration for canonicalize_file_name.
12703 * utils.c (canonicalize_file_name): Declare, if needed.
12704 (gdb_realpath): Prefer realpath if available and usable.
12705 * config.in, configure: Rebuild.
12707 2002-03-14 Richard Henderson <rth@redhat.com>
12709 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12710 a constant array bound.
12712 * MAINTAINERS: Add myself to write-after-approval.
12714 2002-03-14 Michael Snyder <msnyder@redhat.com>
12716 * symfile.c (syms_from_objfile): Return immediately if no syms.
12717 (symbol_file_add): Return immediately if no syms.
12718 (find_sym_fns): Return immediately if no syms.
12720 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12722 * gdbserver/remote-util.c (remote_open): Print remote-side's
12723 IP address when remote debugging over the network.
12725 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12727 * config/sparc/fbsd.mh: Fix copyright.
12728 * config/sparc/fbsd.mt: Likewise.
12730 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12732 * MAINTAINERS: Fix typo in name of gdb warnings option.
12733 (x86-64): Fix formating so that this can be parsed by awk.
12735 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12737 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12738 * defs.h: Include "gdb/signals.h".
12739 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12741 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12743 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12744 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12747 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12748 Don Howard <dhoward@redhat.com>
12750 * mips-tdep.c (ST0_FR): Define.
12751 (mips2_fp_compat): New function, temporarily disabled.
12752 (mips_read_fp_register_single): New function.
12753 (mips_read_fp_register_double): New function.
12754 (mips_print_register): Use them.
12755 (do_fp_register_row): Likewise.
12757 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12759 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12762 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12764 * stabsread.c (read_member_functions): Fix is_stub test for
12765 static member functions, improve comment.
12767 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12769 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12770 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12771 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12772 commands that set boolean values.
12773 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12774 (arm_rdi_resume): Always initialize PC.
12775 (arm_rdi_open): Don't use rslt as a boolean.
12776 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12777 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12778 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12779 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12781 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12783 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12784 * configure: Rebuilt.
12786 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12788 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12789 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12791 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12793 * cli/cli-decode.c (set_cmd_completer): New function.
12794 * command.h (set_cmd_completer): Declare.
12795 * cli/cli-decode.h (set_cmd_completer): Ditto.
12797 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12798 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12799 * win32-nat.c (_initialize_inftarg): Ditto.
12800 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12801 * proc-api.c (_initialize_proc_api): Ditto.
12802 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12803 * source.c (_initialize_source): Ditto.
12804 * exec.c (_initialize_exec): Ditto.
12805 * solib.c (_initialize_solib): Ditto.
12806 * top.c (init_main): Ditto.
12807 * tracepoint.c (_initialize_tracepoint): Ditto.
12808 * symfile.c (_initialize_symfile): Ditto.
12809 * printcmd.c (_initialize_printcmd): Ditto.
12810 * infcmd.c (_initialize_infcmd): Ditto.
12811 * corefile.c (_initialize_core): Ditto.
12813 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12815 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12817 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12819 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12821 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12823 * NEWS: Update headings, 5.2 has branched.
12825 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12827 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12828 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12829 (register_addr, REGISTER_RAW_SIZE): Likewise.
12830 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12831 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12833 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12835 * MAINTAINERS (x86-64): Add myself.
12836 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12837 changed value_ptr -> struct value *
12839 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12841 * configure.host (sparc64-*-freebsd): Add.
12842 * configure.tgt: Likewise.
12843 * config/sparc/fbsd.mh: New file.
12844 * config/sparc/fbsd.mt: Likewise.
12845 * config/sparc/nm-fbsd.h: Likewise.
12846 * config/sparc/tm-fbsd.h: Likewise.
12848 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12850 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12851 regformats/reg-s390x.dat.
12853 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12855 * utils.c: Add FIXME explaining true/false problem.
12857 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12859 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12861 2002-02-28 Michael Chastain <mec@shout.net>
12863 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12865 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12867 * gdbserver/linux-s390-low.c: New file.
12868 * regformats/reg-s390.dat: New file.
12869 * regformats/reg-s390x.dat: New file.
12870 * gdbserver/configure.srv: Add S/390.
12871 * gdbserver/Makefile.in: Add S/390.
12872 * configure.tgt: Enable gdbserver for S/390.
12874 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12876 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12877 first line of the doc string for "info dos", except at the end of
12878 the sentence, since the short help stops at the first period.
12880 2002-02-28 Jason Merrill <jason@redhat.com>
12882 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12884 2002-02-27 Fred Fish <fnf@redhat.com>
12886 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12887 comment (dumy -> dummy).
12889 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12891 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12893 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12895 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12897 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12899 * gdbserver/acconfig.h: New file.
12900 * gdbserver/i387-fp.c: New file.
12901 * gdbserver/i387-fp.h: New file.
12902 * gdbserver/linux-x86-64.c: New file.
12903 * regformats/reg-x86-64.dat: New file.
12904 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12905 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12906 * gdbserver/configure.in: Add support for regsets.
12907 * gdbserver/config.in: Regenerate.
12908 * gdbserver/configure: Regenerate.
12909 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12910 * gdbserver/linux-low.h: New file.
12911 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12913 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12914 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12915 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12916 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12917 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12918 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12919 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12920 "i387-fp.h". Add PTRACE_GETREGS and friends.
12921 * gdbserver/regcache.c (supply_register): New function.
12922 (supply_register_by_name): New function.
12923 (collect_register): New function.
12924 (collect_register_by_name): New function.
12926 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12928 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12929 (config.status): Add configure.srv dependency.
12930 (server_h): Add config.h dependency.
12932 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12934 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12935 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12936 * gdbserver/configure.srv: Change i386-*-linux* to use
12939 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12941 * x86-64-tdep.c: Re-indent. Update copyright date.
12943 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12945 From Michal Ludvig <mludvig@suse.cz>:
12946 * x86-64-tdep.c (value.h): Delete.
12947 (gdb_assert.h): Include.
12948 (x86_64_register_convert_to_virtual,
12949 x86_64_register_convert_to_raw ): Add check which lets only
12950 floating-point values to be converted.
12951 (value_push): Delete.
12952 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12953 (i386_gdbarch_init): Number of register_bytes fixed.
12955 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12957 * MAINTAINERS: Add x86-64 target.
12959 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12961 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12962 * osfsolib.c (solib_map_sections): Ditto.
12963 * irix5-nat.c (solib_map_sections): Ditto.
12964 * corelow.c (gdb_check_format): Ditto.
12965 * symfile.c (symfile_bfd_open): Ditto.
12966 * solib.c (solib_map_sections): Ditto.
12969 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12971 * remote.c (_initialize_remote): By default, disable ``e'' and
12972 ``E'' step out-of-range packets.
12974 2002-02-26 Andreas Schwab <schwab@suse.de>
12976 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12977 m68k_linux_frame_saved_pc.
12978 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12980 (SIGCONTEXT_PC_OFFSET): Remove.
12981 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12982 m68k_linux_sigtramp_saved_pc): New functions.
12983 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12984 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12985 (UCONTEXT_PC_OFFSET): Define.
12986 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12987 non-RT and RT signal trampolines.
12989 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12991 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12992 (TARGET_NBPG, STACK_END_ADDR): Delete
12993 (VARIABLES_INSIDE_BLOCK): Delete.
12995 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12997 * utils.c (perror_with_name): Make string parameter constant.
12998 (print_sys_errmsg): Ditto.
13000 * defs.h (perror_with_name): Update.
13001 (print_sys_errmsg): Update.
13004 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
13006 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
13007 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
13009 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13011 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
13012 if it already matches the current architecture from the exec file.
13013 Include arch-utils.h for gdbarch_info_init prototype.
13014 * Makefile.in (rs6000-nat.o): Update dependencies.
13016 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
13018 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
13019 list of exported variables.
13021 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
13023 * gdbserver/configure.srv: New file.
13024 * gdbserver/configure.in: Use configure.srv instead
13025 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
13027 * gdbserver/configure: Regenerated.
13028 * gdbserver/terminal.h: New file.
13029 * gdbserver/Makefile.in: Update for configure changes. Remove
13030 more unneeded include paths.
13032 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13034 From wiz at danbala:
13035 * config/sparc/tm-sp64.h: Fix grammar and typos.
13038 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13040 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
13041 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
13042 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
13043 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
13044 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
13045 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13046 * s390-tdep.c: Ditto.
13047 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13048 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13049 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13050 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13051 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13052 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13053 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13054 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13055 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13056 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13059 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13061 * lin-thread.c: Delete file.
13062 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13063 to gdb_proc_service.h.
13064 * configure: Re-generate.
13066 * ocd.c (ocd_open): Do not try to open the "ocd" device.
13067 * serial.c (serial_open): Delete check for "ocd".
13070 * Makefile.in (linux-thread.o): Delete target.
13071 * linux-thread.c: Delete file.
13073 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13074 renamed SH files to be consistent.
13076 * symtab.c (sort_search_symbols): Use xfree.
13078 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13080 * arm-linux-tdep.c (arm_linux_init_abi): Register
13081 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13082 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13083 definition with undef, since we don't want the sysvr4 definition.
13084 (SKIP_TRAMPOLINE_CODE): Likewise.
13086 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13088 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13090 * configure.in: (AC_CHECK_FUNCS) Added test for
13091 canonicalize_file_name Regenerated.
13092 * config.in, configure: Regenerated.
13093 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13094 defined use canonicalize_file_name.
13096 2002-02-23 Michael Chastain <mec@shout.net>
13098 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13100 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13102 * README: Remove references to cygnus.com.
13103 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13104 dot com'' form. Remove references to cygnus.com and sourceware.
13106 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13108 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13109 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13110 1003.1-2001 no longer allows "head -1".
13111 * gdb/Makefile.in (version.c): Likewise.
13112 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13113 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13114 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13116 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13118 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13119 * command.h (cmd_cfunc_eq): Declare.
13120 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13122 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13123 ``struct cmd_list_element *''.
13124 * cli/cli-cmds.c (is_complete_command): Update. Use
13126 * top.c (execute_command): Pass the command to
13127 is_complete_command.
13128 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13130 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13132 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13133 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13134 architecture defines.
13135 * s390-tdep.c (s390_gdbarch_init): Likewise.
13137 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13139 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13140 (arm_linux_push_arguments): Likewise.
13141 (arm_linux_init_abi): Register them. Also register linux-specific
13143 (find_minsym_and_objfile): Use strcmp, not STREQ.
13144 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13145 (arm_linux_call_dummy_words): Delete declaration.
13146 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13147 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13149 (LOWEST_PC): Delete.
13151 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13153 * maint.c (print_section_info): Do not prepend `0x' to filepos
13154 output, it will be handled by local_hex_string_custom.
13156 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13158 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13159 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13160 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13162 2002-02-22 Jim Blandy <jimb@redhat.com>
13164 Indicate that the bcache functions don't change the strings
13166 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13167 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13169 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13171 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13173 2002-02-21 Christopher Faylor <cgf@redhat.com>
13175 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13176 find the complete path to a loaded DLL.
13178 2002-02-21 Fred Fish <fnf@redhat.com>
13180 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13181 that marks the end of the range of a function, enter a line number
13182 entry that has a line number of zero and a PC offset that matches
13183 the end of the function. This starts a range of PC's for which no
13184 line number information is known.
13185 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13186 PC's for which no line number info is found (line number is zero)
13187 then we didn't find any valid line information.
13188 * symtab.h: Document use of zero line number entry.
13190 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13192 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13193 (have_ptrace_getvrregs): Define for run time checks.
13194 (gdb_vrregset_t): New type for Altivec register handling.
13195 (fetch_register, store_register): Fetch/store altivec register
13197 (fetch_altivec_register, store_altivec_register): New functions.
13198 (supply_vrregset, fill_vrregset): New functions.
13199 (fetch_altivec_registers, store_altivec_registers): New functions.
13200 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13203 2002-02-21 Jiri Smid <smid@suse.cz>
13205 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13207 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13209 * Makefile.in (armnbsd-nat.o): Update dependencies.
13210 * armnbsd-nat.c (supply_gregset): New function. Common code to
13211 supply the integer register set.
13212 (supply_fparegset): New function. Similar for FPA registers.
13213 (fetch_regs, fetch_fp_regs): Use them.
13214 (fetch_core_registers): Likewise.
13215 (fetch_elfcore_registers): New function.
13216 (arm_netbsd_elfcore_fns): New core-file type specification.
13217 (_initialize_arm_netbsd_nat): Register it.
13219 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13221 * armnbsd-nat.c: Include gdbcore.h.
13222 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13223 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13224 'void' to declaration, to shut up ARI.
13225 (fetch_core_registers): Make static. Rewrite using supply_register.
13226 (arm_netbsd_core_fns): New core-file type specification.
13227 (_initialize_arm_netbsd_nat): New function.
13229 2002-02-21 Christopher Faylor <cgf@redhat.com>
13231 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13234 2002-02-20 Christopher Faylor <cgf@redhat.com>
13236 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13239 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13241 * jv-exp.y (parse_number): Change type of implicit longs
13242 to builtin_type_uint64.
13244 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13246 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13247 to be an integer instead of a `union wait'.
13249 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13251 * mips-linux-nat.c: Call the operating system GNU/Linux.
13252 * mips-linux-tdep.c: Likewise.
13253 * mips-tdep.c: Likewise.
13255 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13258 * jv-exp.y (parse_number): Handle 64-bit integers.
13260 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13262 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13263 AC_STDC_HEADERS to AC_HEADER_STDC.
13264 * gdbserver/configure: Regenerated.
13266 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13268 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13270 * sparc-tdep.c (get_longjmp_target): Likewise.
13272 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13274 * News: Add news about ARM and Multi-arch. Mention the new target
13277 2002-02-19 Jim Blandy <jimb@redhat.com>
13279 * stabsread.c (error_type_complaint): Improve error message.
13281 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13283 * gdbserver/README: Update documentation.
13284 * gdbserver/configure.in: Update configury to match documentation.
13285 * gdbserver/Makefile.in: Likewise.
13286 * gdbserver/configure: Regenerated.
13287 * gdbserver/aclocal.m4: New file, generated by aclocal.
13288 * gdbserver/config.in: New file, generated by autoheader.
13290 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13292 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13295 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13297 * arm-tdep.h (enum arm_float_model): New enum.
13298 (struct gdbarch_tdep): Add fp_model.
13299 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13300 up floating-point conversions until we know the floating-point model
13301 in use by the inferior. Don't complain about being unable to
13302 determine the ABI of the inferior when we don't have one.
13303 (arm_extract_return_value): Support different floating-point models.
13304 (arm_store_return_value): Likewise.
13305 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13307 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13309 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13311 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13312 of ``current_gdbarch''.
13314 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13316 * armnbsd-nat.c : ANSIfy all function declarations.
13317 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13318 (fetch_inferior_registers): Re-implement in terms of above.
13319 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13320 (store_inferior_registers): Re-implement in terms of above.
13322 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13324 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13326 * arm-linux-tdep.c: Likewise.
13327 * config/arm/tm-linux.h: Likewise.
13329 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13331 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13332 * config/arm/nbsd.mt (TM_FILE): Delete.
13333 * config/arm/tm-nbsd.h: Delete.
13335 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13337 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13338 Initialize CALL_DUMMY_LENGTH.
13340 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13342 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13344 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13345 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13346 defines one thing and that is incorrect for this port.
13347 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13349 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13351 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13353 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13355 * win32-nat.c (display_selector): New function. Displays information
13356 about the information returned by GetThreadSelectorEntry API function.
13357 (display_selectors): New function. Displays the infomation of
13358 the selector given as argument, or of CS, DS ans FS selectors
13359 if no argument is given.
13360 ( _initialize_inftarg): Add "w32" as info prefix command.
13361 Add "info w32 selector" as command calling display_selectors.
13363 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13365 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13366 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13369 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13371 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13373 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13375 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13376 (arm_fix_call_dummy): Call it.
13377 (arm_call_dummy_breakpoint_offset): Delete.
13378 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13379 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13381 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13383 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13384 Default to func_frame_chain_valid.
13385 * gdbarch.h, gdbarch.c: Re-generate.
13386 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13388 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13390 * ppc-linux-nat.c: Update copyright.
13391 (fetch_register, store_register): Add tid parameter, don't compute
13393 (fetch_ppc_registers, store_ppc_registers): Add tid
13394 parameter. Pass it along to callees.
13395 (fetch_inferior_registers, store_inferior_registers): Compute tid
13396 here, and pass it to calleed functions.
13397 (fill_gregset, supply_fpregset): Clean up formatting.
13399 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13401 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13402 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13404 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13406 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13407 * gdbarch.c gdbarch.h: Regenerate.
13408 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13410 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13411 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13412 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13414 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13415 * arm-tdep.c (arm_get_longjmp_target): New function.
13416 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13417 this to a positive value register arm_get_longjmp_target as the
13419 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13420 (arm_linux_init_abi): Set up longjmp description in tdep.
13421 * armnbsd-nat.c (get_longjmp_target): Delete.
13422 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13423 description in tdep.
13424 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13425 (get_longjmp_target): Delete declaration.
13426 (GET_LONGJMP_TARGET): Delete.
13427 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13428 (GET_LONGJMP_TARGET): Delete.
13430 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13432 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13433 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13434 of ``current_gdbarch''.
13436 2002-02-17 Tom Tromey <tromey@redhat.com>
13438 * cli/cli-cmds.c (compare_strings): New function.
13439 (complete_command): Only print each unique item once.
13440 * completer.h (complete_line): Declare.
13441 * completer.c (complete_line): New function.
13442 (line_completion_function): Use it.
13444 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13446 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13447 * gdbarch.h, gdbarch.c: Re-generate.
13449 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13451 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13453 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13455 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13456 * valops.c (value_arg_coerce): Don't take the address of a reference
13457 to convert an argument to a reference.
13459 2002-02-15 Christopher Faylor <cgf@redhat.com>
13461 * win32-nat.c (get_image_name): New function.
13462 (handle_load_dll): Use get_image_name function.
13463 (get_child_debug_event): Avoid registering debug events until possibly
13464 execed process is started.
13465 (child_create_inferior): Allow invocation via shell so that command
13466 line redirection, etc. works ok.
13467 (_initialize_inftarg): Add new command: "set shell" to control whether
13468 a shell is used to start a process.
13470 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13472 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13473 instead of find_register_by_number.
13474 (cannot_store_register): Likewise.
13476 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13478 * dwarf2read.c: Replace fprintf (stderr, ...) by
13479 fprintf_unfiltered (gdb_stderr, ...).
13481 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13483 * gdbserver/gdbserver.1: Document --attach.
13485 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13487 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13489 * arm-tdep.c (arm_default_arm_le_breakpoint)
13490 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13491 (arm_default_thumb_be_breakpoint): New. Initialize them from
13492 traditional breakpoint defines.
13493 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13494 (arm_gdbarch_init): Initialize new breakpoint variables.
13495 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13496 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13497 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13498 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13500 (arm_netbsd_init_abi_common): ... here; new function.
13501 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13502 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13503 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13504 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13506 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13508 * arm-tdep.h (enum arm_abi): New enum.
13509 (struct gdbarch_tdep): New structure.
13510 (LOWEST_PC): Provide a default.
13511 (arm_gdbarch_register_os_abi): Declare new function.
13512 * arm-tdep.c (arm_abi_names): New array.
13513 (process_note_abi_tag_sections): New function.
13514 (get_elfosabi): New function.
13515 (arm_gdbarch_register_os_abi): New function.
13516 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13517 support for that ABI has been built in, then call the appropriate
13518 configuration routine. Use gdbarch_num_regs() to get the number
13520 (arm_dump_tdep): New function.
13521 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13522 place-holder functions.
13523 (_initialize_arm_tdep): Register them.
13524 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13526 * armnbsd-tdep.c: New file.
13527 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13528 * config/arm/nbsd.mt (TDEPFILES): Add it.
13529 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13531 * armnbsd-nat.c: Include regcache.h.
13532 * Makefile.in (armnbsd-nat.o): Update dependency list.
13534 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13536 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13538 * gdbserver/Makefile.in: Fix typos in target rules.
13540 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13542 Fix part of PR gdb/267.
13543 * linespec.c (find_methods): Handle constructors specially for now.
13545 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13547 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13549 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13550 standard_coerce_float_to_double().
13552 2002-02-14 Christopher Faylor <cgf@redhat.com>
13554 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13557 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13559 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13560 find_variant_by_name, because it confuses the multiarch
13561 framework. Return NULL if there isn't an architecture with the
13562 user supplied name, instead of forcing a different one without
13563 recording the change with the multiarch machinery.
13564 (find_variant_by_name): Delete.
13566 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13568 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13569 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13571 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13573 * stack.c (print_frame_info_base): When calling
13574 print_frame_info_listing_hook, set current_source_symtab.
13576 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13578 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13579 and remove unused $(INCLUDE_DIR).
13580 Add regcache.c to OBS.
13581 Add generated register protocol files to clean target.
13582 Update dependencies for new objects, obsolete old target code.
13584 * gdbserver/linux-low.c: Remove all platform-specific code to
13585 new files. Remove various dead code. Update to use regcache
13587 * gdbserver/remote-utils.c (fromhex): Add return statement
13589 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13591 (input_interrupt): Add integer parameter to match prototype
13592 of a signal handler.
13593 (outreg): Use register_data ().
13594 (prepare_resume_reply): Use gdbserver_expedite_regs.
13595 * gdbserver/server.c (main): Dynamically allocate own_buf because
13596 PBUFSIZ is no longer constant. Use registers_to_string () and
13597 registers_from_string ().
13598 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13599 for error (), fatal (), and warning (). Update definition of
13600 PBUFSIZ to use regcache functionality. Add include guard.
13601 * gdbserver/utils.c (fatal): Add missing ``const''.
13602 (warning): New function.
13604 * regformats/regdat.sh: Include "regcache.h" in generated files.
13605 Provide init_registers () function.
13606 * regformats/regdef.h: Add prototype for set_register_cache ().
13609 * gdbserver/linux-arm-low.c: New file.
13610 * gdbserver/linux-i386-low.c: New file.
13611 * gdbserver/linux-ia64-low.c: New file.
13612 * gdbserver/linux-m68k-low.c: New file.
13613 * gdbserver/linux-mips-low.c: New file.
13614 * gdbserver/linux-ppc-low.c: New file.
13615 * gdbserver/linux-sh-low.c: New file.
13617 * gdbserver/regcache.c: New file.
13618 * gdbserver/regcache.h: New file.
13620 * gdbserver/low-linux.c: Removed obsolete file.
13622 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13624 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13625 * config/i386/linux.mt: Likewise.
13626 * config/ia64/linux.mt: Likewise.
13627 * config/m68k/linux.mh: Likewise.
13628 * config/powerpc/linux.mh: Likewise.
13629 * config/mips/linux.mt: Likewise.
13631 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13633 * config/i386/i386lynx.mh: Mark gdbserver variables
13634 as (currently) obsolete for this target.
13635 * config/i386/nbsd.mt: Likewise.
13636 * config/i386/nbsdelf.mt: Likewise.
13637 * config/m32r/m32r.mt: Likewise.
13638 * config/m68k/m68klynx.mh: Likewise.
13639 * config/m68k/nbsd.mt: Likewise.
13640 * config/m68k/sun3os4.mh: Likewise.
13641 * config/mips/vr5000.mt: Likewise.
13642 * config/ns32k/nbsd.mt: Likewise.
13643 * config/pa/hppabsd.mh: Likewise.
13644 * config/pa/hppaosf.mh: Likewise.
13645 * config/powerpc/nbsd.mt: Likewise.
13646 * config/rs6000/rs6000lynx.mh: Likewise.
13647 * config/s390/s390.mt: Likewise.
13648 * config/s390/s390x.mt: Likewise.
13649 * config/sparc/sparclynx.mh: Likewise.
13650 * config/sparc/sun4os4.mh: Likewise.
13651 * config/i386/x86-64linux.mt: Likewise.
13652 * config/sparc/linux.mh: Likewise.
13654 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13656 * configure.tgt: Configure gdbserver only for known working
13657 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13658 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13659 SUBDIRS if it is configured. Update comment for ${nativefile}.
13660 * configure: Regenerated.
13662 2002-02-13 Michael Snyder <msnyder@redhat.com>
13664 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13666 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13667 (default_gcore_mach): Just return 0, work around a problem in bfd.
13668 (default_gcore_target): OK to return NULL if exec_bfd is null.
13669 (make_mem_sec): Use a cast, avoid a warning.
13671 * procfs.c (find_memory_regions_callback): Use a cast instead of
13672 calling host_pointer_to_address (which complains if
13673 sizeof (host pointer) != sizeof (target pointer)).
13674 (procfs_make_note_section): Avoid overflow in psargs string.
13676 * procfs.c (procfs_make_note_section): Make the default
13677 implementation return an error.
13679 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13681 * procfs.c (procfs_make_note_section): Provide a default definition
13682 (for alpha-dec-osf4.0f). Fix typos.
13684 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13686 * linux-proc.c: Add include of regcache.h.
13687 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13689 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13691 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13692 * memattr.c (create_mem_region): Disallow useless empty region.
13693 Regions are half-open intervals, so allow [A..B) [B..C) as
13696 2002-02-13 Michael Chastain <mec@shout.net>
13698 * defs.h: Kill CONST_PTR.
13699 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13700 * c-lang.c (c_builtin_types): Likewise.
13701 * ch-lang.c (ch_builtin_types): Likewise.
13702 * f-lang.c (f_builtin_types): Likewise.
13703 * language.c (unknown_builtin_types): Likewise.
13704 * m2-lang.c (m2_builtin_types): Likewise.
13705 * p-lang.c (pascal_builtin_types): Likewise.
13706 * scm-lang.c (c_builtin_types): Likewise.
13708 2002-02-13 Keith Seitz <keiths@redhat.com>
13710 * arm-tdep.h (arm_get_next_pc): Add declaration.
13712 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13714 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13715 with other related struct-returning functions.
13716 (arm_extract_struct_value_address): New function.
13717 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13718 initialize float_format, double_format and long_double_format as
13719 appropriate to the endianness of the target.
13720 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13721 (arm_use_struct_convention): Delete declaration.
13722 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13724 2002-02-13 Keith Seitz <keiths@redhat.com>
13726 * defs.h (core_addr_to_string_nz): New function.
13728 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13730 Apply missing bits of 2002-01-15 patch.
13731 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13732 (fill_fpregset): Use i387_fill_fsave.
13734 2002-02-12 Keith Seitz <keiths@redhat.com>
13736 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13737 (core_addr_to_string_nz): New function.
13739 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13741 * arm-linux-nat.c: Really include arm-tdep.h.
13742 * config/arm/tm-linux.h (struct type, struct value): Declare.
13744 2002-02-11 Michael Snyder <msnyder@redhat.com>
13746 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13747 (gcore section): Ifdef for Solaris and Unixware only.
13748 (procfs_do_thread_registers): Unixware needs one lwpstatus
13749 per thread (not one prstatus or pstatus).
13750 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13751 not over all gdb threads. For unixware, call elfcore_write_pstatus
13752 once before iterating over threads.
13754 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13756 * arm-tdep.h: New file.
13757 * arm-tdep.c: Include arm-tdep.h.
13758 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13759 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13760 (arm_print_float_info, arm_register_type, convert_to_extended)
13761 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13762 (arm_extract_return_value, arm_register_name): Make static.
13763 (arm_software_single_step): Similarly. Fix types in declaration.
13764 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13765 (arm_store_return_value, arm_store_struct_return): New functions.
13766 (arm_gdbarch_init): Register the above functions. Also register
13767 call_dummy_start_offset, sizeof_call_dummy_words,
13768 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13769 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13770 max_register_virtual_size, register_size. Set up
13771 prologue_cache.saved_regs here, rather than ...
13772 (_initialize_arm_tdep): ... here.
13773 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13775 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13776 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13777 (arm_print_float_info, arm_register_type, convert_to_extended)
13778 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13779 (arm_extract_return_value, arm_register_name): Delete declarations.
13780 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13781 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13782 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13783 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13784 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13785 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13786 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13787 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13788 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13789 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13790 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13791 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13793 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13794 * remote-rdi.c remote-rdp.c: Likewise.
13795 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13796 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13797 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13800 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13801 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13802 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13803 from non-ARM_ prefixed definitions.
13804 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13806 * remote-rdi.c remote-rdp.c: Likewise.
13807 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13809 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13811 * arm-tdep.c (arm_frameless_function_invocation)
13812 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13813 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13814 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13815 (arm_pop_frame, arm_get_next_pc): Make static.
13816 (arm_gdbarch_init): Register above in gdbarch structure.
13817 (arm_read_fp): Renamed from arm_target_read_fp.
13818 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13819 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13820 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13821 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13822 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13823 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13824 (arm_pc_is_thumb_dummy): Delete declarations.
13825 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13826 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13827 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13828 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13830 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13832 * symtab.c (compare_search_syms): New function.
13833 (sort_search_symbols): New function.
13834 (search_symbols): Sort symbols after searching rather than
13837 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13839 * NEWS: Linux -> GNU/Linux.
13841 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13843 * gdbarch.sh: For for level one methods, disallow a definition
13844 when partially multi-arched. Add comments explaining rationale.
13845 * gdbarch.h: Re-generate.
13847 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13849 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13850 multi-arch partial.
13852 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13854 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13855 field. Use diff -u.
13856 * gdbarch.c: Re-generate.
13858 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13860 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13861 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13864 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13866 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13867 multi-arch partial.
13868 (PUSH_ARGUMENTS): Switch to using predefault.
13869 * gdbarch.c: Regenerate.
13871 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13873 * valops.c (PUSH_ARGUMENTS): Delete definition.
13874 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13875 partial. Default to default_push_arguments.
13876 * gdbarch.h, gdbarch.c: Regenerate.
13878 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13880 * defs.h (throw_exception): Rename return_to_top_level. Update
13882 * utils.c (error_stream, internal_verror, quit): Ditto.
13883 * top.c (throw_exception, catcher): Ditto.
13884 * sparclet-rom.c (sparclet_load): Ditto.
13885 * remote.c (interrupt_query, minitelnet): Ditto.
13886 * remote-sds.c (interrupt_query): Ditto.
13887 * remote-mips.c (mips_error, mips_kill): Ditto.
13888 * ocd.c (interrupt_query): Ditto.
13889 * monitor.c (monitor_interrupt_query): Ditto.
13890 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13891 * target.h: Update comment.
13893 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13895 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13897 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13898 default_double_format.
13899 * gdbarch.h, gdbarch.c: Re-generate.
13900 * findvar.c (floatformat_unknown): Delete variable definition.
13901 * doublest.h (floatformat_unknown): Delete variable declaration.
13903 2002-02-09 Jim Blandy <jimb@redhat.com>
13905 * stabsread.c (read_type): Add code to parse Sun's syntax for
13906 prototyped function types.
13908 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13910 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13911 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13913 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13915 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13916 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13917 now _initialize_xcoffsolib gets called again and overrides the
13918 commands from solib.c in a native configuration.
13920 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13922 * doublest.c (store_typed_floating): Don't try to return a value.
13925 2002-02-08 Jim Blandy <jimb@redhat.com>
13927 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13928 is prototyped and has no arguments, print its argument list as
13931 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13933 * MAINTAINERS (write-after-approval): Add myself.
13934 (paper-trail): I've escaped!
13936 2002-02-08 Christopher Faylor <cgf@redhat.com>
13938 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13940 (_initialize_check_for_gdb_ini): Ditto.
13942 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13944 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13945 xaprintf -> xasprintf.
13947 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13949 * win32-nat.c: Remove use of printf and sprintf functions.
13951 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13953 * arm-tdep.c (arm_frame_chain_valid): Make static.
13954 (arm_push_arguments): Likewise.
13955 (arm_gdbarch_init): New function.
13956 (_initialize_arm_tdep): Call it.
13957 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13958 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13959 (FRAME_CHAIN_VALID): Delete.
13960 (arm_frame_chain_valid): Delete declaration.
13961 (PUSH_ARGUMENTS): Delete.
13962 (arm_push_arguments): Delete declaration.
13963 (CALL_DUMMY_P): Delete.
13965 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13966 Corinna Vinschen <vinschen@redhat.com>
13968 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13969 on builtin float types.
13971 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13973 * utils.c: Include <curses.h> before "bfd.h".
13974 * tui/tui-hooks.c: Likewise.
13975 * tui/tui.c: Likewise.
13976 * tui/tuiCommand.c: Likewise.
13977 * tui/tuiData.c: Likewise.
13978 * tui/tuiDataWin.c: Likewise.
13979 * tui/tuiDisassem.c: Likewise.
13980 * tui/tuiGeneralWin.c: Likewise.
13981 * tui/tuiIO.c: Likewise.
13982 * tui/tuiLayout.c: Likewise.
13983 * tui/tuiRegs.c: Likewise.
13984 * tui/tuiSource.c: Likewise.
13985 * tui/tuiSourceWin.c: Likewise.
13986 * tui/tuiStack.c: Likewise.
13987 * tui/tuiWin.c: Likewise.
13989 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13991 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13992 to include space for pseudoregs as well. Update loops accordingly.
13993 (sh_fp_frame_init_saved_regs): Ditto.
13994 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13996 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13998 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13999 Add Richard Earnshaw to Arm maintainers.
14001 2002-02-07 Andrew Cagney <ac131313@redhat.com>
14003 * defs.h (warning_begin): Delete declaration.
14005 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
14008 2002-02-07 Michael Snyder <msnyder@redhat.com>
14010 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14011 Logic bug, remove misplaced else.
14013 2002-02-07 Klee Dienes <klee@apple.com>
14015 * fork-inferior.c (fork_inferior): Add '!' to the list of
14016 characters that need to be quoted when building a string for the
14017 shell. Quote '!' specifically with a backslash, since CSH chokes
14018 when trying to evaluate "str!str".
14020 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
14022 * rdi-share/host.h: Only provide a typedef for bool if it is not
14025 2002-02-04 Michael Snyder <msnyder@redhat.com>
14027 * breakpoint.h (enum bptype): Add new overlay event bp type.
14028 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
14030 * breakpoint.c (create_internal_breakpoint): New function.
14031 (internal_breakpoint_number): Moved into create_internal_breakpoint.
14032 (create_longjmp_breakpoint): Use create_internal_breakpoint.
14033 (create_thread_event_breakpoint): Ditto.
14034 (create_solib_event_breakpoint): Ditto.
14035 (create_overlay_event_breakpoint): New function.
14036 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
14037 (update_breakpoints_after_exec): Delete and re-initialize
14038 overlay event breakpoints after an exec. Add FIXME comment
14039 about longjmp breakpoint.
14040 (print_it_typical): Ignore overlay event breakpoints.
14041 (print_one_breakpoint): Ditto.
14043 (bpstat_what): Do not stop for overlay event breakpoints.
14044 (delete_breakpoint): Don't delete overlay event breakpoints.
14045 (breakpoint_re_set_one): Delete the overlay event breakpoint.
14046 (breakpoint_re_set): Re-create overlay event breakpoint.
14048 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14049 (overlay_manual_command): Disable overlay breakpoints.
14050 (overlay_off_command): Disable overlay breakpoints.
14052 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14054 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14055 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14056 to here from config/tm-arm.h.
14057 (coff_sym_is_thumb): Make static.
14058 (arm_elf_make_msymbol_special): New function.
14059 (arm_coff_make_msymbol_special): New function.
14060 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14061 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14062 (coff_sym_is_thumb): Delete declaration.
14063 (arm_elf_make_msymbol_special): Declare.
14064 (arm_coff_make_msymbol_special): Declare.
14065 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14066 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14068 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14070 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14072 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14074 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14075 * gdbarch.c gdbarch.h: Regenerate.
14076 * arch-utils.c (default_print_float_info): New function.
14077 * arch-utils.h (default_print_float_info): Prototype it.
14078 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14079 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14080 (PRINT_FLOAT_INFO): Document it.
14082 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14083 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14084 (PRINT_FLOAT_INFO): Define.
14086 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14088 * win32-nat.c (_initialize_check_for_gdb_ini):
14089 Add typecast to sprintf argument to suppress a warning.
14091 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14093 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14094 to allow easier handling of pass state.
14095 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14096 that gives exception name and address.
14097 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14098 and set last_sig value to ourstatus->value.sig. Some missing
14100 (child_continue): Correctly report continue_status.
14101 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14102 TARGET_SIGNAL_0 (new default value).
14103 (child_resume): consider sig argument passed to decide if
14104 the exception should be passed to debuggee or not.
14106 2002-02-05 Michael Snyder <msnyder@redhat.com>
14108 * regcache.c (fetch_register): Call target_fetch_register
14109 only if we don't call FETCH_PSEUDO_REGISTER.
14110 (store_register): Call target_store_register only if we
14111 don't call STORE_PSEUDO_REGISTER.
14113 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14115 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14116 ELF_MAKE_MSYMBOL_SPECIAL.
14117 * gdbarch.c, gdbarch.h: Regenerate.
14118 * arch-utils.c (default_make_msymbol_special): New function.
14119 * arch-utils.h (default_make_msymbol_special): Export.
14120 * elfread.c (elf_symtab_read): Compile use of
14121 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14123 * coffread.c (coff_symtab_read): Ditto, for
14124 COFF_MAKE_MSYMBOL_SPECIAL.
14126 2002-02-05 Jim Blandy <jimb@redhat.com>
14128 * solib-svr4.c (svr4_truncate_ptr): New function.
14129 (svr4_relocate_section_addresses): Do the address arithmetic with
14130 the appropriate truncation for target addresses, even when
14131 CORE_ADDR is larger than a target address.
14133 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14135 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14138 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14140 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14143 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14145 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14147 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14149 * gdbserver/linux-low.c: Remove unused include files.
14151 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14153 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14154 (read_inferior_memory): Use it.
14155 (write_inferior_memory): Likewise.
14157 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14159 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14160 grubbing through sys_errlist.
14162 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14164 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14166 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14167 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14169 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14171 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14172 (do_sfunc, set_cmd_sfunc): New functions.
14174 * command.h (struct cmd_list_element): Add field func.
14175 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14176 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14177 * cli/cli-decode.h: Ditto.
14179 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14180 (help_all, help_cmd_list): Ditto.
14181 (find_cmd, complete_on_cmdlist): Ditto.
14182 * top.c (execute_command): Ditto.
14184 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14187 * infcmd.c (notice_args_read): Fix function signature.
14189 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14190 * cli/cli-decode.c (add_set_cmd): Ditto.
14191 * utils.c (initialize_utils): Ditto.
14192 * maint.c (_initialize_maint_cmds): Ditto.
14193 * infrun.c (_initialize_infrun): Ditto.
14194 * demangle.c (_initialize_demangler): Ditto.
14195 * remote.c (add_packet_config_cmd): Ditto.
14196 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14197 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14198 * proc-api.c (_initialize_proc_api): Ditto.
14199 * kod.c (_initialize_kod): Ditto.
14200 * valprint.c (_initialize_valprint): Ditto.
14201 * top.c (init_main): Ditto.
14202 * infcmd.c (_initialize_infcmd): Ditto.
14203 * corefile.c (_initialize_core): Ditto.
14204 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14205 * arch-utils.c (initialize_current_architecture): Ditto.
14206 (_initialize_gdbarch_utils): Ditto.
14207 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14209 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14210 * wince.c (_initialize_inftarg): Ditto.
14211 * symfile.c (_initialize_symfile): Ditto.
14212 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14213 * language.c (_initialize_language): Ditto.
14214 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14216 2002-02-04 Michael Snyder <msnyder@redhat.com>
14218 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14220 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14222 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14223 Add rules for building the register data files.
14225 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14227 * regformats/regdat.sh: Add braces to the definition of
14228 expedite_regs_${arch}.
14230 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14232 * regformats/regdef.h (struct reg): Add comment describing the
14233 requirements for offset and size fields.
14235 2002-02-04 Andreas Schwab <schwab@suse.de>
14237 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14238 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14240 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14242 * gdbarch.sh (copyright): Update years in generated header.
14243 (SMASH_TEXT_ADDRESS): Add rule.
14244 * gdbarch.h, gdbarch.c: Re-generate.
14245 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14246 * dbxread.c: Likewise.
14247 * dwarfread.c: Likewise.
14248 * elfread.c: Likewise.
14249 * somread.c: Likewise.
14251 * arm-tdep.c (arm_smash_text_address): New function.
14252 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14254 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14256 Add support for hardware watchpoints on win32 native.
14257 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14258 CONTEXT_DEBUG_REGISTERS.
14259 (dr variable): New variable. Static array containing a local copy
14260 of debug registers.
14261 (debug_registers_changed): New variable. Reflects when debug registers
14262 are changed and need to be written to inferior.
14263 (debug_registers_used): New variable. Reflects when any debug register
14264 was set, used when new threads are created.
14265 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14267 (thread_rec): Set dr array if id is the thread of current_event .
14268 (child_continue, child_resume): Change the debug registers for all
14269 threads if debug_registers_changed.
14270 (child_add_thread): Change the debug registers if debug_registers_used.
14271 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14272 Link nm.h to new nm-cygwin.h file.
14273 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14274 of hardware registers.
14276 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14278 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14279 Restore behavour broken by 2002-01-20 Andrew Cagney
14280 <ac131313@redhat.com> IEEE_FLOAT removal.
14282 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14284 * c-valprint.c (c_val_print): Pass a proper valaddr to
14285 cp_print_class_method.
14286 * valops.c (search_struct_method): If there is only one method
14287 and args is NULL, return that method.
14289 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14291 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14292 accessing tag_name directly.
14294 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14296 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14297 of accessing tag_name directly.
14299 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14302 * gdbtypes.c (replace_type): New function.
14303 * gdbtypes.h (replace_type): Add prototype.
14304 * stabsread.c (read_type): Use replace_type.
14306 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14308 * Makefile.in (memattr.o): Add missing dependencies rule.
14310 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14312 * breakpoint.c (break_at_finish_command): Really export.
14313 (break_at_finish_at_depth_command): Ditto.
14314 (tbreak_at_finish_command): Ditto.
14315 * hppa-tdep.c: Include completer.h.
14316 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14317 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14319 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14321 * utils.c (do_write): New function.
14322 (error_stream): Rewrite combining the code from error_begin and
14324 (verror): Rewrite using error_stream.
14325 (error_begin): Delete function.
14327 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14329 * utils.c (error_begin): Make static.
14330 * defs.h (error_begin): Delete declaration.
14332 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14333 (decode_line_1): Use cplusplus_error instead of error_begin,
14334 cplusplus_hint and return_to_top_level.
14335 * coffread.c (coff_symfile_read): Use error instead of error_begin
14336 and return_to_top_level.
14337 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14339 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14341 * language.h (type_error, range_error): Make string parameter
14343 * language.c (warning_pre_print): Delete extern declaration.
14344 * dwarfread.c (warning_pre_print): Ditto.
14345 * language.c (type_error, range_error): Rewrite to use verror and
14346 vwarning instead of warning_begin.
14348 2002-02-01 Michael Snyder <msnyder@redhat.com>
14350 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14351 (set_ignore_count): Move misplaced comment back where it belongs.
14353 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14355 * command.h (NO_FUNCTION): Delete macro.
14356 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14357 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14358 * tracepoint.c (_initialize_tracepoint): Ditto.
14359 * cli/cli-decode.c (add_set_cmd): Ditto.
14360 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14362 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14364 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14365 Update ``this'' pointer when calling virtual functions.
14367 2002-02-01 Michael Snyder <msnyder@redhat.com>
14369 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14370 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14372 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14374 * regformats/reg-arm.dat: New file.
14375 * regformats/reg-i386.dat: New file.
14376 * regformats/reg-ia64.dat: New file.
14377 * regformats/reg-m68k.dat: New file.
14378 * regformats/reg-mips.dat: New file.
14379 * regformats/reg-ppc.dat: New file.
14380 * regformats/reg-sh.dat: New file.
14381 * regformats/regdef.h: New file.
14382 * regformats/regdat.sh: New file.
14384 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14386 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14387 (arm_frame_args_address, arm_frame_locals_address): New functions.
14388 (arm_frame_num_args): New function.
14389 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14390 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14391 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14393 2002-01-31 Michael Snyder <msnyder@redhat.com>
14395 * breakpoint.c (break_at_finish_command): Export.
14396 (break_at_finish_at_depth_command): Export.
14397 (tbreak_at_finish_command): Export.
14398 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14399 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14400 "txbreak" commands, which are HPPA specific.
14402 * printcmd.c (disassemble_command): Remove an ancient
14403 artifact of an old merge.
14405 * symfile.h (enum overlay_debugging_state):
14406 Define enum constant values for overlay mode.
14407 * symfile.c (overlay_debugging): Use enums instead of literals.
14408 (overlay_is_mapped, overlay_auto_command,
14409 overlay_manual_command): Ditto.
14411 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14412 breakpoint_here_p, breakpoint_inserted_here_p,
14413 breakpoint_thread_match, bpstat_stop_status,
14414 describe_other_breakpoints, check_duplicates, clear_command):
14415 Coding standard fixes.
14417 * target.c (target_xfer_memory): Add spaces, coding standard.
14418 (do_xfer_memory): Add missing line to trust-readonly
14419 code: check bfd SEC_READONLY flag for section.
14421 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14423 * PROBLEMS: Fix typo, 5.1->5.1.1.
14425 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14427 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14428 data symbols, since we search based on textlow and texthigh.
14429 (find_pc_sect_symtab): Likewise.
14431 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14433 * defs.h (vwarning): Declare.
14434 * utils.c (vwarning): New function.
14435 (warning): Call vwarning.
14436 (warning_begin): Delete function.
14438 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14439 the warning message.
14440 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14443 2002-01-30 Michael Snyder <msnyder@redhat.com>
14445 * NEWS: Mention "set trust-readonly-sections" command.
14446 Mention generate-core-file command.
14448 2002-01-15 Michael Snyder <msnyder@redhat.com>
14450 * target.c: New command, "set trust-readonly-sections on".
14451 (do_xfer_memory): Honor the suggestion to trust readonly sections
14452 by reading them from the object file instead of from the target.
14453 (initialize_targets): Register command "set trust-readonly-sections".
14455 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14457 * parse.c (target_map_name_to_register): Simplify, search regs and
14458 pseudo-regs using a single loop.
14460 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14462 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14464 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14466 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14467 * config/i386/i386v42mp.mh: Add i387-nat.o .
14468 * i386v4-nat.c: Include i387-nat.h.
14469 (supply_fpregset): Use i387_supply_fsave.
14470 (fill_fpregset): Use i387_fill_fsave.
14472 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14474 * arm-tdep.c (arm_call_dummy_words): Define.
14475 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14476 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14477 (CALL_DUMMY_WORDS): Define.
14478 (arm_call_dummy_words): Declare.
14479 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14480 (arm_linux_call_dummy_words): Declare.
14482 2002-01-30 Andreas Schwab <schwab@suse.de>
14484 * m68klinux-nat.c: Fix last change to use regcache_collect
14485 instead of referencing registers[] directly.
14487 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14489 * parse.c (target_map_name_to_register): Delete code wrapped in
14490 #ifdef REGISTER_NAME_ALIAS_HOOK.
14492 2002-01-28 Michael Snyder <msnyder@redhat.com>
14494 * regcache.c (legacy_read_register_gen): Need to be able to
14495 read pseudo-register as well as real register.
14496 (legacy_write_register_gen): Ditto.
14498 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14500 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14501 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14502 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14503 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14504 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14505 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14506 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14507 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14508 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14509 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14510 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14511 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14512 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14513 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14514 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14515 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14516 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14517 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14518 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14519 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14521 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14523 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14524 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14525 (initialize_current_architecture): Update target_byte_order using
14526 information from BFD.
14527 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14528 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14530 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14532 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14533 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14535 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14536 #ifdef INVALID_FLOAT.
14537 * infcmd.c (do_registers_info): Ditto.
14538 * values.c (unpack_double): Ditto. Add comment.
14540 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14541 already commented out.
14543 2002-01-26 Andreas Schwab <schwab@suse.de>
14545 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14546 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14547 registers and add support for PTRACE_GETREGS.
14549 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14551 GDB 5.1.1 released from 5.1 branch.
14552 * NEWS: Add 5.1.1 news.
14553 * README: Sync with 5.1 branch.
14555 2002-01-23 Fred Fish <fnf@redhat.com>
14557 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14558 stabstring on initial malloc. Reallocing will copy it for us,
14561 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14563 * Makefile.in (hpread_h): Delete.
14564 (HFILES_NO_SRCDIR): Remove hpread.h.
14565 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14566 (hpread.o): Update dependencies.
14567 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14569 * hp-psymtab-read.c: Remove file.
14570 * hp-symtab-read.c: Remove file.
14571 * hpread.h: Remove file.
14573 * hpread.c: Merge all contents of hp-psymtab-read.c,
14574 hp-symtab-read.c and hpread.h into this file, as it was prior to
14577 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14578 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14579 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14580 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14582 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14584 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14585 fill_gregset): Call gdbarch_tdep() just once, assign result to
14586 variable and use that, instead of calling the function several
14589 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14591 * configure.host: Accept sparcv9 as alias for sparc64.
14592 * configure.tgt: Likewise.
14594 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14596 * solib-aix5.c (build_so_list_from_mapfile)
14597 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14598 arguments is not reversed.
14599 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14600 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14602 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14604 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14605 modified version of obsolete sh_fetch_pseudo_register.
14606 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14607 (sh4_register_read): New function.
14608 (sh_pseudo_register_write): New function. Renamed and modified
14609 version of obsolete sh_store_pseudo_register.
14610 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14611 (sh4_register_write): New function.
14612 (sh_gdbarch_init): Remove setting of gdbarch function
14613 fetch_pseudo_register and store_pseudo_register. Remove setting of
14614 register_convert_to_raw, register_convert_to_virtual,
14615 register_convertible.
14616 (sh_sh4_register_convertible): Delete. No longer needed. All is
14617 taken care by architecture specific functions
14618 register_read/register_write.
14619 (sh_sh4_register_convert_to_virtual): Make static.
14620 (sh_sh4_register_convert_to_raw): Ditto.
14622 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14624 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14625 (floatformat_is_nan, floatformat_mantissa): Ditto.
14627 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14628 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14629 builtin_type_ieee_double_little,
14630 builtin_type_ieee_double_littlebyte_bigword,
14631 builtin_type_m68881_ext, builtin_type_i960_ext,
14632 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14633 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14634 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14635 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14637 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14639 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14640 parameter. Set frameless flag if it exists and depended of
14641 whether the scanned function is frameless or not.
14642 (xstormy16_skip_prologue): If function is frameless, return
14643 result of xstormy16_scan_prologue().
14644 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14647 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14649 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14650 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14651 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14652 sh_sh4_register_byte, sh_sh4_register_raw_size,
14653 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14654 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14655 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14656 sh_store_pseudo_register, sh_do_pseudo_register): Call
14657 gdbarch_tdep() just once, assign result to variable and use that,
14658 instead of calling the function several times.
14660 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14662 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14663 macros instead of LAST_FPU_CTRL_REGNUM.
14664 (store_register): Likewise.
14666 2002-01-21 Jim Blandy <jimb@redhat.com>
14668 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14669 is up-to-date before running the program, not just when a program
14672 2002-01-21 Fred Fish <fnf@redhat.com>
14674 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14675 when we have found all instructions we are looking for.
14677 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14679 * arm-tdep.c (arm_register_name): New function.
14680 (arm_registers_names): Make static.
14681 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14682 (arm_register_name): Declare.
14683 (REGISTER_NAME): Use it.
14685 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14686 Kevin Buettner <kevinb@redhat.com>
14688 Convert arm targets to new FRAME interface.
14689 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14690 (arm_frame_find_save_regs): Delete.
14691 (arm_frame_init_saved_regs): New.
14692 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14693 Allocate extra_info as required. Convert all uses of fsr.regs
14694 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14696 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14697 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14698 (check_prologue_cache, save_prologue_cache): Likewise.
14699 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14700 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14701 (FRAME_FIND_SAVED_REGS): Delete.
14702 (arm_frame_find_saved_regs): Delete prototype.
14703 (arm_frame_init_saved_regs): New prototype.
14704 (FRAME_INIT_SAVED_REGS): Define.
14706 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14708 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14710 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14712 From Jeff Law <law@redhat.com>:
14713 * infttrace.c: Include <sys/pstat.h>.
14714 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14715 exec file if the ttrace equivalent fails.
14717 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14719 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14720 (closeLogFile): Ditto.
14722 2002-01-20 Michael Chastain <mec@shout.net>
14724 * top.c (print_gdb_version): Bump copyright year to 2002.
14726 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14728 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14729 Zannoni and Eli Zaretskii.
14731 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14733 * buildsym.c: Update copyright years.
14734 * c-typeprint.c: Likewise.
14735 * dwarf2read.c: Likewise.
14736 * f-typeprint.c: Likewise.
14737 * gdbtypes.c: Likewise.
14738 * gdbtypes.h: Likewise.
14739 * hp-symtab-read.c: Likewise.
14740 * hpread.c: Likewise.
14741 * mdebugread.c: Likewise.
14742 * p-typeprint.c: Likewise.
14744 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14746 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14747 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14748 byte-order selectable.
14749 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14750 * arch-utils.c: Ditto.
14751 (set_endian): Ditto.
14752 (set_endian_from_file): Ditto.
14753 * gdbserver/low-sim.c (create_inferior): Ditto.
14754 * gdbarch.sh: Ditto.
14755 * gdbarch.h: Re-generate.
14756 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14757 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14758 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14759 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14760 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14761 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14762 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14763 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14765 * config/mips/tm-wince.h: Remove #undef of macro
14766 TARGET_BYTE_ORDER_SELECTABLE.
14767 * config/sh/tm-wince.h: Ditto.
14769 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14771 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14772 member function fields. Add accessor macro
14773 TYPE_FN_FIELD_ARTIFICIAL.
14774 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14775 * c-typeprint.c (c_type_print_base): Skip artificial member
14778 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14780 * f-typeprint.c: Delete unused function f_type_print_args.
14781 * p-typeprint.c: Delete unused function pascal_type_print_args.
14783 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14785 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14786 comment. Add ``artificial'' to ``union field_location''.
14788 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14790 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14791 * mdebugread.c (parse_symbol): Likewise.
14792 * stabsread.c (define_symbol): Likewise.
14793 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14794 initializing TYPE_FIELD_BITPOS to n (obsolete).
14795 (hpread_doc_function_type): Likewise.
14796 * hpread.c (hpread_function_type): Likewise.
14798 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14800 * configure.in (host_makefile_frag): Only require a host makefile
14801 fragment when a native build.
14802 * configure: Re-generate.
14804 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14806 * doublest.h (floatformat_from_type): Declare.
14807 * doublest.c (floatformat_from_type): New function.
14808 (convert_typed_floating): Use.
14810 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14811 call to function floatformat_from_type.
14813 * gdbarch.sh (IEEE_FLOAT): Delete.
14814 * gdbarch.h, gdbarch.c: Re-generate.
14815 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14816 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14817 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14818 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14819 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14820 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14821 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14822 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14823 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14824 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14825 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14826 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14828 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14829 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14830 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14831 * sh-tdep.c (sh_gdbarch_init): Ditto.
14832 * mips-tdep.c (mips_gdbarch_init): Ditto.
14833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14834 * cris-tdep.c (cris_gdbarch_init): Ditto.
14836 2002-01-20 Jiri Smid <smid@suse.cz>
14838 * configure.host, configure.tgt: Support x86-64.
14839 * NEWS: Note new target x86-64.
14841 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14842 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14843 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14844 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14845 x86-64-linux-nat.o): Fix dependencies.
14847 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14849 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14850 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14851 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14852 * config/sparc/xm-sun4os4.h: Delete file.
14853 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14855 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14857 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14858 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14859 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14860 * config/i386/i386lynx.mh (XM_FILE): Delete.
14861 * config/rs6000/xm-rs6000ly.h: Delete file.
14862 * config/sparc/xm-sparclynx.h: Delete file.
14863 * config/m68k/xm-m68klynx.h: Delete file.
14864 * config/i386/xm-i386lynx.h: Delete file.
14865 * config/xm-lynx.h: Delete file.
14866 * config/djgpp/fnchange.lst: Update.
14868 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14870 * alpha-tdep.c (alpha_register_byte): New function.
14871 (alpha_register_raw_size): Ditto.
14872 (alpha_register_virtual_size): Ditto.
14873 (alpha_skip_prologue_internal): Renamed from
14874 alpha_skip_prologue.
14875 (alpha_skip_prologue): New version that calls
14876 alpha_skip_prologue_internal.
14877 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14878 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14879 second argument from alpha_skip_prologue.
14880 (REGISTER_BYTE): Use alpha_register_byte.
14881 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14882 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14883 (FRAMELESS_FUNCTION_INVOCATION): Use
14884 generic_frameless_function_invocation_not.
14885 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14886 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14888 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14890 * config/mips/xm-news-mips.h: Delete file.
14891 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14893 * config/m88k/xm-m88k.h: Delete file.
14894 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14895 * config/m88k/xm-delta88v4.h: Ditto.
14896 * config/m88k/xm-delta88.h: Ditto.
14898 * config/alpha/xm-fbsd.h: Delete file.
14899 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14901 * config/sparc/xm-sparc.h: Delete file.
14902 * Makefile.in (xm-sun4os4.h): Delete dependency.
14903 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14904 * config/sparc/xm-sun4os4.h: Ditto.
14905 * config/sparc/xm-linux.h: Ditto.
14907 * config/i386/xm-windows.h: Delete file.
14909 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14911 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14912 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14914 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14916 * alpha-tdep.c (alpha_call_dummy_words): New.
14917 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14918 (CALL_DUMMY_P): Define.
14919 (CALL_DUMMY_WORDS): Define.
14920 (SIZEOF_CALL_DUMMY_WORDS): Define.
14922 2002-01-19 Per Bothner <per@bothner.com>
14924 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14925 isn't NULL, which can happen with some gcj-3.x-produced code.
14927 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14929 * alpha-tdep.c (alpha_register_virtual_type): New function.
14930 (alpha_init_frame_pc_first): Ditto.
14931 (alpha_fix_call_dummy): Ditto.
14932 (alpha_store_struct_return): Ditto.
14933 (alpha_extract_struct_value_address): Ditto.
14934 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14935 alpha_register_virtual_type.
14936 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14937 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14938 alpha_extract_struct_value_address.
14939 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14940 (INIT_FRAME_PC): Use init_frame_pc_noop.
14941 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14943 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14945 * i386gnu-nat.c: Include "i386-tdep.h".
14946 (fetch_fpregs): Simplify code dealing with uninitialized floating
14947 point states such that it doesn't require FP7_REGNUM.
14949 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14951 * alpha-tdep.c (frame_extra_info): New.
14952 (alpha_find_saved_regs): Make static. Use
14954 (alpha_frame_init_saved_regs): New function.
14955 (alpha_frame_saved_pc): Use frame->extra_info.
14956 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14957 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14958 (init_extra_frame_info): Rename to...
14959 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14960 (alpha_print_extra_frame_info): New function.
14961 (alpha_frame_locals_address): Ditto.
14962 (alpha_frame_args_address): Ditto.
14963 (alpha_pop_frame): Use frame->extra_info.
14964 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14965 alpha_frame_args_address.
14966 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14967 (alpha_find_saved_regs): Remove prototype.
14968 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14969 (EXTRA_FRAME_INFO): Remove.
14970 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14971 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14973 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14975 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14976 (alpha_cannot_fetch_register): Ditto.
14977 (alpha_cannot_store_register): Ditto.
14978 (alpha_register_convertible): Ditto.
14979 (alpha_use_struct_convention): Ditto.
14980 * config/alpha/tm-alpha.h: Update copyright years.
14981 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14982 (INNER_THAN): Use core_addr_lessthan.
14983 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14984 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14985 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14986 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14987 (FRAME_CHAIN): Remove unnecessary cast.
14989 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14991 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14994 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14996 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14997 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14998 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14999 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
15000 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
15001 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
15002 * x86-64-linux-nat.c: Ditto.
15004 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15006 * alpha-tdep.c (alpha_register_name): New function.
15007 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
15008 (REGISTER_NAME): Define.
15010 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15012 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
15014 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15016 * alpha-tdep.c: Update copyright years.
15017 (alpha_next_pc): New function.
15018 (alpha_software_single_step): Ditto.
15019 * config/alpha/tm-alpha.h: Add prototype for
15020 alpha_software_single_step.
15022 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15024 * alphabsd-nat.c: Update copyright years.
15025 (fill_gregset): Use regcache_collect.
15026 (fill_fpregset): Likewise.
15027 (fetch_inferior_registers): Only fetch integer registers
15028 if requested to do so.
15029 (store_inferior_registers): Only store integer registers
15030 if requested to do so.
15032 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15034 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
15035 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
15036 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
15037 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
15038 * config/alpha/fbsd.mh (XDEPFILES): Delete.
15039 * config/arm/linux.mh (XDEPFILES): Delete.
15040 * config/arm/nbsd.mh (XDEPFILES): Delete.
15041 * config/i386/i386dgux.mh (XDEPFILES): Delete.
15042 * config/i386/i386sol2.mh (XDEPFILES): Delete.
15043 * config/i386/i386m3.mh (XDEPFILES): Delete.
15044 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
15045 * config/i386/i386gnu.mh (XDEPFILES): Delete.
15046 * config/i386/fbsd.mh (XDEPFILES): Delete.
15047 * config/i386/i386bsd.mh (XDEPFILES): Delete.
15048 * config/i386/i386sco5.mh (XDEPFILES): Delete.
15049 * config/i386/i386v4.mh (XDEPFILES): Delete.
15050 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15051 * config/i386/i386sco4.mh (XDEPFILES): Delete.
15052 * config/i386/i386aix.mh (XDEPFILES): Delete.
15053 * config/i386/go32.mh (XDEPFILES): Delete.
15054 * config/i386/cygwin.mh (XDEPFILES): Delete.
15055 * config/i386/i386lynx.mh (XDEPFILES): Delete.
15056 * config/i386/i386mach.mh (XDEPFILES): Delete.
15057 * config/i386/i386v32.mh (XDEPFILES): Delete.
15058 * config/i386/linux.mh (XDEPFILES): Delete.
15059 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15060 * config/i386/ncr3000.mh (XDEPFILES): Delete.
15061 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15062 * config/i386/i386sco.mh (XDEPFILES): Delete.
15063 * config/i386/i386v.mh (XDEPFILES): Delete.
15064 * config/i386/nbsd.mh (XDEPFILES): Delete.
15065 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15066 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15067 * config/i386/symmetry.mh (XDEPFILES): Delete.
15068 * config/i386/obsd.mh (XDEPFILES): Delete.
15069 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15070 * config/ia64/linux.mh (XDEPFILES): Delete.
15071 * config/ia64/aix.mh (XDEPFILES): Delete.
15072 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15073 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15074 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15075 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15076 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15077 * config/m68k/linux.mh (XDEPFILES): Delete.
15078 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15079 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15080 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15081 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15082 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15083 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15084 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15085 * config/m88k/delta88.mh (XDEPFILES): Delete.
15086 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15087 * config/m88k/m88k.mh (XDEPFILES): Delete.
15088 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15089 * config/mips/linux.mh (XDEPFILES): Delete.
15090 * config/mips/irix6.mh (XDEPFILES): Delete.
15091 * config/mips/irix5.mh (XDEPFILES): Delete.
15092 * config/mips/irix4.mh (XDEPFILES): Delete.
15093 * config/mips/irix3.mh (XDEPFILES): Delete.
15094 * config/mips/decstation.mh (XDEPFILES): Delete.
15095 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15096 (NATDEPFILES): Move core-aout.o to here.
15097 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15098 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15099 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15100 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15101 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15102 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15103 * config/pa/hpux11.mh (XDEPFILES): Delete.
15104 * config/powerpc/aix.mh (XDEPFILES): Delete.
15105 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15106 * config/powerpc/linux.mh (XDEPFILES): Delete.
15107 * config/romp/rtbsd.mh: Rename XDEPFILES.
15108 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15109 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15110 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15111 * config/s390/s390.mh (XDEPFILES): Delete.
15112 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15113 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15114 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15115 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15116 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15117 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15118 * config/sparc/linux.mh (XDEPFILES): Delete.
15119 * config/vax/vaxult.mh (XDEPFILES): Delete.
15120 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15121 * Makefile.in (DEPFILES): Remove XDEPFILES.
15123 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15125 * utils.c (internal_verror): Fix comments, default is yes not no.
15126 Update queries to match. Default to quit and dump core.
15128 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15130 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15132 * defs.h, event-top.c, gdbcmd.h: Ditto.
15133 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15134 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15135 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15136 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15137 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15138 * mi/mi-main.c:Ditto.
15140 * stack.c, symfile.c: Update copyright.
15142 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15144 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15145 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15146 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15147 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15149 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15151 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15152 * gdbserver/low-lynx.c (myattach): Likewise.
15153 * gdbserver/low-nbsd.c (myattach): Likewise.
15154 * gdbserver/low-sim.c (myattach): Likewise.
15155 * gdbserver/low-sparc.c (myattach): Likewise.
15156 * gdbserver/low-sun3.c (myattach): Likewise.
15158 * gdbserver/low-linux.c (myattach): New function.
15160 * gdbserver/server.c (attach_inferior): New function.
15161 (main): Handle "--attach".
15163 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15165 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15168 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15170 * c-typeprint.c (is_type_conversion_operator): Add additional
15171 check for non-conversion operators.
15173 2002-01-15 Michael Snyder <msnyder@redhat.com>
15175 * linux-proc.c: Add "info proc" command, a la procfs.c.
15176 (read_mapping): New function, abstract and re-use code.
15177 (linux_find_memory_regions): Use new func read_mapping.
15178 (linux_info_proc_cmd): New function, implement "info proc".
15179 (_initialize_linux_proc): Add new command "info proc".
15181 2002-01-15 Michael Snyder <msnyder@redhat.com>
15183 * symfile.c (generic_load): Use bfd_map_over_sections method
15184 instead of manipulating bfd structure members directly.
15185 (add_section_size_callback): New function, bfd sections callback
15186 used by generic_load.
15187 (load_sections_callback): New function, bfd sections callback
15188 used by generic_load.
15190 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15192 [Based on work by Jim Blandy]
15193 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15194 (builtin_type_vec128): Export.
15195 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15197 (builtin_type_vec128): New builtin type for 128 bit vector
15199 (build_gdbtypes): Initialize builtin_type_v16qi and
15200 builtin_type_v8hi. Create the vec128 register builtin type
15202 (build_builtin_type_vec128): New function.
15203 (_initialize_gdbtypes): Register builtin_type_v16qi and
15204 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15205 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15206 AltiVec register to new builtin type.
15208 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15210 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15213 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15215 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15216 CLEAN_UP_REGISTER_VALUE.
15217 * regcache.c (supply_register): Update only call.
15219 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15221 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15222 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15223 a29k-*-vxworks* targets as obsolete.
15225 2002-01-14 Michael Snyder <msnyder@redhat.com>
15227 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15228 until we can resolve portability issues.
15229 * gregset.h: Remove references to fpxregs.
15230 * gcore.c (gcore_command): Initialize note_sec to NULL.
15232 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15234 * signals.c (target_signal_to_name): Rewrite. Only use
15235 signals[].name when in bounds and non-NULL.
15237 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15239 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15240 * signals.c (target_signal_to_name): Verify that SIG is within the
15241 bounds of the signals array.
15243 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15245 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15247 2002-01-13 Keith Seitz <keiths@redhat.com>
15249 * stack.c (print_frame_info_base): Print the frame's pc
15250 only if when print_frame_info_listing_hook is not defined.
15252 2002-01-13 Keith Seitz <keiths@redhat.com>
15254 * varobj.c (varobj_set_value): Make sure that there were no
15255 errors evaluating the object before attempting to set its
15257 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15258 so this offset adjustment is no longer necessary.
15259 (create_child): Don't set the error flag if the child is
15260 a CPLUS_FAKE_CHILD.
15261 (value_of_child): If value_fetch_lazy fails, return NULL
15262 so that callers will be notified that an error occurred.
15263 (c_value_of_variable): Delay check of variable's validity
15264 until later. We actually want all structs and unions to have
15266 Do not return "???" for variables which could not be evaluated.
15267 This error condition must be returned to the caller so that it
15268 can get the error condition from gdb.
15269 (cplus_name_of_child): Adjust index for vptr before figuring
15270 out the name of the child.
15271 (cplus_value_of_child): If a child's (real) parent is not valid,
15272 don't even bother trying to give a value for it. Just return
15273 an error. Change all instances in this function.
15274 (cplus_type_of_child): If our parent is one of the "fake"
15275 parents, we need to get at the type of the real parent, and
15276 derive the child's true type using this information.
15278 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15280 From 2002-01-09 John Marshall <johnm@falch.net>:
15281 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15282 sources.redhat.com, and tweak some related URLs which had
15283 suffered from linkrot.
15285 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15288 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15289 structures passed in registers.
15291 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15293 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15294 white space which prevented compilation. Reported by DSK
15295 <dsk@student.unsw.edu.au>.
15297 2002-01-11 Michael Snyder <msnyder@redhat.com>
15299 * symfile.c (build_section_addr_info_from_section_tab):
15300 Use bfd access method instead of manipulating bfd directly.
15301 (syms_from_objfile): Ditto.
15302 (simple_overlay_update_1): Ditto.
15303 (simple_overlay_update): Ditto.
15304 (generic_load): Ditto.
15305 (overlay_unmapped_address): FIXME comment, bfd access methods.
15306 (sections_overlap): FIXME comment, bfd access methods.
15307 (pc_in_mapped_range): FIXME comment, bfd access methods.
15308 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15309 (section_is_mapped): FIXME comment, bfd access methods.
15310 (section_is_overlay): FIXME comment, bfd access methods.
15312 * symfile.c (generic_load): Whitespace and long line cleanups.
15313 Remove duplicate variable, change several local variables to
15314 more appropriate data types.
15315 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15317 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15319 From Peter Schauer:
15320 * language.c (longest_local_hex_string_custom): Use phex_nz to
15321 convert NUM to a hex string.
15323 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15325 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15327 Update Copyright year.
15329 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15331 * language.c (longest_raw_hex_string): Delete unused function.
15333 2002-01-11 Petr Sorfa <petrs@caldera.com>
15335 * MAINTAINERS (write-after-approval): Add myself.
15336 * dwarf2read.c (read_tag_string_type): Handling of
15338 (read_tag_string_type): FORTRAN fix to prevent propagation of
15340 (set_cu_language): Handling of DW_LANG_Fortran95
15342 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15344 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15345 GETPID(inferior_ptid).
15346 (store_inferior_registers): Likewise.
15348 2002-01-10 Jason Merrill <jason@redhat.com>
15350 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15353 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15355 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15356 and bfd/elf32-sh-nbsd.c.
15358 2002-01-10 Michael Snyder <msnyder@redhat.com>
15360 * NEWS: Mention --pid and corefile/proc-id behavior change.
15362 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15363 * gcore.c: Include cli/cli-decode.h instead of command.h.
15365 * main.c (captured_main): Add new command line option "--pid".
15366 If the second command line argument (following the symbol-file)
15367 begins with a digit, try to attach to it before trying to open
15369 (print_gdb_help): Document the "--pid" argument.
15371 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15373 * completer.c (command_completer): New function.
15375 * completer.h <command_completer>: Add prototype.
15377 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15378 completer for the "help" command.
15380 2002-01-09 Jason Merrill <jason@redhat.com>
15382 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15384 2002-01-09 Michael Snyder <msnyder@redhat.com>
15386 * i386-linux-nat.c (fill_fpxregset): Make global.
15387 (store_fpxregset): Ditto.
15389 * gregset.h (gdb_fpxregset_t): Define.
15390 (supply_fpxregset): Prototype.
15391 (fill_fpxregset): Prototype.
15393 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15395 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15397 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15398 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15399 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15401 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15403 * MAINTAINERS: Update target maintainer rules so that any
15404 Maintainer can approve a tested patch for a maintenance-only
15407 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15409 * MAINTAINERS (write-after-approval): Add myself.
15411 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15414 2002-01-08 Michael Snyder <msnyder@redhat.com>
15416 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15417 real name of the executable, rather than the /proc name.
15419 2002-01-03 Michael Snyder <msnyder@redhat.com>
15421 Implement a "generate-core-file" command in gdb, save target state.
15422 * gcore.c: New file. Implement new command 'generate-core-file'.
15423 Save a corefile image of the current state of the inferior.
15424 * linux-proc.c: Add linux-specific code for saving corefiles.
15425 * target.h (struct target_ops): Add new target vectors for saving
15426 corefiles; to_find_memory_regions and to_make_corefile_notes.
15427 (target_find_memory_regions): New macro.
15428 (target_make_corefile_notes): New macro.
15429 * target.c (update_current_target): Inherit new target methods.
15430 (dummy_find_memory_regions): New place-holder method.
15431 (dummy_make_corefile_notes): New place-holder method.
15432 (init_dummy_target): Initialize new dummy target vectors.
15433 * exec.c (exec_set_find_memory_regions): New function.
15434 Allow the exec_ops vector for memory regions to be taken over.
15435 (exec_make_note_section): New function, target vector method.
15436 * defs.h (exec_set_find_memory_regions): Export prototype.
15437 * procfs.c (proc_find_memory_regions): New function, corefile method.
15438 (procfs_make_note_section): New function, corefile method.
15439 (init_procfs_ops): Set new target vector pointers.
15440 (find_memory_regions_callback): New function.
15441 (procfs_do_thread_registers): New function.
15442 (procfs_corefile_thread_callback): New function.
15443 * sol-thread.c (sol_find_memory_regions): New function.
15444 (sol_make_note_section): New function.
15445 (init_sol_thread_ops): Initialize new target vectors.
15446 * inftarg.c (inftarg_set_find_memory_regions): New function.
15447 Allow to_find_memory_regions vector to be taken over.
15448 (inftarg_set_make_corefile_notes): New function.
15449 Allow to_make_corefile_notes vector to be taken over.
15450 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15451 interface layer if not target_has_execution (may be a corefile).
15452 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15453 * config/sparc/sun4sol2.mh: Ditto.
15454 * config/alpha/alpha-linux.mh: Ditto.
15455 * config/arm/linux.mh: Ditto.
15456 * config/i386/x86-64linux.mh: Ditto.
15457 * config/ia64/linux.mh: Ditto.
15458 * config/m68k/linux.mh: Ditto.
15459 * config/mips/linux.mh: Ditto.
15460 * config/powerpc/linux.mh: Ditto.
15461 * config/sparc/linux.mh: Ditto.
15463 2002-01-07 Michael Snyder <msnyder@redhat.com>
15465 * arm-linux-nat.c: Remove references to regcache.c internal data
15466 (registers[] and register_valid[]).
15468 2002-01-07 Michael Snyder <msnyder@redhat.com>
15470 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15471 so that attaching to a pid will automatically read the process's
15472 symbol file and shlibs.
15473 * Makefile.in: Add rule for linux-proc.o.
15474 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15475 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15476 * config/arm/linux.mh: Ditto.
15477 * config/i386/linux.mh: Ditto.
15478 * config/i386/x86-64linux.mh: Ditto.
15479 * config/ia64/linux.mh: Ditto.
15480 * config/m68k/linux.mh: Ditto.
15481 * config/mips/linux.mh: Ditto.
15482 * config/powerpc/linux.mh: Ditto.
15483 * config/sparc/linux.mh: Ditto.
15485 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15487 * win32-nat.c: Add i386-tdep.h dependency.
15489 2002-01-07 Michael Snyder <msnyder@redhat.com>
15491 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15492 instead of bfd_get_arch_size. Don't bail out just because
15493 there's no exec_bfd.
15495 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15496 * p-valprint.c (pascal_object_print_value): Ditto.
15497 * somread.c (som_symtab_read): Ditto.
15498 * symfile.c (simple_free_overlay_region_table): Ditto.
15499 * valops.c (value_assign): Ditto.
15501 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15502 use tilde_expand and strerror for opening save-tracepoints file.
15504 * thread-db.c (thread_db_new_objfile): Indendation fix.
15506 * infptrace.c (GDB_MAX_ALLOCA): New define.
15507 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15508 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15509 can be overridden with whatever value is appropriate to the host).
15510 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15511 alloca to allocate potentially large buffer.
15512 * rs6000-nat.c (child_xfer_memory): Ditto.
15513 * symm-nat.c (child_xfer_memory): Ditto.
15514 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15516 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15518 From Nick Clifton <nickc@redhat.com>
15519 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15521 2002-01-07 Michael Snyder <msnyder@redhat.com>
15523 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15524 Don't use exec_bfd if it's NULL.
15526 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15528 * valops.c (value_arg_coerce): Fix formatting.
15530 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15532 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15533 * gnu-nat.c: Ditto.
15535 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15537 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15538 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15539 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15540 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15541 z8k-coff have not been multi-arched. Update z8k-coff build
15544 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15546 * MAINTAINERS: Mark a29k target as obsolete.
15547 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15548 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15550 * NEWS: Note that a29k targets are obsolete.
15551 * a29k-tdep.c: Mark as obsolete.
15552 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15553 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15554 a29k-*-vxworks* targets as obsolete.
15555 * remote-adapt.c: Obsolete.
15556 * remote-eb.c: Obsolete.
15557 * remote-mm.c: Obsolete.
15558 * remote-udi.c: Obsolete.
15559 * config/a29k/a29k-udi.mt: Obsolete.
15560 * config/a29k/a29k.mt: Obsolete.
15561 * config/a29k/tm-a29k.h: Obsolete.
15562 * config/a29k/tm-vx29k.h: Obsolete.
15563 * config/a29k/vx29k.mt: Obsolete.
15565 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15567 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15568 with BFD_ENDIAN_BIG.
15570 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15572 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15573 * configure, config.in: Re-generate.
15574 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15575 * defs.h: Do not include <endian.h>.
15577 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15579 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15580 * config.in: Regenerate.
15581 * configure.in: Update copyright years.
15582 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15583 * configure: Regenerate.
15584 * i386bsd-nat.c: Update copyright years.
15585 (fill_gregset): Use regcache_collect.
15586 (fetch_inferior_registers): Only fetch integer registers
15587 if requested to do so. Add support for XMM registers
15588 using PT_GETXMMREGS.
15589 (store_inferior_registers): Only store integer registers
15590 if requested to do so. Add support for XMM registers
15591 using PT_SETXMMREGS.
15592 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15593 (store_inferior_registers): Remove.
15594 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15595 (fetch_elfcore_registers): New function.
15596 (i386nbsd_elfcore_fns): New.
15597 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15598 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15600 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15601 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15602 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15603 * config/i386/tm-nbsd.h: Update copyright years.
15604 (HAVE_SSE_REGS): Define.
15605 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15606 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15607 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15608 (SIGCONTEXT_PC_OFFSET): Remove.
15609 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15611 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15613 * configure.tgt: Remove powerpc-*-macos* target.
15614 * config/m68k/xm-mpw.h: Delete file.
15615 * config/xm-mpw.h: Delete file.
15616 * ser-mac.c: Delete file.
15617 * mpw-make.sed: Delete file.
15618 * mpw-config.in: Delete file.
15619 * mac-xdep.c: Delete file.
15620 * mac-gdb.r: Delete file.
15621 * mac-defs.h: Delete file.
15622 * mac-nat.c: Delete file.
15623 * config/powerpc/macos.mh: Delete file.
15624 * config/powerpc/macos.mt: Delete file.
15625 * config/powerpc/nm-macos.h: Delete file.
15626 * config/powerpc/tm-macos.h: Delete file.
15627 * source.c (openp, open_source_file): Remove obsolete code.
15628 * top.c (gdb_readline): Ditto.
15629 * utils.c (query): Ditto.
15630 * event-top.c (display_gdb_prompt): Ditto.
15631 * Makefile.in (ser-mac.o): Delete obsolete target.
15634 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15636 * defs.h (BIG_ENDIAN): Delete macro definition.
15637 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15638 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15639 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15640 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15641 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15642 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15643 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15644 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15645 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15646 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15647 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15648 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15649 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15650 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15651 * gdbarch.c: Re-generate.
15653 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15655 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15658 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15660 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15662 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15664 * value.h (value_ptr): Delete typedef.
15666 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15668 * i386nbsd-nat.c: Update copyright years.
15669 Include i386-tdep.h.
15671 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15673 * stabsread.c: Update copyright years.
15675 From Debashis Mahata <debashis.mahata@wipro.com>:
15676 (read_struct_fields): Deal with Sun C compiler erroneous stab
15677 output for structs and unions.
15680 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15682 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15685 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15687 * cp-abi.c: Fix whitespace.
15688 (baseclass_offset): New wrapper function.
15689 * cp-abi.h (baseclass_offset): Add prototype.
15690 (struct cp_abi_ops): Add baseclass_offset pointer.
15692 * valops.c (vb_match): Move to...
15693 * gnu-v2-abi.c (vb_match): here.
15694 * valops.c (baseclass_offset): Move to...
15695 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15697 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15699 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15700 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15701 * hpacc-abi.c (init_hpacc_ops): Likewise.
15703 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15705 * valops.c (find_overload_match): Accept obj as a
15706 reference parameter. Update it before returning.
15707 * value.h (find_overload_match): Update prototype.
15708 * eval.c (evaluate_subexp_standard): Pass object to
15709 find_overload_match by reference.
15711 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15713 * valarith.c: Replace value_ptr with struct value pointer. Remove
15714 register attribute from value declarations.
15717 * scm-lang.c (scm_lookup_name): Ditto.
15719 2002-01-03 Michael Snyder <msnyder@redhat.com>
15721 Abstract the functionality of iterating over mapped memory
15722 regions into a general purpose iterator function.
15723 * procfs.c (iterate_over_mappings): New function, general purpose
15724 iterator for memory sections.
15725 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15726 (solib_mappings_callback): New function, callback for above.
15727 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15728 (info_mappings_callback): New function, callback for above.
15730 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15732 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15734 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15735 * i386-tdep.c: Include "elf-bfd.h".
15736 (process_note_abi_tag_sections): New function.
15737 (i386_gdbarch_init): Add code to recognize various OS/ABI
15740 * maint.c (_initialize_maint_cmds): Add missing \ in
15743 For older changes see ChangeLog-2001
15749 version-control: never