2003-01-08 Andrew Cagney <cagney@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-08  Andrew Cagney  <cagney@redhat.com>
2
3         * alpha-tdep.c: Use get_next_frame.
4         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
7         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10         * xstormy16-tdep.c: Ditto.
11         
12 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13
14         * alpha-tdep.c: Use get_frame_base.
15         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
16         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
17         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
18         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
19         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
20         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
21         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
22         * config/sparc/tm-sparc.h: Ditto.
23         
24 2003-01-07  Andrew Cagney  <cagney@redhat.com>
25
26         * frame.c (deprecated_get_frame_context): New function.
27         (deprecated_set_frame_context): New function.
28         * frame.h (deprecated_get_frame_context): Declare.
29         (deprecated_set_frame_context): Declare.
30         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
31         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
32         
33 2003-01-07  Andrew Cagney  <cagney@redhat.com>
34
35         * frame.c (deprecated_set_frame_next_hack): New function.
36         (deprecated_set_frame_prev_hack): New function.
37         * frame.h (deprecated_set_frame_next_hack): Declare.
38         (deprecated_set_frame_prev_hack): Declare.
39         * mcore-tdep.c (analyze_dummy_frame): Use
40         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
41         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
42
43 2003-01-07  David Carlton  <carlton@math.stanford.edu>
44
45         * linespec.c (decode_line_1): Move code into decode_dollar.
46         (decode_dollar): New function.
47
48 2003-01-07  Andrew Cagney  <cagney@redhat.com>
49
50         * arm-tdep.c (arm_init_extra_frame_info): Use
51         deprecated_update_frame_base_hack.
52         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
53         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
54         (fix_frame_pointer): Ditto.
55         (mn10300_analyze_prologue): Ditto.
56
57 2003-01-07  Andrew Cagney  <cagney@redhat.com>
58
59         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
60         extra_info using frame_extra_info_zalloc.
61         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
62         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
63         (sh64_init_extra_frame_info): Ditto.
64         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
65         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
66         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
67         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
68         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
69         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
70         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
71         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
72         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
73         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
74         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
75         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
76
77         * mn10300-tdep.c (analyze_dummy_frame): Use
78         deprecated_set_frame_extra_info_hack.
79         * mcore-tdep.c (analyze_dummy_frame): Ditto.
80
81 2003-01-07  J. Brobecker  <brobecker@gnat.com>
82
83         * mdebugread.c (parse_symbol): Skip stProc entries which storage
84         class is not scText. These do not define "real" procedures.
85         (parse_partial_symbols): Likewise.
86
87 2003-01-06  Michael Snyder  <msnyder@redhat.com>
88
89         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
90
91 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
92
93         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
94         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
95         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
96         deprecated_frame_xmalloc_with_cleanup.
97         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
98         deprecated_frame_xmalloc.
99         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
100         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
101
102 2003-01-06  Andrew Cagney  <cagney@redhat.com>
103
104         * x86-64-linux-tdep.c: Include "osabi.h".
105         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
106
107         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
108
109 2003-01-06  Andrew Cagney  <cagney@redhat.com>
110
111         * MAINTAINERS (Target Instruction Set Architectures): Update
112         arm-elf.  Can be built with -Werror, has been multiarched.
113
114         * value.h (unpack_long): Make buffer parameter constant.
115         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
116         * scm-lang.h (scm_parse): Ditto.
117         * defs.h (extract_typed_address, extract_address): Ditto.
118         (extract_long_unsigned_integer): Ditto.
119         * inferior.h (unsigned_pointer_to_address): Ditto.
120         (signed_pointer_to_address): Ditto.
121         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
122         * gdbarch.h, gdbarch.c: Regenerate.
123         * findvar.c (extract_long_unsigned_integer): Update.
124         (extract_address): Update.
125         (extract_typed_address): Update.
126         (unsigned_pointer_to_address): Update.
127         * values.c (unpack_long): Update.
128         (unpack_double): Update.
129         (unpack_pointer): Update.
130         (unpack_field_as_long): Update.
131         * d10v-tdep.c (d10v_pointer_to_address): Update.
132         * avr-tdep.c (avr_pointer_to_address): Update.
133         * scm-lang.c (scm_unpack): Update.
134         * findvar.c (signed_pointer_to_address): Update.
135
136 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
137
138         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
139         since it is in i386-tdep.c.
140
141 2003-01-06  J. Brobecker  <brobecker@gnat.com>
142
143         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
144         failure introduced in the previous change.
145
146 2003-01-05  Michael Chastain  <mec@shout.net>
147
148         * README: Remove references to deleted remote-*.c files:
149         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
150         remote-nrom.c, remote-os9k.c, remote-udi.c.
151
152 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
153
154         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
155         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
156         i386_get_longjmp_target.
157
158 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
159
160         * arm-tdep.c (prologue_cache): Change to a pointer.
161         (_initialize_arm_tdep): Allocate prologue_cache.
162         (check_prologue_cache): Update.
163         (save_prologue_cache): Update.
164         (arm_gdbarch_init): Update.
165
166 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
167
168         * stabsread.c (update_method_name_from_physname): Call complaint()
169         instead of error.
170
171 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
172
173         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
174         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
175         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
176
177         * blockframe.c: Include "gdbcmd.h" and "command.h".
178         (backtrace_below_main): New variable.
179         (file_frame_chain_valid, func_frame_chain_valid)
180         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
181         (generic_func_frame_chain_valid): Remove functions.
182         (frame_chain_valid, do_flush_frames_sfunc): New functions.
183         (_initialize_blockframe): New function.
184         * Makefile.in (blockframe.o): Update dependencies.
185         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
186         comment.  Call frame_chain_valid ().
187         * frame.h: Remove old prototypes.  Add prototype for
188         frame_chain_valid and update comments to match.
189         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
190         Remove old comment.
191         * gdbarch.h: Regenerated.
192         * gdbarch.c: Regenerated.
193
194         * alpha-tdep.c (alpha_gdbarch_init): Don't call
195         set_gdbarch_frame_chain_valid.
196         * avr-tdep.c (avr_gdbarch_init): Likewise.
197         * cris-tdep.c (cris_gdbarch_init): Likewise.
198         * frv-tdep.c (frv_gdbarch_init): Likewise.
199         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
200         * i386-tdep.c (i386_svr4_init_abi): Likewise.
201         (i386_nw_init_abi): Likewise.
202         (i386_gdbarch_init): Likewise.
203         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
204         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
205         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
206         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
207         * mips-tdep.c (mips_gdbarch_init): Likewise.
208         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
209         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
210         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
211         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
212         * s390-tdep.c (s390_gdbarch_init): Likewise.
213         * sh-tdep.c (sh_gdbarch_init): Likewise.
214         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
215         * v850-tdep.c (v850_gdbarch_init): Likewise.
216         * vax-tdep.c (vax_gdbarch_init): Likewise.
217         * x86-64-tdep.c (x86_64_init_abi): Likewise.
218
219         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
220         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
221         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
222         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
223         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
224         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
225         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
226         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
227
228 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
229
230         * Makefile.in (acconfig_h): Remove incorrect macro.
231         (config_h): Define.
232         (osabi.o): Update dependencies.
233         * configure.tgt: Set gdb_osabi based on target triplet.
234         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
235         * configure: Regenerated.
236         * config.in: Regenerated.
237         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
238         (GDB_OSABI_DEFAULT): Define if not already defined.
239         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
240         (set_osabi_string): New variables.
241         (gdbarch_register_osabi): Add new OS ABI to
242         gdb_osabi_available_names.
243         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
244         (set_osabi, show_osabi): New functions.
245         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
246
247 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
248
249         * arch-utils.c (gdbarch_info_init): Set osabi to
250         GDB_OSABI_UNINITIALIZED.
251         * gdbarch.sh: Add osabi to struct gdbarch and to struct
252         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
253         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
254         * gdbarch.c: Regenerated.
255         * gdbarch.h: Regenerated.
256         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
257         there's no BFD.
258         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
259         * osabi.h (enum gdb_osabi): Move to defs.h.
260         (gdbarch_init_osabi): Update prototype.
261         * defs.h (enum gdb_osabi): Moved here.
262         * Makefile.in: Update dependencies.
263
264         * alpha-tdep.h: Don't include "osabi.h".
265         (struct gdbarch_tdep): Remove osabi member.
266         * alpha-tdep.c: Include "osabi.h".
267         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
268         iterate over arches.  Update call to gdbarch_init_osabi.
269         (alpha_dump_tdep): Don't dump osabi.
270         * alpha-linux-tdep.c: Include "osabi.h".
271         * alpha-osf1-tdep.c: Include "osabi.h".
272         * alphafbsd-tdep.c: Include "osabi.h".
273         * alphanbsd-tdep.c: Include "osabi.h".
274
275         * arm-tdep.h: Don't include "osabi.h".
276         (struct gdbarch_tdep): Remove osabi member.
277         * arm-tdep.c: Include "osabi.h".
278         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
279         iterate over arches.  Update call to gdbarch_init_osabi.
280         (arm_dump_tdep): Don't dump osabi.
281         * arm-linux-tdep.c: Include "osabi.h".
282         * armnbsd-tdep.c: Include "osabi.h".
283
284         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
285         Update call to gdbarch_init_osabi.
286
287         * i386-tdep.h: Don't include "osabi.h".
288         (struct gdbarch_tdep): Remove osabi member.
289         * i386-tdep.c: Include "osabi.h".
290         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
291         iterate over arches.  Update call to gdbarch_init_osabi.
292         (i386_dump_tdep): Don't dump osabi.
293         * i386-linux-tdep.c: Include "osabi.h".
294         * i386-sol2-tdep.c: Include "osabi.h".
295         * i386bsd-tdep.c: Include "osabi.h".
296         * i386gnu-tdep.c: Include "osabi.h".
297         * i386ly-tdep.c: Include "osabi.h".
298         * i386nbsd-tdep.c: Include "osabi.h".
299         * i386obsd-tdep.c: Include "osabi.h".
300
301         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
302         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
303         check osabi when iterating over arches.  Update call to
304         gdbarch_init_osabi.
305         (mips_dump_tdep): Don't dump osabi.
306
307         * ns32k-tdep.h: Don't include "osabi.h".
308         (struct gdbarch_tdep): Remove.
309         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
310         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
311         allocate tdep.  Update call to gdbarch_init_osabi.
312         (ns32k_dump_tdep): Remove.
313         (_initialize_ns32k_tdep): Update call to gdbarch_register.
314         * ns32knbsd-tdep.c: Include "osabi.h".
315
316         * ppc-tdep.h: Don't include "osabi.h".
317         (struct gdbarch_tdep): Remove osabi member.
318         * rs6000-tdep.c: Include "osabi.h".
319         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
320         osabi when iterating over arches.  Update call to
321         gdbarch_init_osabi.
322         (rs6000_dump_tdep): Don't dump osabi.
323         * ppc-linux-tdep.c: Include "osabi.h".
324         * ppcnbsd-tdep.c: Include "osabi.h".
325
326         * sh-tdep.h: Don't include "osabi.h".
327         (struct gdbarch_tdep): Remove osabi member.
328         * sh-tdep.c: Include "osabi.h".
329         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
330         iterate over arches.  Update call to gdbarch_init_osabi.
331         (sh_dump_tdep): Don't dump osabi.
332         * shnbsd-tdep.c: Include "osabi.h".
333
334         * sparc-tdep.c: Include "osabi.h".
335         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
336         iterate over arches.  Update call to gdbarch_init_osabi.
337         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
338         tdep structure.
339
340         * vax-tdep.h: Don't include "osabi.h".
341         (struct gdbarch_tdep): Remove.
342         * vax-tdep.c: Include "osabi.h".
343         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
344         iterate over arches.  Don't allocate tdep.  Update call
345         to gdbarch_init_osabi.
346         (vax_dump_tdep): Remove.
347         (_initialize_vax_tdep): Update call to gdbarch_register.
348
349 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
350
351         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
352         entirely.
353         (breakpoint_re_set_one): Don't fetch the value for a disabled
354         watchpoint.
355
356 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
357
358         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
359         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
360         (COERCE_FLOAT_TO_DOUBLE): Remove.
361         * gdbarch.c: Regenerate.
362         * gdbarch.h: Regenerate.
363         * Makefile.in: Remove value_h from gdbarch_h.
364         * valops.c (coerce_float_to_double): New variable.
365         (default_coerce_float_to_double): Remove.
366         (standard_coerce_float_to_double): Remove.
367         (value_arg_coerce): Use coerce_float_to_double.
368         (_initialize_valops): Add "set coerce-float-to-double".
369         * value.h (default_coerce_float_to_double): Remove prototype.
370         (standard_coerce_float_to_double): Remove prototype.
371
372         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
373         prototyped.
374         * mdebugread.c (parse_symbol): Likewise.
375         * stabsread.c (define_symbol): Mark all functions as prototyped.
376
377         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
378         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
379         set_gdbarch_coerce_float_to_double.
380         * arm-tdep.c (arm_gdbarch_init): Likewise.
381         * frv-tdep.c (frv_gdbarch_init): Likewise.
382         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
383         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
384         * mips-tdep.c (mips_gdbarch_init): Likewise.
385         (mips_coerce_float_to_double): Remove.
386         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
387         (rs6000_coerce_float_to_double): Remove.
388         * s390-tdep.c (s390_gdbarch_init): Likewise.
389         * sh-tdep.c (sh_gdbarch_init): Likewise.
390         (sh_coerce_float_to_double): Remove.
391         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
392         (sparc_coerce_float_to_double): Remove.
393         * v850-tdep.c (v850_gdbarch_init): Likewise.
394         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
395         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
396         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
397         (hppa_coerce_float_to_double): Remove prototype.
398         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
399
400 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
401
402         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
403
404 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
405
406         Suggested by Stewart Brown <sb24@avaya.com>:
407         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
408         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
409         (c_type_print_varspec_suffix): Likewise.
410
411 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
412
413         * configure.in: Don't set and AC_SUBST SUBDIRS.
414         * configure: Regenerated.
415
416         * configure.in: Remove code dealing with shared libraries.
417         * Makefile.in: Remove HLDFLAGS and HLDENV.
418         * configure: Regenerated.
419
420 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
421
422         * frame.c (deprecated_frame_xmalloc): New function.
423         (deprecated_set_frame_saved_regs_hack): New function.
424         (deprecated_set_frame_extra_info_hack): New function.
425         * frame.h (deprecated_frame_xmalloc): Declare.
426         (deprecated_set_frame_saved_regs_hack): Declare.
427         (deprecated_set_frame_extra_info_hack): Declare.
428
429 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
430
431         * configure.in: Move code that provides the --enable-gdbtk option
432         right after the code that handles the --enable-tui option, and
433         polish it somewhat.
434         * configure: Regenerated.
435
436         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
437         AC_CHECK_FUNCS and remove the old check for pread64.
438         * acinclude.m4 (AC_GNU_SOURCE): New macro.
439         * acconfig.h (_GNU_SOURCE): Add.
440         (HAVE_PREAD64): Remove.
441         * configure, aclocal.m4, config.in: Regenerated.
442
443 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
444
445         * alpha-tdep.c: Use get_frame_saved_regs.
446         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
447         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
448         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
449         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
450         * vax-tdep.c, xstormy16-tdep.c: Ditto.
451
452 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
453
454         * configure.in: Remove all use of the SUBDIRS variable; add
455         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
456         code providing the --enable-multi-ice option, and move it right in
457         front of the code that checks whether gdbserver is supported.
458         Polish that too.
459         * configure: Regenerated.
460         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
461         @SUBDIRS@.
462
463 2003-01-03  Andrew Cagney  <cagney@redhat.com>
464
465         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
466         * avr-tdep.c, cris-tdep.c: Ditto.
467         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
468         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
469         
470 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
471
472         * configure.in: Remove --enable-netrom option.
473         * configure: Regenerated.
474
475 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
476
477         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
478         declaration for `struct re_pattern_buffer' instead.
479         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
480
481 2003-01-03  J. Brobecker  <brobecker@gnat.com>
482
483         * mdebugread.c (parse_symbol): Count until the stEnd matching
484         the structure name.
485
486 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
487
488         * configure.in: Remove --with-cpu option.
489         subscripts.  Remove evil changequotes here.
490         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
491         * config.in, configure: Regenerated.
492         
493         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
494         * configure.in: Cleanup section that sources GDB and BFD configure
495         subscripts.  Remove evil changequotes here.
496         * config.in, configure: Regenerated.
497
498 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
499
500         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
501         frame accessor methods.
502         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
503         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
504         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
505         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
506         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
507         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
508         * z8k-tdep.c: Ditto.
509         
510 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
511
512         * configure.in: Remove UI_OUT configuration code.
513         * ada-lang.c: Update assuming UI_OUT is always true.
514         * Makefile.in (UIOUT_CFLAGS): Remove.
515         * configure: Regenerated.
516         * TODO: Remove blurb about elimination of -DUI_OUT.
517
518         * configure.in: Move code that provides the --enable-gdbcli,
519         --enable-gdbmi options right before the code that handles the
520         --enable-tui option.  Polish a bit.
521         * configure: Regenerated.
522
523         * configure.in: Rewrite check for GNU regex and the
524         --without-included regex option, and move it into the "Checks for
525         library functions" section.  This makes us use the system regex
526         again by default on systems with version 2 of the GNU C library.
527         This was apparently broken.
528         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
529         * acconfig.h (USE_INCLUDED_REGEX): Remove.
530         * config.in, configure: Regenerated.
531
532         * configure.in: Move code that provides the --enable-tui option
533         before the "Checks for libraries" section.  Polish the code
534         somewhat and set need_curses to yes if we build the TUI.  Rewrite
535         code that looks for a library providing termcap functionality to
536         match more closely what's done in the Readline library, and move
537         it into to the "Checks for libraries" section.
538         * configure: Regenerated.
539         * Makefile.in (TERMCAP): Remove variable.
540         * config/i386/go32.mh (TERMCAP): Remove variable.
541
542 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
543
544         * MAINTAINERS: Mention gdb_mbuild.sh.
545         * gdb_mbuild.sh: Rewrite.
546
547 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
548
549         * configure.in: Fix typo in last change.
550         * config.in, configure: Regenerated.
551
552 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
553
554         * valarith.c (value_binop): Delete obsolete code and comments.
555         * configure.host: Ditto.
556         * buildsym.h (make_blockvector): Ditto.
557         * buildsym.c (make_blockvector): Ditto.
558         * defs.h (enum language): Ditto.
559         (chill_demangle): Ditto.
560         * elfread.c (elf_symtab_read): Ditto.
561         * dwarfread.c (CHILL_PRODUCER): Ditto.
562         (set_cu_language): Ditto.
563         (handle_producer): Ditto.
564         * expprint.c (print_subexp): Ditto.
565         * gdbtypes.c (chill_varying_type): Ditto.
566         * gdbtypes.h (builtin_type_chill_bool): Ditto.
567         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
568         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
569         (chill_varying_type): Ditto.
570         * language.h (_LANG_chill): Ditto.
571         * language.c (binop_result_type, integral_type): Ditto.
572         (character_type, string_type, structured_type): Ditto.
573         (lang_bool_type, binop_type_check): Ditto.
574         * stabsread.h (os9k_stabs): Ditto.
575         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
576         (define_symbol, read_type, read_struct_fields): Ditto.
577         (read_array_type, read_enum_type, read_huge_number): Ditto.
578         (read_range_type, start_stabs): Ditto.
579         * symfile.c (init_filename_language_table): Ditto.
580         (add_psymbol_with_dem_name_to_list): Ditto.
581         * symtab.c (symbol_init_language_specific): Ditto.
582         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
583         * symtab.h (struct general_symbol_info): Ditto.
584         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
585         * typeprint.c (typedef_print): Ditto.
586         * utils.c (fprintf_symbol_filtered): Ditto.
587         * valops.c (value_cast, search_struct_field, value_slice): Delete
588         obsolete code.
589         (varying_to_slice): Delete function.
590         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
591         (varying_to_slice): Delete declaration.
592         * MAINTAINERS: Update.
593
594 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
595
596         * configure.in: Reorganize "Checks for library functions section"
597         a bit.  Remove check for `btowc' and `isascii' functions.
598         * configure: Regenerated.
599
600         * acconfig.h (_MSE_INT_H): Remove.
601         * configure.in: Create "Checks for header files" section, and move
602         appropriate tests there.  Don't check for objlist.h, wchar.h,
603         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
604         misdetection fix.  Also add "Checks for types", "Checks for
605         compiler characteristics" and "Checks for library functions"
606         sections.
607         * config.in, configure: Regenerated.
608
609         * configure.in: Create "Checks for programs" section, and move
610         appropriate tests there.
611
612 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
613
614         * configure.in: Create "Checks for libraries" section, and move
615         appropriate tests there.  Cleanup check for wctype in libw.  Use
616         AC_SEARCH_LIBS to see whether we need libsocket.
617         * configure: Regenerated.
618
619 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
620
621         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
622         * config.in, configure: Regenerated.
623
624 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
625
626         * gdb_dirent.h: Cleanup and update code to match the example in
627         the Autoconf manual.
628         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
629         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
630         * configure: Regenerated.
631
632 2002-12-30  Adam Fedor  <fedor@gnu.org>
633
634         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
635         (yylex): Initialize c to avoid uninitialized warning.
636
637 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
638
639         * doc/fdl.texi: Revert the last change.
640
641 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
642
643         * tracepoint.c (ISATTY): Removed.
644
645 2002-12-26  J. Brobecker  <brobecker@gnat.com>
646
647         Continuing work to convert the hppa targets to multiarch partil.
648
649         * hppa-tdep.c: Add some missing forward declarations.
650         (frameless_function_invocation): Prefix the function name
651         by "hppa_" to avoid polluting the namespace.  Update all calls
652         to use the new function name.
653         (saved_pc_after_call): Ditto.
654         (init_extra_frame_info): Ditto.
655         (frame_chain): Ditto.
656         (push_dummy_frame): Ditto.
657         (target_read_pc): Ditto.
658         (target_write_pc): Ditto.
659         (in_solib_call_trampoline): Ditto.
660         (in_solib_return_trampoline): Ditto.
661         (skip_trampoline_code): Ditto.
662         (hppa_read_fp): New function, renamed from target_read_fp.
663         (hppa_target_read_fp): New function, using hppa_read_fp.
664         This function conforms to the function profile for the
665         READ_FP gdbarch method.
666         (hppa_extract_struct_value_address): New function, extracted
667         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
668         macro.
669         (hppa_frame_num_args): New function.
670         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
671
672         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
673         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
674         for the switch to multiarch partial.
675         Update some of the macros definitions to match some changes
676         described above in the name of the function they are calling.
677         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
678         not be straightforward to convert. Do now wrap it inside
679         "#if !... #endif" to remember that this macro has still not
680         been taken care of.
681         (FIX_CALL_DUMMY): Likewise.
682
683 2002-12-26  J. Brobecker  <brobecker@gnat.com>
684
685         Continuing work to convert the hppa targets to multiarch partial.
686
687         * hppa-tdep.c (hppa_register_raw_size): New function replacing
688         the body of macro REGISTER_RAW_SIZE.
689         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
690         config/pa/tm-hppah.h. These functions will be used to initialize
691         the gdbarch structure.
692         (hppa_hpux_pc_in_sigtramp): New function.
693         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
694         (hppa_hpux_frame_base_before_sigtramp): New function.
695         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
696         Add gdbcore.h #include.
697         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
698         of this gdbarch-eligible macro to a call to the new associated
699         function.
700         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
701         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
702         into a call to the new associated function.
703         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
704         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
705         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
706
707 2002-12-24  David Carlton  <carlton@math.stanford.edu>
708
709         * config/sparc/tm-sparc.h: Delete duplicate definition of
710         DEPRECATED_PC_IN_CALL_DUMMY.
711
712 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
713
714         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
715         $(gdb_assert_h).
716         * configure.tgt: Recognize mips64*-*-linux*.
717         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
718         (supply_32_bit_reg): New function.
719         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
720         (fill_gregset): Use regcache_collect() instead of
721         deprecated_registers[].
722         (register_addr): Change name to mips_linux_register_addr().
723         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
724         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
725         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
726         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
727         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
728         (MIPS64_LINUX_JB_PC): New defines.
729         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
730         (mips64_elf_fpregset_t): New typedefs.
731         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
732         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
733         (mips64_linux_register_addr, set_mips_linux_register_addr)
734         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
735         (init_register_addr_data)
736         New functions.
737         (fetch_core_registers): Add support for core file formats with 64-bit
738         registers.
739         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
740         (register_addr_data): New static global variable.
741         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
742         gdbarch_register_osabi() for each MIPS machine.
743         * config/mips/linux64.mt: New file.
744         * config/mips/tm-linux64.h: New file.
745
746 2002-12-23  Adam Fedor  <fedor@gnu.org>
747
748         * maint.c (maintenance_demangle): Add switch to demangle
749         ObjC language symbols as well.
750
751 2002-12-23  Adam Fedor  <fedor@gnu.org>
752
753         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
754         last argument from complaint function call.
755
756 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
757
758         * exec.c (print_section_info): Add FIXME comments regarding format
759         string choices.
760
761 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
762
763         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
764         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
765
766 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
767
768         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
769
770 2002-12-23  David Carlton  <carlton@math.stanford.edu>
771
772         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
773         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
774         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
775         information associated to a minsym, not lookup_symbol.
776
777 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
778
779         * x86-64-tdep.h (x86_64_init_abi): New prototype.
780         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
781         (x86_64_init_abi): Make non-static.  Set number of pseudo
782         registers to 0.
783         (x86_64_gdbarch_init): Remove function.
784         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
785         Remove code dealing with dissambly.
786         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
787         (_initialize_x86_64_linux_tdep): New function.
788         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
789         i386-tdep.o.
790
791 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
792
793         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
794         (struct gdb_osabi_handler): Remove member `arch'.  Add member
795         `arch_info'.
796         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
797         construct a `struct bfd_arch_info' and store it in the `struct
798         gdb_osabi_handler' that is created.
799         (gdbarch_init_osabi): Check for compatibility based on machine
800         type and architecture.
801         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
802         comment.
803         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
804         second argument in call to gdbarch_register_osabi.
805         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
806         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
807         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
808         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
809         * arm-tdep.c (_initialize_arm_tdep): Likewise.
810         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
811         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
812         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
813         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
814         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
815         * i386-tdep.c (_initialize_i386_tdep): Likewise.
816         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
817         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
818         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
819         _initialize_i386bsd_tdep and updated likewise.
820         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
821         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
822         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
823         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
824         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
825         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
826         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
827         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
828         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
829         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
830
831 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
832
833         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
834         DT_MIPS_RLD_MAP case for 64-bit targets.
835
836 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
837
838         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
839         ``temp_saved_regs'', not the pointer or other storage contiguous
840         to this pointer.
841
842 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
843
844         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
845         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
846         (mips_linux_get_longjmp_target): Delete declarations.
847         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
848         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
849         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
850         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
851         (mips_linux_get_longjmp_target)
852         (mips_linux_svr4_fetch_link_map_offsets): Make static.
853         (mips_linux_init_abi): New function.
854         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
855
856 2002-12-19  Keith Seitz  <keiths@redhat.com>
857
858         patch committed by Elena Zannoni  <ezannoni@redhat.com>
859         * thread.c (do_captured_list_thread_ids): Call prune_threads and
860         target_find_new_threads. Fix for PR mi/669.
861
862 2002-12-19  David Carlton  <carlton@math.stanford.edu>
863
864         * linespec.c (decode_line_1): Move code into decode_all_digits.
865         (decode_all_digits): New function.
866
867 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
868
869         * exec.c (print_section_info): Select a format string to use with
870         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
871
872 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
873
874         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
875         deprecated_update_current_frame_pc_hack.
876         (deprecated_update_frame_base_hack): New function.
877         * frame.h (deprecated_update_frame_pc_hack): Replace
878         (deprecated_update_frame_base_hack): Declare.
879         * infrun.c (normal_stop): Update.
880
881 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
882
883         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
884         frame_extra_info_zalloc.
885         (rs6000_frame_args_address): Use get_frame_extra_info.
886         (frame_get_saved_regs): Use get_frame_saved_regs.
887         (frame_initial_stack_address): Use get_frame_saved_regs and
888         get_frame_extra_info.
889         (frame_initial_stack_address): Use get_frame_extra_info.
890
891 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
892
893         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
894         array size.
895         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
896         checks for r3900_regnames[].
897
898 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
899
900         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
901         All uses changed
902         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
903
904 2002-12-17  David Carlton  <carlton@math.stanford.edu>
905
906         * symtab.c (lookup_partial_symbol): Don't search past the end of
907         the partial symbols.
908
909 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
910
911         * stack.c (frame_info): Use get_frame_saved_regs.
912         * breakpoint.c (until_break_command): Use get_frame_pc.
913
914 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
915
916         * buildsym.c (block_end_complaint, anon_block_end_complaint)
917         (innerblock_complaint, innerblock_anon_complaint)
918         (blockvector_complaint): Delete deprecated complaint structs.
919         (finish_block, make_blockvector, end_symtab): Replace calls
920         to complain() with calls to complaint().
921         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
922         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
923         (unexpected_type_complaint, bad_sclass_complaint)
924         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
925         Delete deprecated complaint structs.
926         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
927         Replace calls to complain() with calls to complaint().
928         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
929         (unknown_symtype_complaint, unknown_symchar_complaint)
930         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
931         (lbrac_mismatch_complaint, repeated_header_complaint)
932         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
933         Delete deprecated complaint structs.
934         (unknown_symtype_complaint, lbrac_mismatch_complaint)
935         (repeated_header_complaint)
936         (function_outside_compiliation_unit_complaint): New functions.
937         (add_old_header_file, find_corresponding_bincl_psymtab)
938         (set_namestring, find_stab_function_addr, read_dbx_symtab)
939         (process_one_symbol): Replace calls to complain() with, possibly
940         indirect, calls to complaint().
941         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
942         (unknown_attribute_form, unknown_attribute_length)
943         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
944         (const_ignored, botched_modified_type, op_deref2, op_deref4)
945         (basereg_not_handled, dup_user_type_allocation)
946         (dup_user_type_definition, missing_tag, bad_array_element_type)
947         (subscript_data_items, unhandled_array_subscript_format)
948         (unknown_array_subscript_format, not_row_major)
949         (missing_at_name): Delete deprecated complaint structs.
950         (bad_die_ref_complaint, unknown_attribute_form_complaint)
951         (dup_user_type_definition_complaint)
952         (bad_array_element_type_complaint): New functions.
953         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
954         (decode_subscript_data_item, dwarf_read_array_type)
955         (read_tag_string_type, read_subroutine_type, read_func_scope)
956         (locval, scan_partial_symbols, decode_modified_type)
957         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
958         (attribute_size): Replace calls to complain() with, possibly
959         indirect, calls to complaint().
960         * elfread.c (section_info_complaint, section_info_dup_complaint)
961         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
962         Delete deprecated complaint structs.
963         (elf_symtab_read, elfstab_offset_sections): Replace calls to
964         complain() with calls to complaint().
965         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
966         struct.
967         (stub_noname_complaint): New function.
968         (check_typedef, add_mangled_type): Replace calls to complain()
969         with calls to complaint().
970         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
971         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
972         (hpread_unhandled_type_complaint, hpread_struct_complaint)
973         (hpread_array_complaint, hpread_type_lookup_complaint)
974         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
975         (hpread_unhandled_common_complaint)
976         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
977         struct definitions and declarations.
978         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
979         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
980         Replace calls to complain() with, possibly indirect, calls to
981         complaint().
982         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
983         Likewise.
984         * mdebugread.c (bad_file_number_complaint, index_complaint)
985         (aux_index_complaint, block_index_complaint)
986         (unknown_ext_complaint, unknown_sym_complaint)
987         (unknown_st_complaint, block_overflow_complaint)
988         (basic_type_complaint, unknown_type_qual_complaint)
989         (array_index_type_complaint, bad_tag_guess_complaint)
990         (block_member_complaint, stEnd_complaint)
991         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
992         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
993         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
994         (bad_continued_complaint, bad_rfd_entry_complaint)
995         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
996         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
997         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
998         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
999         complaint structs.
1000         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1001         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1002         (unexpected_type_code_complaint)
1003         (function_outside_compilation_unit_complaint): New functions.
1004         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1005         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1006         Replace calls to complain() with, possibly indirect calls to
1007         complaint().
1008         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1009         Delete deprecated complaint structs.
1010         (lookup__objc_class, lookup_child_selector): Replace complain()
1011         with complaint().
1012         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1013         struct.
1014         (vx_lookup_symbol): Replace complain() with complaint().
1015         * stabsread.c (invalid_cpp_abbrev_complaint)
1016         (invalid_cpp_type_complaint, member_fn_complaint)
1017         (const_vol_complaint, error_type_complaint)
1018         (invalid_member_complaint, range_type_base_complaint)
1019         (reg_value_complaint, vtbl_notfound_complaint)
1020         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1021         (unresolved_sym_chain_complaint, stabs_general_complaint)
1022         (lrs_general_complaint, multiply_defined_struct): Delete
1023         deprecated complaint structs.
1024         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1025         (stabs_general_complaint, lrs_general_complaint)
1026         (msg_unknown_complaint): New functions.
1027         (dbx_lookup_type, read_cfront_baseclasses)
1028         (read_cfront_member_functions, resolve_symbol_reference)
1029         (define_symbol, resolve_live_range, add_live_range, read_type)
1030         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1031         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1032         (read_cfront_static_fields, attach_fields_to_type)
1033         (complain_about_struct_wipeout, read_range_type)
1034         (common_block_start, common_block_end, cleanup_undefined_types)
1035         (scan_file_globals): Replace complain() with complaint().
1036         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1037         Delete deprecated complaint struct declarations.
1038         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1039         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1040         (bf_not_found_complaint, ef_complaint, eb_complaint)
1041         (function_outside_compilation_unit_complaint): New functions.
1042         (record_include_begin, record_include_end, enter_line_range)
1043         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1044         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1045         complain() with complaint().
1046
1047 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1048
1049         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1050         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1051         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1052         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1053         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1054         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1055         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1056         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1057         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1058         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1059         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1060         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1061         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1062         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1063         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1064         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1065         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1066         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1067         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1068         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1069         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1070         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1071         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1072         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1073         * config/m88k/xm-dgux.h: Delete.
1074         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1075         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1076         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1077         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1078         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1079         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1080         * ch-valprint.c: Delete.
1081         
1082 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1083
1084         * infrun.c (handle_inferior_event): Rearrange code to resume if
1085         no catchpoint triggers for an event.
1086
1087 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1088
1089         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1090         and TARGET_WAITKIND_VFORKED cases.
1091
1092 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1093
1094         * infrun.c (handle_inferior_event): Assume that catchpoints
1095         are not affected by DECR_PC_AFTER_BREAK.
1096
1097 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1098
1099         * target.c (update_current_target): Don't inherit DONT_USE.
1100         * target.h (struct target_ops): Remove DONT_USE.
1101         (target_next): Remove macro.
1102
1103 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1104
1105         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1106
1107 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1108
1109         * arm-tdep.c (convert_from_extended): New argument to hold the
1110         type of floating point result we want to convert to.  Make input 
1111         argument const.  Fix all callers.
1112         (convert_to_extended): Similarly.
1113         (arm_extract_return_value): Now takes a regcache argument.  Change
1114         code to use regcache accessor functions.  Correctly extract 
1115         smaller-than-word results on big-endian machines.
1116         (arm_store_return_value): Now takes a regcache argument.  Change
1117         code to use regcache accessor functions.  Correctly zero/sign extend
1118         smaller than word results before storing into r0.
1119         (arm_gdbarch_init): Register new-style extract_return_value and
1120         store_return_value functions.
1121
1122 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1123
1124         * thread-db.c (thread_from_lwp): Uniquify error msg.
1125         (lwp_from_thread): Ditto.
1126         (check_event): Ditto.
1127         (find_new_threads_callback): Ditto.
1128         (thread_db_pid_to_str): Ditto.
1129
1130 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1131
1132         * frame.h (get_frame_saved_regs): Declare.
1133         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1134         pointer.
1135         * frame.c (get_frame_saved_regs): New function.
1136         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1137
1138 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1139
1140         * frame.c (deprecated_update_current_frame_pc_hack): New
1141         function.
1142         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1143         * infrun.c (normal_stop): Use said function instead of directly
1144         modifying the frame's PC.
1145         
1146 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1147
1148         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1149
1150 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1151
1152         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1153         config/mips/tm-irix6.h (NUM_REGS): Delete.
1154         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1155         (temp_saved_regs): Declare as a pointer rather than an array.
1156         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1157         that ``temp_saved_regs'' has storage allocated to it and that
1158         it's the correct size.
1159
1160 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1161
1162         * defs.h (init_last_source_visited): New prototype.
1163         (add_path): Ditto.
1164         * source.c (add_path): New function that adds to a specified path.
1165         (mod_path): Change to call add_path.
1166         (init_last_source_visited): New function to allow interfaces to
1167         initialize static variable: last_source_visited.  Part of fix
1168         for PR gdb/741.
1169         * Makefile.in: Add support for mi/mi-cmd-env.c.
1170
1171 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1172
1173         * frame.h (frame_id_unwind): Declare.
1174         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1175         id_unwind_cache.
1176         (frame_id_unwind_ftype): Declare.
1177         * frame.c (frame_id_unwind): New function.
1178         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1179         (create_new_frame, get_prev_frame): Pass id_unwind to
1180         set_unwind_by_pc.
1181         (frame_saved_regs_id_unwind): New function.
1182         (frame_saved_regs_id_unwind): New function.
1183         * dummy-frame.c (dummy_frame_id_unwind): New function.
1184         (struct dummy_frame): Add field id.
1185         (generic_push_dummy_frame): Initialize `id'.
1186         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1187
1188 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1189
1190         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1191         pass that to set_momentary_breakpoint.  Move comments to where they
1192         belong.
1193         * frame.h (set_current_frame): Delete declaration.
1194         * frame.c (set_current_frame): Delete function.
1195
1196 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1197
1198         * frame.c (frame_extra_info_zalloc): New function.
1199         * frame.h (frame_extra_info_zalloc): Declare.
1200
1201 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1202
1203         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1204         in the previous prototype change to set_momentary_breakpoint.
1205
1206 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1207
1208         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1209         and saw_child_exec.
1210         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1211         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1212         (stop_stepping): Remove outdated check for child vfork events.
1213
1214 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1215
1216         * GDB 5.3 released from gdb_5_3-branch.
1217
1218 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1219
1220         * corelow.c (init_core_ops): Delete references to to_require_attach
1221         and to_require_detach.
1222         * exec.c (init_exec_ops): Likewise.
1223         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1224         hppa_require_detach directly.
1225         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1226         * inftarg.c (child_detach): Remove.
1227         (child_detach_from_process): Rename to child_detach, remove
1228         after_fork argument.
1229         (child_attach): Remove.
1230         (child_attach_to_process): Rename to child_attach, remove after_fork
1231         argument.
1232         (init_child_ops): Delete references to to_require_attach
1233         and to_require_detach.
1234         * infttrace.c (hppa_require_attach): Update comment.
1235         * target.c (cleanup_target, update_current_target)
1236         (init_dummy_target, setup_target_debug): Delete references to
1237         to_require_attach and to_require_detach.
1238         (find_default_require_detach, find_default_require_attach)
1239         (debug_to_require_attach, debug_to_require_detach): Remove
1240         functions.
1241         * target.h (struct target_ops): Remove to_require_attach
1242         and to_require_detach.
1243         (target_require_attach, target_require_detach): Delete macros.
1244         (find_default_require_detach, find_default_require_attach): Delete
1245         prototypes.
1246         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1247
1248 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1249
1250         * frame.c (get_frame_extra_info): New function.
1251         * frame.h (get_frame_extra_info): Declare.
1252
1253 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1254
1255         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1256         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1257         with `struct frame_id'.
1258         (set_longjmp_resume_breakpoint): Ditto.
1259         * infrun.c (handle_inferior_event): Update.
1260         * breakpoint.c (watch_command_1, until_break_command): Update.
1261         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1262         (handle_inferior_event, step_over_function): Update.
1263         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1264         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1265         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1266         * infcmd.c (finish_command, run_stack_dummy): Update.
1267
1268 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1269
1270         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1271         (dwarf2_non_const_array_bound_ignored)
1272         (dwarf2_missing_line_number_section)
1273         (dwarf2_statement_list_fits_in_line_number_section)
1274         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1275         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1276         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1277         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1278         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1279         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1280         (dwarf2_missing_member_fn_type_complaint)
1281         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1282         (dwarf2_const_value_length_mismatch)
1283         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1284         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1285         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1286         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1287         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1288         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1289         complaints using deprecated struct..
1290         (dwarf2_non_const_array_bound_ignored_complaint)
1291         (dwarf2_complex_location_expr_complaint)
1292         (dwarf2_unsupported_at_frame_base_complaint)
1293         (dwarf2_const_value_length_mismatch_complaint)
1294         (dwarf2_macros_too_long_complaint)
1295         (dwarf2_macro_malformed_definition_complaint)
1296         (dwarf2_invalid_attrib_class_complaint): New functions.
1297         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1298         (read_structure_scope, read_array_type, read_common_block)
1299         (read_tag_pointer_type, read_base_type, read_partial_die)
1300         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1301         (new_symbol, dwarf2_const_value, read_type_die)
1302         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1303         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1304         complain() with, possibly indirect, calls to complaint().
1305
1306 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1307
1308         * frame.c (deprecated_get_frame_saved_regs): Rename
1309         get_frame_saved_regs.
1310         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1311         * sparc-tdep.c: Update.
1312         * hppa-tdep.c: Update.
1313         * h8500-tdep.c: Update.
1314
1315 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1316
1317         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1318         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1319         ``char *'' for return and parameter types.
1320         * gdbarch.h, gdbarch.c: Regenerate.
1321         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1322         return type from ``char *'' to ``const char *''.
1323         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1324         const.
1325
1326 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1327
1328         * i386-tdep.c: Include "dummy-frame.h".
1329         (i386_frame_chain, i386_frame_saved_pc): Replace
1330         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1331         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1332
1333 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1334
1335         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1336         Change to a function with predicate.
1337         * gdbarch.h, gdbarch.c: Re-generate.
1338         * frame.c (get_prev_frame): Update.  Test
1339         DEPRECATED_INIT_FRAME_PC_P.
1340         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1341         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1342         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1343         * alpha-tdep.c (alpha_gdbarch_init): Update.
1344         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1345         * mips-tdep.c (mips_gdbarch_init): Update.
1346         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1347         * arm-tdep.c: Update comments.
1348         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1349         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1350         * frv-tdep.c (frv_gdbarch_init): Ditto.
1351         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1352         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1353         * s390-tdep.c (s390_gdbarch_init): Ditto.
1354         * v850-tdep.c (v850_gdbarch_init): Ditto.
1355         * vax-tdep.c (vax_gdbarch_init): Ditto.
1356         * sh-tdep.c (sh_gdbarch_init): Ditto.
1357         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1358         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1359         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1360         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1361         * i386-tdep.c (i386_gdbarch_init): Ditto.
1362         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1363         * cris-tdep.c (cris_gdbarch_init): Ditto.
1364         * avr-tdep.c (avr_gdbarch_init): Ditto.
1365         * arm-tdep.c (arm_gdbarch_init): Ditto.
1366         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1367         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1368
1369 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1370
1371         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1372         CHILD_FOLLOW_FORK.
1373         * hppah-nat.c (saved_vfork_pid): Add.
1374         (child_post_follow_vfork): Remove.
1375         (child_follow_fork): New function.
1376         (child_wait): Call detach_breakpoints after receiving the child vfork.
1377         Call child_resume directly instead of going through resume ().
1378         Make sure we have the exec before reporting the vfork.
1379         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1380         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1381         (follow_fork): New function.  Call target_follow_fork.
1382         (follow_inferior_reset_breakpoints): New function broken out from
1383         old follow_inferior_fork.
1384         (resume): Remove hack to follow exec after vfork.
1385         * inftarg.c (child_post_follow_vfork): Remove.
1386         (child_follow_fork): New function.
1387         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1388         * target.c (cleanup_target): Replace to_post_follow_vfork with
1389         to_follow_fork.
1390         (update_current_target): Likewise.
1391         (setup_target_debug): Likewise.
1392         (debug_to_post_follow_vfork): Remove.
1393         (debug_to_follow_fork): New function.
1394         * target.h (struct target_ops): Replace to_post_folow_vfork with
1395         to_follow_fork.
1396         (child_post_follow_vfork): Remove prototype.
1397         (child_follow_fork): Add prototype.
1398         (target_post_follow_vfork): Remove macro.
1399         (target_follow_fork): Add macro.
1400
1401 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1402
1403         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1404         (child_post_follow_vfork): Cancel pending exec event if we follow
1405         the parent.
1406         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1407         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1408         event at the following wait call if necessary.
1409         * infrun.c (follow_vfork): Don't follow_exec here.
1410         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1411         case about HP/UX 10.20.  Remove code pushed down to
1412         hppah-nat.c:child_wait.
1413         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1414         vfork_in_flight is set.
1415
1416 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1417
1418         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1419         for the parent's fork event.
1420         * infrun.c (handle_inferior_event): Only expect one fork event.
1421         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1422         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1423
1424 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1425
1426         * PROBLEMS: Delete reference to PR gdb/725.
1427         
1428         * MAINTAINERS (gdb.c++): Add David Carlton.
1429
1430 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1431
1432         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1433         * cli/cli-cmds.c: Ditto.
1434
1435 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1436
1437         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1438         function address in <>.
1439         * gdbarch.c: Re-generate.
1440
1441 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1442
1443         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1444
1445 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1446
1447         * linespec.c (symtab_from_filename): New function.
1448         (decode_line_1): Move code into symtab_from_filename.
1449
1450 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1451
1452         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1453
1454 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1455
1456         * f-valprint.c (info_common_command): Use get_frame_pc.
1457         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1458         * ax-gdb.c (agent_command): Ditto.
1459         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1460         (rs6000_pop_frame): Ditto.
1461         (rs6000_frameless_function_invocation): Ditto.
1462         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1463         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1464         * macroscope.c (default_macro_scope): Ditto.
1465         * stack.c (print_frame_info_base): Ditto.
1466         (print_frame, frame_info, print_frame_label_vars): Ditto.
1467         (return_command, func_command, get_frame_language): Ditto.
1468         * infcmd.c (finish_command): Ditto.
1469         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1470         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1471         (break_at_finish_at_depth_command_1): Ditto.
1472         (break_at_finish_command_1): Ditto.
1473         (until_break_command, get_catch_sals): Ditto.
1474         * blockframe.c (func_frame_chain_valid): Ditto.
1475         (frameless_look_for_prologue): Ditto.
1476         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1477
1478 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1479
1480         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1481         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1482
1483 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1484
1485         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1486         to pure functions.
1487         * gdbarch.h, gdbarch.c: Re-generate.
1488         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1489         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1490
1491         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1492         declaration to a function returning a CORE_ADDR.
1493         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1494         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1495         (init_frame_pc_default): Ditto.
1496         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1497         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1498         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1499         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1500         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1501         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1502
1503         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1504         to init_frame_pc_noop.
1505         (i386_interix_init_frame_pc): Delete function.
1506         * z8k-tdep.c (init_frame_pc): Delete function.
1507         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1508         (INIT_FRAME_PC_FIRST): Ditto.
1509         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1510         (INIT_FRAME_PC_FIRST): Ditto.
1511         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1512         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1513         init_frame_pc_noop.
1514         (INIT_FRAME_PC_FIRST): Convert to an expression.
1515         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1516
1517 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1518
1519         * blockframe.c: Use get_frame_base instead of directly accessing
1520         the `struct frame_info' member frame.
1521         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1522         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1523
1524 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1525
1526         * Makefile.in (readline_h): Define.
1527         (completer.o): Depend on readline_h.
1528         (corelow.o): Ditto.
1529         (event-top.o): Ditto.
1530         (exec.o): Ditto.
1531         (solib.o): Ditto.
1532         (source.o): Ditto. 
1533         (symfile.o): Ditto. 
1534         (symmisc.o): Ditto. 
1535         (top.o): Ditto.
1536         (tracepoint.o): Ditto. 
1537         (utils.o): Ditto.
1538         (cli-dump.o): Ditto.
1539         (tui-hooks.o): Ditto. 
1540         (tuiWin.o): Ditto. 
1541
1542 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1543
1544         More cleanup from import of readline 4.3.
1545         * completer.h (complete_line, readline_line_completion_function):
1546         Update prototypes.
1547         (line_completion_function): Removed, not used outside of completer.c.
1548         * completer.c (readline_line_completion_function,
1549         complete_function, line_completion_function): Use const for first
1550         parameter.
1551         (line_completion_function): Make static.
1552         (filename_completer): filename_completion_function is now called
1553         rl_filename_completion_function
1554         * corelow.c: Include <readline/readline.h>.
1555         * exec.c: Ditto.
1556         * solib.c: Ditto.
1557         * source.c: Ditto.
1558         * symfile.c: Ditto.
1559         * symmisc.c: Ditto.
1560         * top.c (init_main): No need to coerce
1561         readline_line_completion_function anymore.
1562         * cli/cli-dump.c: Include <readline/readline.h>.
1563
1564 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1565
1566         * stack.c (frame_info): Use get_prev_frame.
1567         * blockframe.c (frame_address_in_block): Ditto.
1568         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1569         (rs6000_frameless_function_invocation): Ditto.
1570         (rs6000_frame_saved_pc): Ditto.
1571         (rs6000_frame_chain): Ditto.
1572         * arch-utils.c (init_frame_pc_default): Ditto.
1573
1574 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1575
1576         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1577         Delete redundant definition.
1578
1579 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1580
1581         Import of readline 4.3:
1582         * cli/cli-cmds.c: Include readline/tilde.h.
1583         * cli/cli-setshow.c: Ditto.
1584         * defs.h: Don't declare tilde_expand anymore, since readline
1585         exports it.
1586
1587 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1588
1589         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1590         -Werror on this file.
1591
1592 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1593
1594         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1595         the format name.
1596         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1597         * gdbarch.c: Regenerate.
1598         
1599 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1600
1601         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1602         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1603         provide a default value.
1604         * gdbarch.h, gdbarch.c: Regenerate.
1605         * frame.c (get_prev_frame): Update.  Check
1606         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1607         * s390-tdep.c (s390_gdbarch_init): Update.
1608         * mips-tdep.c (mips_gdbarch_init): Update.
1609         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1610         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1611         * alpha-tdep.c (alpha_gdbarch_init): Update.
1612         
1613 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1614
1615         * ia64-linux-nat.c: Include gdb_string.h.
1616         * alpha-nat.c: Ditto.
1617         * ppc-linux-nat.c: Ditto.
1618         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1619         Update dependencies.
1620
1621 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1622
1623         * gdbthread.h: Include "frame.h".
1624         (struct thread_info): Replace step_frame_address with
1625         step_frame_id.
1626         * inferior.h: Include "frame.h".
1627         (step_frame_id): Replace external variable step_frame_address.
1628         * gdbthread.h (save_infrun_state): Replace step_frame_address
1629         parameter with step_frame_id parameter.
1630         (load_infrun_state): Ditto.
1631         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1632         * infcmd.c (step_frame_id, step_1, step_once): Update.
1633         * thread.c (load_infrun_state, save_infrun_state): Update.
1634         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1635         (handle_inferior_event, step_over_function): Update.
1636         (normal_stop, context_switch, restore_inferior_status): Update.
1637         (struct inferior_status): Replace step_frame_address with
1638         step_frame_id.
1639
1640 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1641
1642         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1643         DW_TAG_member as well as a declaration as being a C++ static data
1644         member.
1645         (read_structure_scope): Combine tests for DW_TAG_member and
1646         DW_TAG_variable.
1647
1648 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1649
1650         * linespec.c (decode_compound): New function.
1651         (decode_line_1): Move code into decode_compound.
1652
1653 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1654
1655         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1656         argument.
1657         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1658         the static block.  See PR gdb/804.
1659
1660 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1661
1662         * symtab.c (lookup_symbol_aux_block): New function.
1663         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1664
1665 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1666
1667         * gdbarch.sh: Dump the predicate function and macro values.
1668         (read): Print error on standard error.
1669         * gdbarch.c: Regenerate.
1670         
1671 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1672
1673         * Makefile.in (mips_tdep_h): Define.
1674         (mips-tdep.o): Add mips_tdep_h to dependency list.
1675         * mips-tdep.h: New file.
1676         * mips-tdep.c (mips-tdep.h): Include.
1677         (enum mips_abi): Move to mips-tdep.h.
1678         (mips_abi): New function.
1679
1680 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1681
1682         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1683
1684 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1685
1686         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1687         function.
1688         (lookup_symbol_aux_minsyms): New function.
1689
1690 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1691
1692         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1693
1694 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1695
1696         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1697         which is an obsolete macro name.
1698
1699 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1700
1701         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1702         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1703
1704 2002-12-03  H.J. Lu  (hjl@gnu.org)
1705
1706         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1707         (create_breakpoints): Make sure the addr_string field is not
1708         NULL.
1709
1710 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1711
1712         * sparc-nat.c (fetch_inferior_registers)
1713         (store_inferior_registers): Add comment on problem of LWP vs
1714         threads.
1715         
1716         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1717         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1718         (lin_lwp_store_registers): Remove.
1719         (init_lin_lwp_ops): Use fetch_inferior_registers
1720         and store_inferior_registers directly.
1721         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1722         (store_inferior_registers): Likewise.
1723         Fix PR gdb/725.
1724
1725 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1726
1727         * frame.h (get_frame_id): Convert to a function.
1728         (null_frame_id, frame_id_p): Declare.
1729         (frame_id_eq, frame_id_inner): Declare.
1730         (frame_id_build): New function.
1731         * frame.c (get_frame_id): Update.  Use null_frame_id.
1732         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1733         frame_id_inner.
1734         (null_frame_id, frame_id_p): Define.
1735         (frame_id_eq, frame_id_inner): Define.
1736         (frame_id_build): New function.
1737         * varobj.c (varobj_create): Update.
1738         (varobj_update): Update.
1739         * valops.c (value_assign): Update.
1740         (new_root_variable): Update.
1741         * infrun.c (save_inferior_status): Update.
1742         * breakpoint.c (watch_command_1): Update.
1743
1744 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1745
1746         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1747         (SNAP2): Likewise.
1748
1749 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1750
1751         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1752         patch.
1753
1754         * PROBLEMS: Mention PR gdb/725.
1755
1756 2002-12-03  Andreas Schwab  <schwab@suse.de>
1757
1758         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1759
1760 2002-12-02  Adam Fedor  <fedor@gnu.org>
1761             Klee Dienes  <kdienes@apple.com>
1762
1763         * objc-lang.c (objc_printstr): Add width arg to match
1764         printstr prototype.
1765         (compare_selectors): Add 'const' to arg types.
1766         (compare_classes): Likewise.
1767         (find_imps): Cast msym pointer to avoid compiler warning.
1768         (print_object_command): Validate the address before
1769         passing it to the print routine.
1770         (find_objc_msgcall_submethod): Change function argument to
1771         return an int.
1772         * objc-lang.h: Add 'extern' to all function declarations.
1773         (value_nsstring): Add declaration.
1774
1775 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1776
1777         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1778         Fixes a build failure on HP/UX.
1779
1780         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1781         failure on HP/UX. 
1782         (hpread_has_name): Advance declaration to avoid a compilation warning.
1783         (pst_syms_count): Add missing variable type. By change, the compiler
1784         was defaulting to int, which seems a good choice. Fixes a compilation
1785         warning.
1786         (pst_syms_size): Likewise.
1787  
1788 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1789
1790         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1791         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1792         later to set the proper gdbarch methods depending on the osabi.
1793         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1794
1795 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1796
1797         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1798         * osabi.c (gdb_osabi_name): Add strings images for the two new
1799         enum values.
1800         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1801
1802 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1803
1804         * MAINTAINERS (Java): Global maintainers are responible for Java.
1805         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1806         part Java maintainers.
1807
1808 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1809
1810         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1811         Fixes a compilation failure on AiX.
1812
1813 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1814
1815         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1816         why aix-thread.o is not listed.
1817
1818 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1819
1820         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1821         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1822         * gdbarch.h, gdbarch.c: Re-generate.
1823         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1824         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1825         * config/pa/tm-hppa.h, frame.h: Update.
1826         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1827         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1828         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1829         * cris-tdep.c, alpha-tdep.c: Update.
1830         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1831         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1832         (get_prev_frame): Ditto.
1833
1834 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1835
1836         * exec.c (xfer_memory): Replace boolean with int.
1837         * p-exp.y: Use 0 instead of false.
1838         * corelow.c (gdb_check_format): Change return type to int from
1839         boolean.
1840         * utils.c: Don't include <curses.h> or <term.h> first.
1841
1842 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1843
1844         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1845         (m68hc11_register_byte): Remove.
1846         (m68hc11_gdbarch_init): Don't set the above.
1847
1848 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1849
1850         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1851         by calling get_selected_frame.
1852         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1853         set_current_frame, create_new_frame, select_frame and
1854         get_current_frame.
1855         * remote-e7000.c (e7000_start_remote): Ditto.
1856         * remote-mips.c (common_open): Ditto
1857         * remote-rdp.c (remote_rdp_open): Ditto.
1858
1859 2002-11-29  Andreas Schwab  <schwab@suse.de>
1860
1861         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1862         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1863         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1864         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1865         read_memory_unsigned_integer instead of read_memory_integer when
1866         dealing with addresses and instruction opcodes.
1867         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1868         (m68k_linux_frame_saved_pc): Likewise.
1869
1870 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1871
1872         * stack.c (selected_frame, select_frame): Move from here ...
1873         * frame.c (selected_frame, select_frame): ... to here.  Include
1874         "language.h".
1875         * Makefile.in (frame.o): Update dependencies.
1876         * frame.c (get_selected_frame): New function.
1877         * frame.h (get_selected_frame): Declare.
1878         (deprecated_selected_frame): Rename selected_frame.
1879         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1880         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1881         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1882         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1883         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1884         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1885         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1886         * z8k-tdep.c, cli/cli-cmds.c: Update.
1887         
1888 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1889
1890         * frame.h (get_selected_block): Add comments.
1891
1892 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1893
1894         * frame.c (pc_notcurrent): New function.
1895         (find_frame_sal): New function.
1896         * frame.h (find_frame_sal): Declare.
1897         (struct symtab_and_line): Add opaque declaration.
1898         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1899         find_pc_line.
1900         (frame_info): Ditto.
1901         * ada-lang.c (find_printable_frame): Ditto.
1902
1903 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1904
1905         * configure.in: Check that the pthdebug library is recent enough
1906         before enabling thread support on native AiX.
1907         * configure: Regenerate.
1908
1909         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1910         from the list of object files as it is now appended by configure
1911         if thread support is enabled.
1912         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1913         if thread support is enabled.
1914
1915 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1916
1917         * stack.c (get_selected_block): In-line get_current_block.
1918         * frame.h (get_current_block): Delete declaration.
1919         * blockframe.c (get_current_block): Delete function.
1920
1921 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1922
1923         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1924         USE_GENERIC_DUMMY_FRAMES.
1925         * gdbarch.h, gdbarch.c: Regenerate.
1926         * valops.c, frame.c: Update.
1927         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1928         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1929         * config/pa/tm-hppa.h, blockframe.c: Update.
1930         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1931         * m68k-tdep.c, alpha-tdep.c: Ditto.
1932
1933         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1934         * mips-tdep.c: Ditto.
1935
1936 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1937
1938         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1939         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1940         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1941         * gdbarch.c, gdbarch.h: Re-generate.
1942         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1943         (CALL_DUMMY_LOCATION): Delete macro definition.
1944         (PC_IN_CALL_DUMMY): Delete macro definitions.
1945         
1946         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1947         default is already generic_pc_in_call_dummy.
1948         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1949         * v850-tdep.c (v850_gdbarch_init): Ditto.
1950         * sh-tdep.c (sh_gdbarch_init): Ditto.
1951         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1952         * mips-tdep.c (mips_gdbarch_init): Ditto.
1953         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1954         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1955         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1956         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1957         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1958         * avr-tdep.c (avr_gdbarch_init): Ditto.
1959         
1960         * arm-tdep.c (arm_gdbarch_init): Do not set
1961         use_generic_dummy_frames, default is already 1.
1962         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1963         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1964         * v850-tdep.c (v850_gdbarch_init): Ditto.
1965         * sh-tdep.c (sh_gdbarch_init): Ditto.
1966         * s390-tdep.c (s390_gdbarch_init): Ditto.
1967         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1968         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1969         * mips-tdep.c (mips_gdbarch_init): Ditto.
1970         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1971         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1972         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1973         * i386-tdep.c (i386_gdbarch_init): Ditto.
1974         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1975         * frv-tdep.c (frv_gdbarch_init): Ditto.
1976         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1977         * cris-tdep.c (cris_gdbarch_init): Ditto.
1978         * avr-tdep.c (avr_gdbarch_init): Ditto.
1979
1980         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1981         call_dummy_location, default is already AT_ENTRY_POINT.
1982         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1983         * v850-tdep.c (v850_gdbarch_init): Ditto.
1984         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1985         * sh-tdep.c (sh_gdbarch_init): Ditto.
1986         * s390-tdep.c (s390_gdbarch_init): Ditto.
1987         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1988         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1989         * mips-tdep.c (mips_gdbarch_init): Ditto.
1990         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1991         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1992         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1993         * i386-tdep.c (i386_gdbarch_init): Ditto.
1994         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1995         * frv-tdep.c (frv_gdbarch_init): Ditto.
1996         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1997         * cris-tdep.c (cris_gdbarch_init): Ditto.
1998         * avr-tdep.c (avr_gdbarch_init): Ditto.
1999         * arm-tdep.c (arm_gdbarch_init): Ditto.
2000         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2001
2002 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2003
2004         * frame.h: Update comments on set_current_frame, create_new_frame,
2005         flush_cached_frames, reinit_frame_cache, select_frame and
2006         selected_frame.
2007         
2008 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2009
2010         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2011         deprecated pc_in_call_dummy function.
2012         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2013         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2014         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2015         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2016         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2017
2018 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2019
2020         * Makefile.in: Remove Tix dependencies.
2021         * acinclude.m4: Ditto.
2022         * aclocal.m4: Ditto.
2023         * configure.in: Ditto.
2024         * configure: Regenerated.
2025         
2026 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2027
2028         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2029         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2030         * gdbarch.c: Re-generate.
2031         
2032 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2033
2034         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2035         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2036         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2037         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2038         pc_in_call_dummy_at_entry_point.
2039         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2040         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2041         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2042         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2043         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2044         pc_in_call_dummy_on_stack.
2045         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2046         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2047         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2048         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2049         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2050         
2051 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2052
2053         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2054         pc_in_call_dummy_before_text_end
2055         (deprecated_pc_in_call_dummy_after_text_end): Rename
2056         pc_in_call_dummy_after_text_end.
2057         (deprecated_pc_in_call_dummy_on_stack): Rename
2058         pc_in_call_dummy_on_stack.
2059         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2060         pc_in_call_dummy_at_entry_point.
2061         * m68k-tdep.c (m68k_gdbarch_init): Update.
2062         * s390-tdep.c (s390_gdbarch_init): Update.
2063         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2064         * vax-tdep.c (vax_gdbarch_init): Update.
2065         * sparc-tdep.c (sparc_gdbarch_init): Update.
2066         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2067         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2068         * i386-tdep.c (i386_gdbarch_init): Update.
2069         * frv-tdep.c (frv_gdbarch_init): Update.
2070         * cris-tdep.c (cris_gdbarch_init): Update.
2071         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2072         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2073         (deprecated_pc_in_call_dummy_after_text_end)
2074         (deprecated_pc_in_call_dummy_on_stack)
2075         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2076         * alpha-tdep.c (alpha_gdbarch_init): Update.
2077
2078 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2079
2080         * acconfig.h (HAVE_PREAD64): Add.
2081         * configure.in: Check for pread64.
2082         * config.in: Regenerated.
2083         * configure: Regenerated.
2084         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2085         * linux-proc.c (linux_proc_xfer_memory): New function.
2086         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2087
2088 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2089
2090         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2091         pdi's with no name.
2092
2093 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2094
2095         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2096         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2097
2098 2002-11-25  Jim Blandy  <jimb@redhat.com>
2099
2100         * symfile.c (init_objfile_sect_indices): New function.
2101         (default_symfile_offsets): Move the section-index-initializing
2102         stuff into init_objfile_sect_indices, and call that.
2103
2104         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2105         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2106
2107         * symfile.c (syms_from_objfile): Adjust indentation.
2108
2109         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2110         || info_verbose isn't true.
2111
2112 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2113
2114         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2115         default to get_frame_base.
2116         * gdbarch.h, gdbarch.c: Regenerate.
2117         * arch-utils.c (default_frame_address): Delete function.
2118         * arch-utils.h (default_frame_address): Delete declaration
2119
2120 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2121
2122         * varobj.c (find_frame_addr_in_frame_chain):
2123         Use get_frame_base instead of FRAME_FP,
2124         obvious fix.
2125
2126 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2127
2128         * frame.h (FRAME_FP): Delete macro.
2129         (get_frame_base): New function declaration.
2130         * frame.c (get_frame_base): New function.
2131         (get_frame_id): Use ->frame.
2132         (frame_find_by_id): Rewrite to use get_frame_id.
2133         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2134         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2135         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2136         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2137         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2138         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2139         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2140
2141 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2142
2143         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2144
2145 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2146
2147         * frame.c (set_unwind_by_pc): Revert change below, use
2148         PC_IN_CALL_DUMMY.
2149         (get_prev_frame): Ditto.
2150
2151 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2152
2153         * dummy-frame.c (pc_in_dummy_frame): New function.
2154         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2155         (find_dummy_frame): Update comment.
2156         (generic_pop_current_frame): Use get_frame_type.
2157         * dummy-frame.h (pc_in_dummy_frame): Declare.
2158         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2159         (create_new_frame): Use pc_in_dummy_frame.
2160         (get_prev_frame): Use pc_in_dummy_frame.
2161         (frame_saved_regs_register_unwind): Use get_prev_frame.
2162         (deprecated_generic_get_saved_register): Use get_prev_frame.
2163
2164 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2165
2166         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2167         from here ...
2168         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2169         (varobj_create): Note that frame ID should be used.
2170         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2171
2172 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2173
2174         * breakpoint.c: Include "gdb_assert.h".
2175         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2176         not being used.
2177         * Makefile.in (breakpoint.o): Update dependencies.
2178         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2179         deprecated_frame_in_dummy.
2180         * stack.c (print_frame_info_base): Ditto.
2181         (frame_info): Ditto.
2182         (print_frame_info_base): Ditto.  Delete dead code.
2183         
2184 2002-11-23  Andreas Schwab  <schwab@suse.de>
2185
2186         * Makefile.in (m68k_tdep_h): Define.
2187         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2188         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2189         * m68k-tdep.c: Move register number enum ...
2190         * m68k-tdep.h: ... to this new file and rename the constants from
2191         E_* to M68K_*.  All uses changed.
2192         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2193         * abug-rom.c: Include "m68k-tdep.h".  Use
2194         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2195         * cpu32bug-rom.c: Likewise.
2196         * dbug-rom.c: Likewise.
2197         * m68k-tdep.c: Likewise.
2198         * m68klinux-nat.c: Likewise.
2199         * remote-est.c: Likewise.
2200         * rom68k-rom.c: Likewise.
2201         * config/m68k/tm-linux.h: Likewise.
2202
2203 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2204
2205         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2206         dummy frame initialization code.
2207         * mips-tdep.c (mips_gdbarch_init): Ditto.
2208
2209 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2210
2211         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2212         attach will hang.
2213
2214 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2215
2216         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2217         to default_frame_address.
2218         * gdbarch.h, gdbarch.c: Re-generate.
2219
2220         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2221         or frame_locals_address to default_frame_address.
2222         * m68k-tdep.c (m68k_gdbarch_init): Update.
2223         * i386-tdep.c (i386_gdbarch_init): Update.
2224         * frv-tdep.c (frv_gdbarch_init): Update.
2225         * sh-tdep.c (sh_gdbarch_init): Update.
2226         * v850-tdep.c (v850_gdbarch_init): Update.
2227         * sparc-tdep.c (sparc_gdbarch_init): Update.
2228         * mips-tdep.c (mips_gdbarch_init): Update.
2229         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2230         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2231         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2232
2233         * cris-tdep.c (cris_frame_args_address): Delete function.
2234         (cris_frame_locals_address): Delete function.
2235         (cris_gdbarch_init): Do not set frame_args_address or
2236         frame_locals_address.
2237
2238 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2239
2240         * thread-db.c (thread_db_load): Tell the user what's going on
2241         if dlopen fails on libthread_db.
2242
2243 2002-11-23  Andreas Schwab  <schwab@suse.de>
2244
2245         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2246         invariant return values.
2247
2248 2002-11-22  Andreas Schwab  <schwab@suse.de>
2249
2250         * valops.c (value_slice): Move declaration of `offset' to avoid
2251         warning.
2252
2253 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2254
2255         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2256         (struct so_stuff): Add end_addr field.
2257         (register_loaded_dll): Calculate and store end address of loaded dll.
2258         (solib_address): New function.
2259         (child_solib_loaded_library_pathname): Pass carefully constructed
2260         section info to safe_symbol_file_add rather than ignoring it.
2261         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2262         DLL is loaded.
2263         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2264         (child_create_inferior): Fix a compiler warning.
2265         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2266         (solib_address): Declare new function.
2267
2268 2002-11-22  Andreas Schwab  <schwab@suse.de>
2269
2270         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2271         and FPS registers.
2272
2273 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2274
2275         * maint.c (_initialize_maint_cmds): Fix typo.  From
2276         Francesco Potorti` <pot@gnu.org>.
2277
2278 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2279
2280         * mips-tdep.c (mips_dump_tdep): Delete references to
2281         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2282         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2283         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2284         * printcmd.c (build_address_symbolic): Delete calls to
2285         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2286         (address_info): Ditto.
2287         Fix PR gdb/773.
2288         
2289 2002-11-19  Klee Dienes  <kdienes@apple.com>
2290             Adam Fedor  <fedor@gnu.org>
2291
2292         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2293         the ability to explicitly specify the quote characters and word
2294         break characters; if NULL is specified for either, use the old
2295         behavior of using the characters used by the completer.
2296         (skip_chars): New function.  Convenience wrapper around
2297         skip_quoted_chars to provide the original skip_chars behavior.
2298         * completer.h (skip_quoted_chars): Add prototype.
2299
2300 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2301
2302         Problems reported by Paul Eggert.
2303         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2304
2305 2002-11-19  Andreas Schwab  <schwab@suse.de>
2306
2307         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2308         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2309         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2310         (m68k_linux_frame_saved_pc): Move to ...
2311         * m68klinux-tdep.c: ... here.  New file.
2312         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2313         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2314
2315 2002-11-19  Adam Fedor  <fedor@gnu.org>
2316
2317         * objc-exp.y: Revert to old skip_quoted usage.
2318
2319 2002-11-19  Adam Fedor  <fedor@gnu.org>
2320
2321         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2322         (objc_lang_h): Define.
2323         (YYFILES): Add objc-exp.tab.c.
2324         (local-maintainer-clean): Remove objc-exp.tab.c.
2325         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2326         
2327 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2328
2329         * p-exp.y (typecast rule): Add automatic dereference of
2330         pascal classes if needed.
2331         (THIS): Set current_type.
2332         Automatically dereference pascal classes. 
2333         (typebase rule): Add ^typebase recognition.
2334
2335 2002-11-18  Adam Fedor  <fedor@gnu.org>
2336
2337         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2338         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2339         (op_name): Handle OP_OBJC_SELF.
2340         * Makefile.in (expprint.o): Add additional depends.
2341
2342 2002-11-18  Adam Fedor  <fedor@gnu.org>
2343
2344         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2345         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2346         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2347         * objc-exp.y: Likewise. 
2348
2349 2002-11-18  Adam Fedor  <fedor@gnu.org>
2350
2351         * gdb/parser-defs.h: (struct objc_class_str): New structure
2352         for parsing ObjC classes.
2353
2354 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2355
2356         * stack.c (frame_relative_level): Copy function from here ...
2357         * frame.c (frame_relative_level): ...to here.
2358
2359 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2360
2361         * frame.h (enum frame_type): Define.
2362         (get_frame_type): Declare.
2363         (struct frame_info): Add field `type'.  Delete field
2364         signal_handler_caller.
2365         (deprecated_set_frame_signal_handler_caller): Declare.
2366         * frame.c (get_frame_type): New function.
2367         (deprecated_set_frame_type): New function.
2368         (create_new_frame): Set the frame's type.
2369         (get_prev_frame): Similar.
2370         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2371         * s390-tdep.c: Ditto.
2372         * m68klinux-nat.c: Ditto.
2373         * ns32k-tdep.c: Ditto.
2374         * x86-64-linux-tdep.c: Ditto.
2375         * vax-tdep.c: Ditto.
2376         * rs6000-tdep.c: Ditto.
2377         * ppc-linux-tdep.c: Ditto.
2378         * i386-interix-tdep.c: Ditto.
2379         * mips-tdep.c: Ditto.
2380         * m68k-tdep.c: Ditto.
2381         * hppa-tdep.c: Ditto.
2382         * ia64-tdep.c: Ditto.
2383         * cris-tdep.c: Ditto.
2384         * arm-tdep.c: Ditto.
2385         * alpha-tdep.c: Ditto.
2386         * i386-tdep.c: Ditto.
2387         * stack.c: Ditto.
2388         * ada-lang.c: Ditto.
2389         * blockframe.c: Update.
2390         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2391         deprecated_set_frame_type instead of signal_handler_caller.
2392         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2393         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2394         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2395
2396 2002-11-18   Klee Dienes  <kdienes@apple.com>
2397
2398         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2399
2400 2002-11-18  Klee Dienes  <kdienes@apple.com>
2401
2402         * buildsym.c (pop_context): Add comment.
2403         
2404 2002-11-18  Klee Dienes  <kdienes@apple.com>
2405
2406         * buildsym.h (pop_context): Convert to function, defined in
2407         buildsym.c.
2408         * buildsym.c: Include gdb_assert.h.
2409         (pop_context): Implement as C function.  Add check for stack
2410         underflow.
2411         * dbxread.c (process_one_symbol): Complain and stop processing
2412         that symbol if we are already at the top of the context stack for
2413         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2414         when processing N_RBRAC.
2415
2416 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2417
2418         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2419         define.
2420         (struct target_waitstatus): Add opaque definition.
2421         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2422         * exec.c (init_exec_ops): Likewise.
2423         * fork-child.c (clone_and_follow_inferior): Remove.
2424         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2425         * inferior.h (clone_and_follow_inferior): Remove prototype.
2426         * infrun.c (follow_fork_mode_both): Remove.
2427         (follow_fork_mode_kind_names): Remove commented out "both".
2428         (follow_inferior_fork): Remove follow_fork_mode_both support.
2429         * inftarg.c (child_clone_and_follow_inferior): Remove.
2430         (child_post_follow_inferior_by_clone): Remove.
2431         (init_child_ops): Don't set to_clone_and_follow_inferior
2432         or to_post_follow_inferior_by_clone.
2433         * target.c (default_clone_and_follow_inferior): Remove.
2434         (cleanup_target): Don't set to_clone_and_follow_inferior
2435         or to_post_follow_inferior_by_clone.
2436         (find_default_clone_and_follow_inferior): Remove.
2437         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2438         (debug_to_clone_and_follow_inferior): Remove.
2439         (debug_to_post_follow_inferior_by_clone): Remove.
2440         (setup_target_debug): Don't set to_clone_and_follow_inferior
2441         or to_post_follow_inferior_by_clone.
2442         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2443         and to_post_follow_inferior_by_clone.
2444         (child_clone_and_follow_inferior): Remove prototype.
2445         (child_post_follow_inferior_by_clone): Remove prototype.
2446         (target_clone_and_follow_inferior): Remove macro.
2447         (target_post_follow_inferior_by_clone): Remove macro.
2448         (find_default_clone_and_follow_inferior): Remove prototype.
2449
2450 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2451
2452         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2453         inferior_has_vforked, and inferior_has_execd instead of
2454         target_has_forked, target_has_vforked, and target_has_execd.
2455         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2456         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2457         (CHILD_WAIT): Define.
2458         (child_wait): Add prototype.
2459         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2460         Add prototype.
2461         (hpux_has_vforked): Likewise, from child_has_vforked.
2462         (hpux_has_execd): Likewise, from child_has_execd.
2463         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2464         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2465         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2466         and hpux_has_syscall_event instead of the target hooks.
2467         * infrun.c (inferior_has_forked, inferior_has_vforked)
2468         (inferior_has_execd): New functions.
2469         * inftarg.c (not_same_real_pid): Remove.
2470         (child_wait): Remove references to not_same_real_pid,
2471         target_has_forked, target_has_vforked, target_has_execd,
2472         and target_has_syscall_event.
2473         (child_has_forked, child_has_vforked, child_has_execd)
2474         (child_has_syscall_event): Remove.
2475         (init_child_ops): Remove references to child_has_forked,
2476         child_has_vforked, child_has_execd, and child_has_syscall_event.
2477         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2478         (hpux_has_vforked): Likewise, from child_has_vforked.
2479         (hpux_has_execd): Likewise, from child_has_execd.
2480         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2481         * target.c (cleanup_target): Remove references to
2482         to_has_forked, to_has_vforked, to_has_execd, and
2483         to_has_syscall_event.
2484         (update_current_target): Likewise.
2485         (setup_target_debug): Likewise.
2486         (debug_to_has_forked): Remove.
2487         (debug_to_has_vforked): Remove.
2488         (debug_to_has_execd): Remove.
2489         (debug_to_has_syscall_event): Remove.
2490         * target.h (struct target_ops): Remove to_has_forked.
2491         to_has_vforked, to_has_execd, and to_has_syscall_event.
2492         (child_has_forked, child_has_vforked, child_has_execd)
2493         (child_has_syscall_event): Remove prototypes.
2494         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2495         prototypes.
2496         (target_has_forked, target_has_vforked, target_has_execd)
2497         (target_has_syscall_event): Remove macros.
2498
2499 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2500
2501         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2502         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2503         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2504         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2505         * target.c (cleanup_target): Remove reference to
2506         to_can_follow_vfork_prior_to_exec.
2507         (update_current_target): Likewise.
2508         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2509         (setup_target_debug): Remove reference to
2510         to_can_follow_vfork_prior_to_exec.
2511         * target.h (struct target_ops): Remove
2512         to_can_follow_vfork_prior_to_exec.
2513         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2514         (target_can_follow_vfork_prior_to_exec): Remove definition.
2515         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2516         define.
2517         * infrun.c (follow_vfork_when_exec): Remove.
2518         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2519         (follow_exec): Likewise.
2520         (handle_inferior_event): Likewise.
2521         (keep_going): Likewise.
2522
2523 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2524
2525         * frame.c (generic_unwind_get_saved_register): Make static.
2526         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2527         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2528         defaults to generic_unwind_get_saved_register.
2529         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2530         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2531         * frv-tdep.c (frv_gdbarch_init): Ditto.
2532         * i386-tdep.c (i386_gdbarch_init): Ditto.
2533         * s390-tdep.c (s390_gdbarch_init): Ditto.
2534         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2535         * v850-tdep.c (v850_gdbarch_init): Ditto.
2536         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2537         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2538         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2539
2540 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2541
2542         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2543         i386-tdep.c.
2544
2545 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2546
2547         * frame.h (sigtramp_saved_pc): Delete declaration.
2548         * blockframe.c (sigtramp_saved_pc): Delete function.
2549         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2550         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2551         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2552         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2553
2554 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2555
2556         * frame.c (frame_pc_unwind): New function.
2557         (frame_saved_regs_pc_unwind): New function.
2558         (frame_register_unwind): Pass unwind_cache instead of
2559         register_unwind_cache.
2560         (set_unwind_by_pc): Add unwind_pc parameter, set.
2561         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2562         (get_prev_frame): Ditto.
2563         * frame.h (frame_pc_unwind_ftype): Declare.
2564         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2565         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2566         (frame_pc_unwind): Declare.
2567         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2568         (struct dummy_frame): Add comment mentioning that values are for
2569         previous frame.
2570         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2571         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2572         (generic_file_frame_chain_valid): Ditto.
2573         * stack.c (frame_info): Ditto.
2574
2575 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2576
2577         * linespec.c (locate_first_half): New function.
2578         (decode_line_1): Move code into locate_first_half.
2579
2580 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2581
2582         * complaints.h: Add comment explaining how to eliminate a
2583         deprecated_complain call.
2584         * complaints.h: Fix spelling errors.
2585
2586 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2587
2588         * printcmd.c: Remove #include "disasm.h".
2589
2590 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2591
2592         * frame.h: Move the most relevant interface functions to the start
2593         of the file.
2594
2595 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2596
2597         * regcache.h (deprecated_registers): Rename registers.
2598         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2599         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2600         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2601         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2602         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2603         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2604         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2605         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2606         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2607         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2608         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2609         * v850ice.c: Update.
2610
2611 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2612
2613         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2614         NULL buffer.
2615
2616 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2617
2618         * regcache.h (deprecated_read_register_bytes): Rename
2619         read_register_bytes.
2620         (deprecated_write_register_bytes): Rename write_register_bytes.
2621         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2622         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2623         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2624         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2625         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2626         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2627         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2628         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2629         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2630         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2631         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2632         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2633         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2634         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2635
2636 2002-11-13  Jim Blandy  <jimb@redhat.com>
2637
2638         * findvar.c (read_var_value): Doc fix.
2639
2640 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2641
2642         * regcache.c (struct regcache): Replace passthough_p with
2643         readonly_p.
2644         (regcache_xmalloc): Initialize readonly_p.
2645         (build_regcache): Initialize readonly_p.
2646         (regcache_save): New function.
2647         (regcache_restore): New function.
2648         (regcache_cpy): Re-implement using regcache_save and
2649         regcache_restore.
2650         (regcache_raw_read): Update.
2651         (regcache_cooked_read): When a read-only cache, checked for cached
2652         pseudo register values.
2653         (regcache_raw_write): Assert that the cache is not read-only.
2654         Remove code handling a non-passthrough cache.
2655         * regcache.h (regcache_save): Declare.
2656         (regcache_restore): Declare.
2657
2658 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2659
2660         * regcache.c (struct regcache_descr): Add fields
2661         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2662         (init_legacy_regcache_descr): Compute the size of a cooked
2663         register cache and then assign that to sizeof_raw_registers.  Set
2664         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2665         (init_legacy_regcache_descr): Ditto.
2666
2667 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2668
2669         * regcache.c (register_buffer): Move to near start of file, update
2670         description.
2671         (regcache_raw_read): Use.
2672         (regcache_raw_write): Use.
2673         (struct regcache): Rename raw_registers to registers and
2674         raw_register_valid_p to register_valid_p.
2675         (regcache_xmalloc): Update.
2676         (regcache_xfree): Update.
2677         (register_buffer): Update.
2678         (regcache_cpy): Update.
2679         (regcache_cpy_no_passthrough): Update.
2680         (regcache_valid_p): Update.
2681         (deprecated_grub_regcache_for_registers): Update.
2682         (deprecated_grub_regcache_for_register_valid): Update.
2683         (set_register_cached): Update.
2684         (regcache_raw_write): Update.
2685
2686 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2687
2688         * p-exp.y (name_not_typename): Use copy_name to
2689         set current_type variable for fields of THIS.
2690
2691 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2692
2693         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2694         * monitor.c (init_base_monitor_ops): Likewise.
2695         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2696         * remote-array.c (init_array_ops): Likewise.
2697         * remote-e7000.c (init_e7000_ops): Likewise.
2698         * remote-es.c (init_es1800_ops): Likewise.
2699         (init_es1800_child_ops): Likewise.
2700         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2701         * remote-sim.c (init_gdbsim_ops): Likewise.
2702         * remote-st.c (init_st2000_ops): Likewise.
2703         * sol-thread.c (init_sol_core_ops): Likewise.
2704         (init_sol_thread_ops): Likewise.
2705         * v850ice.c (init_850ice_ops): Likewise.
2706         * win32-nat.c (init_child_ops): Likewise.
2707         * wince.c (init_child_ops): Likewise.
2708
2709 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2710
2711         * utils.c (gdb_realpath): Make rp a constant pointer.
2712
2713 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2714
2715         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2716         a constant buffer; cannonicalize_file_name(); realpath() with a
2717         pathconf() defined buffer, xstrdup().
2718
2719 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2720
2721         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2722         to hang2.C; hang3.c to hang3.C.
2723
2724 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2725
2726         * findvar.c (read_var_value): Reenable TLS code.
2727
2728 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2729             Jim Blandy  <jimb@redhat.com>
2730         
2731         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2732         * target.c (update_current_target): Add
2733         to_get_thread_local_address.
2734         * target.h (to_get_thread_local_address): Export.
2735         (target_get_thread_local_address): Define.
2736         (target_get_thread_local_address_p): Define.
2737         * thread-db.c: Include solib-svr4.h.
2738         (td_thr_tls_get_addr_p): Define.
2739         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2740         (thread_db_get_thread_local_address): New function.
2741         (init_thread_db_ops): Initialize to_get_thread_local_address.
2742         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2743         * configure: Regenerate.
2744         * config.in: Regenerate.
2745
2746 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2747
2748         * linespec.c (set_flags): New function.
2749         (decode_line_1): Move code into set_flags.
2750
2751 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2752
2753         * linespec.c (decode_line_1): Move chunks of code to separate
2754         functions.
2755         (initialize_defaults): New function.
2756         (decode_indirect): New function.
2757
2758 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2759
2760         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2761         instead of void_code_ptr.
2762         (sigtramp_saved_pc): Ditto.
2763
2764         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2765         i386_fp_regnum_p.
2766
2767 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2768
2769         * gdbtypes.h (struct main_type): Move artificial flag out of
2770         loc.  New member of ``struct field'' named static_kind.  Reduce
2771         overloaded meaning of bitsize.
2772         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2773         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2774         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2775
2776         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2777         new fields.
2778         (template_to_fixed_record_type, template_to_static_fixed_type)
2779         (to_record_with_fixed_variant_part): Likewise.
2780         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2781         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2782         * dwarfread.c (struct_type, enum_type): Likewise.
2783         * hpread.c (hpread_read_enum_type)
2784         (hpread_read_function_type, hpread_read_doc_function_type)
2785         (hpread_read_struct_type): Likewise.
2786         * mdebugread.c (parse_symbol): Likewise.
2787
2788 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2789
2790         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2791         * stack.c (print_frame_info_base): Update.
2792         (print_frame_info_base, frame_info): Update.
2793         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2794         (sparc_frame_saved_pc): Update.
2795         * ada-lang.c (find_printable_frame): Update.
2796         * breakpoint.c (deprecated_frame_in_dummy): Update.
2797         
2798 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2799
2800         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2801         defined.
2802         (regmap): Extend to cover all registers.
2803         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2804         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2805         definitions.
2806         (fetch_register, sore_register): Simplify.
2807         (old_fetch_inferior_registers, old_store_inferior_registers):
2808         Remove functions.
2809         (cannot_fetch_register, cannot_store_register): Change
2810         implementation to use regmap array to decide which registers
2811         cannot be fetched/stored.  This removes $orig_eax from the
2812         registers that cannot be fetched/stored.
2813         (fetch_inferior_registers): Call fetch_register directly instead
2814         of calling old_fetch_inferior_registers.
2815         (store_inferior_registers): Call store_register directly instead
2816         of calling old_store_inferior_registers.
2817         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2818         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2819         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2820
2821 2002-11-09  Klee Dienes  <kdienes@apple.com>
2822
2823         * i387-tdep.c (i387_supply_register): When called with NULL as a
2824         buffer, mark the register as not provided (to mirror the behavior
2825         of supply_register).
2826         (i387_supply_fxsave): Ditto.
2827         (i387_supply_fsave): Ditto (inherits the behavior from
2828         i387_supply_register).
2829
2830 2002-11-09  Klee Dienes  <kdienes@apple.com>
2831
2832         * blockframe.c (sigtramp_saved_pc): Use
2833         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2834         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2835         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2836         
2837 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2838
2839         * frame.c (get_prev_frame): Test prev_p to identify a previously
2840         unwound frame.  Initialize prev_p.
2841         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2842         comment.
2843
2844 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2845
2846         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2847         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2848         more comments.  Zap dead code.
2849
2850 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2851
2852         * infcmd.c (print_vector_info, print_float_info): Move code that
2853         checks whether the target has any registers and whether there is a
2854         selected frame up, such that it is also used if a target provides
2855         multi-arch definitions of these functions.
2856
2857 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2858
2859         * Makefile.in (DESTDIR): Define.
2860         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2861         prefix.
2862
2863         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2864         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2865
2866 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2867
2868         * i386-linux-tdep.c: Include "reggroups.h".
2869         (i386_linux_register_reggroup_p): New function.
2870         (i386_linux_init_abi): Set register_reggroup_p to
2871         i386_linux_register_reggroup_p.
2872         * i386-tdep.h (i386_register_reggroup_p): Declare.
2873         * i386-tdep.c: Include "reggroups.h".
2874         (i386_init_reggroups): New function.
2875         (i386_add_reggroups): New function.
2876         (i386_register_reggroup_p): New function.
2877         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2878         (_initialize_i386_tdep): Call i386_init_reggroups.
2879         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2880         specific reggroups.
2881
2882 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2883
2884         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2885         request that's available in *BSD.
2886
2887         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2888
2889         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2890         FDOFF_REGNUM.
2891
2892 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2893
2894         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2895         * dummy-frame.c (find_dummy_frame): Rename
2896         generic_find_dummy_frame, make static.  Return the dummy frame
2897         instead of the regcache.
2898         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2899         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2900         (dummy_frame_register_unwind): Rename
2901         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2902         * dummy-frame.h (dummy_frame_register_unwind): Rename
2903         generic_call_dummy_register_unwind.
2904
2905 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2906
2907         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2908         except the inclusion of "i386/tm-i386.h", to...
2909         * config/i386/nm-i386v42mp.h: ...here.
2910         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2911
2912 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2913
2914         * Makefile.in (frame.o): Update dependencies.
2915         * blockframe.c (current_frame, frame_obstack_alloc)
2916         (frame_saved_regs_zalloc, get_current_frame)
2917         (set_current_frame, create_new_frame)
2918         (set_unwind_by_pc, get_next_frame)
2919         (flush_cached_frames, reinit_frame_cache)
2920         (frame_saved_regs_register_unwind)
2921         (deprecated_generic_get_saved_register)
2922         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2923         (_initialize_blockframe): Move frame code from here...
2924         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2925         "annotate.h" and "dummy-frame.h".
2926         (_initialize_frame): New function.
2927
2928 2002-11-08  Jim Blandy  <jimb@redhat.com>
2929
2930         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2931         when we finish a function a context.
2932         * buildsym.h (outermost_context_p): New macro.
2933         (Bug analyzed by David Edelsohn.)
2934
2935 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2936
2937         * blockframe.c: Include "dummy-frame.h".
2938         (struct dummy_frame, dummy_frame_stack)
2939         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2940         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2941         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2942         (generic_save_call_dummy_addr, generic_pop_current_frame)
2943         (generic_pop_dummy_frame, generic_fix_call_dummy)
2944         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2945         dummy frame code from here...
2946         * dummy-frame.c: ...to here.  New file.
2947         * dummy-frame.h: New file.
2948         (generic_call_dummy_register_unwind): Declare.
2949         (generic_find_dummy_frame): Declare.
2950         * Makefile.in (SFILES): Add dummy-frame.c.
2951         (dummy-frame.o): Specify dependencies.
2952         (dummy_frame_h): Define.
2953         (COMMON_OBS): Add dummy-frame.o.
2954         (blockframe.o): Update dependencies.
2955
2956 2002-11-08  Jim Blandy  <jimb@redhat.com>
2957
2958         * dwarf2read.c (read_func_scope): Restore local_symbols and
2959         param_symbols after we finish the function context.  (Based on a
2960         patch from David Edelsohn.)
2961
2962 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2963
2964         * linespec.c (symbol_found): New function.
2965         (minsym_found): New function.
2966         (decode_line_1): Separate out some code into separate functions.
2967
2968 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2969
2970         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2971         the benefit of the interix target.
2972         * i386-tdep.h (i386_frameless_signal_p): Declare.
2973
2974 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2975
2976         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2977         declaration that snuck in from change below.
2978
2979 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2980
2981         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2982         all callers.
2983         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2984         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2985         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2986         (i386_mxcsr_regnum_p): new function.  Use instead of
2987         MXCSR_REGNUM_P.
2988         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2989         (i386_sse_regnum_p): Declare.
2990         (i386_mxcsr_regnum_p): Declare.
2991         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2992         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2993         (IS_FP_REGNUM): Update definition.
2994         (IS_FPU_CTRL_REGNUM): Update definition..
2995         (IS_SSE_REGNUM): Update definition..
2996         * i386v-nat.c (register_u_addr): Update.
2997         * go32-nat.c (fetch_register): Update.
2998         (store_register): Update.
2999
3000 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3001
3002         Preparation work to convert the hppa targets to multiarch partial.
3003
3004         * hppa-tdep.c: Add new functions replacing macro bodies from
3005         config/pa/tm-hppa.h. These function will be used to initialize
3006         the gdbarch structure. Import some comments from tm-hppa.h,
3007         and place them where appropriate, to avoid loosing them when
3008         we cleanup this file.
3009         (hppa_reg_struct_has_addr): New function.
3010         (hppa_inner_than): New function.
3011         (hppa_stack_align): New function.
3012         (hppa_pc_requires_run_before_use): New function.
3013         (hppa_instruction_nullified): New function.
3014         (hppa_register_byte): New function.
3015         (hppa_register_virtual_type): New function.
3016         (hppa_store_struct_return): New function.
3017         (hppa_cannot_store_register): New function.
3018         (hppa_frame_args_address): New function.
3019         (hppa_frame_locals_address): New function.
3020         (hppa_smash_text_address): New function.
3021         (hppa_coerce_float_to_double): New function. Requires the inclusion
3022         of "language.h".
3023
3024         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3025
3026         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3027         gdbarch-eligible macro to a call to the new associated function
3028         created in hppa-tdep.c.
3029         (INNER_THAN): Likewise.
3030         (STACK_ALIGN): Likewise.
3031         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3032         (INSTRUCTION_NULLIFIED): Likewise.
3033         (REGISTER_BYTE): Likewise.
3034         (REGISTER_VIRTUAL_TYPE): Likewise.
3035         (STORE_STRUCT_RETURN): Likewise.
3036         (CANNOT_STORE_REGISTER): Likewise.
3037         (FRAME_ARGS_ADDRESS): Likewise.
3038         (FRAME_LOCALS_ADDRESS): Likewise.
3039         (SMASH_TEXT_ADDRESS): Likewise.
3040         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3041         (ABOUT_TO_RETURN): Delete, as no longer used.
3042
3043 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3044
3045         * printcmd.c (disassemble_command): Remove obsolete function.
3046         (_initialize_printcmd): Do not create disassemble command here.
3047         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3048         disassemble command.
3049         (init_cli_cmds): Create disassemble command here instead.
3050
3051 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3052
3053         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3054
3055 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3056
3057         * regcache.h (regcache_cooked_read_using_offset_hack)
3058         (regcache_cooked_write_using_offset_hack): Delete declarations.
3059         (register_changed): Delete declaration.
3060         * regcache.c (regcache_cooked_read_using_offset_hack)
3061         (regcache_cooked_write_using_offset_hack): Delete functions.
3062         (cooked_xfer_using_offset_hack): Delete function.
3063         (register_changed): Delete function.
3064
3065 2002-11-07  Jim Blandy  <jimb@redhat.com>
3066
3067         * macroscope.c: #include "complaints.h".
3068         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3069         but not in the macro table.
3070         * Makefile.in (macroscope.o): Record dependency.
3071
3072 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3073
3074         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3075
3076 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3077
3078         * regcache.c (deprecated_registers_fetched): Update.
3079         * regcache.h (deprecated_registers_fetched): Rename
3080         registers_fetched.
3081         * remote-vxsparc.c (vx_read_register): Update.
3082         * remote-vxmips.c (vx_read_register): Update.
3083         * remote-vx68.c (vx_read_register): Update.
3084         * irix5-nat.c (fetch_core_registers): Update.
3085         * mipsm3-nat.c (fetch_inferior_registers): Update.
3086         * sun3-nat.c (fetch_inferior_registers): Update.
3087         * symm-nat.c (fetch_inferior_registers): Update.
3088         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3089         (fetch_core_registers): Update.
3090         (fetch_kcore_registers): Update.
3091         * mips-nat.c (fetch_inferior_registers): Update.
3092         * corelow.c (get_core_registers): Update.
3093         * a68v-nat.c (fetch_inferior_registers): Update.
3094
3095 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3096
3097         Put in place the framework necessary for multiarching the hppa targets.
3098         * hppa-tdep.c (hppa_gdbarch_init): New function.
3099         (hppa_dump_tdep): New function.
3100         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3101         tdep structure dumper.
3102         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3103         until the multi-arching conversion has partially been completed.
3104
3105 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3106
3107         * valops.c (value_assign): Merge lval_register case into
3108         lval_reg_frame_relative.  Use frame_register and
3109         regcache_cooked_write instead of get_saved_register and
3110         write_register_bytes.  After flushing the register cache, try to
3111         re-select the selected frame.
3112
3113 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3114
3115         * regcache.h (deprecated_register_valid): Rename register_valid.
3116         * regcache.c: Update.
3117         * ia64-aix-nat.c: Update.
3118         * i386gnu-nat.c: Update.
3119         * alpha-nat.c: Update.
3120         * sparc-nat.c: Update.
3121         * lynx-nat.c: Update.
3122         * remote-mips.c: Update.
3123
3124 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3125
3126         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3127         to end of file, to be more consistent with the pratice followed
3128         by other targets.
3129
3130 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3131
3132         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3133         (print_float_info): Print registers in float_reggroup.
3134         (print_vector_info): Print registers in vector_reggroup.
3135         (default_print_registers_info): When all, print registers in
3136         all_reggroup.  Otherwize, print registers in general_reggroup.
3137         (registers_info): Rewrite.  Add support for register groups.
3138         Eliminate a goto.
3139
3140 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3141
3142         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3143         ages.
3144         (symtab_symbol_info): Remove eons old ifdeffed out code.
3145         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3146         command.
3147
3148 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3149
3150         * c-exp.y: Add missing semi-colons.
3151         * f-exp.y: Add missing semi-colons.
3152         * m2-exp.y: Add missing semi-colons.
3153         * p-exp.y: Add missing semi-colons.
3154         Add empty action to start rule to avoid a type clash error when
3155         building with bison >= 1.50.
3156
3157 2002-11-06  Jim Blandy  <jimb@redhat.com>
3158
3159         * macrotab.h (struct macro_source_file): Doc fix.
3160
3161 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3162
3163         * varobj.c (child_exists, cplus_number_of_children): Change
3164         STREQ macro references to strcmp.
3165         (cplus_name_of_child): Change code to handle the fact that
3166         fields are not necessarily contiguous with regards to their 
3167         access control. This is a fix for PR gdb/792.
3168
3169 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3170
3171         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3172         * gdbarch.h, gdbarch.c: Regnerate.
3173         * frame.h (frame_register): Declare.
3174         * frame.c (frame_register): New function.
3175         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3176         GET_SAVED_REGISTER, otherwize call
3177         generic_unwind_get_saved_register.
3178         (frame_register_read): Use frame_register instead of
3179         get_saved_register.
3180
3181 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3182         
3183         From Jim Ingham  <jingham@apple.com>:
3184         * event-top.c (gdb_disable_readline): New function.
3185         (_initialize_event_loop): Move comment.
3186
3187 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3188
3189         * event-loop.c (start_event_loop): Add comment.
3190         Update copyright.
3191
3192 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3193
3194         * infcmd.c (default_print_registers_info): Do not call
3195         PRINT_REGISTER_HOOK.
3196
3197 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3198
3199         * sparc-tdep.c (sparc_print_register_hook): Make static.
3200         (sparc_print_registers_info): New function.
3201         (sparc_do_registers_info): New function.
3202         (sparclet_print_registers_info): New function.
3203         (sparclet_do_registers_info): New function.
3204         (do_sparc_print_registers_info): New function.
3205         (sparc_print_registers): New static function, clone of infcmd.c's
3206         default_print_registers_info.
3207         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3208         (sparclet_do_registers_info): Declare.
3209         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3210         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3211         Re-define.
3212         (sparc_do_registers_info): Declare.
3213         (PRINT_REGISTER_HOOK): Delete macro.
3214         (sparc_print_register_hook): Delete declaration.
3215
3216 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3217
3218         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3219         functions.
3220         (lookup_symbol_aux_local): New function.
3221         (lookup_symbol_aux_symtabs): New function.
3222         (lookup_symbol_aux_psymtabs): New function.
3223
3224 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3225
3226         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3227         previous values of 'objfile' and 'block'.
3228
3229 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3230
3231         * values.c (value_change_enclosing_type): Set 
3232         enclosing_type field correctly also for the case where 
3233         more memory needs to be allocated.
3234
3235 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3236
3237         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3238         of puts_filtered.
3239
3240         * i387-tdep.c (i387_print_float_info): Replace calls to
3241         register_read and deprecated_read_register_gen with calls to
3242         frame_register_read, and make the necessary adjustments to the
3243         surrounding code.
3244
3245 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3246
3247         * gdbarch.sh (register_reggroup_p): Allow default value.
3248         * gdbarch.h, gdbarch.c: Regenerate.
3249
3250 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3251
3252         * regcache.h: Add coment indicating replacements for deprecated
3253         functions.
3254
3255 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3256
3257         * reggroups.h, reggroups.c: New files.
3258         * regcache.c: Include "reggroups.h".
3259         (enum regcache_dump_what): Add `regcache_dump_groups'.
3260         (regcache_dump): Contract size of the "Type" column.  When
3261         specified, dump the register's groups.
3262         (maintenance_print_register_groups): New function.
3263         (_initialize_regcache): Add command `maint print register-groups'.
3264         * Makefile.in (COMMON_OBS): Add reggroups.o
3265         (SFILES): Add reggroups.c.
3266         (reggroups_h): Define.
3267         (regcache.o, gdbarch.o): Update dependencies.
3268         (reggroups.o): Specify dependencies.
3269         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3270         Add opaque declaration for `struct reggroup' in generated .h file.
3271         Include "reggroups.h" in generated .c file.
3272         gdbarch.h, gdbarch.c: Re-generate.
3273
3274 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3275
3276         * regcache.h (deprecated_read_register_gen): Rename
3277         read_register_gen.
3278         (deprecated_write_register_gen): Rename write_register_gen.
3279         * i387-tdep.c: Update.
3280         * x86-64-linux-nat.c: Update
3281         * wince.c: Update.
3282         * thread-db.c: Update.
3283         * win32-nat.c: Update.
3284         * mips-tdep.c: Update.
3285         * d10v-tdep.c: Update.
3286         * cris-tdep.c: Update.
3287         * remote-sim.c: Update.
3288         * remote-rdi.c: Update.
3289         * remote-rdp.c: Update.
3290         * frame.c: Update.
3291         * target.c: Update.
3292         * blockframe.c: Update.
3293         * x86-64-tdep.c: Update.
3294         * xstormy16-tdep.c: Update.
3295         * sh-tdep.c: Update.
3296         * s390-tdep.c: Update.
3297         * rs6000-tdep.c: Update.
3298         * sparc-tdep.c: Update.
3299         * i386-tdep.c: Update.
3300         * dwarf2cfi.c: Update.
3301         * regcache.c: Update.
3302
3303 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3304
3305         New interix-specific files:
3306         * config/i386/nm-interix.h: New file.
3307         * config/i386/interix.mh: New file.
3308         * config/i386/interix.mt: New file.
3309         * i386-interix-nat.c: New file.
3310         * i386-interix-tdep.c: New file.
3311
3312 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3313
3314         * frame.h (deprecated_generic_get_saved_register): Rename
3315         generic_get_saved_register.
3316         * blockframe.c (deprecated_generic_get_saved_register): Update.
3317         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3318         (xstormy16_frame_saved_register): Update.
3319         * sh-tdep.c (sh_gdbarch_init): Update.
3320         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3321         * ia64-tdep.c (ia64_get_saved_register): Update.
3322         * cris-tdep.c (cris_gdbarch_init): Update.
3323         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3324         * arm-tdep.c (arm_gdbarch_init): Update.
3325
3326 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3327
3328         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3329
3330 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3331
3332         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3333         trampolines in sigaction.
3334
3335 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3336
3337         * h8300-tdep.c: Include "gdb_assert.h".
3338         (h8300_print_register): Add gdbarch, file and frame parameters.
3339         Use frame_read_unsigned_register to read the register's value.
3340         Use fprintf_filtered to display output.
3341         (h8300_print_registers_info): Replace h8300_do_registers_info.
3342         (h8300_gdbarch_init): Set print_registers_info.
3343
3344 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3345
3346         * frame.c (frame_read_unsigned_register): New function.
3347         (frame_read_signed_register): New function.
3348         * frame.h (frame_read_unsigned_register): Declare.
3349         (frame_read_signed_register): Declare.
3350
3351 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3352
3353         * h8500-tdep.c (h8500_print_registers_info): New static function,
3354         clone of infcmd.c's default_print_registers_info.
3355         (h8500_do_registers_info): New funtion.
3356         (h8500_print_register_hook): Rename print_register_hook, make
3357         static.
3358
3359         * config/h8500/tm-h8500.h: Update copyright.
3360         (DEPRECATED_DO_REGISTERS_INFO): Define.
3361         (h8500_do_registers_info: Declare.
3362         (PRINT_REGISTER_HOOK): Delete macro.
3363         (print_register_hook): Delete function.
3364
3365 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3366
3367         * z8k-tdep.c (z8k_print_register_hook): Make static.
3368         (z8k_print_registers_info): New static function, clone of
3369         infcmd.c's default_print_registers_info.
3370         (z8k_do_registers_info): New function.  Wrap
3371         z8k_print_registers_info.
3372         * config/z8k/tm-z8k.h: Update copyright.
3373         (PRINT_REGISTER_HOOK): Delete macro.
3374         (z8k_print_register_hook): Delete declaration.
3375         (DEPRECATED_DO_REGISTERS_INFO): Define.
3376         (z8k_do_registers_info): Declare.
3377
3378 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3379
3380         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3381         as this is already provided by value.h, and was actually causing
3382         a compilation error because of a conflict in parameter type
3383         declaration due to a missing const keyword.
3384         (low_text_segment_addres): Fix a compilation warning.
3385
3386 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3387
3388         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3389         registers without a name.
3390         (mips_linux_cannot_store_register): Don't store registers without
3391         a name.
3392
3393 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3394
3395         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3396         out.)
3397         * symtab.h: Delete prototype for find_addr_symbol.
3398
3399 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3400
3401         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3402         DO_REGISTERS_INFO.
3403         gdbarch.h, gdbarch.c: Re-generate.
3404         * infcmd.c (default_print_registers_info): Update reference.
3405         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3406         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3407         * sh-tdep.c (sh_gdbarch_init): Ditto.
3408         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3409         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3410
3411 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3412
3413         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3414         cfi_init_extra_frame_info.
3415         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3416         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3417
3418         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3419         target where necessary.  Add more comments and remove the ones
3420         that don't provide any useful information.
3421
3422         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3423         deprecated_read_register_dummy with
3424         frame_unwind_unsigned_register.
3425
3426         * i386-tdep.c (i386_extract_struct_value_address): Use
3427         regcache_raw_read_unsigned instead of
3428         regcache_cooked_read_unsigned since we know that the register
3429         we're reading isn't a pseudo register.  Rename variable 'val' into
3430         the more descriptive 'addr'.
3431
3432         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3433         (x86_64_push_return_address): Add comment.
3434         (x86_64_pop_frame): Make static.
3435         (examine_argument): Clarify comment.
3436         (x86_64_skip_prologue): Make prolog_expact variable static.
3437
3438         * dwarf2cfi.c: Fix some formatting problems.
3439         (context_cpy, read_encoded_pointer): Clarify comments.
3440
3441         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3442         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3443         i386 target back into x86_64_gdbarch_init.  Add some comments and
3444         remove meaningless ones.
3445
3446 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3447
3448         * complaints.h (struct deprecated_complaint): Rename `struct
3449         complaint'.
3450         * complaints.c (complain): Update.
3451         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3452         incorrect comment indicating that "symfile.h" was being included
3453         for the `struct complaint' definition.
3454         * remote-vx.c: Update.
3455         * objc-lang.c: Update.
3456         * xcoffread.c: Update.
3457         * hpread.c: Update.
3458         * mdebugread.c: Update.
3459         * stabsread.c: Update.
3460         * dwarf2read.c: Update.
3461         * dwarfread.c: Update.
3462         * elfread.c: Update.
3463         * coffread.c: Update.
3464         * stabsread.h: Update.
3465         * dbxread.c: Update.
3466         * buildsym.c: Update.
3467         * gdbtypes.c: Update.
3468         * macrotab.c: Update.
3469
3470 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3471
3472         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3473         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3474         (x86_64_init_abi): ...new function.
3475
3476         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3477         * i386v-nat.c: Include "i386-tdep.h".
3478
3479 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3480
3481         * gdbtypes.c (address_space_name_to_int): Update.
3482         (address_space_int_to_name): Update.
3483         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3484         multi-arch predicate.
3485         (address_class_name_to_type_flags): Ditto.
3486         * gdbarch.h, gdbarch.c: Re-generate.
3487         
3488         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3489
3490 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3491
3492         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3493
3494 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3495
3496         * symtab.h (INIT_SAL): Delete macro.
3497         (init_sal): Export.
3498         * symtab.c (init_sal): New function.
3499
3500         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3501         to init_sal function call.
3502         (find_sal_from_funcs_and_line): Ditto.
3503         (all_sals_for_line): Ditto. 
3504         * breakpoint.c (create_internal_breakpoint): Ditto. 
3505         (create_fork_vfork_event_catchpoint): Ditto. 
3506         (create_exec_event_catchpoint): Ditto. 
3507         (parse_breakpoint_sals): Ditto. 
3508         (watch_command_1): Ditto. 
3509         (handle_gnu_4_16_catch_command): Ditto.
3510         (clear_command): Ditto. 
3511         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3512         * infcmd.c (run_stack_dummy): Ditto. 
3513         * infrun.c (process_event_stop_test): Ditto.
3514         (check_sigtramp2): Ditto.
3515         (step_over_function): Ditto. 
3516         * linespec.c (decode_line_2): Ditto. 
3517         (decode_line_1): Ditto. 
3518         * source.c (line_info): Ditto. 
3519         * symtab.c (find_pc_sect_line): Ditto.
3520
3521 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3522
3523         * dwarf2cfi.c (struct context)
3524         (struct context_reg): Moved to dwarf2cfi.h
3525         (context_alloc, frame_state_alloc, context_cpy):
3526         Made extern instead of static, removed prototypes.
3527         * dwarf2cfi.h (struct context)
3528         (struct context_reg): New, moved from dwarf2cfi.c
3529         (context_alloc, frame_state_alloc, context_cpy):
3530         New prototypes.
3531         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3532         Changed from static to extern.
3533         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3534         (LINUX_SIGCONTEXT_FP_OFFSET)
3535         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3536         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3537         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3538         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3539         set_gdbarch_*() calls now use x86-64 specific functions 
3540         instead of DWARF2 CFI ones.
3541         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3542         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3543         (x86_64_init_extra_frame_info): New prototypes.
3544         
3545 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3546
3547         * linespec.c: #include "parser-defs.h".
3548         Delete prototype for find_template_name_end.
3549         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3550
3551 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3552
3553         * NEWS: add recent mi fixes.
3554         * varobj.c (struct varobj): Add new "updated" flag.
3555         (new_variable): Default "updated" flag to 0.
3556         (varobj_set_value): Set "updated" flag to 1 if value
3557         changes.
3558         (varobj_update): Check varobj "updated" flag before
3559         comparing old and refreshed values.  Fix for
3560         PR gdb/702.
3561
3562 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3563
3564         * parse.c (parse_exp_1): Use BLOCK_START.
3565         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3566         SYMBOL_BLOCK_VALUE.
3567         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3568
3569 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3570
3571         * symtab.c: Delete cplusplus_hint.
3572         Delete prototype for find_template_name_end.
3573
3574 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3575
3576         * symtab.h: Update comment.
3577
3578 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3579
3580         * printcmd.c (address_info): Restore quotes in output.
3581         * valops.c (value_of_local): Restore quotes in error message.
3582
3583 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3584
3585         * symtab.c (symbol_demangled_name): New function.
3586         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3587         turning most of it into a function.
3588         (symbol_demangled_name): Export.
3589
3590 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3591
3592         * valops.c (value_of_local): Restore quotes in error message.
3593
3594 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3595
3596         * symtab.c (symbol_init_language_specific): New function.
3597         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3598         turning most of it into a function.
3599         (symbol_init_language_specific): Export.
3600
3601 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3602
3603         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3604         (dwarf_attr_name): Ditto.
3605         (dwarf_type_encoding_name): Ditto.
3606         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3607         (process_die): Handle DW_TAG_namespace,
3608         DW_TAG_imported_declaration, DW_TAG_imported_module.
3609         (read_namespace): New function.
3610
3611 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3612
3613         * configure.in: Define NEW_PROC_API on Interix too.
3614         * configure: Regenerate.
3615
3616 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3617
3618         * configure: Regenerate using the proper version of autoconf.
3619
3620 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3621
3622         * findvar.c (read_var_value): Temporarily disable TLS code, until
3623         complete TLS support is added.
3624
3625 2002-10-21  Jim Blandy  <jimb@redhat.com>
3626             Elena Zannoni  <ezannoni@redhat.com>
3627
3628         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3629         for thread local storage locations.
3630         (struct symbol): Add objfile field.
3631         (SYMBOL_OBJFILE): Define.
3632         * dwarf2read.c (is_thread_local): New static variable.
3633         (new_symbol): If variable is in thread local fill in address class
3634         and objfile appropriately.
3635         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3636         stack operation.
3637         * printcmd.c (address_info): Print the information for thread
3638         local storage variable.
3639         * findvar.c (read_var_value): In case of thread local variable,
3640         defer to the target vector code to compute address.
3641
3642 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3643
3644         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3645         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3646
3647 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3648
3649         * symtab.h (address_class):  Rename
3650         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3651         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3652         * printcmd.c (address_info): Ditto.
3653         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3654
3655 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3656
3657         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3658         DBREG_DRX macro to acces debug registers.
3659
3660         * Makefile.in (i386obsd-tdep.o): New target.
3661
3662         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3663         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3664
3665         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3666         * config/i386/obsd.mt: New file.
3667         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3668         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3669         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3670         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3671         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3672         * i386obsd-tdep.c: New file.
3673
3674 2002-10-19  Adam Fedor  <fedor@gnu.org>
3675
3676         * objc-exp.y (name_not_typename): Fix invalid comment.  
3677
3678 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3679
3680         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3681         to allocate partial syms and macro byte caches.
3682
3683 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3684
3685         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3686
3687 2002-10-18  Adam Fedor  <fedor@gnu.org>
3688
3689         * stabsread.c (find_name_end): New function.
3690         (define_symbol): Use it.
3691
3692 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3693
3694         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3695         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3696         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3697         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3698
3699 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3700
3701         * symfile.h: Add opaque declaration for struct obstack.
3702         Declare obsavestring to take a const char *.
3703         * symfile.c (obsavestring): Make first argument a const char *.
3704
3705 2002-10-16  Adam Fedor  <fedor@gnu.org>
3706
3707         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3708         names when matching breakpoints in current file.
3709
3710 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3711
3712         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3713         (read_tag_pointer_type): Add address class support.
3714         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3715         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3716         New methods.
3717         * gdbarch.h, gdbarch.c: Regenerate.
3718         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3719         (make_type_with_address_space, recursive_type_dump): Add address
3720         class support.
3721         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3722         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3723         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3724
3725 2002-10-16  Klee Dienes  <kdienes@apple.com>
3726
3727         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3728         to get the last character of a char[] buffer, not
3729         name[sizeof(vptr_name)-1].
3730
3731 2002-10-14  Adam Fedor  <fedor@gnu.org>
3732
3733         * symtab.h: New objc_specific struct.
3734         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3735         (SYMBOL_DEMANGLED_NAME): Likewise.
3736
3737 2002-10-14  Adam Fedor  <fedor@gnu.org>
3738
3739         * symfile.c (init_filename_language_table): Add ObjC file extension.
3740
3741 2002-10-14  Adam Fedor  <fedor@gnu.org>
3742
3743         * utils.c (puts_filtered_tabular): New function.
3744         (fprintf_symbol_filtered): Get ObjC demangled name.
3745         * defs.h (puts_filtered_tabular): Declared.
3746
3747 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3748
3749         * c-lang.h (c_type_print_varspec_prefix): Delete.
3750         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3751         ``need_post_space'' parameter.  Adjust all callers.
3752
3753 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3754  
3755         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3756         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3757         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3758         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3759
3760 2002-10-13  Adam Fedor  <fedor@gnu.org>
3761
3762         * source.c (print_source_lines): Update comments.
3763
3764 2002-10-13  Adam Fedor  <fedor@gnu.org>
3765
3766         * valops.c (value_of_local): New function.
3767         (value_of_this): Use it.
3768         * value.h (value_of_local): Declared.
3769
3770 2002-10-13  Adam Fedor  <fedor@gnu.org>
3771
3772         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3773         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3774
3775 2002-10-12  Adam Fedor  <fedor@gnu.org>
3776
3777         * language.c (binop_result_type): Add language_objc to case.
3778         (integral_type): Likewise.
3779         (character_type): Likewise.
3780         (string_type): Likewise.
3781         (boolean_type): Likewise.
3782         (structured_type): Likewise.
3783         (binop_type_check): Likewise.
3784
3785 2002-10-11  Adam Fedor  <fedor@gnu.org>
3786
3787         * printcmd.c (address_info): Print 'self' for ObjC.
3788
3789 2002-10-11  Adam Fedor  <fedor@gnu.org>
3790
3791         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3792         OP_SELF.
3793
3794 2002-10-11  Adam Fedor  <fedor@gnu.org>
3795
3796         * language.h (CAST_IS_CONVERSION): Add language_objc.
3797
3798 2002-10-11  Adam Fedor  <fedor@gnu.org>
3799
3800         * defs.h (enum language): Add language_objc.
3801
3802 2002-10-11  Klee Dienes  <kdienes@apple.com>
3803
3804         * corefile.c (read_memory_typed_address): New function.
3805         * gdbcore.h (read_memory_typed_address): Add prototype.
3806         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3807         to read a value destined for a CORE_ADDR, not read_memory_integer.
3808         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3809         (f77_get_dynamic_lowerbound): Ditto.
3810
3811 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3812
3813         * utils.c (string_to_core_addr): After turning string into
3814         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3815         which will do necessary sign-extension, etc.
3816
3817 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3818
3819         * c-exp.y (THIS): Delete token and grammar rule.
3820         (yylex): Don't return THIS.
3821         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3822         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3823         * demangle.c (cplus_markers): Update comment.  Put '$'
3824         first.  Remove CPLUS_MARKER.
3825         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3826         * jv-exp.y (THIS): Delete token and grammar rule.
3827         (yylex): Don't return THIS.
3828         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3829         * objc-exp.y (THIS): Delete token and grammar rule.
3830         (yylex): Don't return THIS.
3831         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3832         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3833         (read_member_functions): Likewise for opname.
3834         (read_tilde_fields): Use is_cplus_marker.
3835
3836         * defs.h (CPLUS_MARKER): Don't define.
3837         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3838         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3839         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3840         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3841         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3842
3843         * config/i386/tm-i386v4.h: Delete file.
3844         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3845         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3846         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3847         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3848         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3849         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3850         * config/i386/i386v4.mt (TM_FILE): Likewise.
3851         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3852
3853 2002-10-10  Marko Mlinar  <markom@opencores.org>
3854
3855         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3856         accidentially not commited 2002-10-09
3857         * gdbarch.h, gdbarch.c: Re-generate.
3858
3859 2002-10-09  Marko Mlinar  <markom@opencores.org>
3860
3861         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3862         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3863         * gdbarch.h, gdbarch.c: Re-generate.
3864
3865 2002-10-08  Petr Sorfa <petrs@caldera.com>
3866
3867         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3868
3869         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3870         so we can work on more than one compilation unit at a time.  This
3871         helps prepare GDB to handle inter-CU die references.
3872         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3873         the code to be defined before struct comp_unit_head.
3874         (comp_unit_head): Added new members - offset, cu_head,
3875         begin_die, next and dwarf2_abbrevs.
3876         (dwarf2_abbrevs): Removed single static var; now member of
3877         struct comp_unit_head.
3878         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3879         members.
3880         (psymtab_to_symtab_1): Changed to work with the new
3881         struct comp_unit_head.
3882         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3883         constructs the dwarf2_abbrevs[] inside the cu_header.
3884         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3885         dwarf2_abbrev table to clean up.
3886         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3887         handling of dwarf2_abbrevs inside the cu_header.
3888         (read_partial_die): Now supports the call to the new
3889         dwarf2_lookup_abbrev.
3890         (read_full_die): Now supports the call to the new
3891         dwarf2_lookup_abbrev.
3892
3893 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3894
3895         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3896         insure that shell variables, such as "transformed_name" are propagated
3897         to later shell statements in rule.
3898
3899 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3900
3901         * config/i386/nm-i386sco.h: Add protection against
3902         multiple-inclusion.  Include "i386/nm-i386v.h".
3903         (REGISTER_U_ADDR): Remove define.
3904         (i386_register_u_addr): Remove prototype.
3905
3906 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3907
3908         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3909         before treating it as a single-step event.
3910
3911 2002-10-03  Adam Fedor  <fedor@gnu.org>
3912
3913         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3914         (objc_demangle): Remove assignment in if statements, Replace
3915         free with xfree.
3916         (add_msglist): Likewise.
3917         (end_msglist): Likewise.
3918         (complare_selectors): Likewise.
3919         (selectors_info): Likewise.
3920         (compare_classes): Likewise.
3921         (classes_info): Likewise.
3922         (print_object_command): Likewise.
3923         (find_objc_msgcall_submethod): Replace PTR with void *.
3924         * objc-lang.h: Remove check for __STDC__.
3925
3926 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3927
3928         * ui-out.h (ui_out_field_fmt_int): New prototype.
3929         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3930         of field width and alignment.
3931         * stack.c (print_frame_info_base): When printing frame level, use
3932         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3933         PR gdb/192
3934
3935 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3936
3937         * MAINTAINERS: Add self to Write After Approval list.
3938
3939 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3940
3941         * infcmd.c (interrupt_target_command_wrapper): Delete.
3942         (interrupt_target_command): Make non static.
3943         (nofp_registers_info): Make static.
3944         * stack.c (return_command_wrapper): Delete.
3945         (return_command): Make non static.
3946
3947 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3948
3949         * event-top.c (gdb_setup_readline): New function. Code moved from
3950         _initialize_event_loop().
3951         (_initialize_event_loop): Call gdb_setup_readline().
3952
3953 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3954
3955         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3956         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3957         * gdbarch.h, gdbarch.c: Re-generate.
3958
3959 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3960
3961         Fix PR gdb/778
3962         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3963         before recursing.
3964         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3965         of fill_in_vptr_fieldno.
3966
3967 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3968
3969         * inferior.h (registers_info, stepi_command, nexti_command,
3970         continue_command, interrupt_target_command): Export from infcmd.c.
3971         * frame.h (args_info, selected_frame_level_changed_hook,
3972         return_command): Export from stack.c.
3973         * v850ice.c (stepi_command, nexti_command, continue_command): use
3974         prototypes from inferior.h.
3975         * tracepoint.c (registers_info, args_info, locals_info): Use
3976         prototypes from frame.h and inferior.h.
3977         * Makefile.in (mi-main.o): Add dependency on frame.h.
3978
3979 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3980
3981         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3982         value in register 3 adjusted by ppc_gp0_regnum.
3983
3984         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3985
3986 2002-10-02  Marko Mlinar <markom@opencores.org>
3987
3988         * MAINTAINERS: Add myself to the Write After Approval list.
3989
3990 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3991
3992         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3993         of the section for the N64 ABI, fixed.
3994
3995         * config/mips/tm-irix6.h: Include solib.h.
3996
3997 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3998
3999         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4000         GNU operators.
4001
4002 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4003
4004         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4005         and that "mi0" syntax has been removed.
4006
4007 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4008
4009         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4010         * ppc-sysv-tdep.c: #include "gdb_string.h".
4011         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4012         pacify GCC.
4013
4014 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4015
4016         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4017         "vrsave"'s register number.
4018
4019 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4020
4021         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4022         use frame_unwind_signed_register to obtain the PC.
4023         (mips_frame_chain): Handle a generic dummy frame.
4024         (mips_init_extra_frame_info): When a generic dummy frame, don't
4025         re-compute the frame base.
4026         (mips_pop_frame): Handle generic dummy frames.
4027         (mips_gdbarch_init): When generic dummy frames, set
4028         use_generic_dummy_frames, push_dummy_frame to
4029         generic_push_dummy_frame, pc_in_call_dummy to
4030         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4031         generic_save_dummy_frame_tos.
4032
4033 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4034
4035         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4036         against TOP when TOP was explictly set.
4037         (generic_push_dummy_frame): Set TOP to zero.
4038
4039 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4040
4041         * event-loop.c (start_event_loop): Rename variable 'result' to
4042         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4043
4044 2002-09-30  Keith Seitz  <keiths@redhat.com>
4045
4046         * gdb-events.sh (selected_thread_changed): New event.
4047         * gdb-events.c: Regenerated.
4048         * gdb-events.h: Regenerated.
4049
4050 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4051
4052         * MAINTAINERS: Add self to Write After Approval list.
4053
4054 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4055
4056         * disasm.c: New file.  
4057         * disasm.h: New file.  
4058         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4059         (compare_lines): Ditto.
4060         (dump_insns): Ditto.
4061         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4062         argument.
4063         (do_assembly_only): Ditto.
4064         (do_disassembly): Renamed to gdb_disassembly and moved to
4065         disasm.c.  Sdded uiout argument.
4066         * Makefile.in: Add new files.  Reorder SFILES list. Update
4067         dependencies.  Include libgdb.a later in the insight executable.
4068
4069 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4070
4071         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4072         bfd/elf64-alpha-fbsd.c.
4073
4074 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4075
4076         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4077         i386gnu-tdep.c.
4078
4079 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4080
4081         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4082         __FUNCTION__.
4083         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4084         function name.
4085         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4086         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4087         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4088         (S_msg_sig_post_reply): Ditto.
4089         
4090 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4091
4092         * sh-tdep.c (sh_use_struct_convention): Use definition according
4093         to ABI.
4094         (sh_push_arguments): Store in register with correct endianess.
4095         (sh_default_store_return_value): Ditto.
4096         (sh_gdbarch_init): Set sizeof long double to 8.
4097
4098 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4099
4100         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4101         Fix some whitespace problems.
4102
4103 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4104
4105         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4106         (mcore-tdep.o): Ditto.
4107         (ns32k-tdep.o): Ditto.
4108         (ns32knbsd-tdep.o): Ditto.
4109         (sh3-rom.o): Ditto.
4110         (vax-tdep.o): Ditto.
4111         * cris-tdep.c: #include "gdb_string.h"
4112         * mcore-tdep.c: Ditto.
4113         * ns32k-tdep.c: Ditto.
4114         * ns32knbsd-tdep.c: Ditto.
4115         * sh3-rom.c: Ditto.
4116         * vax-tdep.c: Ditto.
4117
4118 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4119
4120         * config/djgpp/fnchange.lst: Add entries for
4121         gdb/testsuite/gdb.c++/m-static files.
4122
4123 2002-09-27  Jim Wilson  <wilson@redhat.com>
4124
4125         * MAINTAINERS: Add myself to the Write After Approval list.
4126
4127 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4128
4129         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4130
4131
4132 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4133
4134         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4135         frame.
4136
4137 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4138
4139         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4140         (rs6000_struct_return_address): Delete variable.
4141         (rs6000_store_struct_return): Update.
4142         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4143         deprecated_extract_struct_value_address.
4144         (rs6000_frame_align): New function.
4145         (rs6000_gdbarch_init): Set frame_align.
4146
4147 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4148
4149         From Grace Sainsbury <graces@redhat.com>:
4150         * Makefile.in (gdbtk-main.o): New target.
4151         (gdb.o): New target.
4152         (main_h): Define.
4153         (main.o): Update dependencies.
4154         (gdb$(EXEEXT)): Add gdb.o.
4155         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4156         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4157         (SUBDIR_GDBTK_CLEAN): Set.
4158         (install-gdbtk): Install the insight binary.
4159         (uninstall-gdbtk): New target.
4160         (all-gdbtk, clean-gdbtk): New rule.
4161         * top.c (use_windows): Default to zero.
4162         * main.c: Include "main.h".
4163         (main): Delete.
4164         (struct captured_main_args): Delete.
4165         (gdb_main): New function.
4166         * main.h: New file.
4167         * gdb.c: New File.
4168
4169 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4170
4171         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4172         (frame_map_regnum_to_name): New function.
4173         (frame_map_name_to_regnum): New function.
4174         * frame.h (frame_map_name_to_regnum): Declare.
4175         (frame_map_regnum_to_name): Declare.
4176         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4177         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4178         * parse.c: Do not include "builtin-regs.h".
4179         (target_map_name_to_register): Delete function.
4180         (write_dollar_variable): Use frame_map_name_to_regnum.
4181         * parser-defs.h (target_map_name_to_register): Delete declaration.
4182         * expprint.c: Include "frame.h".
4183         (print_subexp): Use frame_map_regnum_to_name.
4184         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4185         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4186
4187 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4188
4189         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4190         wasn't saved, and the next innermost frame is a dummy, return the
4191         dummy frame's link register.
4192
4193 2002-09-24  Jim Blandy  <jimb@redhat.com>
4194
4195         Fix from Paul Breed:
4196         * main.c (captured_main): Add a `break' after the case for 'b'.
4197
4198 2002-09-24  Keith Seitz  <keiths@redhat.com>
4199
4200         * varobj.c (c_type_of_child): Use get_target_type instead
4201         of TYPE_TARGET_TYPE.
4202
4203 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4204
4205         * source.c (get_current_or_default_source_symtab_and_line): Remove
4206         function.
4207         (set_default_source_symtab_and_line): New function. Attempts to
4208         determine a source file to list lines from if one is not currently
4209         defined.
4210         (get_current_source_symtab_and_line): Initialize sal.pc and
4211         sal.end fields.
4212         (set_current_source_symtab_and_line): Mark argument as const.
4213         * source.h: Update declarations and comments.
4214         * linespec.c (decode_line_1): Replace call to removed routine above.
4215         * stack.c (print_frame_info_base): Ditto.
4216         * cli/cli-cmds.c (edit_command): Ditto.
4217         (list_command): Ditto.
4218
4219 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4220
4221         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4222         sal.pc and sal.end fields.
4223         (get_current_or_default_source_symtab_and_line): Ditto.
4224         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4225         so we do not cause a new source symtab to be searched for (reverting an
4226         unintentional change from the 2002-09-20 patch).
4227         * scm-lang.c (scm_unpac): Ditto.
4228
4229 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4230
4231         * complaints.c (symfile_explanations): Remove new-line from
4232         ``isolated_message''.
4233         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4234         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4235
4236 2002-09-20  Nick Clifton  <nickc@redhat.com>
4237         
4238         * NEWS: Announce that V850EA ISA is no longer supported.
4239         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4240
4241 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4242
4243         * Makefile.in (c-lang.o): Correct dependencies.
4244         (utils.o): Gather dependencies.
4245         (charset.o): Move.
4246         * c-lang.c: #include "gdb_string.h"
4247
4248 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4249
4250         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4251         * cli/cli-cmds.c (list_command): New function.  Implements the new
4252         cli edit command.
4253         (_init_cli_cmds): Add new command definition.
4254         * gdb.1: Document edit command.
4255         * doc/gdb.texinfo: Document edit command.
4256
4257 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4258
4259         * source.c: Make global variables current_source_symtab and
4260         current_source_line static.
4261         (list_command): Moved to cli/cli-cmds.c.
4262         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4263         (get_first_line_listed): New accessor function.
4264         (get_lines_to_list): New accessor function.
4265         (get_current_source_symtab_and_line): New function. Retrieves the
4266         position in the source code that we consider current.
4267         (get_current_or_default_source_symtab_and_line): New function.
4268         Like the above but attempts to determine a default position if one
4269         is not currently defined.
4270         (set_current_source_symtab_and_line): New function. Sets the source
4271         code position considered current and returns the previously set one.
4272         (clear_current_source_symtab_and_line): Reset stored information about
4273         a current source line.
4274         (_initialize_source): Remove registration for the "list" command and
4275         its alias.
4276         * source.h: Add declarations for the new functions above.
4277         * symtab.h: Remove declarations for the global variables mentioned
4278         above.
4279         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4280         obtain current source line.
4281         * linespec.c (decode_line_1): Ditto.
4282         * macroscope.c (default_macro_scope): Ditto.
4283         * scm-lang.c (scm_unpac): Ditto.
4284         * stack.c (print_frame_info_base): Ditto.
4285         * symfile.c (clear_symtab_users): Ditto.
4286         * symtab.c (decode_line_spec): Ditto.
4287         * cli/cli-cmds.c (list_command): Moved here from source.c.
4288         (ambiguous_line_spec): Moved here from source.c.
4289         (_init_cli_cmds): Add definition for "list" and its alias.
4290         * Makefile.in: Update dependencies.
4291
4292 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4293
4294         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4295         with what gcc thinks is correct.
4296
4297 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4298
4299         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4300         multiple register push instruction.
4301
4302 2002-09-19  Jim Blandy  <jimb@redhat.com>
4303
4304         Add support for distinct host and target character sets.
4305         * charset.c, charset.h: New files.
4306         * c-exp.y: #include "charset.h".
4307         (yylex): Convert character and string literals to the target
4308         character set, before returning them as the semantic value of the
4309         token.
4310         * c-lang.c: #include "charset.h".
4311         (c_emit_char): Use charset-specific methods to recognize
4312         characters with backslash escape forms, to decide which characters
4313         to print literally and which to print using numeric escape
4314         sequences, and to convert target characters to host characters
4315         before printing.
4316         * utils.c: #include "charset.h".
4317         (no_control_char_error): New function.
4318         (parse_escape): Use charset-specific methods to recognize
4319         backslash escapes, parse `control character' notation, and convert
4320         characters from the host character set to the target character set.
4321         * configure.in: Set the default host character set.
4322         Check where to find iconv, and what its argument types might be.
4323         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4324         * Makefile.in (SFILES): List charset.c.
4325         (COMMON_OBS): List charset.o.   
4326         (charset.o): New rule.
4327         (charset_h): New header dependency variable.
4328         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4329         (LIBICONV): New variable, set by configure.
4330         (CLIBS): Include $(LIBICONV) here.
4331         * aclocal.m4, config.in, configure: Regenerated.
4332
4333 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4334
4335         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4336         bison 1.35 warning.
4337
4338 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4339
4340         * gdb_mbuild.sh: New file.
4341
4342 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4343
4344         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4345
4346 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4347
4348         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4349         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4350         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4351         valops.c, value.h: Revert previous change.
4352         
4353 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4354
4355         Preliminary support for Objective-C:
4356         * defs.h (language_objc): New enum value.
4357         (puts_filtered_tabular): Declaration only, exported from utils.c.
4358         (skip_quoted): Delete, declared in completer.h.
4359         * c-exp.y: Include completer.h.
4360         * p-exp.y: Ditto.
4361         * jv-exp.y: Ditto.
4362         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4363         New operator enum values.
4364         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4365         * language.c (binop_result_type): Handle language_objc case.
4366         (integral_type, character_type, string_type, boolean_type,
4367         structured_type, binop_type_check): Ditto.
4368         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4369         (struct objc_specific): Add to general_symbol_info.
4370         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4371         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4372         * parser-defs.h (struct objc_class_str): New struct type.
4373         (start_msglist, end_msglist, add_msglist): Declaration only,
4374         exported from objc-lang.c.
4375         * value.h (value_of_local, value_nsstring, 
4376         call_function_by_hand_expecting_type): Exported from valops.c.
4377         * valops.c (find_function_addr): Export.
4378         (call_function_by_hand_expecting_type): New function.
4379         (value_of_local): New function.
4380         * symfile.c (init_filename_language_table): Add ".m" extension
4381         for Objective-C.
4382         * utils.c (puts_filtered_tabular): New function.
4383         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4384         (set/show demangle): Extend help-string to refer to ObjC.
4385         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4386         * stabsread.c (symbol_reference_defined): Objective-C symbols
4387         may contain colons: make allowances when scanning stabs strings
4388         for colons.
4389         (objc_find_colon): New function.
4390         * printcmd.c (address_info): If language == objc then print
4391         "self" instead of "this".
4392         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4393         OP_NSSTRING, and OP_SELF.
4394         (prefixify_subexp): Ditto.
4395         * source.c (print_source_lines): Mention objc in comment.
4396         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4397         method names.
4398
4399 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4400
4401         * complaints.h: Update copyright.
4402         (struct complaints): Declare.
4403         (struct complaint): Make `message' constant.
4404         (internal_complaint): Declare.
4405         (complaint): Declare.
4406         (complaint_root): Delete declaration.
4407         (symfile_complaints): Delete declaration.
4408         (struct complaints): Add opaque declaration.
4409         (clear_complaints): Add a complaints parameter.
4410         * complaints.c: Update copyright.
4411         (enum complaint_series): Define.
4412         (complaint_root): Delete.
4413         (struct complaints): Define.
4414         (complaint_sentinel, symfile_complaint_book): New variables.
4415         (symfile_explanations, symfile_complaints): New variables.
4416         New variables.
4417         (get_complaints): New function.
4418         (vcomplaint): New function.
4419         (complaint): New function.
4420         (internal_complaint): New function.
4421         (complain): Call vcomplain with symfile_complaint.
4422         (clear_complaints): Rewrite.
4423         (_initialize_complaints): Use add_setshow_command.
4424         * Makefile.in (complaints.o): Update dependencies.
4425         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4426         to call to clear_complaints.
4427         (new_symfile_objfile, reread_symbols): Ditto.
4428         (oldsyms_complaint): Delete.
4429         (empty_symtab_complaint, unknown_option_complaint): Delete.
4430         (free_named_symtabs): Use complaint instead of complain.
4431
4432 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4433
4434         Contributed by Apple Computer, Inc.  Merged with current sources
4435         by Adam Fedor <fedor@doc.com> [cagney].
4436         
4437         * objc-lang.c: First clean-up round: comments, indentation.
4438         * objc-lang.h: Ditto.
4439         * objc-lang.y: Ditto.
4440
4441 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4442
4443         * maint.c (maintenance_internal_error): Print the parameter as the
4444         error message.
4445         (maintenance_internal_warning): New function.
4446         (_initialize_maint_cmds): Add command `maint internal-warning'.
4447
4448         * defs.h (internal_warning, internal_vwarning): Declare.
4449         * utils.c (struct internal_problem): Define.
4450         (internal_vproblem): New function.
4451         (internal_warning): New function.
4452         (internal_vwarning): New function.
4453         (internal_warning_problem, internal_error_problem): New variables.
4454         (internal_verror): Just call internal_vproblem.
4455
4456 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4457
4458         * objc-lang.c: New file, support for Objective-C.
4459         Preliminary check-in, not yet integrated into gdb.
4460         * objc-lang.h: New file.
4461         * objc-exp.y:  New file.
4462
4463 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4464
4465         * infrun.c (signal_stop_update): Convert definition to ISO C.
4466         (signal_print_update): Ditto.
4467         (signal_pass_update): Ditto.
4468         * inflow.c (terminal_save_ours): Ditto.
4469
4470         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4471         comments.
4472         
4473         * config/djgpp/fnchange.lst: Handle name clashes between
4474         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4475         bfd/coff-tic80.c.
4476
4477         * i386-linux-tdep.h: Fix tipo.
4478
4479 2002-09-18  Adam Fedor  <fedor@gnu.org>
4480
4481         * MAINTAINERS: Add myself to the Write After Approval list.
4482
4483 2002-09-18  Jim Blandy  <jimb@redhat.com>
4484
4485         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4486         texthigh and textlow to reader-specific structs caused
4487         objfile_relocate to miss them.  This is fixable, but the work that
4488         the change was supposed to prepare GDB for never got done anyway.
4489
4490 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4491
4492         * MAINTAINERS: Alphabetize Write After Approval list.
4493
4494 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4495
4496         Fix PR gdb/709
4497         * values.c (value_static_field): Call read_var_value.
4498
4499 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4500
4501         * valops.c (hand_function_call): Align the initial stack pointer
4502         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4503         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4504         return value.
4505         * mips-tdep.c (mips_frame_align): New function.
4506         (mips_gdbarch_init): Set frame_align.
4507         * gdbarch.sh (FRAME_ALIGN): New method.
4508         * gdbarch.h, gdbarch.c: Re-generate.
4509
4510 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4511
4512         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4513         registers.
4514
4515 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4516
4517         * NEWS: Mention that MIPS $fp behavior changed.
4518         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4519         reference to FP_REGNUM.
4520         (mipsnbsd_cannot_store_register): Ditto.
4521         * mips-linux-nat.c: Update copyright.
4522         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4523         (mips_linux_cannot_store_register): Ditto.
4524         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4525         * config/mips/tm-mips.h: Update copyright.
4526         (FP_REGNUM): Delete macro.
4527         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4528         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4529         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4530         (mips_r3041_reg_names, mips_r3051_reg_names)
4531         (mips_r3081_reg_names): Replace "fp" with "".
4532         Fix PR gdb/480.
4533
4534 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4535
4536         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4537         generic_read_register_dummy() (PR gdb/703).
4538         (avr_push_return_address): #if 0 out unused vars.
4539         (avr_gdbarch_init): Enable use of avr_push_return_address().
4540
4541 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4542
4543         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4544         RTE will take care of it.
4545
4546 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4547
4548         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4549         invalid, return SP_REGNUM.
4550
4551 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4552
4553         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4554         point registers without sign extension.
4555
4556 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4557
4558         * blockframe.c (deprecated_read_register_dummy): Rename
4559         generic_read_register_dummy.
4560         * frame.c (frame_unwind_signed_register): New function.
4561         (frame_unwind_unsigned_register): New function.
4562         * frame.h (frame_unwind_signed_register): Declare.
4563         (frame_unwind_unsigned_register): Declare.
4564         (deprecated_read_register_dummy): Rename
4565         generic_read_register_dummy.
4566
4567         * h8300-tdep.c (h8300_frame_chain): Update.
4568         (h8300_frame_saved_pc): Update.
4569         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4570         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4571         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4572         (s390_frame_chain): Update.
4573         * v850-tdep.c (v850_find_callers_reg): Update.
4574         (v850_frame_saved_pc): Update.
4575         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4576         (m32r_find_callers_reg): Update.
4577         (m32r_frame_saved_pc): Update.
4578         * sh-tdep.c (sh_find_callers_reg): Update.
4579         (sh64_get_saved_pr): Update.
4580         (sh_init_extra_frame_info): Update.
4581         (sh_init_extra_frame_info): Update.
4582         (sh64_init_extra_frame_info): Update.
4583         (sh64_init_extra_frame_info): Update.
4584         * mcore-tdep.c (mcore_find_callers_reg): Update.
4585         (mcore_frame_saved_pc): Update.
4586         (mcore_init_extra_frame_info): Update.
4587         * i386-tdep.c (i386_frame_saved_pc): Update.
4588         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4589         (ia64_init_extra_frame_info): Update.
4590         (ia64_init_extra_frame_info): Update.
4591         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4592         * cris-tdep.c (cris_init_extra_frame_info): Update.
4593         * avr-tdep.c (avr_frame_chain): Update.
4594         (avr_init_extra_frame_info): Update.
4595         (avr_frame_saved_pc): Update.
4596         * arm-tdep.c (arm_find_callers_reg): Update.
4597         (arm_init_extra_frame_info): Update.
4598         (arm_frame_saved_pc): Update.
4599
4600 2002-09-17  Tom Tromey  <tromey@redhat.com>
4601
4602         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4603         is "'".
4604
4605 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4606
4607         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4608         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4609         NEXT_PROLOGUE_INSN.
4610         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4611         NEXT_PROLOGUE_INSN.
4612
4613 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4614
4615         * osfsolib.c: Remove file, replaced by solib-osf.c.
4616         * Makefile.in: Remove compilation rules for osfsolib.c.
4617
4618 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4619
4620         * cp-valprint.c (cp_print_class_method): Correct args to
4621         check_stub_method_group.
4622
4623 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4624
4625         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4626         `set architecture'.  Unify naming convention of functions.
4627         (h8300_skip_prologue): Improve prologue analysis.
4628         (h8300_push_arguments): Rewritten to more closely match GCC's
4629         bizarre argument-passing behavior, along with the comment describing
4630         said behavior.
4631         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4632         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4633         sim, remote-e7000.c, remote-hms.c and remote.c
4634
4635 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4636
4637         * i386-tdep.c (gdb_print_insn_i386): Removed.
4638         (i386_print_insn): New function.
4639         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4640         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4641         tm_print_insn_info.
4642
4643 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4644
4645         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4646         zero.
4647
4648 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4649
4650         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4651         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4652         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4653
4654 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4655
4656         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4657
4658 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4659
4660         * gdbtypes.c (check_stub_method): Make static.
4661         (check_stub_method_group): New function.
4662         * gdbtypes.h: Update prototypes.
4663         * cp-support.c: New file.
4664         * cp-support.h: New file.
4665
4666         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4667         (update_method_name_from_physname): New function.
4668         (read_member_functions): Correct method names for operators
4669         and v3 constructors/destructors.  Separate v2 constructors and
4670         destructors.
4671         * Makefile.in (stabsread.o): Update dependencies.
4672         (SFILES): Add cp-support.c.
4673         (COMMON_OBS): Add cp-support.o.
4674         (cp_support_h, cp-support.o): Add.
4675
4676         * cp-valprint.c (cp_print_class_method): Call
4677         check_stub_method_group instead of check_stub_method.  Remove
4678         extraneous QUITs.
4679         * p-valprint.c (pascal_object_print_class_method): Likewise.
4680         * valops.c (search_struct_method): Likewise.
4681         (find_method_list, value_struct_elt_for_reference): Likewise.
4682
4683 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4684
4685         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4686         * gdbarch.h, gdbarch.c: Regenerate.
4687
4688 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4689
4690         * frame.c (find_saved_register): Delete function.
4691         * frame.h (find_saved_register): Delete declaration.
4692         Fix PR gdb/631.
4693
4694 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4695
4696         * mips-tdep.c (read_next_frame_reg): Re-hack using
4697         frame_register_unwind.
4698
4699 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4700
4701         * mips-tdep.c (mips_get_saved_register): Re-hack using
4702         frame_register_unwind.
4703
4704 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4705
4706         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4707         vector. Will be useful for Interix.  
4708         * gdbarch.h, gdbarch.c: Regenerate.
4709
4710         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4711         name of the malloc function by NAME_OF_MALLOC.
4712
4713 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4714
4715         * value.h (find_function_in_inferior): Add const keyword to
4716         one of the parameters. Allows us to invoke this function with
4717         a const char *.
4718         * valops.c (find_function_in_inferior): Likewise.
4719
4720 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4721
4722         * exec.c (xfer_memory): Fix compilation warning with old versions
4723         of GCC.
4724         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4725
4726 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4727
4728         * symtab.h: Run through gdb_indent.h.
4729         Add 2002 to Copyright year list.
4730
4731 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4732
4733         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4734         mach constants.
4735         * MAINTAINERS: Add myself to write after approval list.
4736
4737 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4738
4739         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4740
4741 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4742
4743         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4744         Interix.
4745
4746 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4747
4748         * procfs.c (do_detach): Clear current signal, not just fault.
4749         Corrects problem with breakpoint trap signal leaking to detached
4750         process on Tru64.
4751
4752 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4753
4754         * buildsym.c (finish_block): Protect against null pointer.
4755
4756 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4757
4758         * infcmd.c (default_print_registers_info): Send all output to
4759         ``file'' instead of ``gdb_stdout''.
4760
4761 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4762
4763         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4764         LONGEST, and use signed register read (addresses are sign-
4765         extended for mips).
4766
4767 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4768
4769         * event-loop.c (gdb_do_one_event): Make public.
4770         * event-loop.h (gdb_do_one_event): Declare.
4771
4772 2002-09-10  Jeff Law  <law@redhat.com>
4773
4774         * infttrace.c (child_resume): Simplify and rework to avoid
4775         TT_PROC_CONTINUE.
4776
4777 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4778
4779         * printcmd.c (print_scalar_formatted): "len" is the number of
4780         target bytes, NOT the number of target bits.
4781
4782 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4783
4784         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4785         * top.c (init_main): Set rl_terminal_name.
4786
4787 2002-09-08  Aidan Skinner <aidan@velvet.net>
4788
4789         * ada-lang.c (ada_array_bound, ada_type_match,
4790         _initialize_ada_language): Fix K&R definitions.
4791         * ada-tasks.c (get_current_task): Fix K&R definitions.
4792         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4793                         
4794 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4795
4796         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4797         Add XP.
4798
4799 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4800
4801         * i386-tdep.c (i386_register_virtual_type,
4802         i386_register_convertible, i386_register_convert_to_virtual,
4803         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4804         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4805         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4806         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4807         Don't set push_arguments twice.
4808
4809         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4810         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4811         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4812         sigtramp_end to NULL.
4813         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4814         defines.
4815         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4816
4817         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4818         whitespace.
4819
4820         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4821         * gdbarch.h, gdbarch.c: Re-generate.
4822         * blockframe.c (find_pc_sect_partial_function): Convert to use
4823         SIGTRAMP_START_P predicate.
4824
4825 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4826
4827         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4828         generic_dummy_frame method and old method.  Also distinguish
4829         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4830         (arm_extract_return_value): Use new regcache method.
4831
4832         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4833         adjustment that doesn't conform to the ABI.
4834         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4835         saved regcache, not from current regcache.
4836
4837 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4838
4839         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4840         * README: Update.
4841
4842 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4843
4844         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4845         if arm_apcs_32 is false.
4846
4847 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4848
4849         GDB 5.3 branch created.
4850
4851 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4852
4853         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4854         generic_unwind_get_saved_register.
4855
4856 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4857
4858         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4859         argument (PR gdb/653).  Update call to smash_to_method_type.
4860         (read_structure_scope): Update call to dwarf2_add_member_fn.
4861
4862 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4863
4864         * x86-64-linux-tdep.c: Include gdb_string.h
4865         * x86-64-linux-nat.c: Ditto.
4866
4867 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4868
4869         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4870         when YYDEBUG is set to 1.  
4871         * c-exp.y: Likewise.
4872         * f-exp.y: Likewise.
4873         * jv-exp.y: Likewise.
4874         * m2-exp.y: Likewise.
4875         * p-exp.y: Likewise.
4876
4877 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4878
4879         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4880         dependency list.
4881         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4882         solib_svr4_fetch_link_map_offsets to
4883         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4884         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4885         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4886         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4887         solib-svr4.o, and solib-legacy.o.
4888         * config/i386/tm-nbsd.h: Include solib.h.
4889
4890 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4891
4892         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4893         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4894         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4895         comment noting that this needs its own target configuration.
4896         * config/i386/nbsd.mt: New file.
4897         * config/i386/nbsdaout.mt: Remove.
4898         * config/i386/nbsdelf.mt: Ditto.
4899         * config/i386/tm-nbsdaout.h: Ditto. 
4900
4901 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4902
4903         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4904         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4905         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4906         tdep->sigtramp_end.
4907         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4908         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4909         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4910
4911 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4912
4913         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4914         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4915         * i386-tdep.h (i386bsd_init_abi): New prototype.
4916         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4917         function declaration.
4918         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4919         for NetBSD-a.out or NetBSD-ELF.
4920         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4921         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4922         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4923         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4924         and nbsd-tdep.h.
4925         (i386nbsd_pc_in_sigtramp): New function.
4926         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4927         i386nbsd_pc_in_sigtramp.
4928         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4929         and i386nbsdelf_init_abi OS ABI handlers.
4930         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4931         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4932
4933 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4934
4935         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4936         registers if the target really has them.
4937
4938 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4939
4940         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4941         than nbsd-tdep.h.
4942
4943 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4944
4945         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4946         list.
4947         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4948         (alphanbsd_skip_sigtramp_frame): New functions. 
4949         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4950         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4951         to alphanbsd_sigcontext_addr. 
4952
4953 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4954
4955         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4956         list.
4957         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4958         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4959         nbsd_pc_in_sigtramp. 
4960         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4961         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4962         * nbsd-tdep.c: Include gdb_string.h.
4963         (nbsd_pc_in_sigtramp): New function. 
4964         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4965         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4966         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4967         ppcnbsd_pc_in_sigtramp. 
4968         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4969         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4970         shnbsd_pc_in_sigtramp. 
4971         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4972         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4973         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4974
4975 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4976
4977         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4978         watchpoints to NULL.
4979         (insert_breakpoints): set val field of watchpoints if NULL.
4980
4981
4982 2002-08-29  Jim Blandy  <jimb@redhat.com>
4983
4984         * symtab.c (lookup_symbol_aux): In the cases where we find a
4985         minimal symbol of an appropriate name and use its address to
4986         select a symtab to read and search, use `name' (as passed to us)
4987         as the demangled name when searching the symtab's global and
4988         static blocks, not the minsym's name.
4989
4990 2002-08-29  Keith Seitz  <keiths@redhat.com>
4991
4992         * stack.c (print_frame_info_base): Always set current_source_symtab
4993         and current_source_line.
4994
4995 2002-08-29  Donn Terry  <donnte@microsoft.com>
4996
4997         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4998
4999 2002-08-28  Keith Seitz  <keiths@redhat.com>
5000
5001         * stack.c (select_frame): Add FIXME concerning selected-frame
5002         events.
5003         (select_frame_command): Send selected-frame-level-changed
5004         event notification, but only if the level actually changed.
5005         (up_silently_base): Add selected-frame-level-changed event
5006         notification.
5007         (down_silently_base): Likewise.
5008
5009 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5010
5011         * Makefile.in: Update dependencies for all gdb/*.c files.
5012
5013 2002-08-27  Tom Tromey  <tromey@redhat.com>
5014
5015         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5016         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5017         Update dependencies.
5018         * i387-tdep.c: Include gdb_string.h.
5019         * osabi.c: Likewise.
5020         * i386-linux-nat.c: Likewise.
5021         * lin-lwp.c: Likewise.
5022         * ax-gdb.c: Likewise.
5023         * signals/signals.c: Likewise.
5024         * jv-valprint.c: Likewise.
5025         * p-lang.c: Likewise.
5026         * c-valprint.c: Likewise.
5027         * cp-abi.c: Likewise.
5028
5029 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5030
5031         * cli/cli-script.h (copy_command_lines): Export.
5032         * breakpoint.c: Include cli/cli-script.h.
5033         * Makefile.in (breakpoint.o): Update dependencies.
5034
5035 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5036
5037         * breakpoint.c (insert_breakpoints): Protect all references
5038         to 'process_warning'.  Shorten long lines.
5039
5040 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5041
5042         * cli/cli-script.c (copy_command_lines): New function.
5043         * defs.h (copy_command_lines): Export.
5044         * testsuite/gdb.base/commands.exp: New tests for commands
5045         attached to a temporary breakpoint, and for commands that
5046         delete the breakpoint they are attached to.
5047         
5048 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5049
5050         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5051         pointer to the breakpoint commands struct, make a new copy
5052         of the struct and point to that.
5053         (bpstat_clear): Free the commands struct.
5054         (bpstat_clear_actions): Free the commands struct.
5055         (bpstat_do_actions): Free the command actions.  Also execute
5056         the local cleanups, instead of deleting them.
5057         (delete_breakpoint): Leave the commands field of the bpstat
5058         chain alone -- it will be freed later.
5059
5060 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5061
5062         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5063         deleted in 2002-08-20 commit.  This function is still used by
5064         ppc-linux-nat.c.
5065
5066 2002-08-26  Keith Seitz  <keiths@redhat.com>
5067
5068         * gdb-events.sh: Add selected-frame-level-changed event.
5069         * gdb-events.c: Regenerated.
5070         * gdb-events.h: Regenerated.
5071         
5072 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5073
5074         Fix PR gdb/393:
5075         * inflow.c (terminal_save_ours): New function to save terminal
5076         settings.
5077         * inferior.h (terminal_save_ours): Declare.
5078         * target.c (debug_to_terminal_save_ours): New function.
5079         (cleanup_target): Defaults to_terminal_save_ours.
5080         (update_current_target): Inherit to_terminal_save_ours.
5081         (setup_target_debug): Set to_terminal_save_ours.
5082         * target.h (target_terminal_save_ours): New to save terminal settings.
5083         (target_ops): New member to_terminal_save_ours.
5084         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5085         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5086         * inftarg.c (init_child_ops): Likewise.
5087         * m3-nat.c (init_m3_ops): Likewise.
5088         * procfs.c (init_procfs_ops): Likewise.
5089         * wince.c (init_child_ops): Likewise.
5090         * win32-nat.c (init_child_ops): Likewise.
5091         * sol-thread.c (init_sol_thread_ops): Likewise.
5092
5093 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5094
5095         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5096         use regcache_* functions.
5097         (i386_gdbarch_init): Set store_return_value instead of
5098         deprecated_store_return_value.
5099
5100         * regcache.c (regcache_raw_write_signed,
5101         regcache_raw_write_unsigned): New functions.
5102         * regcache.h (regcache_raw_write_signed,
5103         regcache_raw_write_unsigned): New prototypes.
5104
5105 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5106
5107         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5108         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5109         source file dependencies.  Cleanup corresponding generator rules.
5110
5111 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5112
5113         * regcache.h (register_offset_hack): Declare.
5114         (regcache_cooked_read_using_offset_hack): Declare.
5115         (regcache_cooked_write_using_offset_hack): Declare.
5116
5117         * regcache.c (register_offset_hack): New function.
5118         (regcache_cooked_read_using_offset_hack): New function.
5119         (regcache_cooked_write_using_offset_hack): New function.
5120         (regcache_dump): Check that the registers, according to their
5121         offset, are packed hard against each other.
5122         (cooked_xfer_using_offset_hack): New function.
5123
5124 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5125
5126         * regcache.c (struct regcache_descr): Add field register_type.
5127         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5128         in as a parameter
5129         (init_regcache_descr): Initialize register_type.  Pass the descr
5130         to init_legacy_regcache_descr.  Use register_type instead of
5131         REGISTER_VIRTUAL_TYPE.
5132         (register_type): New function.
5133         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5134         * regcache.h (register_type): Declare.
5135
5136 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5137
5138         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5139         instead of deprecated_store_return_value.  Fix fallout from
5140         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5141
5142 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5143
5144         * regcache.c (max_register_size): New function.
5145         (init_legacy_regcache_descr): Ensure that max_register_size is
5146         large enough for REGISTER_VIRTUAL_SIZE.
5147         * regcache.h (max_register_size): Declare.
5148
5149 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5150
5151         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5152         store_return_value.
5153         (e500_extract_return_value): Change type of valbuf pointer to
5154         void.
5155
5156 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5157
5158         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5159         workaround.
5160
5161         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5162         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5163         long long) to prevent compiler warning on 64-bit systems.
5164
5165 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5166
5167         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5168         (DEPRECATED_STORE_RETURN_VALUE): New method.
5169         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5170         * gdbarch.h, gdbarch.c: Re-generate.
5171
5172         * values.c (set_return_value): Pass current_regcache to
5173         STORE_RETURN_VALUE.
5174         * arch-utils.h (legacy_store_return_value): Declare.
5175         * arch-utils.c (legacy_store_return_value): New function.
5176         (legacy_extract_return_value): Update parameters.
5177
5178         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5179         STORE_RETURN_VALUE.
5180         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5181         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5182         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5183         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5184         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5185         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5186         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5187         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5188         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5189         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5190
5191         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5192         * i386-tdep.c (i386_extract_return_value): Update.
5193         * arch-utils.c (legacy_extract_return_value): Update.
5194         * frv-tdep.c (frv_gdbarch_init): Update.
5195         * cris-tdep.c (cris_gdbarch_init): Update.
5196         * d10v-tdep.c (d10v_gdbarch_init): Update.
5197         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5198         * m68k-tdep.c (m68k_gdbarch_init): Update.
5199         * mcore-tdep.c (mcore_gdbarch_init): Update.
5200         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5201         * s390-tdep.c (s390_gdbarch_init): Update.
5202         * sparc-tdep.c (sparc_gdbarch_init): Update.
5203         * sh-tdep.c (sh_gdbarch_init): Update.
5204         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5205         * v850-tdep.c (v850_gdbarch_init): Update.
5206         * avr-tdep.c (avr_gdbarch_init): Update.
5207         * ia64-tdep.c (ia64_gdbarch_init): Update.
5208         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5209         * vax-tdep.c (vax_gdbarch_init): Update.
5210         * alpha-tdep.c (alpha_gdbarch_init): Update.
5211         * arm-tdep.c (arm_gdbarch_init): Update.
5212         * mips-tdep.c (mips_gdbarch_init): Update.
5213         * i386-tdep.c (i386_gdbarch_init): Update.
5214
5215 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5216
5217         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5218         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5219
5220 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5221
5222         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5223         problems.
5224
5225 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5226
5227         * infrun.c (handle_inferior_event): Move a comment outside of a
5228         function call, in order to avoid indent reformatting this part
5229         of the code in an unreadable way.
5230
5231 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5232
5233         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5234         when breakpoints fail. Move general breakpoint error messages to
5235         insert_breakpoints.  
5236         * breakpoint.c (insert_breakpoints): Change warnings when
5237         breakpoints are nto inserted to specify the type. Remove call to
5238         memory_error when hardware breakpoints can't be inserted. Remove
5239         multiple calls to warning so all messages are sent to the user at
5240         once.
5241         (delete_breakpoints): Make insert error messsages more explicit.
5242
5243 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5244
5245         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5246         gdbserver/ChangeLog.
5247
5248 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5249
5250         * i386-tdep.c: Include "objfiles.h".
5251         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5252         skip_trampoline_code.
5253         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5254         (CPLUS_MARKER): Define to '.'.
5255
5256         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5257         member.
5258         (linux_corefile_thread_callback): Increase args->num_notes.
5259         (linux_make_note_section): Initialize thread_args.num_notes, and
5260         use it to determine whether notes for any threads were created.
5261
5262 2002-08-23  Donn Terry  <donnte@microsoft.com>
5263
5264         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5265         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5266         and PCUNKILL.
5267         (write_with_trace): Conditionalize out the switch branch handling
5268         PCSHOLD if the corresponding macro is not defined. Likewise for
5269         PRSABORT and PRSTOP.
5270         This change will be needed by the Interix port.
5271
5272 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5273
5274         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5275         write_register wherever possible instead of manipulating the
5276         register bytes directly.
5277         Assign VALUE_CONTENTS to a variable and use that.
5278         The GPR numbers are now dependent on the architecture.
5279         
5280 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5281
5282         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5283         ev_offset fields.
5284         (skip_prologue): Add support for BookE/e500 instructions.
5285         (e500_extract_return_value): New function.
5286         (frame_get_saved_regs): Add support for saving ev registers and
5287         pseudo gpr's.
5288         (e500_store_return_value): New function.
5289         (rs6000_gdbarch_init): Move up default intializations of
5290         deprecated_extract_return_value and store_return_value.  Overwrite
5291         init of store_return_value with e500 specific version.
5292         Set extract_return_value for e500.
5293         
5294 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5295
5296         * blockframe.c (generic_call_dummy_register_unwind): Use
5297         regcache_cooked_read to catch cases in which the variable is
5298         stored in a pseudo register.
5299
5300 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5301
5302         * NEWS: Mention that the i960 has been made obsolete.
5303         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5304         i960-tdep.c
5305         (remote-nrom.o): Obsolete target.
5306         (remote-nindy.o, i960-tdep.o): Ditto.
5307         * remote-nrom.c: Make file obsolete.
5308         * remote-nindy.c, remote-vx960.c: Ditto.
5309         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5310         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5311         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5312         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5313         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5314         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5315         i960-*-vxworks* obsolete.
5316         * MAINTAINERS: Note that the i960 is obsolete.
5317
5318 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5319
5320         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5321         detach to allow reinitialization.
5322
5323 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5324
5325         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5326         attempt).
5327
5328 2002-08-22  Jim Blandy  <jimb@redhat.com>
5329
5330         * coffread.c (coff_symfile_read): Don't try to read the line
5331         number table from disk if the image file doesn't have a symbol
5332         table; we'll never actually look at the info anyway, and Windows
5333         ships DLL's with bogus file offsets for the line number data.
5334
5335 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5336
5337         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5338         an e500 executable.
5339
5340 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5341
5342         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5343         (MSYMBOL_SIZE): Replace macro with function.
5344         (DEFAULT_MIPS_TYPE): Delete unused macro.
5345         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5346         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5347
5348 2002-08-21  Jim Blandy  <jimb@redhat.com>
5349
5350         * valops.c (value_cast): Simplify and correct logic for doing a
5351         static cast from a pointer to a base class to a pointer to a
5352         derived class.
5353
5354 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5355
5356         * infcmd.c (default_print_registers_info): Replace
5357         do_registers_info.
5358         (registers_info): Use gdbarch_print_registers_info instead of
5359         DO_REGISTERS_INFO.
5360         * inferior.h (default_print_registers_info): Replace
5361         do_registers_info.
5362         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5363         (DO_REGISTERS_INFO): Change to a predicate function.
5364         * gdbarch.h, gdbarch.c: Regenerate.
5365         
5366 2002-08-21  Keith Seitz  <keiths@redhat.com>
5367
5368         * gdb-events.sh: Add target-changed event.
5369         * gdb-events.c: Regenerated.
5370         * gdb-events.c: Regenerated.
5371         * valops.c (value_assign): Add target-changed event notification
5372         to inlval_register, lval_memory, and lval_reg_frame_relative.
5373
5374 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5375
5376         * NEWS: Add an entry regarding the improvement of the next/step
5377         operation on Alpha Tru64 multi-processor machines.
5378
5379 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5380
5381         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5382         directores.
5383         * Makefile.in: Update all _h macro definitions.
5384         * Makefile.in (install-gdbtk): Move to install section.
5385         (rdi-share/libangsd.a): Move to end of file.
5386
5387 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5388
5389         * frame.c (frame_register_unwind): When a register, set addrp to
5390         the register's byte.
5391
5392 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5393
5394         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5395         used locally, so move them from the target machine header to here.
5396         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5397         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5398         Make static.
5399         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5400
5401 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5402
5403         * NEWS: Mention that the Apollo line was made obsolete.
5404         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5405         m68*-hp-hpux* obsolete.
5406         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5407         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5408         * buildsym.c (make_blockvector): Make static.
5409         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5410         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5411         (ALLDEPFILES): Remove dstread.c.
5412         (dstread.o): Obsolete make rule.
5413         * dstread.c: Makefile obsolete.
5414         * dst.h: Ditto.
5415         * config/m68k/hp300hpux.mt: Ditto.
5416         * config/m68k/hp300hpux.mh: Ditto.
5417         * config/m68k/hp300bsd.mt: Ditto.
5418         * config/m68k/hp300bsd.mh: Ditto.
5419         * config/m68k/apollo68b.mt: Ditto.
5420         * config/m68k/apollo68v.mh: Ditto.
5421         * config/m68k/apollo68b.mh: Ditto.
5422
5423 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5424
5425         * mips-tdep.c (mips_in_return_stub): Make static.
5426         (mips_gdbarch_init): Set in_solib_return_trampoline.
5427         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5428
5429 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5430
5431         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5432         * gdbarch.c, gdbarch.h: Regenerate.
5433         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5434         Add.
5435         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5436
5437 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5438
5439         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5440         (mips_gdbarch_init): Set skip_trampoline_code, 
5441         in_solib_call_trampoline.
5442         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5443         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5444
5445 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5446
5447         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5448
5449         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5450         vector type for ev registers.
5451         (e500_pseudo_register_read): New function.
5452         (e500_pseudo_register_write): New function.
5453         (e500_dwarf2_reg_to_regnum): New function.
5454         (PPC_UISA_NOFP_SPRS): New macro.
5455         (PPC_EV_REGS): New macro.
5456         (PPC_GPRS_PSEUDO_REGS): New macro.
5457         (registers_e500): New register set for e500.
5458         (variants): Add e500 variant.
5459         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5460         before setting architectural dependent variations.  Initialize ev
5461         registers numbers.  Add case for e500 architecture.  Set the
5462         number of pseudo registers.
5463
5464 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5465
5466         * rs6000-tdep.c: Clean up comments.
5467
5468 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5469
5470         * h8300-tdep.c: Re-indent file.
5471
5472 2002-08-20  Jim Blandy  <jimb@redhat.com>
5473
5474         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5475         default for this.
5476
5477 2002-08-20  Keith Seitz  <keiths@redhat.com>
5478
5479         * breakpoints.c (watch_command_1): Use internal breakpoint
5480         when setting a watchpoint_scope breakpoint.
5481
5482 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5483
5484         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5485         (build_builtin_type_vec64i): Ditto.
5486         (build_builtin_type_vec128): Ditto.
5487         (build_builtin_type_vec128i): Ditto.
5488
5489 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5490
5491         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5492         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5493         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5494         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5495         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5496         CALL_DUMMY_ADDRESS): Delete.
5497         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5498         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5499         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5500         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5501         push_return_address.
5502         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5503         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5504         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5505         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5506         mips_n32n64_push_arguments, mips_push_return_address,
5507         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5508         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5509
5510 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5511
5512         * mips-tdep.c (mips_frame_num_args): New function.
5513         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5514         frame_saved_pc, frame_args_address, frame_locals_address, 
5515         frame_num_args, and frame_args_skip.
5516         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5517         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5518         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5519         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5520
5521 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5522
5523         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5524         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5525         * mips-tdep.c (mips_store_struct_return): New function.
5526         (mips_extract_struct_value_address): New function.
5527         (mips_gdbarch_init): Set store_struct_return and
5528         extract_struct_value_address.
5529
5530 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5531
5532         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5533         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5534         (read_file_scope): Check that line_header is nonzero before
5535         decoding macro information.
5536
5537 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5538
5539         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5540         flag the general-purpose registers as floating-point on targets
5541         that don't support the floating-point registers.
5542
5543 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5544
5545         * rs6000-tdep.c (altivec_register_p): Delete.
5546         (rs6000_do_altivec_registers): Delete.
5547         (rs6000_altivec_registers_info): Delete.
5548         (rs6000_do_registers_info): Delete.
5549         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5550         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5551
5552 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5553
5554         * infcmd.c (do_registers_info): Print vector registers in hex
5555         format only.
5556         (print_vector_info): Check that printing registers
5557         makes sense.
5558         (print_float_info): Ditto.
5559
5560 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5561
5562         * mips-tdep.c (mips_gdbarch_init): Update.
5563         (mips_o32_extract_return_value): Rewrite.
5564         (mips_o32_store_return_value): Rewrite.
5565         (mips_o32_xfer_return_value): New function.
5566         (mips_xfer_register): Tweak debug print message.  Allow for
5567         buf_offset when dumping the value transfered.
5568
5569 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5570
5571         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5572         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5573         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5574         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5575         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5576
5577 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5578
5579         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5580
5581 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5582
5583         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5584         register.
5585         (P): New macro to define a register as a pseudo register.
5586         (R, R4, R8, R16, FR32, R64, R0): Updated.
5587         (struct variant): Add new fields for number of pseudo registers
5588         and number of total registers.
5589         (tot_num_registers): New macro replacing....
5590         (num_registers): ...deleted macro.
5591         (num_registers): New function.
5592         (num_pseudo_registers): New function.
5593         (variants): Update all variants to intialize new fields correctly.
5594         Postpone initialization of number of pseudo regs and real regs.
5595         (init_variants): New function.
5596         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5597         registers offsets.
5598
5599 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5600
5601         * valops.c (search_struct_field): Change error message to treat
5602         return value of 0 from value_static_field as meaning that field is
5603         optimized out.
5604         (value_struct_elt_for_reference): Ditto.
5605         * values.c (value_static_field): Treat an unresolved location the
5606         same as a nonexistent symbol.  Fix PR gdb/635.
5607         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5608         enclosed.  Fix PR gdb/574.
5609         * MAINTAINERS: Add self to Write After Approval list.
5610
5611 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5612
5613         * mips-tdep.c (mips_xfer_register): New function.
5614         (mips_n32n64_extract_return_value): Rewrite.
5615         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5616         instead of deprecated_extract_return_value.
5617
5618 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5619
5620         * rs6000-tdep.c (TDEP): Delete macro.
5621         (branch_dest): Replace use of TDEP macro with its body.
5622         (rs6000_pop_frame): Ditto.
5623         (rs6000_push_arguments): Ditto.
5624         (rs6000_skip_trampoline_code): Ditto.
5625         (rs6000_frame_saved_pc): Ditto.
5626         (rs6000_frame_chain): Ditto.
5627         (rs6000_register_name): Ditto.
5628         (rs6000_register_byte): Ditto.
5629         (rs6000_register_raw_size): Ditto.
5630         (rs6000_register_virtual_type): Ditto.
5631         (rs6000_register_convertible): Ditto.
5632         (rs6000_convert_from_func_ptr_addr): Ditto.
5633
5634 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5635
5636         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5637         conditionally.
5638         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5639         MIPS_LINUX_JB_ELEMENT_SIZE.
5640         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5641         for MAX_REGISTER_RAW_SIZE arrays.
5642         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5643         MIPS_LINUX_JB_ELEMENT_SIZE.
5644
5645 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5646
5647         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5648
5649 2002-08-19  Aidan Skinner <aidan@velvet.net>
5650
5651         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5652         ada-valprint.c ada-tasks.c.
5653         (YYFILES): Add ada-exp.y.
5654         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5655         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5656         (ada-exp.tab.o): New target.
5657                 
5658 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5659
5660         * regcache.c (regcache_xfer_part): New function.
5661         (regcache_raw_read_part): New function.
5662         (regcache_raw_write_part): New function.
5663         (regcache_cooked_read_part): New function.
5664         (regcache_cooked_write_part): New function.
5665         * regcache.h (regcache_raw_read_part): Declare.
5666         (regcache_raw_write_part): Declare.
5667         (regcache_cooked_read_part): Declare.
5668         (regcache_cooked_write_part): Declare.
5669
5670 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5671
5672         * remote.c (remote_open_1): Add async_p.
5673         (remote_async_open_1): Delete.
5674         (open_remote_target): Delete.
5675         (remote_open, extended_remote_open): Update calls to remote_open_1.
5676         (remote_async_open, extended_remote_async_open): Call
5677         remote_open_1 instead of remote_async_open_1.
5678
5679 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5680
5681         * blockframe.c: Fix a few coding standard violations.
5682
5683 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5684
5685         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5686         here from ...
5687         * config/i386/tm-i386sco5.h: ... here.  File removed.
5688         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5689
5690         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5691         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5692         (TM_FILE): Set to tm-i386.h.
5693         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5694         * config/i386/tm-i386v.h: Remove file.
5695         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5696         instead of "i386/tm-i386v.h".
5697         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5698         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5699         "i386/tm-i386v.h".
5700         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5701         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5702         "i386/tm-i386.h".
5703
5704 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5705
5706         * config/i386/nm-i386v.h: Add protection against
5707         multiple-inclusion.
5708         (i386_register_u_addr): Remove prototype.
5709         (register_u_addr): New prototype.
5710         (REGISTER_U_ADDR): Redefine accordingly.
5711         * i386v-nat.c: Improve several comments.
5712         (i386_register_u_addr): Change signature and rename to
5713         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5714         ubase variable.
5715
5716 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5717
5718         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5719         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5720         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5721         deprecated_extract_return_value.
5722         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5723         rename mips_o32o64_push_arguments.
5724         (mips_gdbarch_init): Update.
5725         (mips_extract_return_value): Delete.
5726         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5727         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5728         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5729         (mips_n32n64_extract_return_value): Clone
5730         mips_extract_return_value.
5731         (mips_store_return_value): Delete.
5732         (mips_o32_store_return_value): Clone mips_store_return_value.
5733         (mips_o64_store_return_value): Clone mips_store_return_value.
5734         (mips_eabi_store_return_value): Clone mips_store_return_value.
5735         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5736
5737 2002-08-18  Aidan Skinner <aidan@velvet.net>
5738
5739         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5740         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5741                 
5742 2002-08-18  Aidan Skinner <aidan@velvet.net>
5743
5744         * ada-lang.c: Run through gdb_indent.sh.
5745         * ada-lang.h: Run through gdb_indent.sh.
5746         * ada-tasks.c: Run through gdb_indent.sh.
5747         * ada-typeprint.c: Run through gdb_indent.sh.
5748         * ada-valprint.c: Run through gdb_indent.sh.
5749
5750 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5751
5752         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5753         ABI.
5754
5755 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5756
5757         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5758
5759         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5760         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5761
5762         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5763         write_register_gen instead of write_register_bytes.
5764
5765         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5766         i[3456]-*-osf1mk* configurations have been made obsolete.
5767         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5768         i[3456]86-*-osf1mk* hosts obsolete.
5769         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5770         targets obsolete.
5771         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5772         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5773         config/i386/i386m3.mt, config/i386/nm-m3.h,
5774         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5775         config/i386/i386mk.mh, config/i386/i386mk.mt,
5776         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5777         obsolete.
5778         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5779         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5780         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5781
5782 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5783
5784         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5785         (hppa_value_returned_from_stack): Declare.
5786         (hppa_extract_return_value): Declare.
5787         * config/pa/hppa.mt: New file.
5788         * configure.tgt: Recognize hppa*-*-*.
5789         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5790
5791 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5792
5793         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5794         comment.
5795
5796 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5797
5798         * top.c (gdb_rl_operate_and_get_next): Make sure
5799         operate-and-get-next functions correctly even when the history
5800         list is completely filled.
5801
5802 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5803
5804         * MAINTAINERS (Target Instruction Set Architectures): Rename
5805         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5806         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5807         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5808         already listed under Host/Native.
5809
5810         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5811         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5812         mips*-*-*.
5813
5814 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5815
5816         * config/ia64/ia64.mt: New file.
5817         * config/alpha/alpha.mt: New file.
5818         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5819         ia64-linux-gnu.  Mention that ia64-elf is broken.
5820         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5821
5822 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5823
5824         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5825         generic_func_frame_valid instead of func_frame_valid.
5826
5827 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5828
5829         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5830         procfs appears to be broken when debugging on multi-processor
5831         machines. So enable software single stepping in order to avoid
5832         using the procfs interface to do next/step operations, using
5833         internal breakpoints instead.
5834
5835         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5836         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5837         make this pc address equal to the value it would have if the
5838         system stepping capability was used. Also set a new flag used
5839         to ensure that we don't readjust the PC one more time later.
5840
5841         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5842         address by DECR_PC_AFTER_BREAK when software single step is
5843         in use for this architecture, as this has already been taken
5844         care of in handle_inferior_event().
5845
5846 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5847
5848         * infrun.c (handle_inferior_event): Minor reformatting, to make
5849         a rather long condition expression easier to read.
5850
5851 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5852
5853         * Makefile.in (gdbtk.o): Move to end of file.
5854         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5855         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5856         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5857         (gdbtk-wrapper.o, gdbres.o): Ditto.
5858
5859 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5860
5861         * Makefile.in (copying.o): Separate out compile rule.
5862         (hpux-thread.o, procfs.o, signals.o): Ditto.
5863         (v850ice.o, z8k-tdep.o): Ditto.
5864         (tui-file.o): Move to TUI section.
5865         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5866         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5867
5868 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5869
5870         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5871         skip_trampoline_code, for better namespace-proofing.   
5872
5873         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5874
5875 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5876
5877         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5878
5879 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5880
5881         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5882         signal, check whether we hit a breakpoint before checking for a
5883         single step breakpoint. Otherwise, GDB fails to notice that a
5884         breakpoint has been hit when stepping onto a breakpoint.
5885
5886 2002-08-16  Keith Seitz  <keiths@redhat.com>
5887
5888         * gdb-events.sh (clear_gdb_event_hooks): New function.
5889         * gdb-events.c: Regenerate.
5890         * gdb-events.h: Regenerate.
5891
5892 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5893
5894         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5895         not_a_sw_breakpoint.
5896         * breakpoint.h (bpstat_stop_status): Add parameter names.
5897
5898 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5899
5900         * remote.c (remote_insert_hw_breakpoint)
5901         (remote_remove_hw_breakpoint): Fix calculation of length field
5902         for Z-packet.
5903
5904 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5905
5906         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5907         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5908         (supply_fpregset): Ditto.
5909         
5910         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5911         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5912         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5913         (TARGET_READ_SP): Delete.
5914         (DO_REGISTERS_INFO): Delete.
5915         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5916         Delete.
5917         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5918         from macros to functions.
5919
5920         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5921         (mips_register_convertible, mips_register_convert_to_virtual,
5922         mips_register_convert_to_raw): Make static.
5923         (mips_read_sp): New function.
5924         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5925         (mips_do_registers_info): Make static.
5926         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5927         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5928         (mips_register_convert_from_type, mips_register_convert_to_type):
5929         New functions.
5930         (mips_gdbarch_init): Set up function_start_offset, 
5931         register_virtual_size, pc_in_sigtramp.
5932
5933 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5934
5935         * infcmd.c (vector_info): New function.
5936         (_initialize_infcmd): Add command "info vector".
5937         (print_vector_info): New function.
5938
5939         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5940         * gdbarch.h, gdbarch.c: Regenerate.
5941
5942 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5943
5944         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5945         ``print_all''.  Only print vector registers when ``print_all''.
5946
5947 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5948
5949         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5950         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5951
5952         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5953         Add `args' parameter.
5954         * gdbarch.h, gdbarch.c: Regenerate.
5955         
5956         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5957         
5958         * infcmd.c (float_info): Call print_float_info.
5959         (print_float_info): New function.  By default, print the
5960         floating-point registers.
5961
5962         * arch-utils.h (default_print_float_info): Delete declaration.
5963         * arch-utils.c (default_print_float_info): Delete function.
5964         
5965 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5966
5967         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5968         out define.
5969
5970         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5971         FRAME.
5972
5973         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5974         * configure.host: Make i[3456]86-*-aix host obsolete.
5975         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5976         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5977         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5978         config/i386/xm-i386aix.h: Make files obsolete.
5979         * i386aix-nat.c: Make file obsolete.
5980         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5981         (i386aix-nat.o): Make target obsolete.
5982
5983         * config/i386/nm-gnu.h: Removed.
5984         * config/i386/nm-i386gnu.h: New file.
5985         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5986         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5987         Moved here from ...
5988         * config/i386/tm-i386gnu.h: ... here.  Removed.
5989         * config/i386/xm-i386gnu.h: Removed.
5990         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5991         (NAT_FILE): Set to nm-i386gnu.h.
5992         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5993         * i386-tdep.c: New file.
5994         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5995         (i386gnu-tdep.o): Specify dependencies.
5996
5997 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5998
5999         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6000         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6001         Adjust a few comments to reflect reality a bit closer.
6002         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6003         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6004         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6005         target_insert_watchpoint, target_remove_watchpoint):
6006         Move defines to ...
6007         * config/i386/nm-i386sco5.h: ... here.
6008         (kernel_u_size): Add prototype.  Improve a few comments and add
6009         protection against multiple inclusion.
6010         
6011         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6012         out define.
6013
6014         * uw-thread.c (SP_ARG0): Define if not already defined.
6015         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6016
6017         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6018
6019         * config/i386/tm-i386.h: Don't include "regcache.h".
6020
6021         * i387-tdep.h (i387_print_float_info): New prototype.
6022         * i387-tdep.c (print_i387_value, print_i387_ext,
6023         print_i387_status_word, print_i387_control_word): Add `struct
6024         ui_file *' argument and use it for output.
6025         (i387_print_float_info): Renamed from i387_float_info.  Add
6026         `struct gdbarch *' and `struct ui_file *' arguments and use the
6027         latter for output.
6028         * i386-tdep.c: Include "i387-tdep.h".
6029         (i386_gdbarch_init): Set print_float_info.
6030         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6031         (FLOAT_INFO): Remove define.
6032
6033 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6034
6035         * mips-tdep.c (mips_push_arguments): Rename to
6036         mips_eabi_push_arguments, and tune for EABI.
6037         (MIPS_REGS_HAVE_HOME_P): Delete.
6038         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6039         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6040         Delete references to mips_regs_have_home_p.
6041
6042 2002-08-14  Keith Seitz  <keiths@redhat.com>
6043
6044         * Makefile.in (install-gdbtk): Create insight plugin directory.
6045         Install plugins.tcl file.
6046
6047 2002-08-14  Keith Seitz  <keiths@redhat.com>
6048
6049         * configure.in: Move SUBDIRS to near top of the file so that
6050         --enable options may add things to it.
6051         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6052         * configure: Regenerate.
6053
6054 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6055
6056         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6057         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6058         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6059
6060 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6061
6062         * vax-tdep.c (vax_get_saved_register): Delete function.
6063         (vax_gdbarch_init): Update.
6064         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6065         (ns32k_gdbarch_init): Update.
6066         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6067         (alpha_gdbarch_init): Update.
6068
6069 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6070
6071         * regcache.c (init_regcache_descr): Overallocate the
6072         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6073         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6074         nr_raw_registers.
6075         (set_register_cached): Add range checking assertions.  Use
6076         current_regcache.
6077
6078 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6079
6080         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6081         numbers for MMX registers.
6082
6083 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6084
6085         * i386-tdep.c (i386_gdbarch_init): Use
6086         generic_unwind_get_saved_register.
6087
6088 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6089
6090         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6091         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6092         target vector.
6093         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6094         Delete.  Add comment regarding this now-deleted target method.
6095
6096 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6097
6098         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6099         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6100         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6101         real PC and the page number (if it's within the memory bank window).
6102         (m68hc11_pseudo_register_write): Likewise when saving.
6103         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6104         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6105         (m68hc11_register_raw_size): And use 32-bit for it.
6106         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6107         16K memory bank is used by the prog; also use the virtual pc.
6108
6109 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6110
6111         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6112         (m68hc11_gdbarch_init): Install it in gdbarch.
6113         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6114         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6115         (MSYMBOL_SIZE): New for documentation.
6116         (insn_return_kind): Enum to specify how a function returns.
6117         (frame_extra_info): Cleanup and record the return mode.
6118         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6119         register in address computation.
6120         (m68hc11_get_return_insn): New to obtain the return instruction used
6121         by the function.
6122         (m68hc11_frame_init_saved_regs): Take into account the return
6123         instruction used by the function for far and interrupt functions.
6124         (m68hc11_init_extra_frame_info): Take into account page register.
6125         (m68hc11_frame_args_address): Adjust according to the return mode.
6126         (show_regs): Print page register only when it's used.
6127
6128 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6129
6130         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6131         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6132         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6133         registers.
6134         (m68hc11_register_raw_size): Likewise.
6135
6136 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6137
6138         * i386-tdep.c (i386_register_name): Handle mmx registers.
6139         (mmx_regnum_p): New function.
6140         (i386_mmx_names): New array.
6141         (mmx_num_regs): New variable.
6142         (i386_pseudo_register_read): New function.
6143         (i386_pseudo_register_write): New function.
6144         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6145
6146         * regcache.c (regcache_raw_read_unsigned): New function.
6147         (regcache_raw_read_signed): New function.
6148         * regcache.h (regcache_raw_read_unsigned): Declare.
6149         (regcache_raw_read_signed): Declare.
6150
6151 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6152
6153         * regcache.c (regcache_raw_read_as_address): Delete function.
6154         (regcache_cooked_read_signed): New function.
6155         (regcache_cooked_read_unsigned): New function.
6156         * regcache.h (regcache_cooked_read_signed): Declare.
6157         (regcache_cooked_read_unsigned): Declare.
6158         (regcache_raw_read_as_address): Delete declaration.
6159
6160         * blockframe.c (generic_read_register_dummy): Use
6161         regcache_cooked_read_unsigned.
6162         * i386-tdep.c (i386_extract_struct_value_address): Use
6163         regcache_cooked_read_unsigned.
6164
6165 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6166
6167         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6168         double sizes according to ELF ABI flags.
6169         (gdbarch_tdep): Record elf_flags.
6170
6171 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6172
6173         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6174         (m6812_prolog): They can appear in 68HC12 function prologue.
6175         (m68hc11_frame_chain): Cleanup.
6176
6177 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6178
6179         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6180         declarations.
6181         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6182         (i386_linux_register_raw_size): Delete function.
6183         (i386_linux_init_abi): Update.
6184         * i386-tdep.c (i386_register_raw_size): Delete function.
6185         (i386_register_byte): Delete function.
6186         (i386_gdbarch_init): Update.
6187         (i386_register_size): Delete array.
6188         (i386_register_offset): Delete array.
6189
6190         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6191         (REGISTER_RAW_SIZE): Delete macro.
6192         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6193         (REGISTER_BYTE): Delete macro.
6194
6195 2002-08-11  Aidan Skinner <aidan@velvet.net>
6196
6197         * ada-lang.c (ada_lookup_partial_symbol)
6198         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6199         prototype names so that grep ^func works properly.
6200
6201         * ada-lang.c (ada_array_element_type)
6202         (ada_lookup_partial_symbol): Fix typos in parameter list.
6203
6204         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6205         Fix prototype names so that grep ^func works properly.
6206         
6207 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6208             Elena Zannoni  <ezannoni@redhat.com>
6209             Martin M. Hunt  <hunt@redhat.com>
6210
6211         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6212         (build_builtin_type_vec128i): Set the vector bit.
6213         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6214         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6215         (build_builtin_type_vec64): New function.
6216         (build_builtin_type_vec64i): New function.
6217         (build_gdbtypes): Initialize builtin_type_vec64 and
6218         builtin_type_vec64i.
6219
6220 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6221
6222         * regcache.c (regcache_dump): Compare the register offset
6223         with REGISTER_BYTE.
6224         * arch-utils.c (generic_register_byte): New function.
6225         * arch-utils.h (generic_register_byte): Declare.
6226         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6227         * gdbarch.h, gdbarch.c: Regenerate.
6228
6229 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6230
6231         * regcache.c: Include "gdbcmd.h"
6232         (_initialize_regcache): Add commands "maintenance print
6233         registers", "maintenance print raw-registers" and "maintenance
6234         print cooked-registers".
6235         (enum regcache_dump_what): Define.
6236         (dump_endian_bytes): New function.
6237         (regcache_dump): New function.
6238         (regcache_print): New function.
6239         (maintenance_print_registers): New function.
6240         (maintenance_print_raw_registers): New function.
6241         (maintenance_print_cooked_registers): New function.
6242         * Makefile.in (regcache.o): Update dependencies.
6243
6244 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6245
6246         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6247         (mips_push_arguments): Correct some comments.  Use paddr_nz
6248         for printing addresses in debug output.  Replace static
6249         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6250         (mips_n32n64_push_arguments): New function, cloned from
6251         mips_push_arguments and tuned for the n32/n64 ABI.
6252         (mips_push_register): Buffer needs dynamic allocation.
6253         (mips_print_register): Ditto.
6254         (do_gp_register_row): Ditto.
6255         (mips_store_return_value): Ditto.
6256         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6257
6258 2002-08-09  Don Howard  <dhoward@redhat.com>
6259
6260         * memattr.c (mem_info_command): Print special case of upper bound
6261         as max CORE_ADDR + 1.
6262
6263 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6264
6265         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6266         returns structs by ref if they're too big to fit in two registers.
6267
6268 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6269
6270         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6271         saved regs value.
6272         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6273         mips_find_saved_regs().
6274         (mips_pop_frame): Likewise.
6275
6276 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6277
6278         * blockframe.c (frame_saved_regs_register_unwind): Revise
6279         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6280         frames are in use.
6281
6282 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6283         
6284         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6285         T-packets; the 'a' is not taken as a register number.
6286         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6287         (remote_stopped_data_address): New functions; add to target
6288         vector.
6289         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6290         prototypes to match other implementations of this
6291         function. replace integer argument with pointer -- the length
6292         field in the Z-packet is the length of what is pointed to or 1 if
6293         pointer is null. Add to target vector.
6294         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6295         target vector.
6296
6297         From Mark Salter:
6298         * remote.c (remote_wait): Add support to extract optional
6299         watchpoint information from T-packet. Ignore unrecognized
6300         optional info in T-packet.
6301         (remote_async_wait): Ditto.
6302
6303 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6304
6305         * cli/cli-dump.c: Change fopen modes to use binary open modes
6306         as defined in include/fopen-bin.h throughout.
6307
6308 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6309
6310         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6311
6312 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6313
6314         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6315         assertion failure by returning early after a warning.
6316
6317 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6318
6319         * mips-tdep.c (mips_find_saved_regs): Make static.
6320         (mips_frame_init_saved_regs): New function.
6321         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6322         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6323         (mips_find_saved_regs): Delete declaration.
6324
6325 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6326
6327         * remote.c (remote_wait, remote_async_wait): Change
6328         thread_num from int to ULONGEST.
6329         (unpack_varlen_hex): Change result parameter from
6330         int * to ULONGEST *.
6331
6332 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6333
6334         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6335         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6336         powerpc*-*-*.
6337         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6338
6339 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6340
6341         * gcore.c (override_derive_stack_segment): Delete variable.
6342         (preempt_derive_stack_segment): Delete function.
6343         (derive_stack_segment): Delete function.
6344         (default_derive_stack_segment): Renamed to derive_stack_segment.
6345         (override_derive_heap_segment): Delete variable.
6346         (preempt_derive_heap_segment): Delete function.
6347         (derive_heap_segment): Delete function.
6348         (default_derive_heap_segment): Rename to derive_heap_segment.
6349
6350 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6351
6352         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6353         * mips-tdep.c (mips_EABI_use_struct_convention, 
6354         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6355         New functions.  (mips_use_struct_convention): Delete.
6356         (mips_gdbarch_init): set use_gdbarch_convention.
6357
6358 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6359
6360         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6361         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6362         mips_o32_reg_struct_has_addr): New functions.
6363         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6364
6365 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6366
6367         * regcache.c (pseudo_register): Delete function.
6368         (fetch_register): Delete function.
6369         (store_register): Delete function.
6370         (regcache_raw_read, legacy_read_register_gen): Use
6371         target_fetch_registers instead of fetch_register.
6372         (legacy_write_register_gen, regcache_raw_write): Use
6373         target_store_register instead of store_register.
6374         (write_register_bytes): Ditto.
6375
6376         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6377         (STORE_PSEUDO_REGISTER): Delete.
6378         * gdbarch.h, gdbarch.c: Regenerate.
6379
6380 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6381
6382         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6383         write dump file binary.
6384
6385 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6386
6387         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6388         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6389         (mips_gdbarch_init): Set N32 target to be mips64.
6390
6391 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6392
6393         * frame.c (find_saved_register): Break out of loop once saved
6394         register address is found.  Don't mention sparc in loop comment
6395         anymore.
6396
6397 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6398
6399         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6400         mips_default_saved_regsize to 8.
6401
6402 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6403
6404         * gcore.c: Do not include <sys/procfs.h>.
6405         * Makefile.in (gcore.o): Update dependencies.
6406
6407 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6408
6409         * configure.tgt: Make arc-*-* obsolete.
6410         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6411         * MAINTAINERS: Make arc-elf obsolete.
6412         * arc-tdep.c: Make file obsolete.
6413         * config/arc/arc.mt: Ditto.
6414         * config/arc/tm-arc.h: Ditto.
6415
6416 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6417
6418         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6419
6420 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6421
6422         * mcore-tdep.c (mcore_gdbarch_init): Use
6423         generic_unwind_get_saved_register instead of
6424         generic_get_saved_register.
6425         * v850-tdep.c (v850_gdbarch_init): Ditto.
6426         * frv-tdep.c (frv_gdbarch_init): Ditto.
6427         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6428         * s390-tdep.c (s390_gdbarch_init): Ditto.
6429         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6430         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6431         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6432
6433 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6434
6435         * objfiles.h: Add missing #include "symfile.h"
6436
6437         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6438
6439 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6440
6441         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6442         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6443         of FIELD_BITSIZE.
6444
6445 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6446
6447         * NEWS: Cleanup and nitpick.
6448
6449 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6450
6451         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6452
6453 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6454
6455         * Makefile.in (gdbtk-bp.o): Update dependencies.
6456         (gdbtk-register.o): Ditto.
6457         (gdbtk-varobj.o): Ditto.
6458
6459 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6460
6461         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6462         m68hc11_fetch_pseudo_register.
6463         (m68hc11_pseudo_register_write): Replace
6464         m68hc11_store_pseudo_register.
6465         (m68hc11_gdbarch_init): Update.
6466
6467 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6468
6469         * gdbarch.sh: Include "gdb_string.h".
6470         * gdbarch.c: Regenerate.
6471
6472         * regcache.c: Include "gdb_string.h".
6473         * ax-general.c: Ditto.
6474         * varobj.c: Ditto.
6475         * std-regs.c: Ditto.
6476         * fbsd-proc.c: Ditto.
6477         * thread.c: Ditto.
6478
6479         * Makefile.in (regcache.o): Update dependencies.
6480         (thread.o, gdbarch.o): Ditto.
6481         (ax-general.o, gdbarch.o): Ditto.
6482         (varobj.o, std-regs.o): Ditto.
6483         (fbsd-proc.o): Specify dependencies.
6484
6485 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6486
6487         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6488         regnum.
6489         (regcache_cooked_write): Ditto.
6490
6491 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6492
6493         * regcache.c (regcache_cooked_read): New function.
6494         (regcache_cooked_write): New function.
6495         (read_register_gen): Rewrite using regcache_cooked_read.
6496         (write_register_gen): Rewrite using regcache_cooked_write.
6497
6498         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6499         Declare.
6500
6501 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6502
6503         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6504         Replace the architecture methods register_read and register_write.
6505         * gdbarch.h, gdbarch.c: Regenerate.
6506         * regcache.c (init_regcache_descr): Update.
6507         (read_register_gen): Update.
6508         (write_register_gen): Update.
6509         (supply_register): Update comment.
6510
6511         * sh-tdep.c (sh_gdbarch_init): Update.
6512         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6513         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6514         pointer.  Update code.
6515         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6516         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6517         void pointer.  Update code.
6518         (sh64_register_write): Delete.
6519         (sh4_register_read): Delete.
6520         (sh64_register_read): Delete.
6521         (sh4_register_write): Delete.
6522         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6523         void pointer, `to' parameter a void pointer.
6524         (sh_sh64_register_convert_to_raw): Ditto.
6525
6526 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6527
6528         * mips-tdep.c (mips_register_virtual_type): Use architecture
6529         invariant return values.
6530
6531 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6532
6533         * linux-proc.c: Include "gdb_string.h".
6534         * Makefile.in (linux-proc.o): Update dependency list.
6535
6536 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6537
6538         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6539         comment.
6540
6541 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6542
6543         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6544         to_insert_watchpoint, to_remove_watchpoint,
6545         to_stopped_by_watchpoint, to_stopped_data_address,
6546         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6547         target vecctor. Define their corresponding macros so they call
6548         them.
6549         
6550         * target.c: Add default and debug versions of for
6551         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6552         to_insert_watchpoint, to_remove_watchpoint,
6553         to_stopped_by_watchpoint, to_stopped_data_address,
6554         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6555
6556 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6557
6558         * mips-tdep.c (mips_register_virtual_type): New function.
6559         (mips_gdbarch_init): Register mips_register_virtual_type()
6560         with gdbarch machinery.
6561         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6562         this file instead of tm-bigmips.h.
6563         (MIPS_REGSIZE): Delete this macro.
6564         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6565         multiarch version in mips-tdep.c will be found.
6566
6567 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6568
6569         * NEWS: Menion that CHILL has been made obsolete.
6570
6571         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6572         * stabsread.c (read_range_type): Ditto.
6573         * gdbtypes.h: Ditto.
6574         * language.c (binop_type_check): Ditto.
6575         (binop_result_type): Ditto.
6576         (integral_type): Ditto.
6577         (character_type): Ditto.
6578         (string_type): Ditto.
6579         (boolean_type): Ditto.
6580         (structured_type): Ditto.
6581         (lang_bool_type): Ditto.
6582         (binop_type_check): Ditto.
6583         * language.h (_LANG_chill): Ditto.
6584         * dwarfread.c (set_cu_language): Ditto.
6585         * dwarfread.c (CHILL_PRODUCER): Ditto.
6586         * dwarfread.c (handle_producer): Ditto.
6587         * expression.h (enum exp_opcode): Ditto.
6588         * eval.c: Ditto for comments.
6589         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6590         * expprint.c (print_subexp): Ditto.
6591         (print_subexp): Ditto.
6592         * valops.c (value_cast): Ditto.
6593         (search_struct_field): Ditto.
6594         * value.h (COERCE_VARYING_ARRAY): Ditto.
6595         * symfile.c (init_filename_language_table): Ditto.
6596         (add_psymbol_with_dem_name_to_list): Ditto.
6597         * valarith.c (value_binop): Ditto.
6598         (value_neg): Ditto.
6599         * valops.c (value_slice): Ditto.
6600         * symtab.h (union language_specific): Ditto.
6601         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6602         (SYMBOL_DEMANGLED_NAME): Ditto.
6603         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6604         * defs.h (enum language): Ditto.
6605         * symtab.c (got_symtab): Ditto.
6606         * utils.c (fprintf_symbol_filtered): Ditto.
6607
6608         * ch-typeprint.c: Make file obsolete.
6609         * ch-valprint.c: Make file obsolete.
6610         * ch-lang.h: Make file obsolete.
6611         * ch-exp.c: Make file obsolete.
6612         * ch-lang.c: Make file obsolete.
6613
6614         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6615         CHILL_LIB.
6616         (TARGET_FLAGS_TO_PASS): Ditto.
6617         (CHILLFLAGS): Obsolete.
6618         (CHILL): Obsolete.
6619         (CHILL_FOR_TARGET): Obsolete.
6620         (CHILL_LIB): Obsolete.
6621         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6622         ch-valprint.c.
6623         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6624         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6625         ch-lang.o.
6626         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6627         targets.
6628
6629 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6630
6631         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6632         This does not change anything at the moment, but will be helpful
6633         later when full Ada support is integrated.
6634
6635 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6636
6637         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6638         help message.
6639
6640 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6641
6642         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6643         and save it in a local variable.  Use variable in later test.
6644
6645 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6646
6647         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6648         test.  (Thanks to Daniel Jacobowitz.)
6649         
6650 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6651
6652         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6653         (mips_abi_strings): Add "n64".
6654         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6655
6656 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6657
6658         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6659         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6660
6661 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6662
6663         * utils.c (host_pointer_to_address, address_to_host_pointer):
6664         Use gdb_assert() instead of explicit call to internal_error().
6665
6666 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6667
6668         * Makefile.in (rs6000-nat.o): Update dependencies.
6669
6670         From Nicholas Duffek:
6671         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6672         (aix-thread.o): New rule.
6673         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6674         * config/powerpc/aix432.mh: New file.
6675
6676 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6677
6678         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6679         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6680         (fetch_core_registers, ppc_linux_supply_gregset)
6681         (ppc_linux_supply_fpregset): New functions.
6682         (ppc_linux_regset_core_fns): New.
6683         (_initialize_ppc_linux_tdep): Call add_core_fns.
6684         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6685         and ppc_linux_supply_gregset.
6686         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6687         (supply_fpregset): Call ppc_linux_supply_fpregset.
6688         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6689         corelow.o.
6690         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6691
6692 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6693
6694         * symtab.c (lookup_symbol): Demangle before lowercasing.
6695
6696 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6697
6698         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6699         declaration.
6700         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6701         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6702         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6703         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6704         "gdb_string.h".
6705         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6706         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6707         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6708         (avr-tdep.o, mon960-rom.o): Ditto.
6709         (aout_stabs_gnu_h): Define.
6710         (symtab_h): Remove $(gdb_obstack_h).
6711
6712 2002-07-30  Jim Blandy  <jimb@redhat.com>
6713
6714         Patch from David Carlton <carlton@math.stanford.edu>:
6715         * gdbinit.in: Move the `dir' commands that add GDB's own source
6716         directory to the search path to the end, so that the `gdb' source
6717         directory will be searched first.
6718
6719 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6720
6721         * gdb_obstack.h: New file.
6722         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6723         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6724         * objfiles.h: Include "gdb_obstack.h".
6725         * Makefile.in (gdb_obstack_h): Define.
6726         (symtab_h): Add $(gdb_obstack_h).
6727         (objfiles_h): Add $(gdb_obstack_h).
6728         
6729         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6730         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6731         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6732         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6733         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6734         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6735         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6736         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6737
6738         * Makefile.in (bcache.o): Update dependencies.
6739         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6740         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6741         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6742         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6743         (stabsread.o, symfile.o, symmisc.o): Ditto.
6744         (symtab.o, typeprint.o, macroexp.o): Ditto.
6745         (macrotab.o, mdebugread.o): Ditto.
6746         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6747         (coff_ecoff_h, aout_aout64_h): Define.
6748         (aout_stabs_gnu_h, libaout_h): Define.
6749
6750 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6751
6752         * regcache.c (struct regcache_descr): Rename nr_registers to
6753         nr_cooked_registers.  Revise comments describing the structure
6754         member fields.
6755         (init_regcache_descr): Update.
6756         (init_legacy_regcache_descr): Update.
6757         (read_register_gen, write_register_gen): When a cooked register in
6758         the raw register range, directly access the value from the raw
6759         register cache.
6760
6761 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6762
6763         * z8k-tdep.c: Do not include "obstack.h".
6764         * h8300-tdep.c, h8500-tdep.c: Ditto.
6765         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6766         * valprint.c, v850-tdep.c: Ditto.
6767         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6768         * mn10200-tdep.c: Ditto.
6769
6770         * Makefile.in (z8k-tdep.o): Update dependencies.
6771         (m68hc11-tdep.o, valprint.o): Ditto.
6772         (v850-tdep.o, d10v-tdep.o): Ditto.
6773         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6774         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6775         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6776         (sh_opc_h, gdb_sim_sh_h): Define.
6777         (elf_sh_h, elf_bfd_h): Define.
6778         (opcode_m68hc11_h): Define.
6779         (OPCODES_SRC, OPCODES_DIR): define.
6780         (OPCODES): Use $(OPCODES_DIR).
6781         (gdb_sim_d10v_h): Rename sim_d10v_h.
6782         (gdb_sim_arm_h): Rename sim_arm_h.
6783
6784 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6785
6786         * utils.c (host_pointer_to_address, address_to_host_pointer):
6787         Change internal_error() message to indicate function responsible
6788         for the error.
6789
6790 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6791
6792         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6793         calls to local_hex_string_custom().
6794
6795 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6796
6797         * irix5-nat.c: Move IRIX shared library support from here...
6798         * solib-irix.c: ...to here.  Revised substantially to work with
6799         generic solib framework.
6800
6801         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6802         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6803         * mips-irix-tdep.c: New file.
6804
6805         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6806         (mips-irix-tdep.o, solib-irix.o): New rules.
6807         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6808         solib-irix.o.
6809         * config/mips/irix6.mt (TDEPFILES): Likewise.
6810         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6811
6812 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6813
6814         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6815         disabled (via ``#if 0'') includes.
6816
6817 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6818
6819         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6820         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6821         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6822         Add support for the fpscr register.
6823         * rs6000-nat.c (regmap, fetch_inferior_registers)
6824         (store_inferior_registers, fetch_core_registers): Likewise.
6825
6826 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6827
6828         * rs6000-nat.c (language.h): Include.
6829         (special_regs): Delete this array.
6830         (regmap): New function.
6831         (fetch_register, store_register):  Use regmap() to map gdb
6832         register numbers to ptrace register numbers.  Also, use
6833         outputs from regmap() to make decisions regarding type of
6834         ptrace() call to make.  In particular, don't compare against
6835         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6836         (fetch_inferior_registers, store_inferior_registers): Where
6837         possible, obtain register numbers from tdep struct.  Don't
6838         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6839         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6840         (LAST_UISA_SP_REGNUM): Delete.
6841         
6842 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6843
6844         * rs6000-nat.c (ppc-tdep.h): Include.
6845         (fetch_registers, store_register, fetch_core_registers): Don't
6846         access registers[] directly.  Instead, use supply_register() or
6847         regcache_collect() as appropriate.
6848         (find_toc_address): Format hex address with local_hex_string().
6849
6850 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6851
6852         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6853         bfd/elf32-frv.c.
6854
6855 2002-07-24  Tom Tromey  <tromey@redhat.com>
6856
6857         * jv-exp.y: Marked all strings with _().
6858         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6859         internal_error.
6860         (MethodInvocation, CastExpression, parse_number, yyerror,
6861         java_type_from_name, push_expression_name, yylex): Typo fixes.
6862
6863 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6864
6865         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6866         (tee_file_flush, tee_file_write, tee_file_fputs)
6867         (tee_file_isatty): New.
6868         * ui-file.h (tee_file_new): Add prototype.
6869
6870 2002-07-24  Aidan Skinner <aidan@velvet.net>
6871
6872         * ada-lang.c: Change k&r style function definitions to prototyped
6873         form.
6874         * ada-typeprint.c: Change k&r style function definitions to prototyped
6875         form.
6876         * ada-valprint.c: Change k&r style function definitions to prototyped
6877         form.
6878         
6879 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6880
6881         * README: Remove reference to remote-bug.
6882         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6883         remote-bug.c.
6884         (m88k-nat.o): Delete rule.
6885         (m88k-tdep.o): Delete rule.
6886         (remote-bug.o): Delete rule.
6887         * MAINTAINERS: Mark as obsolete.
6888         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6889         * m88k-tdep.c: Make file obsolete.
6890         * config/m88k/m88k.mh: Ditto.
6891         * config/m88k/delta88v4.mh: Ditto.
6892         * config/m88k/delta88v4.mt: Ditto.
6893         * config/m88k/delta88.mt: Ditto.
6894         * config/m88k/delta88.mh: Ditto.
6895         * remote-bug.c: Ditto.
6896         * config/m88k/tm-delta88.h: Ditto.
6897         * config/m88k/nm-delta88v4.h: Ditto.
6898         * config/m88k/xm-delta88.h: Ditto.
6899         * config/m88k/xm-dgux.h: Ditto.
6900         * config/m88k/tm-m88k.h: Ditto.
6901         * config/m88k/nm-m88k.h: Ditto.
6902         * config/m88k/tm-delta88v4.h: Ditto.
6903         * m88k-nat.c: Ditto.
6904         * cxux-nat.c: Ditto.
6905         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6906         and m88*-*-* obsolete.
6907         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6908         m88*-*-* obsolete.
6909
6910 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6911
6912         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6913         constant.  Same for local pointer variables.
6914         (extract_signed_integer): Ditto.
6915         * defs.h (extract_unsigned_integer): Update.
6916         (extract_signed_integer): Update.
6917
6918 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6919
6920         * regcache.c (regcache_raw_write): Change buf parameter to a
6921         constant void pointer.
6922         (regcache_raw_read): Change buf parameter to a void pointer.
6923         (legacy_write_register_gen): Change myaddr parameter a constant
6924         void pointer.
6925         (supply_register): Change val parameter to a const void pointer.
6926         * regcache.h (regcache_raw_write): Update declaration.
6927         (regcache_raw_read): Update declaration.
6928         (supply_register): Update declaration.
6929
6930 2002-07-24  Tom Tromey  <tromey@redhat.com>
6931
6932         * defs.h (gdb_readline_wrapper): Declare.
6933         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6934         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6935         * top.c (gdb_readline_wrapper): New function.
6936         (command_line_input): Use it.
6937
6938 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6939
6940         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6941         regcache_read and regcache_write.
6942         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6943         * regcache.c: Update.
6944         * sh-tdep.c (sh64_push_arguments): Update comment.
6945         (sh_pseudo_register_read): Update.
6946         (sh_pseudo_register_write): Update.
6947         (sh4_register_read): Update.
6948         (sh4_register_write): Update.
6949         (sh64_pseudo_register_read): Update.
6950         (sh64_pseudo_register_write): Update.
6951         (sh64_register_read): Update.
6952         (sh64_register_write): Update.
6953         * i386-tdep.c (i386_extract_return_value): Update.
6954         (i386_extract_struct_value_address): Update.
6955         (i386_extract_return_value): Update.
6956         * blockframe.c (generic_read_register_dummy): Update.
6957         (generic_call_dummy_register_unwind): Update
6958         * infrun.c (write_inferior_status_register): Update.
6959
6960 2002-07-23  Jim Blandy  <jimb@redhat.com>
6961
6962         * parser-defs.h (expression_context_pc): Make this extern.
6963         (Thanks to Michael Snyder.)
6964
6965 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6966
6967         GDB 5.2.1 released from 5.2 branch.
6968         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6969         * README: Update to mention 5.2.1.
6970
6971 2002-07-23  Mark Salter  <msalter@redhat.com>
6972
6973         * remote.c (remote_read_bytes): Fix check for error.
6974
6975 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6976
6977         * aix-thread.c (language.h): Include.
6978         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6979         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6980         Print newlines at end of debug messages.
6981         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6982         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6983
6984 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6985
6986         * aix-thread.c (ppc-tdep.h): Include.
6987         (special_register_p): New function.
6988         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6989         (store_regs_user_thread): Use register number information from
6990         gdbarch_tdep struct instead of hardcoded offsets relative to
6991         FIRST_UISA_SP_REGNUM.
6992         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6993         special_register_p() instead of using FPLAST_REGNUM and
6994         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6995         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6996         will be MQ's register number.
6997
6998 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6999
7000         * aix-thread.c (ops): Rename to aix_thread_ops.
7001         (base_ops): Rename to base_target.
7002         (ops_attach): Rename to aix_thread_attach.
7003         (ops_detach): Rename to aix_thread_detach.
7004         (ops_resume): Rename to aix_thread_detach.
7005         (ops_wait):   Rename to aix_thread_wait.
7006         (ops_kill):   Rename to aix_thread_kill.
7007         (init_ops):   Rename to init_aix_thread_ops.
7008         (ops_fetch_register): Rename to aix_thread_fetch_register.
7009         (ops_store_register): Rename to aix_thread_store_register.
7010         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7011         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7012         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7013         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7014         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7015         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7016         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7017         (store_regs_lib):  Rename to store_regs_user_thread.
7018         (store_regs_kern): Rename to store_regs_kernel_thread.
7019
7020 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7021
7022         * aix-thread.c (ops_prepare_to_store): Eliminate.
7023         (init_ops): Don't initialize ops.prepare_to_store.
7024         (store_regs_kern): Pre-fetch register buffers from child, 
7025         because some registers may not be in the cache.  Copy
7026         regs from register cache only if they are cached.
7027         (store_regs_lib): Copy regs from register cache only
7028         if they are cached.
7029         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7030         fill_gprs64): Ditto.
7031
7032 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7033
7034         * aix-thread.c (gdb_assert.h): Include.
7035         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7036         register sizes (from register cache) match size of buffer holding
7037         register data.
7038         (fill_sprs32): Change parameter types to match those in the ptrace()
7039         buffer.
7040         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7041         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7042
7043 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7044
7045         * aix-thread.c (supply_sprs64): Cosmetic change.
7046         (supply_sprs32): Cosmetic change.
7047         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7048         (fill_sprs64): Use regcache_collect instead of read_register.
7049         (store_regs_lib): Use regcache_collect instead of 
7050         read_register.  Use fill_sprs32 instead of fill_sprs64,
7051         if debugging a 32-bit architecture.
7052         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7053         out of the register cache, instead of passing a pointer into
7054         the register cache directly to ptrace.  Use regcache_collect
7055         insteaad of read_register.
7056         (ops_prepare_to_store): Use target_read_registers instead
7057         of read_register_bytes.
7058
7059 2002-07-20  Aidan Skinner <aidan@velvet.net>
7060
7061         * MAINTAINERS: Add self under write after approval. 
7062                 
7063 2002-07-20  Aidan Skinner <aidan@velvet.net>
7064
7065         * ada-tasks.c: Change k&r style function definitions to prototyped
7066         form.
7067                 
7068 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7069
7070         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7071         * x86-64-tdep.c: Include "objfiles.h".
7072         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7073         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7074
7075 2002-07-17  Michal Ludvig  <michal@suse.cz>
7076
7077         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7078         (update_context): Initialise cfa variable.
7079
7080 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7081
7082         * aix-thread.c: Shorten some long lines.  
7083         Bring comments into line with code spec.
7084
7085 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7086
7087         * infrun.c: Re-indent using gdb_indent.sh.
7088
7089 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7090
7091         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7092         Leave the indentation temporarily untouched, to minimize the diffs.
7093
7094 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7095
7096         * stabsread.c: Make os9k sections of the code obsolete,
7097         for real this time.
7098         * stabsread.h: Make os9k sections of the code obsolete.
7099
7100 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7101
7102         * linux-low.c (regsets_store_inferior_registers): Add free()
7103         at the end of a loop to prevent memory leak.
7104         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7105         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7106         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7107         line a comment.
7108         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7109
7110 2002-07-17  Jim Blandy  <jimb@redhat.com>
7111
7112         * macrocmd.c (info_macro_command): Remove newline from error
7113         message.
7114
7115 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7116
7117         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7118         (sh_gdbarch_init): Use it for sh-dsp.
7119
7120 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7121
7122         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7123         64-bit DWARF2 format.
7124
7125 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7126
7127         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7128         <sys/proc.h> when not available.
7129
7130 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7131
7132         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7133         * stabsread.c: Make os9k sections of the code obsolete.
7134         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7135         * config/i386/i386os9k.mt: Make file obsolete.
7136         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7137         (COMMON_OBS): Remove os9kread.o
7138         (SFILES): Remove os9kread.c.
7139         (os9kread.o, remote-os9k.o): Make target obsolete.
7140         * remote-os9k.c: Make file obsolete.
7141         * os9kread.c: Make file obsolete.
7142         * Makefile.in
7143
7144 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7145
7146         * NEWS: Mention that the FR30 has been made obsolete.
7147         * fr30-tdep.c: Make file obsolete.
7148         * config/fr30/tm-fr30.h: Ditto.
7149         * config/fr30/fr30.mt: Ditto.
7150         * configure.tgt: Make fr30-*-elf obsolete.
7151         * MAINTAINERS: Make fr30-elf obsolete.
7152
7153 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7154
7155         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7156         found is not inside a section.
7157
7158 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7159
7160         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7161         strerror().
7162         (pdc_realloc): Use xrealloc() instead of realloc().
7163
7164 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7165
7166         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7167         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7168         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7169         macros.
7170
7171 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7172
7173         * aix-thread.c (ptrace_check): Eliminate goto.
7174         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7175         problem.
7176
7177 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7178
7179         * aix-thread.c (gdbcmd.h): Include.
7180         (DEBUG, DBG, DBG2, dbg): Eliminate.
7181         (debug_aix_thread): New static global.
7182         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7183         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7184         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7185         invocations to DBG and DBG2 macros to test against
7186         ``debug_aix_thread'' and call fprintf_unfiltered().
7187         (_initialize_aix_thread): Add new command "set debug aix-thread".
7188
7189 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7190
7191         From Gerhard Tonn <TON@de.ibm.com>:
7192         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7193         instead of supply_register.
7194
7195 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7196
7197         * dwarf2cfi.c: Include "gdb_assert.h".
7198         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7199         non-NULL.
7200         (update_context): Do not use __func__.  Add missing ``break''.
7201         (update_context): Do not use __func__.
7202
7203 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7204
7205         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7206         and its setting.  Set gdbarch instruction printing functions
7207         directly.  For non-rs6000 case use new function
7208         gdb_print_insn_powerpc.
7209         (gdb_print_insn_powerpc): New function.
7210
7211 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7212
7213         * NEWS: Mention that the d30v has been marked obsolete.
7214         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7215         * configure.tgt: Mark d30v-*-* as obsolete.
7216         * d30v-tdep.c: Mark file as obsolete.
7217         * config/d30v/d30v.mt: Ditto.
7218         * config/d30v/tm-d30v.h: Ditto.
7219
7220 2002-07-13  Aidan Skinner <aidan@velvet.net>
7221
7222         * ada-tasks.c (add_task_entry): replace calls to
7223         malloc() with xmalloc
7224         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7225         
7226         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7227         ada_finish_decode_line_1, all_sals_for_line
7228         ada_breakpoint_rewrite): replace calls to free() with xfree()
7229                 
7230 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7231
7232         From Nicholas Duffek (with minor changes by Martin Hunt, 
7233         Louis Hamilton, and Kevin Buettner):
7234         * aix-thread.c: New file.
7235
7236 2002-07-12  Petr Sorfa <petrs@caldera.com>
7237
7238         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7239         complaint for invalid attribute class or form.
7240         (read_func_scope): DW_AT_frame_base
7241         better handling of DW_AT_block*.
7242         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7243         better handling of DW_AT_block*.
7244         (read_common_block): DW_AT_location
7245         better handling of DW_AT_block*.
7246         (read_partial_die): DW_AT_location better handling
7247         of DW_AT_block*.
7248         (new_symbol): DW_AT_external better handling of
7249         DW_AT_block*. Proper initialization of variable
7250         "addr".
7251         (attr_form_is_block): New function that returns true
7252         if the attribute's form is of DW_FORM_block*.
7253
7254 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7255
7256         * valops.c (find_method_list): Remove comment about
7257         removed STATIC_MEMFUNCP argument.
7258         (value_find_oload_method_list): Likewise.
7259
7260 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7261
7262         From Nicholas Duffek:
7263         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7264         target_new_objfile_hook.
7265
7266 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7267
7268         From Nicholas Duffek:
7269         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7270         csect.
7271
7272 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7273
7274         * MAINTAINERS: Mention --enable-sim-build-warnings.
7275         (m68hc11-elf): Disable sim build warnings.
7276         (m32r-elf): Mark as broken obsolete candidate.
7277         (x86_64-linux-gnu): Mark as buildable with -Werror.
7278         (arm-elf): Change -w to ``,'' which enables warnings but not
7279         -Werror.
7280
7281 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7282
7283         * bcache.h: Update copyright.
7284         (struct bstring, struct bcache): Move definition to "bcache.c".
7285         Replaced by opaque declaration.
7286         (bcache_xfree): Replace free_bcache.
7287         (bcache_xmalloc, bcache_memory_used): Declare.
7288         
7289         * bcache.c: Update copyright.
7290         (struct bstring, struct bcache): Moved to here from "bcache.h".
7291         Update comments.
7292         (bcache_xmalloc, bcache_memory_used): New functions.
7293         (bcache_xfree): Replace function free_bcache.
7294         
7295         * Makefile.in (objfiles.o): Add $(bcache_h).
7296         (objfiles_h): Remove $(bcache_h).
7297         (symfile.o): Add $(bcache_h).
7298
7299         * symmisc.c: Update copyright.
7300         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7301         (print_objfile_statistics): Use bcache_memory_used.
7302
7303         * symfile.c: Include "bcache.h".
7304         (reread_symbols): Use bcache_xfree.
7305         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7306         (add_psymbol_to_list): Pass psymbol_cache by value.
7307         (add_psymbol_with_dem_name_to_list): Ditto.
7308
7309         * objfiles.h: Update copyright.
7310         (struct bcache): Declare opaque.  Do not include "bcache.h".
7311         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7312         bcache'' pointers.
7313         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7314
7315         * objfiles.c: Include "bcache.h".  Update copyright.
7316         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7317         macro_cache.
7318         (free_objfile): Use bcache_xfree.
7319
7320 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7321
7322         * monitor.c (monitor_fetch_register): Make name a constant.
7323         (monitor_store_register): Same.
7324
7325 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7326
7327         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7328         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7329         (finish_block) For non-function blocks, hash the symbol table.  For
7330         function blocks, mark the symbol table as unhashed.
7331         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7332         (msymbol_hash_iw): Likewise.
7333         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7334         value.
7335         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7336         (lookup_minimal_symbol): Likewise for both.
7337         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7338         hashtable.
7339         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7340         (ALL_BLOCK_SYMBOLS): Update.
7341         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7342         (struct symbol): Add `hash_next' pointer.
7343         * symtab.c (lookup_block_symbol): Search using the hash table when
7344         possible.
7345         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7346         (search_symbols, find_addr_symbol): Likewise.
7347
7348         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7349         (read_dst_symtab): Likewise.
7350         * jv-lang.c (get_java_class_symtab): Likewise.
7351         * mdebugread.c: Include "gdb_assert.h".
7352         (shrink_block): Assert that the block being modified is not hashed.
7353         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7354         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7355         symbols.
7356         (dump_symtab): Recognize hashed blocks.
7357         * printcmd.c (print_frame_args):  Assert that function blocks do not
7358         have hashed symbol tables.
7359         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7360         (fill_in_ada_prototype, debug_print_block): Likewise.
7361         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7362
7363 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7364
7365         * stack.c (print_frame): Use result of frame_address_in_block()
7366         instead of fi->pc when evaluating symbols.
7367         (backtrace_command_1): Ditto.
7368
7369 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7370
7371         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7372         Make static.
7373
7374         * arm-tdep.c (arm_register_name): Make return type constant.
7375
7376 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7377
7378         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7379         prototype.
7380         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7381         * s390-tdep.c (s390_fp_regnum): Ditto.
7382         (s390_read_fp): Ditto.
7383         (s390_pop_frame): Ditto.
7384         (_initialize_s390_tdep): Ditto.
7385         * remote.c (get_remote_state): Ditto.
7386         * procfs.c (mappingflags): Ditto.
7387         * memattr.c (_initialize_mem): Ditto.
7388         * mcore-tdep.c (mcore_pop_frame): Ditto.
7389         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7390         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7391         * language.c (set_case_str): Ditto.
7392         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7393         * frv-tdep.c (new_variant): Ditto.
7394         (frv_stopped_data_address): Ditto.
7395         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7396         (context_alloc): Ditto.
7397         (frame_state_alloc): Ditto.
7398         (unwind_tmp_obstack_init): Ditto.
7399         (unwind_tmp_obstack_free): Ditto.
7400         (cfi_read_fp): Ditto.
7401         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7402         (cris_pop_frame): Ditto.
7403         * c-lang.c (scanning_macro_expansion): Ditto.
7404         (finished_macro_expansion): Ditto.
7405         (c_preprocess_and_parse): Ditto.
7406         * gdbarch.sh: Ditto.
7407         * gdbarch.h, gdbarch.c: Regenerate.
7408         * config/mn10200/tm-mn10200.h: Adjust indentation.
7409         * target.c: Adjust indentation.
7410         * symtab.h: Adjust indentation.
7411         * stabsread.h: Adjust indentation.
7412         * remote-es.c: Adjust indentation.
7413         * os9kread.c: Adjust indentation.
7414
7415 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7416         
7417         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7418         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7419
7420 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7421         
7422         * NEWS: Mention m68k, mcore multi-arching.  
7423         * MAINTAINERS: Change status of m68k, mcore to reflect
7424         multi-arching.
7425
7426 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7427
7428         * valops.c (find_overload_match): Free oload_syms.
7429
7430 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7431
7432         Define HAVE_SYS_PROC_H if sys/proc.h exists
7433         * configure.in: Add check for sys/proc.h
7434         * config.in: Regenerate.
7435         * configure: Regenerate.
7436
7437 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7438
7439         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7440         #if !GDB_MULTI_ARCH. 
7441
7442 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7443
7444         * config.in, configure: Regenerate.
7445
7446 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7447
7448         * dwarf2cfi.c: Include "gcore.h".
7449         (execute_stack_op): Fix implementation of the
7450         DW_OP_deref and DW_OP_deref_size operators by letting do their
7451         lookup in the target.
7452
7453 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7454
7455         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7456         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7457         tdep->sc_sp_offset.
7458
7459 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7460
7461         Fix PR gdb/595, gdb/602
7462         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7463         Don't call value_cast, just read the vtable pointer; update comments
7464         to match.
7465
7466 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7467
7468         * config/mcore/tm-mcore.h: Remove file.
7469         * config/mcore/mcore.mt: Remove definition of TM_FILE
7470         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7471
7472 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7473
7474         * i386bsd-tdep.c: Include "gdb_string.h".
7475
7476 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7477
7478         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7479         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7480         mcore-tdep.
7481         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7482         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7483         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7484         (RETVAL_REGNUM): Move macros from tm-mcore.h
7485         (mcore_reg_struct_has_addr): New function.
7486         (mcore_gdbarch_init): Added initializations for the macros removed
7487         from tm-mcore.h.
7488
7489 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7490
7491         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7492         traditonal string branding within the ELF header.
7493
7494 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7495
7496         * symtab.c (remove_params): New function.
7497         (make_symbol_overload_list): Use it instead of cplus_demangle.
7498         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7499
7500 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7501
7502         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7503
7504         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7505         New variables.
7506         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7507         and tdep->sigtramp_end.
7508         * i386obsd-nat.c: New file.
7509         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7510
7511         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7512         Don't call get_current_frame().
7513
7514 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7515
7516         * i386-nat.c (child_post_startup_inferior): New function
7517         calling i386_cleanup_dregs if
7518         I386_USE_GENERIC_WATCHPOINTS is defined.
7519         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7520         conditional to acknowledge that i386-nat.c has its
7521         own child_post_startup_inferior function.
7522
7523 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7524
7525         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7526         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7527         instead of MAX_REGISTER_RAW_SIZE.
7528         (i386_extract_return_value, i386_extract_struct_value_address):
7529         Convert to use regcache.
7530         (i386_gdbarch_init): Set max_register_raw_size and
7531         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7532         Set extract_return_value and extract_struct_value_address instead
7533         of their deprecated variants.
7534
7535         Convert i386 target to generic dummy frames.
7536         * i386-tdep.c: Include "symfile.h".
7537         (i386_frameless_signal_p): Consider a function to be frameless if
7538         the pc points at the first instruction of the function.
7539         (i386_frame_chain): Handle (generic) call dummies.
7540         (i386_frame_saved_pc): Likewise.
7541         (i386_frame_init_saved_regs): Remove code dealing with call
7542         dummies on the stack.
7543         (i386_push_dummy_frame): Removed.
7544         (i386_call_dummy_words): Removed.
7545         (i386_fix_call_dummy): Removed.
7546         (i386_push_return_address): New function.
7547         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7548         parameter, and don't call get_current_frame.
7549         (i386_pop_frame): New function.
7550         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7551         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7552         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7553         call_dummy_length to 0, set call_dummy_words to NULL, set
7554         sizeof_call_dummy_words to 0, set fix_call_dummy to
7555         generic_fix_call_dummy, set pc_in_call_dummy to
7556         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7557         generic_push_dummy_frame, set push_return_address to
7558         i386_push_return_address and set frame_chain_valid to
7559         generic_file_frame_chain_valid.
7560
7561 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7562
7563         * gdbarch.sh (struct regcache): Add opaque declaration.
7564         (EXTRACT_RETURN_VALUE): New architecture method.
7565         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7566         * gdbarch.h, gdbarch.c: Regenerate.
7567         * arch-utils.c (legacy_extract_return_value): New function.
7568         * arch-utils.h (legacy_extract_return_value): Declare.
7569         * values.c (value_being_returned): Re-enable code handling
7570         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7571         deprecated_grub_regcache_for_registers call to block handling
7572         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7573         (EXTRACT_RETURN_VALUE): Do not define.
7574
7575 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7576
7577         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7578         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7579         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7580         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7581         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7582         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7583         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7584         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7585         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7586         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7587         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7588         argument so the function fits the prototype in the architecture
7589         vector.
7590         (mcore_pop_frame): Remove argument so the function fits the
7591         prototype. Use get_current_frame instead of the argument.
7592         (mcore_push_arguments): Change type of struct_return so the
7593         function can be used in the architecture vector.
7594         (mcore_store_struct_return): Add.
7595         (mcore_frame_init_saved_regs): Add.
7596         (mcore_gdbarch_init): Add function calls to replace the macros
7597         removed from tm-mcore.h
7598
7599 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7600
7601         * infcmd.c (print_return_value): Remove compatibility code calling
7602         deprecated_grub_regcache_for_registers.
7603         
7604         * values.c: Include "regcache.h".
7605         (value_being_returned): Update.  Use
7606         deprecated_grub_regcache_for_registers to extract the register
7607         buffer address.  
7608         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7609         ``struct regcache''.
7610         * Makefile.in (values.o): Add dependency on $(regcache_h).
7611
7612         * inferior.h (run_stack_dummy): Change type of second parameter to
7613         a ``struct regcache''.
7614         * valops.c (hand_function_call): Change type of retbuf to ``struct
7615         regcache''.  Allocate using regcache_xmalloc, clean using
7616         make_cleanup_regcache_xfree.
7617         * infcmd.c (run_stack_dummy): Update.  Use
7618         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7619
7620         * regcache.c (do_regcache_xfree): New function.
7621         (make_cleanup_regcache_xfree): New function.
7622         * regcache.h (make_cleanup_regcache_xfree): Declare.
7623
7624 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7625
7626         * event-top.c (command_line_handler): Don't read past
7627         beginning of buffer.
7628
7629 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7630         
7631         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7632         struct frame_id. 
7633         (varobj_create): Store frame_id for root.
7634         (varobj_gen_name): Use xasprintf.
7635         (varobj_update): Save and restore frame using get_frame_id() and
7636         frame_find_by_id().
7637         (create_child): Use xasprintf.
7638         (new_root_variable): Initialize frame_id.
7639         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7640         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7641         to prevent memory leak.
7642
7643 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7644
7645         * valops.c (hand_function_call): Move declaration of retbuf to
7646         start of function, allocate using malloc, add a cleanup but before
7647         the inf_status cleanup, cleanup the buffer.  Rename local variable
7648         old_chain to inf_status_cleanup.
7649
7650 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7651
7652         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7653
7654         * cli/cli-decode.c (cmd_func_p): New function.
7655         (cmd_func): New function.
7656
7657         * command.h: Add cmd_func() and cmd_func_p().   
7658         
7659 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7660
7661         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7662         (REGISTER_SIZE): Remove.
7663         (MAX_REGISTER_RAW_SIZE): Remove.
7664         (REGISTER_VIRTUAL_TYPE): Remove.
7665         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7666         (REGISTER_NAME): Remove.
7667         (USE_GENERIC_DUMMY_FRAMES): Remove.
7668         (CALL_DUMMY): Remove.
7669         (CALL_DUMMY_START_OFFSET): Remove.
7670         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7671         (CALL_DUMMY_LOCATION): Remove.
7672         (FIX_CALL_DUMMY): Remove.
7673         (CALL_DUMMY_ADDRESS): Remove.
7674         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7675         (SAVE_DUMMY_FRAME_TOS): Remove.
7676         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7677         (mcore_register_virtual_type): New function.
7678         (mcore_register_byte): New function.
7679         (mcore_register_size): New function.
7680         (mcore_register_name): New function.
7681         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7682         macros removed from tm-mcore.h.
7683         (mcore_dump_tdep): Add.
7684         (_initialize_mcore_tdep): Add gdbarch_register call.
7685
7686 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7687
7688         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7689         frameless_look_for_prologue, such that we actually call this
7690         function.
7691
7692 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7693
7694         * frame.h (frame_address_in_block): New function.
7695
7696         * blockframe.c (frame_address_in_block): New function extracted
7697         from get_frame_block().
7698         (get_frame_block): Use frame_address_in_block().
7699         (block_innermost_frame): Use frame_address_in_block() to match
7700         the frame pc address against the block boundaries rather than
7701         the frame pc directly. This prevents a failure when a frame pc
7702         is actually a return-address pointing immediately after the end
7703         of the given block. 
7704
7705 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7706
7707         * MAINTAINERS: Add self under write after approval. 
7708
7709 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7710
7711         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7712         used in architecture vector. The default is
7713         m68k_local_breakpoint_from_pc.
7714         (m68k_local_breakpoint_from_pc): Add.
7715         (enum): Add register numbers from tm-m68k.h.
7716         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7717         vector.  
7718         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7719         GDB_MULTI_ARCH_PARTIAL.
7720         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7721         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7722         m68k-tdep.c.
7723         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7724         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7725         to enum in m68k-tdep.c
7726
7727 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7728
7729         * solib-osf.c (open_map): Compute the list of shared libraries
7730         loaded by the inferior, rather than the list of libraries loaded
7731         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7732         the wrong shared libraries...
7733
7734 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7735
7736         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7737         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7738         macros.
7739         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7740         Remove functions.
7741         (FRAMELESS_SIGNAL): Remove function.
7742         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7743         i386_linux_saved_pc_after_call): Removed.
7744         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7745         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7746         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7747
7748         * i386-tdep.c (i386_frameless_signal_p): New function.
7749         (i386_frame_chain): Deal with frameless signals.
7750         (i386_sigtramp_saved_sp): New function.
7751         (i386_frame_saved_pc): Deal with frameless signals.
7752         (i386_saved_pc_after_call): Make sure the correct value is
7753         returned just after entry into a sigtramp.
7754         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7755         i386fbsd4_sc_sp_offset): New variables.
7756         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7757         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7758         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7759         similiar to what we already did for sc_pc_offset.
7760         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7761         tdep->sc_sp_offset.
7762
7763         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7764
7765 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7766
7767         * config/i386/tm-x86-64linux.h: New.
7768         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7769         definitions.
7770         * config/i386/nm-x86-64.h: Rename to ...
7771         * config/i386/nm-x86-64linux.h: ... this one.
7772         * config/i386/x86-64linux.mh: Reflect the above change.
7773         
7774 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7775
7776         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7777         with sigcontext_addr.  Add sc_sp_offset.
7778         (i386bsd_sigtramp_saved_pc): Remove prototype.
7779         (i386bsd_sicontext_addr): Add prototype.
7780         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7781         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7782         (i386_svr4_sigtramp_saved_pc): Removed.
7783         (i386_svr4_sigcontext_addr): New function.
7784         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7785         Initialize tdep->sigcontext_addr instead.  Initialize
7786         tdep->sc_pc_offset and tdep->sc_sp_offset.
7787         (i386_gdbarch_init): Likewise.
7788         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7789         any more.
7790         (i386bsd_sigtramp_saved_pc): Remove function.
7791         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7792         Initialize tdep->sigcontext_addr instead.  Initialize
7793         tdep->sc_pc_offset.
7794         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7795         of tdep->sigtramp_saved_pc.
7796         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7797         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7798         instead.
7799
7800         * i386-tdep.c (i386_frameless_function_invocation,
7801         i386_frame_num_args, i386_frame_init_saved_regs,
7802         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7803         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7804         i386_extract_return_value, i386_store_return_value,
7805         i386_extract_struct_value_address, i386_register_virtual_type,
7806         i386_register_convertible, i386_register_convert_to_virtual,
7807         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7808         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7809         static.
7810
7811 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7812
7813         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7814
7815         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7816         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7817         this macro.  Include "value.h".
7818
7819 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7820
7821         * ada-exp.tab.c: remove as it's a generated file
7822         * ada-lex.c: remove as it's a generated file
7823                 
7824 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7825
7826         * config/i386/tm-i386.h (struct frame_info, struct
7827         frame_saved_regs, struct value, struct type): Remove forward
7828         declarations.
7829
7830         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7831         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7832         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7833         (FILL_FPXREGSET): Define.
7834
7835         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7836
7837         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7838         i[3456]86-*-netbsd* case.
7839         * config/i386/tm-obsd.h: Removed.
7840         * config/i386/obsd.mt: Removed.
7841         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7842         core-aout.o.
7843         (MH_CFLAGS): Add -DYYDEBUG=0.
7844
7845         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7846         i386nbsd_sc_pc_offset on OpenBSD too.
7847
7848         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7849         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7850         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7851         define.
7852         * i386bsd-tdep.c: Include "arch-utils.h".
7853         (i386bsd_aout_in_solib_call_trampoline): New function.
7854         (i386bsd_init_abi): Set in_solib_call_trampoline to
7855         i386bsd_aout_in_solib_call_trampoline.
7856         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7857         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7858
7859 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7860
7861         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7862         (struct obstack, struct bcache): Add opaque declarations.
7863         * Makefile.in (macrotab_h): Update
7864
7865 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7866
7867         * blockframe.c (generic_find_dummy_frame): Change return type to
7868         ``struct regcache''.
7869         (struct dummy_frame): Replace field ``registers'' with regcache, a
7870         struct regcache object.
7871         (generic_find_dummy_frame): Update.
7872         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7873         regcache_xmalloc and regcache_cpy.
7874         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7875         regcache_xfree.
7876         (deprecated_generic_find_dummy_frame): Update.
7877         (generic_read_register_dummy): Update.  Use
7878         regcache_read_as_address.
7879         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7880         (generic_get_saved_register): Update.  Use regcache_read.
7881
7882 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7883
7884         * Makefile.in (objfiles_h): Add $(bcache_h).
7885         * objfiles.h: Include "bcache.h".
7886
7887         * Makefile.in (symtab_h): Remove $(bcache_h).
7888         * symtab.h: Do not include "bcache.h".
7889
7890 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7891
7892         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7893         generic_func_frame_chain_valid.
7894
7895 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7896
7897         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7898         * config/i386/tm-fbsd.h: Likewise.
7899
7900 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7901
7902         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7903         generic_unwind_get_saved_register.
7904
7905 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7906
7907         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7908         * regcache.c (supply_register): Add missing argument to
7909         register_buffer call.
7910
7911 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7912
7913         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7914         Solaris /bin/grep does not not like it.  From Peter Schauer.
7915
7916 2002-06-26  Tom Tromey  <tromey@redhat.com>
7917
7918         * command.h (add_setshow_cmd): Declare.
7919         (add_setshow_cmd_full): Declare.
7920         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7921         returns void.  Use add_setshow_cmd_full.
7922         (add_setshow_cmd_full): New function.
7923         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7924         (add_setshow_boolean_cmd): Likewise.
7925
7926 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7927
7928         * config/vax/tm-vax.h: Protect from multiple inclusion.
7929         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7930         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7931         * config/vax/tm-vaxbsd.h: ...here.  New file.
7932         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7933
7934 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7935
7936         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7937         (BELIEVE_PCC_PROMOTION): Remove.
7938         (AP_REGNUM): Move to...
7939         * config/vax/nm-vax.h: ...here.
7940         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7941         (vax_breakpoint_from_pc): New function.
7942         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7943         and gdbarch_believe_pcc_promotion.
7944
7945 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7946
7947         * Makefile.in (vax_tdep_h): Define.  
7948         (vax-tdep.o): Use $(vax_tdep_h).
7949         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7950         (vax_dump_tdep): New function. 
7951         (_initialize_vax_tdep): Register vax_dump_tdep.
7952         * vax-tdep.h: Include osabi.h.     
7953         (struct gdbarch_tdep): New. 
7954
7955 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7956
7957         * frame.h (deprecated_generic_find_dummy_frame): Rename
7958         generic_find_dummy_frame.
7959         * blockframe.c (generic_find_dummy_frame): Make static.
7960         (deprecated_generic_find_dummy_frame): New function.
7961         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7962         generic_find_dummy_frame with deprecated_find_dummy_frame.
7963         (sh64_nofp_frame_init_saved_regs): Ditto.
7964         (sh_fp_frame_init_saved_regs): Ditto.
7965         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7966         (s390_frame_chain): Ditto.
7967         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7968
7969 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7970
7971         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7972         gdbarch vector are at the top.
7973         (NUM_REGS): Remove.
7974         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7975         (FRAME_ARGS_ADDRESS): Remove.
7976         (FRAME_LOCALS_ADDRESS): Remove.
7977         (FRAME_NUM_ARGS): Remove.
7978         (FRAME_ARGS_SKIP): Remove.  
7979         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7980         (m68k_gdbarch_init): Add gdbarch initializations for macros
7981         undefined in tm-m68k.h
7982
7983 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7984
7985         * monitor.h: Add the function regname to monitor_ops
7986         structure. This way NUM_REGS does not have to be a constant.
7987         * monitor.c (monitor_fetch_register): Added support for regname
7988         function. The function is called if the array regnames is NULL.
7989         (monitor_store_register): Same.
7990         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7991         regnames array.
7992         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7993         cpu32bug_cmds.regname to point to new function.
7994         * abug-rom.c (abug_regname): Same as above.
7995         (init_abug_cmds): Same.
7996         * dbug-rom.c (dbug_regname): Same as above.
7997         (init_dbug_cmds): Same.
7998         * remote-est.c (est_regname): Same. 
7999         (init_est_cmds): Same.
8000         * rom68k-rom.c (rom68k_regname): Same. 
8001         (init_rom68k_cmds): Same.
8002
8003 2002-06-25  Tom Tromey  <tromey@redhat.com>
8004
8005         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8006
8007 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8008
8009         * infrun.c (stop_registers): Change variable's type to ``struct
8010         regcache'''.
8011         (xmalloc_inferior_status): Delete function.
8012         (free_inferior_status): Delete function.
8013         (normal_stop): Use regcache_cpy.
8014         (struct inferior_status): Change type of fields ``stop_registers''
8015         and ``registers'' to ``struct regcache''.
8016         (write_inferior_status_register): Use regcache_write.
8017         (save_inferior_status): Instead of calling
8018         xmalloc_inferior_status, allocate the inf_status buffer directly.
8019         Use regcache_dup_no_passthrough and regcache_dup to save the
8020         buffers.
8021         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8022         Replace the stop_registers regcache instead of overriding it.  Use
8023         regcache_xfree.  Instead of calling free_inferior_status, xfree
8024         the buffer directly.
8025         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8026         free_inferior_status, xfree the buffer directly.
8027         (build_infrun): Use regcache_xmalloc.
8028         (_initialize_infrun): Delete redundant call to build_infrun.
8029
8030         * Makefile.in (infcmd.o): Add $(regcache_h).
8031
8032         * infcmd.c: Include "regcache.h".
8033         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8034         obtain the address of `stop_registers' register buffer.
8035         (print_return_value): Ditto.
8036
8037         * inferior.h (struct regcache): Add opaque declaration.
8038         (stop_registers): Change variable's declared type to ``struct
8039         regcache''.
8040
8041 2002-06-24  Tom Tromey  <tromey@redhat.com>
8042
8043         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8044         * target.c (initialize_targets): Fixed typo in
8045         trust-readonly-sections `show' documentation.
8046
8047         * main.c: Marked all strings with _().
8048
8049 2002-06-24  Don Howard  <dhoward@redhat.com>
8050
8051         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8052         that means max CORE_ADDR+1.
8053         (lookup_mem_region): Ditto.
8054         (mem_info_command): Ditto.
8055
8056 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8057
8058         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8059         (REGISTER_BYTES_OK): Remove.
8060         (REGISTER_BYTES): Remove.
8061         (STORE_STRUCT_RETURN): Remove.
8062         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8063         (STORE_RETURN_VALUE): Remove.
8064         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8065         (FRAME_CHAIN): Remove.
8066         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8067         (FRAME_SAVED_PC): Remove.  
8068         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8069         (m68k_store_struct_return): Add.
8070         (m68k_deprecated_extract_return_value): Add.
8071         (m68k_deprecated_extract_struct_value_address): Add.
8072         (m68k_store_return_value): Add.
8073         (m68k_frame_chain): Add.
8074         (m68k_frameless_function_invocation): Add.
8075         (m68k_frame_saved_pc): Add.
8076         (m68k_gdbarch_init): added set_gdbarch calls for new 
8077         functions and deleted macros.
8078
8079 2002-06-23  Tom Tromey  <tromey@redhat.com>
8080
8081         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8082         (ALLDEPFILES): Likewise.
8083         (udiheaders): Removed.
8084         (udip2soc.o): Likewise.
8085         (udi2go32.o): Likewise.
8086         (udr.o): Likewise.
8087         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8088
8089 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8090
8091         * infrun.c (_initialize_infrun): Delete unnecessary call to
8092         build_infrun.
8093
8094         * regcache.h: Update comments describing the regcache_cpy family
8095         of functions.
8096         (regcache_save, regcache_restore): Delete declaration.
8097         (regcache_save_no_passthrough): Delete declaration.
8098         (regcache_restore_no_passthrough): Delete declaration.
8099         * regcache.c (regcache_save): Delete function.
8100         (regcache_save_no_passthrough): Delete function.
8101         (regcache_restore): Delete function.
8102         (regcache_restore_no_passthrough): Delete function.
8103
8104 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8105
8106         * config/m68k/tm-m68k.h: Fix typo.
8107         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8108         (m68k_frame_init_saved_regs): Declare.
8109
8110 2002-06-21  Jim Blandy  <jimb@redhat.com>
8111
8112         Remove some vestiges of Harris 88k support.
8113         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8114         register numbering quirk.
8115         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8116         odd symbols occurring in Harris 88k ELF targets.
8117
8118 2002-06-21  Tom Tromey  <tromey@redhat.com>
8119
8120         * gdb_locale.h: New file.
8121         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8122         (defs_h): Added gdb_locale.h.
8123         * configure, config.in: Rebuilt.
8124         * configure.in (PACKAGE): Define.
8125         * defs.h: Include gdb_locale.h.
8126         * main.c (captured_main): Call setlocale, bindtextdomain,
8127         textdomain.
8128
8129 2002-06-21  Dave Brolley  <brolley@redhat.com>
8130
8131         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8132         * config/frv/frv.mt: New file.
8133         * config/frv/tm-frv.h: New file.
8134         * configure.tgt: Support frv-*-*.
8135         * Makefile.in (frv-tdep.o): New target.
8136         * frv-tdep.c: New file.
8137         * NEWS: Mention frv.
8138
8139 2002-06-21  Dave Brolley  <brolley@redhat.com>
8140
8141         * MAINTAINERS: Add self to "Write After Approval" list.
8142
8143 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8144
8145         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8146         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8147         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8148         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8149         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8150
8151         * m68k-tdep.c: Include arch-utils.h
8152         (m68k_register_raw_size): Add.
8153         (m68k_register_virtual_size): Add.
8154         (m68k_register_virtual_type): Add.
8155         (m68k_register_name): Add.
8156         (m68k_stack_align): Add.
8157         (m68k_register_byte): Add.
8158         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8159         tm-m68k.h.
8160
8161 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8162
8163         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8164         m68k_find_saved_regs.
8165         (m68k_pop_frame): Removed saved_regs structure, and replaced
8166         references to it with frame->saved_regs.
8167         (m68k_gdbarch_init): Added function calls to initialize the
8168         gdbarch structure.
8169         (m68k_fix_call_dummy): Add. 
8170         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8171         (CALL_DUMMY): Remove.
8172         (CALL_DUMMY_LENGTH): Remove.
8173         (CALL_DUMMY_START_OFFSET): Remove.
8174         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8175         (FIX_CALL_DUMMY): Remove.
8176         (PUSH_DUMMY_FRAME): Remove.
8177         (POP_FRAME): Remove.
8178
8179 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8180
8181         * parse.c (parse_fprintf): New function used to avoid calls to
8182         fprintf in bison parser generated debug code.
8183         * parser-defs.h: Declaration of new parse_fprintf function.
8184         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8185         Set YYDEBUG to 1 by default.
8186         Set YYFPRINTF as parse_fprintf.
8187
8188 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8189
8190         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8191         encoding anymore.
8192         (pointer_encoding, enum ptr_encoding): New.
8193         (execute_cfa_program): Take care about pointer encoding.        
8194         (dwarf2_build_frame_info): Only call parse_frame_info for 
8195         .debug_frame and .eh_frame.
8196         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8197         fixed augmentation handling, added relative addressing, 
8198         ignore duplicate FDEs. Added comments.
8199         * dwarf2cfi.c: Reindented.
8200         
8201 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8202
8203         * event-top.c (command_handler): Don't use space_at_cmd_start
8204         unless there is sbrk() on the host. Assign time and space data
8205         to union fields of the appropriate length.
8206
8207 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8208
8209         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8210         x86_64_register_name. Return type changed to 'const char *'.
8211         (x86_64_register_name2nr): Rename to x86_64_register_number.
8212         (x86_64_gdbarch_init): Update to reflect the change.
8213         * x86-64-tdep.h: Ditto.
8214         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8215         (supply_fpregset): Ditto.
8216
8217 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8218
8219         * regcache.h: Update copyright.
8220         (struct regcache, struct gdbarch): Add opaque declarations.
8221         (current_regcache): Declare global variable.
8222         (regcache_read, regcache_write): Add gdbarch parameter.
8223         (regcache_save, regcache_save_no_passthrough)
8224         (regcache_restore, regcache_restore_no_passthrough)
8225         (regcache_dup, regcache_dup_no_passthrough)
8226         (regcache_cpy, regcache_cpy_no_passthrough)
8227         (deprecated_grub_regcache_for_registers)
8228         (deprecated_grub_regcache_for_register_valid)
8229         (regcache_valid_p): Add function declarations.
8230         
8231         * regcache.c: Update copyright.
8232         (regcache_descr_handle): New global variable.
8233         (struct regcache_descr): Define.
8234         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8235         (regcache_descr, xfree_regcache_descr): New functions.
8236         (struct regcache): Define.
8237         (regcache_xmalloc, regcache_xfree): New functions.
8238         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8239         (regcache_dup, regcache_dup_no_passthrough): New functions.
8240         (regcache_valid_p, regcache_read_as_address): New functions.
8241         (deprecated_grub_regcache_for_registers): New function.
8242         (deprecated_grub_regcache_for_register_valid): New function.
8243         (current_regcache): New global variable.
8244         (register_buffer): Add regcache parameter.  Update calls.
8245         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8246         (read_register_gen, write_register_gen): Update register_buffer
8247         call.  Test for legacy_p instead of gdbarch_register_read_p or
8248         gdbarch_register_write_p.
8249         (regcache_collect): Update register_buffer call.
8250         (build_regcache): Rewrite.  Use deprecated grub functions.
8251         (regcache_save, regcache_save_no_passthrough): New functions.
8252         (regcache_restore, regcache_restore_no_passthrough): New
8253         functions.
8254         (_initialize_regcache): Create the regcache_data_handle. Swap
8255         current_regcache global variable.
8256         
8257         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8258         parameter to regcache_read and regcache_write calls.
8259         (sh4_register_read): Ditto.
8260         (sh64_pseudo_register_read): Ditto.
8261         (sh64_register_read): Ditto.
8262         (sh_pseudo_register_write): Ditto.
8263         (sh4_register_write): Ditto.
8264         (sh64_pseudo_register_write): Ditto.
8265         (sh64_register_write): Ditto.
8266
8267         * defs.h (XCALLOC): Define.
8268
8269 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8270
8271         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8272         * m68k-tdep.c (m68k_gdbarch_init): Added.
8273         (m68k_dump_tdep): Added.
8274
8275 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8276
8277         * ada-lang.c (fill_in_ada_prototype): Update comment.
8278
8279 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8280
8281         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8282         MIPS_ABI_LAST.
8283         (mips_abi_string, mips_abi_strings): New.
8284         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8285         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8286         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8287         O32 if no ABI is found.
8288         (mips_dump_tdep): Use mips_abi_strings.
8289         (mips_abi_update): New function.
8290         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8291         ``set mips abi'' and ``show mips abi''.  Check the size of
8292         mips_abi_strings.
8293
8294 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8295
8296         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8297         constant.
8298
8299 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8300
8301         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8302         current frame using only the first stack size adjustment. All
8303         subsequent size adjustments are not considered to be part of
8304         the "static" part of the current frame.
8305         Compute the address of the saved registers relative to the
8306         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8307         in use in this frame.
8308
8309 2002-06-18  Don Howard  <dhoward@redhat.com>
8310  
8311         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8312         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8313         suggesting this solution.
8314
8315 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8316
8317         * config/romp/xm-rtbsd.h: Delete file.
8318         * config/romp/rtbsd.mh: Delete file.
8319
8320 2002-06-18  Keith Seitz  <keiths@redhat.com>
8321
8322         * breakpoint.c (condition_command): Post breakpoint_modify
8323         when a condition is added to an existing breakpoint.
8324         (commands_command): Likewise for commands.
8325         (set_ignore_count): Likewise for ignore counts.
8326         If no tty, do not simply return, still need to send event
8327         notification.
8328         (ignore_command): Only print a newline if the command came
8329         from a tty.
8330         Don't call breakpoints_changed, since this is now properly
8331         handled by set_ignore_count.
8332
8333 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8334
8335         * MAINTAINERS: Note that cris-elf target can be compiled with
8336         -Werror.
8337         * cris-tdep.c (cris_register_name): Make return type constant.
8338         (cris_breakpoint_from_pc): Ditto.
8339
8340 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8341
8342         * frame.h (struct frame_info): Change type of context to 
8343         'struct context'.
8344
8345 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8346
8347         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8348         pointer.
8349         * gdbarch.h, gdbarch.c: Regenerate.
8350         * config/mips/tm-mips.h (mips_register_name): Update.
8351         * i386-tdep.h (i386_register_name): Update.
8352         * mips-tdep.c (mips_register_name): Update
8353         * alpha-tdep.c (alpha_register_name): Update.
8354         * arch-utils.c (legacy_register_name): Update.
8355         * arch-utils.h (legacy_register_name): Update.
8356         * avr-tdep.c (avr_register_name): Update.
8357         * ia64-tdep.c (ia64_register_name): Update.
8358         * i386-tdep.c (i386_register_name): Update.
8359         * sparc-tdep.c (sparc32_register_name): Update.
8360         (sparc64_register_name): Update.
8361         (sparclite_register_name): Update.
8362         (sparclet_register_name): Update.
8363         * sh-tdep.c (sh_generic_register_name): Update.
8364         (sh_sh_register_name): Update.
8365         (sh_sh3_register_name): Update.
8366         (sh_sh3e_register_name): Update.
8367         (sh_sh_dsp_register_name): Update.
8368         (sh_sh3_dsp_register_name): Update.
8369         (sh_sh4_register_name): Update.
8370         (sh_sh64_register_name): Update.
8371         * s390-tdep.c (s390_register_name): Update.
8372         * rs6000-tdep.c (rs6000_register_name): Update.
8373         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8374         (ns32k_register_name_32382): Update.
8375         * d10v-tdep.c (d10v_ts2_register_name): Update.
8376         (d10v_ts3_register_name): Update.
8377         * xstormy16-tdep.c (xstormy16_register_name): Update.
8378         * vax-tdep.c (vax_register_name): Update.
8379         * v850-tdep.c (v850_register_name): Update.
8380         * m68hc11-tdep.c (m68hc11_register_name): Update.
8381         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8382         (am33_register_name): Update.
8383
8384 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8385
8386         * m68k-tdep.c: Reindented.
8387
8388 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8389
8390         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8391         list of predefined types.
8392
8393 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8394
8395         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8396         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8397         REGISTER_CONVERT_TO_RAW): Remove defines.
8398         (i386_register_virtual_type, i386_register_convertible,
8399         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8400         Remove prototypes.
8401         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8402         macros mentioned above.
8403
8404         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8405         (i386lynx_saved_pc_after_call): Remove prototype.
8406         * i386ly-tdep.c: Include "i386-tdep.h".
8407         (i386lynx_saved_pc_after_call): Make static.  Use
8408         read_memory_nobpt instead of read_memory.  Use
8409         read_memory_unsigned_integer instead of read_memory_integer.
8410         (i386lynx_init_abi): New function.
8411         (i386lynx_coff_osabi_sniffer): New function.
8412         (_initialize_i386bsd_tdep): New function.
8413
8414         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8415         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8416         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8417         (i386_fix_call_dummy): Remove prototype.
8418         * i386-tdep.c (i386_call_dummy_words): New variable.
8419         (i386_gdbarch_init): Adjust for removal of the
8420         macros mentioned above.
8421
8422 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8423
8424         * command.h (add_setshow_auto_boolean_cmd): Replace
8425         add_set_auto_boolean_cmd.
8426         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8427         add_set_auto_boolean_cmd.
8428         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8429         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8430         mask-address'' command.
8431         (show_mask_address): Add cmd parameter.
8432         * remote.c (add_packet_config_cmd): Update.  Change type of
8433         set_func and show_func to cmd_sfunc_ftype.
8434         (_initialize_remote): Update `set remote Z-packet'
8435         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8436         (show_remote_protocol_e_packet_cmd): Ditto.
8437         (show_remote_protocol_E_packet_cmd): Ditto.
8438         (show_remote_protocol_P_packet_cmd): Ditto.
8439         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8440         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8441         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8442         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8443         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8444         (show_remote_protocol_Z_packet_cmd): Ditto.
8445         (show_remote_protocol_binary_download_cmd): Ditto.
8446         (show_remote_cmd): Pass NULL to all of above.
8447
8448 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8449
8450         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8451         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8452         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8453         POP_FRAME): Remove defines.
8454         (i386_push_arguments, i386_store_struct_return,
8455         i386_extract_return_value, i386_store_return_value,
8456         i386_extract_struct_value_address, i386_push_dummy_frame,
8457         i386_pop_frame): Renove prototypes.
8458         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8459         macros mentioned above.
8460
8461 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8462
8463         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8464         add_set_boolean_cmd.
8465         (add_setshow_cmd): New function.
8466         * command.h (add_setshow_boolean_cmd): Replace
8467         add_set_boolean_cmd.
8468         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8469         and ``set rdiromatzero''.
8470         * maint.c (_initialize_maint_cmds): Update commented out code.
8471         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8472         * target.c (initialize_targets): Update `set
8473         trust-readonly-sections'.
8474         * remote.c (_initialize_remote): Update `set remotebreak'.
8475
8476 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8477
8478         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8479         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8480         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8481         fit into multi-arch framework.
8482         (i386_breakpoint_from_pc): New function.
8483         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8484         above.
8485
8486         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8487         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8488         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8489         (i386_frameless_function_invocation, i386_frame_num_args,
8490         i386_frame_init_saved_regs): Remove prototypes.
8491         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8492         macros mentioned above.
8493
8494 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8495
8496         * cli/cli-decode.c (set_cmd_cfunc): Update.
8497         (set_cmd_sfunc): Update.
8498         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8499         (set_cmd_sfunc, set_cmd_cfunc): Update.
8500         * cli/cli-decode.h: Update.
8501
8502 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8503
8504         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8505         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8506
8507 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8508
8509         * defs.h (auto_boolean): Declare enum.
8510         * command.h (cmd_auto_boolean): Delete enum.
8511         * mips-tdep.c (mask_address_var): Update.
8512         (mips_mask_address_p): Update.
8513         (show_mask_address): Update.
8514         * remote.c (struct packet_config): Update.
8515         (update_packet_config): Update.
8516         (show_packet_config_cmd): Update.
8517         (packet_ok): Update.
8518         (add_packet_config_cmd): Update.
8519         (_initialize_remote): 
8520         * command.h: Update.
8521         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8522         (do_setshow_command): Update.
8523         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8524         * cli/cli-decode.h: Update.
8525
8526 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8527
8528         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8529         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8530         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8531         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8532         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8533         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8534
8535         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8536         list of DJGPP COFF targets.
8537
8538         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8539         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8540         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8541         (FP0_REGNUM): Remove define.
8542         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8543         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8544         (i386_register_virtual_size): Remove protoype.
8545         * i386-tdep.c (i386_register_virtual_size): Removed.
8546         (i386_extract_return_value, i386_store_return_value): Use
8547         FP0_REGNUM instead of NUM_FREGS to determine whether the
8548         floating-point registers are available.
8549         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8550         Adjust for removal of macros mentioned above.
8551
8552 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8553
8554         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8555         comments.
8556         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8557         Remove prototypes.
8558         (supply_gregset, fill_gregset): Remove use of register keyword and
8559         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8560         NUM_REGS and NUM_FREGS.
8561         (FPREGSET_FSAVE_OFFSET): Remove.
8562         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8563         NUM_FREGS to determine whether the floating-point registers are
8564         available.
8565
8566         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8567         gnu_store_registers): Replace usage of NUM_GREGS with
8568         I386_NUM_GREGS.
8569
8570         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8571         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8572         usage of NUM_GREGS with I386_NUM_GREGS.
8573
8574         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8575
8576         * i386bsd-nat.c: Include "i386-tdep.h".
8577         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8578         I386_NUM_GREGS.
8579
8580         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8581         and associated comment.  They no longer make any sense, since we
8582         don't use this file anymore on Linux.
8583
8584         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8585         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8586         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8587         elements in these arrays.
8588         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8589         MAX_NUM_REGS.
8590
8591 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8592
8593         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8594         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8595
8596 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8597
8598         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8599         EXTRACT_RETURN_VALUE.
8600         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8601         EXTRACT_STRUCT_VALUE_ADDRESS.
8602         * gdbarch.h, gdbarch.c: Regenerate.
8603         
8604         * values.c (value_being_returned): Handle
8605         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8606         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8607
8608         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8609         * arm-tdep.c (arm_gdbarch_init): Update.
8610         * avr-tdep.c (avr_gdbarch_init): Update.
8611         * cris-tdep.c (cris_gdbarch_init): Update.
8612         * d10v-tdep.c (d10v_gdbarch_init): Update.
8613         * ia64-tdep.c (ia64_gdbarch_init): Update.
8614         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8615         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8616         * s390-tdep.c (s390_gdbarch_init): Update.
8617         * sh-tdep.c (sh_gdbarch_init): Update.
8618         * s390-tdep.c (s390_gdbarch_init): Update.
8619         * sparc-tdep.c (sparc_gdbarch_init): Update.
8620         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8621         * v850-tdep.c (v850_gdbarch_init): Update.
8622         * vax-tdep.c (vax_gdbarch_init): Update.
8623         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8624         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8625
8626         * config/arc/tm-arc.h: Update.
8627         * config/d30v/tm-d30v.h: Update.
8628         * config/fr30/tm-fr30.h: Update.
8629         * config/h8300/tm-h8300.h: Update.
8630         * config/h8500/tm-h8500.h: Update.
8631         * config/i386/tm-i386.h: Update.
8632         * config/i386/tm-ptx.h: Update.
8633         * config/i386/tm-symmetry.h: Update.
8634         * config/i960/tm-i960.h: Update.
8635         * config/m32r/tm-m32r.h: Update.
8636         * config/m68k/tm-delta68.h: Update.
8637         * config/m68k/tm-linux.h: Update.
8638         * config/m68k/tm-m68k.h: Update.
8639         * config/m88k/tm-m88k.h: Update.
8640         * config/mcore/tm-mcore.h: Update.
8641         * config/mips/tm-mips.h: Update.
8642         * config/mn10200/tm-mn10200.h: Update.
8643         * config/pa/tm-hppa.h: Update.
8644         * config/pa/tm-hppa64.h: Update.
8645         * config/sparc/tm-sp64.h: Update.
8646         * config/sparc/tm-sparc.h: Update.
8647         * config/sparc/tm-sparclet.h: Update.
8648         * config/z8k/tm-z8k.h: Update.
8649
8650 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8651
8652         * Makefile.in (i386_linux_tdep_h): Define.
8653         (i386_tdep_h, i387_tdep_h): Define.
8654         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8655         $(i386_tdep_h) and $(i387_tdep_h).
8656         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8657
8658 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8659
8660         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8661         Already covered by the default.
8662
8663         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8664         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8665         (i386_gdbarch_init): Initialize long_double_format and long_double
8666         bit.
8667
8668         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8669         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8670         Move these to ...
8671         * config/i386/i386sol2.mh: ... here.
8672         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8673         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8674         (SIGCONTEXT_PC_OFFSET): Remove define.
8675         (IN_SIGTRAMP): Remove define.
8676         * i386-sol2-tdep.c: New file.
8677         
8678         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8679         * config/i386/tm-i386nw.h: Removed.
8680
8681         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8682         USE_STRUCT_CONVENTION): Remove defines.
8683         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8684         (get_longjmp_target): Remove prototype.
8685         (IN_SIGTRAMP): Remove define.
8686         (i386bsd_in_sigtramp): Remove prototype.
8687         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8688         function.  Update comment accordingly
8689         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8690         (FRAME_SAVED_PC): Remove define.
8691         (i386bsd_frame_saved_pc): Remove prototype.
8692         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8693         GET_LONGJMP_TARGET): Remove defines.
8694         (get_longjmp_target): Remove prototype.
8695         (IN_SIGTRAMP): Remove define.
8696         (i386bsd_in_sigtramp): Remove prototype.
8697         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8698         function.  Update comment accordingly
8699         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8700         (FRAME_SAVED_PC): Remove define.
8701         (i386bsd_frame_saved_pc): Remove prototype.
8702         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8703         Remove prototype.
8704         (USE_STRUCT_CONVENTION): Remove prototype.
8705         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8706         declaration.
8707         (_initialize_i386bsd_nat): Revise logic to determine some
8708         constants at compile time when compiling a native GDB.  Warn if
8709         things don't match up with what we expect.
8710         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8711         Remove variables.
8712         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8713         to use date stored in `struct gdbarch_tdep'.
8714         (i386bsd_sigcontext_offset): Remove varaible.
8715         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8716         stored in `struct gdbarch_tdep'.
8717         (i386bsd_frame_saved_pc): Make static.
8718         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8719         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8720         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8721         i386fbsd4_sc_pc_offset): New variables.
8722         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8723         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8724         functions.
8725         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8726         functions.
8727         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8728         Modify the value of i386fbsd_sigtramp_start and
8729         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8730         i386fbsd_sigtramp_end.
8731         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8732         function.
8733
8734         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8735         define to i386-linux-tdep.h.
8736         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8737         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8738         defines.
8739         (i386_linux_register_name, i386_linux_register_byte,
8740         i386_linux_register_raw_size): Remove prototypes.
8741         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8742         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8743         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8744         TARGET_WRITE_PC): Remove defines.
8745         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8746         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8747         i386_linux_write_pc): Remove prototypes.
8748         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8749         (get_longjmp_target): Remove prototype.
8750         * i386-linux-tdep.h: New file.
8751         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8752         * i386-linux-tdep.c: Include "i386-tdep.h" and
8753         "i386-linux-tdep.h".
8754         (i386_linux_register_name, i386_linux_register_byte,
8755         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8756         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8757         Make static.
8758         (i386_linux_init_abi): New function.
8759         (_initialize_i386_linux_tdep): New function.
8760
8761         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8762         (i386_saved_pc_after_call): Remove prototype.
8763         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8764         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8765         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8766         (i386_register_name, i386_stab_reg_to_regnum,
8767         i386_dwarf_reg_to_regnum): Remove prototypes.
8768         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8769         SIZEOF_SSE_REGS): Remove defines.
8770         (REGISTER_BYTES): Remove define.
8771         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8772         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8773         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8774         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8775         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8776         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8777         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8778         (get_longjmp_target): Remove prototype.
8779         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8780         (sigtramp_saved_pc): Remove define.
8781         (i386v4_sigtramp_saved_pc): Remove prototype.
8782         * config/i386/tm-go32.h (FRAME_CHAIN,
8783         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8784         (i386go32_frame_saved_pc): Remove prototype.
8785         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8786         (get_longjmp_target): Remove prototype.
8787         * i386-tdep.h: Include "osabi.h".
8788         (enum i386_abi): Removed.
8789         (enum struct_return): New enum.
8790         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8791         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8792         sc_pc_offset members.
8793         (i386_gdbarch_register_os_abi): Remove prototype.
8794         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8795         I386_SSE_NUM_REGS): New defines.
8796         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8797         I386_SSE_SIZEOF_REGS): New defines.
8798         (i386_register_name, i386_register_byte, i386_register_raw_size):
8799         New prototypes.
8800         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8801         (i386bsd_sigtramp_saved_pc): New prototype.
8802         * i386-tdep.c: Don't include "elf-bfd.h".
8803         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8804         i386_frame_chain, i386_saved_pc_after_call): Make static.
8805         (i386_frame_saved_pc): Rewrite to call architecture dependent
8806         function to deal with signal handlers.  Make static.
8807         (i386go32_frame_saved_pc): Removed.
8808         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8809         Removed.
8810         (i386_get_longjmp_target): New function.
8811         (default_struct_convention, pcc_struct_convention,
8812         reg_struct_convention, valid_conventions, struct_convention): New
8813         variables.
8814         (i386_use_struct_convention): New function.
8815         (i386v4_sigtramp_saved_pc): Renamed to
8816         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8817         (i386_pc_in_sigtramp): New function.
8818         (i386_abi_names): Removed.
8819         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8820         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8821         Removed.
8822         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8823         i386_gdbarch_register_os_abi): Removed.
8824         (struct i386_abi_handler): Removed.
8825         (i386_abi_handler_list): Removed.
8826         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8827         functions.
8828         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8829         i386_nw_init_abi): New functions.
8830         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8831         Use set_gdbarch_xxx() calls instead of relying on macros for a
8832         number of calls.
8833         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8834         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8835         Register the various architecture variants defined in this file.
8836
8837 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8838
8839         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8840         (struct main_type): Remove arg_types member.  Update comments for
8841         struct field.
8842         (TYPE_ARG_TYPES): Remove.
8843         (TYPE_FN_FIELD_ARGS): Update.
8844         (smash_to_method_type): Update prototype.
8845
8846         * c-typeprint.c (cp_type_print_method_args): Take method type
8847         instead of argument list.  Use new argument layout.  Simplify.
8848         (c_type_print_args): Use new argument layout.  Simplify.
8849         (c_type_print_base): Update call to cp_type_print_method_args.
8850         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8851         argument; use die->type instead.  Update call to
8852         smash_to_method_type.
8853         (read_structure_scope): Update call to dwarf2_add_member_fn.
8854         * gdbtypes.c (allocate_stub_method): Update comment.
8855         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8856         Use new argument layout.
8857         (check_stub_method): Use new argument layout.  Don't count
8858         void as an argument.
8859         (print_arg_types): Update comments.  Use new argument layout.
8860         (recursive_dump_type): Don't print arg_types member.
8861         * hpread.c (hpread_read_struct_type): Use new argument layout.
8862         (fixup_class_method_type): Likewise.
8863         (hpread_type_lookup): Likewise.
8864         * stabsread.c (read_type): Update calls to read_args and
8865         smash_to_method_type.
8866         (read_args): Use new argument layout.  Simplify.
8867         * valops.c (typecmp): Use new argument layout.  Update parameters
8868         and comments.  Simplify.
8869         (hand_function_call): Use new argument layout.
8870         (search_struct_method): Update call to typecmp.
8871         (find_overload_match): Use new argument layout.
8872
8873 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8874
8875         * NEWS: Mention multithreaded debug support for gdbserver.
8876
8877 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8878
8879         * MAINTAINERS: Mention NEWS.
8880
8881 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8882
8883         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8884         (struct mips_objfile_private, compare_pdr_entries): New.
8885         (non_heuristic_proc_desc): Read the ".pdr" section if it
8886         is present.
8887
8888 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8889
8890         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8891         (arm_debug): New static variable.
8892         (_initialize_arm_tdep): Add ``set debug arm'' command.
8893
8894 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8895
8896         * Makefile.in (sim_arm_h): Define.
8897         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8898         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8899         (arm_register_sim_regno): New function, map an internal REGNUM
8900         onto a simulator register number.
8901         (arm_gdbarch_init): Set register_sim_regno.
8902
8903 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8904
8905         * MAINTAINERS: Add self.
8906
8907 2002-06-11  Jim Blandy  <jimb@redhat.com>
8908
8909         * source.c (source_info): Mention whether the symtab has
8910         information about preprocessor macros.
8911
8912         Call the command `info macro', not `show macro'.
8913         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8914         Fix error message.
8915         (_initialize_macrocmd): Register `info_macro_command' in
8916         `infolist', not `showlist'.
8917
8918 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8919
8920         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8921         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8922         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8923         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8924         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8925         unconditionally.
8926         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8927         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8928         (_initialize_mips_tdep): Remove dead code.
8929         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8930         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8931         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8932         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8933         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8934         MIPS_LAST_FP_ARG_REGNUM): Remove.
8935
8936 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8937
8938         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8939         (unwind_tmp_obstack_free, parse_frame_info)
8940         (update_context, cfi_read_fp, cfi_write_fp)
8941         (cfi_frame_chain, cfi_init_extra_frame_info)
8942         (cfi_virtual_frame_pointer): Use the above function.
8943         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8944
8945 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8946
8947         * v850-tdep.c (v850_type_is_scalar): New function.
8948         (v850_use_struct_convention): Match current gcc implementation
8949         as close as possible.
8950         (v850_push_arguments): Fix stack_offset handling.  Don't write
8951         struct_addr into register.  This is done by v850_store_struct_return.
8952         (v850_extract_return_value): Care for structs.
8953         (v850_store_return_value): Ditto.
8954         (v850_store_struct_return): Actually write address.
8955
8956 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8957
8958         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8959         without debug information too.
8960
8961 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8962
8963         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8964         Make multi-arch pure.
8965         * gdbarch.h, gdbarch.c: Re-generate.
8966         * arm-tdep.c (arm_print_float_info): Update.
8967         * arch-utils.h (default_print_float_info): Update.
8968         * arch-utils.c (default_print_float_info): Update.
8969         * infcmd.c (float_info): Update call.
8970
8971 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8972
8973         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8974         the front of the initialize list.
8975
8976 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8977
8978         * infrun.c (struct inferior_status): Replace fields
8979         selected_frame_address and selected_level with field
8980         selected_frame_id.
8981         (save_inferior_status): Update.  Use get_frame_id.
8982         (struct restore_selected_frame_args): Delete.
8983         (restore_selected_frame): Update.  Use frame_find_by_id.
8984         (restore_inferior_status): Update.
8985
8986         * breakpoint.h (struct breakpoint): Change type of
8987         watchpoint_frame to frame_id.
8988         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8989         call to get_current_frame.
8990         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8991         get_current_frame.
8992         (watchpoint_check): Use frame_find_by_id.
8993
8994         * frame.h (record_selected_frame): Delete declaration.
8995         * stack.c (record_selected_frame): Delete function.
8996         
8997         * frame.h (struct frame_id): Define.
8998         (get_frame_id): Declare.
8999         (frame_find_by_id): Declare.
9000         * frame.c (frame_find_by_id): New function.
9001         (get_frame_id): New function.
9002
9003 2002-06-10  Andrey Volkov <avolkov@transas.com>
9004
9005         * ser-e7kpc.c: Fix duplicated define and call of 
9006         _initialize_ser_e7000pc
9007             
9008 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9009
9010         * signals/signals.c (target_signal_from_host): Fix #ifdef
9011         SIGRTMIN case.
9012         (do_target_signal_to_host): Likewise.
9013
9014 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9015
9016         * mips-tdep.c (mips_find_abi_section): New function.
9017         (mips_gdbarch_init): Call it.
9018
9019 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9020
9021         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9022         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9023         after Andrew's 2002-06-08 gdbarch change.
9024
9025 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9026
9027         * i386-linux-nat.c (suppy_gregset): Don't supply
9028         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9029         register cache.
9030         (fill_gregset): Don't fetch it under the same circumstances.
9031
9032 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9033
9034         * Makefile.in (callback_h): Define.
9035         (remote_sim_h): Update path to remote-sim.h.
9036         (remote-rdp.o): Add $(callback_h).
9037         (remote-sim.o): Use $(callback_h).
9038         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9039         * remote-rdp.c: Include "gdb/callback.h".
9040
9041 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9042
9043         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9044         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9045
9046 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9047
9048         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9049         * rdi-share/serpardr.c: Ditto.
9050         * rdi-share/unixcomm.c: Ditto.
9051         * rdi-share/serdrv.c: Ditto.
9052         * rdi-share/hostchan.h: Ditto.
9053         * rdi-share/hostchan.c: Ditto.
9054         * rdi-share/host.h: Ditto.
9055         * rdi-share/devsw.c: Ditto.
9056
9057         * objfiles.h: Change type of obj_private to void pointer.
9058         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9059         strcmp instead of STREQ, use LONGEST, do not use PTR
9060         * somsolib.c: Ditto.
9061
9062         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9063         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9064         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9065
9066 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9067
9068         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9069         (default_get_saved_register): Delete function.
9070         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9071         generic_unwind_get_saved_register.
9072         * gdbarch.h, gdbarch.c: Re-generate.
9073         
9074 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9075
9076         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9077         generic_func_frame_chain_valid.
9078         * gdbarch.h, gdbarch.c: Re-generate.
9079         * blockframe.c (generic_func_frame_chain_valid): Only check
9080         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9081         passing FP to PC_IN_CALL_DUMMY.
9082         Fix PR gdb/360.
9083
9084 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9085
9086         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9087         (register_gdbarch_data): Initialize init_p.
9088         (gdbarch_data): Initialize data pointer using the init function.
9089         (init_gdbarch_data): Delete function.
9090         (gdbarch_update_p): Update.
9091         (initialize_non_multiarch): Update.
9092         (struct gdbarch): Add field initialized_p.
9093         * gdbarch.h, gdbarch.c: Re-generate.
9094
9095 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9096
9097         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9098         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9099         better do the things actually here.
9100         * x86-64-tdep.c (x86_64_register_name2nr): New.
9101         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9102         (x86_64_gdbarch_init): Respect the above change.
9103         * x86-64-tdep.h (x86_64_register_name2nr)
9104         (x86_64_register_nr2name): Add prototypes.
9105         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9106
9107 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9108
9109         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9110         Delete extra braces and re-indent.
9111         (d10v_store_return_value): Char return values
9112         must be shifted over by one byte in R0.
9113         (d10v_extract_return_value): Delete extra braces, re-indent.
9114
9115 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9116
9117         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9118         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9119         (d10v_integer_to_address): Rewrite.
9120         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9121         the d10v specific functions which take care of converting to the
9122         correct space.
9123
9124 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9125
9126         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9127         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9128
9129 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9130
9131         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9132         includes.
9133         * config/tm-linux.h: Ditto.
9134         * config/alpha/tm-alphalinux.h: Ditto.
9135         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9136         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9137         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9138         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9139         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9140         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9141         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9142         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9143         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9144         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9145         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9146         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9147         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9148         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9149         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9150         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9151         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9152         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9153         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9154         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9155         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9156         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9157         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9158         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9159         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9160         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9161         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9162         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9163         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9164         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9165         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9166         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9167         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9168         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9169         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9170         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9171         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9172
9173 2002-05-04  Aidan Skinner <aidan@velvet.net>
9174
9175         * ada-exp.tab.c: New file
9176         * ada-exp.y: New file
9177         * ada-lang.c: New file
9178         * ada-lang.h: New file
9179         * ada-lex.c: New file
9180         * ada-lex.l: New file
9181         * ada-tasks.c: New file
9182         * ada-typeprint.c: New file
9183         * ada-valprint.c: New file
9184         
9185 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9186
9187         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9188         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9189
9190 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9191
9192         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9193         insetead of ppc-linux-tdep.o.
9194         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9195         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9196
9197 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9198
9199         2002-05-07 Christian Groessler <chris@groessler.org>
9200         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9201         bit register contents for little endian hosts.
9202
9203 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9204
9205         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9206         any maintainer.
9207
9208 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9209
9210         * gdbarch.h: Regenerate.
9211
9212 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9213
9214         * MAINTAINERS: Add everyone to write-after-approval list.
9215
9216 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9217
9218         * stack.c (frame_info): Use frame_register_unwind instead of
9219         saved_regs.  Mention when the SP is on the stack or in a register.
9220
9221         * frame.h (frame_register_unwind_ftype): Define.  Document.
9222         (struct frame_info): Add field register_unwind and
9223         register_unwind_cache.
9224         (frame_register_unwind): Declare.
9225         (generic_unwind_get_saved_register): Declare.
9226
9227         * frame.c (frame_register_unwind): New function.
9228         (generic_unwind_get_saved_register): New function.
9229
9230         * blockframe.c (generic_call_dummy_register_unwind): New function.
9231         (frame_saved_regs_register_unwind): New function.
9232         (set_unwind_by_pc): New function.
9233         (create_new_frame): New function.
9234         (get_prev_frame): New function.
9235
9236 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9237
9238         * a29k-share/: Delete directory.
9239         * remote-vx29k.c: Delete file.
9240
9241 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9242
9243         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9244         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9245
9246 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9247
9248         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9249         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9250         (sparc64nbsd-nat.o)
9251         (sparcnbsd-nat.o)
9252         (sparcnbsd-tdep.o): New dependency lists.
9253         * NEWS: Note new UltraSPARC NetBSD native configuration.
9254         * configure.host (sparc64-*-netbsd*): New host.
9255         * configure.tgt (sparc-*-netbsdelf*)
9256         (sparc-*-netbsd*): Set gdb_target to nbsd.
9257         (sparc64-*-netbsd*): New target.
9258         * sparc64nbsd-nat.c: New file.
9259         * sparcnbsd-nat.c: New file.
9260         * sparcnbsd-tdep.c: New file.
9261         * sparcnbsd-tdep.h: New file.
9262         * config/sparc/nbsd.mt: New file.
9263         * config/sparc/nbsd64.mh: New file.
9264         * config/sparc/nbsd64.mt: New file.
9265         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9266         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9267         (HOST_IPC): Remove.
9268         * config/sparc/nbsdaout.mt: Remove.
9269         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9270         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9271         (HOST_IPC): Remove.
9272         * config/sparc/nbsdelf.mt: Remove.
9273         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9274         sparc-nat.c compatiblity defines.
9275         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9276         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9277         * config/sparc/tm-nbsd64.h: New file.
9278         * config/sparc/tm-nbsdaout.h: Remove.
9279         * config/sparc/xm-nbsd.h: Remove.
9280
9281 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9282
9283         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9284         * sparc-tdep.c: Include osabi.h.
9285         (gdbarch_tdep): Add osabi member.
9286         (_initialize_sparc_tdep): Use gdbarch_register.
9287         (sparc_gdbarch_init): Use generic OS ABI framework.
9288         (sparc_dump_tdep): New function.
9289
9290 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9291
9292         * corefile.c (do_captured_read_memory_integer): Return non-zero
9293         result.
9294         (safe_read_memory_integer): Copy result of memory read when
9295         status is non-zero.  Also, add comments.
9296
9297 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9298
9299         * Makefile.in (ppc_tdep_h): Define.
9300         (ppc-linux-nat.o)
9301         (ppc-linux-tdep.o)
9302         (rs6000-tdep.o): Use $(ppc_tdep_h).
9303         (ppc-sysv-tdep.o)
9304         (ppcnbsd-nat.o)
9305         (ppcnbsd-tdep.o): New dependency lists.
9306         * ppc-tdep.h: Use generic OS ABI framework.
9307         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9308         (ppc_linux_init_abi): New functions.
9309         (ppc_sysv_abi_broken_use_struct_convention)
9310         (ppc_sysv_abi_use_struct_convention)
9311         (ppc_sysv_abi_push_arguments): Move to...
9312         * ppc-sysv-tdep.c: ...here.
9313         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9314         * rs6000-tdep.c (process_note_abi_tag_sections)
9315         (get_elfosabi): Remove.
9316         (rs6000_gdbarch_init): Use generic OS ABI framework.
9317         (rs6000_dump_tdep): New function.
9318         (_initialize_rs6000_tdep): Use gdbarch_register.
9319         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9320         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9321         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9322         of ppc-linux-tdep.o.
9323         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9324         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9325         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9326         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9327         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9328         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9329
9330 2002-05-29  Jim Blandy  <jimb@redhat.com>
9331
9332         * macroscope.c (default_macro_scope): Put `void' in empty argument
9333         list.
9334
9335 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9336
9337         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9338         * arch-utils.c: Include "sim-regno.h".
9339         * gdbarch.sh: Don't include "sim-regno.h".
9340         * gdbarch.h, gdbarch.c: Regenerate.
9341         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9342         here.
9343         * arch-utils.h (legacy_register_sim_regno): To here.
9344         * remote-sim.c (legacy_register_sim_regno): Move function from
9345         here.
9346         * arch-utils.c (legacy_register_sim_regno): To here.
9347
9348 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9349
9350         * sim-regno.h: New file.
9351         * Makefile.in (sim_regno_h): Define.
9352         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9353         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9354         (legacy_register_sim_regno): New function.
9355         (one2one_register_sim_regno): New function.
9356         (gdbsim_fetch_register): Rewrite.
9357         (gdbsim_store_register): Only store a register when
9358         REGISTER_SIM_REGNO is valid.
9359         * d10v-tdep.c: Include "sim-regno.h".
9360         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9361         (d10v_ts3_register_sim_regno): Ditto.
9362         * gdbarch.sh: Include "sim-regno.h".
9363         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9364         * gdbarch.h, gdbarch.c: Regenerate.
9365         * arch-utils.h (default_register_sim_regno): Delete declaration.
9366         * arch-utils.c (default_register_sim_regno): Delete function.
9367
9368 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9369
9370         * ppcnbsd-nat.c: Rewrite.
9371         * ppcnbsd-tdep.c: New file.
9372         * ppcnbsd-tdep.h: New file.
9373         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9374         solib.o, and solib-svr4.o.
9375         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9376         nbsd-tdep.o, and corelow.o.
9377
9378 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9379
9380         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9381         `tr' and `sed'.  Mention that `broken' targets are not expected to
9382         build.
9383
9384 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9385
9386         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9387         Let PC point right after the prologue before looking up symbols.
9388         
9389 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9390
9391         * i386-tdep.c (i386_register_virtual_type): Return 
9392         builtin_type_vec128i for SSE registers.
9393
9394         * gdbtypes.h (builtin_type_vec128i): Declare.
9395
9396         * gdbtypes.c (build_builtin_type_vec128i): New function.
9397         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9398         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9399         (build_gdbtypes): Initialize new builtin vector types.
9400         (_initialize_gdbtypes): Register new vector types with gdbarch.
9401
9402 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9403
9404         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9405         since it has been multi-arch'd.
9406         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9407         Move Alpha and VAX multi-arch news entries to same section
9408         as other multi-arch news.
9409
9410 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9411
9412         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9413         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9414         static.  Rename some register numbers to put them in ns32k-tdep
9415         private namespace.
9416         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9417         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9418         functions.
9419         (_initialize_ns32k_tdep): Use gdbarch_register.
9420         * ns32k-tdep.h: New file.
9421         * ns32knbsd-tdep.c: New file.
9422         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9423         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9424         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9425         REGISTER_BYTES, REGISTER_BYTE): Remove.
9426         * config/ns32k/tm-ns32k.h: New file.
9427         * config/ns32k/tm-umax.h: Remove.
9428
9429 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9430
9431         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9432         ns32k_store_struct_return, ns32k_extract_return_value,
9433         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9434         functions.
9435         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9436         ns32k_saved_pc_after_call.
9437         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9438         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9439         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9440         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9441         ns32k_extract_struct_value_address.
9442
9443 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9444
9445         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9446         ns32k_fix_call_dummy): New.
9447         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9448         ns32k_call_dummy_words.
9449         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9450         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9451         CALL_DUMMY_NARGS): Remove.
9452         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9453
9454 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9455
9456         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9457         ns32k_frame_saved_pc, ns32k_frame_args_address,
9458         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9459         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9460         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9461         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9462         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9463         (BREAKPOINT): Remove..
9464         (FRAME_CHAIN): Define as ns32k_frame_chain.
9465         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9466         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9467         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9468         (FRAME_FIND_SAVED_REGS): Remove.
9469         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9470         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9471         (POP_FRAME): Define as ns32k_pop_frame.
9472
9473 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9474
9475         * ns32k-tdep.c (ns32k_register_byte_32082,
9476         ns32k_register_byte_32382, ns32k_register_raw_size,
9477         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9478         functions.
9479         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9480         ns32k_register_byte_32382.
9481         * config/ns32k/tm-umax.h: Update copyright years.
9482         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9483         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9484         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9485         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9486         (ns32k_get_enter_addr): Fix prototype.
9487
9488 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9489
9490         * ns32k-tdep.c: Update copyright years.
9491         (ns32k_register_name_32082): New function.
9492         (ns32k_register_name_32382): Ditto.
9493         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9494         (REGISTER_NAME): Define as ns32k_register_name_32382.
9495         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9496         (REGISTER_NAME): Define as ns32k_register_name_32082.
9497
9498 2002-05-24  Jim Blandy  <jimb@redhat.com>
9499
9500         * dwarf2read.c (free_line_header): Use xfree, not free.
9501
9502 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9503
9504         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9505         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9506
9507 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9508
9509         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9510
9511 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9512
9513         From Ross Alexander at NEC Europe:
9514         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9515
9516 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9517
9518         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9519         for input, rather than parse_and_eval_address.  
9520
9521 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9522
9523         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9524         * Makefile.in (sim_d10v_h): Update definition.
9525
9526 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9527
9528         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9529         change `2002-05-22 Michael Snyder' below.
9530         (d10v_push_arguments): Ditto.
9531         (d10v_extract_return_value): Ditto.
9532
9533 2002-05-23  Jim Blandy  <jimb@redhat.com>
9534
9535         * macrotab.c (check_for_redefinition): Don't complain if the new
9536         definition is the same as the previous one.  Take more arguments
9537         to allow the comparison.
9538         (macro_define_object, macro_define_function): Pass more arguments
9539         to check_for_redefinition.
9540
9541 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9542
9543         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9544         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9545         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9546         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9547         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9548         Add a temp variable to save a call (and a memory read).
9549         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9550         if possible (so that PC_IN_CALL_DUMMY will work).
9551
9552 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9553
9554         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9555
9556 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9557
9558         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9559         fde->cie_ptr.
9560         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9561         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9562         so that frames of shared libraries are mapped correctly.
9563         (execute_stack_op): Change type of 'result' from ULONGEST to
9564         CORE_ADDR.
9565         
9566 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9567
9568         * config/alpha/tm-nbsd.h: Include solib.h.
9569
9570 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9571
9572         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9573         assumptions about the host's byte order.
9574
9575 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9576
9577         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9578         to dependency list.
9579         * alphanbsd-tdep.c: Include solib-svr4.h.
9580         * shnbsd-tdep.c: Ditto.
9581
9582 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9583
9584         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9585         nbsd-tdep.h to dependency list.
9586         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9587         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9588         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9589         nbsdaout.mh and nbsdelf.mh consistently.
9590         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9591         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9592         nbsdaout.mt and nbsdelf.mh consistently.
9593         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9594         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9595         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9596         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9597         a.out shared library stuff from here...
9598         * config/nm-nbsdaout.h: ...to here.
9599         * config/tm-nbsd.h: Remove.
9600         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9601         * config/arm/nbsd.mh: Remove.
9602         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9603         nbsd-tdep.o.
9604         * config/arm/nbsdaout.mh: New file. 
9605         * config/arm/nbsdelf.mh: New file.
9606         * config/arm/nm-nbsdaout.h: New file.
9607         * config/i386/nbsd.mh: Remove.
9608         * config/i386/nbsd.mt: Remove.
9609         * config/i386/nbsdaout.mh: New file.
9610         * config/i386/nbsdaout.mt: New file.
9611         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9612         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9613         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9614         i386_register_u_addr): Remove.
9615         * config/i386/nm-nbsdaout.h: New file.
9616         * config/i386/nm-nbsdelf.h: Remove.
9617         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9618         (USE_STRUCT_CONVENTION): Remove.
9619         * config/i386/tm-nbsdaout.h: New file.
9620         * config/i386/tm-nbsdelf.h: Remove.
9621         * config/m68k/nbsd.mh: Remove.
9622         * config/m68k/nbsd.mt: Remove.
9623         * config/m68k/nbsdaout.mh: New file.
9624         * config/m68k/nbsdaout.mt: New file. 
9625         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9626         * config/m68k/nm-nbsdaout.h: New file.
9627         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9628         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9629         * config/ns32k/nbsd.mh: Remove.
9630         * config/ns32k/nbsd.mt: Remove. 
9631         * config/ns32k/nbsdaout.mh: New file.
9632         * config/ns32k/nbsdaout.mt: New file.
9633         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9634         * config/ns32k/nm-nbsdaout.h: New file.
9635         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9636         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9637         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9638         (SVR4_SHARED_LIBS): Remove.
9639         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9640         * config/sparc/nbsd.mh: Remove.
9641         * config/sparc/nbsd.mt: Remove.
9642         * config/sparc/nbsdaout.mh: New file.
9643         * config/sparc/nbsdaout.mt: New file.
9644         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9645         * config/sparc/nbsdelf.mt: New file.
9646         * config/sparc/nm-nbsdaout.h: New file.   
9647         * config/sparc/nm-nbsdelf.h: Remove.
9648         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9649         * config/sparc/tm-nbsdaout.h: New file.
9650
9651 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9652
9653         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9654         mipsnbsd-tdep.c
9655         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9656
9657 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9658
9659         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9660         shnbsd-nat.c.
9661         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9662
9663 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9664
9665         * NEWS: Note new MIPS NetBSD native configuration. 
9666         * configure.host (mips*-*-netbsd*): New host. 
9667         * configure.tgt (mips*-*-netbsd*): New target. 
9668         * mipsnbsd-nat.c: New file.
9669         * mipsnbsd-tdep.c: New file.
9670         * mipsnbsd-tdep.h: New file.
9671         * config/mips/nbsd.mh: New file.
9672         * config/mips/nbsd.mt: New file.
9673         * config/mips/nm-nbsd.h: New file.
9674         * config/mips/tm-nbsd.h: New file.
9675
9676 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9677
9678         * Makefile.in (SFILES): Add osabi.c.
9679         (COMMON_OBS): Add osabi.o.
9680         (osabi.o): New dependency list.
9681         * osabi.c: New file.
9682         * osabi.h: New file.
9683         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9684
9685         * Makefile.in (alpha_tdep_h): Define and use instead of
9686         alpha-tdep.h.
9687         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9688         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9689         Remove.
9690         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9691         * alpha-tdep.h: Include osabi.h.
9692         (alpha_abi): Remove.
9693         (gdbarch_tdep): Use generic OS ABI framework.
9694         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9695         gdbarch_register_osabi.
9696         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9697         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9698         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9699
9700         * Makefile.in (sh_tdep_h): Add osabi.h.
9701         * sh-tdep.h (sh_osabi): Remove.
9702         (gdbarch_tdep): Use generic OS ABI framework.
9703         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9704         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9705         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9706         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9707
9708         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9709         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9710         gdbarch_register_osabi.
9711         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9712         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9713         (get_elfosabi): Rename to...
9714         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9715         ABI framework support routines.
9716         (arm_gdbarch_init): Use generic OS ABI framework.
9717         (arm_dump_tdep): Likewise.
9718         (_initialize_arm_tdep): Likewise.
9719         * arm-tdep.h: Include osabi.h.
9720         (arm_abi): Remove.
9721         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9722         osabi member.
9723         (arm_gdbarch_register_os_abi): Remove prototype.
9724         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9725         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9726
9727         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9728         * mips-tdep.c: Include osabi.h.
9729         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9730         OS ABI framework.
9731
9732 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9733
9734         * h8300-tdep.c: Fix formatting.
9735
9736 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9737
9738         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9739         printing vector registers.
9740
9741 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9742
9743         From Fernando Nasser:
9744         * remote.c (remote_async_open_1): Re-throw the exception when the
9745         connection fails.
9746         (remote_cisco_open): Ditto.
9747         (remote_open_1): Ditto.
9748
9749 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9750
9751         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9752         (remote_start_remote): Add uiout parameter.  Pass through to
9753         remote_start_remote_dummy.
9754         (remote_open_1): Use catch_exception instead of catch_errors.
9755         (remote_async_open_1): Ditto.
9756         (remote_cisco_open): Ditto.
9757
9758 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9759
9760         * remote.c (remote_start_remote): Replace PTR with void pointer.
9761         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9762         static.
9763
9764 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9765
9766         * gdb_indent.sh: Allow the script to be run in the sim directory.
9767
9768 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9769
9770         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9771         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9772
9773         * corelow.c (core_open): Only call set_gdbarch_from_file if
9774         exec_bfd is NULL.
9775
9776 2002-05-17  Andrey Volkov <avolkov@transas.com>
9777
9778         * h8300-tdep.c: Add support of EXR register
9779         * config/h8300/tm-h8300.h: Ditto. 
9780         
9781 2002-05-17  Andrey Volkov <avolkov@transas.com>
9782
9783         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9784         
9785 2002-05-17  Andrey Volkov <avolkov@transas.com>
9786
9787         * h8300-tdep.c: Change literal regnums to REGNO.
9788         
9789 2002-05-17  Jim Blandy  <jimb@redhat.com>
9790
9791         * NEWS: Note addition of macro support.
9792
9793         Expand preprocessor macros in C expressions.
9794         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9795         (scan_macro_expansion, scanning_macro_expansion,
9796         finished_macro_expansion): New function declarations.
9797         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9798         variable declarations.
9799         * parser-defs.h (expression_context_pc): New declaration.
9800         * parse.c (expression_context_pc): New variable.
9801         (parse_exp_1): Set expression_context_pc, as well as
9802         expression_context_block.
9803         * c-exp.y (yylex): If we're not already reading the result of a
9804         macro expansion, try to macro-expand the next token.  When we're
9805         done scanning a macro expansion, switch back to the mainline text.
9806         Commas and `if's in a macro's expansion don't terminate the input.
9807         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9808         (macro_original_text, macro_expanded_text,
9809         expression_macro_lookup_func, expression_macro_lookup_baton): New
9810         variables.
9811         (scan_macro_expansion, scanning_macro_expansion,
9812         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9813         c_preprocess_and_parse): New functions.
9814         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9815         c_preprocess_and_parse, instead of c_parse.
9816         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9817         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9818
9819 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9820
9821         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9822         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9823         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9824
9825 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9826
9827         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9828
9829 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9830
9831         * Makefile.in (sh_tdep_h): Define and use.
9832         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9833         register enum): Move to...
9834         * * sh-tdep.h: ...here.
9835         * sh-tdep.c: Include sh-tdep.h.
9836         * sh3-rom.c: Likewise.
9837         * shnbsd-tdep.c: Likewise.
9838
9839 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9840
9841         * arm-tdep.c: Spelling fix in comment.
9842
9843 2002-05-16  Jim Blandy  <jimb@redhat.com>
9844
9845         Add commands for manually expanding macros and showing their
9846         definitions.
9847         * macrocmd.c, macroscope.c, macroscope.h: New files.
9848         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9849         (macroscope_h): New variable.
9850         (HFILES_NO_SRCDIR): Add macroscope.h.
9851         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9852         (macroscope.o, macrocmd.o): New rules.
9853
9854         Teach the Dwarf 2 reader to read macro information.
9855         * dwarf2read.c: #include "macrotab.h".
9856         (dwarf_macinfo_buffer): New variable.
9857         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9858         dwarf_macinfo_size.
9859         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9860         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9861         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9862         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9863         dwarf2_macro_spaces_in_definition): New complaints.
9864         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9865         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9866         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9867         the partial symbol table.
9868         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9869         from what's recorded in the partial symbol table.
9870         (read_file_scope): If the compilation unit has a
9871         `DW_AT_macro_info' attribute, read its macro information.
9872         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9873
9874 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9875
9876         Fix PR gdb/546
9877         * ser-tcp.c: Don't include <netinet/udp.h>.
9878
9879 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9880
9881         * MAINTAINERS: Update my email address.
9882
9883 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9884
9885         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9886         include file of the same name.
9887
9888 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9889
9890         * configure.tgt: Mark v850 as multi-arched.
9891         * config/v850/tm-v850.h: Remove file.
9892         * config/v850/v850.mt: Eliminate TM_FILE.
9893
9894 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9895
9896         * v850-tdep.c: Full multi-arch.
9897         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9898         Define GDB_MULTI_ARCH to 2.
9899
9900 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9901
9902         * p-exp.y (current_type): New static variable.
9903         Carries the type of the expression at the position that is parsed.
9904         (push_current_type, pop_current_type): Two new functions. Used
9905         to store/restore current_type in expression on specific tokens.
9906         (search_field): New static variable. Set to one after parsing a point
9907         as at that point only a FIELDNAME token should be searched.
9908         (FIELDNAME): New token. After a point only a token belonging to 
9909         current_type type definition is allowed.
9910         (all over token rules): reset and change current_type according
9911         to rules.
9912         (exp '[' rule): insert implicit array index field if
9913         exp is a pascal string type.
9914
9915 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9916
9917         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9918         frame info.  Use frame_info's saved_regs instead of matching member
9919         in extra_frame_info throughout.
9920         (v850_frame_init_saved_regs): New function.
9921         (v850_init_extra_frame_info): Move most functionality into
9922         v850_frame_init_saved_regs().
9923         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9924         (v850_frame_find_saved_regs): Remove declaration.
9925         (FRAME_FIND_SAVED_REGS): Remove definition.
9926         (v850_frame_init_saved_regs): Add declaration.
9927         (FRAME_INIT_SAVED_REGS): Add definition.
9928
9929 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9930
9931         * v850-tdep.c: Begin multi-arch'ing v850.
9932         (v850_target_architecture_hook): Remove function.
9933         (v850_gdbarch_init): New function.  Add code previously in
9934         v850_target_architecture_hook().
9935         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9936         Call register_gdbarch_init() instead.
9937
9938 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9939
9940         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9941         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9942         (fixup_class_method_type): Likewise.
9943
9944 2002-05-15  Jim Blandy  <jimb@redhat.com>
9945
9946         Add macro structures to GDB's symbol tables.  Nobody puts anything
9947         in them yet.
9948         * symtab.h (struct symtab): New member: `macro_table'.
9949         * buildsym.h (pending_macros): New global variable.
9950         * buildsym.c: #include "macrotab.h".
9951         (buildsym_init): Initialize `pending_macros'.
9952         (end_symtab): If we found macro information while reading a CU's
9953         debugging info, do build a symtab structure for it.  Make the
9954         symtab point to the macro information, and clear the
9955         `pending_macros' pointer which held it while we were reading the
9956         debug info.
9957         (really_free_pendings): Free any pending macro table.
9958         * objfiles.h (struct objfile): New member: `macro_cache'.
9959         * objfiles.c (allocate_objfile): Set allocate and free functions
9960         for the macro cache's objstack.
9961         (free_objfile): Empty the macro cache's obstack.
9962         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9963         set new allocate and free functions for it.
9964         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9965         free functions for the macro cache's objstack.  (Why is this
9966         function building its own objfile?)
9967         * symmisc.c (print_objfile_statistics): Print statistics on the
9968         macro bcache.
9969         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9970
9971 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9972
9973         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9974         (REGISTER_U_ADDR): Delete definition.
9975         (arm_register_u_addr): Delete declaration.
9976
9977 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9978
9979         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9980         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9981
9982 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9983
9984         * regcache.c (register_valid): Revise comments refering to "Not
9985         available" and "unavailable".
9986         * frame.c (frame_register_read): Ditto.
9987         * findvar.c (value_of_register): Ditto.
9988
9989 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9990
9991         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9992         (remote-sim.o): Update dependencies.
9993         (d10v-tdep.o): Specify dependencies.
9994         (sim_d10v_h): Define.
9995
9996 2002-05-14  Jim Blandy  <jimb@redhat.com>
9997
9998         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9999         * macrotab.c (macro_lookup_inclusion, find_definition,
10000         new_macro_table): Same.
10001         
10002         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10003         not `! strcmp ()'.  This is a dubious improvement.
10004         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10005
10006         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10007         although it's not necessary, to avoid a warning.
10008
10009 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10010
10011         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10012         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10013         TYPE_INSTANCE_FLAGS.
10014         (struct main_type): New.
10015         (struct type): Move most members to struct main_type.  Change
10016         cv_type and as_type to new type_chain member.  Add instance_flags.
10017         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10018         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10019         (finish_cv_type): Remove prototype.
10020         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10021         Set TYPE_CHAIN.
10022         (alloc_type_instance): New function.
10023         (smash_type): New function.
10024         (make_pointer_type, make_reference_type, make_function_type)
10025         (smash_to_member_type, smash_to_method_type): Call smash_type.
10026         (make_qualified_type): New function.
10027         (make_type_with_address_space): Call make_qualified_type.
10028         (make_cv_type): Likewise.
10029         (finish_cv_type): Remove unnecessary function.
10030         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10031         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10032         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10033         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10034         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10035         * hpread.c (hpread_read_struct_type): Likewise.
10036         * stabsread.c (read_struct_type): Likewise.
10037
10038 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10039
10040         * configure.tgt: Add a catch all sh* target, for cases like
10041         sh[2,3,4]-elf and sh-hms.
10042
10043 2002-05-14  Keith Seitz  <keiths@redhat.com>
10044
10045         * event-loop.c (create_file_handler): Don't do anything but
10046         update data when we are given a fd which we are already
10047         monitoring.
10048
10049 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10050
10051         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10052         (update_context): Use __func__ in warnings.
10053         
10054 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10055
10056         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10057         and tcp_close to net_open and net_close.
10058         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10059         using UDP if requested.  Don't try to disable Nagle on UDP
10060         sockets.
10061         * remote.c (remote_serial_open): New function.  Warn about UDP.
10062         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10063
10064 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10065
10066         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10067
10068 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10069
10070         * configure.tgt: Remove sh-hms target.
10071         * MAINTAINERS: Don't list sh-hms as a separate target.
10072
10073 2002-05-13  Jim Blandy  <jimb@redhat.com>
10074
10075         Add first preprocessor macro-expansion files.
10076         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10077         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10078         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10079         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10080         (COMMON_OBS): Add macrotab.o, macroexp.o.
10081         (macroexp.o, macrotab.o): New rules.
10082
10083 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10084
10085         * config/m88k/tm-m88k.h: Update copyright.
10086         (m88k_target_write_pc): Declare
10087         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10088         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10089         (SHIFT_INST_REGS): Update definition.
10090         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10091         using old definition of TARGET_WRITE_PC.
10092         * regcache.c (generic_target_write_pc): Delete code handling
10093         NNPC_REGNUM.
10094         * gdbarch.sh (NNPC_REGNUM): Delete.
10095         * gdbarch.h, gdbarch.c: Regenerate.
10096
10097 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10098
10099         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10100         builtin reg number.
10101
10102 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10103
10104         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10105         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10106         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10107         access macros.
10108         * c-typeprint.c (cp_type_print_method_args): Likewise.
10109         (c_type_print_args): Likewise.
10110         * d10v-tdep.c (d10v_push_arguments): Likewise.
10111         (d10v_extract_return_value): Likewise.
10112         * expprint.c (print_subexp): Likewise.
10113         * gdbtypes.c (lookup_primitive_typename): Likewise.
10114         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10115         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10116         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10117         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10118         (TYPE_VECTOR): Likewise.
10119         * hpread.c (hpread_read_struct_type)
10120         (fix_static_member_physnames, fixup_class_method_type)
10121         (hpread_type_lookup): Likewise.
10122         * mdebugread.c (parse_symbol, parse_type): Likewise.
10123         * p-lang.c (is_pascal_string_type): Likewise.
10124         * valops.c (hand_function_call): Likewise.
10125         * x86-64-tdep.c (classify_argument): Likewise.
10126
10127         * hpread.c (hpread_read_function_type)
10128         (hpread_read_doc_function_type): Call replace_type.
10129         * dstread.c (create_new_type): Delete.
10130         (decode_dst_structure, process_dst_function): Call alloc_type.
10131         Use type access macros.
10132
10133 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10134
10135         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10136         the're not supported by the current architecture.
10137         (i387_fill_fxsave): Likewise.
10138
10139 2002-05-12  Fred Fish  <fnf@redhat.com>
10140
10141         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10142         sect_index_xxx members to index the first slot in section_offsets
10143         if all of the section_offsets are zero.
10144
10145 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10146
10147         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10148         checked in with last change.
10149
10150 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10151
10152         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10153         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10154         config.sub.
10155
10156 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10157
10158         * Makefile.in: Update dependencies.
10159
10160 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10161
10162         * language.c (local_hex_string_custom): Simplify.  Do not depend
10163         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10164
10165         * memattr.c (mem_info_command): Replace calls to
10166         longest_local_hex_string and longest_local_hex_string_custom.
10167         * buildsym.c (make_blockvector): Ditto.
10168         * solib.c (info_sharedlibrary_command): Ditto.
10169         * tracepoint.c (tracepoints_info): Ditto.
10170         * symtab.c (print_msymbol_info): Ditto.
10171
10172         * language.c (local_hex_string): Delete.
10173         (local_hex_string_custom): Delete.
10174         (longest_local_hex_string): Rename to local_hex_string.
10175         (longest_local_hex_string_custom): Rename to
10176         local_hex_string_custom.
10177         * language.h (local_hex_string): Change parameter type to LONGEST.
10178         (local_hex_string_custom): Ditto.
10179         (longest_local_hex_string): Delete declaration.
10180         (longest_local_hex_string_custom): Ditto.
10181
10182         * solib.c: Update copyright.
10183         * memattr.c: Update copyright.
10184         
10185 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10186
10187         * arch-utils.h (legacy_register_to_value): Declare.
10188         (legacy_value_to_register): Declare.
10189         (legacy_convert_register_p): Declare.
10190         * arch-utils.c (legacy_register_to_value): New function.
10191         (legacy_value_to_register): New function.
10192         (legacy_convert_register_p): New function.
10193
10194         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10195         (VALUE_TO_REGISTER): Define.
10196         (CONVERT_REGISTER_P): Define.
10197         * gdbarch.h, gdbarch.c: Regenerate.
10198
10199         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10200         VALUE_TO_REGISTER.
10201         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10202         CONVERT_REGISTER_P.
10203
10204 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10205             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10206
10207         * Makefile.in: Update dependencies for valops.c.
10208         * valops.c: Include "gdb_assert.h".
10209         (typecmp): Skip THIS parameter to methods.
10210         (find_method_list): Remove static_memfuncp argument,
10211         update callers.  Check for stub methods.
10212         (find_value_oload_method_list): Don't set *static_memfuncp.
10213         (find_overload_match): Don't check for stub methods.  Assert
10214         that methods are not stubbed.  Handle static methods.
10215         (value_find_oload_method_list): Remove static_memfuncp argument.
10216         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10217         to the argument list for static stub methods.
10218         * value.h (value_find_oload_method_list): Update prototype.
10219
10220 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10221
10222         * arch-utils.h (generic_register_size): Declare.
10223         (generic_register_raw_size, generic_register_virtual_size): Delete
10224         declarations.
10225         * arch-utils.c (generic_register_raw_size): Delete.
10226         (generic_register_size): New function.
10227         (generic_register_virtual_size): Delete.
10228
10229         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10230         default generic_register_size.
10231         * gdbarch.h, gdbarch.c: Re-generate.
10232         
10233         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10234         register_virtual_size.
10235         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10236         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10237
10238 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10239
10240         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10241         * gdbarch.h, gdbarch.c: Regenerate.
10242         * gnu-v3-abi.c: Update copyright.
10243         (vtable_address_point_offset): Update.
10244         (gnuv3_rtti_type): Update.
10245         (gnuv3_baseclass_offset): Update.
10246         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10247         (init_fetch_link_map_offsets): Update.
10248         * remote.c (get_remote_state): Update.
10249         
10250 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10251
10252         * TODO: Remove value_headof/value_from_vtable_info comment.
10253         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10254         * values.c (value_headof, value_from_vtable_info): Delete.
10255         * value.h (value_from_vtable_info): Delete prototype.
10256
10257 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10258
10259         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10260         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10261         $(gdb_regex_h).
10262         (gdb_assert_h): Define.
10263         (gdb_wait_h): Define.
10264         (gdb_regex_h): Define.
10265
10266 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10267
10268         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10269         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10270
10271 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10272
10273         * nbsd-tdep.c: Fix comment.
10274
10275 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10276
10277         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10278         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10279         (nbsd-tdep.o): New dependency list.
10280         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10281         nbsd-tdep.h.
10282         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10283         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10284         * nbsd-tdep.c: New file.
10285         * nbsd-tdep.h: New file.
10286         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10287         nbsd-tdep.h.
10288         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10289         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10290         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10291         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10292
10293 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10294
10295         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10296         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10297         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10298         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10299         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10300         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10301
10302 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10303
10304         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10305         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10306         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10307         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10308         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10309         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10310         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10311
10312 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10313
10314         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10315         fetch_elfcore_registers to...
10316         * i386nbsd-tdep.c: ...here.
10317         (i386nbsd_use_struct_convention): Rename to...
10318         (i386nbsd_aout_use_struct_convention): ...this.
10319         (i386nbsd_supply_reg): New function.
10320         (i386nbsd_fill_reg): New function.
10321         (fetch_core_registers): Use i386nbsd_supply_reg.
10322         (fetch_elfcore_registers): Likewise.
10323         (_initialize_i386nbsd_tdep): New function.
10324         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10325         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10326         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10327         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10328         (i386nbsd_aout_use_struct_convention): ...this.
10329
10330 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10331
10332         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10333         (store_inferior_registers): Use shnbsd_fill_reg.
10334         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10335         sh_nbsd_supply_register): Collapse into...
10336         (shnbsd_supply_reg): ...this.
10337         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10338         (shnbsd_fill_reg): ...this.
10339         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10340         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10341         (fetch_core_registers): Use shnbsd_supply_reg.
10342         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10343         (sh_nbsd_core_fns): Rename to...
10344         (shnbsd_core_fns): ...this.
10345         (sh_nbsd_elfcore_fns): Rename to...
10346         (shnbsd_elfcore_fns): ...this.
10347         (sh_nbsd_init_abi): Rename to...
10348         (shnbsd_init_abi): ...this.
10349         (_initialize_sh_nbsd_tdep): Rename to...
10350         (_initialize_shnbsd_tdep): ...this.
10351         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10352         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10353         sh_nbsd_fill_register): Remove prototypes.
10354         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10355
10356 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10357
10358         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10359         (i387-nat.o): Delete dependency list.
10360         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10361         (x86-64-linux-nat.o): Likewise.
10362         * i387-nat.c: Delete file, moving contents to...
10363         * i387-tdep.c: ...here.
10364         * i387-nat.h: Rename...
10365         * i387-tdep.h: ...to this.
10366         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10367         * i386-linux-nat.c: Likewise.
10368         * i386bsd-nat.c: Likewise.
10369         * i386gnu-nat.c: Likewise.
10370         * i386nbsd-nat.c: Likewise.
10371         * i386v4-nat.c: Likewise.
10372         * x86-64-linux-nat.c: Likewise.
10373         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10374         * config/i386/go32.mh (NATDEPFILES): Likewise.
10375         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10376         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10377         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10378         * config/i386/linux.mh (NATDEPFILES): Likewise.
10379         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10380         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10381         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10382         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10383
10384 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10385
10386         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10387         (alphanbsd-nat.o): Remove dependency list.
10388         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10389         * alphanbsd-nat.c: Delete.  Contents moved to...
10390         * alphanbsd-tdep.c: ...here.
10391         (_initialize_alphanbsd_tdep): Register core functions.
10392         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10393
10394 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10395
10396         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10397         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10398         (alphanbsd-nat.o): Likewise.
10399         (alphabsd-tdep.o): New dependency list.
10400         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10401         (fill_gregset): Use alphabsd_fill_reg.
10402         (supply_fpregset): Use alphabsd_supply_fpreg.
10403         (fill_fpregset): Use alphabsd_fill_fpreg.
10404         (fetch_inferior_registers): Use struct reg and struct fpreg
10405         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10406         and alphabsd_supply_fpreg.
10407         (store_inferior_registers): Use struct reg and struct fpreg
10408         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10409         and alphabsd_fill_fpreg.
10410         * alphabsd-tdep.c: New file.
10411         * alphabsd-tdep.h: New file.
10412         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10413         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10414         alphabsd_supply_fpreg.
10415         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10416         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10417
10418 2002-05-11  Eric Christopher  <echristo@redhat.com>
10419
10420         * mips-tdep.c (mips_double_register_type): Fix thinko.
10421         (mips_single_register_type): Ditto.
10422         * MAINTAINERS: Add self.
10423
10424 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10425
10426         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10427         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10428         right thing on architectures with different endianness and/or
10429         integer sizes.
10430
10431 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10432
10433         From Christian Limpach <chris@Pin.LU>
10434         * configure.in: Change sed expression which comments out
10435         NATDEPFILES to also comment out continuation lines.
10436         * configure: Regenerate.
10437
10438 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10439
10440         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10441         big patch.
10442
10443 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10444
10445         * sh-tdep.c: Include correct file.
10446
10447 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10448
10449         New support for sh64-elf (sh5) target.
10450
10451         * configure.tgt: For sh64-elf target, default to sh-elf.
10452
10453         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10454         (struct gdbarch_tdep): Add new fields for new registers and ABI
10455         info.
10456
10457         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10458         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10459         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10460         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10461         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10462         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10463         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10464         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10465         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10466         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10467         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10468         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10469         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10470         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10471         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10472         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10473         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10474         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10475         sign_extend, sh64_nofp_frame_init_saved_regs,
10476         sh64_init_extra_frame_info, sh64_get_saved_register,
10477         sh64_extract_struct_value_address, sh64_pop_frame,
10478         sh64_push_arguments, sh64_extract_return_value,
10479         sh64_store_return_value, sh64_show_media_regs,
10480         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10481         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10482         sh_sh64_register_virtual_type,
10483         sh_sh64_register_convert_to_virtual,
10484         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10485         sh64_register_read, sh64_pseudo_register_write,
10486         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10487         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10488         sh64_do_pseudo_register, sh_compact_do_registers_info,
10489         sh64_do_registers_info, sh_gdbarch_init): New functions.
10490
10491 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10492
10493         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10494
10495 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10496
10497         * linespec.c (decode_line_1): Check for a double quote after
10498         a filename correctly.
10499
10500 2002-05-10  Jim Blandy  <jimb@redhat.com>
10501
10502         Properly track the size of the current objfile's .debug_line section.
10503         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10504         (DWARF_LINE_SIZE): New macro.
10505         (dwarf2_build_psymtabs_hard): Record the line section's size in
10506         the partial symbol table.
10507         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10508         symbol table.
10509
10510 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10511
10512         * ia64-tdep.c: Handle breakpoints on L instruction type
10513         in MLX instruction bundle by moving the breakpoint to
10514         the third slot (X instruction type) as L holds only data.
10515
10516 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10517
10518         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10519         (process_one_symbol): Complain about discarding local symbols
10520         due to a misplaced N_LBRAC entry.
10521
10522 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10523
10524         From Daniel Berlin <dan@cgsoftware.com>
10525         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10526         decrease the depth we are at, in the case of templates.
10527
10528 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10529
10530         * mips-tdep.c (mips_float_register_type): New function.
10531         (mips_double_register_type): New function.
10532         (mips_print_register): Use them.
10533         (do_fp_register_row): Likewise.
10534
10535 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10536
10537         * signals/signals.c (signals): Remove conditional compilation around
10538         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10539         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10540
10541 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10542
10543         * remote-rdp.c (remote_rdp_can_run): Remove.
10544
10545 2002-05-09  Tom Tromey  <tromey@redhat.com>
10546
10547         * jv-valprint.c (java_val_print): Handle `char' as a special case
10548         of TYPE_CODE_INT.
10549
10550 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10551
10552         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10553         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10554         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10555         str r(0123),[sp,#nn].
10556         (arm_skip_prologue): Ditto.  Also make disassembly
10557         order-independent by placing it in a loop.
10558
10559 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10560
10561         * stabsread.c (read_type): Add recognition for new attribute:
10562         "@V;" means that an array type is actually a vector.
10563         This is analogous to the vector flag that's been added to dwarf2.
10564
10565 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10566
10567         * i386-tdep.h (i386_abi): New enum.
10568         (struct gdbarch_tdep): Replace os_ident member with abi.
10569         (i386_gdbarch_register_os_abi): New prototype.
10570         * i386-tdep.c (i386_abi_names): New array.
10571         (process_note_abi_tag_sections): Removed.
10572         (process_note_sections): New function.
10573         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10574         (struct i386_abi_handler): New struct.
10575         (i386_abi_handler_list): New variable.
10576         (i386_gdbarch_register_os_abi): New function.
10577         (i386_gdbarch_init): Adapt for the changes given above.
10578
10579 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10580
10581         * gregset.h: Say "GNU/Linux".
10582
10583 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10584
10585         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10586         (build_gdbtypes): Build builtin_type_v2_float.
10587         (_initialize_gdbtypes): Register new builtin type.
10588
10589 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10590
10591         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10592         (clear_gdbarch_swap): New function.
10593         (initialize_non_multiarch): Call.
10594         (gdbarch_update_p): Before calling init(), swap out and clear the
10595         existing architecture.
10596         * gdbarch.c: Regenerate.
10597
10598 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10599
10600         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10601         alphanbsd-tdep.c.
10602
10603 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10604
10605         * sh-nbsd-nat.c: Rename to...
10606         * shnbsd-nat.c: ...this.
10607         * sh-nbsd-tdep.c: Rename to...
10608         * shnbsd-tdep.c: ...this.
10609         * sh-nbsd-tdep.h: Rename to...
10610         * shnbsd-tdep.h: ...this.
10611         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10612         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10613
10614 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10615
10616         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10617         concatenation for command help messages.
10618
10619 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10620
10621         * NEWS: Note new sh*-*-netbsdelf* configuration.
10622         * configure.host: Set gdb_host_cpu to sh for all sh*.
10623         (sh*-*-netbsdelf*): New host.
10624         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10625         (sh*-*-netbsdelf*): New target.
10626         * sh-nbsd-nat.c: New file.
10627         * sh-nbsd-tdep.c: New file.
10628         * sh-nbsd-tdep.h: New file.
10629         * config/sh/nbsd.mh: New file.
10630         * config/sh/nbsd.mt: New file.
10631         * config/sh/nm-nbsd.h: New file.
10632         * config/sh/tm-nbsd.h: New file.
10633
10634 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10635
10636         * sh-tdep.c (sh_osabi_names): Declare.
10637         (process_note_abi_tag_sections): New function.
10638         (get_elfosabi): Ditto.
10639         (sh_gdbarch_register_os_abi): Ditto.
10640         (sh_dump_tdep): Ditto.
10641         _initialize_sh_tdep): Use gdbarch_register to register
10642         sh_gdbarch_init and sh_dump_tdep.
10643         * config/sh/tm-sh.h (sh_osabi): Declare.
10644         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10645
10646 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10647
10648         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10649         (thumb_scan_prologue): Ditto.
10650         (arm_find_callers_reg): Ditto.
10651         (arm_frame_chain): Ditto.
10652         (arm_init_extra_frame_info): Ditto.
10653         (arm_frame_saved_pc): Ditto.
10654         (arm_pop_frame): Ditto.
10655         (arm_push_return_address): New function.
10656         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10657         call_dummy_location, call_dummy_breakpoint_offset_p,
10658         call_dummy_breakpoint_offset, call_dummy_p,
10659         call_dummy_stack_adjust_p, call_dummy_words,
10660         sizeof_call_dummy_words, call_dummy_start_offset,
10661         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10662         call_dummy_address, push_return_address and push_dummy_frame for
10663         generic dummy frames.
10664
10665 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10666
10667         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10668         size computation for alloca.
10669         (sh_fp_frame_init_saved_regs): Likewise.
10670
10671 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10672
10673         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10674         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10675         * arm-tdep.c (arm_store_return_value): Use them.
10676         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10677         * remote-rdp.c (remote_rdp_fetch_register): Use
10678         ARM_MAX_REGISTER_RAW_SIZE.
10679         (remote_rdp_store_register): Likewise.
10680
10681 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10682
10683         * dwarf2cfi.c: Code cleanup, removed unused variables,
10684         added default labels to switch {} statements.
10685         * x86-64-tdep.c: Ditto.
10686         * x86-64-linux-nat.c: Ditto.
10687
10688 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10689
10690         * solib.h: Protect against multiple inclusion.
10691
10692 2002-05-06  Jim Blandy  <jimb@redhat.com>
10693
10694         Add first preprocessor macro-expansion files.
10695         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10696         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10697         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10698         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10699         (COMMON_OBS): Add macrotab.o, macroexp.o.
10700         (macroexp.o, macrotab.o): New rules.
10701
10702         Separate the job of reading the line number info statement program
10703         header (...expialidocious) out into its own function.
10704         * dwarf2read.c (struct line_head, struct filenames, struct
10705         directories): Replace with...
10706         (struct line_header): New structure, containing the full
10707         contents of the statement program header, including the
10708         include directory and file name tables.
10709         (read_file_scope): If we have line number info, instead of just
10710         calling dwarf_decode_lines to do all the work, call
10711         dwarf_decode_line_header first to get a `struct line_header'
10712         containing the data in the statement program header, and then
10713         pass that to dwarf_decode_lines, which will pick up where that
10714         left off.  Be sure to clean up the `struct line_header' object.
10715         (dwarf_decode_line_header, free_line_header, add_include_dir,
10716         add_file_name): New functions.
10717         (dwarf_decode_lines): Move all the code to read the statement
10718         program header into dwarf_decode_line_header.  Take the line
10719         header it built as the first argument, instead of the offset to
10720         the compilation unit's line number info.  Use the new `struct
10721         line_header' type instead of the old structures.  No need to do
10722         cleanups here now, since we don't allocate anything.
10723         (dwarf2_statement_list_fits_in_line_number_section,
10724         dwarf2_line_header_too_long): New complaints.
10725
10726 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10727
10728         * gdbtypes.c (init_vector_type): New function.
10729         (build_builtin_type_vec128): Simplify the representation of SIMD
10730         registers.
10731         (build_gdbtypes): Initialize new builtin vector types.
10732         (_initialize_gdbtypes): Register new vector types with gdbarch.
10733         (builtin_type_v4_float, builtin_type_v4_int32,
10734         builtin_type_v8_int16, builtin_type_v16_int8,
10735         builtin_type_v2_int32, builtin_type_v4_int16,
10736         builtin_type_v8_int8): New (renamed) SIMD types.
10737
10738 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10739
10740         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10741         (i387_fill_fxsave): Likewise.
10742
10743 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10744
10745         * alpha-tdep.c (alpha_extract_return_value): Don't use
10746         non-constant array size in prototype.
10747
10748 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10749
10750         From Brian Taylor <briant at model dot com>:
10751         * ui-out.c (ui_out_field_core_addr): Use the function
10752         longest_local_hex_string_custom'to format addresses > 32 bits
10753         wide.
10754
10755         * ui-out.c (ui_out_field_core_addr): Update comment.
10756
10757 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10758
10759         * stack.c (select_and_print_frame): Make static.  Delete the
10760         parameter `level'.
10761         (func_command): Update call.
10762         (select_frame_command): Delete code computing the frame level.
10763         * frame.h (select_and_print_frame): Delete declaration.
10764
10765 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10766
10767         * sparc-tdep.c (sparc_get_saved_register): Comment why
10768         get_prev_frame call is safe.
10769
10770 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10771
10772         * frame.h (select_frame): Delete level parameter.
10773         * stack.c (select_frame): Update.  Use frame_relative_level to
10774         obtain the frame's level.
10775         (select_and_print_frame): Update call.
10776         (select_frame_command): Ditto.
10777         (up_silently_base): Ditto.
10778         (down_silently_base): Ditto.
10779         * ocd.c (ocd_start_remote): Ditto.
10780         * remote-rdp.c (remote_rdp_open): Ditto.
10781         * remote-mips.c (mips_initialize): Ditto.
10782         (common_open): Ditto.
10783         * remote-e7000.c (e7000_start_remote): Ditto.
10784         * m3-nat.c (select_thread): Ditto.
10785         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10786         (child_get_current_exception_event): Ditto.
10787         * varobj.c (varobj_create): Ditto.
10788         (varobj_update): Ditto.
10789         (c_value_of_root): Ditto.
10790         * tracepoint.c (finish_tfind_command): Ditto.
10791         * corelow.c (core_open): Ditto.
10792         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10793         * thread.c (info_threads_command): Ditto.
10794         (switch_to_thread): Ditto.
10795         * infrun.c (normal_stop): Ditto.
10796         (restore_selected_frame): Ditto.
10797         (restore_inferior_status): Ditto.
10798         * breakpoint.c (insert_breakpoints): Ditto.
10799         (watchpoint_check): Ditto.
10800         (bpstat_stop_status): Ditto.
10801         (do_enable_breakpoint): Ditto.
10802         * blockframe.c (flush_cached_frames): Ditto.
10803         (reinit_frame_cache): Ditto.
10804
10805 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10806
10807         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10808         maintainer.
10809
10810 2002-05-04  Jim Blandy  <jimb@redhat.com>
10811
10812         * gdbtypes.c (replace_type): Doc fix.
10813
10814 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10815
10816         * valprint.c (strcat_longest): Delete commented out function.
10817         Update copyright.
10818
10819 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10820
10821         * MAINTAINERS: Mark a29k as deleted.
10822         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10823         Move new configurations to the top.
10824         * configure.tgt: Remove a29k.
10825         * config/a29k/tm-vx29k.h: Delete.
10826         * config/a29k/vx29k.mt: Delete.
10827         * config/a29k/tm-a29k.h: Delete.
10828         * config/a29k/a29k-udi.mt: Delete.
10829         * config/a29k/a29k.mt: Delete.
10830         * a29k-tdep.c: Delete.
10831         * remote-udi.c: Delete.
10832         * remote-mm.c: Delete.
10833         * remote-eb.c: Delete.
10834         * remote-adapt.c: Delete.
10835         * Makefile.in: Remove obsolete code.
10836         * config/s390/s390x.mt: Ditto.
10837         * config/s390/s390.mt: Ditto.
10838         * config/sparc/sparclynx.mh: Ditto.
10839         * config/sparc/linux.mh: Ditto.
10840         * config/pa/hppaosf.mh: Ditto.
10841         * config/pa/hppabsd.mh: Ditto.
10842         * config/ns32k/nbsd.mt: Ditto.
10843         * config/mips/vr5000.mt: Ditto.
10844         * config/m68k/sun3os4.mh: Ditto.
10845         * config/m68k/nbsd.mt: Ditto.
10846         * config/m68k/m68klynx.mh: Ditto.
10847         * config/m32r/m32r.mt: Ditto.
10848         * config/i386/x86-64linux.mt: Ditto.
10849         * config/i386/nbsdelf.mt: Ditto.
10850         * config/i386/nbsd.mt: Ditto.
10851         * config/i386/i386lynx.mh: Ditto.
10852
10853 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10854
10855         * target.c (debug_print_register): New function.  Handle oversize
10856         registers.
10857         (debug_to_fetch_registers): Call.
10858         (debug_to_store_registers): Call.
10859
10860 2002-05-03  Jim Blandy  <jimb@redhat.com>
10861
10862         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10863         (read_type): Doc fix.
10864         * gdbtypes.c (replace_type): Doc fix.
10865
10866         * stabsread.c (multiply_defined_struct): New complaint.
10867         (read_struct_type): If the type we were passed isn't empty, or
10868         incomplete, don't read the new struct type into it; complain,
10869         and return the original type unchanged.  Take a new `type_code'
10870         argument, which is the type code for the new type.
10871         (read_type): Rather than storing the type's type code here, pass
10872         it as an argument to read_struct_type, and let that take care of
10873         storing it.  That way, we don't overwrite the original type code,
10874         so read_struct_type can use it to decide whether we're overwriting
10875         something we shouldn't.
10876         (complain_about_struct_wipeout): New function.
10877
10878 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10879
10880         * gdbarch.sh: Assert that gdbarch is non-NULL.
10881         * gdbarch.c: Regenerate.
10882
10883 2002-05-03  Jason Merrill  <jason@redhat.com>
10884
10885         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10886         and return NULL.
10887
10888 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10889
10890         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10891         (x86_64_dwarf2gdb_regno_map_length),
10892         (x86_64_dwarf2_reg_to_regnum): Added.
10893         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10894         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10895         (_initialize_x86_64_tdep): Synced with the change above.
10896         (x86_64_skip_prologue): Reformulated message.
10897
10898 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10899
10900         * f-exp.y: Also use new prev_lexptr variable
10901         to improve error reporting. Based on Michael Snyder
10902         2002-04-24 dated patch to c-exp.y.
10903         * jv-exp.y: Likewise.
10904         * m2-exp.y: Likewise.
10905
10906 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10907
10908         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10909         we are dealing with vectors.
10910
10911 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10912
10913         * config/m68k/tm-nbsd.h: Obvious fix,
10914         correct machine name.
10915
10916 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10917
10918         * p-typeprint.c (pascal_type_print_base): Add support
10919         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10920
10921 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10922
10923         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10924         for fondamental pascal 'char' type.
10925
10926 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10927
10928         * p-lang.h (is_pascal_string_type): Declaration changed,
10929         new sixth argument of type char ** added.
10930         * p-lang.c (is_pascal_string_type): Implementation
10931         changed. Args length_pos, length_size, string_pos, char_size
10932         can now be NULL. New argument arrayname set to the field
10933         name of the char array. Return value set to char array
10934         field index plus one.
10935         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10936         is_pascal_string_type function.
10937
10938 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10939
10940         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10941         <cagney@redhat.com> change.
10942         * gdbarch.c: Regenerate.
10943
10944 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10945
10946         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10947         before probing for a new one.  Detect errorenous gdbarch_init
10948         functions.
10949         * gdbarch.c: Regenerate.
10950
10951 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10952
10953         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10954         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10955         * config/v850/tm-v850.h: Ditto.  Update copyright.
10956
10957 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10958
10959         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10960         current_gdbarch.
10961
10962 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10963
10964         * arm-tdep.c: Whitespace clean-ups.
10965         (arm_skip_prologue): Fix thinko; two lines
10966         should have been removed as part of 4/24 change.
10967
10968 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10969
10970         * rs6000-tdep.c: Added comment describing how fpscr register
10971         numbers were chosen.
10972
10973 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10974
10975         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10976
10977 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10978
10979         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10980         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10981         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10982
10983 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10984
10985         From Louis Hamilton <hamilton@redhat.com>:
10986         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10987         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10988         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10989         not bfd-private xcoff data, to determine wordsize.
10990         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10991
10992 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10993
10994         GDB 5.2 released from 5.2 branch.
10995
10996 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10997
10998         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10999         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11000         (x86_64_register_info_table): Added comments with register numbers.
11001
11002 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11003
11004         * rs6000-tdep.c (rs6000_extract_return_value,
11005         rs6000_store_return_value): Handle returning vectors.
11006         (rs6000_gdbarch_init): Use
11007         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11008         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11009         New function.
11010         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11011         vectors.
11012         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11013         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11014
11015 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11016
11017         * hpread.c (hpread_psymtab_to_symtab_1,
11018         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11019         with fprintf_unfiltered (gdb_stderr,...).
11020
11021 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11022
11023         * remote-array.c (printf_monitor, write_monitor,
11024         array_insert_breakpoint, array_remove_breakpoint ):
11025         Replace fprintf (stderr,...
11026         with fprintf_unfiltered (gdb_stderr,....
11027         * remote-es.c: Likewise.
11028         * remote-os9k.c: Likewise.
11029         * remote-st.c: Likewise.
11030
11031 2002-04-28  Andreas Schwab  <schwab@suse.de>
11032
11033         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11034         linux-proc.o and gcore.o.
11035
11036 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11037
11038         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11039         code without frame pointers.
11040
11041 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11042
11043         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11044         ON_STACK is needed.
11045
11046 2002-04-26  Ben Elliston  <bje@redhat.com>
11047
11048         * target.c (do_xfer_memory): Correct reference to the new option
11049         "trust-readonly-sections".
11050
11051 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11052
11053         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11054         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11055         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11056         vectors.
11057         (read_array_type): Record the fact that this array type is really a
11058         vector (i.e. are passed in by value).
11059
11060 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11061
11062         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11063         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11064         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11065         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11066         * alpha-linux-tdep.c: Include frame.h.
11067         (alpha_linux_sigcontext_addr): New function.
11068         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11069         alpha_linux_sigcontext_addr.
11070         * alpha-osf1-tdep.c: Include gdbcore.h.
11071         (alpha_osf1_sigcontext_addr): New function.
11072         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11073         alpha_osf1_sigcontext_addr.
11074         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11075         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11076
11077 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11078
11079         * stack.c (selected_frame_level):
11080         (select_frame): Do not set selected_frame_level.
11081         * frame.h (selected_frame_level): Delete declaration.
11082
11083 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11084
11085         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11086         convert_from_func_ptr-addr when AIX / PowerOpen.
11087
11088 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11089
11090         * valops.c (hand_function_call): Call
11091         generic_save_call_dummy_addr.
11092         * frame.h (generic_save_call_dummy_addr): Declare.
11093         * blockframe.c (struct dummy_frame): Add fields call_lo and
11094         call_hi.
11095         (generic_find_dummy_frame): Check for PC in range call_lo to
11096         call_hi instead of entry_point_address.
11097         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11098         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11099         (generic_save_call_dummy_addr): New function.
11100
11101 2002-04-24  David S. Miller  <davem@redhat.com>
11102
11103         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11104         sparc_skip_prologue.
11105         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11106         information to find prologue when possible.
11107         (sparc_prologue_frameless_p): Call examine_prologue directly.
11108         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11109         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11110         second argument.
11111         (SKIP_PROLOGUE): Likewise.
11112
11113 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11114
11115         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11116         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11117         indicate that the condition it was testing is always true.
11118         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11119         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11120         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11121
11122 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11123
11124         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11125         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11126         tdep->jb_pc and tdep->jb_elt_size.
11127         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11128         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11129         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11130         * alpha-nat.c (get_longjmp_target): Remove.
11131         (JB_ELEMENT_SIZE): Ditto.
11132         (JB_PC): Ditto.
11133         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11134         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11135         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11136         to alpha_get_longjmp_target.
11137         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11138         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11139         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11140
11141 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11142
11143         * README: Update to GDB 5.2.
11144
11145 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11146
11147         * gdbarch.sh (LC_ALL): Set to `c'.
11148
11149 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11150
11151         * avr-tdep.c: Ran through gdb_indent.sh.
11152
11153 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11154
11155         * MAINTAINERS: Add myself as AVR maintainer.
11156         * NEWS: Note new target avr.
11157
11158 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11159
11160         * Makefile.in: Add support for AVR target.
11161         * configure.tgt: Add support for AVR target.
11162         * avr-tdep.c: New file
11163         * config/avr/avr.mt: New file.
11164
11165 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11166
11167         * MAINTAINERS: Add myself to write-after-approval.
11168
11169 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11170
11171         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11172         with fprintf_unfiltered (gdb_stderr,....
11173
11174 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11175
11176         Fix PR gdb/508.
11177         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11178
11179 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11180
11181         * p-exp.y: Also use new prev_lexptr variable
11182         to improve error reporting. Based on Michael Snyder
11183         2002-04-24 dated patch to c-exp.y.
11184
11185 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11186
11187         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11188         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11189         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11190         to 0.
11191         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11192         and struct value.
11193         (FUNCTION_START_OFFSET): Remove.
11194         (BREAKPOINT): Ditto.
11195
11196 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11197
11198         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11199         * NEWS: Ditto.
11200
11201 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11202
11203         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11204         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11205         alpha_linux_pc_in_sigtramp.
11206         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11207         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11208         alpha_osf1_pc_in_sigtramp.
11209         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11210         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11211         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11212         alphafbsd_pc_in_sigtramp.
11213         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11214         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11215         alphanbsd_pc_in_sigtramp.
11216         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11217         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11218
11219 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11220
11221         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11222
11223 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11224
11225         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11226         alphanbsd-tdep.c.
11227         (alphanbsd-nat.o): New dependency list.
11228         (alphanbsd-tdep.o): Ditto.
11229         * NEWS: Note new native NetBSD/alpha configuration.
11230         * alphanbsd-nat.c: New file.
11231         * alphanbsd-tdep.c: Ditto.
11232         * configure.host (alpha*-*-netbsd*): New host.
11233         * configure.tgt (alpha*-*-netbsd*): New target.
11234         * config/alpha/nbsd.mh: New file.
11235         * config/alpha/nbsd.mt: Ditto.
11236         * config/alpha/nm-nbsd.h: Ditto.
11237         * config/alpha/tm-nbsd.h: Ditto.
11238
11239 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11240
11241         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11242         (alpha-osf1-tdep.o): New dependency list.
11243         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11244         and skip_sigtramp_frame members.
11245         * alpha-linux-tdep.c: Include gdbcore.h.
11246         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11247         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11248         * alpha-osf1-tdep.c: New file.
11249         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11250         alpha-osf1-dep.c.
11251         (alpha_frame_past_sigtramp_frame): New function.
11252         (alpha_dynamic_sigtramp_offset): Ditto.
11253         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11254         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11255         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11256         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11257         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11258         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11259         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11260         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11261         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11262         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11263         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11264         to find_solib_trampoline_target.
11265         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11266         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11267         (SKIP_TRAMPOLINE_CODE): Remove.
11268         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11269         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11270         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11271         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11272         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11273         (PROC_SIGTRAMP_MAGIC): Ditto.
11274         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11275         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11276         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11277         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11278         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11279
11280 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11281
11282         * NEWS: Note that Alpha targets are now multi-arch.
11283
11284 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11285
11286         * parser-defs.h (prev_lexptr): New external variable.
11287         * parse.c (parse_exp_1): Set prev_lexptr to null before
11288         calling the language-specific parser.
11289         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11290         (yyerror): Use prev_lexptr in error reporting.
11291
11292 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11293
11294         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11295         * gregset.h: If FILL_FPXREGSET is defined, provide
11296         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11297         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11298         is defined, call fill_fpxregset.
11299
11300 2002-04-24  Roland McGrath  <roland@frob.com>
11301
11302         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11303         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11304         (supply_gregset, supply_fpregset): New functions.
11305
11306         * gnu-nat.c (gnu_find_memory_regions): New function.
11307         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11308         (gnu_xfer_memory): Add a cast.
11309
11310 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11311
11312         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11313         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11314         of argument regs ("str r(0123), [r11, #-nn"]).
11315         (arm_skip_prologue): Better handling for frameless functions.
11316         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11317         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11318
11319 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11320
11321         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11322         NUM_PSEUDO_REGS can be used.
11323
11324 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11325
11326         * arch-utils.h: Update copyright.
11327
11328         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11329         * gdbarch.h, gdbarch.c: Re-generate.
11330
11331         * inferior.h (IN_SIGTRAMP): Delete definition.
11332         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11333         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11334
11335         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11336         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11337         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11338         (find_proc_framesize): Ditto.
11339         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11340         (alpha_init_extra_frame_info): Ditto.
11341         * infrun.c (handle_inferior_event): Ditto.
11342         (handle_inferior_event): Ditto.
11343         (check_sigtramp2): Ditto.
11344         * blockframe.c (create_new_frame): Ditto.
11345         (get_prev_frame): Ditto.
11346         * ppc-linux-tdep.c: Update comments.
11347         * i386-linux-tdep.c: Update comments.
11348         * breakpoint.c (bpstat_what): Update comment.
11349
11350 2002-04-24  David S. Miller  <davem@redhat.com>
11351
11352         * i960-tdep.c (register_in_window_p): New function.
11353         (i960_find_saved_register): Use it instead of
11354         REGISTER_IN_WINDOW_P.
11355         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11356
11357         * symtab.h (find_stab_function_addr): Kill extern.
11358         * minsyms.c (find_stab_function_addr): Remove from here...
11359         * dbxread.c: ... to here, and mark it static.
11360
11361 2002-04-20  David S. Miller  <davem@redhat.com>
11362
11363         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11364         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11365
11366 2002-04-21  David S. Miller  <davem@redhat.com>
11367
11368         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11369         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11370         (vx_write_register): Likewise.
11371
11372 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11373
11374         * source.c (is_regular_file): New function.
11375         (openp): Check wether file to open is a regular file
11376         to avoid opening directories.
11377
11378 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11379
11380         * findvar.c (extract_signed_integer): Cast printf argument
11381         to suppress format warning.
11382         (extract_unsigned_integer): Likewise.
11383         * infcmd.c (registers_info): Likewise.
11384         * top.c (get_prompt_1): Likewise.
11385         * valops.c (value_assign): Likewise.
11386         * valprint.c (print_decimal): Likewise.
11387
11388 2002-04-22  H.J. Lu  (hjl@gnu.org)
11389
11390         * c-exp.y (typebase): Support
11391
11392         [long|long long|short] [signed|unsigned] [int|]
11393
11394         and
11395
11396         signed [long|long long|short] int
11397
11398 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11399
11400         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11401         and vax-tdep.h.
11402         * vax-tdep.h: New file.
11403         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11404         Make several routines static.
11405         (vax_get_saved_register): New function.
11406         (vax_gdbarch_init): New function.
11407         (_initialize_vax_tdep): Register vax_gdbarch_init.
11408         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11409         Remove macros now under the control of gdbarch.
11410
11411 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11412
11413         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11414         Some whitespace and coding standards tweaks.
11415
11416 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11417
11418         * vax-tdep.c: Include regcache.h.
11419         (vax_call_dummy_words): New.
11420         (sizeof_vax_call_dummy_words): New.
11421         (vax_fix_call_dummy): New function.
11422         (vax_saved_pc_after_call): Ditto.
11423         * config/vax/tm-vax.h: Don't include regcache.h.
11424         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11425         (CALL_DUMMY): Remove.
11426         (CALL_DUMMY_WORDS): Define.
11427         (SIZEOF_CALL_DUMMY_WORDS): Define.
11428         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11429
11430 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11431
11432         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11433
11434 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11435
11436         * vax-tdep.c (vax_frame_chain): New function.
11437         (vax_push_dummy_frame): Ditto.
11438         (vax_pop_frame): Ditto.
11439         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11440         (FRAMELESS_FUNCTION_INVOCATION): Use
11441         generic_frameless_function_invocation_not.
11442         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11443         (POP_FRAME): Use vax_pop_frame.
11444
11445 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11446
11447         * vax-tdep.c (vax_store_struct_return): New function.
11448         (vax_extract_return_value): Ditto.
11449         (vax_store_return_value): Ditto.
11450         (vax_extract_struct_value_address): Ditto.
11451         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11452         vax_store_struct_return.
11453         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11454         (STORE_RETURN_VALUE): Use vax_store_return_value.
11455         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11456
11457 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11458
11459         * vax-tdep.c (vax_frame_saved_pc): New function.
11460         (vax_frame_args_address_correct): Ditto.
11461         (vax_frame_args_address): Ditto.
11462         (vax_frame_locals_address): Ditto.
11463         (vax_frame_num_args): Move code to be in proximity to
11464         other frame-related functions.
11465         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11466         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11467         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11468         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11469         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11470
11471 2002-04-22  H.J. Lu  (hjl@gnu.org)
11472
11473         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11474         includedir.
11475
11476 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11477
11478         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11479         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11480         (FRAME_INIT_SAVED_REGS): New macro.
11481
11482 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11483
11484         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11485
11486 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11487
11488         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11489         where needed.
11490         (fetch_osf_core_registers): Likewise.
11491         (supply_gregset): Likewise.
11492
11493 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11494
11495         * symfile.h (get_section_index): Define.
11496         * symfile.c (get_section_index): New function.
11497         * mdebugread.c (SC_IS_SBSS): New macro.
11498         (SC_IS_BSS): Return true for the scBss storage class only, as
11499         the scSBss storage class refers to the .sbss section.
11500         (parse_partial_symbols): Discard the symbols which associated
11501         section does not exist.
11502         Make sure to use the .sbss section index for symbols which
11503         storage class is scBss, rather than using the .bss section index.
11504
11505 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11506
11507         * vax-tdep.c: Update copyright years.
11508         (vax_register_name): New function.
11509         (vax_register_byte): Ditto.
11510         (vax_register_raw_size): Ditto.
11511         (vax_register_virtual_size): Ditto.
11512         (vax_register_virtual_type): Ditto.
11513         * config/vax/tm-vax.h: Update copyright years.
11514         (REGISTER_NAMES): Remove.
11515         (REGISTER_NAME): Define.
11516         (REGISTER_BYTE): Use vax_register_byte.
11517         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11518         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11519         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11520
11521 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11522
11523         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11524         declaration
11525         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11526
11527 2002-04-21  David S. Miller  <davem@redhat.com>
11528
11529         * arch-utils.c (generic_prologue_frameless_p): Kill
11530         SKIP_PROLOGUE_FRAMELESS_P code.
11531         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11532         references.
11533         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11534         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11535         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11536         references.
11537         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11538         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11539         (sparc_gdbarch_init): Pass it to
11540         set_gdbarch_prologue_frameless_p.
11541
11542 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11543
11544         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11545         (alphabsd-nat.o): New dependency list.
11546
11547 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11548
11549         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11550         alphafbsd-tdep.c.
11551         (alpha-linux-tdep.o): New dependency list.
11552         (alphafbsd-tdep.o): Likewise.
11553
11554 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11555
11556         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11557         to here...
11558         * alpha-tdep.c: ...from here.
11559         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11560
11561 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11562
11563         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11564         prototype from here...
11565         * alpha-tdep.h: ...to here.
11566
11567 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11568
11569         * frame.h (selected_frame_level): Document as deprecated.
11570         (frame_relative_level): Declare.
11571         * stack.c (frame_relative_level): New function.
11572         (selected_frame_level): Document as deprecated.
11573         (select_frame): Do not set the selected_frame_level.
11574
11575         * stack.c (frame_info, record_selected_frame): Update.
11576         (frame_command, current_frame_command): Update.
11577         (up_silently_base, up_command, down_silently_base): Update.
11578         (down_command): Update.
11579         * inflow.c (kill_command): Update.
11580         * tracepoint.c (finish_tfind_command): Update.
11581         * corelow.c (core_open): Update.
11582         * thread.c (info_threads_command): Update.
11583         (do_captured_thread_select): Update.
11584         * infcmd.c (finish_command): Update.
11585         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11586
11587 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11588
11589         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11590
11591 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11592
11593         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11594         type const.
11595
11596 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11597
11598         * alphafbsd-tdep.c: Update copyright years.  Include
11599         alpha-tdep.h.
11600         (alphafbsd_use_struct_convention): Make static.
11601         (alphafbsd_init_abi): New function.
11602         (_initialize_alphafbsd_tdep): New function.
11603         * config/alpha/tm-fbsd.h: Update copyright years.
11604         (USE_STRUCT_CONVENTION): Remove.
11605
11606 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11607
11608         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11609         an Alpha ABI variant.
11610         (alpha_abi_handler_list): Declare.
11611         (alpha_gdbarch_register_os_abi): New function.
11612         (alpha_gdbarch_init): Give registered ABI variant handlers a
11613         chance to tweak the gdbarch once we have set up defaults.
11614         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11615
11616 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11617
11618         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11619         to standard_coerce_float_to_double.
11620         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11621
11622 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11623
11624         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11625         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11626         from gdbarch_tdep rather than a constant.
11627         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11628         the default text address for all Alpha Unix ABIs.
11629         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11630         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11631
11632 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11633
11634         * alpha-tdep.h: New file.  Includes several Alpha target constants
11635         taken from...
11636         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11637         let gdbarch deal with.
11638         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11639         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11640         to dependency list.
11641         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11642         Alpha target register names.
11643         * alphabsd-nat.c: Likewise.
11644         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11645         Alpha target register names.  Make serveral routines static.
11646         (alpha_get_saved_register): New function.
11647         (alpha_abi_names): New.
11648         (process_note_abi_tag_sections): New function.
11649         (get_elfosabi): New function.
11650         (alpha_gdbarch_init): New function.
11651         (alpha_dump_tdep): New function.
11652         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11653
11654 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11655
11656         * frame.c (find_saved_register): Delete #ifdef
11657         HAVE_REGISTER_WINDOWS code.
11658         * config/sparc/tm-sparc.h: Update comments.
11659         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11660
11661 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11662
11663         * i960-tdep.c (i960_find_saved_register): New function.
11664         (i960_get_saved_register): New function.
11665         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11666         (i960_get_saved_register): Declare.
11667         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11668
11669 2002-04-20  David S. Miller  <davem@redhat.com>
11670
11671         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11672
11673 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11674
11675         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11676         instead of NUM_PSEUDO_REGS.
11677
11678 2002-04-20  David S. Miller  <davem@redhat.com>
11679
11680         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11681         GDB_MULTI_ARCH_PARTIAL
11682         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11683         define, let tm-sp64.h do it.
11684
11685 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11686
11687         * frame.c (find_saved_register): Avoid a NULL pointer
11688         dereference and actually walk the frame list.
11689
11690 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11691
11692         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11693         sorted in most most-recent-used order.  Document.
11694         * gdbarch.h, gdbarch.c: Regenerate.
11695
11696 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11697
11698         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11699         instead of ->prev.
11700         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11701         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11702         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11703         instead of ->prev.
11704
11705 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11706
11707         Fix PR gdb/471.
11708         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11709         (build_builtin_type_vec128): Ditto.
11710         (append_composite_type_field): Fix calculation of type length in
11711         union case.
11712
11713 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11714
11715         * config/djgpp/README: Update.
11716
11717         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11718         compiler warnings.
11719
11720 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11721
11722         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11723         (alpha_setup_arbitrary_frame): ...to this.
11724         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11725         for alpha_setup_arbitrary_frame.
11726
11727 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11728
11729         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11730         * gdbarch.h, gdbarch.c: Regenerate.
11731
11732         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11733         * target.h (memory_breakpoint_from_pc): Update declaration.
11734         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11735
11736         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11737         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11738         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11739         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11740         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11741         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11742         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11743         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11744         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11745         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11746         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11747         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11748
11749         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11750         const pointer.
11751         * monitor.c (monitor_insert_breakpoint): Ditto.
11752         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11753
11754         * config/mcore/tm-mcore.h: Update copyright.
11755         * mem-break.c: Ditto.
11756         * xstormy16-tdep.c: Ditto.
11757
11758 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11759
11760         * p-exp.y: Add precedence rule for '^' token.
11761         This removes the shift/reduce conflicts.
11762         Remove the comment concerning these shift/reduce conflicts.
11763
11764 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11765
11766         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11767         (registers_powerpc_nofp): New register set for processors
11768         without floating point unit.
11769
11770 2002-04-18  David S. Miller  <davem@redhat.com>
11771
11772         * MAINTAINERS: Add myself to write-after-approval.
11773
11774 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11775
11776         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11777
11778 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11779
11780         * rs6000-tdep.c (frame_initial_stack_address): Use
11781         frame_register_read to read the alloca_reg.
11782
11783 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11784
11785         * frame.c (find_saved_register): Find saved registers in the next
11786         not prev frame.
11787         Fix PR gdb/365.
11788
11789 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11790
11791         * gdbarch.sh (LANG): Set to ``c''.
11792
11793 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11794
11795         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11796
11797 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11798
11799         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11800         Update copyright.
11801
11802         * hpread.c (hpread_get_lntt): Add declaration.
11803         Also fix PR gdb/391.
11804
11805 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11806
11807         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11808         * aclocal.m4, configure: Re-generate.
11809         Fix PR gdb/391.
11810
11811 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11812
11813         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11814         instead of tm_print_insn.
11815
11816 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11817
11818         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11819
11820 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11821
11822         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11823         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11824         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11825
11826 2002-04-12  Don Howard  <dhoward@redhat.com>
11827
11828         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11829         max_user_call_depth.
11830         (init_cmd_lists): Initialize the new value;
11831         * cli/cli-script.c (execute_user_command): Limit the call depth of
11832         user defined commands.  This avoids a core-dump when user commands
11833         are infinitly recursive.
11834
11835 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11836
11837         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11838         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11839         from tdep struct instead of DEFAULT_LR_SAVE.
11840         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11841         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11842         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11843
11844 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11845
11846         * Remote.c: Spelling fix.
11847         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11848         If no symbol found for "sbrk", try "_sbrk".
11849         (make_output_phdrs): Use bfd_section_name.
11850         (gcore_copy_callback): Use bfd_section_name.
11851         * eval.c: Indentation fix-ups.
11852         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11853         in case it gets applied to an address that is already
11854         in the instruction space.
11855         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11856         * symfile.c: Fix indentation, long lines.
11857         * source.c: White space fix-up.
11858
11859 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11860
11861         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11862         * frame.c (frame_register_read): New function.  Return non-zero on
11863         success.
11864         (read_relative_register_raw_bytes_for_frame): Delete.
11865         (read_relative_register_raw_bytes): Delete.
11866         * frame.h (frame_register_read): Declare.
11867         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11868         * sh-tdep.c: Ditto.
11869         * infcmd.c (do_registers_info): Ditto.
11870         * hppa-tdep.c: Ditto.
11871         * rs6000-tdep.c: Ditto.
11872         * h8500-tdep.c: Ditto.
11873         * mips-tdep.c: Ditto.
11874         * h8300-tdep.c: Ditto.
11875         * z8k-tdep.c: Ditto.
11876
11877 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11878
11879         From Jimi X <jimix@watson.ibm.com>:
11880         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11881         64-bit SysV ABI.
11882
11883 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11884
11885         From Jimi X <jimix@watson.ibm.com>:
11886         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11887         bfd info.
11888
11889 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11890
11891         From Jimi X <jimix@watson.ibm.com>:
11892         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11893         register sets for these processor variants.
11894
11895 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11896
11897         * regformats/reg-ppc.dat: Support FPSCR.
11898
11899 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11900
11901         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11902         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11903         Add fpscr as an invalid/unfetchable register.
11904         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11905         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11906         (fill_fpregset): Add support for register fpscr.
11907         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11908         (fill_gregset): Account for the fact that register ``mq'' might
11909         not exist.
11910         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11911         (registers_power): Add fpscr to register set at slot 71.
11912         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11913         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11914
11915 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11916
11917         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11918         * configure: Regenerate.
11919         * config.in: Regenerate.
11920         * acconfig.h: Add define for _SYSCALL32.
11921         * core-sol2.c: Remove #define _SYSCALL32.
11922         * solib-legacy.c: Remove #define _SYSCALL32.
11923
11924 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11925
11926         * stack.c (select_frame): Cleanup internal error message, do not
11927         use %p.
11928
11929 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11930
11931         * stack.c (select_frame): Check that selected_frame and the
11932         specified level are as expected.
11933         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11934         Update copyright.
11935         * frame.h (struct frame_info): Add field `level'.  Update
11936         copyright.
11937         Work-in-progress PR gdb/464.
11938
11939 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11940
11941         * maint.c (maint_print_section_info): Rename print_section_info.
11942         (print_bfd_section_info, print_objfile_section_info): Update.
11943         * inferior.h (struct gdbarch): Add opaque declaration.
11944         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11945         * gdbarch.h: Regenerate.
11946
11947 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11948
11949         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11950         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11951         (kernel_u_size): Added.
11952         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11953         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11954
11955 2002-04-04  Jim Ingham  <jingham@apple.com>
11956
11957        * valarith.c (find_size_for_pointer_math): New function, either returns
11958        the size for a pointer's target, returns 1 for void *, or errors for
11959        incomplete types.
11960        (value_add, value_sub): use find_size_for_pointer_math.
11961
11962 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11963
11964         * linux-low.c (linux_look_up_symbols): New hook.
11965         (linux_target_ops): Add linux_look_up_symbols.
11966         * remote-utils.c (decode_address): New function.
11967         (look_up_one_symbol): New function.
11968         * server.c (handle_query): Call target look_up_symbols hook.
11969         * server.h (look_up_one_symbol): Add prototype.
11970         * target.h (struct target_ops): Add look_up_symbols hook.
11971
11972 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11973
11974         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11975         override FP_REGNUM with frame->fp.  Update copyright.
11976         * parse.c (num_std_regs, std_regs): Delete.
11977         (target_map_name_to_register): Do not search std_regs.  Update
11978         function description.
11979         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11980         declarations.  Update copyright.
11981         Fix PR gdb/251.
11982
11983 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11984
11985         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11986         after the last symbol in a block.
11987
11988 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11989
11990         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11991         is non zero as a found symbol.
11992
11993 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11994
11995         * findvar.c: Include "builtin-regs.h".
11996         (value_of_register): Call value_of_builtin_reg when applicable.
11997         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11998         (target_map_name_to_register): Call
11999         builtin_reg_map_name_to_regnum.
12000         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12001         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12002         (builtin_regs_h): Define.
12003         (builtin-regs.o): New target.
12004         (findvar.o): Add $(builtin_regs_h).
12005         * builtin-regs.c, builtin-regs.h: New files.
12006         * std-regs.c: New file.
12007         Partial fix for PR gdb/251.
12008
12009 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12010
12011         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12012         it's no longer required.
12013
12014 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12015
12016         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12017
12018 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12019
12020         From Jimi X <jimix@watson.ibm.com>:
12021         * rs6000-tdep.c (rs6000_software_single_step): Use
12022         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12023         and size.  Use target_insert_breakpoint() and
12024         target_remove_breakpoint() to insert and remove breakpoints
12025         instead of explicit memory reads and writes.
12026
12027 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12028
12029         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12030         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12031         ELF_OBJECT_FORMAT ifdef.
12032
12033 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12034
12035         From Jimi X <jimix@watson.ibm.com>:
12036         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12037
12038 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12039
12040         From Jimi X <jimix@watson.ibm.com>:
12041         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12042         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12043
12044 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12045
12046         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12047         s/asprintf/xasprintf/.
12048         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12049
12050 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12051
12052         I believe Jeff Law denies responsability for this one:
12053         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12054         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12055         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12056         Work-around for PR gdb/366.
12057
12058 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12059
12060         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12061         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12062         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12063
12064 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12065
12066         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12067         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12068         information.
12069
12070 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12071
12072         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12073         maintainer.
12074
12075 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12076
12077         * README (Reporting Bugs in GDB): Document the bug web page as the
12078         prefered way of submitting bugs.
12079         Fix PR gdb/402.
12080
12081 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12082
12083         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12084         -1.  Update comment.
12085         * gdbarch.h, gdbarch.c: Re-generate.
12086
12087 2002-04-07  Andreas Schwab  <schwab@suse.de>
12088
12089         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12090         buffer to regcache_collect.
12091
12092 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12093
12094         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12095         * gdbarch.c, gdbarch.h: Re-generate.
12096
12097 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12098
12099         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12100         declaration.  Fix -Werror.
12101
12102 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12103
12104         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12105         * gdbarch.c: Regenerate.
12106
12107 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12108
12109         * breakpoint.c (clear_command): Rewrite middle section to
12110         combine two loops with identical control conditions.
12111         Add a cleanup to eliminate a memory leak.
12112         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12113
12114 2002-04-05  H.J. Lu  (hjl@gnu.org)
12115
12116         * solib-svr4.c (bkpt_names): Add "__start".
12117
12118 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12119
12120         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12121         as test for 64 bit target.
12122
12123 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12124
12125         * h8500-tdep.c (h8500_write_fp): Delete function.
12126         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12127         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12128         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12129         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12130         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12131         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12132         (s390_write_fp):
12133         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12134         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12135         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12136         (d10v_write_fp): Delete function.
12137         * inferior.h (write_fp, generic_target_write_fp): Delete
12138         declarations.
12139         * regcache.c (generic_target_write_fp): Delete function.
12140         (write_fp): Delete function.
12141         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12142         * gdbarch.h, gdbarch.c: Regenerate.
12143         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12144         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12145         (sparc64_write_fp): Delete declaration.
12146         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12147         (h8500_write_fp): Delete declaration.
12148
12149 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12150
12151         * sparc-tdep.c (sparc64_write_fp): Delete.
12152         (sparc_push_dummy_frame): Replace write_fp call with code to store
12153         the FP directly.
12154         (sparc_gdbarch_init): Do not initialize write_fp.
12155
12156 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12157
12158         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12159         clause.
12160
12161 2002-03-29  Jim Blandy  <jimb@redhat.com>
12162
12163         * stack.c (get_selected_block): Add new argument `addr_in_block',
12164         used to return the exact code address we used to select the block,
12165         not just the block.
12166         * blockframe.c (get_frame_block, get_current_block): Same.
12167         * frame.h (get_frame_block, get_current_block,
12168         get_selected_block): Update declarations.
12169         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12170         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12171
12172 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12173
12174         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12175         warning message.
12176
12177 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12178
12179         * utils.c (xfullpath): New function.
12180         * defs.h (xfullpath): Add declaration.
12181         * source.c (openp): Use xfullpath in place of gdb_realpath to
12182         avoid resolving the basename part of filenames when the
12183         associated file is a symbolic link. This fixes a potential
12184         inconsistency between the filenames known to GDB and the
12185         filenames it prints in the annotations.
12186         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12187         to be able to match a filename with either the real filename, or
12188         the name of any symbolic link to this file.
12189         (lookup_partial_symtab): Ditto.
12190
12191 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12192
12193         * breakpoint.c: Add support for hardware breakpoints in overlays.
12194         (overlay_events_enabled): New state variable.
12195         (insert_breakpoints): Use overlay_events_enabled to decide
12196         whether to attempt to set a breakpoint at the overlay load addr.
12197         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12198         (remove_breakpoint): Use overlay_events_enabled to decide
12199         whether breakpoints need to be removed from overlay load addr.
12200         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12201         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12202         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12203         disable_overlay_breakpoints): Update overlay_events_enabled.
12204
12205 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12206
12207         * dwarf2read.c (struct function_range): New.
12208         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12209         (check_cu_functions): New.
12210         (read_file_scope): Initialize global function lists.
12211         Call dwarf_decode_line after processing children.
12212         (read_func_scope): Add to global function list.
12213         (dwarf_decode_lines): Call check_cu_functions everywhere
12214         record_line is called.  Call record_line with a linenumber
12215         of 0 to mark sequence ends.
12216
12217 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12218
12219         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12220         change sync with glibc.
12221
12222 2002-04-03  Jim Blandy  <jimb@redhat.com>
12223
12224         * configure.in: Call AC_C_INLINE.
12225         * configure: Regenerated.
12226
12227 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12228
12229         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12230         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12231
12232 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12233
12234         * NEWS: Mention gcore support on FreeBSD/i386.
12235
12236         * fbsd-proc.c: New file.
12237         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12238         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12239
12240         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12241         while statement.
12242
12243 2002-03-29  Jim Blandy  <jimb@redhat.com>
12244
12245         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12246         unescaped newlines in string literals, but newer ones don't.  So
12247         escape them.
12248
12249 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12250             Andrew Cagney <cagney@redhat.com>
12251
12252         * cli/cli-dump.c: New file.  Dump memory to file,
12253         restore file to memory.
12254         * cli/cli-dump.h: New file.
12255         * Makefile.in: Add rules, dependencies for cli-dump.o.
12256         * NEWS: Mention new commands.
12257
12258 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12259
12260         * symfile.c (symbol_file_add): Move test for null symbols to later.
12261
12262 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12263
12264         From veksler at il.ibm.com:
12265         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12266         the xstrduped original path.
12267         Fix PR gdb/417.
12268
12269 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12270
12271         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12272         * infcmd.c (_initialize_infcmd): Ditto.
12273         * language.c (_initialize_language): Ditto.
12274         * symfile.c (_initialize_symfile): Ditto.
12275         * top.c (_init_main): Ditto.
12276         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12277
12278 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12279
12280         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12281         vector registers handling.
12282         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12283         fields of frame data.
12284         (frame_get_saved_regs): Fill in information for AltiVec registers.
12285
12286 2002-03-27  Jim Blandy  <jimb@redhat.com>
12287
12288         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12289         a function; leave this macro here to invoke that function.
12290         (symbol_init_mangled_name): Declaration for that function.
12291         * symtab.c (symbol_init_mangled_name): New function.
12292
12293 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12294
12295         * valarith.c: Replace strerror with safe_strerror.
12296         * tracepoint.c: Ditto.
12297         * lin-lwp.c: Ditto.
12298         * go32-nat.c: Ditto.
12299         * inflow.c: Ditto.
12300         * gnu-nat.c: Ditto.
12301
12302 2002-03-27  Andreas Schwab  <schwab@suse.de>
12303
12304         * event-top.c (command_line_handler): Remove useless if.
12305
12306 2002-03-27  Andreas Jaeger  <aj@suse.de>
12307
12308         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12309         comment.
12310
12311 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12312
12313         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12314         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12315         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12316         (x86_64_linux_dr_get_status, supply_gregset),
12317         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12318         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12319         (x86_64_register_info_table): Add.
12320         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12321         (x86_64_register_raw_size, x86_64_register_virtual_type),
12322         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12323         general x86_64_register_info_table.
12324         (i386_gdbarch_init): gdbarch_register_bytes is now set
12325         dynamicaly during initialization.
12326         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12327         * gdbserver/linux-x86-64-low.c: Ditto.
12328
12329 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12330
12331         * gdbserver/server.c (main): Call target_signal_to_host_p
12332         and target_signal_to_host on signals received from the remote.
12333         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12334         target_signal_from_host on signals sent to the remote.
12335         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12336         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12337
12338 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12339
12340         * signals/signals.c: Include "server.h" in gdbserver build.
12341         (target_signal_from_name): Don't use STREQ.
12342         (_initialize_signals): Likewise.  Don't include function in
12343         gdbserver build.
12344
12345 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12346
12347         * signals.c: Moved to...
12348         * signals/signals.c: Here.
12349         * Makefile (signals.o): Update.
12350
12351 2002-03-26  Jeff Law (law@redhat.com)
12352
12353         * somread.c (som_symtab_read): Remove some commented out code and
12354         updated related comments.  Do not set the minimal symbol table to
12355         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12356         in a dynamic executable.
12357         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12358         where we are unable to find the minimal symbol for the given
12359         PC value.
12360
12361 2002-03-25  Jeff Law (law@redhat.com)
12362
12363         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12364
12365 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12366
12367         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12368
12369 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12370
12371         * command.h: Update copyright.
12372         (struct cmd_list_element): Replace definition with opaque
12373         declaration.
12374         (enum cmd_types): Document that it will eventually be moved to
12375         cli/cli-decode.h
12376         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12377         (MALLOCED_REPLACEMENT): Delete macro.
12378         * Makefile.in (cli_decode_h): Add $(command_h).
12379         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12380         * top.c: Include "cli/cli-decode.h".
12381         * completer.c: Include "cli/cli-decode.h".
12382         * maint.c: Include "cli/cli-decode.h".
12383         * cli/cli-decode.h: Include "command.h".
12384         (enum command_class): Delete.
12385         (enum cmd_types): Comment out.
12386         (enum cmd_auto_boolean): Delete.
12387         (enum var_types): Delete.
12388
12389 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12390
12391         * cli/cli-decode.c: Include "gdb_assert.h".
12392         (add_set_or_show_cmd): New static function.
12393         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12394         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12395         all fields, such as func, from the set command.
12396
12397 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12398
12399         * MAINTAINERS (sh-elf): Change warning flag to -w.
12400
12401 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12402
12403         * defs.h (error): Add printf format attribute.
12404         * thread-db.c (thread_from_lwp): Fix error format string.
12405         * stack.c (parse_frame_specification): Ditto.
12406         * cli/cli-decode.c (undef_cmd_error): Ditto.
12407         * scm-lang.c (scm_lookup_name): Ditto.
12408         * tracepoint.c (trace_error): Ditto.
12409         * remote-utils.c (usage): Ditto.
12410         * remote.c (compare_sections_command): Ditto.
12411         Fix PR gdb/328.
12412
12413 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12414
12415         * gdbtypes.c (append_composite_type_field): New function.
12416         (init_composite_type): New function.
12417         * gdbtypes.h (append_composite_type_field): Declare.
12418         (init_composite_type): Ditto.
12419
12420 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12421
12422         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12423         function.
12424         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12425         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12426         structure returning convention for SYSV ABI case, but not
12427         for GNU/Linux, FreeBSD, or NetBSD.
12428
12429 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12430
12431         * symtab.h (lookup_block_symbol): Add mangled_name argument
12432         to prototype.
12433
12434         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12435         with new mangled_name argument.
12436         * linespec.c (decode_line_1): Likewise.
12437         * valops (value_of_this): Likewise.
12438         * symtab.c (lookup_transparent_type): Likewise.
12439         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12440         (lookup_symbol): If we are given a mangled name, pass it down
12441         to lookup_symbol_aux.
12442         (lookup_block_symbol): If we are given a mangled name to check
12443         against, only return symbols which match it.
12444
12445 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12446
12447         * win32-nat.c (child_create_inferior): Check for proper shell to use
12448         here, in case the user changes it on the fly.
12449         (_initialize_inftarg): Remove shell path considerations.
12450
12451 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12452
12453         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12454         for gdbarch_max_register_raw_size and max_register_virtual_size.
12455         Adjust copyright year.
12456
12457 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12458
12459          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12460          in a function to cover the entire beginning of the function
12461          as well if it does not already.
12462
12463 2002-03-21  Tom Rix  <trix@redhat.com>
12464
12465         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12466         (rs6000_ptrace64): Renamed from ptrace64.
12467
12468 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12469
12470         * gdbserver/remote-utils.c (remote_open): Don't call
12471         getprotobyname, we're all using TCP here so just use
12472         IPPROTO_TCP.
12473         * gdbserver/gdbreplay.c (remote_open): Ditto.
12474
12475 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12476
12477         * regcache.c (_initialize_regcache): No need to call
12478         build_regcache() at this time; it gets called whenever
12479         the gdbarch changes.
12480
12481 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12482
12483         * sparc-nat.c:  Include sys/param.h where possible.
12484
12485 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12486
12487         Fix PR gdb/422.
12488         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12489         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12490         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12491         complex types.
12492         * stabsread.c (rs6000_builtin_type): Likewise.
12493         (read_sun_floating_type): Likewise.
12494
12495 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12496
12497         * stabsread.c (read_member_functions): Remove skip code for duplicate
12498         constructor/destructor methods.  Use standard parsing for these
12499         methods and just do not chain them to the list of methods after
12500         parsing.
12501
12502 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12503
12504         * coffread.c: Remove redundant static declarations.  Replace
12505         occurrences of `PTR' with `void *'.
12506         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12507         * top.h (quit_cover): Likewise.
12508         * defs.h (catch_errors): Likewise.
12509
12510 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12511
12512         * defs.h (XMALLOC): Define.
12513         * gdb-events.sh (XMALLOC): Delete macro.
12514         * gdb-events.c, gdb-events.h: Regenerate.
12515         * gdbarch.sh (XMALLOC): Delete macro.
12516         * gdbarch.c: Regenerate.
12517         * serial.c (XMALLOC): Delete macro.
12518         * ui-file.c (XMALLOC): Ditto.
12519         * ser-unix.h (XMALLOC): Ditto.
12520         * sh-tdep.c (XMALLOC): Ditto.
12521         * ui-out.c (XMALLOC): Ditto.
12522         * utils.c (XMALLOC): Ditto.
12523         * i386-tdep.c (XMALLOC): Ditto.
12524         * gdb-events.c (XMALLOC): Ditto.
12525         * d10v-tdep.c (XMALLOC): Ditto.
12526         * cli-out.c (XMALLOC): Ditto.
12527
12528         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12529         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12530         * ui-file.c, ui-out.c: Ditto.
12531
12532 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12533
12534         * command.h (struct cmd_list_element): Add field context.
12535         (set_cmd_context, get_cmd_context): Declare.
12536         * cli/cli-decode.h: Ditto.
12537         * cli/cli-decode.c (get_cmd_context): New function.
12538         (set_cmd_context): New function.
12539         (add_cmd): Initialize context.
12540         Part of fixing PR gdb/145 and PR gdb/146.
12541
12542 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12543
12544         * cli/cli-decode.c (cmd_type): New function.
12545         * command.h (cmd_type): Declare.
12546         * infrun.c (set_schedlock_func): Call function cmd_type.
12547         * kod.c (kod_set_os): Call cmd_type.
12548         * cris-tdep.c (cris_version_update): Use function cmd_type.
12549         (cris_mode_update, cris_abi_update): Ditto.
12550
12551         * command.h: (execute_cmd_post_hook): Declare.
12552         (execute_cmd_pre_hook): Declare.
12553         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12554         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12555         functions. Execute pre/post hook while ensuring that afterwords
12556         hook_in is cleared.
12557         * top.c (execute_command): Use execute_cmd_post_hook, and
12558         execute_cmd_pre_hook to execute pre/post commands.
12559         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12560         hook_stop_stub.
12561         (hook_stop_stub): Call execute_cmd_pre_hook.
12562
12563 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12564
12565         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12566         set'' and this leads to a core dump.  Move xstrdup of
12567         operating_system to after check that it is not NULL.
12568
12569 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12570
12571         * kod.c (kod_set_os): Remove unnecessary check that
12572         ``command->type'' is set_cmd.
12573
12574         * valprint.c (set_input_radix): Use input_radix.
12575         (set_output_radix): Use output_radix.
12576         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12577         isn't reverted.
12578
12579 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12580
12581         * value.h (struct value): Delete field ``substring_addr''.  Change
12582         aligner fields to force_doublest_align, force_longest_align,
12583         force_core_addr_align and force_pointer_aligh.
12584
12585         * value.h (struct value): Fix typo in above change.
12586
12587 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12588
12589         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12590         to fix internal_error from ``maintenance print architecture''.
12591
12592 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12593
12594         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12595         for gcc versions after gcc-2.8.1.
12596
12597 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12598
12599         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12600         for method resolution.  Restore adjustment of ``this'' pointer after
12601         calling value_struct_elt, which was accidentally removed during the
12602         HP merge.
12603
12604 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12605
12606         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12607         value_of_register.
12608         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12609         get_saved_register.
12610         * value.h (value_of_register): Update.
12611
12612 2002-03-14  Richard Henderson  <rth@redhat.com>
12613
12614         * configure.in: Detect declaration for canonicalize_file_name.
12615         * utils.c (canonicalize_file_name): Declare, if needed.
12616         (gdb_realpath): Prefer realpath if available and usable.
12617         * config.in, configure: Rebuild.
12618
12619 2002-03-14  Richard Henderson  <rth@redhat.com>
12620
12621         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12622         a constant array bound.
12623
12624         * MAINTAINERS: Add myself to write-after-approval.
12625
12626 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12627
12628         * symfile.c (syms_from_objfile): Return immediately if no syms.
12629         (symbol_file_add): Return immediately if no syms.
12630         (find_sym_fns): Return immediately if no syms.
12631
12632 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12633
12634         * gdbserver/remote-util.c (remote_open): Print remote-side's
12635         IP address when remote debugging over the network.
12636
12637 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12638
12639         * config/sparc/fbsd.mh: Fix copyright.
12640         * config/sparc/fbsd.mt: Likewise.
12641
12642 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12643
12644         * MAINTAINERS: Fix typo in name of gdb warnings option.
12645         (x86-64): Fix formating so that this can be parsed by awk.
12646
12647 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12648
12649         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12650         * defs.h: Include "gdb/signals.h".
12651         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12652
12653 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12654
12655         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12656         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12657         from x86-64-tdep.h
12658
12659 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12660             Don Howard <dhoward@redhat.com>
12661
12662         * mips-tdep.c (ST0_FR): Define.
12663         (mips2_fp_compat): New function, temporarily disabled.
12664         (mips_read_fp_register_single): New function.
12665         (mips_read_fp_register_double): New function.
12666         (mips_print_register): Use them.
12667         (do_fp_register_row): Likewise.
12668
12669 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12670
12671         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12672         approval''.
12673
12674 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12675
12676         * stabsread.c (read_member_functions): Fix is_stub test for
12677         static member functions, improve comment.
12678
12679 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12680
12681         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12682         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12683         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12684         commands that set boolean values.
12685         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12686         (arm_rdi_resume): Always initialize PC.
12687         (arm_rdi_open): Don't use rslt as a boolean.
12688         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12689         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12690         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12691         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12692
12693 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12694
12695         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12696         * configure: Rebuilt.
12697
12698 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12699
12700         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12701         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12702
12703 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12704
12705         * cli/cli-decode.c (set_cmd_completer): New function.
12706         * command.h (set_cmd_completer): Declare.
12707         * cli/cli-decode.h (set_cmd_completer): Ditto.
12708
12709         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12710         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12711         * win32-nat.c (_initialize_inftarg): Ditto.
12712         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12713         * proc-api.c (_initialize_proc_api): Ditto.
12714         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12715         * source.c (_initialize_source): Ditto.
12716         * exec.c (_initialize_exec): Ditto.
12717         * solib.c (_initialize_solib): Ditto.
12718         * top.c (init_main): Ditto.
12719         * tracepoint.c (_initialize_tracepoint): Ditto.
12720         * symfile.c (_initialize_symfile): Ditto.
12721         * printcmd.c (_initialize_printcmd): Ditto.
12722         * infcmd.c (_initialize_infcmd): Ditto.
12723         * corefile.c (_initialize_core): Ditto.
12724
12725 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12726
12727         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12728
12729 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12730
12731         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12732
12733 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12734
12735         * NEWS: Update headings, 5.2 has branched.
12736
12737 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12738
12739         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12740         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12741         (register_addr, REGISTER_RAW_SIZE): Likewise.
12742         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12743         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12744
12745 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12746
12747         * MAINTAINERS (x86-64): Add myself.
12748         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12749         changed value_ptr -> struct value *
12750
12751 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12752
12753         * configure.host (sparc64-*-freebsd): Add.
12754         * configure.tgt: Likewise.
12755         * config/sparc/fbsd.mh: New file.
12756         * config/sparc/fbsd.mt: Likewise.
12757         * config/sparc/nm-fbsd.h: Likewise.
12758         * config/sparc/tm-fbsd.h: Likewise.
12759
12760 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12761
12762         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12763         regformats/reg-s390x.dat.
12764
12765 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12766
12767         * utils.c: Add FIXME explaining true/false problem.
12768
12769 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12770
12771         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12772
12773 2002-02-28  Michael Chastain  <mec@shout.net>
12774
12775         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12776
12777 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12778
12779         * gdbserver/linux-s390-low.c: New file.
12780         * regformats/reg-s390.dat: New file.
12781         * regformats/reg-s390x.dat: New file.
12782         * gdbserver/configure.srv: Add S/390.
12783         * gdbserver/Makefile.in: Add S/390.
12784         * configure.tgt: Enable gdbserver for S/390.
12785
12786 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12787
12788         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12789         first line of the doc string for "info dos", except at the end of
12790         the sentence, since the short help stops at the first period.
12791
12792 2002-02-28  Jason Merrill  <jason@redhat.com>
12793
12794         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12795
12796 2002-02-27  Fred Fish  <fnf@redhat.com>
12797
12798         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12799         comment (dumy -> dummy).
12800
12801 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12802
12803         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12804
12805 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12806
12807       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12808
12809 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12810
12811         * gdbserver/acconfig.h: New file.
12812         * gdbserver/i387-fp.c: New file.
12813         * gdbserver/i387-fp.h: New file.
12814         * gdbserver/linux-x86-64.c: New file.
12815         * regformats/reg-x86-64.dat: New file.
12816         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12817         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12818         * gdbserver/configure.in: Add support for regsets.
12819         * gdbserver/config.in: Regenerate.
12820         * gdbserver/configure: Regenerate.
12821         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12822         * gdbserver/linux-low.h: New file.
12823         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12824         for regsets.
12825         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12826         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12827         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12828         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12829         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12830         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12831         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12832         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12833         * gdbserver/regcache.c (supply_register): New function.
12834         (supply_register_by_name): New function.
12835         (collect_register): New function.
12836         (collect_register_by_name): New function.
12837
12838 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12839
12840         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12841         (config.status): Add configure.srv dependency.
12842         (server_h): Add config.h dependency.
12843
12844 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12845
12846         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12847         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12848         * gdbserver/configure.srv: Change i386-*-linux* to use
12849         reg-i386-linux.o.
12850
12851 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12852
12853         * x86-64-tdep.c: Re-indent.  Update copyright date.
12854
12855 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12856
12857         From Michal Ludvig <mludvig@suse.cz>:
12858         * x86-64-tdep.c (value.h): Delete.
12859         (gdb_assert.h): Include.
12860         (x86_64_register_convert_to_virtual,
12861         x86_64_register_convert_to_raw ): Add check which lets only
12862         floating-point values to be converted.
12863         (value_push): Delete.
12864         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12865         (i386_gdbarch_init): Number of register_bytes fixed.
12866
12867 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12868
12869         * MAINTAINERS: Add x86-64 target.
12870
12871 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12872
12873         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12874         * osfsolib.c (solib_map_sections): Ditto.
12875         * irix5-nat.c (solib_map_sections): Ditto.
12876         * corelow.c (gdb_check_format): Ditto.
12877         * symfile.c (symfile_bfd_open): Ditto.
12878         * solib.c (solib_map_sections): Ditto.
12879         Fix PR gdb/354.
12880
12881 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12882
12883         * remote.c (_initialize_remote): By default, disable ``e'' and
12884         ``E'' step out-of-range packets.
12885
12886 2002-02-26  Andreas Schwab  <schwab@suse.de>
12887
12888         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12889         m68k_linux_frame_saved_pc.
12890         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12891         in_sigtramp.
12892         (SIGCONTEXT_PC_OFFSET): Remove.
12893         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12894         m68k_linux_sigtramp_saved_pc): New functions.
12895         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12896         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12897         (UCONTEXT_PC_OFFSET): Define.
12898         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12899         non-RT and RT signal trampolines.
12900
12901 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12902
12903         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12904         (TARGET_NBPG, STACK_END_ADDR): Delete
12905         (VARIABLES_INSIDE_BLOCK): Delete.
12906
12907 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12908
12909         * utils.c (perror_with_name): Make string parameter constant.
12910         (print_sys_errmsg): Ditto.
12911         (query): Ditto.
12912         * defs.h (perror_with_name): Update.
12913         (print_sys_errmsg): Update.
12914         (query): Update.
12915
12916 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12917
12918         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12919         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12920
12921 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12922
12923         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12924         if it already matches the current architecture from the exec file.
12925         Include arch-utils.h for gdbarch_info_init prototype.
12926         * Makefile.in (rs6000-nat.o): Update dependencies.
12927
12928 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12929
12930         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12931          list of exported variables.
12932
12933 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12934
12935         * gdbserver/configure.srv: New file.
12936         * gdbserver/configure.in: Use configure.srv instead
12937         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12938         from it.
12939         * gdbserver/configure: Regenerated.
12940         * gdbserver/terminal.h: New file.
12941         * gdbserver/Makefile.in: Update for configure changes.  Remove
12942         more unneeded include paths.
12943
12944 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12945
12946         From wiz at danbala:
12947         * config/sparc/tm-sp64.h: Fix grammar and typos.
12948         Fix PR gdb/287.
12949
12950 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12951
12952         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12953         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12954         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12955         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12956         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12957         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12958         * s390-tdep.c: Ditto.
12959         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12960         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12961         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12962         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12963         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12964         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12965         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12966         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12967         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12968         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12969         Fix PR gdb/378.
12970
12971 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12972
12973         * lin-thread.c: Delete file.
12974         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12975         to gdb_proc_service.h.
12976         * configure: Re-generate.
12977
12978         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12979         * serial.c (serial_open): Delete check for "ocd".
12980         Fix PR gdb/349.
12981
12982         * Makefile.in (linux-thread.o): Delete target.
12983         * linux-thread.c: Delete file.
12984
12985         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12986         renamed SH files to be consistent.
12987
12988         * symtab.c (sort_search_symbols): Use xfree.
12989
12990 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12991
12992         * arm-linux-tdep.c (arm_linux_init_abi): Register
12993         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12994         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12995         definition with undef, since we don't want the sysvr4 definition.
12996         (SKIP_TRAMPOLINE_CODE): Likewise.
12997
12998 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12999
13000         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13001
13002         * configure.in: (AC_CHECK_FUNCS) Added test for
13003         canonicalize_file_name Regenerated.
13004         * config.in, configure: Regenerated.
13005         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13006         defined use canonicalize_file_name.
13007
13008 2002-02-23  Michael Chastain  <mec@shout.net>
13009
13010         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13011
13012 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13013
13014         * README: Remove references to cygnus.com.
13015         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13016         dot com'' form.  Remove references to cygnus.com and sourceware.
13017
13018 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13019
13020         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13021         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13022         1003.1-2001 no longer allows "head -1".
13023         * gdb/Makefile.in (version.c): Likewise.
13024         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13025         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13026         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13027
13028 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13029
13030         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13031         * command.h (cmd_cfunc_eq): Declare.
13032         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13033
13034         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13035         ``struct cmd_list_element *''.
13036         * cli/cli-cmds.c (is_complete_command): Update.  Use
13037         cmd_cfunc_eq.
13038         * top.c (execute_command): Pass the command to
13039         is_complete_command.
13040         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13041
13042 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13043
13044         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13045         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13046         architecture defines.
13047         * s390-tdep.c (s390_gdbarch_init): Likewise.
13048
13049 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13050
13051         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13052         (arm_linux_push_arguments): Likewise.
13053         (arm_linux_init_abi): Register them.  Also register linux-specific
13054         call_dummy_words.
13055         (find_minsym_and_objfile): Use strcmp, not STREQ.
13056         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13057         (arm_linux_call_dummy_words): Delete declaration.
13058         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13059         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13060         declarations.
13061         (LOWEST_PC): Delete.
13062
13063 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13064
13065         * maint.c (print_section_info): Do not prepend `0x' to filepos
13066         output, it will be handled by local_hex_string_custom.
13067
13068 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13069
13070         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13071         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13072         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13073
13074 2002-02-22  Jim Blandy  <jimb@redhat.com>
13075
13076         Indicate that the bcache functions don't change the strings
13077         they're passed.
13078         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13079         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13080
13081 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13082
13083         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13084
13085 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13086
13087         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13088         find the complete path to a loaded DLL.
13089
13090 2002-02-21  Fred Fish  <fnf@redhat.com>
13091
13092         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13093         that marks the end of the range of a function, enter a line number
13094         entry that has a line number of zero and a PC offset that matches
13095         the end of the function.  This starts a range of PC's for which no
13096         line number information is known.
13097         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13098         PC's for which no line number info is found (line number is zero)
13099         then we didn't find any valid line information.
13100         * symtab.h: Document use of zero line number entry.
13101
13102 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13103
13104         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13105         (have_ptrace_getvrregs): Define for run time checks.
13106         (gdb_vrregset_t): New type for Altivec register handling.
13107         (fetch_register, store_register): Fetch/store altivec register
13108         when needed.
13109         (fetch_altivec_register, store_altivec_register): New functions.
13110         (supply_vrregset, fill_vrregset): New functions.
13111         (fetch_altivec_registers, store_altivec_registers): New functions.
13112         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13113         registers as well.
13114
13115 2002-02-21  Jiri Smid  <smid@suse.cz>
13116
13117         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13118
13119 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13120
13121         * Makefile.in (armnbsd-nat.o): Update dependencies.
13122         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13123         supply the integer register set.
13124         (supply_fparegset): New function.  Similar for FPA registers.
13125         (fetch_regs, fetch_fp_regs): Use them.
13126         (fetch_core_registers): Likewise.
13127         (fetch_elfcore_registers): New function.
13128         (arm_netbsd_elfcore_fns): New core-file type specification.
13129         (_initialize_arm_netbsd_nat): Register it.
13130
13131 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13132
13133         * armnbsd-nat.c: Include gdbcore.h.
13134         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13135         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13136         'void' to declaration, to shut up ARI.
13137         (fetch_core_registers): Make static.  Rewrite using supply_register.
13138         (arm_netbsd_core_fns): New core-file type specification.
13139         (_initialize_arm_netbsd_nat): New function.
13140
13141 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13142
13143         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13144         value.
13145
13146 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13147
13148         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13149         fails.
13150
13151 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13152
13153         * jv-exp.y (parse_number): Change type of implicit longs
13154         to builtin_type_uint64.
13155
13156 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13157
13158         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13159         to be an integer instead of a `union wait'.
13160
13161 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13162
13163         * mips-linux-nat.c: Call the operating system GNU/Linux.
13164         * mips-linux-tdep.c: Likewise.
13165         * mips-tdep.c: Likewise.
13166
13167 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13168
13169         Fix PR gdb/265.
13170         * jv-exp.y (parse_number): Handle 64-bit integers.
13171
13172 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13173
13174         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13175         AC_STDC_HEADERS to AC_HEADER_STDC.
13176         * gdbserver/configure: Regenerated.
13177
13178 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13179
13180         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13181         is defined.
13182         * sparc-tdep.c (get_longjmp_target): Likewise.
13183
13184 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13185
13186         * News: Add news about ARM and Multi-arch.  Mention the new target
13187         arm*-*-netbsd*.
13188
13189 2002-02-19  Jim Blandy  <jimb@redhat.com>
13190
13191         * stabsread.c (error_type_complaint): Improve error message.
13192
13193 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13194
13195         * gdbserver/README: Update documentation.
13196         * gdbserver/configure.in: Update configury to match documentation.
13197         * gdbserver/Makefile.in: Likewise.
13198         * gdbserver/configure: Regenerated.
13199         * gdbserver/aclocal.m4: New file, generated by aclocal.
13200         * gdbserver/config.in: New file, generated by autoheader.
13201
13202 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13203
13204         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13205         armnbsd-nat.c.
13206
13207 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13208
13209         * arm-tdep.h (enum arm_float_model): New enum.
13210         (struct gdbarch_tdep): Add fp_model.
13211         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13212         up floating-point conversions until we know the floating-point model
13213         in use by the inferior.  Don't complain about being unable to
13214         determine the ABI of the inferior when we don't have one.
13215         (arm_extract_return_value): Support different floating-point models.
13216         (arm_store_return_value): Likewise.
13217         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13218         ARM_FLOAT_SOFT.
13219         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13220
13221 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13222
13223         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13224         of ``current_gdbarch''.
13225
13226 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13227
13228         * armnbsd-nat.c : ANSIfy all function declarations.
13229         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13230         (fetch_inferior_registers): Re-implement in terms of above.
13231         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13232         (store_inferior_registers): Re-implement in terms of above.
13233
13234 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13235
13236         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13237         kernel.
13238         * arm-linux-tdep.c: Likewise.
13239         * config/arm/tm-linux.h: Likewise.
13240
13241 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13242
13243         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13244         * config/arm/nbsd.mt (TM_FILE): Delete.
13245         * config/arm/tm-nbsd.h: Delete.
13246
13247 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13248
13249         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13250         Initialize CALL_DUMMY_LENGTH.
13251
13252 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13253
13254         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13255         function.
13256         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13257         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13258         defines one thing and that is incorrect for this port.
13259         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13260
13261 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13262
13263         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13264
13265 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13266
13267         * win32-nat.c (display_selector): New function. Displays information
13268         about the information returned by GetThreadSelectorEntry API function.
13269         (display_selectors): New function. Displays the infomation of
13270         the selector given as argument, or of CS, DS ans FS selectors
13271         if no argument is given.
13272         ( _initialize_inftarg): Add "w32" as info prefix command.
13273         Add "info w32 selector" as command calling display_selectors.
13274
13275 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13276
13277         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13278         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13279         if not defined.
13280
13281 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13282
13283         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13284
13285 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13286
13287         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13288         (arm_fix_call_dummy): Call it.
13289         (arm_call_dummy_breakpoint_offset): Delete.
13290         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13291         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13292
13293 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13294
13295         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13296         Default to func_frame_chain_valid.
13297         * gdbarch.h, gdbarch.c: Re-generate.
13298         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13299
13300 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13301
13302         * ppc-linux-nat.c: Update copyright.
13303         (fetch_register, store_register): Add tid parameter, don't compute
13304         tid here.
13305         (fetch_ppc_registers, store_ppc_registers): Add tid
13306         parameter. Pass it along to callees.
13307         (fetch_inferior_registers, store_inferior_registers): Compute tid
13308         here, and pass it to calleed functions.
13309         (fill_gregset, supply_fpregset): Clean up formatting.
13310
13311 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13312
13313         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13314         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13315
13316 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13317
13318         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13319         * gdbarch.c gdbarch.h: Regenerate.
13320         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13321         function.
13322         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13323         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13324         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13325
13326         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13327         * arm-tdep.c (arm_get_longjmp_target): New function.
13328         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13329         this to a positive value register arm_get_longjmp_target as the
13330         longjmp handler.
13331         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13332         (arm_linux_init_abi): Set up longjmp description in tdep.
13333         * armnbsd-nat.c (get_longjmp_target): Delete.
13334         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13335         description in tdep.
13336         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13337         (get_longjmp_target): Delete declaration.
13338         (GET_LONGJMP_TARGET): Delete.
13339         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13340         (GET_LONGJMP_TARGET): Delete.
13341
13342 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13343
13344         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13345         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13346         of ``current_gdbarch''.
13347
13348 2002-02-17  Tom Tromey  <tromey@redhat.com>
13349
13350         * cli/cli-cmds.c (compare_strings): New function.
13351         (complete_command): Only print each unique item once.
13352         * completer.h (complete_line): Declare.
13353         * completer.c (complete_line): New function.
13354         (line_completion_function): Use it.
13355
13356 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13357
13358         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13359         * gdbarch.h, gdbarch.c: Re-generate.
13360
13361 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13362
13363         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13364
13365 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13366
13367         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13368         * valops.c (value_arg_coerce): Don't take the address of a reference
13369         to convert an argument to a reference.
13370
13371 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13372
13373         * win32-nat.c (get_image_name): New function.
13374         (handle_load_dll): Use get_image_name function.
13375         (get_child_debug_event): Avoid registering debug events until possibly
13376         execed process is started.
13377         (child_create_inferior): Allow invocation via shell so that command
13378         line redirection, etc.  works ok.
13379         (_initialize_inftarg): Add new command: "set shell" to control whether
13380         a shell is used to start a process.
13381
13382 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13383
13384         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13385         instead of find_register_by_number.
13386         (cannot_store_register): Likewise.
13387
13388 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13389
13390         * dwarf2read.c: Replace fprintf (stderr, ...) by
13391         fprintf_unfiltered (gdb_stderr, ...).
13392
13393 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13394
13395         * gdbserver/gdbserver.1: Document --attach.
13396
13397 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13398
13399         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13400         descriptions.
13401         * arm-tdep.c (arm_default_arm_le_breakpoint)
13402         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13403         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13404         traditional breakpoint defines.
13405         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13406         (arm_gdbarch_init): Initialize new breakpoint variables.
13407         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13408         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13409         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13410         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13411         code out to ...
13412         (arm_netbsd_init_abi_common): ... here; new function.
13413         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13414         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13415         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13416         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13417
13418 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13419
13420         * arm-tdep.h (enum arm_abi): New enum.
13421         (struct gdbarch_tdep): New structure.
13422         (LOWEST_PC): Provide a default.
13423         (arm_gdbarch_register_os_abi): Declare new function.
13424         * arm-tdep.c (arm_abi_names): New array.
13425         (process_note_abi_tag_sections): New function.
13426         (get_elfosabi): New function.
13427         (arm_gdbarch_register_os_abi): New function.
13428         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13429         support for that ABI has been built in, then call the appropriate
13430         configuration routine.  Use gdbarch_num_regs() to get the number
13431         of registers.
13432         (arm_dump_tdep): New function.
13433         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13434         place-holder functions.
13435         (_initialize_arm_tdep): Register them.
13436         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13437
13438         * armnbsd-tdep.c: New file.
13439         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13440         * config/arm/nbsd.mt (TDEPFILES): Add it.
13441         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13442
13443         * armnbsd-nat.c: Include regcache.h.
13444         * Makefile.in (armnbsd-nat.o): Update dependency list.
13445
13446         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13447
13448 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13449
13450         * gdbserver/Makefile.in: Fix typos in target rules.
13451
13452 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13453
13454         Fix part of PR gdb/267.
13455         * linespec.c (find_methods): Handle constructors specially for now.
13456
13457 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13458
13459         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13460         handling.
13461         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13462         standard_coerce_float_to_double().
13463
13464 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13465
13466         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13467         GDBINIT_FILENAME.
13468
13469 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13470
13471         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13472         find_variant_by_name, because it confuses the multiarch
13473         framework. Return NULL if there isn't an architecture with the
13474         user supplied name, instead of forcing a different one without
13475         recording the change with the multiarch machinery.
13476         (find_variant_by_name): Delete.
13477
13478 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13479
13480         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13481         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13482
13483 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13484
13485         * stack.c (print_frame_info_base): When calling
13486         print_frame_info_listing_hook, set current_source_symtab.
13487
13488 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13489
13490         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13491         and remove unused $(INCLUDE_DIR).
13492         Add regcache.c to OBS.
13493         Add generated register protocol files to clean target.
13494         Update dependencies for new objects, obsolete old target code.
13495
13496         * gdbserver/linux-low.c: Remove all platform-specific code to
13497         new files.  Remove various dead code.  Update to use regcache
13498         functionality.
13499         * gdbserver/remote-utils.c (fromhex): Add return statement
13500         to quiet warning.
13501         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13502         constant.
13503         (input_interrupt): Add integer parameter to match prototype
13504         of a signal handler.
13505         (outreg): Use register_data ().
13506         (prepare_resume_reply): Use gdbserver_expedite_regs.
13507         * gdbserver/server.c (main): Dynamically allocate own_buf because
13508         PBUFSIZ is no longer constant.  Use registers_to_string () and
13509         registers_from_string ().
13510         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13511         for error (), fatal (), and warning ().  Update definition of
13512         PBUFSIZ to use regcache functionality.  Add include guard.
13513         * gdbserver/utils.c (fatal): Add missing ``const''.
13514         (warning): New function.
13515
13516         * regformats/regdat.sh: Include "regcache.h" in generated files.
13517         Provide init_registers () function.
13518         * regformats/regdef.h: Add prototype for set_register_cache ().
13519         Add include guard.
13520
13521         * gdbserver/linux-arm-low.c: New file.
13522         * gdbserver/linux-i386-low.c: New file.
13523         * gdbserver/linux-ia64-low.c: New file.
13524         * gdbserver/linux-m68k-low.c: New file.
13525         * gdbserver/linux-mips-low.c: New file.
13526         * gdbserver/linux-ppc-low.c: New file.
13527         * gdbserver/linux-sh-low.c: New file.
13528
13529         * gdbserver/regcache.c: New file.
13530         * gdbserver/regcache.h: New file.
13531
13532         * gdbserver/low-linux.c: Removed obsolete file.
13533
13534 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13535
13536         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13537         * config/i386/linux.mt: Likewise.
13538         * config/ia64/linux.mt: Likewise.
13539         * config/m68k/linux.mh: Likewise.
13540         * config/powerpc/linux.mh: Likewise.
13541         * config/mips/linux.mt: Likewise.
13542
13543         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13544
13545         * config/i386/i386lynx.mh: Mark gdbserver variables
13546         as (currently) obsolete for this target.
13547         * config/i386/nbsd.mt: Likewise.
13548         * config/i386/nbsdelf.mt: Likewise.
13549         * config/m32r/m32r.mt: Likewise.
13550         * config/m68k/m68klynx.mh: Likewise.
13551         * config/m68k/nbsd.mt: Likewise.
13552         * config/m68k/sun3os4.mh: Likewise.
13553         * config/mips/vr5000.mt: Likewise.
13554         * config/ns32k/nbsd.mt: Likewise.
13555         * config/pa/hppabsd.mh: Likewise.
13556         * config/pa/hppaosf.mh: Likewise.
13557         * config/powerpc/nbsd.mt: Likewise.
13558         * config/rs6000/rs6000lynx.mh: Likewise.
13559         * config/s390/s390.mt: Likewise.
13560         * config/s390/s390x.mt: Likewise.
13561         * config/sparc/sparclynx.mh: Likewise.
13562         * config/sparc/sun4os4.mh: Likewise.
13563         * config/i386/x86-64linux.mt: Likewise.
13564         * config/sparc/linux.mh: Likewise.
13565
13566 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13567
13568         * configure.tgt: Configure gdbserver only for known working
13569         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13570         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13571         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13572         * configure: Regenerated.
13573
13574 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13575
13576         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13577
13578         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13579         (default_gcore_mach): Just return 0, work around a problem in bfd.
13580         (default_gcore_target): OK to return NULL if exec_bfd is null.
13581         (make_mem_sec): Use a cast, avoid a warning.
13582
13583         * procfs.c (find_memory_regions_callback): Use a cast instead of
13584         calling host_pointer_to_address (which complains if
13585         sizeof (host pointer) != sizeof (target pointer)).
13586         (procfs_make_note_section): Avoid overflow in psargs string.
13587
13588         * procfs.c (procfs_make_note_section): Make the default
13589         implementation return an error.
13590
13591 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13592
13593         * procfs.c (procfs_make_note_section): Provide a default definition
13594         (for alpha-dec-osf4.0f). Fix typos.
13595
13596 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13597
13598         * linux-proc.c: Add include of regcache.h.
13599         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13600
13601 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13602
13603         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13604         * memattr.c (create_mem_region): Disallow useless empty region.
13605         Regions are half-open intervals, so allow [A..B) [B..C) as
13606         non-overlapping.
13607
13608 2002-02-13  Michael Chastain <mec@shout.net>
13609
13610         * defs.h: Kill CONST_PTR.
13611         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13612         * c-lang.c (c_builtin_types): Likewise.
13613         * ch-lang.c (ch_builtin_types): Likewise.
13614         * f-lang.c (f_builtin_types): Likewise.
13615         * language.c (unknown_builtin_types): Likewise.
13616         * m2-lang.c (m2_builtin_types): Likewise.
13617         * p-lang.c (pascal_builtin_types): Likewise.
13618         * scm-lang.c (c_builtin_types): Likewise.
13619
13620 2002-02-13  Keith Seitz  <keiths@redhat.com>
13621
13622         * arm-tdep.h (arm_get_next_pc): Add declaration.
13623
13624 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13625
13626         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13627         with other related struct-returning functions.
13628         (arm_extract_struct_value_address): New function.
13629         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13630         initialize float_format, double_format and long_double_format as
13631         appropriate to the endianness of the target.
13632         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13633         (arm_use_struct_convention): Delete declaration.
13634         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13635
13636 2002-02-13  Keith Seitz  <keiths@redhat.com>
13637
13638         * defs.h (core_addr_to_string_nz): New function.
13639
13640 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13641
13642         Apply missing bits of 2002-01-15 patch.
13643         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13644         (fill_fpregset): Use i387_fill_fsave.
13645
13646 2002-02-12  Keith Seitz  <keiths@redhat.com>
13647
13648         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13649         (core_addr_to_string_nz): New function.
13650
13651 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13652
13653         * arm-linux-nat.c: Really include arm-tdep.h.
13654         * config/arm/tm-linux.h (struct type, struct value): Declare.
13655
13656 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13657
13658         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13659         (gcore section): Ifdef for Solaris and Unixware only.
13660         (procfs_do_thread_registers): Unixware needs one lwpstatus
13661         per thread (not one prstatus or pstatus).
13662         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13663         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13664         once before iterating over threads.
13665
13666 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13667
13668         * arm-tdep.h: New file.
13669         * arm-tdep.c: Include arm-tdep.h.
13670         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13671         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13672         (arm_print_float_info, arm_register_type, convert_to_extended)
13673         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13674         (arm_extract_return_value, arm_register_name): Make static.
13675         (arm_software_single_step): Similarly.  Fix types in declaration.
13676         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13677         (arm_store_return_value, arm_store_struct_return): New functions.
13678         (arm_gdbarch_init): Register the above functions.  Also register
13679         call_dummy_start_offset, sizeof_call_dummy_words,
13680         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13681         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13682         max_register_virtual_size, register_size.  Set up
13683         prologue_cache.saved_regs here, rather than ...
13684         (_initialize_arm_tdep): ... here.
13685         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13686         declarations.
13687         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13688         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13689         (arm_print_float_info, arm_register_type, convert_to_extended)
13690         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13691         (arm_extract_return_value, arm_register_name): Delete declarations.
13692         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13693         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13694         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13695         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13696         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13697         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13698         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13699         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13700         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13701         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13702         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13703         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13704         interface.
13705         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13706         * remote-rdi.c remote-rdp.c: Likewise.
13707         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13708         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13709         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13710         definition.
13711
13712         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13713         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13714         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13715         from non-ARM_ prefixed definitions.
13716         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13717         all uses of above.
13718         * remote-rdi.c remote-rdp.c: Likewise.
13719         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13720
13721 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13722
13723         * arm-tdep.c (arm_frameless_function_invocation)
13724         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13725         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13726         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13727         (arm_pop_frame, arm_get_next_pc): Make static.
13728         (arm_gdbarch_init): Register above in gdbarch structure.
13729         (arm_read_fp): Renamed from arm_target_read_fp.
13730         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13731         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13732         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13733         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13734         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13735         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13736         (arm_pc_is_thumb_dummy): Delete declarations.
13737         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13738         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13739         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13740         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13741
13742 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13743
13744         * symtab.c (compare_search_syms): New function.
13745         (sort_search_symbols): New function.
13746         (search_symbols): Sort symbols after searching rather than
13747         before.
13748
13749 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13750
13751         * NEWS: Linux -> GNU/Linux.
13752
13753 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13754
13755         * gdbarch.sh: For for level one methods, disallow a definition
13756         when partially multi-arched.  Add comments explaining rationale.
13757         * gdbarch.h: Re-generate.
13758
13759 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13760
13761         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13762         multi-arch partial.
13763
13764 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13765
13766         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13767         field.  Use diff -u.
13768         * gdbarch.c: Re-generate.
13769
13770 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13771
13772         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13773         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13774         partial.
13775
13776 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13777
13778         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13779         multi-arch partial.
13780         (PUSH_ARGUMENTS): Switch to using predefault.
13781         * gdbarch.c: Regenerate.
13782
13783 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13784
13785         * valops.c (PUSH_ARGUMENTS): Delete definition.
13786         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13787         partial.  Default to default_push_arguments.
13788         * gdbarch.h, gdbarch.c: Regenerate.
13789
13790 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13791
13792         * defs.h (throw_exception): Rename return_to_top_level.  Update
13793         comments.
13794         * utils.c (error_stream, internal_verror, quit): Ditto.
13795         * top.c (throw_exception, catcher): Ditto.
13796         * sparclet-rom.c (sparclet_load): Ditto.
13797         * remote.c (interrupt_query, minitelnet): Ditto.
13798         * remote-sds.c (interrupt_query): Ditto.
13799         * remote-mips.c (mips_error, mips_kill): Ditto.
13800         * ocd.c (interrupt_query): Ditto.
13801         * monitor.c (monitor_interrupt_query): Ditto.
13802         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13803         * target.h: Update comment.
13804
13805         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13806
13807 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13808
13809         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13810         default_double_format.
13811         * gdbarch.h, gdbarch.c: Re-generate.
13812         * findvar.c (floatformat_unknown): Delete variable definition.
13813         * doublest.h (floatformat_unknown): Delete variable declaration.
13814
13815 2002-02-09  Jim Blandy  <jimb@redhat.com>
13816
13817         * stabsread.c (read_type): Add code to parse Sun's syntax for
13818         prototyped function types.
13819
13820 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13821
13822         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13823         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13824
13825 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13826
13827         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13828         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13829         now _initialize_xcoffsolib gets called again and overrides the
13830         commands from solib.c in a native configuration.
13831
13832 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13833
13834         * doublest.c (store_typed_floating): Don't try to return a value.
13835         Fixes PR gdb/290.
13836
13837 2002-02-08  Jim Blandy  <jimb@redhat.com>
13838
13839         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13840         is prototyped and has no arguments, print its argument list as
13841         `(void)'.
13842
13843 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13844
13845         * MAINTAINERS (write-after-approval): Add myself.
13846         (paper-trail): I've escaped!
13847
13848 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13849
13850         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13851         changes.
13852         (_initialize_check_for_gdb_ini): Ditto.
13853
13854 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13855
13856         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13857         xaprintf -> xasprintf.
13858
13859 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13860
13861         * win32-nat.c: Remove use of printf and sprintf functions.
13862
13863 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13864
13865         * arm-tdep.c (arm_frame_chain_valid): Make static.
13866         (arm_push_arguments): Likewise.
13867         (arm_gdbarch_init): New function.
13868         (_initialize_arm_tdep): Call it.
13869         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13870         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13871         (FRAME_CHAIN_VALID): Delete.
13872         (arm_frame_chain_valid): Delete declaration.
13873         (PUSH_ARGUMENTS): Delete.
13874         (arm_push_arguments): Delete declaration.
13875         (CALL_DUMMY_P): Delete.
13876
13877 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13878             Corinna Vinschen  <vinschen@redhat.com>
13879
13880         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13881         on builtin float types.
13882
13883 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13884
13885         * utils.c: Include <curses.h> before "bfd.h".
13886         * tui/tui-hooks.c: Likewise.
13887         * tui/tui.c: Likewise.
13888         * tui/tuiCommand.c: Likewise.
13889         * tui/tuiData.c: Likewise.
13890         * tui/tuiDataWin.c: Likewise.
13891         * tui/tuiDisassem.c: Likewise.
13892         * tui/tuiGeneralWin.c: Likewise.
13893         * tui/tuiIO.c: Likewise.
13894         * tui/tuiLayout.c: Likewise.
13895         * tui/tuiRegs.c: Likewise.
13896         * tui/tuiSource.c: Likewise.
13897         * tui/tuiSourceWin.c: Likewise.
13898         * tui/tuiStack.c: Likewise.
13899         * tui/tuiWin.c: Likewise.
13900
13901 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13902
13903         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13904         to include space for pseudoregs as well. Update loops accordingly.
13905         (sh_fp_frame_init_saved_regs): Ditto.
13906         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13907
13908 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13909
13910         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13911         Add Richard Earnshaw to Arm maintainers.
13912
13913 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13914
13915         * defs.h (warning_begin): Delete declaration.
13916
13917         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13918         Delete macro.
13919
13920 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13921
13922         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13923         Logic bug, remove misplaced else.
13924
13925 2002-02-07  Klee Dienes  <klee@apple.com>
13926
13927         * fork-inferior.c (fork_inferior): Add '!' to the list of
13928         characters that need to be quoted when building a string for the
13929         shell.  Quote '!' specifically with a backslash, since CSH chokes
13930         when trying to evaluate "str!str".
13931
13932 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13933
13934         * rdi-share/host.h: Only provide a typedef for bool if it is not
13935         defined.
13936
13937 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13938
13939         * breakpoint.h (enum bptype): Add new overlay event bp type.
13940         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13941
13942         * breakpoint.c (create_internal_breakpoint): New function.
13943         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13944         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13945         (create_thread_event_breakpoint): Ditto.
13946         (create_solib_event_breakpoint): Ditto.
13947         (create_overlay_event_breakpoint): New function.
13948         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13949         (update_breakpoints_after_exec): Delete and re-initialize
13950         overlay event breakpoints after an exec.  Add FIXME comment
13951         about longjmp breakpoint.
13952         (print_it_typical): Ignore overlay event breakpoints.
13953         (print_one_breakpoint): Ditto.
13954         (mention): Ditto.
13955         (bpstat_what): Do not stop for overlay event breakpoints.
13956         (delete_breakpoint): Don't delete overlay event breakpoints.
13957         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13958         (breakpoint_re_set): Re-create overlay event breakpoint.
13959
13960         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13961         (overlay_manual_command): Disable overlay breakpoints.
13962         (overlay_off_command): Disable overlay breakpoints.
13963
13964 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13965
13966         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13967         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13968         to here from config/tm-arm.h.
13969         (coff_sym_is_thumb): Make static.
13970         (arm_elf_make_msymbol_special): New function.
13971         (arm_coff_make_msymbol_special): New function.
13972         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13973         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13974         (coff_sym_is_thumb): Delete declaration.
13975         (arm_elf_make_msymbol_special): Declare.
13976         (arm_coff_make_msymbol_special): Declare.
13977         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13978         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13979
13980 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13981
13982         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13983
13984 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13985
13986         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13987         * gdbarch.c gdbarch.h: Regenerate.
13988         * arch-utils.c (default_print_float_info): New function.
13989         * arch-utils.h (default_print_float_info): Prototype it.
13990         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13991         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13992         (PRINT_FLOAT_INFO): Document it.
13993
13994         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13995         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13996         (PRINT_FLOAT_INFO): Define.
13997
13998 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13999
14000         * win32-nat.c (_initialize_check_for_gdb_ini):
14001         Add typecast to sprintf argument to suppress a warning.
14002
14003 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14004
14005         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14006         to allow easier handling of pass state.
14007         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14008         that gives exception name and address.
14009         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14010         and set last_sig value to ourstatus->value.sig. Some missing
14011         exceptions added.
14012         (child_continue): Correctly report continue_status.
14013         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14014         TARGET_SIGNAL_0 (new default value).
14015         (child_resume): consider sig argument passed to decide if
14016         the exception should be passed to debuggee or not.
14017
14018 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14019
14020         * regcache.c (fetch_register): Call target_fetch_register
14021         only if we don't call FETCH_PSEUDO_REGISTER.
14022         (store_register): Call target_store_register only if we
14023         don't call STORE_PSEUDO_REGISTER.
14024
14025 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14026
14027         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14028         ELF_MAKE_MSYMBOL_SPECIAL.
14029         * gdbarch.c, gdbarch.h: Regenerate.
14030         * arch-utils.c (default_make_msymbol_special): New function.
14031         * arch-utils.h (default_make_msymbol_special): Export.
14032         * elfread.c (elf_symtab_read): Compile use of
14033         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14034         multiarched.
14035         * coffread.c (coff_symtab_read): Ditto, for
14036         COFF_MAKE_MSYMBOL_SPECIAL.
14037
14038 2002-02-05  Jim Blandy  <jimb@redhat.com>
14039
14040         * solib-svr4.c (svr4_truncate_ptr): New function.
14041         (svr4_relocate_section_addresses): Do the address arithmetic with
14042         the appropriate truncation for target addresses, even when
14043         CORE_ADDR is larger than a target address.
14044
14045 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14046
14047         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14048         to (int *).
14049
14050 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14051
14052         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14053         code.
14054
14055 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14056
14057         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14058
14059 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14060
14061         * gdbserver/linux-low.c: Remove unused include files.
14062
14063 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14064
14065         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14066         (read_inferior_memory): Use it.
14067         (write_inferior_memory): Likewise.
14068
14069 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14070
14071         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14072         grubbing through sys_errlist.
14073
14074 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14075
14076         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14077
14078 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14079         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14080
14081 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14082
14083         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14084         (do_sfunc, set_cmd_sfunc): New functions.
14085
14086         * command.h (struct cmd_list_element): Add field func.
14087         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14088         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14089         * cli/cli-decode.h: Ditto.
14090
14091         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14092         (help_all, help_cmd_list): Ditto.
14093         (find_cmd, complete_on_cmdlist): Ditto.
14094         * top.c (execute_command): Ditto.
14095
14096         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14097         function.sfunc.
14098
14099         * infcmd.c (notice_args_read): Fix function signature.
14100
14101         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14102         * cli/cli-decode.c (add_set_cmd): Ditto.
14103         * utils.c (initialize_utils): Ditto.
14104         * maint.c (_initialize_maint_cmds): Ditto.
14105         * infrun.c (_initialize_infrun): Ditto.
14106         * demangle.c (_initialize_demangler): Ditto.
14107         * remote.c (add_packet_config_cmd): Ditto.
14108         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14109         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14110         * proc-api.c (_initialize_proc_api): Ditto.
14111         * kod.c (_initialize_kod): Ditto.
14112         * valprint.c (_initialize_valprint): Ditto.
14113         * top.c (init_main): Ditto.
14114         * infcmd.c (_initialize_infcmd): Ditto.
14115         * corefile.c (_initialize_core): Ditto.
14116         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14117         * arch-utils.c (initialize_current_architecture): Ditto.
14118         (_initialize_gdbarch_utils): Ditto.
14119         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14120
14121         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14122         * wince.c (_initialize_inftarg): Ditto.
14123         * symfile.c (_initialize_symfile): Ditto.
14124         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14125         * language.c (_initialize_language): Ditto.
14126         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14127
14128 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14129
14130         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14131
14132 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14133
14134         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14135         Add rules for building the register data files.
14136
14137 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14138
14139         * regformats/regdat.sh: Add braces to the definition of
14140         expedite_regs_${arch}.
14141
14142 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14143
14144         * regformats/regdef.h (struct reg): Add comment describing the
14145         requirements for offset and size fields.
14146
14147 2002-02-04  Andreas Schwab  <schwab@suse.de>
14148
14149         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14150         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14151
14152 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14153
14154         * gdbarch.sh (copyright): Update years in generated header.
14155         (SMASH_TEXT_ADDRESS): Add rule.
14156         * gdbarch.h, gdbarch.c: Re-generate.
14157         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14158         * dbxread.c: Likewise.
14159         * dwarfread.c: Likewise.
14160         * elfread.c: Likewise.
14161         * somread.c: Likewise.
14162
14163         * arm-tdep.c (arm_smash_text_address): New function.
14164         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14165
14166 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14167
14168         Add support for hardware watchpoints on win32 native.
14169         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14170         CONTEXT_DEBUG_REGISTERS.
14171         (dr variable): New variable. Static array containing a local copy
14172         of debug registers.
14173         (debug_registers_changed): New variable.  Reflects when debug registers
14174         are changed and need to be written to inferior.
14175         (debug_registers_used): New variable. Reflects when any debug register
14176         was set, used when new threads are created.
14177         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14178         i386-nat code.
14179         (thread_rec): Set dr array if id is the thread of current_event .
14180         (child_continue, child_resume): Change the debug registers for all
14181         threads if debug_registers_changed.
14182         (child_add_thread): Change the debug registers if debug_registers_used.
14183         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14184         Link nm.h to new nm-cygwin.h file.
14185         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14186         of hardware registers.
14187
14188 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14189
14190         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14191         Restore behavour broken by 2002-01-20 Andrew Cagney
14192         <ac131313@redhat.com> IEEE_FLOAT removal.
14193
14194 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14195
14196         * c-valprint.c (c_val_print): Pass a proper valaddr to
14197         cp_print_class_method.
14198         * valops.c (search_struct_method): If there is only one method
14199         and args is NULL, return that method.
14200
14201 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14202
14203         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14204         accessing tag_name directly.
14205
14206 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14207
14208         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14209         of accessing tag_name directly.
14210
14211 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14212
14213         PR gdb/280
14214         * gdbtypes.c (replace_type): New function.
14215         * gdbtypes.h (replace_type): Add prototype.
14216         * stabsread.c (read_type): Use replace_type.
14217
14218 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14219
14220         * Makefile.in (memattr.o): Add missing dependencies rule.
14221
14222 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14223
14224         * breakpoint.c (break_at_finish_command): Really export.
14225         (break_at_finish_at_depth_command): Ditto.
14226         (tbreak_at_finish_command): Ditto.
14227         * hppa-tdep.c: Include completer.h.
14228         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14229         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14230
14231 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14232
14233         * utils.c (do_write): New function.
14234         (error_stream): Rewrite combining the code from error_begin and
14235         verror.
14236         (verror): Rewrite using error_stream.
14237         (error_begin): Delete function.
14238
14239 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14240
14241         * utils.c (error_begin): Make static.
14242         * defs.h (error_begin): Delete declaration.
14243
14244         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14245         (decode_line_1): Use cplusplus_error instead of error_begin,
14246         cplusplus_hint and return_to_top_level.
14247         * coffread.c (coff_symfile_read): Use error instead of error_begin
14248         and return_to_top_level.
14249         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14250
14251 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14252
14253         * language.h (type_error, range_error): Make string parameter
14254         constant.
14255         * language.c (warning_pre_print): Delete extern declaration.
14256         * dwarfread.c (warning_pre_print): Ditto.
14257         * language.c (type_error, range_error): Rewrite to use verror and
14258         vwarning instead of warning_begin.
14259
14260 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14261
14262         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14263         (set_ignore_count): Move misplaced comment back where it belongs.
14264
14265 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14266
14267         * command.h (NO_FUNCTION): Delete macro.
14268         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14269         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14270         * tracepoint.c (_initialize_tracepoint): Ditto.
14271         * cli/cli-decode.c (add_set_cmd): Ditto.
14272         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14273
14274 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14275
14276         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14277         Update ``this'' pointer when calling virtual functions.
14278
14279 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14280
14281         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14282         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14283
14284 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14285
14286         * regformats/reg-arm.dat: New file.
14287         * regformats/reg-i386.dat: New file.
14288         * regformats/reg-ia64.dat: New file.
14289         * regformats/reg-m68k.dat: New file.
14290         * regformats/reg-mips.dat: New file.
14291         * regformats/reg-ppc.dat: New file.
14292         * regformats/reg-sh.dat: New file.
14293         * regformats/regdef.h: New file.
14294         * regformats/regdat.sh: New file.
14295
14296 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14297
14298         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14299         (arm_frame_args_address, arm_frame_locals_address): New functions.
14300         (arm_frame_num_args): New function.
14301         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14302         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14303         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14304
14305 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14306
14307         * breakpoint.c (break_at_finish_command): Export.
14308         (break_at_finish_at_depth_command): Export.
14309         (tbreak_at_finish_command): Export.
14310         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14311         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14312         "txbreak" commands, which are HPPA specific.
14313
14314         * printcmd.c (disassemble_command): Remove an ancient
14315         artifact of an old merge.
14316
14317         * symfile.h (enum overlay_debugging_state):
14318         Define enum constant values for overlay mode.
14319         * symfile.c (overlay_debugging): Use enums instead of literals.
14320         (overlay_is_mapped, overlay_auto_command,
14321         overlay_manual_command): Ditto.
14322
14323         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14324         breakpoint_here_p, breakpoint_inserted_here_p,
14325         breakpoint_thread_match, bpstat_stop_status,
14326         describe_other_breakpoints, check_duplicates, clear_command):
14327         Coding standard fixes.
14328
14329         * target.c (target_xfer_memory): Add spaces, coding standard.
14330         (do_xfer_memory): Add missing line to trust-readonly
14331         code: check bfd SEC_READONLY flag for section.
14332
14333 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14334
14335         * PROBLEMS: Fix typo, 5.1->5.1.1.
14336
14337 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14338
14339         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14340         data symbols, since we search based on textlow and texthigh.
14341         (find_pc_sect_symtab): Likewise.
14342
14343 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14344
14345         * defs.h (vwarning): Declare.
14346         * utils.c (vwarning): New function.
14347         (warning): Call vwarning.
14348         (warning_begin): Delete function.
14349
14350         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14351         the warning message.
14352         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14353         warning_begin.
14354
14355 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14356
14357         * NEWS: Mention "set trust-readonly-sections" command.
14358         Mention generate-core-file command.
14359
14360 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14361
14362         * target.c: New command, "set trust-readonly-sections on".
14363         (do_xfer_memory): Honor the suggestion to trust readonly sections
14364         by reading them from the object file instead of from the target.
14365         (initialize_targets): Register command "set trust-readonly-sections".
14366
14367 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14368
14369         * parse.c (target_map_name_to_register): Simplify, search regs and
14370         pseudo-regs using a single loop.
14371
14372 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14373
14374         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14375
14376 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14377
14378         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14379         * config/i386/i386v42mp.mh: Add i387-nat.o .
14380         * i386v4-nat.c: Include i387-nat.h.
14381         (supply_fpregset): Use i387_supply_fsave.
14382         (fill_fpregset): Use i387_fill_fsave.
14383
14384 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14385
14386         * arm-tdep.c (arm_call_dummy_words): Define.
14387         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14388         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14389         (CALL_DUMMY_WORDS): Define.
14390         (arm_call_dummy_words): Declare.
14391         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14392         (arm_linux_call_dummy_words): Declare.
14393
14394 2002-01-30  Andreas Schwab  <schwab@suse.de>
14395
14396         * m68klinux-nat.c: Fix last change to use regcache_collect
14397         instead of referencing registers[] directly.
14398
14399 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14400
14401         * parse.c (target_map_name_to_register): Delete code wrapped in
14402         #ifdef REGISTER_NAME_ALIAS_HOOK.
14403
14404 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14405
14406         * regcache.c (legacy_read_register_gen): Need to be able to
14407         read pseudo-register as well as real register.
14408         (legacy_write_register_gen): Ditto.
14409
14410 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14411
14412         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14413         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14414         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14415         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14416         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14417         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14418         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14419         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14420         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14421         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14422         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14423         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14424         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14425         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14426         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14427         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14428         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14429         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14430         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14431         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14432
14433 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14434
14435         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14436         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14437         (initialize_current_architecture): Update target_byte_order using
14438         information from BFD.
14439         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14440         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14441
14442 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14443
14444         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14445         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14446
14447         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14448         #ifdef INVALID_FLOAT.
14449         * infcmd.c (do_registers_info): Ditto.
14450         * values.c (unpack_double): Ditto.  Add comment.
14451
14452         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14453         already commented out.
14454
14455 2002-01-26  Andreas Schwab  <schwab@suse.de>
14456
14457         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14458         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14459         registers and add support for PTRACE_GETREGS.
14460
14461 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14462
14463         GDB 5.1.1 released from 5.1 branch.
14464         * NEWS: Add 5.1.1 news.
14465         * README: Sync with 5.1 branch.
14466
14467 2002-01-23  Fred Fish  <fnf@redhat.com>
14468
14469         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14470         stabstring on initial malloc.  Reallocing will copy it for us,
14471         if necessary.
14472
14473 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14474
14475         * Makefile.in (hpread_h): Delete.
14476         (HFILES_NO_SRCDIR): Remove hpread.h.
14477         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14478         (hpread.o): Update dependencies.
14479         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14480
14481         * hp-psymtab-read.c: Remove file.
14482         * hp-symtab-read.c: Remove file.
14483         * hpread.h: Remove file.
14484
14485         * hpread.c: Merge all contents of hp-psymtab-read.c,
14486         hp-symtab-read.c and hpread.h into this file, as it was prior to
14487         January 1999.
14488
14489         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14490         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14491         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14492         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14493
14494 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14495
14496         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14497         fill_gregset): Call gdbarch_tdep() just once, assign result to
14498         variable and use that, instead of calling the function several
14499         times.
14500
14501 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14502
14503         * configure.host: Accept sparcv9 as alias for sparc64.
14504         * configure.tgt: Likewise.
14505
14506 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14507
14508         * solib-aix5.c (build_so_list_from_mapfile)
14509         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14510         arguments is not reversed.
14511         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14512         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14513
14514 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14515
14516         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14517         modified version of obsolete sh_fetch_pseudo_register.
14518         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14519         (sh4_register_read): New function.
14520         (sh_pseudo_register_write): New function. Renamed and modified
14521         version of obsolete sh_store_pseudo_register.
14522         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14523         (sh4_register_write): New function.
14524         (sh_gdbarch_init): Remove setting of gdbarch function
14525         fetch_pseudo_register and store_pseudo_register. Remove setting of
14526         register_convert_to_raw, register_convert_to_virtual,
14527         register_convertible.
14528         (sh_sh4_register_convertible): Delete. No longer needed. All is
14529         taken care by architecture specific functions
14530         register_read/register_write.
14531         (sh_sh4_register_convert_to_virtual): Make static.
14532         (sh_sh4_register_convert_to_raw): Ditto.
14533
14534 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14535
14536         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14537         (floatformat_is_nan, floatformat_mantissa): Ditto.
14538
14539         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14540         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14541         builtin_type_ieee_double_little,
14542         builtin_type_ieee_double_littlebyte_bigword,
14543         builtin_type_m68881_ext, builtin_type_i960_ext,
14544         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14545         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14546         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14547         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14548
14549 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14550
14551         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14552         parameter.  Set frameless flag if it exists and depended of
14553         whether the scanned function is frameless or not.
14554         (xstormy16_skip_prologue): If function is frameless, return
14555         result of xstormy16_scan_prologue().
14556         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14557         call.
14558
14559 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14560
14561         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14562         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14563         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14564         sh_sh4_register_byte, sh_sh4_register_raw_size,
14565         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14566         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14567         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14568         sh_store_pseudo_register, sh_do_pseudo_register): Call
14569         gdbarch_tdep() just once, assign result to variable and use that,
14570         instead of calling the function several times.
14571
14572 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14573
14574         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14575         macros instead of LAST_FPU_CTRL_REGNUM.
14576         (store_register): Likewise.
14577
14578 2002-01-21  Jim Blandy  <jimb@redhat.com>
14579
14580         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14581         is up-to-date before running the program, not just when a program
14582         exits.
14583
14584 2002-01-21  Fred Fish  <fnf@redhat.com>
14585
14586         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14587         when we have found all instructions we are looking for.
14588
14589 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14590
14591         * arm-tdep.c (arm_register_name): New function.
14592         (arm_registers_names): Make static.
14593         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14594         (arm_register_name): Declare.
14595         (REGISTER_NAME): Use it.
14596
14597 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14598             Kevin Buettner  <kevinb@redhat.com>
14599
14600         Convert arm targets to new FRAME interface.
14601         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14602         (arm_frame_find_save_regs): Delete.
14603         (arm_frame_init_saved_regs): New.
14604         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14605         Allocate extra_info as required.  Convert all uses of fsr.regs
14606         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14607         to use extra_info.
14608         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14609         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14610         (check_prologue_cache, save_prologue_cache): Likewise.
14611         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14612         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14613         (FRAME_FIND_SAVED_REGS): Delete.
14614         (arm_frame_find_saved_regs): Delete prototype.
14615         (arm_frame_init_saved_regs): New prototype.
14616         (FRAME_INIT_SAVED_REGS): Define.
14617
14618 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14619
14620         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14621
14622 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14623
14624         From Jeff Law <law@redhat.com>:
14625         * infttrace.c: Include <sys/pstat.h>.
14626         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14627         exec file if the ttrace equivalent fails.
14628
14629 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14630
14631         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14632         (closeLogFile): Ditto.
14633
14634 2002-01-20  Michael Chastain  <mec@shout.net>
14635
14636         * top.c (print_gdb_version): Bump copyright year to 2002.
14637
14638 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14639
14640         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14641         Zannoni and Eli Zaretskii.
14642
14643 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14644
14645         * buildsym.c: Update copyright years.
14646         * c-typeprint.c: Likewise.
14647         * dwarf2read.c: Likewise.
14648         * f-typeprint.c: Likewise.
14649         * gdbtypes.c: Likewise.
14650         * gdbtypes.h: Likewise.
14651         * hp-symtab-read.c: Likewise.
14652         * hpread.c: Likewise.
14653         * mdebugread.c: Likewise.
14654         * p-typeprint.c: Likewise.
14655
14656 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14657
14658         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14659         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14660         byte-order selectable.
14661         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14662         * arch-utils.c: Ditto.
14663         (set_endian): Ditto.
14664         (set_endian_from_file): Ditto.
14665         * gdbserver/low-sim.c (create_inferior): Ditto.
14666         * gdbarch.sh: Ditto.
14667         * gdbarch.h: Re-generate.
14668         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14669         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14670         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14671         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14672         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14673         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14674         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14675         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14676         macro definition.
14677         * config/mips/tm-wince.h: Remove #undef of macro
14678         TARGET_BYTE_ORDER_SELECTABLE.
14679         * config/sh/tm-wince.h: Ditto.
14680
14681 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14682
14683         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14684         member function fields.  Add accessor macro
14685         TYPE_FN_FIELD_ARTIFICIAL.
14686         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14687         * c-typeprint.c (c_type_print_base): Skip artificial member
14688         functions.
14689
14690 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14691
14692         * f-typeprint.c: Delete unused function f_type_print_args.
14693         * p-typeprint.c: Delete unused function pascal_type_print_args.
14694
14695 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14696
14697         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14698         comment.  Add ``artificial'' to ``union field_location''.
14699
14700         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14701
14702         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14703         * mdebugread.c (parse_symbol): Likewise.
14704         * stabsread.c (define_symbol): Likewise.
14705         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14706         initializing TYPE_FIELD_BITPOS to n (obsolete).
14707         (hpread_doc_function_type): Likewise.
14708         * hpread.c (hpread_function_type): Likewise.
14709
14710 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14711
14712         * configure.in (host_makefile_frag): Only require a host makefile
14713         fragment when a native build.
14714         * configure: Re-generate.
14715
14716 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14717
14718         * doublest.h (floatformat_from_type): Declare.
14719         * doublest.c (floatformat_from_type): New function.
14720         (convert_typed_floating): Use.
14721
14722         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14723         call to function floatformat_from_type.
14724
14725         * gdbarch.sh (IEEE_FLOAT): Delete.
14726         * gdbarch.h, gdbarch.c: Re-generate.
14727         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14728         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14729         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14730         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14731         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14732         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14733         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14734         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14735         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14736         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14737         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14738         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14739
14740         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14741         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14742         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14743         * sh-tdep.c (sh_gdbarch_init): Ditto.
14744         * mips-tdep.c (mips_gdbarch_init): Ditto.
14745         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14746         * cris-tdep.c (cris_gdbarch_init): Ditto.
14747
14748 2002-01-20  Jiri Smid  <smid@suse.cz>
14749
14750         * configure.host, configure.tgt: Support x86-64.
14751         * NEWS: Note new target x86-64.
14752
14753         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14754         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14755         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14756         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14757         x86-64-linux-nat.o): Fix dependencies.
14758
14759 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14760
14761         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14762         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14763         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14764         * config/sparc/xm-sun4os4.h: Delete file.
14765         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14766
14767 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14768
14769         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14770         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14771         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14772         * config/i386/i386lynx.mh (XM_FILE): Delete.
14773         * config/rs6000/xm-rs6000ly.h: Delete file.
14774         * config/sparc/xm-sparclynx.h: Delete file.
14775         * config/m68k/xm-m68klynx.h: Delete file.
14776         * config/i386/xm-i386lynx.h: Delete file.
14777         * config/xm-lynx.h: Delete file.
14778         * config/djgpp/fnchange.lst: Update.
14779
14780 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14781
14782         * alpha-tdep.c (alpha_register_byte): New function.
14783         (alpha_register_raw_size): Ditto.
14784         (alpha_register_virtual_size): Ditto.
14785         (alpha_skip_prologue_internal): Renamed from
14786         alpha_skip_prologue.
14787         (alpha_skip_prologue): New version that calls
14788         alpha_skip_prologue_internal.
14789         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14790         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14791         second argument from alpha_skip_prologue.
14792         (REGISTER_BYTE): Use alpha_register_byte.
14793         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14794         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14795         (FRAMELESS_FUNCTION_INVOCATION): Use
14796         generic_frameless_function_invocation_not.
14797         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14798         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14799
14800 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14801
14802         * config/mips/xm-news-mips.h: Delete file.
14803         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14804
14805         * config/m88k/xm-m88k.h: Delete file.
14806         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14807         * config/m88k/xm-delta88v4.h: Ditto.
14808         * config/m88k/xm-delta88.h: Ditto.
14809
14810         * config/alpha/xm-fbsd.h: Delete file.
14811         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14812
14813         * config/sparc/xm-sparc.h: Delete file.
14814         * Makefile.in (xm-sun4os4.h): Delete dependency.
14815         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14816         * config/sparc/xm-sun4os4.h: Ditto.
14817         * config/sparc/xm-linux.h: Ditto.
14818
14819         * config/i386/xm-windows.h: Delete file.
14820
14821 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14822
14823         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14824         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14825
14826 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14827
14828         * alpha-tdep.c (alpha_call_dummy_words): New.
14829         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14830         (CALL_DUMMY_P): Define.
14831         (CALL_DUMMY_WORDS): Define.
14832         (SIZEOF_CALL_DUMMY_WORDS): Define.
14833
14834 2002-01-19  Per Bothner  <per@bothner.com>
14835
14836         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14837         isn't NULL, which can happen with some gcj-3.x-produced code.
14838
14839 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14840
14841         * alpha-tdep.c (alpha_register_virtual_type): New function.
14842         (alpha_init_frame_pc_first): Ditto.
14843         (alpha_fix_call_dummy): Ditto.
14844         (alpha_store_struct_return): Ditto.
14845         (alpha_extract_struct_value_address): Ditto.
14846         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14847         alpha_register_virtual_type.
14848         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14849         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14850         alpha_extract_struct_value_address.
14851         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14852         (INIT_FRAME_PC): Use init_frame_pc_noop.
14853         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14854
14855 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14856
14857         * i386gnu-nat.c: Include "i386-tdep.h".
14858         (fetch_fpregs): Simplify code dealing with uninitialized floating
14859         point states such that it doesn't require FP7_REGNUM.
14860
14861 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14862
14863         * alpha-tdep.c (frame_extra_info): New.
14864         (alpha_find_saved_regs): Make static.  Use
14865         frame->extra_info.
14866         (alpha_frame_init_saved_regs): New function.
14867         (alpha_frame_saved_pc): Use frame->extra_info.
14868         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14869         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14870         (init_extra_frame_info): Rename to...
14871         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14872         (alpha_print_extra_frame_info): New function.
14873         (alpha_frame_locals_address): Ditto.
14874         (alpha_frame_args_address): Ditto.
14875         (alpha_pop_frame): Use frame->extra_info.
14876         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14877         alpha_frame_args_address.
14878         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14879         (alpha_find_saved_regs): Remove prototype.
14880         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14881         (EXTRA_FRAME_INFO): Remove.
14882         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14883         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14884
14885 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14886
14887         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14888         (alpha_cannot_fetch_register): Ditto.
14889         (alpha_cannot_store_register): Ditto.
14890         (alpha_register_convertible): Ditto.
14891         (alpha_use_struct_convention): Ditto.
14892         * config/alpha/tm-alpha.h: Update copyright years.
14893         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14894         (INNER_THAN): Use core_addr_lessthan.
14895         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14896         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14897         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14898         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14899         (FRAME_CHAIN): Remove unnecessary cast.
14900
14901 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14902
14903         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14904         obsolete.
14905
14906 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14907
14908         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14909         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14910         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14911         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14912         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14913         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14914         * x86-64-linux-nat.c: Ditto.
14915
14916 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14917
14918         * alpha-tdep.c (alpha_register_name): New function.
14919         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14920         (REGISTER_NAME): Define.
14921
14922 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14923
14924         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14925
14926 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14927
14928         * alpha-tdep.c: Update copyright years.
14929         (alpha_next_pc): New function.
14930         (alpha_software_single_step): Ditto.
14931         * config/alpha/tm-alpha.h: Add prototype for
14932         alpha_software_single_step.
14933
14934 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14935
14936         * alphabsd-nat.c: Update copyright years.
14937         (fill_gregset): Use regcache_collect.
14938         (fill_fpregset): Likewise.
14939         (fetch_inferior_registers): Only fetch integer registers
14940         if requested to do so.
14941         (store_inferior_registers): Only store integer registers
14942         if requested to do so.
14943
14944 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14945
14946         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14947         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14948         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14949         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14950         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14951         * config/arm/linux.mh (XDEPFILES): Delete.
14952         * config/arm/nbsd.mh (XDEPFILES): Delete.
14953         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14954         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14955         * config/i386/i386m3.mh (XDEPFILES): Delete.
14956         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14957         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14958         * config/i386/fbsd.mh (XDEPFILES): Delete.
14959         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14960         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14961         * config/i386/i386v4.mh (XDEPFILES): Delete.
14962         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14963         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14964         * config/i386/i386aix.mh (XDEPFILES): Delete.
14965         * config/i386/go32.mh (XDEPFILES): Delete.
14966         * config/i386/cygwin.mh (XDEPFILES): Delete.
14967         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14968         * config/i386/i386mach.mh (XDEPFILES): Delete.
14969         * config/i386/i386v32.mh (XDEPFILES): Delete.
14970         * config/i386/linux.mh (XDEPFILES): Delete.
14971         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14972         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14973         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14974         * config/i386/i386sco.mh (XDEPFILES): Delete.
14975         * config/i386/i386v.mh (XDEPFILES): Delete.
14976         * config/i386/nbsd.mh (XDEPFILES): Delete.
14977         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14978         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14979         * config/i386/symmetry.mh (XDEPFILES): Delete.
14980         * config/i386/obsd.mh (XDEPFILES): Delete.
14981         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14982         * config/ia64/linux.mh (XDEPFILES): Delete.
14983         * config/ia64/aix.mh (XDEPFILES): Delete.
14984         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14985         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14986         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14987         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14988         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14989         * config/m68k/linux.mh (XDEPFILES): Delete.
14990         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14991         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14992         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14993         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14994         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14995         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14996         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14997         * config/m88k/delta88.mh (XDEPFILES): Delete.
14998         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14999         * config/m88k/m88k.mh (XDEPFILES): Delete.
15000         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15001         * config/mips/linux.mh (XDEPFILES): Delete.
15002         * config/mips/irix6.mh (XDEPFILES): Delete.
15003         * config/mips/irix5.mh (XDEPFILES): Delete.
15004         * config/mips/irix4.mh (XDEPFILES): Delete.
15005         * config/mips/irix3.mh (XDEPFILES): Delete.
15006         * config/mips/decstation.mh (XDEPFILES): Delete.
15007         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15008         (NATDEPFILES): Move core-aout.o to here.
15009         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15010         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15011         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15012         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15013         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15014         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15015         * config/pa/hpux11.mh (XDEPFILES): Delete.
15016         * config/powerpc/aix.mh (XDEPFILES): Delete.
15017         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15018         * config/powerpc/linux.mh (XDEPFILES): Delete.
15019         * config/romp/rtbsd.mh: Rename XDEPFILES.
15020         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15021         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15022         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15023         * config/s390/s390.mh (XDEPFILES): Delete.
15024         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15025         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15026         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15027         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15028         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15029         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15030         * config/sparc/linux.mh (XDEPFILES): Delete.
15031         * config/vax/vaxult.mh (XDEPFILES): Delete.
15032         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15033         * Makefile.in (DEPFILES): Remove XDEPFILES.
15034
15035 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15036
15037         * utils.c (internal_verror): Fix comments, default is yes not no.
15038         Update queries to match.  Default to quit and dump core.
15039
15040 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15041
15042         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15043         copyright.
15044         * defs.h, event-top.c, gdbcmd.h: Ditto.
15045         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15046         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15047         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15048         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15049         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15050         * mi/mi-main.c:Ditto.
15051
15052         * stack.c, symfile.c: Update copyright.
15053
15054 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15055
15056         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15057         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15058         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15059         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15060
15061 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15062
15063         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15064         * gdbserver/low-lynx.c (myattach): Likewise.
15065         * gdbserver/low-nbsd.c (myattach): Likewise.
15066         * gdbserver/low-sim.c (myattach): Likewise.
15067         * gdbserver/low-sparc.c (myattach): Likewise.
15068         * gdbserver/low-sun3.c (myattach): Likewise.
15069
15070         * gdbserver/low-linux.c (myattach): New function.
15071
15072         * gdbserver/server.c (attach_inferior): New function.
15073         (main): Handle "--attach".
15074
15075 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15076
15077         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15078         maintainer.
15079
15080 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15081
15082         * c-typeprint.c (is_type_conversion_operator): Add additional
15083         check for non-conversion operators.
15084
15085 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15086
15087         * linux-proc.c: Add "info proc" command, a la procfs.c.
15088         (read_mapping): New function, abstract and re-use code.
15089         (linux_find_memory_regions): Use new func read_mapping.
15090         (linux_info_proc_cmd): New function, implement "info proc".
15091         (_initialize_linux_proc): Add new command "info proc".
15092
15093 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15094
15095         * symfile.c (generic_load): Use bfd_map_over_sections method
15096         instead of manipulating bfd structure members directly.
15097         (add_section_size_callback): New function, bfd sections callback
15098         used by generic_load.
15099         (load_sections_callback): New function, bfd sections callback
15100         used by generic_load.
15101
15102 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15103
15104         [Based on work by Jim Blandy]
15105         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15106         (builtin_type_vec128): Export.
15107         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15108         types.
15109         (builtin_type_vec128): New builtin type for 128 bit vector
15110         registers.
15111         (build_gdbtypes): Initialize builtin_type_v16qi and
15112         builtin_type_v8hi. Create the vec128 register builtin type
15113         structure.
15114         (build_builtin_type_vec128): New function.
15115         (_initialize_gdbtypes): Register builtin_type_v16qi and
15116         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15117         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15118         AltiVec register to new builtin type.
15119
15120 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15121
15122         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15123         to make_cv_type.
15124
15125 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15126
15127         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15128         CLEAN_UP_REGISTER_VALUE.
15129         * regcache.c (supply_register): Update only call.
15130
15131 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15132
15133         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15134         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15135         a29k-*-vxworks* targets as obsolete.
15136
15137 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15138
15139         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15140         until we can resolve portability issues.
15141         * gregset.h: Remove references to fpxregs.
15142         * gcore.c (gcore_command): Initialize note_sec to NULL.
15143
15144 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15145
15146         * signals.c (target_signal_to_name): Rewrite.  Only use
15147         signals[].name when in bounds and non-NULL.
15148
15149 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15150
15151         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15152         * signals.c (target_signal_to_name): Verify that SIG is within the
15153         bounds of the signals array.
15154
15155 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15156
15157         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15158
15159 2002-01-13  Keith Seitz  <keiths@redhat.com>
15160
15161         * stack.c (print_frame_info_base): Print the frame's pc
15162         only if when print_frame_info_listing_hook is not defined.
15163
15164 2002-01-13  Keith Seitz  <keiths@redhat.com>
15165
15166         * varobj.c (varobj_set_value): Make sure that there were no
15167         errors evaluating the object before attempting to set its
15168         value.
15169         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15170         so this offset adjustment is no longer necessary.
15171         (create_child): Don't set the error flag if the child is
15172         a CPLUS_FAKE_CHILD.
15173         (value_of_child): If value_fetch_lazy fails, return NULL
15174         so that callers will be notified that an error occurred.
15175         (c_value_of_variable): Delay check of variable's validity
15176         until later. We actually want all structs and unions to have
15177         the value "{...}".
15178         Do not return "???" for variables which could not be evaluated.
15179         This error condition must be returned to the caller so that it
15180         can get the error condition from gdb.
15181         (cplus_name_of_child): Adjust index for vptr before figuring
15182         out the name of the child.
15183         (cplus_value_of_child): If a child's (real) parent is not valid,
15184         don't even bother trying to give a value for it. Just return
15185         an error. Change all instances in this function.
15186         (cplus_type_of_child): If our parent is one of the "fake"
15187         parents, we need to get at the type of the real parent, and
15188         derive the child's true type using this information.
15189
15190 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15191
15192         From 2002-01-09 John Marshall <johnm@falch.net>:
15193         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15194         sources.redhat.com, and tweak some related URLs which had
15195         suffered from linkrot.
15196
15197 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15198
15199         From Jeff law:
15200         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15201         structures passed in registers.
15202
15203 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15204
15205         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15206         white space which prevented compilation.  Reported by DSK
15207         <dsk@student.unsw.edu.au>.
15208
15209 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15210
15211         * symfile.c (build_section_addr_info_from_section_tab):
15212         Use bfd access method instead of manipulating bfd directly.
15213         (syms_from_objfile): Ditto.
15214         (simple_overlay_update_1): Ditto.
15215         (simple_overlay_update): Ditto.
15216         (generic_load): Ditto.
15217         (overlay_unmapped_address): FIXME comment, bfd access methods.
15218         (sections_overlap): FIXME comment, bfd access methods.
15219         (pc_in_mapped_range): FIXME comment, bfd access methods.
15220         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15221         (section_is_mapped): FIXME comment, bfd access methods.
15222         (section_is_overlay): FIXME comment, bfd access methods.
15223
15224         * symfile.c (generic_load): Whitespace and long line cleanups.
15225         Remove duplicate variable, change several local variables to
15226         more appropriate data types.
15227         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15228
15229 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15230
15231         From Peter Schauer:
15232         * language.c (longest_local_hex_string_custom): Use phex_nz to
15233         convert NUM to a hex string.
15234
15235 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15236
15237         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15238         the function.
15239         Update Copyright year.
15240
15241 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15242
15243         * language.c (longest_raw_hex_string): Delete unused function.
15244
15245 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15246
15247         * MAINTAINERS (write-after-approval): Add myself.
15248         * dwarf2read.c (read_tag_string_type): Handling of
15249         DW_AT_byte_size.
15250         (read_tag_string_type): FORTRAN fix to prevent propagation of
15251         first string size.
15252         (set_cu_language): Handling of DW_LANG_Fortran95
15253
15254 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15255
15256         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15257         GETPID(inferior_ptid).
15258         (store_inferior_registers): Likewise.
15259
15260 2002-01-10  Jason Merrill  <jason@redhat.com>
15261
15262         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15263         Fix DW_OP_minus.
15264
15265 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15266
15267         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15268         and bfd/elf32-sh-nbsd.c.
15269
15270 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15271
15272         * NEWS: Mention --pid and corefile/proc-id behavior change.
15273
15274         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15275         * gcore.c: Include cli/cli-decode.h instead of command.h.
15276
15277         * main.c (captured_main): Add new command line option "--pid".
15278         If the second command line argument (following the symbol-file)
15279         begins with a digit, try to attach to it before trying to open
15280         it as a corefile.
15281         (print_gdb_help): Document the "--pid" argument.
15282
15283 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15284
15285         * completer.c (command_completer): New function.
15286
15287         * completer.h <command_completer>: Add prototype.
15288
15289         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15290         completer for the "help" command.
15291
15292 2002-01-09  Jason Merrill  <jason@redhat.com>
15293
15294         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15295
15296 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15297
15298         * i386-linux-nat.c (fill_fpxregset): Make global.
15299         (store_fpxregset): Ditto.
15300
15301         * gregset.h (gdb_fpxregset_t): Define.
15302         (supply_fpxregset): Prototype.
15303         (fill_fpxregset): Prototype.
15304
15305         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15306
15307 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15308
15309         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15310         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15311         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15312
15313 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15314
15315         * MAINTAINERS: Update target maintainer rules so that any
15316         Maintainer can approve a tested patch for a maintenance-only
15317         target.
15318
15319 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15320
15321         * MAINTAINERS (write-after-approval): Add myself.
15322
15323         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15324         IN_SIGTRAMP.
15325
15326 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15327
15328         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15329         real name of the executable, rather than the /proc name.
15330
15331 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15332
15333         Implement a "generate-core-file" command in gdb, save target state.
15334         * gcore.c: New file.  Implement new command 'generate-core-file'.
15335         Save a corefile image of the current state of the inferior.
15336         * linux-proc.c: Add linux-specific code for saving corefiles.
15337         * target.h (struct target_ops): Add new target vectors for saving
15338         corefiles; to_find_memory_regions and to_make_corefile_notes.
15339         (target_find_memory_regions): New macro.
15340         (target_make_corefile_notes): New macro.
15341         * target.c (update_current_target): Inherit new target methods.
15342         (dummy_find_memory_regions): New place-holder method.
15343         (dummy_make_corefile_notes): New place-holder method.
15344         (init_dummy_target): Initialize new dummy target vectors.
15345         * exec.c (exec_set_find_memory_regions): New function.
15346         Allow the exec_ops vector for memory regions to be taken over.
15347         (exec_make_note_section): New function, target vector method.
15348         * defs.h (exec_set_find_memory_regions): Export prototype.
15349         * procfs.c (proc_find_memory_regions): New function, corefile method.
15350         (procfs_make_note_section): New function, corefile method.
15351         (init_procfs_ops): Set new target vector pointers.
15352         (find_memory_regions_callback): New function.
15353         (procfs_do_thread_registers): New function.
15354         (procfs_corefile_thread_callback): New function.
15355         * sol-thread.c (sol_find_memory_regions): New function.
15356         (sol_make_note_section): New function.
15357         (init_sol_thread_ops): Initialize new target vectors.
15358         * inftarg.c (inftarg_set_find_memory_regions): New function.
15359         Allow to_find_memory_regions vector to be taken over.
15360         (inftarg_set_make_corefile_notes): New function.
15361         Allow to_make_corefile_notes vector to be taken over.
15362         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15363         interface layer if not target_has_execution (may be a corefile).
15364         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15365         * config/sparc/sun4sol2.mh: Ditto.
15366         * config/alpha/alpha-linux.mh: Ditto.
15367         * config/arm/linux.mh: Ditto.
15368         * config/i386/x86-64linux.mh: Ditto.
15369         * config/ia64/linux.mh: Ditto.
15370         * config/m68k/linux.mh: Ditto.
15371         * config/mips/linux.mh: Ditto.
15372         * config/powerpc/linux.mh: Ditto.
15373         * config/sparc/linux.mh: Ditto.
15374
15375 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15376
15377         * arm-linux-nat.c: Remove references to regcache.c internal data
15378         (registers[] and register_valid[]).
15379
15380 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15381
15382         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15383         so that attaching to a pid will automatically read the process's
15384         symbol file and shlibs.
15385         * Makefile.in: Add rule for linux-proc.o.
15386         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15387         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15388         * config/arm/linux.mh: Ditto.
15389         * config/i386/linux.mh: Ditto.
15390         * config/i386/x86-64linux.mh: Ditto.
15391         * config/ia64/linux.mh: Ditto.
15392         * config/m68k/linux.mh: Ditto.
15393         * config/mips/linux.mh: Ditto.
15394         * config/powerpc/linux.mh: Ditto.
15395         * config/sparc/linux.mh: Ditto.
15396
15397 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15398
15399         * win32-nat.c: Add i386-tdep.h dependency.
15400
15401 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15402
15403         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15404         instead of bfd_get_arch_size.  Don't bail out just because
15405         there's no exec_bfd.
15406
15407         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15408         * p-valprint.c (pascal_object_print_value): Ditto.
15409         * somread.c (som_symtab_read): Ditto.
15410         * symfile.c (simple_free_overlay_region_table): Ditto.
15411         * valops.c (value_assign): Ditto.
15412
15413         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15414         use tilde_expand and strerror for opening save-tracepoints file.
15415
15416         * thread-db.c (thread_db_new_objfile): Indendation fix.
15417
15418         * infptrace.c (GDB_MAX_ALLOCA): New define.
15419         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15420         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15421         can be overridden with whatever value is appropriate to the host).
15422         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15423         alloca to allocate potentially large buffer.
15424         * rs6000-nat.c (child_xfer_memory): Ditto.
15425         * symm-nat.c (child_xfer_memory): Ditto.
15426         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15427
15428 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15429
15430         From Nick Clifton  <nickc@redhat.com>
15431         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15432
15433 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15434
15435         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15436         Don't use exec_bfd if it's NULL.
15437
15438 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15439
15440         * valops.c (value_arg_coerce): Fix formatting.
15441
15442 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15443
15444         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15445         * gnu-nat.c: Ditto.
15446
15447 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15448
15449         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15450         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15451         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15452         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15453         z8k-coff have not been multi-arched.  Update z8k-coff build
15454         status.
15455
15456 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15457
15458         * MAINTAINERS: Mark a29k target as obsolete.
15459         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15460         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15461         comments.
15462         * NEWS: Note that a29k targets are obsolete.
15463         * a29k-tdep.c: Mark as obsolete.
15464         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15465         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15466         a29k-*-vxworks* targets as obsolete.
15467         * remote-adapt.c: Obsolete.
15468         * remote-eb.c: Obsolete.
15469         * remote-mm.c: Obsolete.
15470         * remote-udi.c: Obsolete.
15471         * config/a29k/a29k-udi.mt: Obsolete.
15472         * config/a29k/a29k.mt: Obsolete.
15473         * config/a29k/tm-a29k.h: Obsolete.
15474         * config/a29k/tm-vx29k.h: Obsolete.
15475         * config/a29k/vx29k.mt: Obsolete.
15476
15477 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15478
15479         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15480         with BFD_ENDIAN_BIG.
15481
15482 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15483
15484         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15485         * configure, config.in: Re-generate.
15486         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15487         * defs.h: Do not include <endian.h>.
15488
15489 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15490
15491         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15492         * config.in: Regenerate.
15493         * configure.in: Update copyright years.
15494         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15495         * configure: Regenerate.
15496         * i386bsd-nat.c: Update copyright years.
15497         (fill_gregset): Use regcache_collect.
15498         (fetch_inferior_registers): Only fetch integer registers
15499         if requested to do so.  Add support for XMM registers
15500         using PT_GETXMMREGS.
15501         (store_inferior_registers): Only store integer registers
15502         if requested to do so.  Add support for XMM registers
15503         using PT_SETXMMREGS.
15504         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15505         (store_inferior_registers): Remove.
15506         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15507         (fetch_elfcore_registers): New function.
15508         (i386nbsd_elfcore_fns): New.
15509         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15510         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15511         i386bsd-nat.o.
15512         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15513         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15514         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15515         * config/i386/tm-nbsd.h: Update copyright years.
15516         (HAVE_SSE_REGS): Define.
15517         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15518         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15519         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15520         (SIGCONTEXT_PC_OFFSET): Remove.
15521         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15522
15523 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15524
15525         * configure.tgt: Remove powerpc-*-macos* target.
15526         * config/m68k/xm-mpw.h: Delete file.
15527         * config/xm-mpw.h: Delete file.
15528         * ser-mac.c: Delete file.
15529         * mpw-make.sed: Delete file.
15530         * mpw-config.in: Delete file.
15531         * mac-xdep.c: Delete file.
15532         * mac-gdb.r: Delete file.
15533         * mac-defs.h: Delete file.
15534         * mac-nat.c: Delete file.
15535         * config/powerpc/macos.mh: Delete file.
15536         * config/powerpc/macos.mt: Delete file.
15537         * config/powerpc/nm-macos.h: Delete file.
15538         * config/powerpc/tm-macos.h: Delete file.
15539         * source.c (openp, open_source_file): Remove obsolete code.
15540         * top.c (gdb_readline): Ditto.
15541         * utils.c (query): Ditto.
15542         * event-top.c (display_gdb_prompt): Ditto.
15543         * Makefile.in (ser-mac.o): Delete obsolete target.
15544         * NEWS: Update.
15545
15546 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15547
15548         * defs.h (BIG_ENDIAN): Delete macro definition.
15549         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15550         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15551         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15552         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15553         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15554         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15555         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15556         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15557         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15558         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15559         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15560         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15561         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15562         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15563         * gdbarch.c: Re-generate.
15564
15565 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15566
15567         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15568         for core files.
15569
15570 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15571
15572         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15573
15574 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15575
15576         * value.h (value_ptr): Delete typedef.
15577
15578 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15579
15580         * i386nbsd-nat.c: Update copyright years.
15581         Include i386-tdep.h.
15582
15583 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15584
15585         * stabsread.c: Update copyright years.
15586
15587         From Debashis Mahata <debashis.mahata@wipro.com>:
15588         (read_struct_fields): Deal with Sun C compiler erroneous stab
15589         output for structs and unions.
15590         Fix PR gdb/269.
15591
15592 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15593
15594         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15595         prototype.
15596
15597 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15598
15599         * cp-abi.c: Fix whitespace.
15600         (baseclass_offset): New wrapper function.
15601         * cp-abi.h (baseclass_offset): Add prototype.
15602         (struct cp_abi_ops): Add baseclass_offset pointer.
15603
15604         * valops.c (vb_match): Move to...
15605         * gnu-v2-abi.c (vb_match): here.
15606         * valops.c (baseclass_offset): Move to...
15607         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15608
15609         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15610
15611         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15612         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15613         * hpacc-abi.c (init_hpacc_ops): Likewise.
15614
15615 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15616
15617         * valops.c (find_overload_match): Accept obj as a
15618         reference parameter.  Update it before returning.
15619         * value.h (find_overload_match): Update prototype.
15620         * eval.c (evaluate_subexp_standard): Pass object to
15621         find_overload_match by reference.
15622
15623 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15624
15625         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15626         register attribute from value declarations.
15627         * valops.c: Ditto.
15628         * value.h: Ditto.
15629         * scm-lang.c (scm_lookup_name): Ditto.
15630
15631 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15632
15633         Abstract the functionality of iterating over mapped memory
15634         regions into a general purpose iterator function.
15635         * procfs.c (iterate_over_mappings): New function, general purpose
15636         iterator for memory sections.
15637         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15638         (solib_mappings_callback): New function, callback for above.
15639         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15640         (info_mappings_callback): New function, callback for above.
15641
15642         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15643
15644 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15645
15646         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15647         * i386-tdep.c: Include "elf-bfd.h".
15648         (process_note_abi_tag_sections): New function.
15649         (i386_gdbarch_init): Add code to recognize various OS/ABI
15650         combinations.
15651
15652         * maint.c (_initialize_maint_cmds): Add missing \ in
15653         string-literal.
15654
15655 For older changes see ChangeLog-2001
15656 \f
15657 Local Variables:
15658 mode: change-log
15659 left-margin: 8
15660 fill-column: 74
15661 version-control: never
15662 End: