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_frame_extra_info.
4         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
7         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8
9         * alpha-tdep.c: Use get_next_frame.
10         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
15         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
16         * xstormy16-tdep.c: Ditto.
17         
18 2003-01-07  Andrew Cagney  <cagney@redhat.com>
19
20         * alpha-tdep.c: Use get_frame_base.
21         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
22         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
23         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
24         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
25         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
26         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
27         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
28         * config/sparc/tm-sparc.h: Ditto.
29         
30 2003-01-07  Andrew Cagney  <cagney@redhat.com>
31
32         * frame.c (deprecated_get_frame_context): New function.
33         (deprecated_set_frame_context): New function.
34         * frame.h (deprecated_get_frame_context): Declare.
35         (deprecated_set_frame_context): Declare.
36         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
37         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
38         
39 2003-01-07  Andrew Cagney  <cagney@redhat.com>
40
41         * frame.c (deprecated_set_frame_next_hack): New function.
42         (deprecated_set_frame_prev_hack): New function.
43         * frame.h (deprecated_set_frame_next_hack): Declare.
44         (deprecated_set_frame_prev_hack): Declare.
45         * mcore-tdep.c (analyze_dummy_frame): Use
46         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
47         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
48
49 2003-01-07  David Carlton  <carlton@math.stanford.edu>
50
51         * linespec.c (decode_line_1): Move code into decode_dollar.
52         (decode_dollar): New function.
53
54 2003-01-07  Andrew Cagney  <cagney@redhat.com>
55
56         * arm-tdep.c (arm_init_extra_frame_info): Use
57         deprecated_update_frame_base_hack.
58         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
59         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
60         (fix_frame_pointer): Ditto.
61         (mn10300_analyze_prologue): Ditto.
62
63 2003-01-07  Andrew Cagney  <cagney@redhat.com>
64
65         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
66         extra_info using frame_extra_info_zalloc.
67         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
68         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
69         (sh64_init_extra_frame_info): Ditto.
70         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
71         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
72         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
73         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
74         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
75         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
76         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
77         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
78         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
79         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
80         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
81         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
82
83         * mn10300-tdep.c (analyze_dummy_frame): Use
84         deprecated_set_frame_extra_info_hack.
85         * mcore-tdep.c (analyze_dummy_frame): Ditto.
86
87 2003-01-07  J. Brobecker  <brobecker@gnat.com>
88
89         * mdebugread.c (parse_symbol): Skip stProc entries which storage
90         class is not scText. These do not define "real" procedures.
91         (parse_partial_symbols): Likewise.
92
93 2003-01-06  Michael Snyder  <msnyder@redhat.com>
94
95         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
96
97 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
98
99         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
100         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
101         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
102         deprecated_frame_xmalloc_with_cleanup.
103         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
104         deprecated_frame_xmalloc.
105         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
106         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
107
108 2003-01-06  Andrew Cagney  <cagney@redhat.com>
109
110         * x86-64-linux-tdep.c: Include "osabi.h".
111         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
112
113         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
114
115 2003-01-06  Andrew Cagney  <cagney@redhat.com>
116
117         * MAINTAINERS (Target Instruction Set Architectures): Update
118         arm-elf.  Can be built with -Werror, has been multiarched.
119
120         * value.h (unpack_long): Make buffer parameter constant.
121         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
122         * scm-lang.h (scm_parse): Ditto.
123         * defs.h (extract_typed_address, extract_address): Ditto.
124         (extract_long_unsigned_integer): Ditto.
125         * inferior.h (unsigned_pointer_to_address): Ditto.
126         (signed_pointer_to_address): Ditto.
127         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
128         * gdbarch.h, gdbarch.c: Regenerate.
129         * findvar.c (extract_long_unsigned_integer): Update.
130         (extract_address): Update.
131         (extract_typed_address): Update.
132         (unsigned_pointer_to_address): Update.
133         * values.c (unpack_long): Update.
134         (unpack_double): Update.
135         (unpack_pointer): Update.
136         (unpack_field_as_long): Update.
137         * d10v-tdep.c (d10v_pointer_to_address): Update.
138         * avr-tdep.c (avr_pointer_to_address): Update.
139         * scm-lang.c (scm_unpack): Update.
140         * findvar.c (signed_pointer_to_address): Update.
141
142 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
143
144         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
145         since it is in i386-tdep.c.
146
147 2003-01-06  J. Brobecker  <brobecker@gnat.com>
148
149         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
150         failure introduced in the previous change.
151
152 2003-01-05  Michael Chastain  <mec@shout.net>
153
154         * README: Remove references to deleted remote-*.c files:
155         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
156         remote-nrom.c, remote-os9k.c, remote-udi.c.
157
158 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
159
160         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
161         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
162         i386_get_longjmp_target.
163
164 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
165
166         * arm-tdep.c (prologue_cache): Change to a pointer.
167         (_initialize_arm_tdep): Allocate prologue_cache.
168         (check_prologue_cache): Update.
169         (save_prologue_cache): Update.
170         (arm_gdbarch_init): Update.
171
172 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
173
174         * stabsread.c (update_method_name_from_physname): Call complaint()
175         instead of error.
176
177 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
178
179         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
180         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
181         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
182
183         * blockframe.c: Include "gdbcmd.h" and "command.h".
184         (backtrace_below_main): New variable.
185         (file_frame_chain_valid, func_frame_chain_valid)
186         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
187         (generic_func_frame_chain_valid): Remove functions.
188         (frame_chain_valid, do_flush_frames_sfunc): New functions.
189         (_initialize_blockframe): New function.
190         * Makefile.in (blockframe.o): Update dependencies.
191         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
192         comment.  Call frame_chain_valid ().
193         * frame.h: Remove old prototypes.  Add prototype for
194         frame_chain_valid and update comments to match.
195         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
196         Remove old comment.
197         * gdbarch.h: Regenerated.
198         * gdbarch.c: Regenerated.
199
200         * alpha-tdep.c (alpha_gdbarch_init): Don't call
201         set_gdbarch_frame_chain_valid.
202         * avr-tdep.c (avr_gdbarch_init): Likewise.
203         * cris-tdep.c (cris_gdbarch_init): Likewise.
204         * frv-tdep.c (frv_gdbarch_init): Likewise.
205         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
206         * i386-tdep.c (i386_svr4_init_abi): Likewise.
207         (i386_nw_init_abi): Likewise.
208         (i386_gdbarch_init): Likewise.
209         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
210         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
211         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
212         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
213         * mips-tdep.c (mips_gdbarch_init): Likewise.
214         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
215         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
216         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
217         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
218         * s390-tdep.c (s390_gdbarch_init): Likewise.
219         * sh-tdep.c (sh_gdbarch_init): Likewise.
220         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
221         * v850-tdep.c (v850_gdbarch_init): Likewise.
222         * vax-tdep.c (vax_gdbarch_init): Likewise.
223         * x86-64-tdep.c (x86_64_init_abi): Likewise.
224
225         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
226         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
227         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
228         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
229         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
230         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
231         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
232         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
233
234 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
235
236         * Makefile.in (acconfig_h): Remove incorrect macro.
237         (config_h): Define.
238         (osabi.o): Update dependencies.
239         * configure.tgt: Set gdb_osabi based on target triplet.
240         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
241         * configure: Regenerated.
242         * config.in: Regenerated.
243         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
244         (GDB_OSABI_DEFAULT): Define if not already defined.
245         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
246         (set_osabi_string): New variables.
247         (gdbarch_register_osabi): Add new OS ABI to
248         gdb_osabi_available_names.
249         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
250         (set_osabi, show_osabi): New functions.
251         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
252
253 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
254
255         * arch-utils.c (gdbarch_info_init): Set osabi to
256         GDB_OSABI_UNINITIALIZED.
257         * gdbarch.sh: Add osabi to struct gdbarch and to struct
258         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
259         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
260         * gdbarch.c: Regenerated.
261         * gdbarch.h: Regenerated.
262         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
263         there's no BFD.
264         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
265         * osabi.h (enum gdb_osabi): Move to defs.h.
266         (gdbarch_init_osabi): Update prototype.
267         * defs.h (enum gdb_osabi): Moved here.
268         * Makefile.in: Update dependencies.
269
270         * alpha-tdep.h: Don't include "osabi.h".
271         (struct gdbarch_tdep): Remove osabi member.
272         * alpha-tdep.c: Include "osabi.h".
273         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
274         iterate over arches.  Update call to gdbarch_init_osabi.
275         (alpha_dump_tdep): Don't dump osabi.
276         * alpha-linux-tdep.c: Include "osabi.h".
277         * alpha-osf1-tdep.c: Include "osabi.h".
278         * alphafbsd-tdep.c: Include "osabi.h".
279         * alphanbsd-tdep.c: Include "osabi.h".
280
281         * arm-tdep.h: Don't include "osabi.h".
282         (struct gdbarch_tdep): Remove osabi member.
283         * arm-tdep.c: Include "osabi.h".
284         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
285         iterate over arches.  Update call to gdbarch_init_osabi.
286         (arm_dump_tdep): Don't dump osabi.
287         * arm-linux-tdep.c: Include "osabi.h".
288         * armnbsd-tdep.c: Include "osabi.h".
289
290         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
291         Update call to gdbarch_init_osabi.
292
293         * i386-tdep.h: Don't include "osabi.h".
294         (struct gdbarch_tdep): Remove osabi member.
295         * i386-tdep.c: Include "osabi.h".
296         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
297         iterate over arches.  Update call to gdbarch_init_osabi.
298         (i386_dump_tdep): Don't dump osabi.
299         * i386-linux-tdep.c: Include "osabi.h".
300         * i386-sol2-tdep.c: Include "osabi.h".
301         * i386bsd-tdep.c: Include "osabi.h".
302         * i386gnu-tdep.c: Include "osabi.h".
303         * i386ly-tdep.c: Include "osabi.h".
304         * i386nbsd-tdep.c: Include "osabi.h".
305         * i386obsd-tdep.c: Include "osabi.h".
306
307         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
308         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
309         check osabi when iterating over arches.  Update call to
310         gdbarch_init_osabi.
311         (mips_dump_tdep): Don't dump osabi.
312
313         * ns32k-tdep.h: Don't include "osabi.h".
314         (struct gdbarch_tdep): Remove.
315         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
316         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
317         allocate tdep.  Update call to gdbarch_init_osabi.
318         (ns32k_dump_tdep): Remove.
319         (_initialize_ns32k_tdep): Update call to gdbarch_register.
320         * ns32knbsd-tdep.c: Include "osabi.h".
321
322         * ppc-tdep.h: Don't include "osabi.h".
323         (struct gdbarch_tdep): Remove osabi member.
324         * rs6000-tdep.c: Include "osabi.h".
325         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
326         osabi when iterating over arches.  Update call to
327         gdbarch_init_osabi.
328         (rs6000_dump_tdep): Don't dump osabi.
329         * ppc-linux-tdep.c: Include "osabi.h".
330         * ppcnbsd-tdep.c: Include "osabi.h".
331
332         * sh-tdep.h: Don't include "osabi.h".
333         (struct gdbarch_tdep): Remove osabi member.
334         * sh-tdep.c: Include "osabi.h".
335         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
336         iterate over arches.  Update call to gdbarch_init_osabi.
337         (sh_dump_tdep): Don't dump osabi.
338         * shnbsd-tdep.c: Include "osabi.h".
339
340         * sparc-tdep.c: Include "osabi.h".
341         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
342         iterate over arches.  Update call to gdbarch_init_osabi.
343         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
344         tdep structure.
345
346         * vax-tdep.h: Don't include "osabi.h".
347         (struct gdbarch_tdep): Remove.
348         * vax-tdep.c: Include "osabi.h".
349         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
350         iterate over arches.  Don't allocate tdep.  Update call
351         to gdbarch_init_osabi.
352         (vax_dump_tdep): Remove.
353         (_initialize_vax_tdep): Update call to gdbarch_register.
354
355 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
356
357         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
358         entirely.
359         (breakpoint_re_set_one): Don't fetch the value for a disabled
360         watchpoint.
361
362 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
363
364         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
365         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
366         (COERCE_FLOAT_TO_DOUBLE): Remove.
367         * gdbarch.c: Regenerate.
368         * gdbarch.h: Regenerate.
369         * Makefile.in: Remove value_h from gdbarch_h.
370         * valops.c (coerce_float_to_double): New variable.
371         (default_coerce_float_to_double): Remove.
372         (standard_coerce_float_to_double): Remove.
373         (value_arg_coerce): Use coerce_float_to_double.
374         (_initialize_valops): Add "set coerce-float-to-double".
375         * value.h (default_coerce_float_to_double): Remove prototype.
376         (standard_coerce_float_to_double): Remove prototype.
377
378         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
379         prototyped.
380         * mdebugread.c (parse_symbol): Likewise.
381         * stabsread.c (define_symbol): Mark all functions as prototyped.
382
383         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
384         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
385         set_gdbarch_coerce_float_to_double.
386         * arm-tdep.c (arm_gdbarch_init): Likewise.
387         * frv-tdep.c (frv_gdbarch_init): Likewise.
388         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
389         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
390         * mips-tdep.c (mips_gdbarch_init): Likewise.
391         (mips_coerce_float_to_double): Remove.
392         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
393         (rs6000_coerce_float_to_double): Remove.
394         * s390-tdep.c (s390_gdbarch_init): Likewise.
395         * sh-tdep.c (sh_gdbarch_init): Likewise.
396         (sh_coerce_float_to_double): Remove.
397         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
398         (sparc_coerce_float_to_double): Remove.
399         * v850-tdep.c (v850_gdbarch_init): Likewise.
400         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
401         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
402         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
403         (hppa_coerce_float_to_double): Remove prototype.
404         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
405
406 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
407
408         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
409
410 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
411
412         Suggested by Stewart Brown <sb24@avaya.com>:
413         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
414         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
415         (c_type_print_varspec_suffix): Likewise.
416
417 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
418
419         * configure.in: Don't set and AC_SUBST SUBDIRS.
420         * configure: Regenerated.
421
422         * configure.in: Remove code dealing with shared libraries.
423         * Makefile.in: Remove HLDFLAGS and HLDENV.
424         * configure: Regenerated.
425
426 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
427
428         * frame.c (deprecated_frame_xmalloc): New function.
429         (deprecated_set_frame_saved_regs_hack): New function.
430         (deprecated_set_frame_extra_info_hack): New function.
431         * frame.h (deprecated_frame_xmalloc): Declare.
432         (deprecated_set_frame_saved_regs_hack): Declare.
433         (deprecated_set_frame_extra_info_hack): Declare.
434
435 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
436
437         * configure.in: Move code that provides the --enable-gdbtk option
438         right after the code that handles the --enable-tui option, and
439         polish it somewhat.
440         * configure: Regenerated.
441
442         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
443         AC_CHECK_FUNCS and remove the old check for pread64.
444         * acinclude.m4 (AC_GNU_SOURCE): New macro.
445         * acconfig.h (_GNU_SOURCE): Add.
446         (HAVE_PREAD64): Remove.
447         * configure, aclocal.m4, config.in: Regenerated.
448
449 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
450
451         * alpha-tdep.c: Use get_frame_saved_regs.
452         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
453         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
454         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
455         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
456         * vax-tdep.c, xstormy16-tdep.c: Ditto.
457
458 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
459
460         * configure.in: Remove all use of the SUBDIRS variable; add
461         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
462         code providing the --enable-multi-ice option, and move it right in
463         front of the code that checks whether gdbserver is supported.
464         Polish that too.
465         * configure: Regenerated.
466         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
467         @SUBDIRS@.
468
469 2003-01-03  Andrew Cagney  <cagney@redhat.com>
470
471         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
472         * avr-tdep.c, cris-tdep.c: Ditto.
473         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
474         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
475         
476 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
477
478         * configure.in: Remove --enable-netrom option.
479         * configure: Regenerated.
480
481 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
482
483         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
484         declaration for `struct re_pattern_buffer' instead.
485         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
486
487 2003-01-03  J. Brobecker  <brobecker@gnat.com>
488
489         * mdebugread.c (parse_symbol): Count until the stEnd matching
490         the structure name.
491
492 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
493
494         * configure.in: Remove --with-cpu option.
495         subscripts.  Remove evil changequotes here.
496         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
497         * config.in, configure: Regenerated.
498         
499         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
500         * configure.in: Cleanup section that sources GDB and BFD configure
501         subscripts.  Remove evil changequotes here.
502         * config.in, configure: Regenerated.
503
504 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
505
506         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
507         frame accessor methods.
508         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
509         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
510         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
511         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
512         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
513         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
514         * z8k-tdep.c: Ditto.
515         
516 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
517
518         * configure.in: Remove UI_OUT configuration code.
519         * ada-lang.c: Update assuming UI_OUT is always true.
520         * Makefile.in (UIOUT_CFLAGS): Remove.
521         * configure: Regenerated.
522         * TODO: Remove blurb about elimination of -DUI_OUT.
523
524         * configure.in: Move code that provides the --enable-gdbcli,
525         --enable-gdbmi options right before the code that handles the
526         --enable-tui option.  Polish a bit.
527         * configure: Regenerated.
528
529         * configure.in: Rewrite check for GNU regex and the
530         --without-included regex option, and move it into the "Checks for
531         library functions" section.  This makes us use the system regex
532         again by default on systems with version 2 of the GNU C library.
533         This was apparently broken.
534         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
535         * acconfig.h (USE_INCLUDED_REGEX): Remove.
536         * config.in, configure: Regenerated.
537
538         * configure.in: Move code that provides the --enable-tui option
539         before the "Checks for libraries" section.  Polish the code
540         somewhat and set need_curses to yes if we build the TUI.  Rewrite
541         code that looks for a library providing termcap functionality to
542         match more closely what's done in the Readline library, and move
543         it into to the "Checks for libraries" section.
544         * configure: Regenerated.
545         * Makefile.in (TERMCAP): Remove variable.
546         * config/i386/go32.mh (TERMCAP): Remove variable.
547
548 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
549
550         * MAINTAINERS: Mention gdb_mbuild.sh.
551         * gdb_mbuild.sh: Rewrite.
552
553 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
554
555         * configure.in: Fix typo in last change.
556         * config.in, configure: Regenerated.
557
558 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
559
560         * valarith.c (value_binop): Delete obsolete code and comments.
561         * configure.host: Ditto.
562         * buildsym.h (make_blockvector): Ditto.
563         * buildsym.c (make_blockvector): Ditto.
564         * defs.h (enum language): Ditto.
565         (chill_demangle): Ditto.
566         * elfread.c (elf_symtab_read): Ditto.
567         * dwarfread.c (CHILL_PRODUCER): Ditto.
568         (set_cu_language): Ditto.
569         (handle_producer): Ditto.
570         * expprint.c (print_subexp): Ditto.
571         * gdbtypes.c (chill_varying_type): Ditto.
572         * gdbtypes.h (builtin_type_chill_bool): Ditto.
573         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
574         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
575         (chill_varying_type): Ditto.
576         * language.h (_LANG_chill): Ditto.
577         * language.c (binop_result_type, integral_type): Ditto.
578         (character_type, string_type, structured_type): Ditto.
579         (lang_bool_type, binop_type_check): Ditto.
580         * stabsread.h (os9k_stabs): Ditto.
581         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
582         (define_symbol, read_type, read_struct_fields): Ditto.
583         (read_array_type, read_enum_type, read_huge_number): Ditto.
584         (read_range_type, start_stabs): Ditto.
585         * symfile.c (init_filename_language_table): Ditto.
586         (add_psymbol_with_dem_name_to_list): Ditto.
587         * symtab.c (symbol_init_language_specific): Ditto.
588         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
589         * symtab.h (struct general_symbol_info): Ditto.
590         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
591         * typeprint.c (typedef_print): Ditto.
592         * utils.c (fprintf_symbol_filtered): Ditto.
593         * valops.c (value_cast, search_struct_field, value_slice): Delete
594         obsolete code.
595         (varying_to_slice): Delete function.
596         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
597         (varying_to_slice): Delete declaration.
598         * MAINTAINERS: Update.
599
600 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
601
602         * configure.in: Reorganize "Checks for library functions section"
603         a bit.  Remove check for `btowc' and `isascii' functions.
604         * configure: Regenerated.
605
606         * acconfig.h (_MSE_INT_H): Remove.
607         * configure.in: Create "Checks for header files" section, and move
608         appropriate tests there.  Don't check for objlist.h, wchar.h,
609         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
610         misdetection fix.  Also add "Checks for types", "Checks for
611         compiler characteristics" and "Checks for library functions"
612         sections.
613         * config.in, configure: Regenerated.
614
615         * configure.in: Create "Checks for programs" section, and move
616         appropriate tests there.
617
618 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
619
620         * configure.in: Create "Checks for libraries" section, and move
621         appropriate tests there.  Cleanup check for wctype in libw.  Use
622         AC_SEARCH_LIBS to see whether we need libsocket.
623         * configure: Regenerated.
624
625 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
626
627         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
628         * config.in, configure: Regenerated.
629
630 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
631
632         * gdb_dirent.h: Cleanup and update code to match the example in
633         the Autoconf manual.
634         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
635         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
636         * configure: Regenerated.
637
638 2002-12-30  Adam Fedor  <fedor@gnu.org>
639
640         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
641         (yylex): Initialize c to avoid uninitialized warning.
642
643 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
644
645         * doc/fdl.texi: Revert the last change.
646
647 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
648
649         * tracepoint.c (ISATTY): Removed.
650
651 2002-12-26  J. Brobecker  <brobecker@gnat.com>
652
653         Continuing work to convert the hppa targets to multiarch partil.
654
655         * hppa-tdep.c: Add some missing forward declarations.
656         (frameless_function_invocation): Prefix the function name
657         by "hppa_" to avoid polluting the namespace.  Update all calls
658         to use the new function name.
659         (saved_pc_after_call): Ditto.
660         (init_extra_frame_info): Ditto.
661         (frame_chain): Ditto.
662         (push_dummy_frame): Ditto.
663         (target_read_pc): Ditto.
664         (target_write_pc): Ditto.
665         (in_solib_call_trampoline): Ditto.
666         (in_solib_return_trampoline): Ditto.
667         (skip_trampoline_code): Ditto.
668         (hppa_read_fp): New function, renamed from target_read_fp.
669         (hppa_target_read_fp): New function, using hppa_read_fp.
670         This function conforms to the function profile for the
671         READ_FP gdbarch method.
672         (hppa_extract_struct_value_address): New function, extracted
673         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
674         macro.
675         (hppa_frame_num_args): New function.
676         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
677
678         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
679         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
680         for the switch to multiarch partial.
681         Update some of the macros definitions to match some changes
682         described above in the name of the function they are calling.
683         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
684         not be straightforward to convert. Do now wrap it inside
685         "#if !... #endif" to remember that this macro has still not
686         been taken care of.
687         (FIX_CALL_DUMMY): Likewise.
688
689 2002-12-26  J. Brobecker  <brobecker@gnat.com>
690
691         Continuing work to convert the hppa targets to multiarch partial.
692
693         * hppa-tdep.c (hppa_register_raw_size): New function replacing
694         the body of macro REGISTER_RAW_SIZE.
695         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
696         config/pa/tm-hppah.h. These functions will be used to initialize
697         the gdbarch structure.
698         (hppa_hpux_pc_in_sigtramp): New function.
699         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
700         (hppa_hpux_frame_base_before_sigtramp): New function.
701         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
702         Add gdbcore.h #include.
703         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
704         of this gdbarch-eligible macro to a call to the new associated
705         function.
706         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
707         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
708         into a call to the new associated function.
709         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
710         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
711         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
712
713 2002-12-24  David Carlton  <carlton@math.stanford.edu>
714
715         * config/sparc/tm-sparc.h: Delete duplicate definition of
716         DEPRECATED_PC_IN_CALL_DUMMY.
717
718 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
719
720         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
721         $(gdb_assert_h).
722         * configure.tgt: Recognize mips64*-*-linux*.
723         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
724         (supply_32_bit_reg): New function.
725         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
726         (fill_gregset): Use regcache_collect() instead of
727         deprecated_registers[].
728         (register_addr): Change name to mips_linux_register_addr().
729         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
730         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
731         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
732         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
733         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
734         (MIPS64_LINUX_JB_PC): New defines.
735         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
736         (mips64_elf_fpregset_t): New typedefs.
737         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
738         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
739         (mips64_linux_register_addr, set_mips_linux_register_addr)
740         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
741         (init_register_addr_data)
742         New functions.
743         (fetch_core_registers): Add support for core file formats with 64-bit
744         registers.
745         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
746         (register_addr_data): New static global variable.
747         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
748         gdbarch_register_osabi() for each MIPS machine.
749         * config/mips/linux64.mt: New file.
750         * config/mips/tm-linux64.h: New file.
751
752 2002-12-23  Adam Fedor  <fedor@gnu.org>
753
754         * maint.c (maintenance_demangle): Add switch to demangle
755         ObjC language symbols as well.
756
757 2002-12-23  Adam Fedor  <fedor@gnu.org>
758
759         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
760         last argument from complaint function call.
761
762 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
763
764         * exec.c (print_section_info): Add FIXME comments regarding format
765         string choices.
766
767 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
768
769         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
770         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
771
772 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
773
774         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
775
776 2002-12-23  David Carlton  <carlton@math.stanford.edu>
777
778         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
779         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
780         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
781         information associated to a minsym, not lookup_symbol.
782
783 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
784
785         * x86-64-tdep.h (x86_64_init_abi): New prototype.
786         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
787         (x86_64_init_abi): Make non-static.  Set number of pseudo
788         registers to 0.
789         (x86_64_gdbarch_init): Remove function.
790         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
791         Remove code dealing with dissambly.
792         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
793         (_initialize_x86_64_linux_tdep): New function.
794         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
795         i386-tdep.o.
796
797 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
798
799         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
800         (struct gdb_osabi_handler): Remove member `arch'.  Add member
801         `arch_info'.
802         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
803         construct a `struct bfd_arch_info' and store it in the `struct
804         gdb_osabi_handler' that is created.
805         (gdbarch_init_osabi): Check for compatibility based on machine
806         type and architecture.
807         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
808         comment.
809         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
810         second argument in call to gdbarch_register_osabi.
811         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
812         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
813         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
814         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
815         * arm-tdep.c (_initialize_arm_tdep): Likewise.
816         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
817         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
818         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
819         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
820         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
821         * i386-tdep.c (_initialize_i386_tdep): Likewise.
822         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
823         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
824         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
825         _initialize_i386bsd_tdep and updated likewise.
826         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
827         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
828         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
829         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
830         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
831         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
832         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
833         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
834         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
835         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
836
837 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
838
839         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
840         DT_MIPS_RLD_MAP case for 64-bit targets.
841
842 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
843
844         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
845         ``temp_saved_regs'', not the pointer or other storage contiguous
846         to this pointer.
847
848 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
849
850         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
851         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
852         (mips_linux_get_longjmp_target): Delete declarations.
853         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
854         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
855         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
856         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
857         (mips_linux_get_longjmp_target)
858         (mips_linux_svr4_fetch_link_map_offsets): Make static.
859         (mips_linux_init_abi): New function.
860         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
861
862 2002-12-19  Keith Seitz  <keiths@redhat.com>
863
864         patch committed by Elena Zannoni  <ezannoni@redhat.com>
865         * thread.c (do_captured_list_thread_ids): Call prune_threads and
866         target_find_new_threads. Fix for PR mi/669.
867
868 2002-12-19  David Carlton  <carlton@math.stanford.edu>
869
870         * linespec.c (decode_line_1): Move code into decode_all_digits.
871         (decode_all_digits): New function.
872
873 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
874
875         * exec.c (print_section_info): Select a format string to use with
876         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
877
878 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
879
880         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
881         deprecated_update_current_frame_pc_hack.
882         (deprecated_update_frame_base_hack): New function.
883         * frame.h (deprecated_update_frame_pc_hack): Replace
884         (deprecated_update_frame_base_hack): Declare.
885         * infrun.c (normal_stop): Update.
886
887 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
888
889         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
890         frame_extra_info_zalloc.
891         (rs6000_frame_args_address): Use get_frame_extra_info.
892         (frame_get_saved_regs): Use get_frame_saved_regs.
893         (frame_initial_stack_address): Use get_frame_saved_regs and
894         get_frame_extra_info.
895         (frame_initial_stack_address): Use get_frame_extra_info.
896
897 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
898
899         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
900         array size.
901         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
902         checks for r3900_regnames[].
903
904 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
905
906         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
907         All uses changed
908         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
909
910 2002-12-17  David Carlton  <carlton@math.stanford.edu>
911
912         * symtab.c (lookup_partial_symbol): Don't search past the end of
913         the partial symbols.
914
915 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
916
917         * stack.c (frame_info): Use get_frame_saved_regs.
918         * breakpoint.c (until_break_command): Use get_frame_pc.
919
920 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
921
922         * buildsym.c (block_end_complaint, anon_block_end_complaint)
923         (innerblock_complaint, innerblock_anon_complaint)
924         (blockvector_complaint): Delete deprecated complaint structs.
925         (finish_block, make_blockvector, end_symtab): Replace calls
926         to complain() with calls to complaint().
927         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
928         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
929         (unexpected_type_complaint, bad_sclass_complaint)
930         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
931         Delete deprecated complaint structs.
932         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
933         Replace calls to complain() with calls to complaint().
934         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
935         (unknown_symtype_complaint, unknown_symchar_complaint)
936         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
937         (lbrac_mismatch_complaint, repeated_header_complaint)
938         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
939         Delete deprecated complaint structs.
940         (unknown_symtype_complaint, lbrac_mismatch_complaint)
941         (repeated_header_complaint)
942         (function_outside_compiliation_unit_complaint): New functions.
943         (add_old_header_file, find_corresponding_bincl_psymtab)
944         (set_namestring, find_stab_function_addr, read_dbx_symtab)
945         (process_one_symbol): Replace calls to complain() with, possibly
946         indirect, calls to complaint().
947         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
948         (unknown_attribute_form, unknown_attribute_length)
949         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
950         (const_ignored, botched_modified_type, op_deref2, op_deref4)
951         (basereg_not_handled, dup_user_type_allocation)
952         (dup_user_type_definition, missing_tag, bad_array_element_type)
953         (subscript_data_items, unhandled_array_subscript_format)
954         (unknown_array_subscript_format, not_row_major)
955         (missing_at_name): Delete deprecated complaint structs.
956         (bad_die_ref_complaint, unknown_attribute_form_complaint)
957         (dup_user_type_definition_complaint)
958         (bad_array_element_type_complaint): New functions.
959         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
960         (decode_subscript_data_item, dwarf_read_array_type)
961         (read_tag_string_type, read_subroutine_type, read_func_scope)
962         (locval, scan_partial_symbols, decode_modified_type)
963         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
964         (attribute_size): Replace calls to complain() with, possibly
965         indirect, calls to complaint().
966         * elfread.c (section_info_complaint, section_info_dup_complaint)
967         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
968         Delete deprecated complaint structs.
969         (elf_symtab_read, elfstab_offset_sections): Replace calls to
970         complain() with calls to complaint().
971         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
972         struct.
973         (stub_noname_complaint): New function.
974         (check_typedef, add_mangled_type): Replace calls to complain()
975         with calls to complaint().
976         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
977         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
978         (hpread_unhandled_type_complaint, hpread_struct_complaint)
979         (hpread_array_complaint, hpread_type_lookup_complaint)
980         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
981         (hpread_unhandled_common_complaint)
982         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
983         struct definitions and declarations.
984         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
985         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
986         Replace calls to complain() with, possibly indirect, calls to
987         complaint().
988         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
989         Likewise.
990         * mdebugread.c (bad_file_number_complaint, index_complaint)
991         (aux_index_complaint, block_index_complaint)
992         (unknown_ext_complaint, unknown_sym_complaint)
993         (unknown_st_complaint, block_overflow_complaint)
994         (basic_type_complaint, unknown_type_qual_complaint)
995         (array_index_type_complaint, bad_tag_guess_complaint)
996         (block_member_complaint, stEnd_complaint)
997         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
998         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
999         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1000         (bad_continued_complaint, bad_rfd_entry_complaint)
1001         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1002         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1003         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1004         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1005         complaint structs.
1006         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1007         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1008         (unexpected_type_code_complaint)
1009         (function_outside_compilation_unit_complaint): New functions.
1010         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1011         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1012         Replace calls to complain() with, possibly indirect calls to
1013         complaint().
1014         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1015         Delete deprecated complaint structs.
1016         (lookup__objc_class, lookup_child_selector): Replace complain()
1017         with complaint().
1018         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1019         struct.
1020         (vx_lookup_symbol): Replace complain() with complaint().
1021         * stabsread.c (invalid_cpp_abbrev_complaint)
1022         (invalid_cpp_type_complaint, member_fn_complaint)
1023         (const_vol_complaint, error_type_complaint)
1024         (invalid_member_complaint, range_type_base_complaint)
1025         (reg_value_complaint, vtbl_notfound_complaint)
1026         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1027         (unresolved_sym_chain_complaint, stabs_general_complaint)
1028         (lrs_general_complaint, multiply_defined_struct): Delete
1029         deprecated complaint structs.
1030         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1031         (stabs_general_complaint, lrs_general_complaint)
1032         (msg_unknown_complaint): New functions.
1033         (dbx_lookup_type, read_cfront_baseclasses)
1034         (read_cfront_member_functions, resolve_symbol_reference)
1035         (define_symbol, resolve_live_range, add_live_range, read_type)
1036         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1037         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1038         (read_cfront_static_fields, attach_fields_to_type)
1039         (complain_about_struct_wipeout, read_range_type)
1040         (common_block_start, common_block_end, cleanup_undefined_types)
1041         (scan_file_globals): Replace complain() with complaint().
1042         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1043         Delete deprecated complaint struct declarations.
1044         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1045         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1046         (bf_not_found_complaint, ef_complaint, eb_complaint)
1047         (function_outside_compilation_unit_complaint): New functions.
1048         (record_include_begin, record_include_end, enter_line_range)
1049         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1050         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1051         complain() with complaint().
1052
1053 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1054
1055         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1056         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1057         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1058         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1059         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1060         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1061         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1062         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1063         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1064         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1065         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1066         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1067         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1068         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1069         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1070         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1071         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1072         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1073         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1074         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1075         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1076         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1077         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1078         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1079         * config/m88k/xm-dgux.h: Delete.
1080         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1081         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1082         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1083         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1084         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1085         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1086         * ch-valprint.c: Delete.
1087         
1088 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1089
1090         * infrun.c (handle_inferior_event): Rearrange code to resume if
1091         no catchpoint triggers for an event.
1092
1093 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1094
1095         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1096         and TARGET_WAITKIND_VFORKED cases.
1097
1098 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1099
1100         * infrun.c (handle_inferior_event): Assume that catchpoints
1101         are not affected by DECR_PC_AFTER_BREAK.
1102
1103 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1104
1105         * target.c (update_current_target): Don't inherit DONT_USE.
1106         * target.h (struct target_ops): Remove DONT_USE.
1107         (target_next): Remove macro.
1108
1109 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1110
1111         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1112
1113 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1114
1115         * arm-tdep.c (convert_from_extended): New argument to hold the
1116         type of floating point result we want to convert to.  Make input 
1117         argument const.  Fix all callers.
1118         (convert_to_extended): Similarly.
1119         (arm_extract_return_value): Now takes a regcache argument.  Change
1120         code to use regcache accessor functions.  Correctly extract 
1121         smaller-than-word results on big-endian machines.
1122         (arm_store_return_value): Now takes a regcache argument.  Change
1123         code to use regcache accessor functions.  Correctly zero/sign extend
1124         smaller than word results before storing into r0.
1125         (arm_gdbarch_init): Register new-style extract_return_value and
1126         store_return_value functions.
1127
1128 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1129
1130         * thread-db.c (thread_from_lwp): Uniquify error msg.
1131         (lwp_from_thread): Ditto.
1132         (check_event): Ditto.
1133         (find_new_threads_callback): Ditto.
1134         (thread_db_pid_to_str): Ditto.
1135
1136 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1137
1138         * frame.h (get_frame_saved_regs): Declare.
1139         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1140         pointer.
1141         * frame.c (get_frame_saved_regs): New function.
1142         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1143
1144 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1145
1146         * frame.c (deprecated_update_current_frame_pc_hack): New
1147         function.
1148         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1149         * infrun.c (normal_stop): Use said function instead of directly
1150         modifying the frame's PC.
1151         
1152 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1153
1154         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1155
1156 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1157
1158         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1159         config/mips/tm-irix6.h (NUM_REGS): Delete.
1160         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1161         (temp_saved_regs): Declare as a pointer rather than an array.
1162         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1163         that ``temp_saved_regs'' has storage allocated to it and that
1164         it's the correct size.
1165
1166 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1167
1168         * defs.h (init_last_source_visited): New prototype.
1169         (add_path): Ditto.
1170         * source.c (add_path): New function that adds to a specified path.
1171         (mod_path): Change to call add_path.
1172         (init_last_source_visited): New function to allow interfaces to
1173         initialize static variable: last_source_visited.  Part of fix
1174         for PR gdb/741.
1175         * Makefile.in: Add support for mi/mi-cmd-env.c.
1176
1177 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1178
1179         * frame.h (frame_id_unwind): Declare.
1180         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1181         id_unwind_cache.
1182         (frame_id_unwind_ftype): Declare.
1183         * frame.c (frame_id_unwind): New function.
1184         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1185         (create_new_frame, get_prev_frame): Pass id_unwind to
1186         set_unwind_by_pc.
1187         (frame_saved_regs_id_unwind): New function.
1188         (frame_saved_regs_id_unwind): New function.
1189         * dummy-frame.c (dummy_frame_id_unwind): New function.
1190         (struct dummy_frame): Add field id.
1191         (generic_push_dummy_frame): Initialize `id'.
1192         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1193
1194 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1195
1196         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1197         pass that to set_momentary_breakpoint.  Move comments to where they
1198         belong.
1199         * frame.h (set_current_frame): Delete declaration.
1200         * frame.c (set_current_frame): Delete function.
1201
1202 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1203
1204         * frame.c (frame_extra_info_zalloc): New function.
1205         * frame.h (frame_extra_info_zalloc): Declare.
1206
1207 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1208
1209         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1210         in the previous prototype change to set_momentary_breakpoint.
1211
1212 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1213
1214         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1215         and saw_child_exec.
1216         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1217         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1218         (stop_stepping): Remove outdated check for child vfork events.
1219
1220 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1221
1222         * GDB 5.3 released from gdb_5_3-branch.
1223
1224 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1225
1226         * corelow.c (init_core_ops): Delete references to to_require_attach
1227         and to_require_detach.
1228         * exec.c (init_exec_ops): Likewise.
1229         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1230         hppa_require_detach directly.
1231         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1232         * inftarg.c (child_detach): Remove.
1233         (child_detach_from_process): Rename to child_detach, remove
1234         after_fork argument.
1235         (child_attach): Remove.
1236         (child_attach_to_process): Rename to child_attach, remove after_fork
1237         argument.
1238         (init_child_ops): Delete references to to_require_attach
1239         and to_require_detach.
1240         * infttrace.c (hppa_require_attach): Update comment.
1241         * target.c (cleanup_target, update_current_target)
1242         (init_dummy_target, setup_target_debug): Delete references to
1243         to_require_attach and to_require_detach.
1244         (find_default_require_detach, find_default_require_attach)
1245         (debug_to_require_attach, debug_to_require_detach): Remove
1246         functions.
1247         * target.h (struct target_ops): Remove to_require_attach
1248         and to_require_detach.
1249         (target_require_attach, target_require_detach): Delete macros.
1250         (find_default_require_detach, find_default_require_attach): Delete
1251         prototypes.
1252         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1253
1254 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1255
1256         * frame.c (get_frame_extra_info): New function.
1257         * frame.h (get_frame_extra_info): Declare.
1258
1259 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1260
1261         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1262         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1263         with `struct frame_id'.
1264         (set_longjmp_resume_breakpoint): Ditto.
1265         * infrun.c (handle_inferior_event): Update.
1266         * breakpoint.c (watch_command_1, until_break_command): Update.
1267         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1268         (handle_inferior_event, step_over_function): Update.
1269         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1270         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1271         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1272         * infcmd.c (finish_command, run_stack_dummy): Update.
1273
1274 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1275
1276         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1277         (dwarf2_non_const_array_bound_ignored)
1278         (dwarf2_missing_line_number_section)
1279         (dwarf2_statement_list_fits_in_line_number_section)
1280         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1281         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1282         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1283         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1284         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1285         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1286         (dwarf2_missing_member_fn_type_complaint)
1287         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1288         (dwarf2_const_value_length_mismatch)
1289         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1290         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1291         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1292         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1293         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1294         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1295         complaints using deprecated struct..
1296         (dwarf2_non_const_array_bound_ignored_complaint)
1297         (dwarf2_complex_location_expr_complaint)
1298         (dwarf2_unsupported_at_frame_base_complaint)
1299         (dwarf2_const_value_length_mismatch_complaint)
1300         (dwarf2_macros_too_long_complaint)
1301         (dwarf2_macro_malformed_definition_complaint)
1302         (dwarf2_invalid_attrib_class_complaint): New functions.
1303         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1304         (read_structure_scope, read_array_type, read_common_block)
1305         (read_tag_pointer_type, read_base_type, read_partial_die)
1306         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1307         (new_symbol, dwarf2_const_value, read_type_die)
1308         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1309         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1310         complain() with, possibly indirect, calls to complaint().
1311
1312 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1313
1314         * frame.c (deprecated_get_frame_saved_regs): Rename
1315         get_frame_saved_regs.
1316         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1317         * sparc-tdep.c: Update.
1318         * hppa-tdep.c: Update.
1319         * h8500-tdep.c: Update.
1320
1321 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1322
1323         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1324         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1325         ``char *'' for return and parameter types.
1326         * gdbarch.h, gdbarch.c: Regenerate.
1327         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1328         return type from ``char *'' to ``const char *''.
1329         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1330         const.
1331
1332 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1333
1334         * i386-tdep.c: Include "dummy-frame.h".
1335         (i386_frame_chain, i386_frame_saved_pc): Replace
1336         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1337         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1338
1339 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1340
1341         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1342         Change to a function with predicate.
1343         * gdbarch.h, gdbarch.c: Re-generate.
1344         * frame.c (get_prev_frame): Update.  Test
1345         DEPRECATED_INIT_FRAME_PC_P.
1346         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1347         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1348         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1349         * alpha-tdep.c (alpha_gdbarch_init): Update.
1350         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1351         * mips-tdep.c (mips_gdbarch_init): Update.
1352         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1353         * arm-tdep.c: Update comments.
1354         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1355         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1356         * frv-tdep.c (frv_gdbarch_init): Ditto.
1357         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1358         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1359         * s390-tdep.c (s390_gdbarch_init): Ditto.
1360         * v850-tdep.c (v850_gdbarch_init): Ditto.
1361         * vax-tdep.c (vax_gdbarch_init): Ditto.
1362         * sh-tdep.c (sh_gdbarch_init): Ditto.
1363         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1364         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1365         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1366         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1367         * i386-tdep.c (i386_gdbarch_init): Ditto.
1368         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1369         * cris-tdep.c (cris_gdbarch_init): Ditto.
1370         * avr-tdep.c (avr_gdbarch_init): Ditto.
1371         * arm-tdep.c (arm_gdbarch_init): Ditto.
1372         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1373         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1374
1375 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1376
1377         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1378         CHILD_FOLLOW_FORK.
1379         * hppah-nat.c (saved_vfork_pid): Add.
1380         (child_post_follow_vfork): Remove.
1381         (child_follow_fork): New function.
1382         (child_wait): Call detach_breakpoints after receiving the child vfork.
1383         Call child_resume directly instead of going through resume ().
1384         Make sure we have the exec before reporting the vfork.
1385         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1386         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1387         (follow_fork): New function.  Call target_follow_fork.
1388         (follow_inferior_reset_breakpoints): New function broken out from
1389         old follow_inferior_fork.
1390         (resume): Remove hack to follow exec after vfork.
1391         * inftarg.c (child_post_follow_vfork): Remove.
1392         (child_follow_fork): New function.
1393         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1394         * target.c (cleanup_target): Replace to_post_follow_vfork with
1395         to_follow_fork.
1396         (update_current_target): Likewise.
1397         (setup_target_debug): Likewise.
1398         (debug_to_post_follow_vfork): Remove.
1399         (debug_to_follow_fork): New function.
1400         * target.h (struct target_ops): Replace to_post_folow_vfork with
1401         to_follow_fork.
1402         (child_post_follow_vfork): Remove prototype.
1403         (child_follow_fork): Add prototype.
1404         (target_post_follow_vfork): Remove macro.
1405         (target_follow_fork): Add macro.
1406
1407 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1408
1409         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1410         (child_post_follow_vfork): Cancel pending exec event if we follow
1411         the parent.
1412         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1413         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1414         event at the following wait call if necessary.
1415         * infrun.c (follow_vfork): Don't follow_exec here.
1416         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1417         case about HP/UX 10.20.  Remove code pushed down to
1418         hppah-nat.c:child_wait.
1419         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1420         vfork_in_flight is set.
1421
1422 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1423
1424         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1425         for the parent's fork event.
1426         * infrun.c (handle_inferior_event): Only expect one fork event.
1427         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1428         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1429
1430 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1431
1432         * PROBLEMS: Delete reference to PR gdb/725.
1433         
1434         * MAINTAINERS (gdb.c++): Add David Carlton.
1435
1436 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1437
1438         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1439         * cli/cli-cmds.c: Ditto.
1440
1441 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1442
1443         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1444         function address in <>.
1445         * gdbarch.c: Re-generate.
1446
1447 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1448
1449         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1450
1451 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1452
1453         * linespec.c (symtab_from_filename): New function.
1454         (decode_line_1): Move code into symtab_from_filename.
1455
1456 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1457
1458         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1459
1460 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1461
1462         * f-valprint.c (info_common_command): Use get_frame_pc.
1463         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1464         * ax-gdb.c (agent_command): Ditto.
1465         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1466         (rs6000_pop_frame): Ditto.
1467         (rs6000_frameless_function_invocation): Ditto.
1468         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1469         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1470         * macroscope.c (default_macro_scope): Ditto.
1471         * stack.c (print_frame_info_base): Ditto.
1472         (print_frame, frame_info, print_frame_label_vars): Ditto.
1473         (return_command, func_command, get_frame_language): Ditto.
1474         * infcmd.c (finish_command): Ditto.
1475         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1476         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1477         (break_at_finish_at_depth_command_1): Ditto.
1478         (break_at_finish_command_1): Ditto.
1479         (until_break_command, get_catch_sals): Ditto.
1480         * blockframe.c (func_frame_chain_valid): Ditto.
1481         (frameless_look_for_prologue): Ditto.
1482         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1483
1484 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1485
1486         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1487         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1488
1489 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1490
1491         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1492         to pure functions.
1493         * gdbarch.h, gdbarch.c: Re-generate.
1494         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1495         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1496
1497         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1498         declaration to a function returning a CORE_ADDR.
1499         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1500         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1501         (init_frame_pc_default): Ditto.
1502         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1503         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1504         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1505         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1506         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1507         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1508
1509         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1510         to init_frame_pc_noop.
1511         (i386_interix_init_frame_pc): Delete function.
1512         * z8k-tdep.c (init_frame_pc): Delete function.
1513         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1514         (INIT_FRAME_PC_FIRST): Ditto.
1515         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1516         (INIT_FRAME_PC_FIRST): Ditto.
1517         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1518         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1519         init_frame_pc_noop.
1520         (INIT_FRAME_PC_FIRST): Convert to an expression.
1521         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1522
1523 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1524
1525         * blockframe.c: Use get_frame_base instead of directly accessing
1526         the `struct frame_info' member frame.
1527         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1528         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1529
1530 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1531
1532         * Makefile.in (readline_h): Define.
1533         (completer.o): Depend on readline_h.
1534         (corelow.o): Ditto.
1535         (event-top.o): Ditto.
1536         (exec.o): Ditto.
1537         (solib.o): Ditto.
1538         (source.o): Ditto. 
1539         (symfile.o): Ditto. 
1540         (symmisc.o): Ditto. 
1541         (top.o): Ditto.
1542         (tracepoint.o): Ditto. 
1543         (utils.o): Ditto.
1544         (cli-dump.o): Ditto.
1545         (tui-hooks.o): Ditto. 
1546         (tuiWin.o): Ditto. 
1547
1548 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1549
1550         More cleanup from import of readline 4.3.
1551         * completer.h (complete_line, readline_line_completion_function):
1552         Update prototypes.
1553         (line_completion_function): Removed, not used outside of completer.c.
1554         * completer.c (readline_line_completion_function,
1555         complete_function, line_completion_function): Use const for first
1556         parameter.
1557         (line_completion_function): Make static.
1558         (filename_completer): filename_completion_function is now called
1559         rl_filename_completion_function
1560         * corelow.c: Include <readline/readline.h>.
1561         * exec.c: Ditto.
1562         * solib.c: Ditto.
1563         * source.c: Ditto.
1564         * symfile.c: Ditto.
1565         * symmisc.c: Ditto.
1566         * top.c (init_main): No need to coerce
1567         readline_line_completion_function anymore.
1568         * cli/cli-dump.c: Include <readline/readline.h>.
1569
1570 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1571
1572         * stack.c (frame_info): Use get_prev_frame.
1573         * blockframe.c (frame_address_in_block): Ditto.
1574         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1575         (rs6000_frameless_function_invocation): Ditto.
1576         (rs6000_frame_saved_pc): Ditto.
1577         (rs6000_frame_chain): Ditto.
1578         * arch-utils.c (init_frame_pc_default): Ditto.
1579
1580 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1581
1582         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1583         Delete redundant definition.
1584
1585 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1586
1587         Import of readline 4.3:
1588         * cli/cli-cmds.c: Include readline/tilde.h.
1589         * cli/cli-setshow.c: Ditto.
1590         * defs.h: Don't declare tilde_expand anymore, since readline
1591         exports it.
1592
1593 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1594
1595         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1596         -Werror on this file.
1597
1598 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1599
1600         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1601         the format name.
1602         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1603         * gdbarch.c: Regenerate.
1604         
1605 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1606
1607         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1608         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1609         provide a default value.
1610         * gdbarch.h, gdbarch.c: Regenerate.
1611         * frame.c (get_prev_frame): Update.  Check
1612         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1613         * s390-tdep.c (s390_gdbarch_init): Update.
1614         * mips-tdep.c (mips_gdbarch_init): Update.
1615         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1616         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1617         * alpha-tdep.c (alpha_gdbarch_init): Update.
1618         
1619 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1620
1621         * ia64-linux-nat.c: Include gdb_string.h.
1622         * alpha-nat.c: Ditto.
1623         * ppc-linux-nat.c: Ditto.
1624         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1625         Update dependencies.
1626
1627 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1628
1629         * gdbthread.h: Include "frame.h".
1630         (struct thread_info): Replace step_frame_address with
1631         step_frame_id.
1632         * inferior.h: Include "frame.h".
1633         (step_frame_id): Replace external variable step_frame_address.
1634         * gdbthread.h (save_infrun_state): Replace step_frame_address
1635         parameter with step_frame_id parameter.
1636         (load_infrun_state): Ditto.
1637         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1638         * infcmd.c (step_frame_id, step_1, step_once): Update.
1639         * thread.c (load_infrun_state, save_infrun_state): Update.
1640         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1641         (handle_inferior_event, step_over_function): Update.
1642         (normal_stop, context_switch, restore_inferior_status): Update.
1643         (struct inferior_status): Replace step_frame_address with
1644         step_frame_id.
1645
1646 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1647
1648         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1649         DW_TAG_member as well as a declaration as being a C++ static data
1650         member.
1651         (read_structure_scope): Combine tests for DW_TAG_member and
1652         DW_TAG_variable.
1653
1654 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1655
1656         * linespec.c (decode_compound): New function.
1657         (decode_line_1): Move code into decode_compound.
1658
1659 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1660
1661         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1662         argument.
1663         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1664         the static block.  See PR gdb/804.
1665
1666 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1667
1668         * symtab.c (lookup_symbol_aux_block): New function.
1669         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1670
1671 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1672
1673         * gdbarch.sh: Dump the predicate function and macro values.
1674         (read): Print error on standard error.
1675         * gdbarch.c: Regenerate.
1676         
1677 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1678
1679         * Makefile.in (mips_tdep_h): Define.
1680         (mips-tdep.o): Add mips_tdep_h to dependency list.
1681         * mips-tdep.h: New file.
1682         * mips-tdep.c (mips-tdep.h): Include.
1683         (enum mips_abi): Move to mips-tdep.h.
1684         (mips_abi): New function.
1685
1686 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1687
1688         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1689
1690 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1691
1692         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1693         function.
1694         (lookup_symbol_aux_minsyms): New function.
1695
1696 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1697
1698         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1699
1700 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1701
1702         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1703         which is an obsolete macro name.
1704
1705 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1706
1707         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1708         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1709
1710 2002-12-03  H.J. Lu  (hjl@gnu.org)
1711
1712         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1713         (create_breakpoints): Make sure the addr_string field is not
1714         NULL.
1715
1716 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1717
1718         * sparc-nat.c (fetch_inferior_registers)
1719         (store_inferior_registers): Add comment on problem of LWP vs
1720         threads.
1721         
1722         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1723         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1724         (lin_lwp_store_registers): Remove.
1725         (init_lin_lwp_ops): Use fetch_inferior_registers
1726         and store_inferior_registers directly.
1727         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1728         (store_inferior_registers): Likewise.
1729         Fix PR gdb/725.
1730
1731 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1732
1733         * frame.h (get_frame_id): Convert to a function.
1734         (null_frame_id, frame_id_p): Declare.
1735         (frame_id_eq, frame_id_inner): Declare.
1736         (frame_id_build): New function.
1737         * frame.c (get_frame_id): Update.  Use null_frame_id.
1738         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1739         frame_id_inner.
1740         (null_frame_id, frame_id_p): Define.
1741         (frame_id_eq, frame_id_inner): Define.
1742         (frame_id_build): New function.
1743         * varobj.c (varobj_create): Update.
1744         (varobj_update): Update.
1745         * valops.c (value_assign): Update.
1746         (new_root_variable): Update.
1747         * infrun.c (save_inferior_status): Update.
1748         * breakpoint.c (watch_command_1): Update.
1749
1750 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1751
1752         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1753         (SNAP2): Likewise.
1754
1755 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1756
1757         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1758         patch.
1759
1760         * PROBLEMS: Mention PR gdb/725.
1761
1762 2002-12-03  Andreas Schwab  <schwab@suse.de>
1763
1764         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1765
1766 2002-12-02  Adam Fedor  <fedor@gnu.org>
1767             Klee Dienes  <kdienes@apple.com>
1768
1769         * objc-lang.c (objc_printstr): Add width arg to match
1770         printstr prototype.
1771         (compare_selectors): Add 'const' to arg types.
1772         (compare_classes): Likewise.
1773         (find_imps): Cast msym pointer to avoid compiler warning.
1774         (print_object_command): Validate the address before
1775         passing it to the print routine.
1776         (find_objc_msgcall_submethod): Change function argument to
1777         return an int.
1778         * objc-lang.h: Add 'extern' to all function declarations.
1779         (value_nsstring): Add declaration.
1780
1781 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1782
1783         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1784         Fixes a build failure on HP/UX.
1785
1786         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1787         failure on HP/UX. 
1788         (hpread_has_name): Advance declaration to avoid a compilation warning.
1789         (pst_syms_count): Add missing variable type. By change, the compiler
1790         was defaulting to int, which seems a good choice. Fixes a compilation
1791         warning.
1792         (pst_syms_size): Likewise.
1793  
1794 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1795
1796         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1797         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1798         later to set the proper gdbarch methods depending on the osabi.
1799         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1800
1801 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1802
1803         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1804         * osabi.c (gdb_osabi_name): Add strings images for the two new
1805         enum values.
1806         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1807
1808 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1809
1810         * MAINTAINERS (Java): Global maintainers are responible for Java.
1811         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1812         part Java maintainers.
1813
1814 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1815
1816         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1817         Fixes a compilation failure on AiX.
1818
1819 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1820
1821         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1822         why aix-thread.o is not listed.
1823
1824 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1825
1826         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1827         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1828         * gdbarch.h, gdbarch.c: Re-generate.
1829         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1830         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1831         * config/pa/tm-hppa.h, frame.h: Update.
1832         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1833         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1834         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1835         * cris-tdep.c, alpha-tdep.c: Update.
1836         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1837         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1838         (get_prev_frame): Ditto.
1839
1840 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1841
1842         * exec.c (xfer_memory): Replace boolean with int.
1843         * p-exp.y: Use 0 instead of false.
1844         * corelow.c (gdb_check_format): Change return type to int from
1845         boolean.
1846         * utils.c: Don't include <curses.h> or <term.h> first.
1847
1848 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1849
1850         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1851         (m68hc11_register_byte): Remove.
1852         (m68hc11_gdbarch_init): Don't set the above.
1853
1854 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1855
1856         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1857         by calling get_selected_frame.
1858         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1859         set_current_frame, create_new_frame, select_frame and
1860         get_current_frame.
1861         * remote-e7000.c (e7000_start_remote): Ditto.
1862         * remote-mips.c (common_open): Ditto
1863         * remote-rdp.c (remote_rdp_open): Ditto.
1864
1865 2002-11-29  Andreas Schwab  <schwab@suse.de>
1866
1867         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1868         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1869         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1870         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1871         read_memory_unsigned_integer instead of read_memory_integer when
1872         dealing with addresses and instruction opcodes.
1873         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1874         (m68k_linux_frame_saved_pc): Likewise.
1875
1876 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1877
1878         * stack.c (selected_frame, select_frame): Move from here ...
1879         * frame.c (selected_frame, select_frame): ... to here.  Include
1880         "language.h".
1881         * Makefile.in (frame.o): Update dependencies.
1882         * frame.c (get_selected_frame): New function.
1883         * frame.h (get_selected_frame): Declare.
1884         (deprecated_selected_frame): Rename selected_frame.
1885         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1886         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1887         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1888         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1889         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1890         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1891         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1892         * z8k-tdep.c, cli/cli-cmds.c: Update.
1893         
1894 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1895
1896         * frame.h (get_selected_block): Add comments.
1897
1898 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1899
1900         * frame.c (pc_notcurrent): New function.
1901         (find_frame_sal): New function.
1902         * frame.h (find_frame_sal): Declare.
1903         (struct symtab_and_line): Add opaque declaration.
1904         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1905         find_pc_line.
1906         (frame_info): Ditto.
1907         * ada-lang.c (find_printable_frame): Ditto.
1908
1909 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1910
1911         * configure.in: Check that the pthdebug library is recent enough
1912         before enabling thread support on native AiX.
1913         * configure: Regenerate.
1914
1915         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1916         from the list of object files as it is now appended by configure
1917         if thread support is enabled.
1918         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1919         if thread support is enabled.
1920
1921 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1922
1923         * stack.c (get_selected_block): In-line get_current_block.
1924         * frame.h (get_current_block): Delete declaration.
1925         * blockframe.c (get_current_block): Delete function.
1926
1927 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1928
1929         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1930         USE_GENERIC_DUMMY_FRAMES.
1931         * gdbarch.h, gdbarch.c: Regenerate.
1932         * valops.c, frame.c: Update.
1933         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1934         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1935         * config/pa/tm-hppa.h, blockframe.c: Update.
1936         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1937         * m68k-tdep.c, alpha-tdep.c: Ditto.
1938
1939         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1940         * mips-tdep.c: Ditto.
1941
1942 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1943
1944         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1945         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1946         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1947         * gdbarch.c, gdbarch.h: Re-generate.
1948         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1949         (CALL_DUMMY_LOCATION): Delete macro definition.
1950         (PC_IN_CALL_DUMMY): Delete macro definitions.
1951         
1952         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1953         default is already generic_pc_in_call_dummy.
1954         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1955         * v850-tdep.c (v850_gdbarch_init): Ditto.
1956         * sh-tdep.c (sh_gdbarch_init): Ditto.
1957         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1958         * mips-tdep.c (mips_gdbarch_init): Ditto.
1959         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1960         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1961         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1962         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1963         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1964         * avr-tdep.c (avr_gdbarch_init): Ditto.
1965         
1966         * arm-tdep.c (arm_gdbarch_init): Do not set
1967         use_generic_dummy_frames, default is already 1.
1968         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1969         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1970         * v850-tdep.c (v850_gdbarch_init): Ditto.
1971         * sh-tdep.c (sh_gdbarch_init): Ditto.
1972         * s390-tdep.c (s390_gdbarch_init): Ditto.
1973         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1974         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1975         * mips-tdep.c (mips_gdbarch_init): Ditto.
1976         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1977         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1978         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1979         * i386-tdep.c (i386_gdbarch_init): Ditto.
1980         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1981         * frv-tdep.c (frv_gdbarch_init): Ditto.
1982         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1983         * cris-tdep.c (cris_gdbarch_init): Ditto.
1984         * avr-tdep.c (avr_gdbarch_init): Ditto.
1985
1986         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1987         call_dummy_location, default is already AT_ENTRY_POINT.
1988         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1989         * v850-tdep.c (v850_gdbarch_init): Ditto.
1990         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1991         * sh-tdep.c (sh_gdbarch_init): Ditto.
1992         * s390-tdep.c (s390_gdbarch_init): Ditto.
1993         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1994         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1995         * mips-tdep.c (mips_gdbarch_init): Ditto.
1996         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1997         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1998         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1999         * i386-tdep.c (i386_gdbarch_init): Ditto.
2000         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2001         * frv-tdep.c (frv_gdbarch_init): Ditto.
2002         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2003         * cris-tdep.c (cris_gdbarch_init): Ditto.
2004         * avr-tdep.c (avr_gdbarch_init): Ditto.
2005         * arm-tdep.c (arm_gdbarch_init): Ditto.
2006         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2007
2008 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2009
2010         * frame.h: Update comments on set_current_frame, create_new_frame,
2011         flush_cached_frames, reinit_frame_cache, select_frame and
2012         selected_frame.
2013         
2014 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2015
2016         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2017         deprecated pc_in_call_dummy function.
2018         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2019         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2020         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2021         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2022         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2023
2024 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2025
2026         * Makefile.in: Remove Tix dependencies.
2027         * acinclude.m4: Ditto.
2028         * aclocal.m4: Ditto.
2029         * configure.in: Ditto.
2030         * configure: Regenerated.
2031         
2032 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2033
2034         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2035         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2036         * gdbarch.c: Re-generate.
2037         
2038 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2039
2040         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2041         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2042         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2043         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2044         pc_in_call_dummy_at_entry_point.
2045         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2046         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2047         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2048         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2049         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2050         pc_in_call_dummy_on_stack.
2051         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2052         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2053         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2054         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2055         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2056         
2057 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2058
2059         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2060         pc_in_call_dummy_before_text_end
2061         (deprecated_pc_in_call_dummy_after_text_end): Rename
2062         pc_in_call_dummy_after_text_end.
2063         (deprecated_pc_in_call_dummy_on_stack): Rename
2064         pc_in_call_dummy_on_stack.
2065         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2066         pc_in_call_dummy_at_entry_point.
2067         * m68k-tdep.c (m68k_gdbarch_init): Update.
2068         * s390-tdep.c (s390_gdbarch_init): Update.
2069         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2070         * vax-tdep.c (vax_gdbarch_init): Update.
2071         * sparc-tdep.c (sparc_gdbarch_init): Update.
2072         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2073         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2074         * i386-tdep.c (i386_gdbarch_init): Update.
2075         * frv-tdep.c (frv_gdbarch_init): Update.
2076         * cris-tdep.c (cris_gdbarch_init): Update.
2077         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2078         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2079         (deprecated_pc_in_call_dummy_after_text_end)
2080         (deprecated_pc_in_call_dummy_on_stack)
2081         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2082         * alpha-tdep.c (alpha_gdbarch_init): Update.
2083
2084 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2085
2086         * acconfig.h (HAVE_PREAD64): Add.
2087         * configure.in: Check for pread64.
2088         * config.in: Regenerated.
2089         * configure: Regenerated.
2090         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2091         * linux-proc.c (linux_proc_xfer_memory): New function.
2092         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2093
2094 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2095
2096         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2097         pdi's with no name.
2098
2099 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2100
2101         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2102         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2103
2104 2002-11-25  Jim Blandy  <jimb@redhat.com>
2105
2106         * symfile.c (init_objfile_sect_indices): New function.
2107         (default_symfile_offsets): Move the section-index-initializing
2108         stuff into init_objfile_sect_indices, and call that.
2109
2110         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2111         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2112
2113         * symfile.c (syms_from_objfile): Adjust indentation.
2114
2115         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2116         || info_verbose isn't true.
2117
2118 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2119
2120         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2121         default to get_frame_base.
2122         * gdbarch.h, gdbarch.c: Regenerate.
2123         * arch-utils.c (default_frame_address): Delete function.
2124         * arch-utils.h (default_frame_address): Delete declaration
2125
2126 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2127
2128         * varobj.c (find_frame_addr_in_frame_chain):
2129         Use get_frame_base instead of FRAME_FP,
2130         obvious fix.
2131
2132 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2133
2134         * frame.h (FRAME_FP): Delete macro.
2135         (get_frame_base): New function declaration.
2136         * frame.c (get_frame_base): New function.
2137         (get_frame_id): Use ->frame.
2138         (frame_find_by_id): Rewrite to use get_frame_id.
2139         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2140         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2141         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2142         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2143         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2144         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2145         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2146
2147 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2148
2149         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2150
2151 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2152
2153         * frame.c (set_unwind_by_pc): Revert change below, use
2154         PC_IN_CALL_DUMMY.
2155         (get_prev_frame): Ditto.
2156
2157 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2158
2159         * dummy-frame.c (pc_in_dummy_frame): New function.
2160         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2161         (find_dummy_frame): Update comment.
2162         (generic_pop_current_frame): Use get_frame_type.
2163         * dummy-frame.h (pc_in_dummy_frame): Declare.
2164         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2165         (create_new_frame): Use pc_in_dummy_frame.
2166         (get_prev_frame): Use pc_in_dummy_frame.
2167         (frame_saved_regs_register_unwind): Use get_prev_frame.
2168         (deprecated_generic_get_saved_register): Use get_prev_frame.
2169
2170 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2171
2172         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2173         from here ...
2174         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2175         (varobj_create): Note that frame ID should be used.
2176         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2177
2178 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2179
2180         * breakpoint.c: Include "gdb_assert.h".
2181         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2182         not being used.
2183         * Makefile.in (breakpoint.o): Update dependencies.
2184         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2185         deprecated_frame_in_dummy.
2186         * stack.c (print_frame_info_base): Ditto.
2187         (frame_info): Ditto.
2188         (print_frame_info_base): Ditto.  Delete dead code.
2189         
2190 2002-11-23  Andreas Schwab  <schwab@suse.de>
2191
2192         * Makefile.in (m68k_tdep_h): Define.
2193         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2194         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2195         * m68k-tdep.c: Move register number enum ...
2196         * m68k-tdep.h: ... to this new file and rename the constants from
2197         E_* to M68K_*.  All uses changed.
2198         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2199         * abug-rom.c: Include "m68k-tdep.h".  Use
2200         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2201         * cpu32bug-rom.c: Likewise.
2202         * dbug-rom.c: Likewise.
2203         * m68k-tdep.c: Likewise.
2204         * m68klinux-nat.c: Likewise.
2205         * remote-est.c: Likewise.
2206         * rom68k-rom.c: Likewise.
2207         * config/m68k/tm-linux.h: Likewise.
2208
2209 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2210
2211         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2212         dummy frame initialization code.
2213         * mips-tdep.c (mips_gdbarch_init): Ditto.
2214
2215 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2216
2217         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2218         attach will hang.
2219
2220 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2221
2222         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2223         to default_frame_address.
2224         * gdbarch.h, gdbarch.c: Re-generate.
2225
2226         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2227         or frame_locals_address to default_frame_address.
2228         * m68k-tdep.c (m68k_gdbarch_init): Update.
2229         * i386-tdep.c (i386_gdbarch_init): Update.
2230         * frv-tdep.c (frv_gdbarch_init): Update.
2231         * sh-tdep.c (sh_gdbarch_init): Update.
2232         * v850-tdep.c (v850_gdbarch_init): Update.
2233         * sparc-tdep.c (sparc_gdbarch_init): Update.
2234         * mips-tdep.c (mips_gdbarch_init): Update.
2235         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2236         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2237         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2238
2239         * cris-tdep.c (cris_frame_args_address): Delete function.
2240         (cris_frame_locals_address): Delete function.
2241         (cris_gdbarch_init): Do not set frame_args_address or
2242         frame_locals_address.
2243
2244 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2245
2246         * thread-db.c (thread_db_load): Tell the user what's going on
2247         if dlopen fails on libthread_db.
2248
2249 2002-11-23  Andreas Schwab  <schwab@suse.de>
2250
2251         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2252         invariant return values.
2253
2254 2002-11-22  Andreas Schwab  <schwab@suse.de>
2255
2256         * valops.c (value_slice): Move declaration of `offset' to avoid
2257         warning.
2258
2259 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2260
2261         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2262         (struct so_stuff): Add end_addr field.
2263         (register_loaded_dll): Calculate and store end address of loaded dll.
2264         (solib_address): New function.
2265         (child_solib_loaded_library_pathname): Pass carefully constructed
2266         section info to safe_symbol_file_add rather than ignoring it.
2267         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2268         DLL is loaded.
2269         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2270         (child_create_inferior): Fix a compiler warning.
2271         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2272         (solib_address): Declare new function.
2273
2274 2002-11-22  Andreas Schwab  <schwab@suse.de>
2275
2276         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2277         and FPS registers.
2278
2279 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2280
2281         * maint.c (_initialize_maint_cmds): Fix typo.  From
2282         Francesco Potorti` <pot@gnu.org>.
2283
2284 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2285
2286         * mips-tdep.c (mips_dump_tdep): Delete references to
2287         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2288         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2289         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2290         * printcmd.c (build_address_symbolic): Delete calls to
2291         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2292         (address_info): Ditto.
2293         Fix PR gdb/773.
2294         
2295 2002-11-19  Klee Dienes  <kdienes@apple.com>
2296             Adam Fedor  <fedor@gnu.org>
2297
2298         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2299         the ability to explicitly specify the quote characters and word
2300         break characters; if NULL is specified for either, use the old
2301         behavior of using the characters used by the completer.
2302         (skip_chars): New function.  Convenience wrapper around
2303         skip_quoted_chars to provide the original skip_chars behavior.
2304         * completer.h (skip_quoted_chars): Add prototype.
2305
2306 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2307
2308         Problems reported by Paul Eggert.
2309         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2310
2311 2002-11-19  Andreas Schwab  <schwab@suse.de>
2312
2313         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2314         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2315         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2316         (m68k_linux_frame_saved_pc): Move to ...
2317         * m68klinux-tdep.c: ... here.  New file.
2318         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2319         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2320
2321 2002-11-19  Adam Fedor  <fedor@gnu.org>
2322
2323         * objc-exp.y: Revert to old skip_quoted usage.
2324
2325 2002-11-19  Adam Fedor  <fedor@gnu.org>
2326
2327         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2328         (objc_lang_h): Define.
2329         (YYFILES): Add objc-exp.tab.c.
2330         (local-maintainer-clean): Remove objc-exp.tab.c.
2331         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2332         
2333 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2334
2335         * p-exp.y (typecast rule): Add automatic dereference of
2336         pascal classes if needed.
2337         (THIS): Set current_type.
2338         Automatically dereference pascal classes. 
2339         (typebase rule): Add ^typebase recognition.
2340
2341 2002-11-18  Adam Fedor  <fedor@gnu.org>
2342
2343         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2344         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2345         (op_name): Handle OP_OBJC_SELF.
2346         * Makefile.in (expprint.o): Add additional depends.
2347
2348 2002-11-18  Adam Fedor  <fedor@gnu.org>
2349
2350         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2351         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2352         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2353         * objc-exp.y: Likewise. 
2354
2355 2002-11-18  Adam Fedor  <fedor@gnu.org>
2356
2357         * gdb/parser-defs.h: (struct objc_class_str): New structure
2358         for parsing ObjC classes.
2359
2360 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2361
2362         * stack.c (frame_relative_level): Copy function from here ...
2363         * frame.c (frame_relative_level): ...to here.
2364
2365 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2366
2367         * frame.h (enum frame_type): Define.
2368         (get_frame_type): Declare.
2369         (struct frame_info): Add field `type'.  Delete field
2370         signal_handler_caller.
2371         (deprecated_set_frame_signal_handler_caller): Declare.
2372         * frame.c (get_frame_type): New function.
2373         (deprecated_set_frame_type): New function.
2374         (create_new_frame): Set the frame's type.
2375         (get_prev_frame): Similar.
2376         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2377         * s390-tdep.c: Ditto.
2378         * m68klinux-nat.c: Ditto.
2379         * ns32k-tdep.c: Ditto.
2380         * x86-64-linux-tdep.c: Ditto.
2381         * vax-tdep.c: Ditto.
2382         * rs6000-tdep.c: Ditto.
2383         * ppc-linux-tdep.c: Ditto.
2384         * i386-interix-tdep.c: Ditto.
2385         * mips-tdep.c: Ditto.
2386         * m68k-tdep.c: Ditto.
2387         * hppa-tdep.c: Ditto.
2388         * ia64-tdep.c: Ditto.
2389         * cris-tdep.c: Ditto.
2390         * arm-tdep.c: Ditto.
2391         * alpha-tdep.c: Ditto.
2392         * i386-tdep.c: Ditto.
2393         * stack.c: Ditto.
2394         * ada-lang.c: Ditto.
2395         * blockframe.c: Update.
2396         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2397         deprecated_set_frame_type instead of signal_handler_caller.
2398         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2399         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2400         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2401
2402 2002-11-18   Klee Dienes  <kdienes@apple.com>
2403
2404         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2405
2406 2002-11-18  Klee Dienes  <kdienes@apple.com>
2407
2408         * buildsym.c (pop_context): Add comment.
2409         
2410 2002-11-18  Klee Dienes  <kdienes@apple.com>
2411
2412         * buildsym.h (pop_context): Convert to function, defined in
2413         buildsym.c.
2414         * buildsym.c: Include gdb_assert.h.
2415         (pop_context): Implement as C function.  Add check for stack
2416         underflow.
2417         * dbxread.c (process_one_symbol): Complain and stop processing
2418         that symbol if we are already at the top of the context stack for
2419         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2420         when processing N_RBRAC.
2421
2422 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2423
2424         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2425         define.
2426         (struct target_waitstatus): Add opaque definition.
2427         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2428         * exec.c (init_exec_ops): Likewise.
2429         * fork-child.c (clone_and_follow_inferior): Remove.
2430         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2431         * inferior.h (clone_and_follow_inferior): Remove prototype.
2432         * infrun.c (follow_fork_mode_both): Remove.
2433         (follow_fork_mode_kind_names): Remove commented out "both".
2434         (follow_inferior_fork): Remove follow_fork_mode_both support.
2435         * inftarg.c (child_clone_and_follow_inferior): Remove.
2436         (child_post_follow_inferior_by_clone): Remove.
2437         (init_child_ops): Don't set to_clone_and_follow_inferior
2438         or to_post_follow_inferior_by_clone.
2439         * target.c (default_clone_and_follow_inferior): Remove.
2440         (cleanup_target): Don't set to_clone_and_follow_inferior
2441         or to_post_follow_inferior_by_clone.
2442         (find_default_clone_and_follow_inferior): Remove.
2443         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2444         (debug_to_clone_and_follow_inferior): Remove.
2445         (debug_to_post_follow_inferior_by_clone): Remove.
2446         (setup_target_debug): Don't set to_clone_and_follow_inferior
2447         or to_post_follow_inferior_by_clone.
2448         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2449         and to_post_follow_inferior_by_clone.
2450         (child_clone_and_follow_inferior): Remove prototype.
2451         (child_post_follow_inferior_by_clone): Remove prototype.
2452         (target_clone_and_follow_inferior): Remove macro.
2453         (target_post_follow_inferior_by_clone): Remove macro.
2454         (find_default_clone_and_follow_inferior): Remove prototype.
2455
2456 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2457
2458         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2459         inferior_has_vforked, and inferior_has_execd instead of
2460         target_has_forked, target_has_vforked, and target_has_execd.
2461         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2462         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2463         (CHILD_WAIT): Define.
2464         (child_wait): Add prototype.
2465         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2466         Add prototype.
2467         (hpux_has_vforked): Likewise, from child_has_vforked.
2468         (hpux_has_execd): Likewise, from child_has_execd.
2469         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2470         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2471         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2472         and hpux_has_syscall_event instead of the target hooks.
2473         * infrun.c (inferior_has_forked, inferior_has_vforked)
2474         (inferior_has_execd): New functions.
2475         * inftarg.c (not_same_real_pid): Remove.
2476         (child_wait): Remove references to not_same_real_pid,
2477         target_has_forked, target_has_vforked, target_has_execd,
2478         and target_has_syscall_event.
2479         (child_has_forked, child_has_vforked, child_has_execd)
2480         (child_has_syscall_event): Remove.
2481         (init_child_ops): Remove references to child_has_forked,
2482         child_has_vforked, child_has_execd, and child_has_syscall_event.
2483         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2484         (hpux_has_vforked): Likewise, from child_has_vforked.
2485         (hpux_has_execd): Likewise, from child_has_execd.
2486         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2487         * target.c (cleanup_target): Remove references to
2488         to_has_forked, to_has_vforked, to_has_execd, and
2489         to_has_syscall_event.
2490         (update_current_target): Likewise.
2491         (setup_target_debug): Likewise.
2492         (debug_to_has_forked): Remove.
2493         (debug_to_has_vforked): Remove.
2494         (debug_to_has_execd): Remove.
2495         (debug_to_has_syscall_event): Remove.
2496         * target.h (struct target_ops): Remove to_has_forked.
2497         to_has_vforked, to_has_execd, and to_has_syscall_event.
2498         (child_has_forked, child_has_vforked, child_has_execd)
2499         (child_has_syscall_event): Remove prototypes.
2500         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2501         prototypes.
2502         (target_has_forked, target_has_vforked, target_has_execd)
2503         (target_has_syscall_event): Remove macros.
2504
2505 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2506
2507         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2508         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2509         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2510         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2511         * target.c (cleanup_target): Remove reference to
2512         to_can_follow_vfork_prior_to_exec.
2513         (update_current_target): Likewise.
2514         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2515         (setup_target_debug): Remove reference to
2516         to_can_follow_vfork_prior_to_exec.
2517         * target.h (struct target_ops): Remove
2518         to_can_follow_vfork_prior_to_exec.
2519         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2520         (target_can_follow_vfork_prior_to_exec): Remove definition.
2521         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2522         define.
2523         * infrun.c (follow_vfork_when_exec): Remove.
2524         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2525         (follow_exec): Likewise.
2526         (handle_inferior_event): Likewise.
2527         (keep_going): Likewise.
2528
2529 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2530
2531         * frame.c (generic_unwind_get_saved_register): Make static.
2532         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2533         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2534         defaults to generic_unwind_get_saved_register.
2535         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2536         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2537         * frv-tdep.c (frv_gdbarch_init): Ditto.
2538         * i386-tdep.c (i386_gdbarch_init): Ditto.
2539         * s390-tdep.c (s390_gdbarch_init): Ditto.
2540         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2541         * v850-tdep.c (v850_gdbarch_init): Ditto.
2542         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2543         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2544         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2545
2546 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2547
2548         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2549         i386-tdep.c.
2550
2551 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2552
2553         * frame.h (sigtramp_saved_pc): Delete declaration.
2554         * blockframe.c (sigtramp_saved_pc): Delete function.
2555         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2556         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2557         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2558         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2559
2560 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2561
2562         * frame.c (frame_pc_unwind): New function.
2563         (frame_saved_regs_pc_unwind): New function.
2564         (frame_register_unwind): Pass unwind_cache instead of
2565         register_unwind_cache.
2566         (set_unwind_by_pc): Add unwind_pc parameter, set.
2567         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2568         (get_prev_frame): Ditto.
2569         * frame.h (frame_pc_unwind_ftype): Declare.
2570         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2571         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2572         (frame_pc_unwind): Declare.
2573         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2574         (struct dummy_frame): Add comment mentioning that values are for
2575         previous frame.
2576         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2577         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2578         (generic_file_frame_chain_valid): Ditto.
2579         * stack.c (frame_info): Ditto.
2580
2581 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2582
2583         * linespec.c (locate_first_half): New function.
2584         (decode_line_1): Move code into locate_first_half.
2585
2586 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2587
2588         * complaints.h: Add comment explaining how to eliminate a
2589         deprecated_complain call.
2590         * complaints.h: Fix spelling errors.
2591
2592 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2593
2594         * printcmd.c: Remove #include "disasm.h".
2595
2596 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2597
2598         * frame.h: Move the most relevant interface functions to the start
2599         of the file.
2600
2601 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2602
2603         * regcache.h (deprecated_registers): Rename registers.
2604         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2605         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2606         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2607         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2608         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2609         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2610         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2611         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2612         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2613         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2614         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2615         * v850ice.c: Update.
2616
2617 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2618
2619         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2620         NULL buffer.
2621
2622 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2623
2624         * regcache.h (deprecated_read_register_bytes): Rename
2625         read_register_bytes.
2626         (deprecated_write_register_bytes): Rename write_register_bytes.
2627         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2628         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2629         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2630         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2631         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2632         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2633         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2634         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2635         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2636         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2637         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2638         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2639         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2640         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2641
2642 2002-11-13  Jim Blandy  <jimb@redhat.com>
2643
2644         * findvar.c (read_var_value): Doc fix.
2645
2646 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2647
2648         * regcache.c (struct regcache): Replace passthough_p with
2649         readonly_p.
2650         (regcache_xmalloc): Initialize readonly_p.
2651         (build_regcache): Initialize readonly_p.
2652         (regcache_save): New function.
2653         (regcache_restore): New function.
2654         (regcache_cpy): Re-implement using regcache_save and
2655         regcache_restore.
2656         (regcache_raw_read): Update.
2657         (regcache_cooked_read): When a read-only cache, checked for cached
2658         pseudo register values.
2659         (regcache_raw_write): Assert that the cache is not read-only.
2660         Remove code handling a non-passthrough cache.
2661         * regcache.h (regcache_save): Declare.
2662         (regcache_restore): Declare.
2663
2664 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2665
2666         * regcache.c (struct regcache_descr): Add fields
2667         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2668         (init_legacy_regcache_descr): Compute the size of a cooked
2669         register cache and then assign that to sizeof_raw_registers.  Set
2670         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2671         (init_legacy_regcache_descr): Ditto.
2672
2673 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2674
2675         * regcache.c (register_buffer): Move to near start of file, update
2676         description.
2677         (regcache_raw_read): Use.
2678         (regcache_raw_write): Use.
2679         (struct regcache): Rename raw_registers to registers and
2680         raw_register_valid_p to register_valid_p.
2681         (regcache_xmalloc): Update.
2682         (regcache_xfree): Update.
2683         (register_buffer): Update.
2684         (regcache_cpy): Update.
2685         (regcache_cpy_no_passthrough): Update.
2686         (regcache_valid_p): Update.
2687         (deprecated_grub_regcache_for_registers): Update.
2688         (deprecated_grub_regcache_for_register_valid): Update.
2689         (set_register_cached): Update.
2690         (regcache_raw_write): Update.
2691
2692 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2693
2694         * p-exp.y (name_not_typename): Use copy_name to
2695         set current_type variable for fields of THIS.
2696
2697 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2698
2699         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2700         * monitor.c (init_base_monitor_ops): Likewise.
2701         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2702         * remote-array.c (init_array_ops): Likewise.
2703         * remote-e7000.c (init_e7000_ops): Likewise.
2704         * remote-es.c (init_es1800_ops): Likewise.
2705         (init_es1800_child_ops): Likewise.
2706         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2707         * remote-sim.c (init_gdbsim_ops): Likewise.
2708         * remote-st.c (init_st2000_ops): Likewise.
2709         * sol-thread.c (init_sol_core_ops): Likewise.
2710         (init_sol_thread_ops): Likewise.
2711         * v850ice.c (init_850ice_ops): Likewise.
2712         * win32-nat.c (init_child_ops): Likewise.
2713         * wince.c (init_child_ops): Likewise.
2714
2715 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2716
2717         * utils.c (gdb_realpath): Make rp a constant pointer.
2718
2719 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2720
2721         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2722         a constant buffer; cannonicalize_file_name(); realpath() with a
2723         pathconf() defined buffer, xstrdup().
2724
2725 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2726
2727         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2728         to hang2.C; hang3.c to hang3.C.
2729
2730 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2731
2732         * findvar.c (read_var_value): Reenable TLS code.
2733
2734 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2735             Jim Blandy  <jimb@redhat.com>
2736         
2737         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2738         * target.c (update_current_target): Add
2739         to_get_thread_local_address.
2740         * target.h (to_get_thread_local_address): Export.
2741         (target_get_thread_local_address): Define.
2742         (target_get_thread_local_address_p): Define.
2743         * thread-db.c: Include solib-svr4.h.
2744         (td_thr_tls_get_addr_p): Define.
2745         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2746         (thread_db_get_thread_local_address): New function.
2747         (init_thread_db_ops): Initialize to_get_thread_local_address.
2748         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2749         * configure: Regenerate.
2750         * config.in: Regenerate.
2751
2752 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2753
2754         * linespec.c (set_flags): New function.
2755         (decode_line_1): Move code into set_flags.
2756
2757 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2758
2759         * linespec.c (decode_line_1): Move chunks of code to separate
2760         functions.
2761         (initialize_defaults): New function.
2762         (decode_indirect): New function.
2763
2764 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2765
2766         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2767         instead of void_code_ptr.
2768         (sigtramp_saved_pc): Ditto.
2769
2770         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2771         i386_fp_regnum_p.
2772
2773 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2774
2775         * gdbtypes.h (struct main_type): Move artificial flag out of
2776         loc.  New member of ``struct field'' named static_kind.  Reduce
2777         overloaded meaning of bitsize.
2778         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2779         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2780         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2781
2782         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2783         new fields.
2784         (template_to_fixed_record_type, template_to_static_fixed_type)
2785         (to_record_with_fixed_variant_part): Likewise.
2786         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2787         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2788         * dwarfread.c (struct_type, enum_type): Likewise.
2789         * hpread.c (hpread_read_enum_type)
2790         (hpread_read_function_type, hpread_read_doc_function_type)
2791         (hpread_read_struct_type): Likewise.
2792         * mdebugread.c (parse_symbol): Likewise.
2793
2794 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2795
2796         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2797         * stack.c (print_frame_info_base): Update.
2798         (print_frame_info_base, frame_info): Update.
2799         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2800         (sparc_frame_saved_pc): Update.
2801         * ada-lang.c (find_printable_frame): Update.
2802         * breakpoint.c (deprecated_frame_in_dummy): Update.
2803         
2804 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2805
2806         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2807         defined.
2808         (regmap): Extend to cover all registers.
2809         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2810         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2811         definitions.
2812         (fetch_register, sore_register): Simplify.
2813         (old_fetch_inferior_registers, old_store_inferior_registers):
2814         Remove functions.
2815         (cannot_fetch_register, cannot_store_register): Change
2816         implementation to use regmap array to decide which registers
2817         cannot be fetched/stored.  This removes $orig_eax from the
2818         registers that cannot be fetched/stored.
2819         (fetch_inferior_registers): Call fetch_register directly instead
2820         of calling old_fetch_inferior_registers.
2821         (store_inferior_registers): Call store_register directly instead
2822         of calling old_store_inferior_registers.
2823         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2824         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2825         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2826
2827 2002-11-09  Klee Dienes  <kdienes@apple.com>
2828
2829         * i387-tdep.c (i387_supply_register): When called with NULL as a
2830         buffer, mark the register as not provided (to mirror the behavior
2831         of supply_register).
2832         (i387_supply_fxsave): Ditto.
2833         (i387_supply_fsave): Ditto (inherits the behavior from
2834         i387_supply_register).
2835
2836 2002-11-09  Klee Dienes  <kdienes@apple.com>
2837
2838         * blockframe.c (sigtramp_saved_pc): Use
2839         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2840         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2841         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2842         
2843 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2844
2845         * frame.c (get_prev_frame): Test prev_p to identify a previously
2846         unwound frame.  Initialize prev_p.
2847         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2848         comment.
2849
2850 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2851
2852         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2853         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2854         more comments.  Zap dead code.
2855
2856 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2857
2858         * infcmd.c (print_vector_info, print_float_info): Move code that
2859         checks whether the target has any registers and whether there is a
2860         selected frame up, such that it is also used if a target provides
2861         multi-arch definitions of these functions.
2862
2863 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2864
2865         * Makefile.in (DESTDIR): Define.
2866         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2867         prefix.
2868
2869         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2870         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2871
2872 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2873
2874         * i386-linux-tdep.c: Include "reggroups.h".
2875         (i386_linux_register_reggroup_p): New function.
2876         (i386_linux_init_abi): Set register_reggroup_p to
2877         i386_linux_register_reggroup_p.
2878         * i386-tdep.h (i386_register_reggroup_p): Declare.
2879         * i386-tdep.c: Include "reggroups.h".
2880         (i386_init_reggroups): New function.
2881         (i386_add_reggroups): New function.
2882         (i386_register_reggroup_p): New function.
2883         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2884         (_initialize_i386_tdep): Call i386_init_reggroups.
2885         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2886         specific reggroups.
2887
2888 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2889
2890         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2891         request that's available in *BSD.
2892
2893         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2894
2895         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2896         FDOFF_REGNUM.
2897
2898 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2899
2900         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2901         * dummy-frame.c (find_dummy_frame): Rename
2902         generic_find_dummy_frame, make static.  Return the dummy frame
2903         instead of the regcache.
2904         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2905         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2906         (dummy_frame_register_unwind): Rename
2907         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2908         * dummy-frame.h (dummy_frame_register_unwind): Rename
2909         generic_call_dummy_register_unwind.
2910
2911 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2912
2913         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2914         except the inclusion of "i386/tm-i386.h", to...
2915         * config/i386/nm-i386v42mp.h: ...here.
2916         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2917
2918 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2919
2920         * Makefile.in (frame.o): Update dependencies.
2921         * blockframe.c (current_frame, frame_obstack_alloc)
2922         (frame_saved_regs_zalloc, get_current_frame)
2923         (set_current_frame, create_new_frame)
2924         (set_unwind_by_pc, get_next_frame)
2925         (flush_cached_frames, reinit_frame_cache)
2926         (frame_saved_regs_register_unwind)
2927         (deprecated_generic_get_saved_register)
2928         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2929         (_initialize_blockframe): Move frame code from here...
2930         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2931         "annotate.h" and "dummy-frame.h".
2932         (_initialize_frame): New function.
2933
2934 2002-11-08  Jim Blandy  <jimb@redhat.com>
2935
2936         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2937         when we finish a function a context.
2938         * buildsym.h (outermost_context_p): New macro.
2939         (Bug analyzed by David Edelsohn.)
2940
2941 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2942
2943         * blockframe.c: Include "dummy-frame.h".
2944         (struct dummy_frame, dummy_frame_stack)
2945         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2946         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2947         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2948         (generic_save_call_dummy_addr, generic_pop_current_frame)
2949         (generic_pop_dummy_frame, generic_fix_call_dummy)
2950         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2951         dummy frame code from here...
2952         * dummy-frame.c: ...to here.  New file.
2953         * dummy-frame.h: New file.
2954         (generic_call_dummy_register_unwind): Declare.
2955         (generic_find_dummy_frame): Declare.
2956         * Makefile.in (SFILES): Add dummy-frame.c.
2957         (dummy-frame.o): Specify dependencies.
2958         (dummy_frame_h): Define.
2959         (COMMON_OBS): Add dummy-frame.o.
2960         (blockframe.o): Update dependencies.
2961
2962 2002-11-08  Jim Blandy  <jimb@redhat.com>
2963
2964         * dwarf2read.c (read_func_scope): Restore local_symbols and
2965         param_symbols after we finish the function context.  (Based on a
2966         patch from David Edelsohn.)
2967
2968 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2969
2970         * linespec.c (symbol_found): New function.
2971         (minsym_found): New function.
2972         (decode_line_1): Separate out some code into separate functions.
2973
2974 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2975
2976         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2977         the benefit of the interix target.
2978         * i386-tdep.h (i386_frameless_signal_p): Declare.
2979
2980 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2981
2982         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2983         declaration that snuck in from change below.
2984
2985 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2986
2987         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2988         all callers.
2989         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2990         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2991         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2992         (i386_mxcsr_regnum_p): new function.  Use instead of
2993         MXCSR_REGNUM_P.
2994         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2995         (i386_sse_regnum_p): Declare.
2996         (i386_mxcsr_regnum_p): Declare.
2997         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2998         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2999         (IS_FP_REGNUM): Update definition.
3000         (IS_FPU_CTRL_REGNUM): Update definition..
3001         (IS_SSE_REGNUM): Update definition..
3002         * i386v-nat.c (register_u_addr): Update.
3003         * go32-nat.c (fetch_register): Update.
3004         (store_register): Update.
3005
3006 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3007
3008         Preparation work to convert the hppa targets to multiarch partial.
3009
3010         * hppa-tdep.c: Add new functions replacing macro bodies from
3011         config/pa/tm-hppa.h. These function will be used to initialize
3012         the gdbarch structure. Import some comments from tm-hppa.h,
3013         and place them where appropriate, to avoid loosing them when
3014         we cleanup this file.
3015         (hppa_reg_struct_has_addr): New function.
3016         (hppa_inner_than): New function.
3017         (hppa_stack_align): New function.
3018         (hppa_pc_requires_run_before_use): New function.
3019         (hppa_instruction_nullified): New function.
3020         (hppa_register_byte): New function.
3021         (hppa_register_virtual_type): New function.
3022         (hppa_store_struct_return): New function.
3023         (hppa_cannot_store_register): New function.
3024         (hppa_frame_args_address): New function.
3025         (hppa_frame_locals_address): New function.
3026         (hppa_smash_text_address): New function.
3027         (hppa_coerce_float_to_double): New function. Requires the inclusion
3028         of "language.h".
3029
3030         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3031
3032         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3033         gdbarch-eligible macro to a call to the new associated function
3034         created in hppa-tdep.c.
3035         (INNER_THAN): Likewise.
3036         (STACK_ALIGN): Likewise.
3037         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3038         (INSTRUCTION_NULLIFIED): Likewise.
3039         (REGISTER_BYTE): Likewise.
3040         (REGISTER_VIRTUAL_TYPE): Likewise.
3041         (STORE_STRUCT_RETURN): Likewise.
3042         (CANNOT_STORE_REGISTER): Likewise.
3043         (FRAME_ARGS_ADDRESS): Likewise.
3044         (FRAME_LOCALS_ADDRESS): Likewise.
3045         (SMASH_TEXT_ADDRESS): Likewise.
3046         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3047         (ABOUT_TO_RETURN): Delete, as no longer used.
3048
3049 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3050
3051         * printcmd.c (disassemble_command): Remove obsolete function.
3052         (_initialize_printcmd): Do not create disassemble command here.
3053         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3054         disassemble command.
3055         (init_cli_cmds): Create disassemble command here instead.
3056
3057 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3058
3059         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3060
3061 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3062
3063         * regcache.h (regcache_cooked_read_using_offset_hack)
3064         (regcache_cooked_write_using_offset_hack): Delete declarations.
3065         (register_changed): Delete declaration.
3066         * regcache.c (regcache_cooked_read_using_offset_hack)
3067         (regcache_cooked_write_using_offset_hack): Delete functions.
3068         (cooked_xfer_using_offset_hack): Delete function.
3069         (register_changed): Delete function.
3070
3071 2002-11-07  Jim Blandy  <jimb@redhat.com>
3072
3073         * macroscope.c: #include "complaints.h".
3074         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3075         but not in the macro table.
3076         * Makefile.in (macroscope.o): Record dependency.
3077
3078 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3079
3080         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3081
3082 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3083
3084         * regcache.c (deprecated_registers_fetched): Update.
3085         * regcache.h (deprecated_registers_fetched): Rename
3086         registers_fetched.
3087         * remote-vxsparc.c (vx_read_register): Update.
3088         * remote-vxmips.c (vx_read_register): Update.
3089         * remote-vx68.c (vx_read_register): Update.
3090         * irix5-nat.c (fetch_core_registers): Update.
3091         * mipsm3-nat.c (fetch_inferior_registers): Update.
3092         * sun3-nat.c (fetch_inferior_registers): Update.
3093         * symm-nat.c (fetch_inferior_registers): Update.
3094         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3095         (fetch_core_registers): Update.
3096         (fetch_kcore_registers): Update.
3097         * mips-nat.c (fetch_inferior_registers): Update.
3098         * corelow.c (get_core_registers): Update.
3099         * a68v-nat.c (fetch_inferior_registers): Update.
3100
3101 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3102
3103         Put in place the framework necessary for multiarching the hppa targets.
3104         * hppa-tdep.c (hppa_gdbarch_init): New function.
3105         (hppa_dump_tdep): New function.
3106         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3107         tdep structure dumper.
3108         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3109         until the multi-arching conversion has partially been completed.
3110
3111 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3112
3113         * valops.c (value_assign): Merge lval_register case into
3114         lval_reg_frame_relative.  Use frame_register and
3115         regcache_cooked_write instead of get_saved_register and
3116         write_register_bytes.  After flushing the register cache, try to
3117         re-select the selected frame.
3118
3119 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3120
3121         * regcache.h (deprecated_register_valid): Rename register_valid.
3122         * regcache.c: Update.
3123         * ia64-aix-nat.c: Update.
3124         * i386gnu-nat.c: Update.
3125         * alpha-nat.c: Update.
3126         * sparc-nat.c: Update.
3127         * lynx-nat.c: Update.
3128         * remote-mips.c: Update.
3129
3130 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3131
3132         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3133         to end of file, to be more consistent with the pratice followed
3134         by other targets.
3135
3136 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3137
3138         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3139         (print_float_info): Print registers in float_reggroup.
3140         (print_vector_info): Print registers in vector_reggroup.
3141         (default_print_registers_info): When all, print registers in
3142         all_reggroup.  Otherwize, print registers in general_reggroup.
3143         (registers_info): Rewrite.  Add support for register groups.
3144         Eliminate a goto.
3145
3146 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3147
3148         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3149         ages.
3150         (symtab_symbol_info): Remove eons old ifdeffed out code.
3151         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3152         command.
3153
3154 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3155
3156         * c-exp.y: Add missing semi-colons.
3157         * f-exp.y: Add missing semi-colons.
3158         * m2-exp.y: Add missing semi-colons.
3159         * p-exp.y: Add missing semi-colons.
3160         Add empty action to start rule to avoid a type clash error when
3161         building with bison >= 1.50.
3162
3163 2002-11-06  Jim Blandy  <jimb@redhat.com>
3164
3165         * macrotab.h (struct macro_source_file): Doc fix.
3166
3167 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3168
3169         * varobj.c (child_exists, cplus_number_of_children): Change
3170         STREQ macro references to strcmp.
3171         (cplus_name_of_child): Change code to handle the fact that
3172         fields are not necessarily contiguous with regards to their 
3173         access control. This is a fix for PR gdb/792.
3174
3175 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3176
3177         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3178         * gdbarch.h, gdbarch.c: Regnerate.
3179         * frame.h (frame_register): Declare.
3180         * frame.c (frame_register): New function.
3181         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3182         GET_SAVED_REGISTER, otherwize call
3183         generic_unwind_get_saved_register.
3184         (frame_register_read): Use frame_register instead of
3185         get_saved_register.
3186
3187 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3188         
3189         From Jim Ingham  <jingham@apple.com>:
3190         * event-top.c (gdb_disable_readline): New function.
3191         (_initialize_event_loop): Move comment.
3192
3193 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3194
3195         * event-loop.c (start_event_loop): Add comment.
3196         Update copyright.
3197
3198 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3199
3200         * infcmd.c (default_print_registers_info): Do not call
3201         PRINT_REGISTER_HOOK.
3202
3203 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3204
3205         * sparc-tdep.c (sparc_print_register_hook): Make static.
3206         (sparc_print_registers_info): New function.
3207         (sparc_do_registers_info): New function.
3208         (sparclet_print_registers_info): New function.
3209         (sparclet_do_registers_info): New function.
3210         (do_sparc_print_registers_info): New function.
3211         (sparc_print_registers): New static function, clone of infcmd.c's
3212         default_print_registers_info.
3213         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3214         (sparclet_do_registers_info): Declare.
3215         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3216         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3217         Re-define.
3218         (sparc_do_registers_info): Declare.
3219         (PRINT_REGISTER_HOOK): Delete macro.
3220         (sparc_print_register_hook): Delete declaration.
3221
3222 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3223
3224         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3225         functions.
3226         (lookup_symbol_aux_local): New function.
3227         (lookup_symbol_aux_symtabs): New function.
3228         (lookup_symbol_aux_psymtabs): New function.
3229
3230 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3231
3232         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3233         previous values of 'objfile' and 'block'.
3234
3235 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3236
3237         * values.c (value_change_enclosing_type): Set 
3238         enclosing_type field correctly also for the case where 
3239         more memory needs to be allocated.
3240
3241 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3242
3243         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3244         of puts_filtered.
3245
3246         * i387-tdep.c (i387_print_float_info): Replace calls to
3247         register_read and deprecated_read_register_gen with calls to
3248         frame_register_read, and make the necessary adjustments to the
3249         surrounding code.
3250
3251 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3252
3253         * gdbarch.sh (register_reggroup_p): Allow default value.
3254         * gdbarch.h, gdbarch.c: Regenerate.
3255
3256 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3257
3258         * regcache.h: Add coment indicating replacements for deprecated
3259         functions.
3260
3261 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3262
3263         * reggroups.h, reggroups.c: New files.
3264         * regcache.c: Include "reggroups.h".
3265         (enum regcache_dump_what): Add `regcache_dump_groups'.
3266         (regcache_dump): Contract size of the "Type" column.  When
3267         specified, dump the register's groups.
3268         (maintenance_print_register_groups): New function.
3269         (_initialize_regcache): Add command `maint print register-groups'.
3270         * Makefile.in (COMMON_OBS): Add reggroups.o
3271         (SFILES): Add reggroups.c.
3272         (reggroups_h): Define.
3273         (regcache.o, gdbarch.o): Update dependencies.
3274         (reggroups.o): Specify dependencies.
3275         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3276         Add opaque declaration for `struct reggroup' in generated .h file.
3277         Include "reggroups.h" in generated .c file.
3278         gdbarch.h, gdbarch.c: Re-generate.
3279
3280 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3281
3282         * regcache.h (deprecated_read_register_gen): Rename
3283         read_register_gen.
3284         (deprecated_write_register_gen): Rename write_register_gen.
3285         * i387-tdep.c: Update.
3286         * x86-64-linux-nat.c: Update
3287         * wince.c: Update.
3288         * thread-db.c: Update.
3289         * win32-nat.c: Update.
3290         * mips-tdep.c: Update.
3291         * d10v-tdep.c: Update.
3292         * cris-tdep.c: Update.
3293         * remote-sim.c: Update.
3294         * remote-rdi.c: Update.
3295         * remote-rdp.c: Update.
3296         * frame.c: Update.
3297         * target.c: Update.
3298         * blockframe.c: Update.
3299         * x86-64-tdep.c: Update.
3300         * xstormy16-tdep.c: Update.
3301         * sh-tdep.c: Update.
3302         * s390-tdep.c: Update.
3303         * rs6000-tdep.c: Update.
3304         * sparc-tdep.c: Update.
3305         * i386-tdep.c: Update.
3306         * dwarf2cfi.c: Update.
3307         * regcache.c: Update.
3308
3309 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3310
3311         New interix-specific files:
3312         * config/i386/nm-interix.h: New file.
3313         * config/i386/interix.mh: New file.
3314         * config/i386/interix.mt: New file.
3315         * i386-interix-nat.c: New file.
3316         * i386-interix-tdep.c: New file.
3317
3318 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3319
3320         * frame.h (deprecated_generic_get_saved_register): Rename
3321         generic_get_saved_register.
3322         * blockframe.c (deprecated_generic_get_saved_register): Update.
3323         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3324         (xstormy16_frame_saved_register): Update.
3325         * sh-tdep.c (sh_gdbarch_init): Update.
3326         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3327         * ia64-tdep.c (ia64_get_saved_register): Update.
3328         * cris-tdep.c (cris_gdbarch_init): Update.
3329         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3330         * arm-tdep.c (arm_gdbarch_init): Update.
3331
3332 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3333
3334         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3335
3336 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3337
3338         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3339         trampolines in sigaction.
3340
3341 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3342
3343         * h8300-tdep.c: Include "gdb_assert.h".
3344         (h8300_print_register): Add gdbarch, file and frame parameters.
3345         Use frame_read_unsigned_register to read the register's value.
3346         Use fprintf_filtered to display output.
3347         (h8300_print_registers_info): Replace h8300_do_registers_info.
3348         (h8300_gdbarch_init): Set print_registers_info.
3349
3350 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3351
3352         * frame.c (frame_read_unsigned_register): New function.
3353         (frame_read_signed_register): New function.
3354         * frame.h (frame_read_unsigned_register): Declare.
3355         (frame_read_signed_register): Declare.
3356
3357 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3358
3359         * h8500-tdep.c (h8500_print_registers_info): New static function,
3360         clone of infcmd.c's default_print_registers_info.
3361         (h8500_do_registers_info): New funtion.
3362         (h8500_print_register_hook): Rename print_register_hook, make
3363         static.
3364
3365         * config/h8500/tm-h8500.h: Update copyright.
3366         (DEPRECATED_DO_REGISTERS_INFO): Define.
3367         (h8500_do_registers_info: Declare.
3368         (PRINT_REGISTER_HOOK): Delete macro.
3369         (print_register_hook): Delete function.
3370
3371 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3372
3373         * z8k-tdep.c (z8k_print_register_hook): Make static.
3374         (z8k_print_registers_info): New static function, clone of
3375         infcmd.c's default_print_registers_info.
3376         (z8k_do_registers_info): New function.  Wrap
3377         z8k_print_registers_info.
3378         * config/z8k/tm-z8k.h: Update copyright.
3379         (PRINT_REGISTER_HOOK): Delete macro.
3380         (z8k_print_register_hook): Delete declaration.
3381         (DEPRECATED_DO_REGISTERS_INFO): Define.
3382         (z8k_do_registers_info): Declare.
3383
3384 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3385
3386         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3387         as this is already provided by value.h, and was actually causing
3388         a compilation error because of a conflict in parameter type
3389         declaration due to a missing const keyword.
3390         (low_text_segment_addres): Fix a compilation warning.
3391
3392 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3393
3394         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3395         registers without a name.
3396         (mips_linux_cannot_store_register): Don't store registers without
3397         a name.
3398
3399 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3400
3401         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3402         out.)
3403         * symtab.h: Delete prototype for find_addr_symbol.
3404
3405 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3406
3407         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3408         DO_REGISTERS_INFO.
3409         gdbarch.h, gdbarch.c: Re-generate.
3410         * infcmd.c (default_print_registers_info): Update reference.
3411         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3412         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3413         * sh-tdep.c (sh_gdbarch_init): Ditto.
3414         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3415         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3416
3417 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3418
3419         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3420         cfi_init_extra_frame_info.
3421         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3422         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3423
3424         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3425         target where necessary.  Add more comments and remove the ones
3426         that don't provide any useful information.
3427
3428         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3429         deprecated_read_register_dummy with
3430         frame_unwind_unsigned_register.
3431
3432         * i386-tdep.c (i386_extract_struct_value_address): Use
3433         regcache_raw_read_unsigned instead of
3434         regcache_cooked_read_unsigned since we know that the register
3435         we're reading isn't a pseudo register.  Rename variable 'val' into
3436         the more descriptive 'addr'.
3437
3438         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3439         (x86_64_push_return_address): Add comment.
3440         (x86_64_pop_frame): Make static.
3441         (examine_argument): Clarify comment.
3442         (x86_64_skip_prologue): Make prolog_expact variable static.
3443
3444         * dwarf2cfi.c: Fix some formatting problems.
3445         (context_cpy, read_encoded_pointer): Clarify comments.
3446
3447         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3448         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3449         i386 target back into x86_64_gdbarch_init.  Add some comments and
3450         remove meaningless ones.
3451
3452 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3453
3454         * complaints.h (struct deprecated_complaint): Rename `struct
3455         complaint'.
3456         * complaints.c (complain): Update.
3457         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3458         incorrect comment indicating that "symfile.h" was being included
3459         for the `struct complaint' definition.
3460         * remote-vx.c: Update.
3461         * objc-lang.c: Update.
3462         * xcoffread.c: Update.
3463         * hpread.c: Update.
3464         * mdebugread.c: Update.
3465         * stabsread.c: Update.
3466         * dwarf2read.c: Update.
3467         * dwarfread.c: Update.
3468         * elfread.c: Update.
3469         * coffread.c: Update.
3470         * stabsread.h: Update.
3471         * dbxread.c: Update.
3472         * buildsym.c: Update.
3473         * gdbtypes.c: Update.
3474         * macrotab.c: Update.
3475
3476 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3477
3478         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3479         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3480         (x86_64_init_abi): ...new function.
3481
3482         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3483         * i386v-nat.c: Include "i386-tdep.h".
3484
3485 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3486
3487         * gdbtypes.c (address_space_name_to_int): Update.
3488         (address_space_int_to_name): Update.
3489         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3490         multi-arch predicate.
3491         (address_class_name_to_type_flags): Ditto.
3492         * gdbarch.h, gdbarch.c: Re-generate.
3493         
3494         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3495
3496 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3497
3498         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3499
3500 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3501
3502         * symtab.h (INIT_SAL): Delete macro.
3503         (init_sal): Export.
3504         * symtab.c (init_sal): New function.
3505
3506         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3507         to init_sal function call.
3508         (find_sal_from_funcs_and_line): Ditto.
3509         (all_sals_for_line): Ditto. 
3510         * breakpoint.c (create_internal_breakpoint): Ditto. 
3511         (create_fork_vfork_event_catchpoint): Ditto. 
3512         (create_exec_event_catchpoint): Ditto. 
3513         (parse_breakpoint_sals): Ditto. 
3514         (watch_command_1): Ditto. 
3515         (handle_gnu_4_16_catch_command): Ditto.
3516         (clear_command): Ditto. 
3517         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3518         * infcmd.c (run_stack_dummy): Ditto. 
3519         * infrun.c (process_event_stop_test): Ditto.
3520         (check_sigtramp2): Ditto.
3521         (step_over_function): Ditto. 
3522         * linespec.c (decode_line_2): Ditto. 
3523         (decode_line_1): Ditto. 
3524         * source.c (line_info): Ditto. 
3525         * symtab.c (find_pc_sect_line): Ditto.
3526
3527 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3528
3529         * dwarf2cfi.c (struct context)
3530         (struct context_reg): Moved to dwarf2cfi.h
3531         (context_alloc, frame_state_alloc, context_cpy):
3532         Made extern instead of static, removed prototypes.
3533         * dwarf2cfi.h (struct context)
3534         (struct context_reg): New, moved from dwarf2cfi.c
3535         (context_alloc, frame_state_alloc, context_cpy):
3536         New prototypes.
3537         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3538         Changed from static to extern.
3539         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3540         (LINUX_SIGCONTEXT_FP_OFFSET)
3541         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3542         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3543         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3544         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3545         set_gdbarch_*() calls now use x86-64 specific functions 
3546         instead of DWARF2 CFI ones.
3547         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3548         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3549         (x86_64_init_extra_frame_info): New prototypes.
3550         
3551 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3552
3553         * linespec.c: #include "parser-defs.h".
3554         Delete prototype for find_template_name_end.
3555         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3556
3557 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3558
3559         * NEWS: add recent mi fixes.
3560         * varobj.c (struct varobj): Add new "updated" flag.
3561         (new_variable): Default "updated" flag to 0.
3562         (varobj_set_value): Set "updated" flag to 1 if value
3563         changes.
3564         (varobj_update): Check varobj "updated" flag before
3565         comparing old and refreshed values.  Fix for
3566         PR gdb/702.
3567
3568 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3569
3570         * parse.c (parse_exp_1): Use BLOCK_START.
3571         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3572         SYMBOL_BLOCK_VALUE.
3573         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3574
3575 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3576
3577         * symtab.c: Delete cplusplus_hint.
3578         Delete prototype for find_template_name_end.
3579
3580 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3581
3582         * symtab.h: Update comment.
3583
3584 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3585
3586         * printcmd.c (address_info): Restore quotes in output.
3587         * valops.c (value_of_local): Restore quotes in error message.
3588
3589 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3590
3591         * symtab.c (symbol_demangled_name): New function.
3592         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3593         turning most of it into a function.
3594         (symbol_demangled_name): Export.
3595
3596 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3597
3598         * valops.c (value_of_local): Restore quotes in error message.
3599
3600 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3601
3602         * symtab.c (symbol_init_language_specific): New function.
3603         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3604         turning most of it into a function.
3605         (symbol_init_language_specific): Export.
3606
3607 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3608
3609         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3610         (dwarf_attr_name): Ditto.
3611         (dwarf_type_encoding_name): Ditto.
3612         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3613         (process_die): Handle DW_TAG_namespace,
3614         DW_TAG_imported_declaration, DW_TAG_imported_module.
3615         (read_namespace): New function.
3616
3617 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3618
3619         * configure.in: Define NEW_PROC_API on Interix too.
3620         * configure: Regenerate.
3621
3622 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3623
3624         * configure: Regenerate using the proper version of autoconf.
3625
3626 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3627
3628         * findvar.c (read_var_value): Temporarily disable TLS code, until
3629         complete TLS support is added.
3630
3631 2002-10-21  Jim Blandy  <jimb@redhat.com>
3632             Elena Zannoni  <ezannoni@redhat.com>
3633
3634         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3635         for thread local storage locations.
3636         (struct symbol): Add objfile field.
3637         (SYMBOL_OBJFILE): Define.
3638         * dwarf2read.c (is_thread_local): New static variable.
3639         (new_symbol): If variable is in thread local fill in address class
3640         and objfile appropriately.
3641         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3642         stack operation.
3643         * printcmd.c (address_info): Print the information for thread
3644         local storage variable.
3645         * findvar.c (read_var_value): In case of thread local variable,
3646         defer to the target vector code to compute address.
3647
3648 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3649
3650         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3651         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3652
3653 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3654
3655         * symtab.h (address_class):  Rename
3656         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3657         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3658         * printcmd.c (address_info): Ditto.
3659         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3660
3661 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3662
3663         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3664         DBREG_DRX macro to acces debug registers.
3665
3666         * Makefile.in (i386obsd-tdep.o): New target.
3667
3668         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3669         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3670
3671         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3672         * config/i386/obsd.mt: New file.
3673         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3674         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3675         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3676         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3677         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3678         * i386obsd-tdep.c: New file.
3679
3680 2002-10-19  Adam Fedor  <fedor@gnu.org>
3681
3682         * objc-exp.y (name_not_typename): Fix invalid comment.  
3683
3684 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3685
3686         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3687         to allocate partial syms and macro byte caches.
3688
3689 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3690
3691         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3692
3693 2002-10-18  Adam Fedor  <fedor@gnu.org>
3694
3695         * stabsread.c (find_name_end): New function.
3696         (define_symbol): Use it.
3697
3698 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3699
3700         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3701         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3702         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3703         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3704
3705 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3706
3707         * symfile.h: Add opaque declaration for struct obstack.
3708         Declare obsavestring to take a const char *.
3709         * symfile.c (obsavestring): Make first argument a const char *.
3710
3711 2002-10-16  Adam Fedor  <fedor@gnu.org>
3712
3713         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3714         names when matching breakpoints in current file.
3715
3716 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3717
3718         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3719         (read_tag_pointer_type): Add address class support.
3720         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3721         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3722         New methods.
3723         * gdbarch.h, gdbarch.c: Regenerate.
3724         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3725         (make_type_with_address_space, recursive_type_dump): Add address
3726         class support.
3727         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3728         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3729         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3730
3731 2002-10-16  Klee Dienes  <kdienes@apple.com>
3732
3733         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3734         to get the last character of a char[] buffer, not
3735         name[sizeof(vptr_name)-1].
3736
3737 2002-10-14  Adam Fedor  <fedor@gnu.org>
3738
3739         * symtab.h: New objc_specific struct.
3740         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3741         (SYMBOL_DEMANGLED_NAME): Likewise.
3742
3743 2002-10-14  Adam Fedor  <fedor@gnu.org>
3744
3745         * symfile.c (init_filename_language_table): Add ObjC file extension.
3746
3747 2002-10-14  Adam Fedor  <fedor@gnu.org>
3748
3749         * utils.c (puts_filtered_tabular): New function.
3750         (fprintf_symbol_filtered): Get ObjC demangled name.
3751         * defs.h (puts_filtered_tabular): Declared.
3752
3753 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3754
3755         * c-lang.h (c_type_print_varspec_prefix): Delete.
3756         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3757         ``need_post_space'' parameter.  Adjust all callers.
3758
3759 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3760  
3761         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3762         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3763         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3764         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3765
3766 2002-10-13  Adam Fedor  <fedor@gnu.org>
3767
3768         * source.c (print_source_lines): Update comments.
3769
3770 2002-10-13  Adam Fedor  <fedor@gnu.org>
3771
3772         * valops.c (value_of_local): New function.
3773         (value_of_this): Use it.
3774         * value.h (value_of_local): Declared.
3775
3776 2002-10-13  Adam Fedor  <fedor@gnu.org>
3777
3778         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3779         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3780
3781 2002-10-12  Adam Fedor  <fedor@gnu.org>
3782
3783         * language.c (binop_result_type): Add language_objc to case.
3784         (integral_type): Likewise.
3785         (character_type): Likewise.
3786         (string_type): Likewise.
3787         (boolean_type): Likewise.
3788         (structured_type): Likewise.
3789         (binop_type_check): Likewise.
3790
3791 2002-10-11  Adam Fedor  <fedor@gnu.org>
3792
3793         * printcmd.c (address_info): Print 'self' for ObjC.
3794
3795 2002-10-11  Adam Fedor  <fedor@gnu.org>
3796
3797         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3798         OP_SELF.
3799
3800 2002-10-11  Adam Fedor  <fedor@gnu.org>
3801
3802         * language.h (CAST_IS_CONVERSION): Add language_objc.
3803
3804 2002-10-11  Adam Fedor  <fedor@gnu.org>
3805
3806         * defs.h (enum language): Add language_objc.
3807
3808 2002-10-11  Klee Dienes  <kdienes@apple.com>
3809
3810         * corefile.c (read_memory_typed_address): New function.
3811         * gdbcore.h (read_memory_typed_address): Add prototype.
3812         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3813         to read a value destined for a CORE_ADDR, not read_memory_integer.
3814         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3815         (f77_get_dynamic_lowerbound): Ditto.
3816
3817 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3818
3819         * utils.c (string_to_core_addr): After turning string into
3820         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3821         which will do necessary sign-extension, etc.
3822
3823 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3824
3825         * c-exp.y (THIS): Delete token and grammar rule.
3826         (yylex): Don't return THIS.
3827         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3828         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3829         * demangle.c (cplus_markers): Update comment.  Put '$'
3830         first.  Remove CPLUS_MARKER.
3831         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3832         * jv-exp.y (THIS): Delete token and grammar rule.
3833         (yylex): Don't return THIS.
3834         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3835         * objc-exp.y (THIS): Delete token and grammar rule.
3836         (yylex): Don't return THIS.
3837         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3838         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3839         (read_member_functions): Likewise for opname.
3840         (read_tilde_fields): Use is_cplus_marker.
3841
3842         * defs.h (CPLUS_MARKER): Don't define.
3843         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3844         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3845         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3846         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3847         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3848
3849         * config/i386/tm-i386v4.h: Delete file.
3850         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3851         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3852         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3853         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3854         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3855         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3856         * config/i386/i386v4.mt (TM_FILE): Likewise.
3857         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3858
3859 2002-10-10  Marko Mlinar  <markom@opencores.org>
3860
3861         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3862         accidentially not commited 2002-10-09
3863         * gdbarch.h, gdbarch.c: Re-generate.
3864
3865 2002-10-09  Marko Mlinar  <markom@opencores.org>
3866
3867         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3868         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3869         * gdbarch.h, gdbarch.c: Re-generate.
3870
3871 2002-10-08  Petr Sorfa <petrs@caldera.com>
3872
3873         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3874
3875         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3876         so we can work on more than one compilation unit at a time.  This
3877         helps prepare GDB to handle inter-CU die references.
3878         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3879         the code to be defined before struct comp_unit_head.
3880         (comp_unit_head): Added new members - offset, cu_head,
3881         begin_die, next and dwarf2_abbrevs.
3882         (dwarf2_abbrevs): Removed single static var; now member of
3883         struct comp_unit_head.
3884         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3885         members.
3886         (psymtab_to_symtab_1): Changed to work with the new
3887         struct comp_unit_head.
3888         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3889         constructs the dwarf2_abbrevs[] inside the cu_header.
3890         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3891         dwarf2_abbrev table to clean up.
3892         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3893         handling of dwarf2_abbrevs inside the cu_header.
3894         (read_partial_die): Now supports the call to the new
3895         dwarf2_lookup_abbrev.
3896         (read_full_die): Now supports the call to the new
3897         dwarf2_lookup_abbrev.
3898
3899 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3900
3901         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3902         insure that shell variables, such as "transformed_name" are propagated
3903         to later shell statements in rule.
3904
3905 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3906
3907         * config/i386/nm-i386sco.h: Add protection against
3908         multiple-inclusion.  Include "i386/nm-i386v.h".
3909         (REGISTER_U_ADDR): Remove define.
3910         (i386_register_u_addr): Remove prototype.
3911
3912 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3913
3914         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3915         before treating it as a single-step event.
3916
3917 2002-10-03  Adam Fedor  <fedor@gnu.org>
3918
3919         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3920         (objc_demangle): Remove assignment in if statements, Replace
3921         free with xfree.
3922         (add_msglist): Likewise.
3923         (end_msglist): Likewise.
3924         (complare_selectors): Likewise.
3925         (selectors_info): Likewise.
3926         (compare_classes): Likewise.
3927         (classes_info): Likewise.
3928         (print_object_command): Likewise.
3929         (find_objc_msgcall_submethod): Replace PTR with void *.
3930         * objc-lang.h: Remove check for __STDC__.
3931
3932 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3933
3934         * ui-out.h (ui_out_field_fmt_int): New prototype.
3935         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3936         of field width and alignment.
3937         * stack.c (print_frame_info_base): When printing frame level, use
3938         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3939         PR gdb/192
3940
3941 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3942
3943         * MAINTAINERS: Add self to Write After Approval list.
3944
3945 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3946
3947         * infcmd.c (interrupt_target_command_wrapper): Delete.
3948         (interrupt_target_command): Make non static.
3949         (nofp_registers_info): Make static.
3950         * stack.c (return_command_wrapper): Delete.
3951         (return_command): Make non static.
3952
3953 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3954
3955         * event-top.c (gdb_setup_readline): New function. Code moved from
3956         _initialize_event_loop().
3957         (_initialize_event_loop): Call gdb_setup_readline().
3958
3959 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3960
3961         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3962         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3963         * gdbarch.h, gdbarch.c: Re-generate.
3964
3965 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3966
3967         Fix PR gdb/778
3968         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3969         before recursing.
3970         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3971         of fill_in_vptr_fieldno.
3972
3973 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3974
3975         * inferior.h (registers_info, stepi_command, nexti_command,
3976         continue_command, interrupt_target_command): Export from infcmd.c.
3977         * frame.h (args_info, selected_frame_level_changed_hook,
3978         return_command): Export from stack.c.
3979         * v850ice.c (stepi_command, nexti_command, continue_command): use
3980         prototypes from inferior.h.
3981         * tracepoint.c (registers_info, args_info, locals_info): Use
3982         prototypes from frame.h and inferior.h.
3983         * Makefile.in (mi-main.o): Add dependency on frame.h.
3984
3985 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3986
3987         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3988         value in register 3 adjusted by ppc_gp0_regnum.
3989
3990         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3991
3992 2002-10-02  Marko Mlinar <markom@opencores.org>
3993
3994         * MAINTAINERS: Add myself to the Write After Approval list.
3995
3996 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3997
3998         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3999         of the section for the N64 ABI, fixed.
4000
4001         * config/mips/tm-irix6.h: Include solib.h.
4002
4003 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
4004
4005         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4006         GNU operators.
4007
4008 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4009
4010         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4011         and that "mi0" syntax has been removed.
4012
4013 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4014
4015         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4016         * ppc-sysv-tdep.c: #include "gdb_string.h".
4017         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4018         pacify GCC.
4019
4020 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4021
4022         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4023         "vrsave"'s register number.
4024
4025 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4026
4027         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4028         use frame_unwind_signed_register to obtain the PC.
4029         (mips_frame_chain): Handle a generic dummy frame.
4030         (mips_init_extra_frame_info): When a generic dummy frame, don't
4031         re-compute the frame base.
4032         (mips_pop_frame): Handle generic dummy frames.
4033         (mips_gdbarch_init): When generic dummy frames, set
4034         use_generic_dummy_frames, push_dummy_frame to
4035         generic_push_dummy_frame, pc_in_call_dummy to
4036         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4037         generic_save_dummy_frame_tos.
4038
4039 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4040
4041         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4042         against TOP when TOP was explictly set.
4043         (generic_push_dummy_frame): Set TOP to zero.
4044
4045 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4046
4047         * event-loop.c (start_event_loop): Rename variable 'result' to
4048         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4049
4050 2002-09-30  Keith Seitz  <keiths@redhat.com>
4051
4052         * gdb-events.sh (selected_thread_changed): New event.
4053         * gdb-events.c: Regenerated.
4054         * gdb-events.h: Regenerated.
4055
4056 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4057
4058         * MAINTAINERS: Add self to Write After Approval list.
4059
4060 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4061
4062         * disasm.c: New file.  
4063         * disasm.h: New file.  
4064         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4065         (compare_lines): Ditto.
4066         (dump_insns): Ditto.
4067         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4068         argument.
4069         (do_assembly_only): Ditto.
4070         (do_disassembly): Renamed to gdb_disassembly and moved to
4071         disasm.c.  Sdded uiout argument.
4072         * Makefile.in: Add new files.  Reorder SFILES list. Update
4073         dependencies.  Include libgdb.a later in the insight executable.
4074
4075 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4076
4077         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4078         bfd/elf64-alpha-fbsd.c.
4079
4080 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4081
4082         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4083         i386gnu-tdep.c.
4084
4085 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4086
4087         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4088         __FUNCTION__.
4089         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4090         function name.
4091         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4092         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4093         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4094         (S_msg_sig_post_reply): Ditto.
4095         
4096 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4097
4098         * sh-tdep.c (sh_use_struct_convention): Use definition according
4099         to ABI.
4100         (sh_push_arguments): Store in register with correct endianess.
4101         (sh_default_store_return_value): Ditto.
4102         (sh_gdbarch_init): Set sizeof long double to 8.
4103
4104 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4105
4106         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4107         Fix some whitespace problems.
4108
4109 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4110
4111         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4112         (mcore-tdep.o): Ditto.
4113         (ns32k-tdep.o): Ditto.
4114         (ns32knbsd-tdep.o): Ditto.
4115         (sh3-rom.o): Ditto.
4116         (vax-tdep.o): Ditto.
4117         * cris-tdep.c: #include "gdb_string.h"
4118         * mcore-tdep.c: Ditto.
4119         * ns32k-tdep.c: Ditto.
4120         * ns32knbsd-tdep.c: Ditto.
4121         * sh3-rom.c: Ditto.
4122         * vax-tdep.c: Ditto.
4123
4124 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4125
4126         * config/djgpp/fnchange.lst: Add entries for
4127         gdb/testsuite/gdb.c++/m-static files.
4128
4129 2002-09-27  Jim Wilson  <wilson@redhat.com>
4130
4131         * MAINTAINERS: Add myself to the Write After Approval list.
4132
4133 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4134
4135         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4136
4137
4138 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4139
4140         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4141         frame.
4142
4143 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4144
4145         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4146         (rs6000_struct_return_address): Delete variable.
4147         (rs6000_store_struct_return): Update.
4148         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4149         deprecated_extract_struct_value_address.
4150         (rs6000_frame_align): New function.
4151         (rs6000_gdbarch_init): Set frame_align.
4152
4153 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4154
4155         From Grace Sainsbury <graces@redhat.com>:
4156         * Makefile.in (gdbtk-main.o): New target.
4157         (gdb.o): New target.
4158         (main_h): Define.
4159         (main.o): Update dependencies.
4160         (gdb$(EXEEXT)): Add gdb.o.
4161         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4162         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4163         (SUBDIR_GDBTK_CLEAN): Set.
4164         (install-gdbtk): Install the insight binary.
4165         (uninstall-gdbtk): New target.
4166         (all-gdbtk, clean-gdbtk): New rule.
4167         * top.c (use_windows): Default to zero.
4168         * main.c: Include "main.h".
4169         (main): Delete.
4170         (struct captured_main_args): Delete.
4171         (gdb_main): New function.
4172         * main.h: New file.
4173         * gdb.c: New File.
4174
4175 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4176
4177         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4178         (frame_map_regnum_to_name): New function.
4179         (frame_map_name_to_regnum): New function.
4180         * frame.h (frame_map_name_to_regnum): Declare.
4181         (frame_map_regnum_to_name): Declare.
4182         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4183         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4184         * parse.c: Do not include "builtin-regs.h".
4185         (target_map_name_to_register): Delete function.
4186         (write_dollar_variable): Use frame_map_name_to_regnum.
4187         * parser-defs.h (target_map_name_to_register): Delete declaration.
4188         * expprint.c: Include "frame.h".
4189         (print_subexp): Use frame_map_regnum_to_name.
4190         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4191         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4192
4193 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4194
4195         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4196         wasn't saved, and the next innermost frame is a dummy, return the
4197         dummy frame's link register.
4198
4199 2002-09-24  Jim Blandy  <jimb@redhat.com>
4200
4201         Fix from Paul Breed:
4202         * main.c (captured_main): Add a `break' after the case for 'b'.
4203
4204 2002-09-24  Keith Seitz  <keiths@redhat.com>
4205
4206         * varobj.c (c_type_of_child): Use get_target_type instead
4207         of TYPE_TARGET_TYPE.
4208
4209 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4210
4211         * source.c (get_current_or_default_source_symtab_and_line): Remove
4212         function.
4213         (set_default_source_symtab_and_line): New function. Attempts to
4214         determine a source file to list lines from if one is not currently
4215         defined.
4216         (get_current_source_symtab_and_line): Initialize sal.pc and
4217         sal.end fields.
4218         (set_current_source_symtab_and_line): Mark argument as const.
4219         * source.h: Update declarations and comments.
4220         * linespec.c (decode_line_1): Replace call to removed routine above.
4221         * stack.c (print_frame_info_base): Ditto.
4222         * cli/cli-cmds.c (edit_command): Ditto.
4223         (list_command): Ditto.
4224
4225 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4226
4227         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4228         sal.pc and sal.end fields.
4229         (get_current_or_default_source_symtab_and_line): Ditto.
4230         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4231         so we do not cause a new source symtab to be searched for (reverting an
4232         unintentional change from the 2002-09-20 patch).
4233         * scm-lang.c (scm_unpac): Ditto.
4234
4235 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4236
4237         * complaints.c (symfile_explanations): Remove new-line from
4238         ``isolated_message''.
4239         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4240         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4241
4242 2002-09-20  Nick Clifton  <nickc@redhat.com>
4243         
4244         * NEWS: Announce that V850EA ISA is no longer supported.
4245         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4246
4247 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4248
4249         * Makefile.in (c-lang.o): Correct dependencies.
4250         (utils.o): Gather dependencies.
4251         (charset.o): Move.
4252         * c-lang.c: #include "gdb_string.h"
4253
4254 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4255
4256         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4257         * cli/cli-cmds.c (list_command): New function.  Implements the new
4258         cli edit command.
4259         (_init_cli_cmds): Add new command definition.
4260         * gdb.1: Document edit command.
4261         * doc/gdb.texinfo: Document edit command.
4262
4263 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4264
4265         * source.c: Make global variables current_source_symtab and
4266         current_source_line static.
4267         (list_command): Moved to cli/cli-cmds.c.
4268         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4269         (get_first_line_listed): New accessor function.
4270         (get_lines_to_list): New accessor function.
4271         (get_current_source_symtab_and_line): New function. Retrieves the
4272         position in the source code that we consider current.
4273         (get_current_or_default_source_symtab_and_line): New function.
4274         Like the above but attempts to determine a default position if one
4275         is not currently defined.
4276         (set_current_source_symtab_and_line): New function. Sets the source
4277         code position considered current and returns the previously set one.
4278         (clear_current_source_symtab_and_line): Reset stored information about
4279         a current source line.
4280         (_initialize_source): Remove registration for the "list" command and
4281         its alias.
4282         * source.h: Add declarations for the new functions above.
4283         * symtab.h: Remove declarations for the global variables mentioned
4284         above.
4285         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4286         obtain current source line.
4287         * linespec.c (decode_line_1): Ditto.
4288         * macroscope.c (default_macro_scope): Ditto.
4289         * scm-lang.c (scm_unpac): Ditto.
4290         * stack.c (print_frame_info_base): Ditto.
4291         * symfile.c (clear_symtab_users): Ditto.
4292         * symtab.c (decode_line_spec): Ditto.
4293         * cli/cli-cmds.c (list_command): Moved here from source.c.
4294         (ambiguous_line_spec): Moved here from source.c.
4295         (_init_cli_cmds): Add definition for "list" and its alias.
4296         * Makefile.in: Update dependencies.
4297
4298 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4299
4300         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4301         with what gcc thinks is correct.
4302
4303 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4304
4305         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4306         multiple register push instruction.
4307
4308 2002-09-19  Jim Blandy  <jimb@redhat.com>
4309
4310         Add support for distinct host and target character sets.
4311         * charset.c, charset.h: New files.
4312         * c-exp.y: #include "charset.h".
4313         (yylex): Convert character and string literals to the target
4314         character set, before returning them as the semantic value of the
4315         token.
4316         * c-lang.c: #include "charset.h".
4317         (c_emit_char): Use charset-specific methods to recognize
4318         characters with backslash escape forms, to decide which characters
4319         to print literally and which to print using numeric escape
4320         sequences, and to convert target characters to host characters
4321         before printing.
4322         * utils.c: #include "charset.h".
4323         (no_control_char_error): New function.
4324         (parse_escape): Use charset-specific methods to recognize
4325         backslash escapes, parse `control character' notation, and convert
4326         characters from the host character set to the target character set.
4327         * configure.in: Set the default host character set.
4328         Check where to find iconv, and what its argument types might be.
4329         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4330         * Makefile.in (SFILES): List charset.c.
4331         (COMMON_OBS): List charset.o.   
4332         (charset.o): New rule.
4333         (charset_h): New header dependency variable.
4334         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4335         (LIBICONV): New variable, set by configure.
4336         (CLIBS): Include $(LIBICONV) here.
4337         * aclocal.m4, config.in, configure: Regenerated.
4338
4339 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4340
4341         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4342         bison 1.35 warning.
4343
4344 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4345
4346         * gdb_mbuild.sh: New file.
4347
4348 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4349
4350         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4351
4352 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4353
4354         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4355         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4356         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4357         valops.c, value.h: Revert previous change.
4358         
4359 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4360
4361         Preliminary support for Objective-C:
4362         * defs.h (language_objc): New enum value.
4363         (puts_filtered_tabular): Declaration only, exported from utils.c.
4364         (skip_quoted): Delete, declared in completer.h.
4365         * c-exp.y: Include completer.h.
4366         * p-exp.y: Ditto.
4367         * jv-exp.y: Ditto.
4368         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4369         New operator enum values.
4370         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4371         * language.c (binop_result_type): Handle language_objc case.
4372         (integral_type, character_type, string_type, boolean_type,
4373         structured_type, binop_type_check): Ditto.
4374         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4375         (struct objc_specific): Add to general_symbol_info.
4376         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4377         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4378         * parser-defs.h (struct objc_class_str): New struct type.
4379         (start_msglist, end_msglist, add_msglist): Declaration only,
4380         exported from objc-lang.c.
4381         * value.h (value_of_local, value_nsstring, 
4382         call_function_by_hand_expecting_type): Exported from valops.c.
4383         * valops.c (find_function_addr): Export.
4384         (call_function_by_hand_expecting_type): New function.
4385         (value_of_local): New function.
4386         * symfile.c (init_filename_language_table): Add ".m" extension
4387         for Objective-C.
4388         * utils.c (puts_filtered_tabular): New function.
4389         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4390         (set/show demangle): Extend help-string to refer to ObjC.
4391         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4392         * stabsread.c (symbol_reference_defined): Objective-C symbols
4393         may contain colons: make allowances when scanning stabs strings
4394         for colons.
4395         (objc_find_colon): New function.
4396         * printcmd.c (address_info): If language == objc then print
4397         "self" instead of "this".
4398         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4399         OP_NSSTRING, and OP_SELF.
4400         (prefixify_subexp): Ditto.
4401         * source.c (print_source_lines): Mention objc in comment.
4402         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4403         method names.
4404
4405 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4406
4407         * complaints.h: Update copyright.
4408         (struct complaints): Declare.
4409         (struct complaint): Make `message' constant.
4410         (internal_complaint): Declare.
4411         (complaint): Declare.
4412         (complaint_root): Delete declaration.
4413         (symfile_complaints): Delete declaration.
4414         (struct complaints): Add opaque declaration.
4415         (clear_complaints): Add a complaints parameter.
4416         * complaints.c: Update copyright.
4417         (enum complaint_series): Define.
4418         (complaint_root): Delete.
4419         (struct complaints): Define.
4420         (complaint_sentinel, symfile_complaint_book): New variables.
4421         (symfile_explanations, symfile_complaints): New variables.
4422         New variables.
4423         (get_complaints): New function.
4424         (vcomplaint): New function.
4425         (complaint): New function.
4426         (internal_complaint): New function.
4427         (complain): Call vcomplain with symfile_complaint.
4428         (clear_complaints): Rewrite.
4429         (_initialize_complaints): Use add_setshow_command.
4430         * Makefile.in (complaints.o): Update dependencies.
4431         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4432         to call to clear_complaints.
4433         (new_symfile_objfile, reread_symbols): Ditto.
4434         (oldsyms_complaint): Delete.
4435         (empty_symtab_complaint, unknown_option_complaint): Delete.
4436         (free_named_symtabs): Use complaint instead of complain.
4437
4438 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4439
4440         Contributed by Apple Computer, Inc.  Merged with current sources
4441         by Adam Fedor <fedor@doc.com> [cagney].
4442         
4443         * objc-lang.c: First clean-up round: comments, indentation.
4444         * objc-lang.h: Ditto.
4445         * objc-lang.y: Ditto.
4446
4447 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4448
4449         * maint.c (maintenance_internal_error): Print the parameter as the
4450         error message.
4451         (maintenance_internal_warning): New function.
4452         (_initialize_maint_cmds): Add command `maint internal-warning'.
4453
4454         * defs.h (internal_warning, internal_vwarning): Declare.
4455         * utils.c (struct internal_problem): Define.
4456         (internal_vproblem): New function.
4457         (internal_warning): New function.
4458         (internal_vwarning): New function.
4459         (internal_warning_problem, internal_error_problem): New variables.
4460         (internal_verror): Just call internal_vproblem.
4461
4462 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4463
4464         * objc-lang.c: New file, support for Objective-C.
4465         Preliminary check-in, not yet integrated into gdb.
4466         * objc-lang.h: New file.
4467         * objc-exp.y:  New file.
4468
4469 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4470
4471         * infrun.c (signal_stop_update): Convert definition to ISO C.
4472         (signal_print_update): Ditto.
4473         (signal_pass_update): Ditto.
4474         * inflow.c (terminal_save_ours): Ditto.
4475
4476         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4477         comments.
4478         
4479         * config/djgpp/fnchange.lst: Handle name clashes between
4480         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4481         bfd/coff-tic80.c.
4482
4483         * i386-linux-tdep.h: Fix tipo.
4484
4485 2002-09-18  Adam Fedor  <fedor@gnu.org>
4486
4487         * MAINTAINERS: Add myself to the Write After Approval list.
4488
4489 2002-09-18  Jim Blandy  <jimb@redhat.com>
4490
4491         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4492         texthigh and textlow to reader-specific structs caused
4493         objfile_relocate to miss them.  This is fixable, but the work that
4494         the change was supposed to prepare GDB for never got done anyway.
4495
4496 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4497
4498         * MAINTAINERS: Alphabetize Write After Approval list.
4499
4500 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4501
4502         Fix PR gdb/709
4503         * values.c (value_static_field): Call read_var_value.
4504
4505 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4506
4507         * valops.c (hand_function_call): Align the initial stack pointer
4508         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4509         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4510         return value.
4511         * mips-tdep.c (mips_frame_align): New function.
4512         (mips_gdbarch_init): Set frame_align.
4513         * gdbarch.sh (FRAME_ALIGN): New method.
4514         * gdbarch.h, gdbarch.c: Re-generate.
4515
4516 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4517
4518         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4519         registers.
4520
4521 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4522
4523         * NEWS: Mention that MIPS $fp behavior changed.
4524         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4525         reference to FP_REGNUM.
4526         (mipsnbsd_cannot_store_register): Ditto.
4527         * mips-linux-nat.c: Update copyright.
4528         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4529         (mips_linux_cannot_store_register): Ditto.
4530         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4531         * config/mips/tm-mips.h: Update copyright.
4532         (FP_REGNUM): Delete macro.
4533         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4534         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4535         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4536         (mips_r3041_reg_names, mips_r3051_reg_names)
4537         (mips_r3081_reg_names): Replace "fp" with "".
4538         Fix PR gdb/480.
4539
4540 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4541
4542         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4543         generic_read_register_dummy() (PR gdb/703).
4544         (avr_push_return_address): #if 0 out unused vars.
4545         (avr_gdbarch_init): Enable use of avr_push_return_address().
4546
4547 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4548
4549         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4550         RTE will take care of it.
4551
4552 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4553
4554         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4555         invalid, return SP_REGNUM.
4556
4557 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4558
4559         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4560         point registers without sign extension.
4561
4562 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4563
4564         * blockframe.c (deprecated_read_register_dummy): Rename
4565         generic_read_register_dummy.
4566         * frame.c (frame_unwind_signed_register): New function.
4567         (frame_unwind_unsigned_register): New function.
4568         * frame.h (frame_unwind_signed_register): Declare.
4569         (frame_unwind_unsigned_register): Declare.
4570         (deprecated_read_register_dummy): Rename
4571         generic_read_register_dummy.
4572
4573         * h8300-tdep.c (h8300_frame_chain): Update.
4574         (h8300_frame_saved_pc): Update.
4575         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4576         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4577         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4578         (s390_frame_chain): Update.
4579         * v850-tdep.c (v850_find_callers_reg): Update.
4580         (v850_frame_saved_pc): Update.
4581         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4582         (m32r_find_callers_reg): Update.
4583         (m32r_frame_saved_pc): Update.
4584         * sh-tdep.c (sh_find_callers_reg): Update.
4585         (sh64_get_saved_pr): Update.
4586         (sh_init_extra_frame_info): Update.
4587         (sh_init_extra_frame_info): Update.
4588         (sh64_init_extra_frame_info): Update.
4589         (sh64_init_extra_frame_info): Update.
4590         * mcore-tdep.c (mcore_find_callers_reg): Update.
4591         (mcore_frame_saved_pc): Update.
4592         (mcore_init_extra_frame_info): Update.
4593         * i386-tdep.c (i386_frame_saved_pc): Update.
4594         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4595         (ia64_init_extra_frame_info): Update.
4596         (ia64_init_extra_frame_info): Update.
4597         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4598         * cris-tdep.c (cris_init_extra_frame_info): Update.
4599         * avr-tdep.c (avr_frame_chain): Update.
4600         (avr_init_extra_frame_info): Update.
4601         (avr_frame_saved_pc): Update.
4602         * arm-tdep.c (arm_find_callers_reg): Update.
4603         (arm_init_extra_frame_info): Update.
4604         (arm_frame_saved_pc): Update.
4605
4606 2002-09-17  Tom Tromey  <tromey@redhat.com>
4607
4608         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4609         is "'".
4610
4611 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4612
4613         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4614         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4615         NEXT_PROLOGUE_INSN.
4616         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4617         NEXT_PROLOGUE_INSN.
4618
4619 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4620
4621         * osfsolib.c: Remove file, replaced by solib-osf.c.
4622         * Makefile.in: Remove compilation rules for osfsolib.c.
4623
4624 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4625
4626         * cp-valprint.c (cp_print_class_method): Correct args to
4627         check_stub_method_group.
4628
4629 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4630
4631         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4632         `set architecture'.  Unify naming convention of functions.
4633         (h8300_skip_prologue): Improve prologue analysis.
4634         (h8300_push_arguments): Rewritten to more closely match GCC's
4635         bizarre argument-passing behavior, along with the comment describing
4636         said behavior.
4637         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4638         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4639         sim, remote-e7000.c, remote-hms.c and remote.c
4640
4641 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4642
4643         * i386-tdep.c (gdb_print_insn_i386): Removed.
4644         (i386_print_insn): New function.
4645         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4646         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4647         tm_print_insn_info.
4648
4649 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4650
4651         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4652         zero.
4653
4654 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4655
4656         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4657         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4658         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4659
4660 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4661
4662         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4663
4664 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4665
4666         * gdbtypes.c (check_stub_method): Make static.
4667         (check_stub_method_group): New function.
4668         * gdbtypes.h: Update prototypes.
4669         * cp-support.c: New file.
4670         * cp-support.h: New file.
4671
4672         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4673         (update_method_name_from_physname): New function.
4674         (read_member_functions): Correct method names for operators
4675         and v3 constructors/destructors.  Separate v2 constructors and
4676         destructors.
4677         * Makefile.in (stabsread.o): Update dependencies.
4678         (SFILES): Add cp-support.c.
4679         (COMMON_OBS): Add cp-support.o.
4680         (cp_support_h, cp-support.o): Add.
4681
4682         * cp-valprint.c (cp_print_class_method): Call
4683         check_stub_method_group instead of check_stub_method.  Remove
4684         extraneous QUITs.
4685         * p-valprint.c (pascal_object_print_class_method): Likewise.
4686         * valops.c (search_struct_method): Likewise.
4687         (find_method_list, value_struct_elt_for_reference): Likewise.
4688
4689 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4690
4691         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4692         * gdbarch.h, gdbarch.c: Regenerate.
4693
4694 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4695
4696         * frame.c (find_saved_register): Delete function.
4697         * frame.h (find_saved_register): Delete declaration.
4698         Fix PR gdb/631.
4699
4700 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4701
4702         * mips-tdep.c (read_next_frame_reg): Re-hack using
4703         frame_register_unwind.
4704
4705 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4706
4707         * mips-tdep.c (mips_get_saved_register): Re-hack using
4708         frame_register_unwind.
4709
4710 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4711
4712         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4713         vector. Will be useful for Interix.  
4714         * gdbarch.h, gdbarch.c: Regenerate.
4715
4716         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4717         name of the malloc function by NAME_OF_MALLOC.
4718
4719 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4720
4721         * value.h (find_function_in_inferior): Add const keyword to
4722         one of the parameters. Allows us to invoke this function with
4723         a const char *.
4724         * valops.c (find_function_in_inferior): Likewise.
4725
4726 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4727
4728         * exec.c (xfer_memory): Fix compilation warning with old versions
4729         of GCC.
4730         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4731
4732 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4733
4734         * symtab.h: Run through gdb_indent.h.
4735         Add 2002 to Copyright year list.
4736
4737 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4738
4739         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4740         mach constants.
4741         * MAINTAINERS: Add myself to write after approval list.
4742
4743 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4744
4745         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4746
4747 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4748
4749         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4750         Interix.
4751
4752 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4753
4754         * procfs.c (do_detach): Clear current signal, not just fault.
4755         Corrects problem with breakpoint trap signal leaking to detached
4756         process on Tru64.
4757
4758 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4759
4760         * buildsym.c (finish_block): Protect against null pointer.
4761
4762 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4763
4764         * infcmd.c (default_print_registers_info): Send all output to
4765         ``file'' instead of ``gdb_stdout''.
4766
4767 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4768
4769         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4770         LONGEST, and use signed register read (addresses are sign-
4771         extended for mips).
4772
4773 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4774
4775         * event-loop.c (gdb_do_one_event): Make public.
4776         * event-loop.h (gdb_do_one_event): Declare.
4777
4778 2002-09-10  Jeff Law  <law@redhat.com>
4779
4780         * infttrace.c (child_resume): Simplify and rework to avoid
4781         TT_PROC_CONTINUE.
4782
4783 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4784
4785         * printcmd.c (print_scalar_formatted): "len" is the number of
4786         target bytes, NOT the number of target bits.
4787
4788 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4789
4790         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4791         * top.c (init_main): Set rl_terminal_name.
4792
4793 2002-09-08  Aidan Skinner <aidan@velvet.net>
4794
4795         * ada-lang.c (ada_array_bound, ada_type_match,
4796         _initialize_ada_language): Fix K&R definitions.
4797         * ada-tasks.c (get_current_task): Fix K&R definitions.
4798         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4799                         
4800 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4801
4802         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4803         Add XP.
4804
4805 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4806
4807         * i386-tdep.c (i386_register_virtual_type,
4808         i386_register_convertible, i386_register_convert_to_virtual,
4809         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4810         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4811         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4812         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4813         Don't set push_arguments twice.
4814
4815         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4816         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4817         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4818         sigtramp_end to NULL.
4819         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4820         defines.
4821         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4822
4823         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4824         whitespace.
4825
4826         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4827         * gdbarch.h, gdbarch.c: Re-generate.
4828         * blockframe.c (find_pc_sect_partial_function): Convert to use
4829         SIGTRAMP_START_P predicate.
4830
4831 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4832
4833         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4834         generic_dummy_frame method and old method.  Also distinguish
4835         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4836         (arm_extract_return_value): Use new regcache method.
4837
4838         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4839         adjustment that doesn't conform to the ABI.
4840         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4841         saved regcache, not from current regcache.
4842
4843 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4844
4845         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4846         * README: Update.
4847
4848 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4849
4850         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4851         if arm_apcs_32 is false.
4852
4853 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4854
4855         GDB 5.3 branch created.
4856
4857 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4858
4859         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4860         generic_unwind_get_saved_register.
4861
4862 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4863
4864         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4865         argument (PR gdb/653).  Update call to smash_to_method_type.
4866         (read_structure_scope): Update call to dwarf2_add_member_fn.
4867
4868 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4869
4870         * x86-64-linux-tdep.c: Include gdb_string.h
4871         * x86-64-linux-nat.c: Ditto.
4872
4873 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4874
4875         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4876         when YYDEBUG is set to 1.  
4877         * c-exp.y: Likewise.
4878         * f-exp.y: Likewise.
4879         * jv-exp.y: Likewise.
4880         * m2-exp.y: Likewise.
4881         * p-exp.y: Likewise.
4882
4883 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4884
4885         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4886         dependency list.
4887         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4888         solib_svr4_fetch_link_map_offsets to
4889         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4890         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4891         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4892         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4893         solib-svr4.o, and solib-legacy.o.
4894         * config/i386/tm-nbsd.h: Include solib.h.
4895
4896 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4897
4898         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4899         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4900         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4901         comment noting that this needs its own target configuration.
4902         * config/i386/nbsd.mt: New file.
4903         * config/i386/nbsdaout.mt: Remove.
4904         * config/i386/nbsdelf.mt: Ditto.
4905         * config/i386/tm-nbsdaout.h: Ditto. 
4906
4907 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4908
4909         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4910         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4911         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4912         tdep->sigtramp_end.
4913         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4914         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4915         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4916
4917 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4918
4919         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4920         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4921         * i386-tdep.h (i386bsd_init_abi): New prototype.
4922         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4923         function declaration.
4924         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4925         for NetBSD-a.out or NetBSD-ELF.
4926         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4927         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4928         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4929         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4930         and nbsd-tdep.h.
4931         (i386nbsd_pc_in_sigtramp): New function.
4932         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4933         i386nbsd_pc_in_sigtramp.
4934         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4935         and i386nbsdelf_init_abi OS ABI handlers.
4936         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4937         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4938
4939 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4940
4941         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4942         registers if the target really has them.
4943
4944 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4945
4946         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4947         than nbsd-tdep.h.
4948
4949 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4950
4951         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4952         list.
4953         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4954         (alphanbsd_skip_sigtramp_frame): New functions. 
4955         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4956         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4957         to alphanbsd_sigcontext_addr. 
4958
4959 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4960
4961         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4962         list.
4963         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4964         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4965         nbsd_pc_in_sigtramp. 
4966         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4967         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4968         * nbsd-tdep.c: Include gdb_string.h.
4969         (nbsd_pc_in_sigtramp): New function. 
4970         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4971         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4972         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4973         ppcnbsd_pc_in_sigtramp. 
4974         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4975         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4976         shnbsd_pc_in_sigtramp. 
4977         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4978         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4979         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4980
4981 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4982
4983         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4984         watchpoints to NULL.
4985         (insert_breakpoints): set val field of watchpoints if NULL.
4986
4987
4988 2002-08-29  Jim Blandy  <jimb@redhat.com>
4989
4990         * symtab.c (lookup_symbol_aux): In the cases where we find a
4991         minimal symbol of an appropriate name and use its address to
4992         select a symtab to read and search, use `name' (as passed to us)
4993         as the demangled name when searching the symtab's global and
4994         static blocks, not the minsym's name.
4995
4996 2002-08-29  Keith Seitz  <keiths@redhat.com>
4997
4998         * stack.c (print_frame_info_base): Always set current_source_symtab
4999         and current_source_line.
5000
5001 2002-08-29  Donn Terry  <donnte@microsoft.com>
5002
5003         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5004
5005 2002-08-28  Keith Seitz  <keiths@redhat.com>
5006
5007         * stack.c (select_frame): Add FIXME concerning selected-frame
5008         events.
5009         (select_frame_command): Send selected-frame-level-changed
5010         event notification, but only if the level actually changed.
5011         (up_silently_base): Add selected-frame-level-changed event
5012         notification.
5013         (down_silently_base): Likewise.
5014
5015 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5016
5017         * Makefile.in: Update dependencies for all gdb/*.c files.
5018
5019 2002-08-27  Tom Tromey  <tromey@redhat.com>
5020
5021         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5022         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5023         Update dependencies.
5024         * i387-tdep.c: Include gdb_string.h.
5025         * osabi.c: Likewise.
5026         * i386-linux-nat.c: Likewise.
5027         * lin-lwp.c: Likewise.
5028         * ax-gdb.c: Likewise.
5029         * signals/signals.c: Likewise.
5030         * jv-valprint.c: Likewise.
5031         * p-lang.c: Likewise.
5032         * c-valprint.c: Likewise.
5033         * cp-abi.c: Likewise.
5034
5035 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5036
5037         * cli/cli-script.h (copy_command_lines): Export.
5038         * breakpoint.c: Include cli/cli-script.h.
5039         * Makefile.in (breakpoint.o): Update dependencies.
5040
5041 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5042
5043         * breakpoint.c (insert_breakpoints): Protect all references
5044         to 'process_warning'.  Shorten long lines.
5045
5046 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5047
5048         * cli/cli-script.c (copy_command_lines): New function.
5049         * defs.h (copy_command_lines): Export.
5050         * testsuite/gdb.base/commands.exp: New tests for commands
5051         attached to a temporary breakpoint, and for commands that
5052         delete the breakpoint they are attached to.
5053         
5054 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5055
5056         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5057         pointer to the breakpoint commands struct, make a new copy
5058         of the struct and point to that.
5059         (bpstat_clear): Free the commands struct.
5060         (bpstat_clear_actions): Free the commands struct.
5061         (bpstat_do_actions): Free the command actions.  Also execute
5062         the local cleanups, instead of deleting them.
5063         (delete_breakpoint): Leave the commands field of the bpstat
5064         chain alone -- it will be freed later.
5065
5066 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5067
5068         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5069         deleted in 2002-08-20 commit.  This function is still used by
5070         ppc-linux-nat.c.
5071
5072 2002-08-26  Keith Seitz  <keiths@redhat.com>
5073
5074         * gdb-events.sh: Add selected-frame-level-changed event.
5075         * gdb-events.c: Regenerated.
5076         * gdb-events.h: Regenerated.
5077         
5078 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5079
5080         Fix PR gdb/393:
5081         * inflow.c (terminal_save_ours): New function to save terminal
5082         settings.
5083         * inferior.h (terminal_save_ours): Declare.
5084         * target.c (debug_to_terminal_save_ours): New function.
5085         (cleanup_target): Defaults to_terminal_save_ours.
5086         (update_current_target): Inherit to_terminal_save_ours.
5087         (setup_target_debug): Set to_terminal_save_ours.
5088         * target.h (target_terminal_save_ours): New to save terminal settings.
5089         (target_ops): New member to_terminal_save_ours.
5090         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5091         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5092         * inftarg.c (init_child_ops): Likewise.
5093         * m3-nat.c (init_m3_ops): Likewise.
5094         * procfs.c (init_procfs_ops): Likewise.
5095         * wince.c (init_child_ops): Likewise.
5096         * win32-nat.c (init_child_ops): Likewise.
5097         * sol-thread.c (init_sol_thread_ops): Likewise.
5098
5099 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5100
5101         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5102         use regcache_* functions.
5103         (i386_gdbarch_init): Set store_return_value instead of
5104         deprecated_store_return_value.
5105
5106         * regcache.c (regcache_raw_write_signed,
5107         regcache_raw_write_unsigned): New functions.
5108         * regcache.h (regcache_raw_write_signed,
5109         regcache_raw_write_unsigned): New prototypes.
5110
5111 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5112
5113         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5114         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5115         source file dependencies.  Cleanup corresponding generator rules.
5116
5117 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5118
5119         * regcache.h (register_offset_hack): Declare.
5120         (regcache_cooked_read_using_offset_hack): Declare.
5121         (regcache_cooked_write_using_offset_hack): Declare.
5122
5123         * regcache.c (register_offset_hack): New function.
5124         (regcache_cooked_read_using_offset_hack): New function.
5125         (regcache_cooked_write_using_offset_hack): New function.
5126         (regcache_dump): Check that the registers, according to their
5127         offset, are packed hard against each other.
5128         (cooked_xfer_using_offset_hack): New function.
5129
5130 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5131
5132         * regcache.c (struct regcache_descr): Add field register_type.
5133         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5134         in as a parameter
5135         (init_regcache_descr): Initialize register_type.  Pass the descr
5136         to init_legacy_regcache_descr.  Use register_type instead of
5137         REGISTER_VIRTUAL_TYPE.
5138         (register_type): New function.
5139         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5140         * regcache.h (register_type): Declare.
5141
5142 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5143
5144         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5145         instead of deprecated_store_return_value.  Fix fallout from
5146         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5147
5148 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5149
5150         * regcache.c (max_register_size): New function.
5151         (init_legacy_regcache_descr): Ensure that max_register_size is
5152         large enough for REGISTER_VIRTUAL_SIZE.
5153         * regcache.h (max_register_size): Declare.
5154
5155 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5156
5157         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5158         store_return_value.
5159         (e500_extract_return_value): Change type of valbuf pointer to
5160         void.
5161
5162 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5163
5164         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5165         workaround.
5166
5167         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5168         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5169         long long) to prevent compiler warning on 64-bit systems.
5170
5171 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5172
5173         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5174         (DEPRECATED_STORE_RETURN_VALUE): New method.
5175         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5176         * gdbarch.h, gdbarch.c: Re-generate.
5177
5178         * values.c (set_return_value): Pass current_regcache to
5179         STORE_RETURN_VALUE.
5180         * arch-utils.h (legacy_store_return_value): Declare.
5181         * arch-utils.c (legacy_store_return_value): New function.
5182         (legacy_extract_return_value): Update parameters.
5183
5184         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5185         STORE_RETURN_VALUE.
5186         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5187         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5188         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5189         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5190         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5191         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5192         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5193         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5194         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5195         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5196
5197         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5198         * i386-tdep.c (i386_extract_return_value): Update.
5199         * arch-utils.c (legacy_extract_return_value): Update.
5200         * frv-tdep.c (frv_gdbarch_init): Update.
5201         * cris-tdep.c (cris_gdbarch_init): Update.
5202         * d10v-tdep.c (d10v_gdbarch_init): Update.
5203         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5204         * m68k-tdep.c (m68k_gdbarch_init): Update.
5205         * mcore-tdep.c (mcore_gdbarch_init): Update.
5206         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5207         * s390-tdep.c (s390_gdbarch_init): Update.
5208         * sparc-tdep.c (sparc_gdbarch_init): Update.
5209         * sh-tdep.c (sh_gdbarch_init): Update.
5210         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5211         * v850-tdep.c (v850_gdbarch_init): Update.
5212         * avr-tdep.c (avr_gdbarch_init): Update.
5213         * ia64-tdep.c (ia64_gdbarch_init): Update.
5214         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5215         * vax-tdep.c (vax_gdbarch_init): Update.
5216         * alpha-tdep.c (alpha_gdbarch_init): Update.
5217         * arm-tdep.c (arm_gdbarch_init): Update.
5218         * mips-tdep.c (mips_gdbarch_init): Update.
5219         * i386-tdep.c (i386_gdbarch_init): Update.
5220
5221 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5222
5223         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5224         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5225
5226 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5227
5228         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5229         problems.
5230
5231 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5232
5233         * infrun.c (handle_inferior_event): Move a comment outside of a
5234         function call, in order to avoid indent reformatting this part
5235         of the code in an unreadable way.
5236
5237 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5238
5239         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5240         when breakpoints fail. Move general breakpoint error messages to
5241         insert_breakpoints.  
5242         * breakpoint.c (insert_breakpoints): Change warnings when
5243         breakpoints are nto inserted to specify the type. Remove call to
5244         memory_error when hardware breakpoints can't be inserted. Remove
5245         multiple calls to warning so all messages are sent to the user at
5246         once.
5247         (delete_breakpoints): Make insert error messsages more explicit.
5248
5249 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5250
5251         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5252         gdbserver/ChangeLog.
5253
5254 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5255
5256         * i386-tdep.c: Include "objfiles.h".
5257         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5258         skip_trampoline_code.
5259         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5260         (CPLUS_MARKER): Define to '.'.
5261
5262         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5263         member.
5264         (linux_corefile_thread_callback): Increase args->num_notes.
5265         (linux_make_note_section): Initialize thread_args.num_notes, and
5266         use it to determine whether notes for any threads were created.
5267
5268 2002-08-23  Donn Terry  <donnte@microsoft.com>
5269
5270         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5271         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5272         and PCUNKILL.
5273         (write_with_trace): Conditionalize out the switch branch handling
5274         PCSHOLD if the corresponding macro is not defined. Likewise for
5275         PRSABORT and PRSTOP.
5276         This change will be needed by the Interix port.
5277
5278 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5279
5280         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5281         write_register wherever possible instead of manipulating the
5282         register bytes directly.
5283         Assign VALUE_CONTENTS to a variable and use that.
5284         The GPR numbers are now dependent on the architecture.
5285         
5286 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5287
5288         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5289         ev_offset fields.
5290         (skip_prologue): Add support for BookE/e500 instructions.
5291         (e500_extract_return_value): New function.
5292         (frame_get_saved_regs): Add support for saving ev registers and
5293         pseudo gpr's.
5294         (e500_store_return_value): New function.
5295         (rs6000_gdbarch_init): Move up default intializations of
5296         deprecated_extract_return_value and store_return_value.  Overwrite
5297         init of store_return_value with e500 specific version.
5298         Set extract_return_value for e500.
5299         
5300 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5301
5302         * blockframe.c (generic_call_dummy_register_unwind): Use
5303         regcache_cooked_read to catch cases in which the variable is
5304         stored in a pseudo register.
5305
5306 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5307
5308         * NEWS: Mention that the i960 has been made obsolete.
5309         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5310         i960-tdep.c
5311         (remote-nrom.o): Obsolete target.
5312         (remote-nindy.o, i960-tdep.o): Ditto.
5313         * remote-nrom.c: Make file obsolete.
5314         * remote-nindy.c, remote-vx960.c: Ditto.
5315         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5316         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5317         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5318         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5319         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5320         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5321         i960-*-vxworks* obsolete.
5322         * MAINTAINERS: Note that the i960 is obsolete.
5323
5324 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5325
5326         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5327         detach to allow reinitialization.
5328
5329 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5330
5331         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5332         attempt).
5333
5334 2002-08-22  Jim Blandy  <jimb@redhat.com>
5335
5336         * coffread.c (coff_symfile_read): Don't try to read the line
5337         number table from disk if the image file doesn't have a symbol
5338         table; we'll never actually look at the info anyway, and Windows
5339         ships DLL's with bogus file offsets for the line number data.
5340
5341 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5342
5343         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5344         an e500 executable.
5345
5346 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5347
5348         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5349         (MSYMBOL_SIZE): Replace macro with function.
5350         (DEFAULT_MIPS_TYPE): Delete unused macro.
5351         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5352         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5353
5354 2002-08-21  Jim Blandy  <jimb@redhat.com>
5355
5356         * valops.c (value_cast): Simplify and correct logic for doing a
5357         static cast from a pointer to a base class to a pointer to a
5358         derived class.
5359
5360 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5361
5362         * infcmd.c (default_print_registers_info): Replace
5363         do_registers_info.
5364         (registers_info): Use gdbarch_print_registers_info instead of
5365         DO_REGISTERS_INFO.
5366         * inferior.h (default_print_registers_info): Replace
5367         do_registers_info.
5368         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5369         (DO_REGISTERS_INFO): Change to a predicate function.
5370         * gdbarch.h, gdbarch.c: Regenerate.
5371         
5372 2002-08-21  Keith Seitz  <keiths@redhat.com>
5373
5374         * gdb-events.sh: Add target-changed event.
5375         * gdb-events.c: Regenerated.
5376         * gdb-events.c: Regenerated.
5377         * valops.c (value_assign): Add target-changed event notification
5378         to inlval_register, lval_memory, and lval_reg_frame_relative.
5379
5380 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5381
5382         * NEWS: Add an entry regarding the improvement of the next/step
5383         operation on Alpha Tru64 multi-processor machines.
5384
5385 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5386
5387         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5388         directores.
5389         * Makefile.in: Update all _h macro definitions.
5390         * Makefile.in (install-gdbtk): Move to install section.
5391         (rdi-share/libangsd.a): Move to end of file.
5392
5393 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5394
5395         * frame.c (frame_register_unwind): When a register, set addrp to
5396         the register's byte.
5397
5398 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5399
5400         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5401         used locally, so move them from the target machine header to here.
5402         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5403         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5404         Make static.
5405         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5406
5407 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5408
5409         * NEWS: Mention that the Apollo line was made obsolete.
5410         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5411         m68*-hp-hpux* obsolete.
5412         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5413         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5414         * buildsym.c (make_blockvector): Make static.
5415         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5416         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5417         (ALLDEPFILES): Remove dstread.c.
5418         (dstread.o): Obsolete make rule.
5419         * dstread.c: Makefile obsolete.
5420         * dst.h: Ditto.
5421         * config/m68k/hp300hpux.mt: Ditto.
5422         * config/m68k/hp300hpux.mh: Ditto.
5423         * config/m68k/hp300bsd.mt: Ditto.
5424         * config/m68k/hp300bsd.mh: Ditto.
5425         * config/m68k/apollo68b.mt: Ditto.
5426         * config/m68k/apollo68v.mh: Ditto.
5427         * config/m68k/apollo68b.mh: Ditto.
5428
5429 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5430
5431         * mips-tdep.c (mips_in_return_stub): Make static.
5432         (mips_gdbarch_init): Set in_solib_return_trampoline.
5433         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5434
5435 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5436
5437         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5438         * gdbarch.c, gdbarch.h: Regenerate.
5439         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5440         Add.
5441         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5442
5443 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5444
5445         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5446         (mips_gdbarch_init): Set skip_trampoline_code, 
5447         in_solib_call_trampoline.
5448         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5449         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5450
5451 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5452
5453         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5454
5455         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5456         vector type for ev registers.
5457         (e500_pseudo_register_read): New function.
5458         (e500_pseudo_register_write): New function.
5459         (e500_dwarf2_reg_to_regnum): New function.
5460         (PPC_UISA_NOFP_SPRS): New macro.
5461         (PPC_EV_REGS): New macro.
5462         (PPC_GPRS_PSEUDO_REGS): New macro.
5463         (registers_e500): New register set for e500.
5464         (variants): Add e500 variant.
5465         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5466         before setting architectural dependent variations.  Initialize ev
5467         registers numbers.  Add case for e500 architecture.  Set the
5468         number of pseudo registers.
5469
5470 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5471
5472         * rs6000-tdep.c: Clean up comments.
5473
5474 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5475
5476         * h8300-tdep.c: Re-indent file.
5477
5478 2002-08-20  Jim Blandy  <jimb@redhat.com>
5479
5480         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5481         default for this.
5482
5483 2002-08-20  Keith Seitz  <keiths@redhat.com>
5484
5485         * breakpoints.c (watch_command_1): Use internal breakpoint
5486         when setting a watchpoint_scope breakpoint.
5487
5488 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5489
5490         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5491         (build_builtin_type_vec64i): Ditto.
5492         (build_builtin_type_vec128): Ditto.
5493         (build_builtin_type_vec128i): Ditto.
5494
5495 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5496
5497         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5498         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5499         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5500         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5501         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5502         CALL_DUMMY_ADDRESS): Delete.
5503         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5504         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5505         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5506         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5507         push_return_address.
5508         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5509         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5510         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5511         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5512         mips_n32n64_push_arguments, mips_push_return_address,
5513         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5514         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5515
5516 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5517
5518         * mips-tdep.c (mips_frame_num_args): New function.
5519         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5520         frame_saved_pc, frame_args_address, frame_locals_address, 
5521         frame_num_args, and frame_args_skip.
5522         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5523         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5524         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5525         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5526
5527 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5528
5529         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5530         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5531         * mips-tdep.c (mips_store_struct_return): New function.
5532         (mips_extract_struct_value_address): New function.
5533         (mips_gdbarch_init): Set store_struct_return and
5534         extract_struct_value_address.
5535
5536 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5537
5538         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5539         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5540         (read_file_scope): Check that line_header is nonzero before
5541         decoding macro information.
5542
5543 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5544
5545         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5546         flag the general-purpose registers as floating-point on targets
5547         that don't support the floating-point registers.
5548
5549 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5550
5551         * rs6000-tdep.c (altivec_register_p): Delete.
5552         (rs6000_do_altivec_registers): Delete.
5553         (rs6000_altivec_registers_info): Delete.
5554         (rs6000_do_registers_info): Delete.
5555         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5556         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5557
5558 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5559
5560         * infcmd.c (do_registers_info): Print vector registers in hex
5561         format only.
5562         (print_vector_info): Check that printing registers
5563         makes sense.
5564         (print_float_info): Ditto.
5565
5566 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5567
5568         * mips-tdep.c (mips_gdbarch_init): Update.
5569         (mips_o32_extract_return_value): Rewrite.
5570         (mips_o32_store_return_value): Rewrite.
5571         (mips_o32_xfer_return_value): New function.
5572         (mips_xfer_register): Tweak debug print message.  Allow for
5573         buf_offset when dumping the value transfered.
5574
5575 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5576
5577         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5578         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5579         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5580         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5581         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5582
5583 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5584
5585         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5586
5587 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5588
5589         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5590         register.
5591         (P): New macro to define a register as a pseudo register.
5592         (R, R4, R8, R16, FR32, R64, R0): Updated.
5593         (struct variant): Add new fields for number of pseudo registers
5594         and number of total registers.
5595         (tot_num_registers): New macro replacing....
5596         (num_registers): ...deleted macro.
5597         (num_registers): New function.
5598         (num_pseudo_registers): New function.
5599         (variants): Update all variants to intialize new fields correctly.
5600         Postpone initialization of number of pseudo regs and real regs.
5601         (init_variants): New function.
5602         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5603         registers offsets.
5604
5605 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5606
5607         * valops.c (search_struct_field): Change error message to treat
5608         return value of 0 from value_static_field as meaning that field is
5609         optimized out.
5610         (value_struct_elt_for_reference): Ditto.
5611         * values.c (value_static_field): Treat an unresolved location the
5612         same as a nonexistent symbol.  Fix PR gdb/635.
5613         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5614         enclosed.  Fix PR gdb/574.
5615         * MAINTAINERS: Add self to Write After Approval list.
5616
5617 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5618
5619         * mips-tdep.c (mips_xfer_register): New function.
5620         (mips_n32n64_extract_return_value): Rewrite.
5621         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5622         instead of deprecated_extract_return_value.
5623
5624 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5625
5626         * rs6000-tdep.c (TDEP): Delete macro.
5627         (branch_dest): Replace use of TDEP macro with its body.
5628         (rs6000_pop_frame): Ditto.
5629         (rs6000_push_arguments): Ditto.
5630         (rs6000_skip_trampoline_code): Ditto.
5631         (rs6000_frame_saved_pc): Ditto.
5632         (rs6000_frame_chain): Ditto.
5633         (rs6000_register_name): Ditto.
5634         (rs6000_register_byte): Ditto.
5635         (rs6000_register_raw_size): Ditto.
5636         (rs6000_register_virtual_type): Ditto.
5637         (rs6000_register_convertible): Ditto.
5638         (rs6000_convert_from_func_ptr_addr): Ditto.
5639
5640 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5641
5642         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5643         conditionally.
5644         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5645         MIPS_LINUX_JB_ELEMENT_SIZE.
5646         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5647         for MAX_REGISTER_RAW_SIZE arrays.
5648         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5649         MIPS_LINUX_JB_ELEMENT_SIZE.
5650
5651 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5652
5653         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5654
5655 2002-08-19  Aidan Skinner <aidan@velvet.net>
5656
5657         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5658         ada-valprint.c ada-tasks.c.
5659         (YYFILES): Add ada-exp.y.
5660         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5661         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5662         (ada-exp.tab.o): New target.
5663                 
5664 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5665
5666         * regcache.c (regcache_xfer_part): New function.
5667         (regcache_raw_read_part): New function.
5668         (regcache_raw_write_part): New function.
5669         (regcache_cooked_read_part): New function.
5670         (regcache_cooked_write_part): New function.
5671         * regcache.h (regcache_raw_read_part): Declare.
5672         (regcache_raw_write_part): Declare.
5673         (regcache_cooked_read_part): Declare.
5674         (regcache_cooked_write_part): Declare.
5675
5676 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5677
5678         * remote.c (remote_open_1): Add async_p.
5679         (remote_async_open_1): Delete.
5680         (open_remote_target): Delete.
5681         (remote_open, extended_remote_open): Update calls to remote_open_1.
5682         (remote_async_open, extended_remote_async_open): Call
5683         remote_open_1 instead of remote_async_open_1.
5684
5685 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5686
5687         * blockframe.c: Fix a few coding standard violations.
5688
5689 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5690
5691         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5692         here from ...
5693         * config/i386/tm-i386sco5.h: ... here.  File removed.
5694         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5695
5696         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5697         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5698         (TM_FILE): Set to tm-i386.h.
5699         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5700         * config/i386/tm-i386v.h: Remove file.
5701         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5702         instead of "i386/tm-i386v.h".
5703         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5704         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5705         "i386/tm-i386v.h".
5706         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5707         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5708         "i386/tm-i386.h".
5709
5710 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5711
5712         * config/i386/nm-i386v.h: Add protection against
5713         multiple-inclusion.
5714         (i386_register_u_addr): Remove prototype.
5715         (register_u_addr): New prototype.
5716         (REGISTER_U_ADDR): Redefine accordingly.
5717         * i386v-nat.c: Improve several comments.
5718         (i386_register_u_addr): Change signature and rename to
5719         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5720         ubase variable.
5721
5722 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5723
5724         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5725         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5726         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5727         deprecated_extract_return_value.
5728         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5729         rename mips_o32o64_push_arguments.
5730         (mips_gdbarch_init): Update.
5731         (mips_extract_return_value): Delete.
5732         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5733         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5734         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5735         (mips_n32n64_extract_return_value): Clone
5736         mips_extract_return_value.
5737         (mips_store_return_value): Delete.
5738         (mips_o32_store_return_value): Clone mips_store_return_value.
5739         (mips_o64_store_return_value): Clone mips_store_return_value.
5740         (mips_eabi_store_return_value): Clone mips_store_return_value.
5741         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5742
5743 2002-08-18  Aidan Skinner <aidan@velvet.net>
5744
5745         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5746         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5747                 
5748 2002-08-18  Aidan Skinner <aidan@velvet.net>
5749
5750         * ada-lang.c: Run through gdb_indent.sh.
5751         * ada-lang.h: Run through gdb_indent.sh.
5752         * ada-tasks.c: Run through gdb_indent.sh.
5753         * ada-typeprint.c: Run through gdb_indent.sh.
5754         * ada-valprint.c: Run through gdb_indent.sh.
5755
5756 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5757
5758         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5759         ABI.
5760
5761 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5762
5763         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5764
5765         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5766         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5767
5768         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5769         write_register_gen instead of write_register_bytes.
5770
5771         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5772         i[3456]-*-osf1mk* configurations have been made obsolete.
5773         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5774         i[3456]86-*-osf1mk* hosts obsolete.
5775         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5776         targets obsolete.
5777         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5778         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5779         config/i386/i386m3.mt, config/i386/nm-m3.h,
5780         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5781         config/i386/i386mk.mh, config/i386/i386mk.mt,
5782         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5783         obsolete.
5784         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5785         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5786         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5787
5788 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5789
5790         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5791         (hppa_value_returned_from_stack): Declare.
5792         (hppa_extract_return_value): Declare.
5793         * config/pa/hppa.mt: New file.
5794         * configure.tgt: Recognize hppa*-*-*.
5795         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5796
5797 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5798
5799         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5800         comment.
5801
5802 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5803
5804         * top.c (gdb_rl_operate_and_get_next): Make sure
5805         operate-and-get-next functions correctly even when the history
5806         list is completely filled.
5807
5808 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5809
5810         * MAINTAINERS (Target Instruction Set Architectures): Rename
5811         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5812         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5813         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5814         already listed under Host/Native.
5815
5816         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5817         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5818         mips*-*-*.
5819
5820 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5821
5822         * config/ia64/ia64.mt: New file.
5823         * config/alpha/alpha.mt: New file.
5824         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5825         ia64-linux-gnu.  Mention that ia64-elf is broken.
5826         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5827
5828 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5829
5830         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5831         generic_func_frame_valid instead of func_frame_valid.
5832
5833 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5834
5835         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5836         procfs appears to be broken when debugging on multi-processor
5837         machines. So enable software single stepping in order to avoid
5838         using the procfs interface to do next/step operations, using
5839         internal breakpoints instead.
5840
5841         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5842         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5843         make this pc address equal to the value it would have if the
5844         system stepping capability was used. Also set a new flag used
5845         to ensure that we don't readjust the PC one more time later.
5846
5847         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5848         address by DECR_PC_AFTER_BREAK when software single step is
5849         in use for this architecture, as this has already been taken
5850         care of in handle_inferior_event().
5851
5852 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5853
5854         * infrun.c (handle_inferior_event): Minor reformatting, to make
5855         a rather long condition expression easier to read.
5856
5857 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5858
5859         * Makefile.in (gdbtk.o): Move to end of file.
5860         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5861         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5862         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5863         (gdbtk-wrapper.o, gdbres.o): Ditto.
5864
5865 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5866
5867         * Makefile.in (copying.o): Separate out compile rule.
5868         (hpux-thread.o, procfs.o, signals.o): Ditto.
5869         (v850ice.o, z8k-tdep.o): Ditto.
5870         (tui-file.o): Move to TUI section.
5871         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5872         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5873
5874 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5875
5876         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5877         skip_trampoline_code, for better namespace-proofing.   
5878
5879         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5880
5881 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5882
5883         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5884
5885 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5886
5887         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5888         signal, check whether we hit a breakpoint before checking for a
5889         single step breakpoint. Otherwise, GDB fails to notice that a
5890         breakpoint has been hit when stepping onto a breakpoint.
5891
5892 2002-08-16  Keith Seitz  <keiths@redhat.com>
5893
5894         * gdb-events.sh (clear_gdb_event_hooks): New function.
5895         * gdb-events.c: Regenerate.
5896         * gdb-events.h: Regenerate.
5897
5898 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5899
5900         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5901         not_a_sw_breakpoint.
5902         * breakpoint.h (bpstat_stop_status): Add parameter names.
5903
5904 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5905
5906         * remote.c (remote_insert_hw_breakpoint)
5907         (remote_remove_hw_breakpoint): Fix calculation of length field
5908         for Z-packet.
5909
5910 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5911
5912         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5913         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5914         (supply_fpregset): Ditto.
5915         
5916         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5917         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5918         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5919         (TARGET_READ_SP): Delete.
5920         (DO_REGISTERS_INFO): Delete.
5921         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5922         Delete.
5923         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5924         from macros to functions.
5925
5926         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5927         (mips_register_convertible, mips_register_convert_to_virtual,
5928         mips_register_convert_to_raw): Make static.
5929         (mips_read_sp): New function.
5930         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5931         (mips_do_registers_info): Make static.
5932         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5933         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5934         (mips_register_convert_from_type, mips_register_convert_to_type):
5935         New functions.
5936         (mips_gdbarch_init): Set up function_start_offset, 
5937         register_virtual_size, pc_in_sigtramp.
5938
5939 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5940
5941         * infcmd.c (vector_info): New function.
5942         (_initialize_infcmd): Add command "info vector".
5943         (print_vector_info): New function.
5944
5945         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5946         * gdbarch.h, gdbarch.c: Regenerate.
5947
5948 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5949
5950         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5951         ``print_all''.  Only print vector registers when ``print_all''.
5952
5953 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5954
5955         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5956         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5957
5958         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5959         Add `args' parameter.
5960         * gdbarch.h, gdbarch.c: Regenerate.
5961         
5962         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5963         
5964         * infcmd.c (float_info): Call print_float_info.
5965         (print_float_info): New function.  By default, print the
5966         floating-point registers.
5967
5968         * arch-utils.h (default_print_float_info): Delete declaration.
5969         * arch-utils.c (default_print_float_info): Delete function.
5970         
5971 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5972
5973         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5974         out define.
5975
5976         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5977         FRAME.
5978
5979         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5980         * configure.host: Make i[3456]86-*-aix host obsolete.
5981         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5982         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5983         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5984         config/i386/xm-i386aix.h: Make files obsolete.
5985         * i386aix-nat.c: Make file obsolete.
5986         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5987         (i386aix-nat.o): Make target obsolete.
5988
5989         * config/i386/nm-gnu.h: Removed.
5990         * config/i386/nm-i386gnu.h: New file.
5991         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5992         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5993         Moved here from ...
5994         * config/i386/tm-i386gnu.h: ... here.  Removed.
5995         * config/i386/xm-i386gnu.h: Removed.
5996         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5997         (NAT_FILE): Set to nm-i386gnu.h.
5998         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5999         * i386-tdep.c: New file.
6000         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6001         (i386gnu-tdep.o): Specify dependencies.
6002
6003 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
6004
6005         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6006         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6007         Adjust a few comments to reflect reality a bit closer.
6008         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6009         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6010         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6011         target_insert_watchpoint, target_remove_watchpoint):
6012         Move defines to ...
6013         * config/i386/nm-i386sco5.h: ... here.
6014         (kernel_u_size): Add prototype.  Improve a few comments and add
6015         protection against multiple inclusion.
6016         
6017         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6018         out define.
6019
6020         * uw-thread.c (SP_ARG0): Define if not already defined.
6021         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6022
6023         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6024
6025         * config/i386/tm-i386.h: Don't include "regcache.h".
6026
6027         * i387-tdep.h (i387_print_float_info): New prototype.
6028         * i387-tdep.c (print_i387_value, print_i387_ext,
6029         print_i387_status_word, print_i387_control_word): Add `struct
6030         ui_file *' argument and use it for output.
6031         (i387_print_float_info): Renamed from i387_float_info.  Add
6032         `struct gdbarch *' and `struct ui_file *' arguments and use the
6033         latter for output.
6034         * i386-tdep.c: Include "i387-tdep.h".
6035         (i386_gdbarch_init): Set print_float_info.
6036         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6037         (FLOAT_INFO): Remove define.
6038
6039 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6040
6041         * mips-tdep.c (mips_push_arguments): Rename to
6042         mips_eabi_push_arguments, and tune for EABI.
6043         (MIPS_REGS_HAVE_HOME_P): Delete.
6044         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6045         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6046         Delete references to mips_regs_have_home_p.
6047
6048 2002-08-14  Keith Seitz  <keiths@redhat.com>
6049
6050         * Makefile.in (install-gdbtk): Create insight plugin directory.
6051         Install plugins.tcl file.
6052
6053 2002-08-14  Keith Seitz  <keiths@redhat.com>
6054
6055         * configure.in: Move SUBDIRS to near top of the file so that
6056         --enable options may add things to it.
6057         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6058         * configure: Regenerate.
6059
6060 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6061
6062         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6063         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6064         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6065
6066 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6067
6068         * vax-tdep.c (vax_get_saved_register): Delete function.
6069         (vax_gdbarch_init): Update.
6070         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6071         (ns32k_gdbarch_init): Update.
6072         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6073         (alpha_gdbarch_init): Update.
6074
6075 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6076
6077         * regcache.c (init_regcache_descr): Overallocate the
6078         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6079         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6080         nr_raw_registers.
6081         (set_register_cached): Add range checking assertions.  Use
6082         current_regcache.
6083
6084 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6085
6086         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6087         numbers for MMX registers.
6088
6089 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6090
6091         * i386-tdep.c (i386_gdbarch_init): Use
6092         generic_unwind_get_saved_register.
6093
6094 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6095
6096         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6097         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6098         target vector.
6099         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6100         Delete.  Add comment regarding this now-deleted target method.
6101
6102 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6103
6104         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6105         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6106         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6107         real PC and the page number (if it's within the memory bank window).
6108         (m68hc11_pseudo_register_write): Likewise when saving.
6109         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6110         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6111         (m68hc11_register_raw_size): And use 32-bit for it.
6112         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6113         16K memory bank is used by the prog; also use the virtual pc.
6114
6115 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6116
6117         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6118         (m68hc11_gdbarch_init): Install it in gdbarch.
6119         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6120         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6121         (MSYMBOL_SIZE): New for documentation.
6122         (insn_return_kind): Enum to specify how a function returns.
6123         (frame_extra_info): Cleanup and record the return mode.
6124         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6125         register in address computation.
6126         (m68hc11_get_return_insn): New to obtain the return instruction used
6127         by the function.
6128         (m68hc11_frame_init_saved_regs): Take into account the return
6129         instruction used by the function for far and interrupt functions.
6130         (m68hc11_init_extra_frame_info): Take into account page register.
6131         (m68hc11_frame_args_address): Adjust according to the return mode.
6132         (show_regs): Print page register only when it's used.
6133
6134 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6135
6136         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6137         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6138         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6139         registers.
6140         (m68hc11_register_raw_size): Likewise.
6141
6142 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6143
6144         * i386-tdep.c (i386_register_name): Handle mmx registers.
6145         (mmx_regnum_p): New function.
6146         (i386_mmx_names): New array.
6147         (mmx_num_regs): New variable.
6148         (i386_pseudo_register_read): New function.
6149         (i386_pseudo_register_write): New function.
6150         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6151
6152         * regcache.c (regcache_raw_read_unsigned): New function.
6153         (regcache_raw_read_signed): New function.
6154         * regcache.h (regcache_raw_read_unsigned): Declare.
6155         (regcache_raw_read_signed): Declare.
6156
6157 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6158
6159         * regcache.c (regcache_raw_read_as_address): Delete function.
6160         (regcache_cooked_read_signed): New function.
6161         (regcache_cooked_read_unsigned): New function.
6162         * regcache.h (regcache_cooked_read_signed): Declare.
6163         (regcache_cooked_read_unsigned): Declare.
6164         (regcache_raw_read_as_address): Delete declaration.
6165
6166         * blockframe.c (generic_read_register_dummy): Use
6167         regcache_cooked_read_unsigned.
6168         * i386-tdep.c (i386_extract_struct_value_address): Use
6169         regcache_cooked_read_unsigned.
6170
6171 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6172
6173         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6174         double sizes according to ELF ABI flags.
6175         (gdbarch_tdep): Record elf_flags.
6176
6177 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6178
6179         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6180         (m6812_prolog): They can appear in 68HC12 function prologue.
6181         (m68hc11_frame_chain): Cleanup.
6182
6183 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6184
6185         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6186         declarations.
6187         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6188         (i386_linux_register_raw_size): Delete function.
6189         (i386_linux_init_abi): Update.
6190         * i386-tdep.c (i386_register_raw_size): Delete function.
6191         (i386_register_byte): Delete function.
6192         (i386_gdbarch_init): Update.
6193         (i386_register_size): Delete array.
6194         (i386_register_offset): Delete array.
6195
6196         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6197         (REGISTER_RAW_SIZE): Delete macro.
6198         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6199         (REGISTER_BYTE): Delete macro.
6200
6201 2002-08-11  Aidan Skinner <aidan@velvet.net>
6202
6203         * ada-lang.c (ada_lookup_partial_symbol)
6204         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6205         prototype names so that grep ^func works properly.
6206
6207         * ada-lang.c (ada_array_element_type)
6208         (ada_lookup_partial_symbol): Fix typos in parameter list.
6209
6210         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6211         Fix prototype names so that grep ^func works properly.
6212         
6213 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6214             Elena Zannoni  <ezannoni@redhat.com>
6215             Martin M. Hunt  <hunt@redhat.com>
6216
6217         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6218         (build_builtin_type_vec128i): Set the vector bit.
6219         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6220         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6221         (build_builtin_type_vec64): New function.
6222         (build_builtin_type_vec64i): New function.
6223         (build_gdbtypes): Initialize builtin_type_vec64 and
6224         builtin_type_vec64i.
6225
6226 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6227
6228         * regcache.c (regcache_dump): Compare the register offset
6229         with REGISTER_BYTE.
6230         * arch-utils.c (generic_register_byte): New function.
6231         * arch-utils.h (generic_register_byte): Declare.
6232         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6233         * gdbarch.h, gdbarch.c: Regenerate.
6234
6235 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6236
6237         * regcache.c: Include "gdbcmd.h"
6238         (_initialize_regcache): Add commands "maintenance print
6239         registers", "maintenance print raw-registers" and "maintenance
6240         print cooked-registers".
6241         (enum regcache_dump_what): Define.
6242         (dump_endian_bytes): New function.
6243         (regcache_dump): New function.
6244         (regcache_print): New function.
6245         (maintenance_print_registers): New function.
6246         (maintenance_print_raw_registers): New function.
6247         (maintenance_print_cooked_registers): New function.
6248         * Makefile.in (regcache.o): Update dependencies.
6249
6250 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6251
6252         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6253         (mips_push_arguments): Correct some comments.  Use paddr_nz
6254         for printing addresses in debug output.  Replace static
6255         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6256         (mips_n32n64_push_arguments): New function, cloned from
6257         mips_push_arguments and tuned for the n32/n64 ABI.
6258         (mips_push_register): Buffer needs dynamic allocation.
6259         (mips_print_register): Ditto.
6260         (do_gp_register_row): Ditto.
6261         (mips_store_return_value): Ditto.
6262         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6263
6264 2002-08-09  Don Howard  <dhoward@redhat.com>
6265
6266         * memattr.c (mem_info_command): Print special case of upper bound
6267         as max CORE_ADDR + 1.
6268
6269 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6270
6271         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6272         returns structs by ref if they're too big to fit in two registers.
6273
6274 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6275
6276         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6277         saved regs value.
6278         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6279         mips_find_saved_regs().
6280         (mips_pop_frame): Likewise.
6281
6282 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6283
6284         * blockframe.c (frame_saved_regs_register_unwind): Revise
6285         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6286         frames are in use.
6287
6288 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6289         
6290         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6291         T-packets; the 'a' is not taken as a register number.
6292         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6293         (remote_stopped_data_address): New functions; add to target
6294         vector.
6295         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6296         prototypes to match other implementations of this
6297         function. replace integer argument with pointer -- the length
6298         field in the Z-packet is the length of what is pointed to or 1 if
6299         pointer is null. Add to target vector.
6300         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6301         target vector.
6302
6303         From Mark Salter:
6304         * remote.c (remote_wait): Add support to extract optional
6305         watchpoint information from T-packet. Ignore unrecognized
6306         optional info in T-packet.
6307         (remote_async_wait): Ditto.
6308
6309 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6310
6311         * cli/cli-dump.c: Change fopen modes to use binary open modes
6312         as defined in include/fopen-bin.h throughout.
6313
6314 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6315
6316         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6317
6318 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6319
6320         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6321         assertion failure by returning early after a warning.
6322
6323 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6324
6325         * mips-tdep.c (mips_find_saved_regs): Make static.
6326         (mips_frame_init_saved_regs): New function.
6327         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6328         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6329         (mips_find_saved_regs): Delete declaration.
6330
6331 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6332
6333         * remote.c (remote_wait, remote_async_wait): Change
6334         thread_num from int to ULONGEST.
6335         (unpack_varlen_hex): Change result parameter from
6336         int * to ULONGEST *.
6337
6338 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6339
6340         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6341         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6342         powerpc*-*-*.
6343         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6344
6345 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6346
6347         * gcore.c (override_derive_stack_segment): Delete variable.
6348         (preempt_derive_stack_segment): Delete function.
6349         (derive_stack_segment): Delete function.
6350         (default_derive_stack_segment): Renamed to derive_stack_segment.
6351         (override_derive_heap_segment): Delete variable.
6352         (preempt_derive_heap_segment): Delete function.
6353         (derive_heap_segment): Delete function.
6354         (default_derive_heap_segment): Rename to derive_heap_segment.
6355
6356 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6357
6358         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6359         * mips-tdep.c (mips_EABI_use_struct_convention, 
6360         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6361         New functions.  (mips_use_struct_convention): Delete.
6362         (mips_gdbarch_init): set use_gdbarch_convention.
6363
6364 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6365
6366         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6367         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6368         mips_o32_reg_struct_has_addr): New functions.
6369         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6370
6371 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6372
6373         * regcache.c (pseudo_register): Delete function.
6374         (fetch_register): Delete function.
6375         (store_register): Delete function.
6376         (regcache_raw_read, legacy_read_register_gen): Use
6377         target_fetch_registers instead of fetch_register.
6378         (legacy_write_register_gen, regcache_raw_write): Use
6379         target_store_register instead of store_register.
6380         (write_register_bytes): Ditto.
6381
6382         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6383         (STORE_PSEUDO_REGISTER): Delete.
6384         * gdbarch.h, gdbarch.c: Regenerate.
6385
6386 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6387
6388         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6389         write dump file binary.
6390
6391 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6392
6393         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6394         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6395         (mips_gdbarch_init): Set N32 target to be mips64.
6396
6397 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6398
6399         * frame.c (find_saved_register): Break out of loop once saved
6400         register address is found.  Don't mention sparc in loop comment
6401         anymore.
6402
6403 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6404
6405         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6406         mips_default_saved_regsize to 8.
6407
6408 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6409
6410         * gcore.c: Do not include <sys/procfs.h>.
6411         * Makefile.in (gcore.o): Update dependencies.
6412
6413 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6414
6415         * configure.tgt: Make arc-*-* obsolete.
6416         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6417         * MAINTAINERS: Make arc-elf obsolete.
6418         * arc-tdep.c: Make file obsolete.
6419         * config/arc/arc.mt: Ditto.
6420         * config/arc/tm-arc.h: Ditto.
6421
6422 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6423
6424         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6425
6426 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6427
6428         * mcore-tdep.c (mcore_gdbarch_init): Use
6429         generic_unwind_get_saved_register instead of
6430         generic_get_saved_register.
6431         * v850-tdep.c (v850_gdbarch_init): Ditto.
6432         * frv-tdep.c (frv_gdbarch_init): Ditto.
6433         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6434         * s390-tdep.c (s390_gdbarch_init): Ditto.
6435         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6436         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6437         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6438
6439 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6440
6441         * objfiles.h: Add missing #include "symfile.h"
6442
6443         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6444
6445 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6446
6447         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6448         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6449         of FIELD_BITSIZE.
6450
6451 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6452
6453         * NEWS: Cleanup and nitpick.
6454
6455 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6456
6457         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6458
6459 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6460
6461         * Makefile.in (gdbtk-bp.o): Update dependencies.
6462         (gdbtk-register.o): Ditto.
6463         (gdbtk-varobj.o): Ditto.
6464
6465 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6466
6467         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6468         m68hc11_fetch_pseudo_register.
6469         (m68hc11_pseudo_register_write): Replace
6470         m68hc11_store_pseudo_register.
6471         (m68hc11_gdbarch_init): Update.
6472
6473 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6474
6475         * gdbarch.sh: Include "gdb_string.h".
6476         * gdbarch.c: Regenerate.
6477
6478         * regcache.c: Include "gdb_string.h".
6479         * ax-general.c: Ditto.
6480         * varobj.c: Ditto.
6481         * std-regs.c: Ditto.
6482         * fbsd-proc.c: Ditto.
6483         * thread.c: Ditto.
6484
6485         * Makefile.in (regcache.o): Update dependencies.
6486         (thread.o, gdbarch.o): Ditto.
6487         (ax-general.o, gdbarch.o): Ditto.
6488         (varobj.o, std-regs.o): Ditto.
6489         (fbsd-proc.o): Specify dependencies.
6490
6491 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6492
6493         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6494         regnum.
6495         (regcache_cooked_write): Ditto.
6496
6497 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6498
6499         * regcache.c (regcache_cooked_read): New function.
6500         (regcache_cooked_write): New function.
6501         (read_register_gen): Rewrite using regcache_cooked_read.
6502         (write_register_gen): Rewrite using regcache_cooked_write.
6503
6504         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6505         Declare.
6506
6507 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6508
6509         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6510         Replace the architecture methods register_read and register_write.
6511         * gdbarch.h, gdbarch.c: Regenerate.
6512         * regcache.c (init_regcache_descr): Update.
6513         (read_register_gen): Update.
6514         (write_register_gen): Update.
6515         (supply_register): Update comment.
6516
6517         * sh-tdep.c (sh_gdbarch_init): Update.
6518         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6519         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6520         pointer.  Update code.
6521         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6522         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6523         void pointer.  Update code.
6524         (sh64_register_write): Delete.
6525         (sh4_register_read): Delete.
6526         (sh64_register_read): Delete.
6527         (sh4_register_write): Delete.
6528         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6529         void pointer, `to' parameter a void pointer.
6530         (sh_sh64_register_convert_to_raw): Ditto.
6531
6532 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6533
6534         * mips-tdep.c (mips_register_virtual_type): Use architecture
6535         invariant return values.
6536
6537 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6538
6539         * linux-proc.c: Include "gdb_string.h".
6540         * Makefile.in (linux-proc.o): Update dependency list.
6541
6542 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6543
6544         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6545         comment.
6546
6547 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6548
6549         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6550         to_insert_watchpoint, to_remove_watchpoint,
6551         to_stopped_by_watchpoint, to_stopped_data_address,
6552         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6553         target vecctor. Define their corresponding macros so they call
6554         them.
6555         
6556         * target.c: Add default and debug versions of for
6557         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6558         to_insert_watchpoint, to_remove_watchpoint,
6559         to_stopped_by_watchpoint, to_stopped_data_address,
6560         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6561
6562 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6563
6564         * mips-tdep.c (mips_register_virtual_type): New function.
6565         (mips_gdbarch_init): Register mips_register_virtual_type()
6566         with gdbarch machinery.
6567         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6568         this file instead of tm-bigmips.h.
6569         (MIPS_REGSIZE): Delete this macro.
6570         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6571         multiarch version in mips-tdep.c will be found.
6572
6573 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6574
6575         * NEWS: Menion that CHILL has been made obsolete.
6576
6577         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6578         * stabsread.c (read_range_type): Ditto.
6579         * gdbtypes.h: Ditto.
6580         * language.c (binop_type_check): Ditto.
6581         (binop_result_type): Ditto.
6582         (integral_type): Ditto.
6583         (character_type): Ditto.
6584         (string_type): Ditto.
6585         (boolean_type): Ditto.
6586         (structured_type): Ditto.
6587         (lang_bool_type): Ditto.
6588         (binop_type_check): Ditto.
6589         * language.h (_LANG_chill): Ditto.
6590         * dwarfread.c (set_cu_language): Ditto.
6591         * dwarfread.c (CHILL_PRODUCER): Ditto.
6592         * dwarfread.c (handle_producer): Ditto.
6593         * expression.h (enum exp_opcode): Ditto.
6594         * eval.c: Ditto for comments.
6595         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6596         * expprint.c (print_subexp): Ditto.
6597         (print_subexp): Ditto.
6598         * valops.c (value_cast): Ditto.
6599         (search_struct_field): Ditto.
6600         * value.h (COERCE_VARYING_ARRAY): Ditto.
6601         * symfile.c (init_filename_language_table): Ditto.
6602         (add_psymbol_with_dem_name_to_list): Ditto.
6603         * valarith.c (value_binop): Ditto.
6604         (value_neg): Ditto.
6605         * valops.c (value_slice): Ditto.
6606         * symtab.h (union language_specific): Ditto.
6607         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6608         (SYMBOL_DEMANGLED_NAME): Ditto.
6609         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6610         * defs.h (enum language): Ditto.
6611         * symtab.c (got_symtab): Ditto.
6612         * utils.c (fprintf_symbol_filtered): Ditto.
6613
6614         * ch-typeprint.c: Make file obsolete.
6615         * ch-valprint.c: Make file obsolete.
6616         * ch-lang.h: Make file obsolete.
6617         * ch-exp.c: Make file obsolete.
6618         * ch-lang.c: Make file obsolete.
6619
6620         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6621         CHILL_LIB.
6622         (TARGET_FLAGS_TO_PASS): Ditto.
6623         (CHILLFLAGS): Obsolete.
6624         (CHILL): Obsolete.
6625         (CHILL_FOR_TARGET): Obsolete.
6626         (CHILL_LIB): Obsolete.
6627         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6628         ch-valprint.c.
6629         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6630         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6631         ch-lang.o.
6632         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6633         targets.
6634
6635 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6636
6637         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6638         This does not change anything at the moment, but will be helpful
6639         later when full Ada support is integrated.
6640
6641 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6642
6643         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6644         help message.
6645
6646 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6647
6648         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6649         and save it in a local variable.  Use variable in later test.
6650
6651 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6652
6653         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6654         test.  (Thanks to Daniel Jacobowitz.)
6655         
6656 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6657
6658         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6659         (mips_abi_strings): Add "n64".
6660         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6661
6662 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6663
6664         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6665         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6666
6667 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6668
6669         * utils.c (host_pointer_to_address, address_to_host_pointer):
6670         Use gdb_assert() instead of explicit call to internal_error().
6671
6672 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6673
6674         * Makefile.in (rs6000-nat.o): Update dependencies.
6675
6676         From Nicholas Duffek:
6677         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6678         (aix-thread.o): New rule.
6679         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6680         * config/powerpc/aix432.mh: New file.
6681
6682 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6683
6684         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6685         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6686         (fetch_core_registers, ppc_linux_supply_gregset)
6687         (ppc_linux_supply_fpregset): New functions.
6688         (ppc_linux_regset_core_fns): New.
6689         (_initialize_ppc_linux_tdep): Call add_core_fns.
6690         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6691         and ppc_linux_supply_gregset.
6692         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6693         (supply_fpregset): Call ppc_linux_supply_fpregset.
6694         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6695         corelow.o.
6696         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6697
6698 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6699
6700         * symtab.c (lookup_symbol): Demangle before lowercasing.
6701
6702 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6703
6704         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6705         declaration.
6706         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6707         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6708         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6709         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6710         "gdb_string.h".
6711         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6712         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6713         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6714         (avr-tdep.o, mon960-rom.o): Ditto.
6715         (aout_stabs_gnu_h): Define.
6716         (symtab_h): Remove $(gdb_obstack_h).
6717
6718 2002-07-30  Jim Blandy  <jimb@redhat.com>
6719
6720         Patch from David Carlton <carlton@math.stanford.edu>:
6721         * gdbinit.in: Move the `dir' commands that add GDB's own source
6722         directory to the search path to the end, so that the `gdb' source
6723         directory will be searched first.
6724
6725 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6726
6727         * gdb_obstack.h: New file.
6728         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6729         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6730         * objfiles.h: Include "gdb_obstack.h".
6731         * Makefile.in (gdb_obstack_h): Define.
6732         (symtab_h): Add $(gdb_obstack_h).
6733         (objfiles_h): Add $(gdb_obstack_h).
6734         
6735         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6736         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6737         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6738         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6739         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6740         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6741         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6742         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6743
6744         * Makefile.in (bcache.o): Update dependencies.
6745         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6746         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6747         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6748         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6749         (stabsread.o, symfile.o, symmisc.o): Ditto.
6750         (symtab.o, typeprint.o, macroexp.o): Ditto.
6751         (macrotab.o, mdebugread.o): Ditto.
6752         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6753         (coff_ecoff_h, aout_aout64_h): Define.
6754         (aout_stabs_gnu_h, libaout_h): Define.
6755
6756 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6757
6758         * regcache.c (struct regcache_descr): Rename nr_registers to
6759         nr_cooked_registers.  Revise comments describing the structure
6760         member fields.
6761         (init_regcache_descr): Update.
6762         (init_legacy_regcache_descr): Update.
6763         (read_register_gen, write_register_gen): When a cooked register in
6764         the raw register range, directly access the value from the raw
6765         register cache.
6766
6767 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6768
6769         * z8k-tdep.c: Do not include "obstack.h".
6770         * h8300-tdep.c, h8500-tdep.c: Ditto.
6771         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6772         * valprint.c, v850-tdep.c: Ditto.
6773         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6774         * mn10200-tdep.c: Ditto.
6775
6776         * Makefile.in (z8k-tdep.o): Update dependencies.
6777         (m68hc11-tdep.o, valprint.o): Ditto.
6778         (v850-tdep.o, d10v-tdep.o): Ditto.
6779         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6780         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6781         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6782         (sh_opc_h, gdb_sim_sh_h): Define.
6783         (elf_sh_h, elf_bfd_h): Define.
6784         (opcode_m68hc11_h): Define.
6785         (OPCODES_SRC, OPCODES_DIR): define.
6786         (OPCODES): Use $(OPCODES_DIR).
6787         (gdb_sim_d10v_h): Rename sim_d10v_h.
6788         (gdb_sim_arm_h): Rename sim_arm_h.
6789
6790 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6791
6792         * utils.c (host_pointer_to_address, address_to_host_pointer):
6793         Change internal_error() message to indicate function responsible
6794         for the error.
6795
6796 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6797
6798         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6799         calls to local_hex_string_custom().
6800
6801 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6802
6803         * irix5-nat.c: Move IRIX shared library support from here...
6804         * solib-irix.c: ...to here.  Revised substantially to work with
6805         generic solib framework.
6806
6807         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6808         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6809         * mips-irix-tdep.c: New file.
6810
6811         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6812         (mips-irix-tdep.o, solib-irix.o): New rules.
6813         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6814         solib-irix.o.
6815         * config/mips/irix6.mt (TDEPFILES): Likewise.
6816         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6817
6818 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6819
6820         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6821         disabled (via ``#if 0'') includes.
6822
6823 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6824
6825         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6826         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6827         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6828         Add support for the fpscr register.
6829         * rs6000-nat.c (regmap, fetch_inferior_registers)
6830         (store_inferior_registers, fetch_core_registers): Likewise.
6831
6832 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6833
6834         * rs6000-nat.c (language.h): Include.
6835         (special_regs): Delete this array.
6836         (regmap): New function.
6837         (fetch_register, store_register):  Use regmap() to map gdb
6838         register numbers to ptrace register numbers.  Also, use
6839         outputs from regmap() to make decisions regarding type of
6840         ptrace() call to make.  In particular, don't compare against
6841         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6842         (fetch_inferior_registers, store_inferior_registers): Where
6843         possible, obtain register numbers from tdep struct.  Don't
6844         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6845         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6846         (LAST_UISA_SP_REGNUM): Delete.
6847         
6848 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6849
6850         * rs6000-nat.c (ppc-tdep.h): Include.
6851         (fetch_registers, store_register, fetch_core_registers): Don't
6852         access registers[] directly.  Instead, use supply_register() or
6853         regcache_collect() as appropriate.
6854         (find_toc_address): Format hex address with local_hex_string().
6855
6856 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6857
6858         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6859         bfd/elf32-frv.c.
6860
6861 2002-07-24  Tom Tromey  <tromey@redhat.com>
6862
6863         * jv-exp.y: Marked all strings with _().
6864         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6865         internal_error.
6866         (MethodInvocation, CastExpression, parse_number, yyerror,
6867         java_type_from_name, push_expression_name, yylex): Typo fixes.
6868
6869 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6870
6871         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6872         (tee_file_flush, tee_file_write, tee_file_fputs)
6873         (tee_file_isatty): New.
6874         * ui-file.h (tee_file_new): Add prototype.
6875
6876 2002-07-24  Aidan Skinner <aidan@velvet.net>
6877
6878         * ada-lang.c: Change k&r style function definitions to prototyped
6879         form.
6880         * ada-typeprint.c: Change k&r style function definitions to prototyped
6881         form.
6882         * ada-valprint.c: Change k&r style function definitions to prototyped
6883         form.
6884         
6885 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6886
6887         * README: Remove reference to remote-bug.
6888         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6889         remote-bug.c.
6890         (m88k-nat.o): Delete rule.
6891         (m88k-tdep.o): Delete rule.
6892         (remote-bug.o): Delete rule.
6893         * MAINTAINERS: Mark as obsolete.
6894         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6895         * m88k-tdep.c: Make file obsolete.
6896         * config/m88k/m88k.mh: Ditto.
6897         * config/m88k/delta88v4.mh: Ditto.
6898         * config/m88k/delta88v4.mt: Ditto.
6899         * config/m88k/delta88.mt: Ditto.
6900         * config/m88k/delta88.mh: Ditto.
6901         * remote-bug.c: Ditto.
6902         * config/m88k/tm-delta88.h: Ditto.
6903         * config/m88k/nm-delta88v4.h: Ditto.
6904         * config/m88k/xm-delta88.h: Ditto.
6905         * config/m88k/xm-dgux.h: Ditto.
6906         * config/m88k/tm-m88k.h: Ditto.
6907         * config/m88k/nm-m88k.h: Ditto.
6908         * config/m88k/tm-delta88v4.h: Ditto.
6909         * m88k-nat.c: Ditto.
6910         * cxux-nat.c: Ditto.
6911         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6912         and m88*-*-* obsolete.
6913         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6914         m88*-*-* obsolete.
6915
6916 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6917
6918         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6919         constant.  Same for local pointer variables.
6920         (extract_signed_integer): Ditto.
6921         * defs.h (extract_unsigned_integer): Update.
6922         (extract_signed_integer): Update.
6923
6924 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6925
6926         * regcache.c (regcache_raw_write): Change buf parameter to a
6927         constant void pointer.
6928         (regcache_raw_read): Change buf parameter to a void pointer.
6929         (legacy_write_register_gen): Change myaddr parameter a constant
6930         void pointer.
6931         (supply_register): Change val parameter to a const void pointer.
6932         * regcache.h (regcache_raw_write): Update declaration.
6933         (regcache_raw_read): Update declaration.
6934         (supply_register): Update declaration.
6935
6936 2002-07-24  Tom Tromey  <tromey@redhat.com>
6937
6938         * defs.h (gdb_readline_wrapper): Declare.
6939         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6940         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6941         * top.c (gdb_readline_wrapper): New function.
6942         (command_line_input): Use it.
6943
6944 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6945
6946         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6947         regcache_read and regcache_write.
6948         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6949         * regcache.c: Update.
6950         * sh-tdep.c (sh64_push_arguments): Update comment.
6951         (sh_pseudo_register_read): Update.
6952         (sh_pseudo_register_write): Update.
6953         (sh4_register_read): Update.
6954         (sh4_register_write): Update.
6955         (sh64_pseudo_register_read): Update.
6956         (sh64_pseudo_register_write): Update.
6957         (sh64_register_read): Update.
6958         (sh64_register_write): Update.
6959         * i386-tdep.c (i386_extract_return_value): Update.
6960         (i386_extract_struct_value_address): Update.
6961         (i386_extract_return_value): Update.
6962         * blockframe.c (generic_read_register_dummy): Update.
6963         (generic_call_dummy_register_unwind): Update
6964         * infrun.c (write_inferior_status_register): Update.
6965
6966 2002-07-23  Jim Blandy  <jimb@redhat.com>
6967
6968         * parser-defs.h (expression_context_pc): Make this extern.
6969         (Thanks to Michael Snyder.)
6970
6971 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6972
6973         GDB 5.2.1 released from 5.2 branch.
6974         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6975         * README: Update to mention 5.2.1.
6976
6977 2002-07-23  Mark Salter  <msalter@redhat.com>
6978
6979         * remote.c (remote_read_bytes): Fix check for error.
6980
6981 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6982
6983         * aix-thread.c (language.h): Include.
6984         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6985         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6986         Print newlines at end of debug messages.
6987         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6988         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6989
6990 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6991
6992         * aix-thread.c (ppc-tdep.h): Include.
6993         (special_register_p): New function.
6994         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6995         (store_regs_user_thread): Use register number information from
6996         gdbarch_tdep struct instead of hardcoded offsets relative to
6997         FIRST_UISA_SP_REGNUM.
6998         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6999         special_register_p() instead of using FPLAST_REGNUM and
7000         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7001         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
7002         will be MQ's register number.
7003
7004 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7005
7006         * aix-thread.c (ops): Rename to aix_thread_ops.
7007         (base_ops): Rename to base_target.
7008         (ops_attach): Rename to aix_thread_attach.
7009         (ops_detach): Rename to aix_thread_detach.
7010         (ops_resume): Rename to aix_thread_detach.
7011         (ops_wait):   Rename to aix_thread_wait.
7012         (ops_kill):   Rename to aix_thread_kill.
7013         (init_ops):   Rename to init_aix_thread_ops.
7014         (ops_fetch_register): Rename to aix_thread_fetch_register.
7015         (ops_store_register): Rename to aix_thread_store_register.
7016         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7017         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7018         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7019         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7020         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7021         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7022         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7023         (store_regs_lib):  Rename to store_regs_user_thread.
7024         (store_regs_kern): Rename to store_regs_kernel_thread.
7025
7026 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7027
7028         * aix-thread.c (ops_prepare_to_store): Eliminate.
7029         (init_ops): Don't initialize ops.prepare_to_store.
7030         (store_regs_kern): Pre-fetch register buffers from child, 
7031         because some registers may not be in the cache.  Copy
7032         regs from register cache only if they are cached.
7033         (store_regs_lib): Copy regs from register cache only
7034         if they are cached.
7035         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7036         fill_gprs64): Ditto.
7037
7038 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7039
7040         * aix-thread.c (gdb_assert.h): Include.
7041         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7042         register sizes (from register cache) match size of buffer holding
7043         register data.
7044         (fill_sprs32): Change parameter types to match those in the ptrace()
7045         buffer.
7046         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7047         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7048
7049 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7050
7051         * aix-thread.c (supply_sprs64): Cosmetic change.
7052         (supply_sprs32): Cosmetic change.
7053         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7054         (fill_sprs64): Use regcache_collect instead of read_register.
7055         (store_regs_lib): Use regcache_collect instead of 
7056         read_register.  Use fill_sprs32 instead of fill_sprs64,
7057         if debugging a 32-bit architecture.
7058         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7059         out of the register cache, instead of passing a pointer into
7060         the register cache directly to ptrace.  Use regcache_collect
7061         insteaad of read_register.
7062         (ops_prepare_to_store): Use target_read_registers instead
7063         of read_register_bytes.
7064
7065 2002-07-20  Aidan Skinner <aidan@velvet.net>
7066
7067         * MAINTAINERS: Add self under write after approval. 
7068                 
7069 2002-07-20  Aidan Skinner <aidan@velvet.net>
7070
7071         * ada-tasks.c: Change k&r style function definitions to prototyped
7072         form.
7073                 
7074 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7075
7076         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7077         * x86-64-tdep.c: Include "objfiles.h".
7078         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7079         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7080
7081 2002-07-17  Michal Ludvig  <michal@suse.cz>
7082
7083         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7084         (update_context): Initialise cfa variable.
7085
7086 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7087
7088         * aix-thread.c: Shorten some long lines.  
7089         Bring comments into line with code spec.
7090
7091 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7092
7093         * infrun.c: Re-indent using gdb_indent.sh.
7094
7095 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7096
7097         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7098         Leave the indentation temporarily untouched, to minimize the diffs.
7099
7100 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7101
7102         * stabsread.c: Make os9k sections of the code obsolete,
7103         for real this time.
7104         * stabsread.h: Make os9k sections of the code obsolete.
7105
7106 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7107
7108         * linux-low.c (regsets_store_inferior_registers): Add free()
7109         at the end of a loop to prevent memory leak.
7110         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7111         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7112         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7113         line a comment.
7114         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7115
7116 2002-07-17  Jim Blandy  <jimb@redhat.com>
7117
7118         * macrocmd.c (info_macro_command): Remove newline from error
7119         message.
7120
7121 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7122
7123         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7124         (sh_gdbarch_init): Use it for sh-dsp.
7125
7126 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7127
7128         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7129         64-bit DWARF2 format.
7130
7131 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7132
7133         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7134         <sys/proc.h> when not available.
7135
7136 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7137
7138         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7139         * stabsread.c: Make os9k sections of the code obsolete.
7140         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7141         * config/i386/i386os9k.mt: Make file obsolete.
7142         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7143         (COMMON_OBS): Remove os9kread.o
7144         (SFILES): Remove os9kread.c.
7145         (os9kread.o, remote-os9k.o): Make target obsolete.
7146         * remote-os9k.c: Make file obsolete.
7147         * os9kread.c: Make file obsolete.
7148         * Makefile.in
7149
7150 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7151
7152         * NEWS: Mention that the FR30 has been made obsolete.
7153         * fr30-tdep.c: Make file obsolete.
7154         * config/fr30/tm-fr30.h: Ditto.
7155         * config/fr30/fr30.mt: Ditto.
7156         * configure.tgt: Make fr30-*-elf obsolete.
7157         * MAINTAINERS: Make fr30-elf obsolete.
7158
7159 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7160
7161         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7162         found is not inside a section.
7163
7164 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7165
7166         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7167         strerror().
7168         (pdc_realloc): Use xrealloc() instead of realloc().
7169
7170 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7171
7172         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7173         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7174         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7175         macros.
7176
7177 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7178
7179         * aix-thread.c (ptrace_check): Eliminate goto.
7180         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7181         problem.
7182
7183 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7184
7185         * aix-thread.c (gdbcmd.h): Include.
7186         (DEBUG, DBG, DBG2, dbg): Eliminate.
7187         (debug_aix_thread): New static global.
7188         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7189         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7190         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7191         invocations to DBG and DBG2 macros to test against
7192         ``debug_aix_thread'' and call fprintf_unfiltered().
7193         (_initialize_aix_thread): Add new command "set debug aix-thread".
7194
7195 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7196
7197         From Gerhard Tonn <TON@de.ibm.com>:
7198         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7199         instead of supply_register.
7200
7201 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7202
7203         * dwarf2cfi.c: Include "gdb_assert.h".
7204         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7205         non-NULL.
7206         (update_context): Do not use __func__.  Add missing ``break''.
7207         (update_context): Do not use __func__.
7208
7209 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7210
7211         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7212         and its setting.  Set gdbarch instruction printing functions
7213         directly.  For non-rs6000 case use new function
7214         gdb_print_insn_powerpc.
7215         (gdb_print_insn_powerpc): New function.
7216
7217 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7218
7219         * NEWS: Mention that the d30v has been marked obsolete.
7220         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7221         * configure.tgt: Mark d30v-*-* as obsolete.
7222         * d30v-tdep.c: Mark file as obsolete.
7223         * config/d30v/d30v.mt: Ditto.
7224         * config/d30v/tm-d30v.h: Ditto.
7225
7226 2002-07-13  Aidan Skinner <aidan@velvet.net>
7227
7228         * ada-tasks.c (add_task_entry): replace calls to
7229         malloc() with xmalloc
7230         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7231         
7232         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7233         ada_finish_decode_line_1, all_sals_for_line
7234         ada_breakpoint_rewrite): replace calls to free() with xfree()
7235                 
7236 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7237
7238         From Nicholas Duffek (with minor changes by Martin Hunt, 
7239         Louis Hamilton, and Kevin Buettner):
7240         * aix-thread.c: New file.
7241
7242 2002-07-12  Petr Sorfa <petrs@caldera.com>
7243
7244         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7245         complaint for invalid attribute class or form.
7246         (read_func_scope): DW_AT_frame_base
7247         better handling of DW_AT_block*.
7248         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7249         better handling of DW_AT_block*.
7250         (read_common_block): DW_AT_location
7251         better handling of DW_AT_block*.
7252         (read_partial_die): DW_AT_location better handling
7253         of DW_AT_block*.
7254         (new_symbol): DW_AT_external better handling of
7255         DW_AT_block*. Proper initialization of variable
7256         "addr".
7257         (attr_form_is_block): New function that returns true
7258         if the attribute's form is of DW_FORM_block*.
7259
7260 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7261
7262         * valops.c (find_method_list): Remove comment about
7263         removed STATIC_MEMFUNCP argument.
7264         (value_find_oload_method_list): Likewise.
7265
7266 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7267
7268         From Nicholas Duffek:
7269         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7270         target_new_objfile_hook.
7271
7272 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7273
7274         From Nicholas Duffek:
7275         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7276         csect.
7277
7278 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7279
7280         * MAINTAINERS: Mention --enable-sim-build-warnings.
7281         (m68hc11-elf): Disable sim build warnings.
7282         (m32r-elf): Mark as broken obsolete candidate.
7283         (x86_64-linux-gnu): Mark as buildable with -Werror.
7284         (arm-elf): Change -w to ``,'' which enables warnings but not
7285         -Werror.
7286
7287 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7288
7289         * bcache.h: Update copyright.
7290         (struct bstring, struct bcache): Move definition to "bcache.c".
7291         Replaced by opaque declaration.
7292         (bcache_xfree): Replace free_bcache.
7293         (bcache_xmalloc, bcache_memory_used): Declare.
7294         
7295         * bcache.c: Update copyright.
7296         (struct bstring, struct bcache): Moved to here from "bcache.h".
7297         Update comments.
7298         (bcache_xmalloc, bcache_memory_used): New functions.
7299         (bcache_xfree): Replace function free_bcache.
7300         
7301         * Makefile.in (objfiles.o): Add $(bcache_h).
7302         (objfiles_h): Remove $(bcache_h).
7303         (symfile.o): Add $(bcache_h).
7304
7305         * symmisc.c: Update copyright.
7306         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7307         (print_objfile_statistics): Use bcache_memory_used.
7308
7309         * symfile.c: Include "bcache.h".
7310         (reread_symbols): Use bcache_xfree.
7311         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7312         (add_psymbol_to_list): Pass psymbol_cache by value.
7313         (add_psymbol_with_dem_name_to_list): Ditto.
7314
7315         * objfiles.h: Update copyright.
7316         (struct bcache): Declare opaque.  Do not include "bcache.h".
7317         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7318         bcache'' pointers.
7319         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7320
7321         * objfiles.c: Include "bcache.h".  Update copyright.
7322         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7323         macro_cache.
7324         (free_objfile): Use bcache_xfree.
7325
7326 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7327
7328         * monitor.c (monitor_fetch_register): Make name a constant.
7329         (monitor_store_register): Same.
7330
7331 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7332
7333         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7334         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7335         (finish_block) For non-function blocks, hash the symbol table.  For
7336         function blocks, mark the symbol table as unhashed.
7337         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7338         (msymbol_hash_iw): Likewise.
7339         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7340         value.
7341         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7342         (lookup_minimal_symbol): Likewise for both.
7343         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7344         hashtable.
7345         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7346         (ALL_BLOCK_SYMBOLS): Update.
7347         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7348         (struct symbol): Add `hash_next' pointer.
7349         * symtab.c (lookup_block_symbol): Search using the hash table when
7350         possible.
7351         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7352         (search_symbols, find_addr_symbol): Likewise.
7353
7354         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7355         (read_dst_symtab): Likewise.
7356         * jv-lang.c (get_java_class_symtab): Likewise.
7357         * mdebugread.c: Include "gdb_assert.h".
7358         (shrink_block): Assert that the block being modified is not hashed.
7359         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7360         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7361         symbols.
7362         (dump_symtab): Recognize hashed blocks.
7363         * printcmd.c (print_frame_args):  Assert that function blocks do not
7364         have hashed symbol tables.
7365         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7366         (fill_in_ada_prototype, debug_print_block): Likewise.
7367         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7368
7369 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7370
7371         * stack.c (print_frame): Use result of frame_address_in_block()
7372         instead of fi->pc when evaluating symbols.
7373         (backtrace_command_1): Ditto.
7374
7375 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7376
7377         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7378         Make static.
7379
7380         * arm-tdep.c (arm_register_name): Make return type constant.
7381
7382 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7383
7384         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7385         prototype.
7386         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7387         * s390-tdep.c (s390_fp_regnum): Ditto.
7388         (s390_read_fp): Ditto.
7389         (s390_pop_frame): Ditto.
7390         (_initialize_s390_tdep): Ditto.
7391         * remote.c (get_remote_state): Ditto.
7392         * procfs.c (mappingflags): Ditto.
7393         * memattr.c (_initialize_mem): Ditto.
7394         * mcore-tdep.c (mcore_pop_frame): Ditto.
7395         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7396         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7397         * language.c (set_case_str): Ditto.
7398         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7399         * frv-tdep.c (new_variant): Ditto.
7400         (frv_stopped_data_address): Ditto.
7401         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7402         (context_alloc): Ditto.
7403         (frame_state_alloc): Ditto.
7404         (unwind_tmp_obstack_init): Ditto.
7405         (unwind_tmp_obstack_free): Ditto.
7406         (cfi_read_fp): Ditto.
7407         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7408         (cris_pop_frame): Ditto.
7409         * c-lang.c (scanning_macro_expansion): Ditto.
7410         (finished_macro_expansion): Ditto.
7411         (c_preprocess_and_parse): Ditto.
7412         * gdbarch.sh: Ditto.
7413         * gdbarch.h, gdbarch.c: Regenerate.
7414         * config/mn10200/tm-mn10200.h: Adjust indentation.
7415         * target.c: Adjust indentation.
7416         * symtab.h: Adjust indentation.
7417         * stabsread.h: Adjust indentation.
7418         * remote-es.c: Adjust indentation.
7419         * os9kread.c: Adjust indentation.
7420
7421 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7422         
7423         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7424         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7425
7426 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7427         
7428         * NEWS: Mention m68k, mcore multi-arching.  
7429         * MAINTAINERS: Change status of m68k, mcore to reflect
7430         multi-arching.
7431
7432 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7433
7434         * valops.c (find_overload_match): Free oload_syms.
7435
7436 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7437
7438         Define HAVE_SYS_PROC_H if sys/proc.h exists
7439         * configure.in: Add check for sys/proc.h
7440         * config.in: Regenerate.
7441         * configure: Regenerate.
7442
7443 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7444
7445         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7446         #if !GDB_MULTI_ARCH. 
7447
7448 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7449
7450         * config.in, configure: Regenerate.
7451
7452 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7453
7454         * dwarf2cfi.c: Include "gcore.h".
7455         (execute_stack_op): Fix implementation of the
7456         DW_OP_deref and DW_OP_deref_size operators by letting do their
7457         lookup in the target.
7458
7459 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7460
7461         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7462         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7463         tdep->sc_sp_offset.
7464
7465 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7466
7467         Fix PR gdb/595, gdb/602
7468         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7469         Don't call value_cast, just read the vtable pointer; update comments
7470         to match.
7471
7472 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7473
7474         * config/mcore/tm-mcore.h: Remove file.
7475         * config/mcore/mcore.mt: Remove definition of TM_FILE
7476         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7477
7478 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7479
7480         * i386bsd-tdep.c: Include "gdb_string.h".
7481
7482 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7483
7484         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7485         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7486         mcore-tdep.
7487         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7488         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7489         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7490         (RETVAL_REGNUM): Move macros from tm-mcore.h
7491         (mcore_reg_struct_has_addr): New function.
7492         (mcore_gdbarch_init): Added initializations for the macros removed
7493         from tm-mcore.h.
7494
7495 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7496
7497         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7498         traditonal string branding within the ELF header.
7499
7500 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7501
7502         * symtab.c (remove_params): New function.
7503         (make_symbol_overload_list): Use it instead of cplus_demangle.
7504         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7505
7506 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7507
7508         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7509
7510         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7511         New variables.
7512         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7513         and tdep->sigtramp_end.
7514         * i386obsd-nat.c: New file.
7515         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7516
7517         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7518         Don't call get_current_frame().
7519
7520 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7521
7522         * i386-nat.c (child_post_startup_inferior): New function
7523         calling i386_cleanup_dregs if
7524         I386_USE_GENERIC_WATCHPOINTS is defined.
7525         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7526         conditional to acknowledge that i386-nat.c has its
7527         own child_post_startup_inferior function.
7528
7529 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7530
7531         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7532         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7533         instead of MAX_REGISTER_RAW_SIZE.
7534         (i386_extract_return_value, i386_extract_struct_value_address):
7535         Convert to use regcache.
7536         (i386_gdbarch_init): Set max_register_raw_size and
7537         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7538         Set extract_return_value and extract_struct_value_address instead
7539         of their deprecated variants.
7540
7541         Convert i386 target to generic dummy frames.
7542         * i386-tdep.c: Include "symfile.h".
7543         (i386_frameless_signal_p): Consider a function to be frameless if
7544         the pc points at the first instruction of the function.
7545         (i386_frame_chain): Handle (generic) call dummies.
7546         (i386_frame_saved_pc): Likewise.
7547         (i386_frame_init_saved_regs): Remove code dealing with call
7548         dummies on the stack.
7549         (i386_push_dummy_frame): Removed.
7550         (i386_call_dummy_words): Removed.
7551         (i386_fix_call_dummy): Removed.
7552         (i386_push_return_address): New function.
7553         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7554         parameter, and don't call get_current_frame.
7555         (i386_pop_frame): New function.
7556         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7557         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7558         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7559         call_dummy_length to 0, set call_dummy_words to NULL, set
7560         sizeof_call_dummy_words to 0, set fix_call_dummy to
7561         generic_fix_call_dummy, set pc_in_call_dummy to
7562         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7563         generic_push_dummy_frame, set push_return_address to
7564         i386_push_return_address and set frame_chain_valid to
7565         generic_file_frame_chain_valid.
7566
7567 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7568
7569         * gdbarch.sh (struct regcache): Add opaque declaration.
7570         (EXTRACT_RETURN_VALUE): New architecture method.
7571         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7572         * gdbarch.h, gdbarch.c: Regenerate.
7573         * arch-utils.c (legacy_extract_return_value): New function.
7574         * arch-utils.h (legacy_extract_return_value): Declare.
7575         * values.c (value_being_returned): Re-enable code handling
7576         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7577         deprecated_grub_regcache_for_registers call to block handling
7578         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7579         (EXTRACT_RETURN_VALUE): Do not define.
7580
7581 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7582
7583         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7584         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7585         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7586         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7587         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7588         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7589         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7590         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7591         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7592         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7593         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7594         argument so the function fits the prototype in the architecture
7595         vector.
7596         (mcore_pop_frame): Remove argument so the function fits the
7597         prototype. Use get_current_frame instead of the argument.
7598         (mcore_push_arguments): Change type of struct_return so the
7599         function can be used in the architecture vector.
7600         (mcore_store_struct_return): Add.
7601         (mcore_frame_init_saved_regs): Add.
7602         (mcore_gdbarch_init): Add function calls to replace the macros
7603         removed from tm-mcore.h
7604
7605 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7606
7607         * infcmd.c (print_return_value): Remove compatibility code calling
7608         deprecated_grub_regcache_for_registers.
7609         
7610         * values.c: Include "regcache.h".
7611         (value_being_returned): Update.  Use
7612         deprecated_grub_regcache_for_registers to extract the register
7613         buffer address.  
7614         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7615         ``struct regcache''.
7616         * Makefile.in (values.o): Add dependency on $(regcache_h).
7617
7618         * inferior.h (run_stack_dummy): Change type of second parameter to
7619         a ``struct regcache''.
7620         * valops.c (hand_function_call): Change type of retbuf to ``struct
7621         regcache''.  Allocate using regcache_xmalloc, clean using
7622         make_cleanup_regcache_xfree.
7623         * infcmd.c (run_stack_dummy): Update.  Use
7624         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7625
7626         * regcache.c (do_regcache_xfree): New function.
7627         (make_cleanup_regcache_xfree): New function.
7628         * regcache.h (make_cleanup_regcache_xfree): Declare.
7629
7630 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7631
7632         * event-top.c (command_line_handler): Don't read past
7633         beginning of buffer.
7634
7635 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7636         
7637         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7638         struct frame_id. 
7639         (varobj_create): Store frame_id for root.
7640         (varobj_gen_name): Use xasprintf.
7641         (varobj_update): Save and restore frame using get_frame_id() and
7642         frame_find_by_id().
7643         (create_child): Use xasprintf.
7644         (new_root_variable): Initialize frame_id.
7645         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7646         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7647         to prevent memory leak.
7648
7649 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7650
7651         * valops.c (hand_function_call): Move declaration of retbuf to
7652         start of function, allocate using malloc, add a cleanup but before
7653         the inf_status cleanup, cleanup the buffer.  Rename local variable
7654         old_chain to inf_status_cleanup.
7655
7656 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7657
7658         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7659
7660         * cli/cli-decode.c (cmd_func_p): New function.
7661         (cmd_func): New function.
7662
7663         * command.h: Add cmd_func() and cmd_func_p().   
7664         
7665 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7666
7667         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7668         (REGISTER_SIZE): Remove.
7669         (MAX_REGISTER_RAW_SIZE): Remove.
7670         (REGISTER_VIRTUAL_TYPE): Remove.
7671         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7672         (REGISTER_NAME): Remove.
7673         (USE_GENERIC_DUMMY_FRAMES): Remove.
7674         (CALL_DUMMY): Remove.
7675         (CALL_DUMMY_START_OFFSET): Remove.
7676         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7677         (CALL_DUMMY_LOCATION): Remove.
7678         (FIX_CALL_DUMMY): Remove.
7679         (CALL_DUMMY_ADDRESS): Remove.
7680         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7681         (SAVE_DUMMY_FRAME_TOS): Remove.
7682         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7683         (mcore_register_virtual_type): New function.
7684         (mcore_register_byte): New function.
7685         (mcore_register_size): New function.
7686         (mcore_register_name): New function.
7687         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7688         macros removed from tm-mcore.h.
7689         (mcore_dump_tdep): Add.
7690         (_initialize_mcore_tdep): Add gdbarch_register call.
7691
7692 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7693
7694         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7695         frameless_look_for_prologue, such that we actually call this
7696         function.
7697
7698 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7699
7700         * frame.h (frame_address_in_block): New function.
7701
7702         * blockframe.c (frame_address_in_block): New function extracted
7703         from get_frame_block().
7704         (get_frame_block): Use frame_address_in_block().
7705         (block_innermost_frame): Use frame_address_in_block() to match
7706         the frame pc address against the block boundaries rather than
7707         the frame pc directly. This prevents a failure when a frame pc
7708         is actually a return-address pointing immediately after the end
7709         of the given block. 
7710
7711 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7712
7713         * MAINTAINERS: Add self under write after approval. 
7714
7715 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7716
7717         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7718         used in architecture vector. The default is
7719         m68k_local_breakpoint_from_pc.
7720         (m68k_local_breakpoint_from_pc): Add.
7721         (enum): Add register numbers from tm-m68k.h.
7722         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7723         vector.  
7724         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7725         GDB_MULTI_ARCH_PARTIAL.
7726         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7727         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7728         m68k-tdep.c.
7729         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7730         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7731         to enum in m68k-tdep.c
7732
7733 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7734
7735         * solib-osf.c (open_map): Compute the list of shared libraries
7736         loaded by the inferior, rather than the list of libraries loaded
7737         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7738         the wrong shared libraries...
7739
7740 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7741
7742         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7743         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7744         macros.
7745         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7746         Remove functions.
7747         (FRAMELESS_SIGNAL): Remove function.
7748         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7749         i386_linux_saved_pc_after_call): Removed.
7750         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7751         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7752         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7753
7754         * i386-tdep.c (i386_frameless_signal_p): New function.
7755         (i386_frame_chain): Deal with frameless signals.
7756         (i386_sigtramp_saved_sp): New function.
7757         (i386_frame_saved_pc): Deal with frameless signals.
7758         (i386_saved_pc_after_call): Make sure the correct value is
7759         returned just after entry into a sigtramp.
7760         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7761         i386fbsd4_sc_sp_offset): New variables.
7762         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7763         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7764         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7765         similiar to what we already did for sc_pc_offset.
7766         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7767         tdep->sc_sp_offset.
7768
7769         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7770
7771 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7772
7773         * config/i386/tm-x86-64linux.h: New.
7774         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7775         definitions.
7776         * config/i386/nm-x86-64.h: Rename to ...
7777         * config/i386/nm-x86-64linux.h: ... this one.
7778         * config/i386/x86-64linux.mh: Reflect the above change.
7779         
7780 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7781
7782         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7783         with sigcontext_addr.  Add sc_sp_offset.
7784         (i386bsd_sigtramp_saved_pc): Remove prototype.
7785         (i386bsd_sicontext_addr): Add prototype.
7786         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7787         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7788         (i386_svr4_sigtramp_saved_pc): Removed.
7789         (i386_svr4_sigcontext_addr): New function.
7790         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7791         Initialize tdep->sigcontext_addr instead.  Initialize
7792         tdep->sc_pc_offset and tdep->sc_sp_offset.
7793         (i386_gdbarch_init): Likewise.
7794         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7795         any more.
7796         (i386bsd_sigtramp_saved_pc): Remove function.
7797         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7798         Initialize tdep->sigcontext_addr instead.  Initialize
7799         tdep->sc_pc_offset.
7800         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7801         of tdep->sigtramp_saved_pc.
7802         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7803         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7804         instead.
7805
7806         * i386-tdep.c (i386_frameless_function_invocation,
7807         i386_frame_num_args, i386_frame_init_saved_regs,
7808         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7809         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7810         i386_extract_return_value, i386_store_return_value,
7811         i386_extract_struct_value_address, i386_register_virtual_type,
7812         i386_register_convertible, i386_register_convert_to_virtual,
7813         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7814         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7815         static.
7816
7817 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7818
7819         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7820
7821         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7822         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7823         this macro.  Include "value.h".
7824
7825 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7826
7827         * ada-exp.tab.c: remove as it's a generated file
7828         * ada-lex.c: remove as it's a generated file
7829                 
7830 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7831
7832         * config/i386/tm-i386.h (struct frame_info, struct
7833         frame_saved_regs, struct value, struct type): Remove forward
7834         declarations.
7835
7836         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7837         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7838         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7839         (FILL_FPXREGSET): Define.
7840
7841         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7842
7843         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7844         i[3456]86-*-netbsd* case.
7845         * config/i386/tm-obsd.h: Removed.
7846         * config/i386/obsd.mt: Removed.
7847         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7848         core-aout.o.
7849         (MH_CFLAGS): Add -DYYDEBUG=0.
7850
7851         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7852         i386nbsd_sc_pc_offset on OpenBSD too.
7853
7854         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7855         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7856         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7857         define.
7858         * i386bsd-tdep.c: Include "arch-utils.h".
7859         (i386bsd_aout_in_solib_call_trampoline): New function.
7860         (i386bsd_init_abi): Set in_solib_call_trampoline to
7861         i386bsd_aout_in_solib_call_trampoline.
7862         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7863         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7864
7865 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7866
7867         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7868         (struct obstack, struct bcache): Add opaque declarations.
7869         * Makefile.in (macrotab_h): Update
7870
7871 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7872
7873         * blockframe.c (generic_find_dummy_frame): Change return type to
7874         ``struct regcache''.
7875         (struct dummy_frame): Replace field ``registers'' with regcache, a
7876         struct regcache object.
7877         (generic_find_dummy_frame): Update.
7878         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7879         regcache_xmalloc and regcache_cpy.
7880         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7881         regcache_xfree.
7882         (deprecated_generic_find_dummy_frame): Update.
7883         (generic_read_register_dummy): Update.  Use
7884         regcache_read_as_address.
7885         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7886         (generic_get_saved_register): Update.  Use regcache_read.
7887
7888 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7889
7890         * Makefile.in (objfiles_h): Add $(bcache_h).
7891         * objfiles.h: Include "bcache.h".
7892
7893         * Makefile.in (symtab_h): Remove $(bcache_h).
7894         * symtab.h: Do not include "bcache.h".
7895
7896 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7897
7898         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7899         generic_func_frame_chain_valid.
7900
7901 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7902
7903         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7904         * config/i386/tm-fbsd.h: Likewise.
7905
7906 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7907
7908         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7909         generic_unwind_get_saved_register.
7910
7911 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7912
7913         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7914         * regcache.c (supply_register): Add missing argument to
7915         register_buffer call.
7916
7917 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7918
7919         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7920         Solaris /bin/grep does not not like it.  From Peter Schauer.
7921
7922 2002-06-26  Tom Tromey  <tromey@redhat.com>
7923
7924         * command.h (add_setshow_cmd): Declare.
7925         (add_setshow_cmd_full): Declare.
7926         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7927         returns void.  Use add_setshow_cmd_full.
7928         (add_setshow_cmd_full): New function.
7929         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7930         (add_setshow_boolean_cmd): Likewise.
7931
7932 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7933
7934         * config/vax/tm-vax.h: Protect from multiple inclusion.
7935         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7936         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7937         * config/vax/tm-vaxbsd.h: ...here.  New file.
7938         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7939
7940 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7941
7942         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7943         (BELIEVE_PCC_PROMOTION): Remove.
7944         (AP_REGNUM): Move to...
7945         * config/vax/nm-vax.h: ...here.
7946         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7947         (vax_breakpoint_from_pc): New function.
7948         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7949         and gdbarch_believe_pcc_promotion.
7950
7951 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7952
7953         * Makefile.in (vax_tdep_h): Define.  
7954         (vax-tdep.o): Use $(vax_tdep_h).
7955         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7956         (vax_dump_tdep): New function. 
7957         (_initialize_vax_tdep): Register vax_dump_tdep.
7958         * vax-tdep.h: Include osabi.h.     
7959         (struct gdbarch_tdep): New. 
7960
7961 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7962
7963         * frame.h (deprecated_generic_find_dummy_frame): Rename
7964         generic_find_dummy_frame.
7965         * blockframe.c (generic_find_dummy_frame): Make static.
7966         (deprecated_generic_find_dummy_frame): New function.
7967         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7968         generic_find_dummy_frame with deprecated_find_dummy_frame.
7969         (sh64_nofp_frame_init_saved_regs): Ditto.
7970         (sh_fp_frame_init_saved_regs): Ditto.
7971         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7972         (s390_frame_chain): Ditto.
7973         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7974
7975 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7976
7977         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7978         gdbarch vector are at the top.
7979         (NUM_REGS): Remove.
7980         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7981         (FRAME_ARGS_ADDRESS): Remove.
7982         (FRAME_LOCALS_ADDRESS): Remove.
7983         (FRAME_NUM_ARGS): Remove.
7984         (FRAME_ARGS_SKIP): Remove.  
7985         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7986         (m68k_gdbarch_init): Add gdbarch initializations for macros
7987         undefined in tm-m68k.h
7988
7989 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7990
7991         * monitor.h: Add the function regname to monitor_ops
7992         structure. This way NUM_REGS does not have to be a constant.
7993         * monitor.c (monitor_fetch_register): Added support for regname
7994         function. The function is called if the array regnames is NULL.
7995         (monitor_store_register): Same.
7996         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7997         regnames array.
7998         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7999         cpu32bug_cmds.regname to point to new function.
8000         * abug-rom.c (abug_regname): Same as above.
8001         (init_abug_cmds): Same.
8002         * dbug-rom.c (dbug_regname): Same as above.
8003         (init_dbug_cmds): Same.
8004         * remote-est.c (est_regname): Same. 
8005         (init_est_cmds): Same.
8006         * rom68k-rom.c (rom68k_regname): Same. 
8007         (init_rom68k_cmds): Same.
8008
8009 2002-06-25  Tom Tromey  <tromey@redhat.com>
8010
8011         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8012
8013 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8014
8015         * infrun.c (stop_registers): Change variable's type to ``struct
8016         regcache'''.
8017         (xmalloc_inferior_status): Delete function.
8018         (free_inferior_status): Delete function.
8019         (normal_stop): Use regcache_cpy.
8020         (struct inferior_status): Change type of fields ``stop_registers''
8021         and ``registers'' to ``struct regcache''.
8022         (write_inferior_status_register): Use regcache_write.
8023         (save_inferior_status): Instead of calling
8024         xmalloc_inferior_status, allocate the inf_status buffer directly.
8025         Use regcache_dup_no_passthrough and regcache_dup to save the
8026         buffers.
8027         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8028         Replace the stop_registers regcache instead of overriding it.  Use
8029         regcache_xfree.  Instead of calling free_inferior_status, xfree
8030         the buffer directly.
8031         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8032         free_inferior_status, xfree the buffer directly.
8033         (build_infrun): Use regcache_xmalloc.
8034         (_initialize_infrun): Delete redundant call to build_infrun.
8035
8036         * Makefile.in (infcmd.o): Add $(regcache_h).
8037
8038         * infcmd.c: Include "regcache.h".
8039         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8040         obtain the address of `stop_registers' register buffer.
8041         (print_return_value): Ditto.
8042
8043         * inferior.h (struct regcache): Add opaque declaration.
8044         (stop_registers): Change variable's declared type to ``struct
8045         regcache''.
8046
8047 2002-06-24  Tom Tromey  <tromey@redhat.com>
8048
8049         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8050         * target.c (initialize_targets): Fixed typo in
8051         trust-readonly-sections `show' documentation.
8052
8053         * main.c: Marked all strings with _().
8054
8055 2002-06-24  Don Howard  <dhoward@redhat.com>
8056
8057         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8058         that means max CORE_ADDR+1.
8059         (lookup_mem_region): Ditto.
8060         (mem_info_command): Ditto.
8061
8062 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8063
8064         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8065         (REGISTER_BYTES_OK): Remove.
8066         (REGISTER_BYTES): Remove.
8067         (STORE_STRUCT_RETURN): Remove.
8068         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8069         (STORE_RETURN_VALUE): Remove.
8070         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8071         (FRAME_CHAIN): Remove.
8072         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8073         (FRAME_SAVED_PC): Remove.  
8074         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8075         (m68k_store_struct_return): Add.
8076         (m68k_deprecated_extract_return_value): Add.
8077         (m68k_deprecated_extract_struct_value_address): Add.
8078         (m68k_store_return_value): Add.
8079         (m68k_frame_chain): Add.
8080         (m68k_frameless_function_invocation): Add.
8081         (m68k_frame_saved_pc): Add.
8082         (m68k_gdbarch_init): added set_gdbarch calls for new 
8083         functions and deleted macros.
8084
8085 2002-06-23  Tom Tromey  <tromey@redhat.com>
8086
8087         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8088         (ALLDEPFILES): Likewise.
8089         (udiheaders): Removed.
8090         (udip2soc.o): Likewise.
8091         (udi2go32.o): Likewise.
8092         (udr.o): Likewise.
8093         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8094
8095 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8096
8097         * infrun.c (_initialize_infrun): Delete unnecessary call to
8098         build_infrun.
8099
8100         * regcache.h: Update comments describing the regcache_cpy family
8101         of functions.
8102         (regcache_save, regcache_restore): Delete declaration.
8103         (regcache_save_no_passthrough): Delete declaration.
8104         (regcache_restore_no_passthrough): Delete declaration.
8105         * regcache.c (regcache_save): Delete function.
8106         (regcache_save_no_passthrough): Delete function.
8107         (regcache_restore): Delete function.
8108         (regcache_restore_no_passthrough): Delete function.
8109
8110 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8111
8112         * config/m68k/tm-m68k.h: Fix typo.
8113         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8114         (m68k_frame_init_saved_regs): Declare.
8115
8116 2002-06-21  Jim Blandy  <jimb@redhat.com>
8117
8118         Remove some vestiges of Harris 88k support.
8119         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8120         register numbering quirk.
8121         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8122         odd symbols occurring in Harris 88k ELF targets.
8123
8124 2002-06-21  Tom Tromey  <tromey@redhat.com>
8125
8126         * gdb_locale.h: New file.
8127         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8128         (defs_h): Added gdb_locale.h.
8129         * configure, config.in: Rebuilt.
8130         * configure.in (PACKAGE): Define.
8131         * defs.h: Include gdb_locale.h.
8132         * main.c (captured_main): Call setlocale, bindtextdomain,
8133         textdomain.
8134
8135 2002-06-21  Dave Brolley  <brolley@redhat.com>
8136
8137         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8138         * config/frv/frv.mt: New file.
8139         * config/frv/tm-frv.h: New file.
8140         * configure.tgt: Support frv-*-*.
8141         * Makefile.in (frv-tdep.o): New target.
8142         * frv-tdep.c: New file.
8143         * NEWS: Mention frv.
8144
8145 2002-06-21  Dave Brolley  <brolley@redhat.com>
8146
8147         * MAINTAINERS: Add self to "Write After Approval" list.
8148
8149 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8150
8151         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8152         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8153         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8154         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8155         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8156
8157         * m68k-tdep.c: Include arch-utils.h
8158         (m68k_register_raw_size): Add.
8159         (m68k_register_virtual_size): Add.
8160         (m68k_register_virtual_type): Add.
8161         (m68k_register_name): Add.
8162         (m68k_stack_align): Add.
8163         (m68k_register_byte): Add.
8164         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8165         tm-m68k.h.
8166
8167 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8168
8169         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8170         m68k_find_saved_regs.
8171         (m68k_pop_frame): Removed saved_regs structure, and replaced
8172         references to it with frame->saved_regs.
8173         (m68k_gdbarch_init): Added function calls to initialize the
8174         gdbarch structure.
8175         (m68k_fix_call_dummy): Add. 
8176         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8177         (CALL_DUMMY): Remove.
8178         (CALL_DUMMY_LENGTH): Remove.
8179         (CALL_DUMMY_START_OFFSET): Remove.
8180         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8181         (FIX_CALL_DUMMY): Remove.
8182         (PUSH_DUMMY_FRAME): Remove.
8183         (POP_FRAME): Remove.
8184
8185 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8186
8187         * parse.c (parse_fprintf): New function used to avoid calls to
8188         fprintf in bison parser generated debug code.
8189         * parser-defs.h: Declaration of new parse_fprintf function.
8190         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8191         Set YYDEBUG to 1 by default.
8192         Set YYFPRINTF as parse_fprintf.
8193
8194 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8195
8196         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8197         encoding anymore.
8198         (pointer_encoding, enum ptr_encoding): New.
8199         (execute_cfa_program): Take care about pointer encoding.        
8200         (dwarf2_build_frame_info): Only call parse_frame_info for 
8201         .debug_frame and .eh_frame.
8202         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8203         fixed augmentation handling, added relative addressing, 
8204         ignore duplicate FDEs. Added comments.
8205         * dwarf2cfi.c: Reindented.
8206         
8207 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8208
8209         * event-top.c (command_handler): Don't use space_at_cmd_start
8210         unless there is sbrk() on the host. Assign time and space data
8211         to union fields of the appropriate length.
8212
8213 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8214
8215         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8216         x86_64_register_name. Return type changed to 'const char *'.
8217         (x86_64_register_name2nr): Rename to x86_64_register_number.
8218         (x86_64_gdbarch_init): Update to reflect the change.
8219         * x86-64-tdep.h: Ditto.
8220         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8221         (supply_fpregset): Ditto.
8222
8223 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8224
8225         * regcache.h: Update copyright.
8226         (struct regcache, struct gdbarch): Add opaque declarations.
8227         (current_regcache): Declare global variable.
8228         (regcache_read, regcache_write): Add gdbarch parameter.
8229         (regcache_save, regcache_save_no_passthrough)
8230         (regcache_restore, regcache_restore_no_passthrough)
8231         (regcache_dup, regcache_dup_no_passthrough)
8232         (regcache_cpy, regcache_cpy_no_passthrough)
8233         (deprecated_grub_regcache_for_registers)
8234         (deprecated_grub_regcache_for_register_valid)
8235         (regcache_valid_p): Add function declarations.
8236         
8237         * regcache.c: Update copyright.
8238         (regcache_descr_handle): New global variable.
8239         (struct regcache_descr): Define.
8240         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8241         (regcache_descr, xfree_regcache_descr): New functions.
8242         (struct regcache): Define.
8243         (regcache_xmalloc, regcache_xfree): New functions.
8244         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8245         (regcache_dup, regcache_dup_no_passthrough): New functions.
8246         (regcache_valid_p, regcache_read_as_address): New functions.
8247         (deprecated_grub_regcache_for_registers): New function.
8248         (deprecated_grub_regcache_for_register_valid): New function.
8249         (current_regcache): New global variable.
8250         (register_buffer): Add regcache parameter.  Update calls.
8251         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8252         (read_register_gen, write_register_gen): Update register_buffer
8253         call.  Test for legacy_p instead of gdbarch_register_read_p or
8254         gdbarch_register_write_p.
8255         (regcache_collect): Update register_buffer call.
8256         (build_regcache): Rewrite.  Use deprecated grub functions.
8257         (regcache_save, regcache_save_no_passthrough): New functions.
8258         (regcache_restore, regcache_restore_no_passthrough): New
8259         functions.
8260         (_initialize_regcache): Create the regcache_data_handle. Swap
8261         current_regcache global variable.
8262         
8263         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8264         parameter to regcache_read and regcache_write calls.
8265         (sh4_register_read): Ditto.
8266         (sh64_pseudo_register_read): Ditto.
8267         (sh64_register_read): Ditto.
8268         (sh_pseudo_register_write): Ditto.
8269         (sh4_register_write): Ditto.
8270         (sh64_pseudo_register_write): Ditto.
8271         (sh64_register_write): Ditto.
8272
8273         * defs.h (XCALLOC): Define.
8274
8275 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8276
8277         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8278         * m68k-tdep.c (m68k_gdbarch_init): Added.
8279         (m68k_dump_tdep): Added.
8280
8281 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8282
8283         * ada-lang.c (fill_in_ada_prototype): Update comment.
8284
8285 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8286
8287         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8288         MIPS_ABI_LAST.
8289         (mips_abi_string, mips_abi_strings): New.
8290         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8291         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8292         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8293         O32 if no ABI is found.
8294         (mips_dump_tdep): Use mips_abi_strings.
8295         (mips_abi_update): New function.
8296         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8297         ``set mips abi'' and ``show mips abi''.  Check the size of
8298         mips_abi_strings.
8299
8300 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8301
8302         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8303         constant.
8304
8305 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8306
8307         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8308         current frame using only the first stack size adjustment. All
8309         subsequent size adjustments are not considered to be part of
8310         the "static" part of the current frame.
8311         Compute the address of the saved registers relative to the
8312         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8313         in use in this frame.
8314
8315 2002-06-18  Don Howard  <dhoward@redhat.com>
8316  
8317         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8318         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8319         suggesting this solution.
8320
8321 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8322
8323         * config/romp/xm-rtbsd.h: Delete file.
8324         * config/romp/rtbsd.mh: Delete file.
8325
8326 2002-06-18  Keith Seitz  <keiths@redhat.com>
8327
8328         * breakpoint.c (condition_command): Post breakpoint_modify
8329         when a condition is added to an existing breakpoint.
8330         (commands_command): Likewise for commands.
8331         (set_ignore_count): Likewise for ignore counts.
8332         If no tty, do not simply return, still need to send event
8333         notification.
8334         (ignore_command): Only print a newline if the command came
8335         from a tty.
8336         Don't call breakpoints_changed, since this is now properly
8337         handled by set_ignore_count.
8338
8339 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8340
8341         * MAINTAINERS: Note that cris-elf target can be compiled with
8342         -Werror.
8343         * cris-tdep.c (cris_register_name): Make return type constant.
8344         (cris_breakpoint_from_pc): Ditto.
8345
8346 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8347
8348         * frame.h (struct frame_info): Change type of context to 
8349         'struct context'.
8350
8351 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8352
8353         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8354         pointer.
8355         * gdbarch.h, gdbarch.c: Regenerate.
8356         * config/mips/tm-mips.h (mips_register_name): Update.
8357         * i386-tdep.h (i386_register_name): Update.
8358         * mips-tdep.c (mips_register_name): Update
8359         * alpha-tdep.c (alpha_register_name): Update.
8360         * arch-utils.c (legacy_register_name): Update.
8361         * arch-utils.h (legacy_register_name): Update.
8362         * avr-tdep.c (avr_register_name): Update.
8363         * ia64-tdep.c (ia64_register_name): Update.
8364         * i386-tdep.c (i386_register_name): Update.
8365         * sparc-tdep.c (sparc32_register_name): Update.
8366         (sparc64_register_name): Update.
8367         (sparclite_register_name): Update.
8368         (sparclet_register_name): Update.
8369         * sh-tdep.c (sh_generic_register_name): Update.
8370         (sh_sh_register_name): Update.
8371         (sh_sh3_register_name): Update.
8372         (sh_sh3e_register_name): Update.
8373         (sh_sh_dsp_register_name): Update.
8374         (sh_sh3_dsp_register_name): Update.
8375         (sh_sh4_register_name): Update.
8376         (sh_sh64_register_name): Update.
8377         * s390-tdep.c (s390_register_name): Update.
8378         * rs6000-tdep.c (rs6000_register_name): Update.
8379         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8380         (ns32k_register_name_32382): Update.
8381         * d10v-tdep.c (d10v_ts2_register_name): Update.
8382         (d10v_ts3_register_name): Update.
8383         * xstormy16-tdep.c (xstormy16_register_name): Update.
8384         * vax-tdep.c (vax_register_name): Update.
8385         * v850-tdep.c (v850_register_name): Update.
8386         * m68hc11-tdep.c (m68hc11_register_name): Update.
8387         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8388         (am33_register_name): Update.
8389
8390 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8391
8392         * m68k-tdep.c: Reindented.
8393
8394 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8395
8396         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8397         list of predefined types.
8398
8399 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8400
8401         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8402         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8403         REGISTER_CONVERT_TO_RAW): Remove defines.
8404         (i386_register_virtual_type, i386_register_convertible,
8405         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8406         Remove prototypes.
8407         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8408         macros mentioned above.
8409
8410         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8411         (i386lynx_saved_pc_after_call): Remove prototype.
8412         * i386ly-tdep.c: Include "i386-tdep.h".
8413         (i386lynx_saved_pc_after_call): Make static.  Use
8414         read_memory_nobpt instead of read_memory.  Use
8415         read_memory_unsigned_integer instead of read_memory_integer.
8416         (i386lynx_init_abi): New function.
8417         (i386lynx_coff_osabi_sniffer): New function.
8418         (_initialize_i386bsd_tdep): New function.
8419
8420         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8421         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8422         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8423         (i386_fix_call_dummy): Remove prototype.
8424         * i386-tdep.c (i386_call_dummy_words): New variable.
8425         (i386_gdbarch_init): Adjust for removal of the
8426         macros mentioned above.
8427
8428 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8429
8430         * command.h (add_setshow_auto_boolean_cmd): Replace
8431         add_set_auto_boolean_cmd.
8432         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8433         add_set_auto_boolean_cmd.
8434         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8435         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8436         mask-address'' command.
8437         (show_mask_address): Add cmd parameter.
8438         * remote.c (add_packet_config_cmd): Update.  Change type of
8439         set_func and show_func to cmd_sfunc_ftype.
8440         (_initialize_remote): Update `set remote Z-packet'
8441         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8442         (show_remote_protocol_e_packet_cmd): Ditto.
8443         (show_remote_protocol_E_packet_cmd): Ditto.
8444         (show_remote_protocol_P_packet_cmd): Ditto.
8445         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8446         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8447         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8448         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8449         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8450         (show_remote_protocol_Z_packet_cmd): Ditto.
8451         (show_remote_protocol_binary_download_cmd): Ditto.
8452         (show_remote_cmd): Pass NULL to all of above.
8453
8454 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8455
8456         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8457         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8458         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8459         POP_FRAME): Remove defines.
8460         (i386_push_arguments, i386_store_struct_return,
8461         i386_extract_return_value, i386_store_return_value,
8462         i386_extract_struct_value_address, i386_push_dummy_frame,
8463         i386_pop_frame): Renove prototypes.
8464         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8465         macros mentioned above.
8466
8467 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8468
8469         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8470         add_set_boolean_cmd.
8471         (add_setshow_cmd): New function.
8472         * command.h (add_setshow_boolean_cmd): Replace
8473         add_set_boolean_cmd.
8474         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8475         and ``set rdiromatzero''.
8476         * maint.c (_initialize_maint_cmds): Update commented out code.
8477         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8478         * target.c (initialize_targets): Update `set
8479         trust-readonly-sections'.
8480         * remote.c (_initialize_remote): Update `set remotebreak'.
8481
8482 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8483
8484         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8485         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8486         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8487         fit into multi-arch framework.
8488         (i386_breakpoint_from_pc): New function.
8489         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8490         above.
8491
8492         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8493         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8494         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8495         (i386_frameless_function_invocation, i386_frame_num_args,
8496         i386_frame_init_saved_regs): Remove prototypes.
8497         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8498         macros mentioned above.
8499
8500 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8501
8502         * cli/cli-decode.c (set_cmd_cfunc): Update.
8503         (set_cmd_sfunc): Update.
8504         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8505         (set_cmd_sfunc, set_cmd_cfunc): Update.
8506         * cli/cli-decode.h: Update.
8507
8508 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8509
8510         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8511         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8512
8513 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8514
8515         * defs.h (auto_boolean): Declare enum.
8516         * command.h (cmd_auto_boolean): Delete enum.
8517         * mips-tdep.c (mask_address_var): Update.
8518         (mips_mask_address_p): Update.
8519         (show_mask_address): Update.
8520         * remote.c (struct packet_config): Update.
8521         (update_packet_config): Update.
8522         (show_packet_config_cmd): Update.
8523         (packet_ok): Update.
8524         (add_packet_config_cmd): Update.
8525         (_initialize_remote): 
8526         * command.h: Update.
8527         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8528         (do_setshow_command): Update.
8529         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8530         * cli/cli-decode.h: Update.
8531
8532 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8533
8534         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8535         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8536         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8537         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8538         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8539         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8540
8541         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8542         list of DJGPP COFF targets.
8543
8544         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8545         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8546         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8547         (FP0_REGNUM): Remove define.
8548         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8549         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8550         (i386_register_virtual_size): Remove protoype.
8551         * i386-tdep.c (i386_register_virtual_size): Removed.
8552         (i386_extract_return_value, i386_store_return_value): Use
8553         FP0_REGNUM instead of NUM_FREGS to determine whether the
8554         floating-point registers are available.
8555         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8556         Adjust for removal of macros mentioned above.
8557
8558 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8559
8560         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8561         comments.
8562         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8563         Remove prototypes.
8564         (supply_gregset, fill_gregset): Remove use of register keyword and
8565         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8566         NUM_REGS and NUM_FREGS.
8567         (FPREGSET_FSAVE_OFFSET): Remove.
8568         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8569         NUM_FREGS to determine whether the floating-point registers are
8570         available.
8571
8572         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8573         gnu_store_registers): Replace usage of NUM_GREGS with
8574         I386_NUM_GREGS.
8575
8576         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8577         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8578         usage of NUM_GREGS with I386_NUM_GREGS.
8579
8580         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8581
8582         * i386bsd-nat.c: Include "i386-tdep.h".
8583         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8584         I386_NUM_GREGS.
8585
8586         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8587         and associated comment.  They no longer make any sense, since we
8588         don't use this file anymore on Linux.
8589
8590         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8591         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8592         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8593         elements in these arrays.
8594         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8595         MAX_NUM_REGS.
8596
8597 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8598
8599         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8600         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8601
8602 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8603
8604         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8605         EXTRACT_RETURN_VALUE.
8606         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8607         EXTRACT_STRUCT_VALUE_ADDRESS.
8608         * gdbarch.h, gdbarch.c: Regenerate.
8609         
8610         * values.c (value_being_returned): Handle
8611         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8612         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8613
8614         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8615         * arm-tdep.c (arm_gdbarch_init): Update.
8616         * avr-tdep.c (avr_gdbarch_init): Update.
8617         * cris-tdep.c (cris_gdbarch_init): Update.
8618         * d10v-tdep.c (d10v_gdbarch_init): Update.
8619         * ia64-tdep.c (ia64_gdbarch_init): Update.
8620         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8621         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8622         * s390-tdep.c (s390_gdbarch_init): Update.
8623         * sh-tdep.c (sh_gdbarch_init): Update.
8624         * s390-tdep.c (s390_gdbarch_init): Update.
8625         * sparc-tdep.c (sparc_gdbarch_init): Update.
8626         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8627         * v850-tdep.c (v850_gdbarch_init): Update.
8628         * vax-tdep.c (vax_gdbarch_init): Update.
8629         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8630         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8631
8632         * config/arc/tm-arc.h: Update.
8633         * config/d30v/tm-d30v.h: Update.
8634         * config/fr30/tm-fr30.h: Update.
8635         * config/h8300/tm-h8300.h: Update.
8636         * config/h8500/tm-h8500.h: Update.
8637         * config/i386/tm-i386.h: Update.
8638         * config/i386/tm-ptx.h: Update.
8639         * config/i386/tm-symmetry.h: Update.
8640         * config/i960/tm-i960.h: Update.
8641         * config/m32r/tm-m32r.h: Update.
8642         * config/m68k/tm-delta68.h: Update.
8643         * config/m68k/tm-linux.h: Update.
8644         * config/m68k/tm-m68k.h: Update.
8645         * config/m88k/tm-m88k.h: Update.
8646         * config/mcore/tm-mcore.h: Update.
8647         * config/mips/tm-mips.h: Update.
8648         * config/mn10200/tm-mn10200.h: Update.
8649         * config/pa/tm-hppa.h: Update.
8650         * config/pa/tm-hppa64.h: Update.
8651         * config/sparc/tm-sp64.h: Update.
8652         * config/sparc/tm-sparc.h: Update.
8653         * config/sparc/tm-sparclet.h: Update.
8654         * config/z8k/tm-z8k.h: Update.
8655
8656 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8657
8658         * Makefile.in (i386_linux_tdep_h): Define.
8659         (i386_tdep_h, i387_tdep_h): Define.
8660         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8661         $(i386_tdep_h) and $(i387_tdep_h).
8662         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8663
8664 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8665
8666         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8667         Already covered by the default.
8668
8669         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8670         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8671         (i386_gdbarch_init): Initialize long_double_format and long_double
8672         bit.
8673
8674         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8675         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8676         Move these to ...
8677         * config/i386/i386sol2.mh: ... here.
8678         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8679         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8680         (SIGCONTEXT_PC_OFFSET): Remove define.
8681         (IN_SIGTRAMP): Remove define.
8682         * i386-sol2-tdep.c: New file.
8683         
8684         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8685         * config/i386/tm-i386nw.h: Removed.
8686
8687         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8688         USE_STRUCT_CONVENTION): Remove defines.
8689         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8690         (get_longjmp_target): Remove prototype.
8691         (IN_SIGTRAMP): Remove define.
8692         (i386bsd_in_sigtramp): Remove prototype.
8693         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8694         function.  Update comment accordingly
8695         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8696         (FRAME_SAVED_PC): Remove define.
8697         (i386bsd_frame_saved_pc): Remove prototype.
8698         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8699         GET_LONGJMP_TARGET): Remove defines.
8700         (get_longjmp_target): Remove prototype.
8701         (IN_SIGTRAMP): Remove define.
8702         (i386bsd_in_sigtramp): Remove prototype.
8703         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8704         function.  Update comment accordingly
8705         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8706         (FRAME_SAVED_PC): Remove define.
8707         (i386bsd_frame_saved_pc): Remove prototype.
8708         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8709         Remove prototype.
8710         (USE_STRUCT_CONVENTION): Remove prototype.
8711         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8712         declaration.
8713         (_initialize_i386bsd_nat): Revise logic to determine some
8714         constants at compile time when compiling a native GDB.  Warn if
8715         things don't match up with what we expect.
8716         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8717         Remove variables.
8718         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8719         to use date stored in `struct gdbarch_tdep'.
8720         (i386bsd_sigcontext_offset): Remove varaible.
8721         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8722         stored in `struct gdbarch_tdep'.
8723         (i386bsd_frame_saved_pc): Make static.
8724         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8725         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8726         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8727         i386fbsd4_sc_pc_offset): New variables.
8728         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8729         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8730         functions.
8731         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8732         functions.
8733         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8734         Modify the value of i386fbsd_sigtramp_start and
8735         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8736         i386fbsd_sigtramp_end.
8737         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8738         function.
8739
8740         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8741         define to i386-linux-tdep.h.
8742         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8743         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8744         defines.
8745         (i386_linux_register_name, i386_linux_register_byte,
8746         i386_linux_register_raw_size): Remove prototypes.
8747         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8748         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8749         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8750         TARGET_WRITE_PC): Remove defines.
8751         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8752         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8753         i386_linux_write_pc): Remove prototypes.
8754         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8755         (get_longjmp_target): Remove prototype.
8756         * i386-linux-tdep.h: New file.
8757         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8758         * i386-linux-tdep.c: Include "i386-tdep.h" and
8759         "i386-linux-tdep.h".
8760         (i386_linux_register_name, i386_linux_register_byte,
8761         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8762         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8763         Make static.
8764         (i386_linux_init_abi): New function.
8765         (_initialize_i386_linux_tdep): New function.
8766
8767         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8768         (i386_saved_pc_after_call): Remove prototype.
8769         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8770         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8771         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8772         (i386_register_name, i386_stab_reg_to_regnum,
8773         i386_dwarf_reg_to_regnum): Remove prototypes.
8774         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8775         SIZEOF_SSE_REGS): Remove defines.
8776         (REGISTER_BYTES): Remove define.
8777         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8778         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8779         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8780         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8781         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8782         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8783         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8784         (get_longjmp_target): Remove prototype.
8785         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8786         (sigtramp_saved_pc): Remove define.
8787         (i386v4_sigtramp_saved_pc): Remove prototype.
8788         * config/i386/tm-go32.h (FRAME_CHAIN,
8789         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8790         (i386go32_frame_saved_pc): Remove prototype.
8791         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8792         (get_longjmp_target): Remove prototype.
8793         * i386-tdep.h: Include "osabi.h".
8794         (enum i386_abi): Removed.
8795         (enum struct_return): New enum.
8796         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8797         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8798         sc_pc_offset members.
8799         (i386_gdbarch_register_os_abi): Remove prototype.
8800         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8801         I386_SSE_NUM_REGS): New defines.
8802         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8803         I386_SSE_SIZEOF_REGS): New defines.
8804         (i386_register_name, i386_register_byte, i386_register_raw_size):
8805         New prototypes.
8806         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8807         (i386bsd_sigtramp_saved_pc): New prototype.
8808         * i386-tdep.c: Don't include "elf-bfd.h".
8809         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8810         i386_frame_chain, i386_saved_pc_after_call): Make static.
8811         (i386_frame_saved_pc): Rewrite to call architecture dependent
8812         function to deal with signal handlers.  Make static.
8813         (i386go32_frame_saved_pc): Removed.
8814         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8815         Removed.
8816         (i386_get_longjmp_target): New function.
8817         (default_struct_convention, pcc_struct_convention,
8818         reg_struct_convention, valid_conventions, struct_convention): New
8819         variables.
8820         (i386_use_struct_convention): New function.
8821         (i386v4_sigtramp_saved_pc): Renamed to
8822         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8823         (i386_pc_in_sigtramp): New function.
8824         (i386_abi_names): Removed.
8825         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8826         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8827         Removed.
8828         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8829         i386_gdbarch_register_os_abi): Removed.
8830         (struct i386_abi_handler): Removed.
8831         (i386_abi_handler_list): Removed.
8832         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8833         functions.
8834         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8835         i386_nw_init_abi): New functions.
8836         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8837         Use set_gdbarch_xxx() calls instead of relying on macros for a
8838         number of calls.
8839         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8840         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8841         Register the various architecture variants defined in this file.
8842
8843 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8844
8845         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8846         (struct main_type): Remove arg_types member.  Update comments for
8847         struct field.
8848         (TYPE_ARG_TYPES): Remove.
8849         (TYPE_FN_FIELD_ARGS): Update.
8850         (smash_to_method_type): Update prototype.
8851
8852         * c-typeprint.c (cp_type_print_method_args): Take method type
8853         instead of argument list.  Use new argument layout.  Simplify.
8854         (c_type_print_args): Use new argument layout.  Simplify.
8855         (c_type_print_base): Update call to cp_type_print_method_args.
8856         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8857         argument; use die->type instead.  Update call to
8858         smash_to_method_type.
8859         (read_structure_scope): Update call to dwarf2_add_member_fn.
8860         * gdbtypes.c (allocate_stub_method): Update comment.
8861         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8862         Use new argument layout.
8863         (check_stub_method): Use new argument layout.  Don't count
8864         void as an argument.
8865         (print_arg_types): Update comments.  Use new argument layout.
8866         (recursive_dump_type): Don't print arg_types member.
8867         * hpread.c (hpread_read_struct_type): Use new argument layout.
8868         (fixup_class_method_type): Likewise.
8869         (hpread_type_lookup): Likewise.
8870         * stabsread.c (read_type): Update calls to read_args and
8871         smash_to_method_type.
8872         (read_args): Use new argument layout.  Simplify.
8873         * valops.c (typecmp): Use new argument layout.  Update parameters
8874         and comments.  Simplify.
8875         (hand_function_call): Use new argument layout.
8876         (search_struct_method): Update call to typecmp.
8877         (find_overload_match): Use new argument layout.
8878
8879 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8880
8881         * NEWS: Mention multithreaded debug support for gdbserver.
8882
8883 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8884
8885         * MAINTAINERS: Mention NEWS.
8886
8887 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8888
8889         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8890         (struct mips_objfile_private, compare_pdr_entries): New.
8891         (non_heuristic_proc_desc): Read the ".pdr" section if it
8892         is present.
8893
8894 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8895
8896         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8897         (arm_debug): New static variable.
8898         (_initialize_arm_tdep): Add ``set debug arm'' command.
8899
8900 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8901
8902         * Makefile.in (sim_arm_h): Define.
8903         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8904         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8905         (arm_register_sim_regno): New function, map an internal REGNUM
8906         onto a simulator register number.
8907         (arm_gdbarch_init): Set register_sim_regno.
8908
8909 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8910
8911         * MAINTAINERS: Add self.
8912
8913 2002-06-11  Jim Blandy  <jimb@redhat.com>
8914
8915         * source.c (source_info): Mention whether the symtab has
8916         information about preprocessor macros.
8917
8918         Call the command `info macro', not `show macro'.
8919         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8920         Fix error message.
8921         (_initialize_macrocmd): Register `info_macro_command' in
8922         `infolist', not `showlist'.
8923
8924 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8925
8926         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8927         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8928         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8929         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8930         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8931         unconditionally.
8932         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8933         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8934         (_initialize_mips_tdep): Remove dead code.
8935         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8936         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8937         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8938         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8939         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8940         MIPS_LAST_FP_ARG_REGNUM): Remove.
8941
8942 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8943
8944         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8945         (unwind_tmp_obstack_free, parse_frame_info)
8946         (update_context, cfi_read_fp, cfi_write_fp)
8947         (cfi_frame_chain, cfi_init_extra_frame_info)
8948         (cfi_virtual_frame_pointer): Use the above function.
8949         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8950
8951 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8952
8953         * v850-tdep.c (v850_type_is_scalar): New function.
8954         (v850_use_struct_convention): Match current gcc implementation
8955         as close as possible.
8956         (v850_push_arguments): Fix stack_offset handling.  Don't write
8957         struct_addr into register.  This is done by v850_store_struct_return.
8958         (v850_extract_return_value): Care for structs.
8959         (v850_store_return_value): Ditto.
8960         (v850_store_struct_return): Actually write address.
8961
8962 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8963
8964         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8965         without debug information too.
8966
8967 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8968
8969         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8970         Make multi-arch pure.
8971         * gdbarch.h, gdbarch.c: Re-generate.
8972         * arm-tdep.c (arm_print_float_info): Update.
8973         * arch-utils.h (default_print_float_info): Update.
8974         * arch-utils.c (default_print_float_info): Update.
8975         * infcmd.c (float_info): Update call.
8976
8977 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8978
8979         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8980         the front of the initialize list.
8981
8982 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8983
8984         * infrun.c (struct inferior_status): Replace fields
8985         selected_frame_address and selected_level with field
8986         selected_frame_id.
8987         (save_inferior_status): Update.  Use get_frame_id.
8988         (struct restore_selected_frame_args): Delete.
8989         (restore_selected_frame): Update.  Use frame_find_by_id.
8990         (restore_inferior_status): Update.
8991
8992         * breakpoint.h (struct breakpoint): Change type of
8993         watchpoint_frame to frame_id.
8994         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8995         call to get_current_frame.
8996         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8997         get_current_frame.
8998         (watchpoint_check): Use frame_find_by_id.
8999
9000         * frame.h (record_selected_frame): Delete declaration.
9001         * stack.c (record_selected_frame): Delete function.
9002         
9003         * frame.h (struct frame_id): Define.
9004         (get_frame_id): Declare.
9005         (frame_find_by_id): Declare.
9006         * frame.c (frame_find_by_id): New function.
9007         (get_frame_id): New function.
9008
9009 2002-06-10  Andrey Volkov <avolkov@transas.com>
9010
9011         * ser-e7kpc.c: Fix duplicated define and call of 
9012         _initialize_ser_e7000pc
9013             
9014 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9015
9016         * signals/signals.c (target_signal_from_host): Fix #ifdef
9017         SIGRTMIN case.
9018         (do_target_signal_to_host): Likewise.
9019
9020 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9021
9022         * mips-tdep.c (mips_find_abi_section): New function.
9023         (mips_gdbarch_init): Call it.
9024
9025 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9026
9027         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9028         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9029         after Andrew's 2002-06-08 gdbarch change.
9030
9031 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9032
9033         * i386-linux-nat.c (suppy_gregset): Don't supply
9034         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9035         register cache.
9036         (fill_gregset): Don't fetch it under the same circumstances.
9037
9038 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9039
9040         * Makefile.in (callback_h): Define.
9041         (remote_sim_h): Update path to remote-sim.h.
9042         (remote-rdp.o): Add $(callback_h).
9043         (remote-sim.o): Use $(callback_h).
9044         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9045         * remote-rdp.c: Include "gdb/callback.h".
9046
9047 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9048
9049         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9050         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9051
9052 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9053
9054         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9055         * rdi-share/serpardr.c: Ditto.
9056         * rdi-share/unixcomm.c: Ditto.
9057         * rdi-share/serdrv.c: Ditto.
9058         * rdi-share/hostchan.h: Ditto.
9059         * rdi-share/hostchan.c: Ditto.
9060         * rdi-share/host.h: Ditto.
9061         * rdi-share/devsw.c: Ditto.
9062
9063         * objfiles.h: Change type of obj_private to void pointer.
9064         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9065         strcmp instead of STREQ, use LONGEST, do not use PTR
9066         * somsolib.c: Ditto.
9067
9068         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9069         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9070         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9071
9072 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9073
9074         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9075         (default_get_saved_register): Delete function.
9076         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9077         generic_unwind_get_saved_register.
9078         * gdbarch.h, gdbarch.c: Re-generate.
9079         
9080 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9081
9082         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9083         generic_func_frame_chain_valid.
9084         * gdbarch.h, gdbarch.c: Re-generate.
9085         * blockframe.c (generic_func_frame_chain_valid): Only check
9086         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9087         passing FP to PC_IN_CALL_DUMMY.
9088         Fix PR gdb/360.
9089
9090 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9091
9092         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9093         (register_gdbarch_data): Initialize init_p.
9094         (gdbarch_data): Initialize data pointer using the init function.
9095         (init_gdbarch_data): Delete function.
9096         (gdbarch_update_p): Update.
9097         (initialize_non_multiarch): Update.
9098         (struct gdbarch): Add field initialized_p.
9099         * gdbarch.h, gdbarch.c: Re-generate.
9100
9101 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9102
9103         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9104         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9105         better do the things actually here.
9106         * x86-64-tdep.c (x86_64_register_name2nr): New.
9107         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9108         (x86_64_gdbarch_init): Respect the above change.
9109         * x86-64-tdep.h (x86_64_register_name2nr)
9110         (x86_64_register_nr2name): Add prototypes.
9111         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9112
9113 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9114
9115         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9116         Delete extra braces and re-indent.
9117         (d10v_store_return_value): Char return values
9118         must be shifted over by one byte in R0.
9119         (d10v_extract_return_value): Delete extra braces, re-indent.
9120
9121 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9122
9123         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9124         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9125         (d10v_integer_to_address): Rewrite.
9126         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9127         the d10v specific functions which take care of converting to the
9128         correct space.
9129
9130 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9131
9132         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9133         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9134
9135 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9136
9137         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9138         includes.
9139         * config/tm-linux.h: Ditto.
9140         * config/alpha/tm-alphalinux.h: Ditto.
9141         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9142         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9143         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9144         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9145         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9146         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9147         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9148         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9149         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9150         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9151         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9152         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9153         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9154         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9155         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9156         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9157         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9158         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9159         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9160         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9161         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9162         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9163         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9164         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9165         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9166         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9167         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9168         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9169         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9170         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9171         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9172         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9173         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9174         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9175         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9176         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9177         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9178
9179 2002-05-04  Aidan Skinner <aidan@velvet.net>
9180
9181         * ada-exp.tab.c: New file
9182         * ada-exp.y: New file
9183         * ada-lang.c: New file
9184         * ada-lang.h: New file
9185         * ada-lex.c: New file
9186         * ada-lex.l: New file
9187         * ada-tasks.c: New file
9188         * ada-typeprint.c: New file
9189         * ada-valprint.c: New file
9190         
9191 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9192
9193         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9194         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9195
9196 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9197
9198         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9199         insetead of ppc-linux-tdep.o.
9200         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9201         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9202
9203 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9204
9205         2002-05-07 Christian Groessler <chris@groessler.org>
9206         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9207         bit register contents for little endian hosts.
9208
9209 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9210
9211         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9212         any maintainer.
9213
9214 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9215
9216         * gdbarch.h: Regenerate.
9217
9218 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9219
9220         * MAINTAINERS: Add everyone to write-after-approval list.
9221
9222 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9223
9224         * stack.c (frame_info): Use frame_register_unwind instead of
9225         saved_regs.  Mention when the SP is on the stack or in a register.
9226
9227         * frame.h (frame_register_unwind_ftype): Define.  Document.
9228         (struct frame_info): Add field register_unwind and
9229         register_unwind_cache.
9230         (frame_register_unwind): Declare.
9231         (generic_unwind_get_saved_register): Declare.
9232
9233         * frame.c (frame_register_unwind): New function.
9234         (generic_unwind_get_saved_register): New function.
9235
9236         * blockframe.c (generic_call_dummy_register_unwind): New function.
9237         (frame_saved_regs_register_unwind): New function.
9238         (set_unwind_by_pc): New function.
9239         (create_new_frame): New function.
9240         (get_prev_frame): New function.
9241
9242 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9243
9244         * a29k-share/: Delete directory.
9245         * remote-vx29k.c: Delete file.
9246
9247 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9248
9249         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9250         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9251
9252 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9253
9254         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9255         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9256         (sparc64nbsd-nat.o)
9257         (sparcnbsd-nat.o)
9258         (sparcnbsd-tdep.o): New dependency lists.
9259         * NEWS: Note new UltraSPARC NetBSD native configuration.
9260         * configure.host (sparc64-*-netbsd*): New host.
9261         * configure.tgt (sparc-*-netbsdelf*)
9262         (sparc-*-netbsd*): Set gdb_target to nbsd.
9263         (sparc64-*-netbsd*): New target.
9264         * sparc64nbsd-nat.c: New file.
9265         * sparcnbsd-nat.c: New file.
9266         * sparcnbsd-tdep.c: New file.
9267         * sparcnbsd-tdep.h: New file.
9268         * config/sparc/nbsd.mt: New file.
9269         * config/sparc/nbsd64.mh: New file.
9270         * config/sparc/nbsd64.mt: New file.
9271         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9272         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9273         (HOST_IPC): Remove.
9274         * config/sparc/nbsdaout.mt: Remove.
9275         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9276         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9277         (HOST_IPC): Remove.
9278         * config/sparc/nbsdelf.mt: Remove.
9279         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9280         sparc-nat.c compatiblity defines.
9281         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9282         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9283         * config/sparc/tm-nbsd64.h: New file.
9284         * config/sparc/tm-nbsdaout.h: Remove.
9285         * config/sparc/xm-nbsd.h: Remove.
9286
9287 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9288
9289         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9290         * sparc-tdep.c: Include osabi.h.
9291         (gdbarch_tdep): Add osabi member.
9292         (_initialize_sparc_tdep): Use gdbarch_register.
9293         (sparc_gdbarch_init): Use generic OS ABI framework.
9294         (sparc_dump_tdep): New function.
9295
9296 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9297
9298         * corefile.c (do_captured_read_memory_integer): Return non-zero
9299         result.
9300         (safe_read_memory_integer): Copy result of memory read when
9301         status is non-zero.  Also, add comments.
9302
9303 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9304
9305         * Makefile.in (ppc_tdep_h): Define.
9306         (ppc-linux-nat.o)
9307         (ppc-linux-tdep.o)
9308         (rs6000-tdep.o): Use $(ppc_tdep_h).
9309         (ppc-sysv-tdep.o)
9310         (ppcnbsd-nat.o)
9311         (ppcnbsd-tdep.o): New dependency lists.
9312         * ppc-tdep.h: Use generic OS ABI framework.
9313         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9314         (ppc_linux_init_abi): New functions.
9315         (ppc_sysv_abi_broken_use_struct_convention)
9316         (ppc_sysv_abi_use_struct_convention)
9317         (ppc_sysv_abi_push_arguments): Move to...
9318         * ppc-sysv-tdep.c: ...here.
9319         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9320         * rs6000-tdep.c (process_note_abi_tag_sections)
9321         (get_elfosabi): Remove.
9322         (rs6000_gdbarch_init): Use generic OS ABI framework.
9323         (rs6000_dump_tdep): New function.
9324         (_initialize_rs6000_tdep): Use gdbarch_register.
9325         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9326         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9327         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9328         of ppc-linux-tdep.o.
9329         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9330         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9331         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9332         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9333         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9334         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9335
9336 2002-05-29  Jim Blandy  <jimb@redhat.com>
9337
9338         * macroscope.c (default_macro_scope): Put `void' in empty argument
9339         list.
9340
9341 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9342
9343         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9344         * arch-utils.c: Include "sim-regno.h".
9345         * gdbarch.sh: Don't include "sim-regno.h".
9346         * gdbarch.h, gdbarch.c: Regenerate.
9347         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9348         here.
9349         * arch-utils.h (legacy_register_sim_regno): To here.
9350         * remote-sim.c (legacy_register_sim_regno): Move function from
9351         here.
9352         * arch-utils.c (legacy_register_sim_regno): To here.
9353
9354 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9355
9356         * sim-regno.h: New file.
9357         * Makefile.in (sim_regno_h): Define.
9358         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9359         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9360         (legacy_register_sim_regno): New function.
9361         (one2one_register_sim_regno): New function.
9362         (gdbsim_fetch_register): Rewrite.
9363         (gdbsim_store_register): Only store a register when
9364         REGISTER_SIM_REGNO is valid.
9365         * d10v-tdep.c: Include "sim-regno.h".
9366         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9367         (d10v_ts3_register_sim_regno): Ditto.
9368         * gdbarch.sh: Include "sim-regno.h".
9369         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9370         * gdbarch.h, gdbarch.c: Regenerate.
9371         * arch-utils.h (default_register_sim_regno): Delete declaration.
9372         * arch-utils.c (default_register_sim_regno): Delete function.
9373
9374 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9375
9376         * ppcnbsd-nat.c: Rewrite.
9377         * ppcnbsd-tdep.c: New file.
9378         * ppcnbsd-tdep.h: New file.
9379         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9380         solib.o, and solib-svr4.o.
9381         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9382         nbsd-tdep.o, and corelow.o.
9383
9384 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9385
9386         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9387         `tr' and `sed'.  Mention that `broken' targets are not expected to
9388         build.
9389
9390 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9391
9392         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9393         Let PC point right after the prologue before looking up symbols.
9394         
9395 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9396
9397         * i386-tdep.c (i386_register_virtual_type): Return 
9398         builtin_type_vec128i for SSE registers.
9399
9400         * gdbtypes.h (builtin_type_vec128i): Declare.
9401
9402         * gdbtypes.c (build_builtin_type_vec128i): New function.
9403         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9404         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9405         (build_gdbtypes): Initialize new builtin vector types.
9406         (_initialize_gdbtypes): Register new vector types with gdbarch.
9407
9408 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9409
9410         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9411         since it has been multi-arch'd.
9412         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9413         Move Alpha and VAX multi-arch news entries to same section
9414         as other multi-arch news.
9415
9416 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9417
9418         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9419         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9420         static.  Rename some register numbers to put them in ns32k-tdep
9421         private namespace.
9422         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9423         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9424         functions.
9425         (_initialize_ns32k_tdep): Use gdbarch_register.
9426         * ns32k-tdep.h: New file.
9427         * ns32knbsd-tdep.c: New file.
9428         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9429         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9430         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9431         REGISTER_BYTES, REGISTER_BYTE): Remove.
9432         * config/ns32k/tm-ns32k.h: New file.
9433         * config/ns32k/tm-umax.h: Remove.
9434
9435 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9436
9437         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9438         ns32k_store_struct_return, ns32k_extract_return_value,
9439         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9440         functions.
9441         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9442         ns32k_saved_pc_after_call.
9443         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9444         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9445         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9446         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9447         ns32k_extract_struct_value_address.
9448
9449 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9450
9451         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9452         ns32k_fix_call_dummy): New.
9453         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9454         ns32k_call_dummy_words.
9455         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9456         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9457         CALL_DUMMY_NARGS): Remove.
9458         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9459
9460 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9461
9462         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9463         ns32k_frame_saved_pc, ns32k_frame_args_address,
9464         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9465         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9466         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9467         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9468         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9469         (BREAKPOINT): Remove..
9470         (FRAME_CHAIN): Define as ns32k_frame_chain.
9471         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9472         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9473         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9474         (FRAME_FIND_SAVED_REGS): Remove.
9475         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9476         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9477         (POP_FRAME): Define as ns32k_pop_frame.
9478
9479 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9480
9481         * ns32k-tdep.c (ns32k_register_byte_32082,
9482         ns32k_register_byte_32382, ns32k_register_raw_size,
9483         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9484         functions.
9485         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9486         ns32k_register_byte_32382.
9487         * config/ns32k/tm-umax.h: Update copyright years.
9488         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9489         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9490         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9491         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9492         (ns32k_get_enter_addr): Fix prototype.
9493
9494 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9495
9496         * ns32k-tdep.c: Update copyright years.
9497         (ns32k_register_name_32082): New function.
9498         (ns32k_register_name_32382): Ditto.
9499         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9500         (REGISTER_NAME): Define as ns32k_register_name_32382.
9501         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9502         (REGISTER_NAME): Define as ns32k_register_name_32082.
9503
9504 2002-05-24  Jim Blandy  <jimb@redhat.com>
9505
9506         * dwarf2read.c (free_line_header): Use xfree, not free.
9507
9508 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9509
9510         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9511         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9512
9513 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9514
9515         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9516
9517 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9518
9519         From Ross Alexander at NEC Europe:
9520         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9521
9522 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9523
9524         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9525         for input, rather than parse_and_eval_address.  
9526
9527 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9528
9529         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9530         * Makefile.in (sim_d10v_h): Update definition.
9531
9532 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9533
9534         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9535         change `2002-05-22 Michael Snyder' below.
9536         (d10v_push_arguments): Ditto.
9537         (d10v_extract_return_value): Ditto.
9538
9539 2002-05-23  Jim Blandy  <jimb@redhat.com>
9540
9541         * macrotab.c (check_for_redefinition): Don't complain if the new
9542         definition is the same as the previous one.  Take more arguments
9543         to allow the comparison.
9544         (macro_define_object, macro_define_function): Pass more arguments
9545         to check_for_redefinition.
9546
9547 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9548
9549         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9550         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9551         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9552         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9553         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9554         Add a temp variable to save a call (and a memory read).
9555         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9556         if possible (so that PC_IN_CALL_DUMMY will work).
9557
9558 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9559
9560         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9561
9562 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9563
9564         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9565         fde->cie_ptr.
9566         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9567         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9568         so that frames of shared libraries are mapped correctly.
9569         (execute_stack_op): Change type of 'result' from ULONGEST to
9570         CORE_ADDR.
9571         
9572 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9573
9574         * config/alpha/tm-nbsd.h: Include solib.h.
9575
9576 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9577
9578         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9579         assumptions about the host's byte order.
9580
9581 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9582
9583         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9584         to dependency list.
9585         * alphanbsd-tdep.c: Include solib-svr4.h.
9586         * shnbsd-tdep.c: Ditto.
9587
9588 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9589
9590         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9591         nbsd-tdep.h to dependency list.
9592         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9593         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9594         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9595         nbsdaout.mh and nbsdelf.mh consistently.
9596         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9597         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9598         nbsdaout.mt and nbsdelf.mh consistently.
9599         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9600         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9601         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9602         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9603         a.out shared library stuff from here...
9604         * config/nm-nbsdaout.h: ...to here.
9605         * config/tm-nbsd.h: Remove.
9606         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9607         * config/arm/nbsd.mh: Remove.
9608         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9609         nbsd-tdep.o.
9610         * config/arm/nbsdaout.mh: New file. 
9611         * config/arm/nbsdelf.mh: New file.
9612         * config/arm/nm-nbsdaout.h: New file.
9613         * config/i386/nbsd.mh: Remove.
9614         * config/i386/nbsd.mt: Remove.
9615         * config/i386/nbsdaout.mh: New file.
9616         * config/i386/nbsdaout.mt: New file.
9617         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9618         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9619         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9620         i386_register_u_addr): Remove.
9621         * config/i386/nm-nbsdaout.h: New file.
9622         * config/i386/nm-nbsdelf.h: Remove.
9623         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9624         (USE_STRUCT_CONVENTION): Remove.
9625         * config/i386/tm-nbsdaout.h: New file.
9626         * config/i386/tm-nbsdelf.h: Remove.
9627         * config/m68k/nbsd.mh: Remove.
9628         * config/m68k/nbsd.mt: Remove.
9629         * config/m68k/nbsdaout.mh: New file.
9630         * config/m68k/nbsdaout.mt: New file. 
9631         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9632         * config/m68k/nm-nbsdaout.h: New file.
9633         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9634         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9635         * config/ns32k/nbsd.mh: Remove.
9636         * config/ns32k/nbsd.mt: Remove. 
9637         * config/ns32k/nbsdaout.mh: New file.
9638         * config/ns32k/nbsdaout.mt: New file.
9639         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9640         * config/ns32k/nm-nbsdaout.h: New file.
9641         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9642         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9643         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9644         (SVR4_SHARED_LIBS): Remove.
9645         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9646         * config/sparc/nbsd.mh: Remove.
9647         * config/sparc/nbsd.mt: Remove.
9648         * config/sparc/nbsdaout.mh: New file.
9649         * config/sparc/nbsdaout.mt: New file.
9650         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9651         * config/sparc/nbsdelf.mt: New file.
9652         * config/sparc/nm-nbsdaout.h: New file.   
9653         * config/sparc/nm-nbsdelf.h: Remove.
9654         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9655         * config/sparc/tm-nbsdaout.h: New file.
9656
9657 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9658
9659         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9660         mipsnbsd-tdep.c
9661         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9662
9663 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9664
9665         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9666         shnbsd-nat.c.
9667         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9668
9669 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9670
9671         * NEWS: Note new MIPS NetBSD native configuration. 
9672         * configure.host (mips*-*-netbsd*): New host. 
9673         * configure.tgt (mips*-*-netbsd*): New target. 
9674         * mipsnbsd-nat.c: New file.
9675         * mipsnbsd-tdep.c: New file.
9676         * mipsnbsd-tdep.h: New file.
9677         * config/mips/nbsd.mh: New file.
9678         * config/mips/nbsd.mt: New file.
9679         * config/mips/nm-nbsd.h: New file.
9680         * config/mips/tm-nbsd.h: New file.
9681
9682 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9683
9684         * Makefile.in (SFILES): Add osabi.c.
9685         (COMMON_OBS): Add osabi.o.
9686         (osabi.o): New dependency list.
9687         * osabi.c: New file.
9688         * osabi.h: New file.
9689         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9690
9691         * Makefile.in (alpha_tdep_h): Define and use instead of
9692         alpha-tdep.h.
9693         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9694         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9695         Remove.
9696         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9697         * alpha-tdep.h: Include osabi.h.
9698         (alpha_abi): Remove.
9699         (gdbarch_tdep): Use generic OS ABI framework.
9700         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9701         gdbarch_register_osabi.
9702         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9703         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9704         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9705
9706         * Makefile.in (sh_tdep_h): Add osabi.h.
9707         * sh-tdep.h (sh_osabi): Remove.
9708         (gdbarch_tdep): Use generic OS ABI framework.
9709         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9710         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9711         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9712         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9713
9714         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9715         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9716         gdbarch_register_osabi.
9717         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9718         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9719         (get_elfosabi): Rename to...
9720         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9721         ABI framework support routines.
9722         (arm_gdbarch_init): Use generic OS ABI framework.
9723         (arm_dump_tdep): Likewise.
9724         (_initialize_arm_tdep): Likewise.
9725         * arm-tdep.h: Include osabi.h.
9726         (arm_abi): Remove.
9727         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9728         osabi member.
9729         (arm_gdbarch_register_os_abi): Remove prototype.
9730         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9731         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9732
9733         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9734         * mips-tdep.c: Include osabi.h.
9735         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9736         OS ABI framework.
9737
9738 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9739
9740         * h8300-tdep.c: Fix formatting.
9741
9742 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9743
9744         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9745         printing vector registers.
9746
9747 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9748
9749         From Fernando Nasser:
9750         * remote.c (remote_async_open_1): Re-throw the exception when the
9751         connection fails.
9752         (remote_cisco_open): Ditto.
9753         (remote_open_1): Ditto.
9754
9755 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9756
9757         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9758         (remote_start_remote): Add uiout parameter.  Pass through to
9759         remote_start_remote_dummy.
9760         (remote_open_1): Use catch_exception instead of catch_errors.
9761         (remote_async_open_1): Ditto.
9762         (remote_cisco_open): Ditto.
9763
9764 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9765
9766         * remote.c (remote_start_remote): Replace PTR with void pointer.
9767         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9768         static.
9769
9770 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9771
9772         * gdb_indent.sh: Allow the script to be run in the sim directory.
9773
9774 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9775
9776         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9777         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9778
9779         * corelow.c (core_open): Only call set_gdbarch_from_file if
9780         exec_bfd is NULL.
9781
9782 2002-05-17  Andrey Volkov <avolkov@transas.com>
9783
9784         * h8300-tdep.c: Add support of EXR register
9785         * config/h8300/tm-h8300.h: Ditto. 
9786         
9787 2002-05-17  Andrey Volkov <avolkov@transas.com>
9788
9789         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9790         
9791 2002-05-17  Andrey Volkov <avolkov@transas.com>
9792
9793         * h8300-tdep.c: Change literal regnums to REGNO.
9794         
9795 2002-05-17  Jim Blandy  <jimb@redhat.com>
9796
9797         * NEWS: Note addition of macro support.
9798
9799         Expand preprocessor macros in C expressions.
9800         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9801         (scan_macro_expansion, scanning_macro_expansion,
9802         finished_macro_expansion): New function declarations.
9803         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9804         variable declarations.
9805         * parser-defs.h (expression_context_pc): New declaration.
9806         * parse.c (expression_context_pc): New variable.
9807         (parse_exp_1): Set expression_context_pc, as well as
9808         expression_context_block.
9809         * c-exp.y (yylex): If we're not already reading the result of a
9810         macro expansion, try to macro-expand the next token.  When we're
9811         done scanning a macro expansion, switch back to the mainline text.
9812         Commas and `if's in a macro's expansion don't terminate the input.
9813         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9814         (macro_original_text, macro_expanded_text,
9815         expression_macro_lookup_func, expression_macro_lookup_baton): New
9816         variables.
9817         (scan_macro_expansion, scanning_macro_expansion,
9818         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9819         c_preprocess_and_parse): New functions.
9820         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9821         c_preprocess_and_parse, instead of c_parse.
9822         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9823         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9824
9825 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9826
9827         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9828         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9829         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9830
9831 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9832
9833         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9834
9835 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9836
9837         * Makefile.in (sh_tdep_h): Define and use.
9838         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9839         register enum): Move to...
9840         * * sh-tdep.h: ...here.
9841         * sh-tdep.c: Include sh-tdep.h.
9842         * sh3-rom.c: Likewise.
9843         * shnbsd-tdep.c: Likewise.
9844
9845 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9846
9847         * arm-tdep.c: Spelling fix in comment.
9848
9849 2002-05-16  Jim Blandy  <jimb@redhat.com>
9850
9851         Add commands for manually expanding macros and showing their
9852         definitions.
9853         * macrocmd.c, macroscope.c, macroscope.h: New files.
9854         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9855         (macroscope_h): New variable.
9856         (HFILES_NO_SRCDIR): Add macroscope.h.
9857         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9858         (macroscope.o, macrocmd.o): New rules.
9859
9860         Teach the Dwarf 2 reader to read macro information.
9861         * dwarf2read.c: #include "macrotab.h".
9862         (dwarf_macinfo_buffer): New variable.
9863         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9864         dwarf_macinfo_size.
9865         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9866         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9867         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9868         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9869         dwarf2_macro_spaces_in_definition): New complaints.
9870         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9871         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9872         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9873         the partial symbol table.
9874         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9875         from what's recorded in the partial symbol table.
9876         (read_file_scope): If the compilation unit has a
9877         `DW_AT_macro_info' attribute, read its macro information.
9878         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9879
9880 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9881
9882         Fix PR gdb/546
9883         * ser-tcp.c: Don't include <netinet/udp.h>.
9884
9885 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9886
9887         * MAINTAINERS: Update my email address.
9888
9889 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9890
9891         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9892         include file of the same name.
9893
9894 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9895
9896         * configure.tgt: Mark v850 as multi-arched.
9897         * config/v850/tm-v850.h: Remove file.
9898         * config/v850/v850.mt: Eliminate TM_FILE.
9899
9900 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9901
9902         * v850-tdep.c: Full multi-arch.
9903         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9904         Define GDB_MULTI_ARCH to 2.
9905
9906 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9907
9908         * p-exp.y (current_type): New static variable.
9909         Carries the type of the expression at the position that is parsed.
9910         (push_current_type, pop_current_type): Two new functions. Used
9911         to store/restore current_type in expression on specific tokens.
9912         (search_field): New static variable. Set to one after parsing a point
9913         as at that point only a FIELDNAME token should be searched.
9914         (FIELDNAME): New token. After a point only a token belonging to 
9915         current_type type definition is allowed.
9916         (all over token rules): reset and change current_type according
9917         to rules.
9918         (exp '[' rule): insert implicit array index field if
9919         exp is a pascal string type.
9920
9921 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9922
9923         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9924         frame info.  Use frame_info's saved_regs instead of matching member
9925         in extra_frame_info throughout.
9926         (v850_frame_init_saved_regs): New function.
9927         (v850_init_extra_frame_info): Move most functionality into
9928         v850_frame_init_saved_regs().
9929         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9930         (v850_frame_find_saved_regs): Remove declaration.
9931         (FRAME_FIND_SAVED_REGS): Remove definition.
9932         (v850_frame_init_saved_regs): Add declaration.
9933         (FRAME_INIT_SAVED_REGS): Add definition.
9934
9935 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9936
9937         * v850-tdep.c: Begin multi-arch'ing v850.
9938         (v850_target_architecture_hook): Remove function.
9939         (v850_gdbarch_init): New function.  Add code previously in
9940         v850_target_architecture_hook().
9941         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9942         Call register_gdbarch_init() instead.
9943
9944 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9945
9946         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9947         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9948         (fixup_class_method_type): Likewise.
9949
9950 2002-05-15  Jim Blandy  <jimb@redhat.com>
9951
9952         Add macro structures to GDB's symbol tables.  Nobody puts anything
9953         in them yet.
9954         * symtab.h (struct symtab): New member: `macro_table'.
9955         * buildsym.h (pending_macros): New global variable.
9956         * buildsym.c: #include "macrotab.h".
9957         (buildsym_init): Initialize `pending_macros'.
9958         (end_symtab): If we found macro information while reading a CU's
9959         debugging info, do build a symtab structure for it.  Make the
9960         symtab point to the macro information, and clear the
9961         `pending_macros' pointer which held it while we were reading the
9962         debug info.
9963         (really_free_pendings): Free any pending macro table.
9964         * objfiles.h (struct objfile): New member: `macro_cache'.
9965         * objfiles.c (allocate_objfile): Set allocate and free functions
9966         for the macro cache's objstack.
9967         (free_objfile): Empty the macro cache's obstack.
9968         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9969         set new allocate and free functions for it.
9970         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9971         free functions for the macro cache's objstack.  (Why is this
9972         function building its own objfile?)
9973         * symmisc.c (print_objfile_statistics): Print statistics on the
9974         macro bcache.
9975         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9976
9977 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9978
9979         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9980         (REGISTER_U_ADDR): Delete definition.
9981         (arm_register_u_addr): Delete declaration.
9982
9983 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9984
9985         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9986         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9987
9988 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9989
9990         * regcache.c (register_valid): Revise comments refering to "Not
9991         available" and "unavailable".
9992         * frame.c (frame_register_read): Ditto.
9993         * findvar.c (value_of_register): Ditto.
9994
9995 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9996
9997         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9998         (remote-sim.o): Update dependencies.
9999         (d10v-tdep.o): Specify dependencies.
10000         (sim_d10v_h): Define.
10001
10002 2002-05-14  Jim Blandy  <jimb@redhat.com>
10003
10004         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10005         * macrotab.c (macro_lookup_inclusion, find_definition,
10006         new_macro_table): Same.
10007         
10008         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10009         not `! strcmp ()'.  This is a dubious improvement.
10010         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10011
10012         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10013         although it's not necessary, to avoid a warning.
10014
10015 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10016
10017         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10018         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10019         TYPE_INSTANCE_FLAGS.
10020         (struct main_type): New.
10021         (struct type): Move most members to struct main_type.  Change
10022         cv_type and as_type to new type_chain member.  Add instance_flags.
10023         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10024         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10025         (finish_cv_type): Remove prototype.
10026         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10027         Set TYPE_CHAIN.
10028         (alloc_type_instance): New function.
10029         (smash_type): New function.
10030         (make_pointer_type, make_reference_type, make_function_type)
10031         (smash_to_member_type, smash_to_method_type): Call smash_type.
10032         (make_qualified_type): New function.
10033         (make_type_with_address_space): Call make_qualified_type.
10034         (make_cv_type): Likewise.
10035         (finish_cv_type): Remove unnecessary function.
10036         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10037         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10038         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10039         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10040         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10041         * hpread.c (hpread_read_struct_type): Likewise.
10042         * stabsread.c (read_struct_type): Likewise.
10043
10044 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10045
10046         * configure.tgt: Add a catch all sh* target, for cases like
10047         sh[2,3,4]-elf and sh-hms.
10048
10049 2002-05-14  Keith Seitz  <keiths@redhat.com>
10050
10051         * event-loop.c (create_file_handler): Don't do anything but
10052         update data when we are given a fd which we are already
10053         monitoring.
10054
10055 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10056
10057         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10058         (update_context): Use __func__ in warnings.
10059         
10060 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10061
10062         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10063         and tcp_close to net_open and net_close.
10064         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10065         using UDP if requested.  Don't try to disable Nagle on UDP
10066         sockets.
10067         * remote.c (remote_serial_open): New function.  Warn about UDP.
10068         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10069
10070 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10071
10072         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10073
10074 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10075
10076         * configure.tgt: Remove sh-hms target.
10077         * MAINTAINERS: Don't list sh-hms as a separate target.
10078
10079 2002-05-13  Jim Blandy  <jimb@redhat.com>
10080
10081         Add first preprocessor macro-expansion files.
10082         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10083         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10084         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10085         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10086         (COMMON_OBS): Add macrotab.o, macroexp.o.
10087         (macroexp.o, macrotab.o): New rules.
10088
10089 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10090
10091         * config/m88k/tm-m88k.h: Update copyright.
10092         (m88k_target_write_pc): Declare
10093         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10094         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10095         (SHIFT_INST_REGS): Update definition.
10096         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10097         using old definition of TARGET_WRITE_PC.
10098         * regcache.c (generic_target_write_pc): Delete code handling
10099         NNPC_REGNUM.
10100         * gdbarch.sh (NNPC_REGNUM): Delete.
10101         * gdbarch.h, gdbarch.c: Regenerate.
10102
10103 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10104
10105         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10106         builtin reg number.
10107
10108 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10109
10110         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10111         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10112         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10113         access macros.
10114         * c-typeprint.c (cp_type_print_method_args): Likewise.
10115         (c_type_print_args): Likewise.
10116         * d10v-tdep.c (d10v_push_arguments): Likewise.
10117         (d10v_extract_return_value): Likewise.
10118         * expprint.c (print_subexp): Likewise.
10119         * gdbtypes.c (lookup_primitive_typename): Likewise.
10120         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10121         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10122         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10123         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10124         (TYPE_VECTOR): Likewise.
10125         * hpread.c (hpread_read_struct_type)
10126         (fix_static_member_physnames, fixup_class_method_type)
10127         (hpread_type_lookup): Likewise.
10128         * mdebugread.c (parse_symbol, parse_type): Likewise.
10129         * p-lang.c (is_pascal_string_type): Likewise.
10130         * valops.c (hand_function_call): Likewise.
10131         * x86-64-tdep.c (classify_argument): Likewise.
10132
10133         * hpread.c (hpread_read_function_type)
10134         (hpread_read_doc_function_type): Call replace_type.
10135         * dstread.c (create_new_type): Delete.
10136         (decode_dst_structure, process_dst_function): Call alloc_type.
10137         Use type access macros.
10138
10139 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10140
10141         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10142         the're not supported by the current architecture.
10143         (i387_fill_fxsave): Likewise.
10144
10145 2002-05-12  Fred Fish  <fnf@redhat.com>
10146
10147         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10148         sect_index_xxx members to index the first slot in section_offsets
10149         if all of the section_offsets are zero.
10150
10151 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10152
10153         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10154         checked in with last change.
10155
10156 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10157
10158         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10159         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10160         config.sub.
10161
10162 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10163
10164         * Makefile.in: Update dependencies.
10165
10166 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10167
10168         * language.c (local_hex_string_custom): Simplify.  Do not depend
10169         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10170
10171         * memattr.c (mem_info_command): Replace calls to
10172         longest_local_hex_string and longest_local_hex_string_custom.
10173         * buildsym.c (make_blockvector): Ditto.
10174         * solib.c (info_sharedlibrary_command): Ditto.
10175         * tracepoint.c (tracepoints_info): Ditto.
10176         * symtab.c (print_msymbol_info): Ditto.
10177
10178         * language.c (local_hex_string): Delete.
10179         (local_hex_string_custom): Delete.
10180         (longest_local_hex_string): Rename to local_hex_string.
10181         (longest_local_hex_string_custom): Rename to
10182         local_hex_string_custom.
10183         * language.h (local_hex_string): Change parameter type to LONGEST.
10184         (local_hex_string_custom): Ditto.
10185         (longest_local_hex_string): Delete declaration.
10186         (longest_local_hex_string_custom): Ditto.
10187
10188         * solib.c: Update copyright.
10189         * memattr.c: Update copyright.
10190         
10191 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10192
10193         * arch-utils.h (legacy_register_to_value): Declare.
10194         (legacy_value_to_register): Declare.
10195         (legacy_convert_register_p): Declare.
10196         * arch-utils.c (legacy_register_to_value): New function.
10197         (legacy_value_to_register): New function.
10198         (legacy_convert_register_p): New function.
10199
10200         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10201         (VALUE_TO_REGISTER): Define.
10202         (CONVERT_REGISTER_P): Define.
10203         * gdbarch.h, gdbarch.c: Regenerate.
10204
10205         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10206         VALUE_TO_REGISTER.
10207         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10208         CONVERT_REGISTER_P.
10209
10210 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10211             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10212
10213         * Makefile.in: Update dependencies for valops.c.
10214         * valops.c: Include "gdb_assert.h".
10215         (typecmp): Skip THIS parameter to methods.
10216         (find_method_list): Remove static_memfuncp argument,
10217         update callers.  Check for stub methods.
10218         (find_value_oload_method_list): Don't set *static_memfuncp.
10219         (find_overload_match): Don't check for stub methods.  Assert
10220         that methods are not stubbed.  Handle static methods.
10221         (value_find_oload_method_list): Remove static_memfuncp argument.
10222         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10223         to the argument list for static stub methods.
10224         * value.h (value_find_oload_method_list): Update prototype.
10225
10226 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10227
10228         * arch-utils.h (generic_register_size): Declare.
10229         (generic_register_raw_size, generic_register_virtual_size): Delete
10230         declarations.
10231         * arch-utils.c (generic_register_raw_size): Delete.
10232         (generic_register_size): New function.
10233         (generic_register_virtual_size): Delete.
10234
10235         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10236         default generic_register_size.
10237         * gdbarch.h, gdbarch.c: Re-generate.
10238         
10239         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10240         register_virtual_size.
10241         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10242         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10243
10244 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10245
10246         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10247         * gdbarch.h, gdbarch.c: Regenerate.
10248         * gnu-v3-abi.c: Update copyright.
10249         (vtable_address_point_offset): Update.
10250         (gnuv3_rtti_type): Update.
10251         (gnuv3_baseclass_offset): Update.
10252         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10253         (init_fetch_link_map_offsets): Update.
10254         * remote.c (get_remote_state): Update.
10255         
10256 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10257
10258         * TODO: Remove value_headof/value_from_vtable_info comment.
10259         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10260         * values.c (value_headof, value_from_vtable_info): Delete.
10261         * value.h (value_from_vtable_info): Delete prototype.
10262
10263 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10264
10265         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10266         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10267         $(gdb_regex_h).
10268         (gdb_assert_h): Define.
10269         (gdb_wait_h): Define.
10270         (gdb_regex_h): Define.
10271
10272 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10273
10274         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10275         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10276
10277 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10278
10279         * nbsd-tdep.c: Fix comment.
10280
10281 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10282
10283         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10284         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10285         (nbsd-tdep.o): New dependency list.
10286         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10287         nbsd-tdep.h.
10288         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10289         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10290         * nbsd-tdep.c: New file.
10291         * nbsd-tdep.h: New file.
10292         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10293         nbsd-tdep.h.
10294         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10295         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10296         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10297         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10298
10299 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10300
10301         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10302         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10303         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10304         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10305         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10306         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10307
10308 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10309
10310         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10311         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10312         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10313         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10314         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10315         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10316         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10317
10318 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10319
10320         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10321         fetch_elfcore_registers to...
10322         * i386nbsd-tdep.c: ...here.
10323         (i386nbsd_use_struct_convention): Rename to...
10324         (i386nbsd_aout_use_struct_convention): ...this.
10325         (i386nbsd_supply_reg): New function.
10326         (i386nbsd_fill_reg): New function.
10327         (fetch_core_registers): Use i386nbsd_supply_reg.
10328         (fetch_elfcore_registers): Likewise.
10329         (_initialize_i386nbsd_tdep): New function.
10330         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10331         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10332         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10333         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10334         (i386nbsd_aout_use_struct_convention): ...this.
10335
10336 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10337
10338         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10339         (store_inferior_registers): Use shnbsd_fill_reg.
10340         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10341         sh_nbsd_supply_register): Collapse into...
10342         (shnbsd_supply_reg): ...this.
10343         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10344         (shnbsd_fill_reg): ...this.
10345         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10346         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10347         (fetch_core_registers): Use shnbsd_supply_reg.
10348         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10349         (sh_nbsd_core_fns): Rename to...
10350         (shnbsd_core_fns): ...this.
10351         (sh_nbsd_elfcore_fns): Rename to...
10352         (shnbsd_elfcore_fns): ...this.
10353         (sh_nbsd_init_abi): Rename to...
10354         (shnbsd_init_abi): ...this.
10355         (_initialize_sh_nbsd_tdep): Rename to...
10356         (_initialize_shnbsd_tdep): ...this.
10357         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10358         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10359         sh_nbsd_fill_register): Remove prototypes.
10360         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10361
10362 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10363
10364         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10365         (i387-nat.o): Delete dependency list.
10366         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10367         (x86-64-linux-nat.o): Likewise.
10368         * i387-nat.c: Delete file, moving contents to...
10369         * i387-tdep.c: ...here.
10370         * i387-nat.h: Rename...
10371         * i387-tdep.h: ...to this.
10372         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10373         * i386-linux-nat.c: Likewise.
10374         * i386bsd-nat.c: Likewise.
10375         * i386gnu-nat.c: Likewise.
10376         * i386nbsd-nat.c: Likewise.
10377         * i386v4-nat.c: Likewise.
10378         * x86-64-linux-nat.c: Likewise.
10379         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10380         * config/i386/go32.mh (NATDEPFILES): Likewise.
10381         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10382         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10383         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10384         * config/i386/linux.mh (NATDEPFILES): Likewise.
10385         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10386         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10387         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10388         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10389
10390 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10391
10392         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10393         (alphanbsd-nat.o): Remove dependency list.
10394         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10395         * alphanbsd-nat.c: Delete.  Contents moved to...
10396         * alphanbsd-tdep.c: ...here.
10397         (_initialize_alphanbsd_tdep): Register core functions.
10398         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10399
10400 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10401
10402         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10403         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10404         (alphanbsd-nat.o): Likewise.
10405         (alphabsd-tdep.o): New dependency list.
10406         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10407         (fill_gregset): Use alphabsd_fill_reg.
10408         (supply_fpregset): Use alphabsd_supply_fpreg.
10409         (fill_fpregset): Use alphabsd_fill_fpreg.
10410         (fetch_inferior_registers): Use struct reg and struct fpreg
10411         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10412         and alphabsd_supply_fpreg.
10413         (store_inferior_registers): Use struct reg and struct fpreg
10414         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10415         and alphabsd_fill_fpreg.
10416         * alphabsd-tdep.c: New file.
10417         * alphabsd-tdep.h: New file.
10418         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10419         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10420         alphabsd_supply_fpreg.
10421         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10422         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10423
10424 2002-05-11  Eric Christopher  <echristo@redhat.com>
10425
10426         * mips-tdep.c (mips_double_register_type): Fix thinko.
10427         (mips_single_register_type): Ditto.
10428         * MAINTAINERS: Add self.
10429
10430 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10431
10432         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10433         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10434         right thing on architectures with different endianness and/or
10435         integer sizes.
10436
10437 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10438
10439         From Christian Limpach <chris@Pin.LU>
10440         * configure.in: Change sed expression which comments out
10441         NATDEPFILES to also comment out continuation lines.
10442         * configure: Regenerate.
10443
10444 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10445
10446         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10447         big patch.
10448
10449 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10450
10451         * sh-tdep.c: Include correct file.
10452
10453 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10454
10455         New support for sh64-elf (sh5) target.
10456
10457         * configure.tgt: For sh64-elf target, default to sh-elf.
10458
10459         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10460         (struct gdbarch_tdep): Add new fields for new registers and ABI
10461         info.
10462
10463         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10464         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10465         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10466         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10467         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10468         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10469         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10470         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10471         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10472         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10473         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10474         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10475         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10476         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10477         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10478         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10479         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10480         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10481         sign_extend, sh64_nofp_frame_init_saved_regs,
10482         sh64_init_extra_frame_info, sh64_get_saved_register,
10483         sh64_extract_struct_value_address, sh64_pop_frame,
10484         sh64_push_arguments, sh64_extract_return_value,
10485         sh64_store_return_value, sh64_show_media_regs,
10486         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10487         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10488         sh_sh64_register_virtual_type,
10489         sh_sh64_register_convert_to_virtual,
10490         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10491         sh64_register_read, sh64_pseudo_register_write,
10492         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10493         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10494         sh64_do_pseudo_register, sh_compact_do_registers_info,
10495         sh64_do_registers_info, sh_gdbarch_init): New functions.
10496
10497 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10498
10499         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10500
10501 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10502
10503         * linespec.c (decode_line_1): Check for a double quote after
10504         a filename correctly.
10505
10506 2002-05-10  Jim Blandy  <jimb@redhat.com>
10507
10508         Properly track the size of the current objfile's .debug_line section.
10509         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10510         (DWARF_LINE_SIZE): New macro.
10511         (dwarf2_build_psymtabs_hard): Record the line section's size in
10512         the partial symbol table.
10513         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10514         symbol table.
10515
10516 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10517
10518         * ia64-tdep.c: Handle breakpoints on L instruction type
10519         in MLX instruction bundle by moving the breakpoint to
10520         the third slot (X instruction type) as L holds only data.
10521
10522 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10523
10524         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10525         (process_one_symbol): Complain about discarding local symbols
10526         due to a misplaced N_LBRAC entry.
10527
10528 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10529
10530         From Daniel Berlin <dan@cgsoftware.com>
10531         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10532         decrease the depth we are at, in the case of templates.
10533
10534 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10535
10536         * mips-tdep.c (mips_float_register_type): New function.
10537         (mips_double_register_type): New function.
10538         (mips_print_register): Use them.
10539         (do_fp_register_row): Likewise.
10540
10541 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10542
10543         * signals/signals.c (signals): Remove conditional compilation around
10544         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10545         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10546
10547 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10548
10549         * remote-rdp.c (remote_rdp_can_run): Remove.
10550
10551 2002-05-09  Tom Tromey  <tromey@redhat.com>
10552
10553         * jv-valprint.c (java_val_print): Handle `char' as a special case
10554         of TYPE_CODE_INT.
10555
10556 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10557
10558         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10559         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10560         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10561         str r(0123),[sp,#nn].
10562         (arm_skip_prologue): Ditto.  Also make disassembly
10563         order-independent by placing it in a loop.
10564
10565 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10566
10567         * stabsread.c (read_type): Add recognition for new attribute:
10568         "@V;" means that an array type is actually a vector.
10569         This is analogous to the vector flag that's been added to dwarf2.
10570
10571 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10572
10573         * i386-tdep.h (i386_abi): New enum.
10574         (struct gdbarch_tdep): Replace os_ident member with abi.
10575         (i386_gdbarch_register_os_abi): New prototype.
10576         * i386-tdep.c (i386_abi_names): New array.
10577         (process_note_abi_tag_sections): Removed.
10578         (process_note_sections): New function.
10579         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10580         (struct i386_abi_handler): New struct.
10581         (i386_abi_handler_list): New variable.
10582         (i386_gdbarch_register_os_abi): New function.
10583         (i386_gdbarch_init): Adapt for the changes given above.
10584
10585 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10586
10587         * gregset.h: Say "GNU/Linux".
10588
10589 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10590
10591         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10592         (build_gdbtypes): Build builtin_type_v2_float.
10593         (_initialize_gdbtypes): Register new builtin type.
10594
10595 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10596
10597         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10598         (clear_gdbarch_swap): New function.
10599         (initialize_non_multiarch): Call.
10600         (gdbarch_update_p): Before calling init(), swap out and clear the
10601         existing architecture.
10602         * gdbarch.c: Regenerate.
10603
10604 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10605
10606         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10607         alphanbsd-tdep.c.
10608
10609 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10610
10611         * sh-nbsd-nat.c: Rename to...
10612         * shnbsd-nat.c: ...this.
10613         * sh-nbsd-tdep.c: Rename to...
10614         * shnbsd-tdep.c: ...this.
10615         * sh-nbsd-tdep.h: Rename to...
10616         * shnbsd-tdep.h: ...this.
10617         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10618         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10619
10620 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10621
10622         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10623         concatenation for command help messages.
10624
10625 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10626
10627         * NEWS: Note new sh*-*-netbsdelf* configuration.
10628         * configure.host: Set gdb_host_cpu to sh for all sh*.
10629         (sh*-*-netbsdelf*): New host.
10630         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10631         (sh*-*-netbsdelf*): New target.
10632         * sh-nbsd-nat.c: New file.
10633         * sh-nbsd-tdep.c: New file.
10634         * sh-nbsd-tdep.h: New file.
10635         * config/sh/nbsd.mh: New file.
10636         * config/sh/nbsd.mt: New file.
10637         * config/sh/nm-nbsd.h: New file.
10638         * config/sh/tm-nbsd.h: New file.
10639
10640 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10641
10642         * sh-tdep.c (sh_osabi_names): Declare.
10643         (process_note_abi_tag_sections): New function.
10644         (get_elfosabi): Ditto.
10645         (sh_gdbarch_register_os_abi): Ditto.
10646         (sh_dump_tdep): Ditto.
10647         _initialize_sh_tdep): Use gdbarch_register to register
10648         sh_gdbarch_init and sh_dump_tdep.
10649         * config/sh/tm-sh.h (sh_osabi): Declare.
10650         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10651
10652 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10653
10654         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10655         (thumb_scan_prologue): Ditto.
10656         (arm_find_callers_reg): Ditto.
10657         (arm_frame_chain): Ditto.
10658         (arm_init_extra_frame_info): Ditto.
10659         (arm_frame_saved_pc): Ditto.
10660         (arm_pop_frame): Ditto.
10661         (arm_push_return_address): New function.
10662         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10663         call_dummy_location, call_dummy_breakpoint_offset_p,
10664         call_dummy_breakpoint_offset, call_dummy_p,
10665         call_dummy_stack_adjust_p, call_dummy_words,
10666         sizeof_call_dummy_words, call_dummy_start_offset,
10667         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10668         call_dummy_address, push_return_address and push_dummy_frame for
10669         generic dummy frames.
10670
10671 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10672
10673         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10674         size computation for alloca.
10675         (sh_fp_frame_init_saved_regs): Likewise.
10676
10677 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10678
10679         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10680         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10681         * arm-tdep.c (arm_store_return_value): Use them.
10682         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10683         * remote-rdp.c (remote_rdp_fetch_register): Use
10684         ARM_MAX_REGISTER_RAW_SIZE.
10685         (remote_rdp_store_register): Likewise.
10686
10687 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10688
10689         * dwarf2cfi.c: Code cleanup, removed unused variables,
10690         added default labels to switch {} statements.
10691         * x86-64-tdep.c: Ditto.
10692         * x86-64-linux-nat.c: Ditto.
10693
10694 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10695
10696         * solib.h: Protect against multiple inclusion.
10697
10698 2002-05-06  Jim Blandy  <jimb@redhat.com>
10699
10700         Add first preprocessor macro-expansion files.
10701         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10702         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10703         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10704         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10705         (COMMON_OBS): Add macrotab.o, macroexp.o.
10706         (macroexp.o, macrotab.o): New rules.
10707
10708         Separate the job of reading the line number info statement program
10709         header (...expialidocious) out into its own function.
10710         * dwarf2read.c (struct line_head, struct filenames, struct
10711         directories): Replace with...
10712         (struct line_header): New structure, containing the full
10713         contents of the statement program header, including the
10714         include directory and file name tables.
10715         (read_file_scope): If we have line number info, instead of just
10716         calling dwarf_decode_lines to do all the work, call
10717         dwarf_decode_line_header first to get a `struct line_header'
10718         containing the data in the statement program header, and then
10719         pass that to dwarf_decode_lines, which will pick up where that
10720         left off.  Be sure to clean up the `struct line_header' object.
10721         (dwarf_decode_line_header, free_line_header, add_include_dir,
10722         add_file_name): New functions.
10723         (dwarf_decode_lines): Move all the code to read the statement
10724         program header into dwarf_decode_line_header.  Take the line
10725         header it built as the first argument, instead of the offset to
10726         the compilation unit's line number info.  Use the new `struct
10727         line_header' type instead of the old structures.  No need to do
10728         cleanups here now, since we don't allocate anything.
10729         (dwarf2_statement_list_fits_in_line_number_section,
10730         dwarf2_line_header_too_long): New complaints.
10731
10732 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10733
10734         * gdbtypes.c (init_vector_type): New function.
10735         (build_builtin_type_vec128): Simplify the representation of SIMD
10736         registers.
10737         (build_gdbtypes): Initialize new builtin vector types.
10738         (_initialize_gdbtypes): Register new vector types with gdbarch.
10739         (builtin_type_v4_float, builtin_type_v4_int32,
10740         builtin_type_v8_int16, builtin_type_v16_int8,
10741         builtin_type_v2_int32, builtin_type_v4_int16,
10742         builtin_type_v8_int8): New (renamed) SIMD types.
10743
10744 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10745
10746         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10747         (i387_fill_fxsave): Likewise.
10748
10749 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10750
10751         * alpha-tdep.c (alpha_extract_return_value): Don't use
10752         non-constant array size in prototype.
10753
10754 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10755
10756         From Brian Taylor <briant at model dot com>:
10757         * ui-out.c (ui_out_field_core_addr): Use the function
10758         longest_local_hex_string_custom'to format addresses > 32 bits
10759         wide.
10760
10761         * ui-out.c (ui_out_field_core_addr): Update comment.
10762
10763 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10764
10765         * stack.c (select_and_print_frame): Make static.  Delete the
10766         parameter `level'.
10767         (func_command): Update call.
10768         (select_frame_command): Delete code computing the frame level.
10769         * frame.h (select_and_print_frame): Delete declaration.
10770
10771 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10772
10773         * sparc-tdep.c (sparc_get_saved_register): Comment why
10774         get_prev_frame call is safe.
10775
10776 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10777
10778         * frame.h (select_frame): Delete level parameter.
10779         * stack.c (select_frame): Update.  Use frame_relative_level to
10780         obtain the frame's level.
10781         (select_and_print_frame): Update call.
10782         (select_frame_command): Ditto.
10783         (up_silently_base): Ditto.
10784         (down_silently_base): Ditto.
10785         * ocd.c (ocd_start_remote): Ditto.
10786         * remote-rdp.c (remote_rdp_open): Ditto.
10787         * remote-mips.c (mips_initialize): Ditto.
10788         (common_open): Ditto.
10789         * remote-e7000.c (e7000_start_remote): Ditto.
10790         * m3-nat.c (select_thread): Ditto.
10791         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10792         (child_get_current_exception_event): Ditto.
10793         * varobj.c (varobj_create): Ditto.
10794         (varobj_update): Ditto.
10795         (c_value_of_root): Ditto.
10796         * tracepoint.c (finish_tfind_command): Ditto.
10797         * corelow.c (core_open): Ditto.
10798         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10799         * thread.c (info_threads_command): Ditto.
10800         (switch_to_thread): Ditto.
10801         * infrun.c (normal_stop): Ditto.
10802         (restore_selected_frame): Ditto.
10803         (restore_inferior_status): Ditto.
10804         * breakpoint.c (insert_breakpoints): Ditto.
10805         (watchpoint_check): Ditto.
10806         (bpstat_stop_status): Ditto.
10807         (do_enable_breakpoint): Ditto.
10808         * blockframe.c (flush_cached_frames): Ditto.
10809         (reinit_frame_cache): Ditto.
10810
10811 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10812
10813         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10814         maintainer.
10815
10816 2002-05-04  Jim Blandy  <jimb@redhat.com>
10817
10818         * gdbtypes.c (replace_type): Doc fix.
10819
10820 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10821
10822         * valprint.c (strcat_longest): Delete commented out function.
10823         Update copyright.
10824
10825 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10826
10827         * MAINTAINERS: Mark a29k as deleted.
10828         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10829         Move new configurations to the top.
10830         * configure.tgt: Remove a29k.
10831         * config/a29k/tm-vx29k.h: Delete.
10832         * config/a29k/vx29k.mt: Delete.
10833         * config/a29k/tm-a29k.h: Delete.
10834         * config/a29k/a29k-udi.mt: Delete.
10835         * config/a29k/a29k.mt: Delete.
10836         * a29k-tdep.c: Delete.
10837         * remote-udi.c: Delete.
10838         * remote-mm.c: Delete.
10839         * remote-eb.c: Delete.
10840         * remote-adapt.c: Delete.
10841         * Makefile.in: Remove obsolete code.
10842         * config/s390/s390x.mt: Ditto.
10843         * config/s390/s390.mt: Ditto.
10844         * config/sparc/sparclynx.mh: Ditto.
10845         * config/sparc/linux.mh: Ditto.
10846         * config/pa/hppaosf.mh: Ditto.
10847         * config/pa/hppabsd.mh: Ditto.
10848         * config/ns32k/nbsd.mt: Ditto.
10849         * config/mips/vr5000.mt: Ditto.
10850         * config/m68k/sun3os4.mh: Ditto.
10851         * config/m68k/nbsd.mt: Ditto.
10852         * config/m68k/m68klynx.mh: Ditto.
10853         * config/m32r/m32r.mt: Ditto.
10854         * config/i386/x86-64linux.mt: Ditto.
10855         * config/i386/nbsdelf.mt: Ditto.
10856         * config/i386/nbsd.mt: Ditto.
10857         * config/i386/i386lynx.mh: Ditto.
10858
10859 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10860
10861         * target.c (debug_print_register): New function.  Handle oversize
10862         registers.
10863         (debug_to_fetch_registers): Call.
10864         (debug_to_store_registers): Call.
10865
10866 2002-05-03  Jim Blandy  <jimb@redhat.com>
10867
10868         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10869         (read_type): Doc fix.
10870         * gdbtypes.c (replace_type): Doc fix.
10871
10872         * stabsread.c (multiply_defined_struct): New complaint.
10873         (read_struct_type): If the type we were passed isn't empty, or
10874         incomplete, don't read the new struct type into it; complain,
10875         and return the original type unchanged.  Take a new `type_code'
10876         argument, which is the type code for the new type.
10877         (read_type): Rather than storing the type's type code here, pass
10878         it as an argument to read_struct_type, and let that take care of
10879         storing it.  That way, we don't overwrite the original type code,
10880         so read_struct_type can use it to decide whether we're overwriting
10881         something we shouldn't.
10882         (complain_about_struct_wipeout): New function.
10883
10884 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10885
10886         * gdbarch.sh: Assert that gdbarch is non-NULL.
10887         * gdbarch.c: Regenerate.
10888
10889 2002-05-03  Jason Merrill  <jason@redhat.com>
10890
10891         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10892         and return NULL.
10893
10894 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10895
10896         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10897         (x86_64_dwarf2gdb_regno_map_length),
10898         (x86_64_dwarf2_reg_to_regnum): Added.
10899         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10900         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10901         (_initialize_x86_64_tdep): Synced with the change above.
10902         (x86_64_skip_prologue): Reformulated message.
10903
10904 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10905
10906         * f-exp.y: Also use new prev_lexptr variable
10907         to improve error reporting. Based on Michael Snyder
10908         2002-04-24 dated patch to c-exp.y.
10909         * jv-exp.y: Likewise.
10910         * m2-exp.y: Likewise.
10911
10912 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10913
10914         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10915         we are dealing with vectors.
10916
10917 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10918
10919         * config/m68k/tm-nbsd.h: Obvious fix,
10920         correct machine name.
10921
10922 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10923
10924         * p-typeprint.c (pascal_type_print_base): Add support
10925         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10926
10927 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10928
10929         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10930         for fondamental pascal 'char' type.
10931
10932 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10933
10934         * p-lang.h (is_pascal_string_type): Declaration changed,
10935         new sixth argument of type char ** added.
10936         * p-lang.c (is_pascal_string_type): Implementation
10937         changed. Args length_pos, length_size, string_pos, char_size
10938         can now be NULL. New argument arrayname set to the field
10939         name of the char array. Return value set to char array
10940         field index plus one.
10941         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10942         is_pascal_string_type function.
10943
10944 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10945
10946         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10947         <cagney@redhat.com> change.
10948         * gdbarch.c: Regenerate.
10949
10950 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10951
10952         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10953         before probing for a new one.  Detect errorenous gdbarch_init
10954         functions.
10955         * gdbarch.c: Regenerate.
10956
10957 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10958
10959         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10960         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10961         * config/v850/tm-v850.h: Ditto.  Update copyright.
10962
10963 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10964
10965         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10966         current_gdbarch.
10967
10968 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10969
10970         * arm-tdep.c: Whitespace clean-ups.
10971         (arm_skip_prologue): Fix thinko; two lines
10972         should have been removed as part of 4/24 change.
10973
10974 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10975
10976         * rs6000-tdep.c: Added comment describing how fpscr register
10977         numbers were chosen.
10978
10979 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10980
10981         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10982
10983 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10984
10985         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10986         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10987         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10988
10989 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10990
10991         From Louis Hamilton <hamilton@redhat.com>:
10992         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10993         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10994         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10995         not bfd-private xcoff data, to determine wordsize.
10996         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10997
10998 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10999
11000         GDB 5.2 released from 5.2 branch.
11001
11002 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
11003
11004         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11005         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11006         (x86_64_register_info_table): Added comments with register numbers.
11007
11008 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11009
11010         * rs6000-tdep.c (rs6000_extract_return_value,
11011         rs6000_store_return_value): Handle returning vectors.
11012         (rs6000_gdbarch_init): Use
11013         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11014         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11015         New function.
11016         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11017         vectors.
11018         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11019         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11020
11021 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11022
11023         * hpread.c (hpread_psymtab_to_symtab_1,
11024         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11025         with fprintf_unfiltered (gdb_stderr,...).
11026
11027 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11028
11029         * remote-array.c (printf_monitor, write_monitor,
11030         array_insert_breakpoint, array_remove_breakpoint ):
11031         Replace fprintf (stderr,...
11032         with fprintf_unfiltered (gdb_stderr,....
11033         * remote-es.c: Likewise.
11034         * remote-os9k.c: Likewise.
11035         * remote-st.c: Likewise.
11036
11037 2002-04-28  Andreas Schwab  <schwab@suse.de>
11038
11039         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11040         linux-proc.o and gcore.o.
11041
11042 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11043
11044         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11045         code without frame pointers.
11046
11047 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11048
11049         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11050         ON_STACK is needed.
11051
11052 2002-04-26  Ben Elliston  <bje@redhat.com>
11053
11054         * target.c (do_xfer_memory): Correct reference to the new option
11055         "trust-readonly-sections".
11056
11057 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11058
11059         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11060         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11061         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11062         vectors.
11063         (read_array_type): Record the fact that this array type is really a
11064         vector (i.e. are passed in by value).
11065
11066 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11067
11068         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11069         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11070         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11071         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11072         * alpha-linux-tdep.c: Include frame.h.
11073         (alpha_linux_sigcontext_addr): New function.
11074         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11075         alpha_linux_sigcontext_addr.
11076         * alpha-osf1-tdep.c: Include gdbcore.h.
11077         (alpha_osf1_sigcontext_addr): New function.
11078         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11079         alpha_osf1_sigcontext_addr.
11080         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11081         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11082
11083 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11084
11085         * stack.c (selected_frame_level):
11086         (select_frame): Do not set selected_frame_level.
11087         * frame.h (selected_frame_level): Delete declaration.
11088
11089 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11090
11091         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11092         convert_from_func_ptr-addr when AIX / PowerOpen.
11093
11094 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11095
11096         * valops.c (hand_function_call): Call
11097         generic_save_call_dummy_addr.
11098         * frame.h (generic_save_call_dummy_addr): Declare.
11099         * blockframe.c (struct dummy_frame): Add fields call_lo and
11100         call_hi.
11101         (generic_find_dummy_frame): Check for PC in range call_lo to
11102         call_hi instead of entry_point_address.
11103         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11104         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11105         (generic_save_call_dummy_addr): New function.
11106
11107 2002-04-24  David S. Miller  <davem@redhat.com>
11108
11109         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11110         sparc_skip_prologue.
11111         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11112         information to find prologue when possible.
11113         (sparc_prologue_frameless_p): Call examine_prologue directly.
11114         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11115         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11116         second argument.
11117         (SKIP_PROLOGUE): Likewise.
11118
11119 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11120
11121         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11122         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11123         indicate that the condition it was testing is always true.
11124         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11125         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11126         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11127
11128 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11129
11130         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11131         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11132         tdep->jb_pc and tdep->jb_elt_size.
11133         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11134         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11135         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11136         * alpha-nat.c (get_longjmp_target): Remove.
11137         (JB_ELEMENT_SIZE): Ditto.
11138         (JB_PC): Ditto.
11139         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11140         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11141         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11142         to alpha_get_longjmp_target.
11143         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11144         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11145         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11146
11147 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11148
11149         * README: Update to GDB 5.2.
11150
11151 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11152
11153         * gdbarch.sh (LC_ALL): Set to `c'.
11154
11155 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11156
11157         * avr-tdep.c: Ran through gdb_indent.sh.
11158
11159 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11160
11161         * MAINTAINERS: Add myself as AVR maintainer.
11162         * NEWS: Note new target avr.
11163
11164 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11165
11166         * Makefile.in: Add support for AVR target.
11167         * configure.tgt: Add support for AVR target.
11168         * avr-tdep.c: New file
11169         * config/avr/avr.mt: New file.
11170
11171 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11172
11173         * MAINTAINERS: Add myself to write-after-approval.
11174
11175 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11176
11177         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11178         with fprintf_unfiltered (gdb_stderr,....
11179
11180 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11181
11182         Fix PR gdb/508.
11183         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11184
11185 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11186
11187         * p-exp.y: Also use new prev_lexptr variable
11188         to improve error reporting. Based on Michael Snyder
11189         2002-04-24 dated patch to c-exp.y.
11190
11191 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11192
11193         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11194         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11195         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11196         to 0.
11197         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11198         and struct value.
11199         (FUNCTION_START_OFFSET): Remove.
11200         (BREAKPOINT): Ditto.
11201
11202 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11203
11204         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11205         * NEWS: Ditto.
11206
11207 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11208
11209         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11210         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11211         alpha_linux_pc_in_sigtramp.
11212         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11213         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11214         alpha_osf1_pc_in_sigtramp.
11215         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11216         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11217         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11218         alphafbsd_pc_in_sigtramp.
11219         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11220         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11221         alphanbsd_pc_in_sigtramp.
11222         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11223         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11224
11225 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11226
11227         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11228
11229 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11230
11231         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11232         alphanbsd-tdep.c.
11233         (alphanbsd-nat.o): New dependency list.
11234         (alphanbsd-tdep.o): Ditto.
11235         * NEWS: Note new native NetBSD/alpha configuration.
11236         * alphanbsd-nat.c: New file.
11237         * alphanbsd-tdep.c: Ditto.
11238         * configure.host (alpha*-*-netbsd*): New host.
11239         * configure.tgt (alpha*-*-netbsd*): New target.
11240         * config/alpha/nbsd.mh: New file.
11241         * config/alpha/nbsd.mt: Ditto.
11242         * config/alpha/nm-nbsd.h: Ditto.
11243         * config/alpha/tm-nbsd.h: Ditto.
11244
11245 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11246
11247         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11248         (alpha-osf1-tdep.o): New dependency list.
11249         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11250         and skip_sigtramp_frame members.
11251         * alpha-linux-tdep.c: Include gdbcore.h.
11252         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11253         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11254         * alpha-osf1-tdep.c: New file.
11255         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11256         alpha-osf1-dep.c.
11257         (alpha_frame_past_sigtramp_frame): New function.
11258         (alpha_dynamic_sigtramp_offset): Ditto.
11259         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11260         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11261         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11262         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11263         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11264         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11265         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11266         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11267         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11268         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11269         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11270         to find_solib_trampoline_target.
11271         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11272         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11273         (SKIP_TRAMPOLINE_CODE): Remove.
11274         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11275         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11276         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11277         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11278         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11279         (PROC_SIGTRAMP_MAGIC): Ditto.
11280         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11281         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11282         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11283         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11284         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11285
11286 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11287
11288         * NEWS: Note that Alpha targets are now multi-arch.
11289
11290 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11291
11292         * parser-defs.h (prev_lexptr): New external variable.
11293         * parse.c (parse_exp_1): Set prev_lexptr to null before
11294         calling the language-specific parser.
11295         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11296         (yyerror): Use prev_lexptr in error reporting.
11297
11298 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11299
11300         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11301         * gregset.h: If FILL_FPXREGSET is defined, provide
11302         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11303         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11304         is defined, call fill_fpxregset.
11305
11306 2002-04-24  Roland McGrath  <roland@frob.com>
11307
11308         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11309         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11310         (supply_gregset, supply_fpregset): New functions.
11311
11312         * gnu-nat.c (gnu_find_memory_regions): New function.
11313         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11314         (gnu_xfer_memory): Add a cast.
11315
11316 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11317
11318         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11319         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11320         of argument regs ("str r(0123), [r11, #-nn"]).
11321         (arm_skip_prologue): Better handling for frameless functions.
11322         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11323         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11324
11325 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11326
11327         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11328         NUM_PSEUDO_REGS can be used.
11329
11330 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11331
11332         * arch-utils.h: Update copyright.
11333
11334         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11335         * gdbarch.h, gdbarch.c: Re-generate.
11336
11337         * inferior.h (IN_SIGTRAMP): Delete definition.
11338         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11339         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11340
11341         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11342         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11343         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11344         (find_proc_framesize): Ditto.
11345         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11346         (alpha_init_extra_frame_info): Ditto.
11347         * infrun.c (handle_inferior_event): Ditto.
11348         (handle_inferior_event): Ditto.
11349         (check_sigtramp2): Ditto.
11350         * blockframe.c (create_new_frame): Ditto.
11351         (get_prev_frame): Ditto.
11352         * ppc-linux-tdep.c: Update comments.
11353         * i386-linux-tdep.c: Update comments.
11354         * breakpoint.c (bpstat_what): Update comment.
11355
11356 2002-04-24  David S. Miller  <davem@redhat.com>
11357
11358         * i960-tdep.c (register_in_window_p): New function.
11359         (i960_find_saved_register): Use it instead of
11360         REGISTER_IN_WINDOW_P.
11361         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11362
11363         * symtab.h (find_stab_function_addr): Kill extern.
11364         * minsyms.c (find_stab_function_addr): Remove from here...
11365         * dbxread.c: ... to here, and mark it static.
11366
11367 2002-04-20  David S. Miller  <davem@redhat.com>
11368
11369         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11370         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11371
11372 2002-04-21  David S. Miller  <davem@redhat.com>
11373
11374         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11375         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11376         (vx_write_register): Likewise.
11377
11378 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11379
11380         * source.c (is_regular_file): New function.
11381         (openp): Check wether file to open is a regular file
11382         to avoid opening directories.
11383
11384 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11385
11386         * findvar.c (extract_signed_integer): Cast printf argument
11387         to suppress format warning.
11388         (extract_unsigned_integer): Likewise.
11389         * infcmd.c (registers_info): Likewise.
11390         * top.c (get_prompt_1): Likewise.
11391         * valops.c (value_assign): Likewise.
11392         * valprint.c (print_decimal): Likewise.
11393
11394 2002-04-22  H.J. Lu  (hjl@gnu.org)
11395
11396         * c-exp.y (typebase): Support
11397
11398         [long|long long|short] [signed|unsigned] [int|]
11399
11400         and
11401
11402         signed [long|long long|short] int
11403
11404 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11405
11406         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11407         and vax-tdep.h.
11408         * vax-tdep.h: New file.
11409         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11410         Make several routines static.
11411         (vax_get_saved_register): New function.
11412         (vax_gdbarch_init): New function.
11413         (_initialize_vax_tdep): Register vax_gdbarch_init.
11414         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11415         Remove macros now under the control of gdbarch.
11416
11417 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11418
11419         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11420         Some whitespace and coding standards tweaks.
11421
11422 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11423
11424         * vax-tdep.c: Include regcache.h.
11425         (vax_call_dummy_words): New.
11426         (sizeof_vax_call_dummy_words): New.
11427         (vax_fix_call_dummy): New function.
11428         (vax_saved_pc_after_call): Ditto.
11429         * config/vax/tm-vax.h: Don't include regcache.h.
11430         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11431         (CALL_DUMMY): Remove.
11432         (CALL_DUMMY_WORDS): Define.
11433         (SIZEOF_CALL_DUMMY_WORDS): Define.
11434         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11435
11436 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11437
11438         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11439
11440 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11441
11442         * vax-tdep.c (vax_frame_chain): New function.
11443         (vax_push_dummy_frame): Ditto.
11444         (vax_pop_frame): Ditto.
11445         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11446         (FRAMELESS_FUNCTION_INVOCATION): Use
11447         generic_frameless_function_invocation_not.
11448         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11449         (POP_FRAME): Use vax_pop_frame.
11450
11451 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11452
11453         * vax-tdep.c (vax_store_struct_return): New function.
11454         (vax_extract_return_value): Ditto.
11455         (vax_store_return_value): Ditto.
11456         (vax_extract_struct_value_address): Ditto.
11457         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11458         vax_store_struct_return.
11459         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11460         (STORE_RETURN_VALUE): Use vax_store_return_value.
11461         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11462
11463 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11464
11465         * vax-tdep.c (vax_frame_saved_pc): New function.
11466         (vax_frame_args_address_correct): Ditto.
11467         (vax_frame_args_address): Ditto.
11468         (vax_frame_locals_address): Ditto.
11469         (vax_frame_num_args): Move code to be in proximity to
11470         other frame-related functions.
11471         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11472         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11473         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11474         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11475         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11476
11477 2002-04-22  H.J. Lu  (hjl@gnu.org)
11478
11479         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11480         includedir.
11481
11482 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11483
11484         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11485         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11486         (FRAME_INIT_SAVED_REGS): New macro.
11487
11488 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11489
11490         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11491
11492 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11493
11494         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11495         where needed.
11496         (fetch_osf_core_registers): Likewise.
11497         (supply_gregset): Likewise.
11498
11499 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11500
11501         * symfile.h (get_section_index): Define.
11502         * symfile.c (get_section_index): New function.
11503         * mdebugread.c (SC_IS_SBSS): New macro.
11504         (SC_IS_BSS): Return true for the scBss storage class only, as
11505         the scSBss storage class refers to the .sbss section.
11506         (parse_partial_symbols): Discard the symbols which associated
11507         section does not exist.
11508         Make sure to use the .sbss section index for symbols which
11509         storage class is scBss, rather than using the .bss section index.
11510
11511 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11512
11513         * vax-tdep.c: Update copyright years.
11514         (vax_register_name): New function.
11515         (vax_register_byte): Ditto.
11516         (vax_register_raw_size): Ditto.
11517         (vax_register_virtual_size): Ditto.
11518         (vax_register_virtual_type): Ditto.
11519         * config/vax/tm-vax.h: Update copyright years.
11520         (REGISTER_NAMES): Remove.
11521         (REGISTER_NAME): Define.
11522         (REGISTER_BYTE): Use vax_register_byte.
11523         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11524         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11525         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11526
11527 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11528
11529         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11530         declaration
11531         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11532
11533 2002-04-21  David S. Miller  <davem@redhat.com>
11534
11535         * arch-utils.c (generic_prologue_frameless_p): Kill
11536         SKIP_PROLOGUE_FRAMELESS_P code.
11537         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11538         references.
11539         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11540         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11541         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11542         references.
11543         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11544         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11545         (sparc_gdbarch_init): Pass it to
11546         set_gdbarch_prologue_frameless_p.
11547
11548 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11549
11550         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11551         (alphabsd-nat.o): New dependency list.
11552
11553 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11554
11555         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11556         alphafbsd-tdep.c.
11557         (alpha-linux-tdep.o): New dependency list.
11558         (alphafbsd-tdep.o): Likewise.
11559
11560 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11561
11562         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11563         to here...
11564         * alpha-tdep.c: ...from here.
11565         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11566
11567 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11568
11569         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11570         prototype from here...
11571         * alpha-tdep.h: ...to here.
11572
11573 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11574
11575         * frame.h (selected_frame_level): Document as deprecated.
11576         (frame_relative_level): Declare.
11577         * stack.c (frame_relative_level): New function.
11578         (selected_frame_level): Document as deprecated.
11579         (select_frame): Do not set the selected_frame_level.
11580
11581         * stack.c (frame_info, record_selected_frame): Update.
11582         (frame_command, current_frame_command): Update.
11583         (up_silently_base, up_command, down_silently_base): Update.
11584         (down_command): Update.
11585         * inflow.c (kill_command): Update.
11586         * tracepoint.c (finish_tfind_command): Update.
11587         * corelow.c (core_open): Update.
11588         * thread.c (info_threads_command): Update.
11589         (do_captured_thread_select): Update.
11590         * infcmd.c (finish_command): Update.
11591         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11592
11593 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11594
11595         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11596
11597 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11598
11599         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11600         type const.
11601
11602 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11603
11604         * alphafbsd-tdep.c: Update copyright years.  Include
11605         alpha-tdep.h.
11606         (alphafbsd_use_struct_convention): Make static.
11607         (alphafbsd_init_abi): New function.
11608         (_initialize_alphafbsd_tdep): New function.
11609         * config/alpha/tm-fbsd.h: Update copyright years.
11610         (USE_STRUCT_CONVENTION): Remove.
11611
11612 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11613
11614         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11615         an Alpha ABI variant.
11616         (alpha_abi_handler_list): Declare.
11617         (alpha_gdbarch_register_os_abi): New function.
11618         (alpha_gdbarch_init): Give registered ABI variant handlers a
11619         chance to tweak the gdbarch once we have set up defaults.
11620         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11621
11622 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11623
11624         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11625         to standard_coerce_float_to_double.
11626         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11627
11628 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11629
11630         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11631         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11632         from gdbarch_tdep rather than a constant.
11633         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11634         the default text address for all Alpha Unix ABIs.
11635         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11636         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11637
11638 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11639
11640         * alpha-tdep.h: New file.  Includes several Alpha target constants
11641         taken from...
11642         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11643         let gdbarch deal with.
11644         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11645         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11646         to dependency list.
11647         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11648         Alpha target register names.
11649         * alphabsd-nat.c: Likewise.
11650         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11651         Alpha target register names.  Make serveral routines static.
11652         (alpha_get_saved_register): New function.
11653         (alpha_abi_names): New.
11654         (process_note_abi_tag_sections): New function.
11655         (get_elfosabi): New function.
11656         (alpha_gdbarch_init): New function.
11657         (alpha_dump_tdep): New function.
11658         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11659
11660 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11661
11662         * frame.c (find_saved_register): Delete #ifdef
11663         HAVE_REGISTER_WINDOWS code.
11664         * config/sparc/tm-sparc.h: Update comments.
11665         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11666
11667 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11668
11669         * i960-tdep.c (i960_find_saved_register): New function.
11670         (i960_get_saved_register): New function.
11671         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11672         (i960_get_saved_register): Declare.
11673         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11674
11675 2002-04-20  David S. Miller  <davem@redhat.com>
11676
11677         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11678
11679 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11680
11681         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11682         instead of NUM_PSEUDO_REGS.
11683
11684 2002-04-20  David S. Miller  <davem@redhat.com>
11685
11686         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11687         GDB_MULTI_ARCH_PARTIAL
11688         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11689         define, let tm-sp64.h do it.
11690
11691 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11692
11693         * frame.c (find_saved_register): Avoid a NULL pointer
11694         dereference and actually walk the frame list.
11695
11696 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11697
11698         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11699         sorted in most most-recent-used order.  Document.
11700         * gdbarch.h, gdbarch.c: Regenerate.
11701
11702 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11703
11704         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11705         instead of ->prev.
11706         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11707         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11708         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11709         instead of ->prev.
11710
11711 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11712
11713         Fix PR gdb/471.
11714         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11715         (build_builtin_type_vec128): Ditto.
11716         (append_composite_type_field): Fix calculation of type length in
11717         union case.
11718
11719 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11720
11721         * config/djgpp/README: Update.
11722
11723         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11724         compiler warnings.
11725
11726 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11727
11728         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11729         (alpha_setup_arbitrary_frame): ...to this.
11730         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11731         for alpha_setup_arbitrary_frame.
11732
11733 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11734
11735         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11736         * gdbarch.h, gdbarch.c: Regenerate.
11737
11738         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11739         * target.h (memory_breakpoint_from_pc): Update declaration.
11740         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11741
11742         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11743         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11744         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11745         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11746         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11747         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11748         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11749         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11750         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11751         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11752         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11753         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11754
11755         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11756         const pointer.
11757         * monitor.c (monitor_insert_breakpoint): Ditto.
11758         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11759
11760         * config/mcore/tm-mcore.h: Update copyright.
11761         * mem-break.c: Ditto.
11762         * xstormy16-tdep.c: Ditto.
11763
11764 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11765
11766         * p-exp.y: Add precedence rule for '^' token.
11767         This removes the shift/reduce conflicts.
11768         Remove the comment concerning these shift/reduce conflicts.
11769
11770 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11771
11772         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11773         (registers_powerpc_nofp): New register set for processors
11774         without floating point unit.
11775
11776 2002-04-18  David S. Miller  <davem@redhat.com>
11777
11778         * MAINTAINERS: Add myself to write-after-approval.
11779
11780 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11781
11782         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11783
11784 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11785
11786         * rs6000-tdep.c (frame_initial_stack_address): Use
11787         frame_register_read to read the alloca_reg.
11788
11789 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11790
11791         * frame.c (find_saved_register): Find saved registers in the next
11792         not prev frame.
11793         Fix PR gdb/365.
11794
11795 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11796
11797         * gdbarch.sh (LANG): Set to ``c''.
11798
11799 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11800
11801         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11802
11803 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11804
11805         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11806         Update copyright.
11807
11808         * hpread.c (hpread_get_lntt): Add declaration.
11809         Also fix PR gdb/391.
11810
11811 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11812
11813         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11814         * aclocal.m4, configure: Re-generate.
11815         Fix PR gdb/391.
11816
11817 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11818
11819         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11820         instead of tm_print_insn.
11821
11822 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11823
11824         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11825
11826 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11827
11828         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11829         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11830         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11831
11832 2002-04-12  Don Howard  <dhoward@redhat.com>
11833
11834         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11835         max_user_call_depth.
11836         (init_cmd_lists): Initialize the new value;
11837         * cli/cli-script.c (execute_user_command): Limit the call depth of
11838         user defined commands.  This avoids a core-dump when user commands
11839         are infinitly recursive.
11840
11841 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11842
11843         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11844         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11845         from tdep struct instead of DEFAULT_LR_SAVE.
11846         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11847         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11848         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11849
11850 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11851
11852         * Remote.c: Spelling fix.
11853         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11854         If no symbol found for "sbrk", try "_sbrk".
11855         (make_output_phdrs): Use bfd_section_name.
11856         (gcore_copy_callback): Use bfd_section_name.
11857         * eval.c: Indentation fix-ups.
11858         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11859         in case it gets applied to an address that is already
11860         in the instruction space.
11861         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11862         * symfile.c: Fix indentation, long lines.
11863         * source.c: White space fix-up.
11864
11865 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11866
11867         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11868         * frame.c (frame_register_read): New function.  Return non-zero on
11869         success.
11870         (read_relative_register_raw_bytes_for_frame): Delete.
11871         (read_relative_register_raw_bytes): Delete.
11872         * frame.h (frame_register_read): Declare.
11873         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11874         * sh-tdep.c: Ditto.
11875         * infcmd.c (do_registers_info): Ditto.
11876         * hppa-tdep.c: Ditto.
11877         * rs6000-tdep.c: Ditto.
11878         * h8500-tdep.c: Ditto.
11879         * mips-tdep.c: Ditto.
11880         * h8300-tdep.c: Ditto.
11881         * z8k-tdep.c: Ditto.
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): Use rs6000_* methods for
11887         64-bit SysV ABI.
11888
11889 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11890
11891         From Jimi X <jimix@watson.ibm.com>:
11892         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11893         bfd info.
11894
11895 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11896
11897         From Jimi X <jimix@watson.ibm.com>:
11898         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11899         register sets for these processor variants.
11900
11901 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11902
11903         * regformats/reg-ppc.dat: Support FPSCR.
11904
11905 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11906
11907         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11908         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11909         Add fpscr as an invalid/unfetchable register.
11910         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11911         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11912         (fill_fpregset): Add support for register fpscr.
11913         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11914         (fill_gregset): Account for the fact that register ``mq'' might
11915         not exist.
11916         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11917         (registers_power): Add fpscr to register set at slot 71.
11918         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11919         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11920
11921 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11922
11923         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11924         * configure: Regenerate.
11925         * config.in: Regenerate.
11926         * acconfig.h: Add define for _SYSCALL32.
11927         * core-sol2.c: Remove #define _SYSCALL32.
11928         * solib-legacy.c: Remove #define _SYSCALL32.
11929
11930 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11931
11932         * stack.c (select_frame): Cleanup internal error message, do not
11933         use %p.
11934
11935 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11936
11937         * stack.c (select_frame): Check that selected_frame and the
11938         specified level are as expected.
11939         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11940         Update copyright.
11941         * frame.h (struct frame_info): Add field `level'.  Update
11942         copyright.
11943         Work-in-progress PR gdb/464.
11944
11945 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11946
11947         * maint.c (maint_print_section_info): Rename print_section_info.
11948         (print_bfd_section_info, print_objfile_section_info): Update.
11949         * inferior.h (struct gdbarch): Add opaque declaration.
11950         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11951         * gdbarch.h: Regenerate.
11952
11953 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11954
11955         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11956         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11957         (kernel_u_size): Added.
11958         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11959         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11960
11961 2002-04-04  Jim Ingham  <jingham@apple.com>
11962
11963        * valarith.c (find_size_for_pointer_math): New function, either returns
11964        the size for a pointer's target, returns 1 for void *, or errors for
11965        incomplete types.
11966        (value_add, value_sub): use find_size_for_pointer_math.
11967
11968 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11969
11970         * linux-low.c (linux_look_up_symbols): New hook.
11971         (linux_target_ops): Add linux_look_up_symbols.
11972         * remote-utils.c (decode_address): New function.
11973         (look_up_one_symbol): New function.
11974         * server.c (handle_query): Call target look_up_symbols hook.
11975         * server.h (look_up_one_symbol): Add prototype.
11976         * target.h (struct target_ops): Add look_up_symbols hook.
11977
11978 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11979
11980         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11981         override FP_REGNUM with frame->fp.  Update copyright.
11982         * parse.c (num_std_regs, std_regs): Delete.
11983         (target_map_name_to_register): Do not search std_regs.  Update
11984         function description.
11985         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11986         declarations.  Update copyright.
11987         Fix PR gdb/251.
11988
11989 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11990
11991         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11992         after the last symbol in a block.
11993
11994 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11995
11996         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11997         is non zero as a found symbol.
11998
11999 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12000
12001         * findvar.c: Include "builtin-regs.h".
12002         (value_of_register): Call value_of_builtin_reg when applicable.
12003         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12004         (target_map_name_to_register): Call
12005         builtin_reg_map_name_to_regnum.
12006         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12007         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12008         (builtin_regs_h): Define.
12009         (builtin-regs.o): New target.
12010         (findvar.o): Add $(builtin_regs_h).
12011         * builtin-regs.c, builtin-regs.h: New files.
12012         * std-regs.c: New file.
12013         Partial fix for PR gdb/251.
12014
12015 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12016
12017         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12018         it's no longer required.
12019
12020 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12021
12022         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12023
12024 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12025
12026         From Jimi X <jimix@watson.ibm.com>:
12027         * rs6000-tdep.c (rs6000_software_single_step): Use
12028         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12029         and size.  Use target_insert_breakpoint() and
12030         target_remove_breakpoint() to insert and remove breakpoints
12031         instead of explicit memory reads and writes.
12032
12033 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12034
12035         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12036         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12037         ELF_OBJECT_FORMAT ifdef.
12038
12039 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12040
12041         From Jimi X <jimix@watson.ibm.com>:
12042         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12043
12044 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12045
12046         From Jimi X <jimix@watson.ibm.com>:
12047         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12048         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12049
12050 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12051
12052         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12053         s/asprintf/xasprintf/.
12054         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12055
12056 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12057
12058         I believe Jeff Law denies responsability for this one:
12059         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12060         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12061         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12062         Work-around for PR gdb/366.
12063
12064 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12065
12066         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12067         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12068         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12069
12070 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12071
12072         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12073         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12074         information.
12075
12076 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12077
12078         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12079         maintainer.
12080
12081 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12082
12083         * README (Reporting Bugs in GDB): Document the bug web page as the
12084         prefered way of submitting bugs.
12085         Fix PR gdb/402.
12086
12087 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12088
12089         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12090         -1.  Update comment.
12091         * gdbarch.h, gdbarch.c: Re-generate.
12092
12093 2002-04-07  Andreas Schwab  <schwab@suse.de>
12094
12095         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12096         buffer to regcache_collect.
12097
12098 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12099
12100         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12101         * gdbarch.c, gdbarch.h: Re-generate.
12102
12103 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12104
12105         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12106         declaration.  Fix -Werror.
12107
12108 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12109
12110         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12111         * gdbarch.c: Regenerate.
12112
12113 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12114
12115         * breakpoint.c (clear_command): Rewrite middle section to
12116         combine two loops with identical control conditions.
12117         Add a cleanup to eliminate a memory leak.
12118         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12119
12120 2002-04-05  H.J. Lu  (hjl@gnu.org)
12121
12122         * solib-svr4.c (bkpt_names): Add "__start".
12123
12124 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12125
12126         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12127         as test for 64 bit target.
12128
12129 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12130
12131         * h8500-tdep.c (h8500_write_fp): Delete function.
12132         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12133         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12134         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12135         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12136         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12137         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12138         (s390_write_fp):
12139         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12140         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12141         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12142         (d10v_write_fp): Delete function.
12143         * inferior.h (write_fp, generic_target_write_fp): Delete
12144         declarations.
12145         * regcache.c (generic_target_write_fp): Delete function.
12146         (write_fp): Delete function.
12147         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12148         * gdbarch.h, gdbarch.c: Regenerate.
12149         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12150         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12151         (sparc64_write_fp): Delete declaration.
12152         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12153         (h8500_write_fp): Delete declaration.
12154
12155 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12156
12157         * sparc-tdep.c (sparc64_write_fp): Delete.
12158         (sparc_push_dummy_frame): Replace write_fp call with code to store
12159         the FP directly.
12160         (sparc_gdbarch_init): Do not initialize write_fp.
12161
12162 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12163
12164         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12165         clause.
12166
12167 2002-03-29  Jim Blandy  <jimb@redhat.com>
12168
12169         * stack.c (get_selected_block): Add new argument `addr_in_block',
12170         used to return the exact code address we used to select the block,
12171         not just the block.
12172         * blockframe.c (get_frame_block, get_current_block): Same.
12173         * frame.h (get_frame_block, get_current_block,
12174         get_selected_block): Update declarations.
12175         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12176         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12177
12178 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12179
12180         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12181         warning message.
12182
12183 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12184
12185         * utils.c (xfullpath): New function.
12186         * defs.h (xfullpath): Add declaration.
12187         * source.c (openp): Use xfullpath in place of gdb_realpath to
12188         avoid resolving the basename part of filenames when the
12189         associated file is a symbolic link. This fixes a potential
12190         inconsistency between the filenames known to GDB and the
12191         filenames it prints in the annotations.
12192         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12193         to be able to match a filename with either the real filename, or
12194         the name of any symbolic link to this file.
12195         (lookup_partial_symtab): Ditto.
12196
12197 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12198
12199         * breakpoint.c: Add support for hardware breakpoints in overlays.
12200         (overlay_events_enabled): New state variable.
12201         (insert_breakpoints): Use overlay_events_enabled to decide
12202         whether to attempt to set a breakpoint at the overlay load addr.
12203         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12204         (remove_breakpoint): Use overlay_events_enabled to decide
12205         whether breakpoints need to be removed from overlay load addr.
12206         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12207         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12208         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12209         disable_overlay_breakpoints): Update overlay_events_enabled.
12210
12211 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12212
12213         * dwarf2read.c (struct function_range): New.
12214         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12215         (check_cu_functions): New.
12216         (read_file_scope): Initialize global function lists.
12217         Call dwarf_decode_line after processing children.
12218         (read_func_scope): Add to global function list.
12219         (dwarf_decode_lines): Call check_cu_functions everywhere
12220         record_line is called.  Call record_line with a linenumber
12221         of 0 to mark sequence ends.
12222
12223 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12224
12225         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12226         change sync with glibc.
12227
12228 2002-04-03  Jim Blandy  <jimb@redhat.com>
12229
12230         * configure.in: Call AC_C_INLINE.
12231         * configure: Regenerated.
12232
12233 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12234
12235         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12236         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12237
12238 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12239
12240         * NEWS: Mention gcore support on FreeBSD/i386.
12241
12242         * fbsd-proc.c: New file.
12243         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12244         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12245
12246         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12247         while statement.
12248
12249 2002-03-29  Jim Blandy  <jimb@redhat.com>
12250
12251         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12252         unescaped newlines in string literals, but newer ones don't.  So
12253         escape them.
12254
12255 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12256             Andrew Cagney <cagney@redhat.com>
12257
12258         * cli/cli-dump.c: New file.  Dump memory to file,
12259         restore file to memory.
12260         * cli/cli-dump.h: New file.
12261         * Makefile.in: Add rules, dependencies for cli-dump.o.
12262         * NEWS: Mention new commands.
12263
12264 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12265
12266         * symfile.c (symbol_file_add): Move test for null symbols to later.
12267
12268 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12269
12270         From veksler at il.ibm.com:
12271         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12272         the xstrduped original path.
12273         Fix PR gdb/417.
12274
12275 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12276
12277         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12278         * infcmd.c (_initialize_infcmd): Ditto.
12279         * language.c (_initialize_language): Ditto.
12280         * symfile.c (_initialize_symfile): Ditto.
12281         * top.c (_init_main): Ditto.
12282         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12283
12284 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12285
12286         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12287         vector registers handling.
12288         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12289         fields of frame data.
12290         (frame_get_saved_regs): Fill in information for AltiVec registers.
12291
12292 2002-03-27  Jim Blandy  <jimb@redhat.com>
12293
12294         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12295         a function; leave this macro here to invoke that function.
12296         (symbol_init_mangled_name): Declaration for that function.
12297         * symtab.c (symbol_init_mangled_name): New function.
12298
12299 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12300
12301         * valarith.c: Replace strerror with safe_strerror.
12302         * tracepoint.c: Ditto.
12303         * lin-lwp.c: Ditto.
12304         * go32-nat.c: Ditto.
12305         * inflow.c: Ditto.
12306         * gnu-nat.c: Ditto.
12307
12308 2002-03-27  Andreas Schwab  <schwab@suse.de>
12309
12310         * event-top.c (command_line_handler): Remove useless if.
12311
12312 2002-03-27  Andreas Jaeger  <aj@suse.de>
12313
12314         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12315         comment.
12316
12317 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12318
12319         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12320         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12321         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12322         (x86_64_linux_dr_get_status, supply_gregset),
12323         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12324         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12325         (x86_64_register_info_table): Add.
12326         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12327         (x86_64_register_raw_size, x86_64_register_virtual_type),
12328         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12329         general x86_64_register_info_table.
12330         (i386_gdbarch_init): gdbarch_register_bytes is now set
12331         dynamicaly during initialization.
12332         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12333         * gdbserver/linux-x86-64-low.c: Ditto.
12334
12335 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12336
12337         * gdbserver/server.c (main): Call target_signal_to_host_p
12338         and target_signal_to_host on signals received from the remote.
12339         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12340         target_signal_from_host on signals sent to the remote.
12341         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12342         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12343
12344 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12345
12346         * signals/signals.c: Include "server.h" in gdbserver build.
12347         (target_signal_from_name): Don't use STREQ.
12348         (_initialize_signals): Likewise.  Don't include function in
12349         gdbserver build.
12350
12351 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12352
12353         * signals.c: Moved to...
12354         * signals/signals.c: Here.
12355         * Makefile (signals.o): Update.
12356
12357 2002-03-26  Jeff Law (law@redhat.com)
12358
12359         * somread.c (som_symtab_read): Remove some commented out code and
12360         updated related comments.  Do not set the minimal symbol table to
12361         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12362         in a dynamic executable.
12363         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12364         where we are unable to find the minimal symbol for the given
12365         PC value.
12366
12367 2002-03-25  Jeff Law (law@redhat.com)
12368
12369         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12370
12371 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12372
12373         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12374
12375 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12376
12377         * command.h: Update copyright.
12378         (struct cmd_list_element): Replace definition with opaque
12379         declaration.
12380         (enum cmd_types): Document that it will eventually be moved to
12381         cli/cli-decode.h
12382         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12383         (MALLOCED_REPLACEMENT): Delete macro.
12384         * Makefile.in (cli_decode_h): Add $(command_h).
12385         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12386         * top.c: Include "cli/cli-decode.h".
12387         * completer.c: Include "cli/cli-decode.h".
12388         * maint.c: Include "cli/cli-decode.h".
12389         * cli/cli-decode.h: Include "command.h".
12390         (enum command_class): Delete.
12391         (enum cmd_types): Comment out.
12392         (enum cmd_auto_boolean): Delete.
12393         (enum var_types): Delete.
12394
12395 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12396
12397         * cli/cli-decode.c: Include "gdb_assert.h".
12398         (add_set_or_show_cmd): New static function.
12399         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12400         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12401         all fields, such as func, from the set command.
12402
12403 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12404
12405         * MAINTAINERS (sh-elf): Change warning flag to -w.
12406
12407 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12408
12409         * defs.h (error): Add printf format attribute.
12410         * thread-db.c (thread_from_lwp): Fix error format string.
12411         * stack.c (parse_frame_specification): Ditto.
12412         * cli/cli-decode.c (undef_cmd_error): Ditto.
12413         * scm-lang.c (scm_lookup_name): Ditto.
12414         * tracepoint.c (trace_error): Ditto.
12415         * remote-utils.c (usage): Ditto.
12416         * remote.c (compare_sections_command): Ditto.
12417         Fix PR gdb/328.
12418
12419 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12420
12421         * gdbtypes.c (append_composite_type_field): New function.
12422         (init_composite_type): New function.
12423         * gdbtypes.h (append_composite_type_field): Declare.
12424         (init_composite_type): Ditto.
12425
12426 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12427
12428         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12429         function.
12430         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12431         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12432         structure returning convention for SYSV ABI case, but not
12433         for GNU/Linux, FreeBSD, or NetBSD.
12434
12435 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12436
12437         * symtab.h (lookup_block_symbol): Add mangled_name argument
12438         to prototype.
12439
12440         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12441         with new mangled_name argument.
12442         * linespec.c (decode_line_1): Likewise.
12443         * valops (value_of_this): Likewise.
12444         * symtab.c (lookup_transparent_type): Likewise.
12445         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12446         (lookup_symbol): If we are given a mangled name, pass it down
12447         to lookup_symbol_aux.
12448         (lookup_block_symbol): If we are given a mangled name to check
12449         against, only return symbols which match it.
12450
12451 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12452
12453         * win32-nat.c (child_create_inferior): Check for proper shell to use
12454         here, in case the user changes it on the fly.
12455         (_initialize_inftarg): Remove shell path considerations.
12456
12457 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12458
12459         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12460         for gdbarch_max_register_raw_size and max_register_virtual_size.
12461         Adjust copyright year.
12462
12463 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12464
12465          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12466          in a function to cover the entire beginning of the function
12467          as well if it does not already.
12468
12469 2002-03-21  Tom Rix  <trix@redhat.com>
12470
12471         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12472         (rs6000_ptrace64): Renamed from ptrace64.
12473
12474 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12475
12476         * gdbserver/remote-utils.c (remote_open): Don't call
12477         getprotobyname, we're all using TCP here so just use
12478         IPPROTO_TCP.
12479         * gdbserver/gdbreplay.c (remote_open): Ditto.
12480
12481 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12482
12483         * regcache.c (_initialize_regcache): No need to call
12484         build_regcache() at this time; it gets called whenever
12485         the gdbarch changes.
12486
12487 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12488
12489         * sparc-nat.c:  Include sys/param.h where possible.
12490
12491 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12492
12493         Fix PR gdb/422.
12494         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12495         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12496         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12497         complex types.
12498         * stabsread.c (rs6000_builtin_type): Likewise.
12499         (read_sun_floating_type): Likewise.
12500
12501 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12502
12503         * stabsread.c (read_member_functions): Remove skip code for duplicate
12504         constructor/destructor methods.  Use standard parsing for these
12505         methods and just do not chain them to the list of methods after
12506         parsing.
12507
12508 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12509
12510         * coffread.c: Remove redundant static declarations.  Replace
12511         occurrences of `PTR' with `void *'.
12512         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12513         * top.h (quit_cover): Likewise.
12514         * defs.h (catch_errors): Likewise.
12515
12516 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12517
12518         * defs.h (XMALLOC): Define.
12519         * gdb-events.sh (XMALLOC): Delete macro.
12520         * gdb-events.c, gdb-events.h: Regenerate.
12521         * gdbarch.sh (XMALLOC): Delete macro.
12522         * gdbarch.c: Regenerate.
12523         * serial.c (XMALLOC): Delete macro.
12524         * ui-file.c (XMALLOC): Ditto.
12525         * ser-unix.h (XMALLOC): Ditto.
12526         * sh-tdep.c (XMALLOC): Ditto.
12527         * ui-out.c (XMALLOC): Ditto.
12528         * utils.c (XMALLOC): Ditto.
12529         * i386-tdep.c (XMALLOC): Ditto.
12530         * gdb-events.c (XMALLOC): Ditto.
12531         * d10v-tdep.c (XMALLOC): Ditto.
12532         * cli-out.c (XMALLOC): Ditto.
12533
12534         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12535         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12536         * ui-file.c, ui-out.c: Ditto.
12537
12538 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12539
12540         * command.h (struct cmd_list_element): Add field context.
12541         (set_cmd_context, get_cmd_context): Declare.
12542         * cli/cli-decode.h: Ditto.
12543         * cli/cli-decode.c (get_cmd_context): New function.
12544         (set_cmd_context): New function.
12545         (add_cmd): Initialize context.
12546         Part of fixing PR gdb/145 and PR gdb/146.
12547
12548 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12549
12550         * cli/cli-decode.c (cmd_type): New function.
12551         * command.h (cmd_type): Declare.
12552         * infrun.c (set_schedlock_func): Call function cmd_type.
12553         * kod.c (kod_set_os): Call cmd_type.
12554         * cris-tdep.c (cris_version_update): Use function cmd_type.
12555         (cris_mode_update, cris_abi_update): Ditto.
12556
12557         * command.h: (execute_cmd_post_hook): Declare.
12558         (execute_cmd_pre_hook): Declare.
12559         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12560         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12561         functions. Execute pre/post hook while ensuring that afterwords
12562         hook_in is cleared.
12563         * top.c (execute_command): Use execute_cmd_post_hook, and
12564         execute_cmd_pre_hook to execute pre/post commands.
12565         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12566         hook_stop_stub.
12567         (hook_stop_stub): Call execute_cmd_pre_hook.
12568
12569 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12570
12571         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12572         set'' and this leads to a core dump.  Move xstrdup of
12573         operating_system to after check that it is not NULL.
12574
12575 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12576
12577         * kod.c (kod_set_os): Remove unnecessary check that
12578         ``command->type'' is set_cmd.
12579
12580         * valprint.c (set_input_radix): Use input_radix.
12581         (set_output_radix): Use output_radix.
12582         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12583         isn't reverted.
12584
12585 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12586
12587         * value.h (struct value): Delete field ``substring_addr''.  Change
12588         aligner fields to force_doublest_align, force_longest_align,
12589         force_core_addr_align and force_pointer_aligh.
12590
12591         * value.h (struct value): Fix typo in above change.
12592
12593 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12594
12595         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12596         to fix internal_error from ``maintenance print architecture''.
12597
12598 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12599
12600         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12601         for gcc versions after gcc-2.8.1.
12602
12603 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12604
12605         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12606         for method resolution.  Restore adjustment of ``this'' pointer after
12607         calling value_struct_elt, which was accidentally removed during the
12608         HP merge.
12609
12610 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12611
12612         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12613         value_of_register.
12614         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12615         get_saved_register.
12616         * value.h (value_of_register): Update.
12617
12618 2002-03-14  Richard Henderson  <rth@redhat.com>
12619
12620         * configure.in: Detect declaration for canonicalize_file_name.
12621         * utils.c (canonicalize_file_name): Declare, if needed.
12622         (gdb_realpath): Prefer realpath if available and usable.
12623         * config.in, configure: Rebuild.
12624
12625 2002-03-14  Richard Henderson  <rth@redhat.com>
12626
12627         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12628         a constant array bound.
12629
12630         * MAINTAINERS: Add myself to write-after-approval.
12631
12632 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12633
12634         * symfile.c (syms_from_objfile): Return immediately if no syms.
12635         (symbol_file_add): Return immediately if no syms.
12636         (find_sym_fns): Return immediately if no syms.
12637
12638 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12639
12640         * gdbserver/remote-util.c (remote_open): Print remote-side's
12641         IP address when remote debugging over the network.
12642
12643 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12644
12645         * config/sparc/fbsd.mh: Fix copyright.
12646         * config/sparc/fbsd.mt: Likewise.
12647
12648 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12649
12650         * MAINTAINERS: Fix typo in name of gdb warnings option.
12651         (x86-64): Fix formating so that this can be parsed by awk.
12652
12653 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12654
12655         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12656         * defs.h: Include "gdb/signals.h".
12657         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12658
12659 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12660
12661         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12662         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12663         from x86-64-tdep.h
12664
12665 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12666             Don Howard <dhoward@redhat.com>
12667
12668         * mips-tdep.c (ST0_FR): Define.
12669         (mips2_fp_compat): New function, temporarily disabled.
12670         (mips_read_fp_register_single): New function.
12671         (mips_read_fp_register_double): New function.
12672         (mips_print_register): Use them.
12673         (do_fp_register_row): Likewise.
12674
12675 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12676
12677         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12678         approval''.
12679
12680 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12681
12682         * stabsread.c (read_member_functions): Fix is_stub test for
12683         static member functions, improve comment.
12684
12685 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12686
12687         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12688         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12689         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12690         commands that set boolean values.
12691         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12692         (arm_rdi_resume): Always initialize PC.
12693         (arm_rdi_open): Don't use rslt as a boolean.
12694         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12695         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12696         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12697         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12698
12699 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12700
12701         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12702         * configure: Rebuilt.
12703
12704 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12705
12706         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12707         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12708
12709 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12710
12711         * cli/cli-decode.c (set_cmd_completer): New function.
12712         * command.h (set_cmd_completer): Declare.
12713         * cli/cli-decode.h (set_cmd_completer): Ditto.
12714
12715         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12716         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12717         * win32-nat.c (_initialize_inftarg): Ditto.
12718         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12719         * proc-api.c (_initialize_proc_api): Ditto.
12720         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12721         * source.c (_initialize_source): Ditto.
12722         * exec.c (_initialize_exec): Ditto.
12723         * solib.c (_initialize_solib): Ditto.
12724         * top.c (init_main): Ditto.
12725         * tracepoint.c (_initialize_tracepoint): Ditto.
12726         * symfile.c (_initialize_symfile): Ditto.
12727         * printcmd.c (_initialize_printcmd): Ditto.
12728         * infcmd.c (_initialize_infcmd): Ditto.
12729         * corefile.c (_initialize_core): Ditto.
12730
12731 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12732
12733         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12734
12735 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12736
12737         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12738
12739 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12740
12741         * NEWS: Update headings, 5.2 has branched.
12742
12743 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12744
12745         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12746         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12747         (register_addr, REGISTER_RAW_SIZE): Likewise.
12748         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12749         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12750
12751 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12752
12753         * MAINTAINERS (x86-64): Add myself.
12754         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12755         changed value_ptr -> struct value *
12756
12757 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12758
12759         * configure.host (sparc64-*-freebsd): Add.
12760         * configure.tgt: Likewise.
12761         * config/sparc/fbsd.mh: New file.
12762         * config/sparc/fbsd.mt: Likewise.
12763         * config/sparc/nm-fbsd.h: Likewise.
12764         * config/sparc/tm-fbsd.h: Likewise.
12765
12766 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12767
12768         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12769         regformats/reg-s390x.dat.
12770
12771 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12772
12773         * utils.c: Add FIXME explaining true/false problem.
12774
12775 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12776
12777         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12778
12779 2002-02-28  Michael Chastain  <mec@shout.net>
12780
12781         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12782
12783 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12784
12785         * gdbserver/linux-s390-low.c: New file.
12786         * regformats/reg-s390.dat: New file.
12787         * regformats/reg-s390x.dat: New file.
12788         * gdbserver/configure.srv: Add S/390.
12789         * gdbserver/Makefile.in: Add S/390.
12790         * configure.tgt: Enable gdbserver for S/390.
12791
12792 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12793
12794         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12795         first line of the doc string for "info dos", except at the end of
12796         the sentence, since the short help stops at the first period.
12797
12798 2002-02-28  Jason Merrill  <jason@redhat.com>
12799
12800         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12801
12802 2002-02-27  Fred Fish  <fnf@redhat.com>
12803
12804         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12805         comment (dumy -> dummy).
12806
12807 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12808
12809         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12810
12811 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12812
12813       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12814
12815 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12816
12817         * gdbserver/acconfig.h: New file.
12818         * gdbserver/i387-fp.c: New file.
12819         * gdbserver/i387-fp.h: New file.
12820         * gdbserver/linux-x86-64.c: New file.
12821         * regformats/reg-x86-64.dat: New file.
12822         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12823         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12824         * gdbserver/configure.in: Add support for regsets.
12825         * gdbserver/config.in: Regenerate.
12826         * gdbserver/configure: Regenerate.
12827         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12828         * gdbserver/linux-low.h: New file.
12829         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12830         for regsets.
12831         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12832         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12833         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12834         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12835         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12836         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12837         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12838         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12839         * gdbserver/regcache.c (supply_register): New function.
12840         (supply_register_by_name): New function.
12841         (collect_register): New function.
12842         (collect_register_by_name): New function.
12843
12844 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12845
12846         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12847         (config.status): Add configure.srv dependency.
12848         (server_h): Add config.h dependency.
12849
12850 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12851
12852         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12853         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12854         * gdbserver/configure.srv: Change i386-*-linux* to use
12855         reg-i386-linux.o.
12856
12857 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12858
12859         * x86-64-tdep.c: Re-indent.  Update copyright date.
12860
12861 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12862
12863         From Michal Ludvig <mludvig@suse.cz>:
12864         * x86-64-tdep.c (value.h): Delete.
12865         (gdb_assert.h): Include.
12866         (x86_64_register_convert_to_virtual,
12867         x86_64_register_convert_to_raw ): Add check which lets only
12868         floating-point values to be converted.
12869         (value_push): Delete.
12870         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12871         (i386_gdbarch_init): Number of register_bytes fixed.
12872
12873 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12874
12875         * MAINTAINERS: Add x86-64 target.
12876
12877 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12878
12879         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12880         * osfsolib.c (solib_map_sections): Ditto.
12881         * irix5-nat.c (solib_map_sections): Ditto.
12882         * corelow.c (gdb_check_format): Ditto.
12883         * symfile.c (symfile_bfd_open): Ditto.
12884         * solib.c (solib_map_sections): Ditto.
12885         Fix PR gdb/354.
12886
12887 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12888
12889         * remote.c (_initialize_remote): By default, disable ``e'' and
12890         ``E'' step out-of-range packets.
12891
12892 2002-02-26  Andreas Schwab  <schwab@suse.de>
12893
12894         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12895         m68k_linux_frame_saved_pc.
12896         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12897         in_sigtramp.
12898         (SIGCONTEXT_PC_OFFSET): Remove.
12899         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12900         m68k_linux_sigtramp_saved_pc): New functions.
12901         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12902         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12903         (UCONTEXT_PC_OFFSET): Define.
12904         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12905         non-RT and RT signal trampolines.
12906
12907 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12908
12909         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12910         (TARGET_NBPG, STACK_END_ADDR): Delete
12911         (VARIABLES_INSIDE_BLOCK): Delete.
12912
12913 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12914
12915         * utils.c (perror_with_name): Make string parameter constant.
12916         (print_sys_errmsg): Ditto.
12917         (query): Ditto.
12918         * defs.h (perror_with_name): Update.
12919         (print_sys_errmsg): Update.
12920         (query): Update.
12921
12922 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12923
12924         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12925         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12926
12927 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12928
12929         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12930         if it already matches the current architecture from the exec file.
12931         Include arch-utils.h for gdbarch_info_init prototype.
12932         * Makefile.in (rs6000-nat.o): Update dependencies.
12933
12934 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12935
12936         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12937          list of exported variables.
12938
12939 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12940
12941         * gdbserver/configure.srv: New file.
12942         * gdbserver/configure.in: Use configure.srv instead
12943         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12944         from it.
12945         * gdbserver/configure: Regenerated.
12946         * gdbserver/terminal.h: New file.
12947         * gdbserver/Makefile.in: Update for configure changes.  Remove
12948         more unneeded include paths.
12949
12950 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12951
12952         From wiz at danbala:
12953         * config/sparc/tm-sp64.h: Fix grammar and typos.
12954         Fix PR gdb/287.
12955
12956 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12957
12958         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12959         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12960         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12961         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12962         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12963         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12964         * s390-tdep.c: Ditto.
12965         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12966         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12967         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12968         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12969         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12970         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12971         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12972         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12973         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12974         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12975         Fix PR gdb/378.
12976
12977 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12978
12979         * lin-thread.c: Delete file.
12980         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12981         to gdb_proc_service.h.
12982         * configure: Re-generate.
12983
12984         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12985         * serial.c (serial_open): Delete check for "ocd".
12986         Fix PR gdb/349.
12987
12988         * Makefile.in (linux-thread.o): Delete target.
12989         * linux-thread.c: Delete file.
12990
12991         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12992         renamed SH files to be consistent.
12993
12994         * symtab.c (sort_search_symbols): Use xfree.
12995
12996 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12997
12998         * arm-linux-tdep.c (arm_linux_init_abi): Register
12999         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13000         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13001         definition with undef, since we don't want the sysvr4 definition.
13002         (SKIP_TRAMPOLINE_CODE): Likewise.
13003
13004 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13005
13006         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13007
13008         * configure.in: (AC_CHECK_FUNCS) Added test for
13009         canonicalize_file_name Regenerated.
13010         * config.in, configure: Regenerated.
13011         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13012         defined use canonicalize_file_name.
13013
13014 2002-02-23  Michael Chastain  <mec@shout.net>
13015
13016         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13017
13018 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13019
13020         * README: Remove references to cygnus.com.
13021         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13022         dot com'' form.  Remove references to cygnus.com and sourceware.
13023
13024 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13025
13026         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13027         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13028         1003.1-2001 no longer allows "head -1".
13029         * gdb/Makefile.in (version.c): Likewise.
13030         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13031         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13032         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13033
13034 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13035
13036         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13037         * command.h (cmd_cfunc_eq): Declare.
13038         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13039
13040         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13041         ``struct cmd_list_element *''.
13042         * cli/cli-cmds.c (is_complete_command): Update.  Use
13043         cmd_cfunc_eq.
13044         * top.c (execute_command): Pass the command to
13045         is_complete_command.
13046         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13047
13048 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13049
13050         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13051         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13052         architecture defines.
13053         * s390-tdep.c (s390_gdbarch_init): Likewise.
13054
13055 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13056
13057         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13058         (arm_linux_push_arguments): Likewise.
13059         (arm_linux_init_abi): Register them.  Also register linux-specific
13060         call_dummy_words.
13061         (find_minsym_and_objfile): Use strcmp, not STREQ.
13062         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13063         (arm_linux_call_dummy_words): Delete declaration.
13064         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13065         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13066         declarations.
13067         (LOWEST_PC): Delete.
13068
13069 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13070
13071         * maint.c (print_section_info): Do not prepend `0x' to filepos
13072         output, it will be handled by local_hex_string_custom.
13073
13074 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13075
13076         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13077         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13078         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13079
13080 2002-02-22  Jim Blandy  <jimb@redhat.com>
13081
13082         Indicate that the bcache functions don't change the strings
13083         they're passed.
13084         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13085         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13086
13087 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13088
13089         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13090
13091 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13092
13093         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13094         find the complete path to a loaded DLL.
13095
13096 2002-02-21  Fred Fish  <fnf@redhat.com>
13097
13098         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13099         that marks the end of the range of a function, enter a line number
13100         entry that has a line number of zero and a PC offset that matches
13101         the end of the function.  This starts a range of PC's for which no
13102         line number information is known.
13103         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13104         PC's for which no line number info is found (line number is zero)
13105         then we didn't find any valid line information.
13106         * symtab.h: Document use of zero line number entry.
13107
13108 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13109
13110         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13111         (have_ptrace_getvrregs): Define for run time checks.
13112         (gdb_vrregset_t): New type for Altivec register handling.
13113         (fetch_register, store_register): Fetch/store altivec register
13114         when needed.
13115         (fetch_altivec_register, store_altivec_register): New functions.
13116         (supply_vrregset, fill_vrregset): New functions.
13117         (fetch_altivec_registers, store_altivec_registers): New functions.
13118         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13119         registers as well.
13120
13121 2002-02-21  Jiri Smid  <smid@suse.cz>
13122
13123         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13124
13125 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13126
13127         * Makefile.in (armnbsd-nat.o): Update dependencies.
13128         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13129         supply the integer register set.
13130         (supply_fparegset): New function.  Similar for FPA registers.
13131         (fetch_regs, fetch_fp_regs): Use them.
13132         (fetch_core_registers): Likewise.
13133         (fetch_elfcore_registers): New function.
13134         (arm_netbsd_elfcore_fns): New core-file type specification.
13135         (_initialize_arm_netbsd_nat): Register it.
13136
13137 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13138
13139         * armnbsd-nat.c: Include gdbcore.h.
13140         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13141         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13142         'void' to declaration, to shut up ARI.
13143         (fetch_core_registers): Make static.  Rewrite using supply_register.
13144         (arm_netbsd_core_fns): New core-file type specification.
13145         (_initialize_arm_netbsd_nat): New function.
13146
13147 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13148
13149         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13150         value.
13151
13152 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13153
13154         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13155         fails.
13156
13157 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13158
13159         * jv-exp.y (parse_number): Change type of implicit longs
13160         to builtin_type_uint64.
13161
13162 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13163
13164         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13165         to be an integer instead of a `union wait'.
13166
13167 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13168
13169         * mips-linux-nat.c: Call the operating system GNU/Linux.
13170         * mips-linux-tdep.c: Likewise.
13171         * mips-tdep.c: Likewise.
13172
13173 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13174
13175         Fix PR gdb/265.
13176         * jv-exp.y (parse_number): Handle 64-bit integers.
13177
13178 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13179
13180         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13181         AC_STDC_HEADERS to AC_HEADER_STDC.
13182         * gdbserver/configure: Regenerated.
13183
13184 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13185
13186         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13187         is defined.
13188         * sparc-tdep.c (get_longjmp_target): Likewise.
13189
13190 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13191
13192         * News: Add news about ARM and Multi-arch.  Mention the new target
13193         arm*-*-netbsd*.
13194
13195 2002-02-19  Jim Blandy  <jimb@redhat.com>
13196
13197         * stabsread.c (error_type_complaint): Improve error message.
13198
13199 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13200
13201         * gdbserver/README: Update documentation.
13202         * gdbserver/configure.in: Update configury to match documentation.
13203         * gdbserver/Makefile.in: Likewise.
13204         * gdbserver/configure: Regenerated.
13205         * gdbserver/aclocal.m4: New file, generated by aclocal.
13206         * gdbserver/config.in: New file, generated by autoheader.
13207
13208 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13209
13210         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13211         armnbsd-nat.c.
13212
13213 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13214
13215         * arm-tdep.h (enum arm_float_model): New enum.
13216         (struct gdbarch_tdep): Add fp_model.
13217         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13218         up floating-point conversions until we know the floating-point model
13219         in use by the inferior.  Don't complain about being unable to
13220         determine the ABI of the inferior when we don't have one.
13221         (arm_extract_return_value): Support different floating-point models.
13222         (arm_store_return_value): Likewise.
13223         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13224         ARM_FLOAT_SOFT.
13225         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13226
13227 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13228
13229         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13230         of ``current_gdbarch''.
13231
13232 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13233
13234         * armnbsd-nat.c : ANSIfy all function declarations.
13235         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13236         (fetch_inferior_registers): Re-implement in terms of above.
13237         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13238         (store_inferior_registers): Re-implement in terms of above.
13239
13240 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13241
13242         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13243         kernel.
13244         * arm-linux-tdep.c: Likewise.
13245         * config/arm/tm-linux.h: Likewise.
13246
13247 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13248
13249         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13250         * config/arm/nbsd.mt (TM_FILE): Delete.
13251         * config/arm/tm-nbsd.h: Delete.
13252
13253 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13254
13255         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13256         Initialize CALL_DUMMY_LENGTH.
13257
13258 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13259
13260         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13261         function.
13262         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13263         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13264         defines one thing and that is incorrect for this port.
13265         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13266
13267 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13268
13269         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13270
13271 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13272
13273         * win32-nat.c (display_selector): New function. Displays information
13274         about the information returned by GetThreadSelectorEntry API function.
13275         (display_selectors): New function. Displays the infomation of
13276         the selector given as argument, or of CS, DS ans FS selectors
13277         if no argument is given.
13278         ( _initialize_inftarg): Add "w32" as info prefix command.
13279         Add "info w32 selector" as command calling display_selectors.
13280
13281 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13282
13283         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13284         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13285         if not defined.
13286
13287 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13288
13289         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13290
13291 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13292
13293         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13294         (arm_fix_call_dummy): Call it.
13295         (arm_call_dummy_breakpoint_offset): Delete.
13296         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13297         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13298
13299 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13300
13301         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13302         Default to func_frame_chain_valid.
13303         * gdbarch.h, gdbarch.c: Re-generate.
13304         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13305
13306 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13307
13308         * ppc-linux-nat.c: Update copyright.
13309         (fetch_register, store_register): Add tid parameter, don't compute
13310         tid here.
13311         (fetch_ppc_registers, store_ppc_registers): Add tid
13312         parameter. Pass it along to callees.
13313         (fetch_inferior_registers, store_inferior_registers): Compute tid
13314         here, and pass it to calleed functions.
13315         (fill_gregset, supply_fpregset): Clean up formatting.
13316
13317 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13318
13319         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13320         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13321
13322 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13323
13324         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13325         * gdbarch.c gdbarch.h: Regenerate.
13326         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13327         function.
13328         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13329         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13330         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13331
13332         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13333         * arm-tdep.c (arm_get_longjmp_target): New function.
13334         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13335         this to a positive value register arm_get_longjmp_target as the
13336         longjmp handler.
13337         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13338         (arm_linux_init_abi): Set up longjmp description in tdep.
13339         * armnbsd-nat.c (get_longjmp_target): Delete.
13340         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13341         description in tdep.
13342         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13343         (get_longjmp_target): Delete declaration.
13344         (GET_LONGJMP_TARGET): Delete.
13345         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13346         (GET_LONGJMP_TARGET): Delete.
13347
13348 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13349
13350         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13351         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13352         of ``current_gdbarch''.
13353
13354 2002-02-17  Tom Tromey  <tromey@redhat.com>
13355
13356         * cli/cli-cmds.c (compare_strings): New function.
13357         (complete_command): Only print each unique item once.
13358         * completer.h (complete_line): Declare.
13359         * completer.c (complete_line): New function.
13360         (line_completion_function): Use it.
13361
13362 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13363
13364         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13365         * gdbarch.h, gdbarch.c: Re-generate.
13366
13367 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13368
13369         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13370
13371 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13372
13373         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13374         * valops.c (value_arg_coerce): Don't take the address of a reference
13375         to convert an argument to a reference.
13376
13377 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13378
13379         * win32-nat.c (get_image_name): New function.
13380         (handle_load_dll): Use get_image_name function.
13381         (get_child_debug_event): Avoid registering debug events until possibly
13382         execed process is started.
13383         (child_create_inferior): Allow invocation via shell so that command
13384         line redirection, etc.  works ok.
13385         (_initialize_inftarg): Add new command: "set shell" to control whether
13386         a shell is used to start a process.
13387
13388 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13389
13390         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13391         instead of find_register_by_number.
13392         (cannot_store_register): Likewise.
13393
13394 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13395
13396         * dwarf2read.c: Replace fprintf (stderr, ...) by
13397         fprintf_unfiltered (gdb_stderr, ...).
13398
13399 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13400
13401         * gdbserver/gdbserver.1: Document --attach.
13402
13403 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13404
13405         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13406         descriptions.
13407         * arm-tdep.c (arm_default_arm_le_breakpoint)
13408         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13409         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13410         traditional breakpoint defines.
13411         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13412         (arm_gdbarch_init): Initialize new breakpoint variables.
13413         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13414         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13415         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13416         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13417         code out to ...
13418         (arm_netbsd_init_abi_common): ... here; new function.
13419         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13420         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13421         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13422         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13423
13424 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13425
13426         * arm-tdep.h (enum arm_abi): New enum.
13427         (struct gdbarch_tdep): New structure.
13428         (LOWEST_PC): Provide a default.
13429         (arm_gdbarch_register_os_abi): Declare new function.
13430         * arm-tdep.c (arm_abi_names): New array.
13431         (process_note_abi_tag_sections): New function.
13432         (get_elfosabi): New function.
13433         (arm_gdbarch_register_os_abi): New function.
13434         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13435         support for that ABI has been built in, then call the appropriate
13436         configuration routine.  Use gdbarch_num_regs() to get the number
13437         of registers.
13438         (arm_dump_tdep): New function.
13439         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13440         place-holder functions.
13441         (_initialize_arm_tdep): Register them.
13442         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13443
13444         * armnbsd-tdep.c: New file.
13445         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13446         * config/arm/nbsd.mt (TDEPFILES): Add it.
13447         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13448
13449         * armnbsd-nat.c: Include regcache.h.
13450         * Makefile.in (armnbsd-nat.o): Update dependency list.
13451
13452         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13453
13454 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13455
13456         * gdbserver/Makefile.in: Fix typos in target rules.
13457
13458 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13459
13460         Fix part of PR gdb/267.
13461         * linespec.c (find_methods): Handle constructors specially for now.
13462
13463 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13464
13465         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13466         handling.
13467         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13468         standard_coerce_float_to_double().
13469
13470 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13471
13472         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13473         GDBINIT_FILENAME.
13474
13475 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13476
13477         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13478         find_variant_by_name, because it confuses the multiarch
13479         framework. Return NULL if there isn't an architecture with the
13480         user supplied name, instead of forcing a different one without
13481         recording the change with the multiarch machinery.
13482         (find_variant_by_name): Delete.
13483
13484 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13485
13486         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13487         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13488
13489 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13490
13491         * stack.c (print_frame_info_base): When calling
13492         print_frame_info_listing_hook, set current_source_symtab.
13493
13494 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13495
13496         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13497         and remove unused $(INCLUDE_DIR).
13498         Add regcache.c to OBS.
13499         Add generated register protocol files to clean target.
13500         Update dependencies for new objects, obsolete old target code.
13501
13502         * gdbserver/linux-low.c: Remove all platform-specific code to
13503         new files.  Remove various dead code.  Update to use regcache
13504         functionality.
13505         * gdbserver/remote-utils.c (fromhex): Add return statement
13506         to quiet warning.
13507         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13508         constant.
13509         (input_interrupt): Add integer parameter to match prototype
13510         of a signal handler.
13511         (outreg): Use register_data ().
13512         (prepare_resume_reply): Use gdbserver_expedite_regs.
13513         * gdbserver/server.c (main): Dynamically allocate own_buf because
13514         PBUFSIZ is no longer constant.  Use registers_to_string () and
13515         registers_from_string ().
13516         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13517         for error (), fatal (), and warning ().  Update definition of
13518         PBUFSIZ to use regcache functionality.  Add include guard.
13519         * gdbserver/utils.c (fatal): Add missing ``const''.
13520         (warning): New function.
13521
13522         * regformats/regdat.sh: Include "regcache.h" in generated files.
13523         Provide init_registers () function.
13524         * regformats/regdef.h: Add prototype for set_register_cache ().
13525         Add include guard.
13526
13527         * gdbserver/linux-arm-low.c: New file.
13528         * gdbserver/linux-i386-low.c: New file.
13529         * gdbserver/linux-ia64-low.c: New file.
13530         * gdbserver/linux-m68k-low.c: New file.
13531         * gdbserver/linux-mips-low.c: New file.
13532         * gdbserver/linux-ppc-low.c: New file.
13533         * gdbserver/linux-sh-low.c: New file.
13534
13535         * gdbserver/regcache.c: New file.
13536         * gdbserver/regcache.h: New file.
13537
13538         * gdbserver/low-linux.c: Removed obsolete file.
13539
13540 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13541
13542         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13543         * config/i386/linux.mt: Likewise.
13544         * config/ia64/linux.mt: Likewise.
13545         * config/m68k/linux.mh: Likewise.
13546         * config/powerpc/linux.mh: Likewise.
13547         * config/mips/linux.mt: Likewise.
13548
13549         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13550
13551         * config/i386/i386lynx.mh: Mark gdbserver variables
13552         as (currently) obsolete for this target.
13553         * config/i386/nbsd.mt: Likewise.
13554         * config/i386/nbsdelf.mt: Likewise.
13555         * config/m32r/m32r.mt: Likewise.
13556         * config/m68k/m68klynx.mh: Likewise.
13557         * config/m68k/nbsd.mt: Likewise.
13558         * config/m68k/sun3os4.mh: Likewise.
13559         * config/mips/vr5000.mt: Likewise.
13560         * config/ns32k/nbsd.mt: Likewise.
13561         * config/pa/hppabsd.mh: Likewise.
13562         * config/pa/hppaosf.mh: Likewise.
13563         * config/powerpc/nbsd.mt: Likewise.
13564         * config/rs6000/rs6000lynx.mh: Likewise.
13565         * config/s390/s390.mt: Likewise.
13566         * config/s390/s390x.mt: Likewise.
13567         * config/sparc/sparclynx.mh: Likewise.
13568         * config/sparc/sun4os4.mh: Likewise.
13569         * config/i386/x86-64linux.mt: Likewise.
13570         * config/sparc/linux.mh: Likewise.
13571
13572 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13573
13574         * configure.tgt: Configure gdbserver only for known working
13575         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13576         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13577         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13578         * configure: Regenerated.
13579
13580 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13581
13582         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13583
13584         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13585         (default_gcore_mach): Just return 0, work around a problem in bfd.
13586         (default_gcore_target): OK to return NULL if exec_bfd is null.
13587         (make_mem_sec): Use a cast, avoid a warning.
13588
13589         * procfs.c (find_memory_regions_callback): Use a cast instead of
13590         calling host_pointer_to_address (which complains if
13591         sizeof (host pointer) != sizeof (target pointer)).
13592         (procfs_make_note_section): Avoid overflow in psargs string.
13593
13594         * procfs.c (procfs_make_note_section): Make the default
13595         implementation return an error.
13596
13597 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13598
13599         * procfs.c (procfs_make_note_section): Provide a default definition
13600         (for alpha-dec-osf4.0f). Fix typos.
13601
13602 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13603
13604         * linux-proc.c: Add include of regcache.h.
13605         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13606
13607 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13608
13609         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13610         * memattr.c (create_mem_region): Disallow useless empty region.
13611         Regions are half-open intervals, so allow [A..B) [B..C) as
13612         non-overlapping.
13613
13614 2002-02-13  Michael Chastain <mec@shout.net>
13615
13616         * defs.h: Kill CONST_PTR.
13617         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13618         * c-lang.c (c_builtin_types): Likewise.
13619         * ch-lang.c (ch_builtin_types): Likewise.
13620         * f-lang.c (f_builtin_types): Likewise.
13621         * language.c (unknown_builtin_types): Likewise.
13622         * m2-lang.c (m2_builtin_types): Likewise.
13623         * p-lang.c (pascal_builtin_types): Likewise.
13624         * scm-lang.c (c_builtin_types): Likewise.
13625
13626 2002-02-13  Keith Seitz  <keiths@redhat.com>
13627
13628         * arm-tdep.h (arm_get_next_pc): Add declaration.
13629
13630 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13631
13632         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13633         with other related struct-returning functions.
13634         (arm_extract_struct_value_address): New function.
13635         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13636         initialize float_format, double_format and long_double_format as
13637         appropriate to the endianness of the target.
13638         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13639         (arm_use_struct_convention): Delete declaration.
13640         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13641
13642 2002-02-13  Keith Seitz  <keiths@redhat.com>
13643
13644         * defs.h (core_addr_to_string_nz): New function.
13645
13646 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13647
13648         Apply missing bits of 2002-01-15 patch.
13649         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13650         (fill_fpregset): Use i387_fill_fsave.
13651
13652 2002-02-12  Keith Seitz  <keiths@redhat.com>
13653
13654         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13655         (core_addr_to_string_nz): New function.
13656
13657 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13658
13659         * arm-linux-nat.c: Really include arm-tdep.h.
13660         * config/arm/tm-linux.h (struct type, struct value): Declare.
13661
13662 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13663
13664         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13665         (gcore section): Ifdef for Solaris and Unixware only.
13666         (procfs_do_thread_registers): Unixware needs one lwpstatus
13667         per thread (not one prstatus or pstatus).
13668         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13669         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13670         once before iterating over threads.
13671
13672 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13673
13674         * arm-tdep.h: New file.
13675         * arm-tdep.c: Include arm-tdep.h.
13676         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13677         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13678         (arm_print_float_info, arm_register_type, convert_to_extended)
13679         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13680         (arm_extract_return_value, arm_register_name): Make static.
13681         (arm_software_single_step): Similarly.  Fix types in declaration.
13682         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13683         (arm_store_return_value, arm_store_struct_return): New functions.
13684         (arm_gdbarch_init): Register the above functions.  Also register
13685         call_dummy_start_offset, sizeof_call_dummy_words,
13686         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13687         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13688         max_register_virtual_size, register_size.  Set up
13689         prologue_cache.saved_regs here, rather than ...
13690         (_initialize_arm_tdep): ... here.
13691         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13692         declarations.
13693         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13694         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13695         (arm_print_float_info, arm_register_type, convert_to_extended)
13696         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13697         (arm_extract_return_value, arm_register_name): Delete declarations.
13698         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13699         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13700         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13701         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13702         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13703         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13704         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13705         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13706         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13707         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13708         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13709         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13710         interface.
13711         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13712         * remote-rdi.c remote-rdp.c: Likewise.
13713         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13714         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13715         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13716         definition.
13717
13718         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13719         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13720         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13721         from non-ARM_ prefixed definitions.
13722         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13723         all uses of above.
13724         * remote-rdi.c remote-rdp.c: Likewise.
13725         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13726
13727 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13728
13729         * arm-tdep.c (arm_frameless_function_invocation)
13730         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13731         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13732         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13733         (arm_pop_frame, arm_get_next_pc): Make static.
13734         (arm_gdbarch_init): Register above in gdbarch structure.
13735         (arm_read_fp): Renamed from arm_target_read_fp.
13736         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13737         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13738         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13739         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13740         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13741         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13742         (arm_pc_is_thumb_dummy): Delete declarations.
13743         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13744         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13745         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13746         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13747
13748 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13749
13750         * symtab.c (compare_search_syms): New function.
13751         (sort_search_symbols): New function.
13752         (search_symbols): Sort symbols after searching rather than
13753         before.
13754
13755 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13756
13757         * NEWS: Linux -> GNU/Linux.
13758
13759 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13760
13761         * gdbarch.sh: For for level one methods, disallow a definition
13762         when partially multi-arched.  Add comments explaining rationale.
13763         * gdbarch.h: Re-generate.
13764
13765 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13766
13767         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13768         multi-arch partial.
13769
13770 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13771
13772         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13773         field.  Use diff -u.
13774         * gdbarch.c: Re-generate.
13775
13776 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13777
13778         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13779         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13780         partial.
13781
13782 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13783
13784         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13785         multi-arch partial.
13786         (PUSH_ARGUMENTS): Switch to using predefault.
13787         * gdbarch.c: Regenerate.
13788
13789 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13790
13791         * valops.c (PUSH_ARGUMENTS): Delete definition.
13792         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13793         partial.  Default to default_push_arguments.
13794         * gdbarch.h, gdbarch.c: Regenerate.
13795
13796 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13797
13798         * defs.h (throw_exception): Rename return_to_top_level.  Update
13799         comments.
13800         * utils.c (error_stream, internal_verror, quit): Ditto.
13801         * top.c (throw_exception, catcher): Ditto.
13802         * sparclet-rom.c (sparclet_load): Ditto.
13803         * remote.c (interrupt_query, minitelnet): Ditto.
13804         * remote-sds.c (interrupt_query): Ditto.
13805         * remote-mips.c (mips_error, mips_kill): Ditto.
13806         * ocd.c (interrupt_query): Ditto.
13807         * monitor.c (monitor_interrupt_query): Ditto.
13808         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13809         * target.h: Update comment.
13810
13811         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13812
13813 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13814
13815         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13816         default_double_format.
13817         * gdbarch.h, gdbarch.c: Re-generate.
13818         * findvar.c (floatformat_unknown): Delete variable definition.
13819         * doublest.h (floatformat_unknown): Delete variable declaration.
13820
13821 2002-02-09  Jim Blandy  <jimb@redhat.com>
13822
13823         * stabsread.c (read_type): Add code to parse Sun's syntax for
13824         prototyped function types.
13825
13826 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13827
13828         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13829         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13830
13831 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13832
13833         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13834         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13835         now _initialize_xcoffsolib gets called again and overrides the
13836         commands from solib.c in a native configuration.
13837
13838 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13839
13840         * doublest.c (store_typed_floating): Don't try to return a value.
13841         Fixes PR gdb/290.
13842
13843 2002-02-08  Jim Blandy  <jimb@redhat.com>
13844
13845         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13846         is prototyped and has no arguments, print its argument list as
13847         `(void)'.
13848
13849 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13850
13851         * MAINTAINERS (write-after-approval): Add myself.
13852         (paper-trail): I've escaped!
13853
13854 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13855
13856         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13857         changes.
13858         (_initialize_check_for_gdb_ini): Ditto.
13859
13860 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13861
13862         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13863         xaprintf -> xasprintf.
13864
13865 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13866
13867         * win32-nat.c: Remove use of printf and sprintf functions.
13868
13869 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13870
13871         * arm-tdep.c (arm_frame_chain_valid): Make static.
13872         (arm_push_arguments): Likewise.
13873         (arm_gdbarch_init): New function.
13874         (_initialize_arm_tdep): Call it.
13875         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13876         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13877         (FRAME_CHAIN_VALID): Delete.
13878         (arm_frame_chain_valid): Delete declaration.
13879         (PUSH_ARGUMENTS): Delete.
13880         (arm_push_arguments): Delete declaration.
13881         (CALL_DUMMY_P): Delete.
13882
13883 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13884             Corinna Vinschen  <vinschen@redhat.com>
13885
13886         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13887         on builtin float types.
13888
13889 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13890
13891         * utils.c: Include <curses.h> before "bfd.h".
13892         * tui/tui-hooks.c: Likewise.
13893         * tui/tui.c: Likewise.
13894         * tui/tuiCommand.c: Likewise.
13895         * tui/tuiData.c: Likewise.
13896         * tui/tuiDataWin.c: Likewise.
13897         * tui/tuiDisassem.c: Likewise.
13898         * tui/tuiGeneralWin.c: Likewise.
13899         * tui/tuiIO.c: Likewise.
13900         * tui/tuiLayout.c: Likewise.
13901         * tui/tuiRegs.c: Likewise.
13902         * tui/tuiSource.c: Likewise.
13903         * tui/tuiSourceWin.c: Likewise.
13904         * tui/tuiStack.c: Likewise.
13905         * tui/tuiWin.c: Likewise.
13906
13907 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13908
13909         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13910         to include space for pseudoregs as well. Update loops accordingly.
13911         (sh_fp_frame_init_saved_regs): Ditto.
13912         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13913
13914 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13915
13916         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13917         Add Richard Earnshaw to Arm maintainers.
13918
13919 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13920
13921         * defs.h (warning_begin): Delete declaration.
13922
13923         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13924         Delete macro.
13925
13926 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13927
13928         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13929         Logic bug, remove misplaced else.
13930
13931 2002-02-07  Klee Dienes  <klee@apple.com>
13932
13933         * fork-inferior.c (fork_inferior): Add '!' to the list of
13934         characters that need to be quoted when building a string for the
13935         shell.  Quote '!' specifically with a backslash, since CSH chokes
13936         when trying to evaluate "str!str".
13937
13938 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13939
13940         * rdi-share/host.h: Only provide a typedef for bool if it is not
13941         defined.
13942
13943 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13944
13945         * breakpoint.h (enum bptype): Add new overlay event bp type.
13946         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13947
13948         * breakpoint.c (create_internal_breakpoint): New function.
13949         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13950         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13951         (create_thread_event_breakpoint): Ditto.
13952         (create_solib_event_breakpoint): Ditto.
13953         (create_overlay_event_breakpoint): New function.
13954         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13955         (update_breakpoints_after_exec): Delete and re-initialize
13956         overlay event breakpoints after an exec.  Add FIXME comment
13957         about longjmp breakpoint.
13958         (print_it_typical): Ignore overlay event breakpoints.
13959         (print_one_breakpoint): Ditto.
13960         (mention): Ditto.
13961         (bpstat_what): Do not stop for overlay event breakpoints.
13962         (delete_breakpoint): Don't delete overlay event breakpoints.
13963         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13964         (breakpoint_re_set): Re-create overlay event breakpoint.
13965
13966         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13967         (overlay_manual_command): Disable overlay breakpoints.
13968         (overlay_off_command): Disable overlay breakpoints.
13969
13970 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13971
13972         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13973         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13974         to here from config/tm-arm.h.
13975         (coff_sym_is_thumb): Make static.
13976         (arm_elf_make_msymbol_special): New function.
13977         (arm_coff_make_msymbol_special): New function.
13978         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13979         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13980         (coff_sym_is_thumb): Delete declaration.
13981         (arm_elf_make_msymbol_special): Declare.
13982         (arm_coff_make_msymbol_special): Declare.
13983         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13984         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13985
13986 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13987
13988         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13989
13990 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13991
13992         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13993         * gdbarch.c gdbarch.h: Regenerate.
13994         * arch-utils.c (default_print_float_info): New function.
13995         * arch-utils.h (default_print_float_info): Prototype it.
13996         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13997         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13998         (PRINT_FLOAT_INFO): Document it.
13999
14000         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14001         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14002         (PRINT_FLOAT_INFO): Define.
14003
14004 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14005
14006         * win32-nat.c (_initialize_check_for_gdb_ini):
14007         Add typecast to sprintf argument to suppress a warning.
14008
14009 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14010
14011         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14012         to allow easier handling of pass state.
14013         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14014         that gives exception name and address.
14015         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14016         and set last_sig value to ourstatus->value.sig. Some missing
14017         exceptions added.
14018         (child_continue): Correctly report continue_status.
14019         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14020         TARGET_SIGNAL_0 (new default value).
14021         (child_resume): consider sig argument passed to decide if
14022         the exception should be passed to debuggee or not.
14023
14024 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14025
14026         * regcache.c (fetch_register): Call target_fetch_register
14027         only if we don't call FETCH_PSEUDO_REGISTER.
14028         (store_register): Call target_store_register only if we
14029         don't call STORE_PSEUDO_REGISTER.
14030
14031 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14032
14033         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14034         ELF_MAKE_MSYMBOL_SPECIAL.
14035         * gdbarch.c, gdbarch.h: Regenerate.
14036         * arch-utils.c (default_make_msymbol_special): New function.
14037         * arch-utils.h (default_make_msymbol_special): Export.
14038         * elfread.c (elf_symtab_read): Compile use of
14039         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14040         multiarched.
14041         * coffread.c (coff_symtab_read): Ditto, for
14042         COFF_MAKE_MSYMBOL_SPECIAL.
14043
14044 2002-02-05  Jim Blandy  <jimb@redhat.com>
14045
14046         * solib-svr4.c (svr4_truncate_ptr): New function.
14047         (svr4_relocate_section_addresses): Do the address arithmetic with
14048         the appropriate truncation for target addresses, even when
14049         CORE_ADDR is larger than a target address.
14050
14051 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14052
14053         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14054         to (int *).
14055
14056 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14057
14058         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14059         code.
14060
14061 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14062
14063         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14064
14065 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14066
14067         * gdbserver/linux-low.c: Remove unused include files.
14068
14069 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14070
14071         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14072         (read_inferior_memory): Use it.
14073         (write_inferior_memory): Likewise.
14074
14075 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14076
14077         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14078         grubbing through sys_errlist.
14079
14080 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14081
14082         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14083
14084 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14085         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14086
14087 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14088
14089         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14090         (do_sfunc, set_cmd_sfunc): New functions.
14091
14092         * command.h (struct cmd_list_element): Add field func.
14093         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14094         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14095         * cli/cli-decode.h: Ditto.
14096
14097         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14098         (help_all, help_cmd_list): Ditto.
14099         (find_cmd, complete_on_cmdlist): Ditto.
14100         * top.c (execute_command): Ditto.
14101
14102         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14103         function.sfunc.
14104
14105         * infcmd.c (notice_args_read): Fix function signature.
14106
14107         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14108         * cli/cli-decode.c (add_set_cmd): Ditto.
14109         * utils.c (initialize_utils): Ditto.
14110         * maint.c (_initialize_maint_cmds): Ditto.
14111         * infrun.c (_initialize_infrun): Ditto.
14112         * demangle.c (_initialize_demangler): Ditto.
14113         * remote.c (add_packet_config_cmd): Ditto.
14114         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14115         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14116         * proc-api.c (_initialize_proc_api): Ditto.
14117         * kod.c (_initialize_kod): Ditto.
14118         * valprint.c (_initialize_valprint): Ditto.
14119         * top.c (init_main): Ditto.
14120         * infcmd.c (_initialize_infcmd): Ditto.
14121         * corefile.c (_initialize_core): Ditto.
14122         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14123         * arch-utils.c (initialize_current_architecture): Ditto.
14124         (_initialize_gdbarch_utils): Ditto.
14125         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14126
14127         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14128         * wince.c (_initialize_inftarg): Ditto.
14129         * symfile.c (_initialize_symfile): Ditto.
14130         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14131         * language.c (_initialize_language): Ditto.
14132         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14133
14134 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14135
14136         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14137
14138 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14139
14140         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14141         Add rules for building the register data files.
14142
14143 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14144
14145         * regformats/regdat.sh: Add braces to the definition of
14146         expedite_regs_${arch}.
14147
14148 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14149
14150         * regformats/regdef.h (struct reg): Add comment describing the
14151         requirements for offset and size fields.
14152
14153 2002-02-04  Andreas Schwab  <schwab@suse.de>
14154
14155         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14156         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14157
14158 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14159
14160         * gdbarch.sh (copyright): Update years in generated header.
14161         (SMASH_TEXT_ADDRESS): Add rule.
14162         * gdbarch.h, gdbarch.c: Re-generate.
14163         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14164         * dbxread.c: Likewise.
14165         * dwarfread.c: Likewise.
14166         * elfread.c: Likewise.
14167         * somread.c: Likewise.
14168
14169         * arm-tdep.c (arm_smash_text_address): New function.
14170         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14171
14172 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14173
14174         Add support for hardware watchpoints on win32 native.
14175         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14176         CONTEXT_DEBUG_REGISTERS.
14177         (dr variable): New variable. Static array containing a local copy
14178         of debug registers.
14179         (debug_registers_changed): New variable.  Reflects when debug registers
14180         are changed and need to be written to inferior.
14181         (debug_registers_used): New variable. Reflects when any debug register
14182         was set, used when new threads are created.
14183         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14184         i386-nat code.
14185         (thread_rec): Set dr array if id is the thread of current_event .
14186         (child_continue, child_resume): Change the debug registers for all
14187         threads if debug_registers_changed.
14188         (child_add_thread): Change the debug registers if debug_registers_used.
14189         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14190         Link nm.h to new nm-cygwin.h file.
14191         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14192         of hardware registers.
14193
14194 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14195
14196         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14197         Restore behavour broken by 2002-01-20 Andrew Cagney
14198         <ac131313@redhat.com> IEEE_FLOAT removal.
14199
14200 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14201
14202         * c-valprint.c (c_val_print): Pass a proper valaddr to
14203         cp_print_class_method.
14204         * valops.c (search_struct_method): If there is only one method
14205         and args is NULL, return that method.
14206
14207 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14208
14209         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14210         accessing tag_name directly.
14211
14212 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14213
14214         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14215         of accessing tag_name directly.
14216
14217 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14218
14219         PR gdb/280
14220         * gdbtypes.c (replace_type): New function.
14221         * gdbtypes.h (replace_type): Add prototype.
14222         * stabsread.c (read_type): Use replace_type.
14223
14224 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14225
14226         * Makefile.in (memattr.o): Add missing dependencies rule.
14227
14228 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14229
14230         * breakpoint.c (break_at_finish_command): Really export.
14231         (break_at_finish_at_depth_command): Ditto.
14232         (tbreak_at_finish_command): Ditto.
14233         * hppa-tdep.c: Include completer.h.
14234         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14235         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14236
14237 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14238
14239         * utils.c (do_write): New function.
14240         (error_stream): Rewrite combining the code from error_begin and
14241         verror.
14242         (verror): Rewrite using error_stream.
14243         (error_begin): Delete function.
14244
14245 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14246
14247         * utils.c (error_begin): Make static.
14248         * defs.h (error_begin): Delete declaration.
14249
14250         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14251         (decode_line_1): Use cplusplus_error instead of error_begin,
14252         cplusplus_hint and return_to_top_level.
14253         * coffread.c (coff_symfile_read): Use error instead of error_begin
14254         and return_to_top_level.
14255         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14256
14257 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14258
14259         * language.h (type_error, range_error): Make string parameter
14260         constant.
14261         * language.c (warning_pre_print): Delete extern declaration.
14262         * dwarfread.c (warning_pre_print): Ditto.
14263         * language.c (type_error, range_error): Rewrite to use verror and
14264         vwarning instead of warning_begin.
14265
14266 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14267
14268         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14269         (set_ignore_count): Move misplaced comment back where it belongs.
14270
14271 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14272
14273         * command.h (NO_FUNCTION): Delete macro.
14274         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14275         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14276         * tracepoint.c (_initialize_tracepoint): Ditto.
14277         * cli/cli-decode.c (add_set_cmd): Ditto.
14278         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14279
14280 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14281
14282         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14283         Update ``this'' pointer when calling virtual functions.
14284
14285 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14286
14287         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14288         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14289
14290 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14291
14292         * regformats/reg-arm.dat: New file.
14293         * regformats/reg-i386.dat: New file.
14294         * regformats/reg-ia64.dat: New file.
14295         * regformats/reg-m68k.dat: New file.
14296         * regformats/reg-mips.dat: New file.
14297         * regformats/reg-ppc.dat: New file.
14298         * regformats/reg-sh.dat: New file.
14299         * regformats/regdef.h: New file.
14300         * regformats/regdat.sh: New file.
14301
14302 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14303
14304         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14305         (arm_frame_args_address, arm_frame_locals_address): New functions.
14306         (arm_frame_num_args): New function.
14307         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14308         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14309         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14310
14311 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14312
14313         * breakpoint.c (break_at_finish_command): Export.
14314         (break_at_finish_at_depth_command): Export.
14315         (tbreak_at_finish_command): Export.
14316         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14317         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14318         "txbreak" commands, which are HPPA specific.
14319
14320         * printcmd.c (disassemble_command): Remove an ancient
14321         artifact of an old merge.
14322
14323         * symfile.h (enum overlay_debugging_state):
14324         Define enum constant values for overlay mode.
14325         * symfile.c (overlay_debugging): Use enums instead of literals.
14326         (overlay_is_mapped, overlay_auto_command,
14327         overlay_manual_command): Ditto.
14328
14329         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14330         breakpoint_here_p, breakpoint_inserted_here_p,
14331         breakpoint_thread_match, bpstat_stop_status,
14332         describe_other_breakpoints, check_duplicates, clear_command):
14333         Coding standard fixes.
14334
14335         * target.c (target_xfer_memory): Add spaces, coding standard.
14336         (do_xfer_memory): Add missing line to trust-readonly
14337         code: check bfd SEC_READONLY flag for section.
14338
14339 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14340
14341         * PROBLEMS: Fix typo, 5.1->5.1.1.
14342
14343 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14344
14345         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14346         data symbols, since we search based on textlow and texthigh.
14347         (find_pc_sect_symtab): Likewise.
14348
14349 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14350
14351         * defs.h (vwarning): Declare.
14352         * utils.c (vwarning): New function.
14353         (warning): Call vwarning.
14354         (warning_begin): Delete function.
14355
14356         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14357         the warning message.
14358         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14359         warning_begin.
14360
14361 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14362
14363         * NEWS: Mention "set trust-readonly-sections" command.
14364         Mention generate-core-file command.
14365
14366 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14367
14368         * target.c: New command, "set trust-readonly-sections on".
14369         (do_xfer_memory): Honor the suggestion to trust readonly sections
14370         by reading them from the object file instead of from the target.
14371         (initialize_targets): Register command "set trust-readonly-sections".
14372
14373 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14374
14375         * parse.c (target_map_name_to_register): Simplify, search regs and
14376         pseudo-regs using a single loop.
14377
14378 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14379
14380         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14381
14382 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14383
14384         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14385         * config/i386/i386v42mp.mh: Add i387-nat.o .
14386         * i386v4-nat.c: Include i387-nat.h.
14387         (supply_fpregset): Use i387_supply_fsave.
14388         (fill_fpregset): Use i387_fill_fsave.
14389
14390 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14391
14392         * arm-tdep.c (arm_call_dummy_words): Define.
14393         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14394         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14395         (CALL_DUMMY_WORDS): Define.
14396         (arm_call_dummy_words): Declare.
14397         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14398         (arm_linux_call_dummy_words): Declare.
14399
14400 2002-01-30  Andreas Schwab  <schwab@suse.de>
14401
14402         * m68klinux-nat.c: Fix last change to use regcache_collect
14403         instead of referencing registers[] directly.
14404
14405 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14406
14407         * parse.c (target_map_name_to_register): Delete code wrapped in
14408         #ifdef REGISTER_NAME_ALIAS_HOOK.
14409
14410 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14411
14412         * regcache.c (legacy_read_register_gen): Need to be able to
14413         read pseudo-register as well as real register.
14414         (legacy_write_register_gen): Ditto.
14415
14416 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14417
14418         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14419         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14420         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14421         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14422         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14423         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14424         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14425         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14426         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14427         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14428         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14429         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14430         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14431         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14432         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14433         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14434         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14435         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14436         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14437         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14438
14439 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14440
14441         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14442         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14443         (initialize_current_architecture): Update target_byte_order using
14444         information from BFD.
14445         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14446         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14447
14448 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14449
14450         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14451         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14452
14453         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14454         #ifdef INVALID_FLOAT.
14455         * infcmd.c (do_registers_info): Ditto.
14456         * values.c (unpack_double): Ditto.  Add comment.
14457
14458         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14459         already commented out.
14460
14461 2002-01-26  Andreas Schwab  <schwab@suse.de>
14462
14463         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14464         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14465         registers and add support for PTRACE_GETREGS.
14466
14467 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14468
14469         GDB 5.1.1 released from 5.1 branch.
14470         * NEWS: Add 5.1.1 news.
14471         * README: Sync with 5.1 branch.
14472
14473 2002-01-23  Fred Fish  <fnf@redhat.com>
14474
14475         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14476         stabstring on initial malloc.  Reallocing will copy it for us,
14477         if necessary.
14478
14479 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14480
14481         * Makefile.in (hpread_h): Delete.
14482         (HFILES_NO_SRCDIR): Remove hpread.h.
14483         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14484         (hpread.o): Update dependencies.
14485         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14486
14487         * hp-psymtab-read.c: Remove file.
14488         * hp-symtab-read.c: Remove file.
14489         * hpread.h: Remove file.
14490
14491         * hpread.c: Merge all contents of hp-psymtab-read.c,
14492         hp-symtab-read.c and hpread.h into this file, as it was prior to
14493         January 1999.
14494
14495         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14496         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14497         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14498         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14499
14500 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14501
14502         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14503         fill_gregset): Call gdbarch_tdep() just once, assign result to
14504         variable and use that, instead of calling the function several
14505         times.
14506
14507 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14508
14509         * configure.host: Accept sparcv9 as alias for sparc64.
14510         * configure.tgt: Likewise.
14511
14512 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14513
14514         * solib-aix5.c (build_so_list_from_mapfile)
14515         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14516         arguments is not reversed.
14517         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14518         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14519
14520 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14521
14522         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14523         modified version of obsolete sh_fetch_pseudo_register.
14524         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14525         (sh4_register_read): New function.
14526         (sh_pseudo_register_write): New function. Renamed and modified
14527         version of obsolete sh_store_pseudo_register.
14528         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14529         (sh4_register_write): New function.
14530         (sh_gdbarch_init): Remove setting of gdbarch function
14531         fetch_pseudo_register and store_pseudo_register. Remove setting of
14532         register_convert_to_raw, register_convert_to_virtual,
14533         register_convertible.
14534         (sh_sh4_register_convertible): Delete. No longer needed. All is
14535         taken care by architecture specific functions
14536         register_read/register_write.
14537         (sh_sh4_register_convert_to_virtual): Make static.
14538         (sh_sh4_register_convert_to_raw): Ditto.
14539
14540 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14541
14542         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14543         (floatformat_is_nan, floatformat_mantissa): Ditto.
14544
14545         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14546         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14547         builtin_type_ieee_double_little,
14548         builtin_type_ieee_double_littlebyte_bigword,
14549         builtin_type_m68881_ext, builtin_type_i960_ext,
14550         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14551         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14552         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14553         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14554
14555 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14556
14557         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14558         parameter.  Set frameless flag if it exists and depended of
14559         whether the scanned function is frameless or not.
14560         (xstormy16_skip_prologue): If function is frameless, return
14561         result of xstormy16_scan_prologue().
14562         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14563         call.
14564
14565 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14566
14567         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14568         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14569         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14570         sh_sh4_register_byte, sh_sh4_register_raw_size,
14571         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14572         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14573         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14574         sh_store_pseudo_register, sh_do_pseudo_register): Call
14575         gdbarch_tdep() just once, assign result to variable and use that,
14576         instead of calling the function several times.
14577
14578 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14579
14580         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14581         macros instead of LAST_FPU_CTRL_REGNUM.
14582         (store_register): Likewise.
14583
14584 2002-01-21  Jim Blandy  <jimb@redhat.com>
14585
14586         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14587         is up-to-date before running the program, not just when a program
14588         exits.
14589
14590 2002-01-21  Fred Fish  <fnf@redhat.com>
14591
14592         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14593         when we have found all instructions we are looking for.
14594
14595 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14596
14597         * arm-tdep.c (arm_register_name): New function.
14598         (arm_registers_names): Make static.
14599         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14600         (arm_register_name): Declare.
14601         (REGISTER_NAME): Use it.
14602
14603 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14604             Kevin Buettner  <kevinb@redhat.com>
14605
14606         Convert arm targets to new FRAME interface.
14607         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14608         (arm_frame_find_save_regs): Delete.
14609         (arm_frame_init_saved_regs): New.
14610         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14611         Allocate extra_info as required.  Convert all uses of fsr.regs
14612         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14613         to use extra_info.
14614         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14615         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14616         (check_prologue_cache, save_prologue_cache): Likewise.
14617         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14618         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14619         (FRAME_FIND_SAVED_REGS): Delete.
14620         (arm_frame_find_saved_regs): Delete prototype.
14621         (arm_frame_init_saved_regs): New prototype.
14622         (FRAME_INIT_SAVED_REGS): Define.
14623
14624 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14625
14626         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14627
14628 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14629
14630         From Jeff Law <law@redhat.com>:
14631         * infttrace.c: Include <sys/pstat.h>.
14632         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14633         exec file if the ttrace equivalent fails.
14634
14635 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14636
14637         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14638         (closeLogFile): Ditto.
14639
14640 2002-01-20  Michael Chastain  <mec@shout.net>
14641
14642         * top.c (print_gdb_version): Bump copyright year to 2002.
14643
14644 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14645
14646         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14647         Zannoni and Eli Zaretskii.
14648
14649 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14650
14651         * buildsym.c: Update copyright years.
14652         * c-typeprint.c: Likewise.
14653         * dwarf2read.c: Likewise.
14654         * f-typeprint.c: Likewise.
14655         * gdbtypes.c: Likewise.
14656         * gdbtypes.h: Likewise.
14657         * hp-symtab-read.c: Likewise.
14658         * hpread.c: Likewise.
14659         * mdebugread.c: Likewise.
14660         * p-typeprint.c: Likewise.
14661
14662 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14663
14664         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14665         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14666         byte-order selectable.
14667         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14668         * arch-utils.c: Ditto.
14669         (set_endian): Ditto.
14670         (set_endian_from_file): Ditto.
14671         * gdbserver/low-sim.c (create_inferior): Ditto.
14672         * gdbarch.sh: Ditto.
14673         * gdbarch.h: Re-generate.
14674         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14675         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14676         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14677         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14678         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14679         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14680         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14681         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14682         macro definition.
14683         * config/mips/tm-wince.h: Remove #undef of macro
14684         TARGET_BYTE_ORDER_SELECTABLE.
14685         * config/sh/tm-wince.h: Ditto.
14686
14687 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14688
14689         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14690         member function fields.  Add accessor macro
14691         TYPE_FN_FIELD_ARTIFICIAL.
14692         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14693         * c-typeprint.c (c_type_print_base): Skip artificial member
14694         functions.
14695
14696 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14697
14698         * f-typeprint.c: Delete unused function f_type_print_args.
14699         * p-typeprint.c: Delete unused function pascal_type_print_args.
14700
14701 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14702
14703         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14704         comment.  Add ``artificial'' to ``union field_location''.
14705
14706         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14707
14708         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14709         * mdebugread.c (parse_symbol): Likewise.
14710         * stabsread.c (define_symbol): Likewise.
14711         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14712         initializing TYPE_FIELD_BITPOS to n (obsolete).
14713         (hpread_doc_function_type): Likewise.
14714         * hpread.c (hpread_function_type): Likewise.
14715
14716 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14717
14718         * configure.in (host_makefile_frag): Only require a host makefile
14719         fragment when a native build.
14720         * configure: Re-generate.
14721
14722 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14723
14724         * doublest.h (floatformat_from_type): Declare.
14725         * doublest.c (floatformat_from_type): New function.
14726         (convert_typed_floating): Use.
14727
14728         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14729         call to function floatformat_from_type.
14730
14731         * gdbarch.sh (IEEE_FLOAT): Delete.
14732         * gdbarch.h, gdbarch.c: Re-generate.
14733         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14734         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14735         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14736         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14737         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14738         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14739         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14740         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14741         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14742         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14743         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14744         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14745
14746         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14747         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14748         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14749         * sh-tdep.c (sh_gdbarch_init): Ditto.
14750         * mips-tdep.c (mips_gdbarch_init): Ditto.
14751         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14752         * cris-tdep.c (cris_gdbarch_init): Ditto.
14753
14754 2002-01-20  Jiri Smid  <smid@suse.cz>
14755
14756         * configure.host, configure.tgt: Support x86-64.
14757         * NEWS: Note new target x86-64.
14758
14759         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14760         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14761         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14762         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14763         x86-64-linux-nat.o): Fix dependencies.
14764
14765 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14766
14767         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14768         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14769         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14770         * config/sparc/xm-sun4os4.h: Delete file.
14771         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14772
14773 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14774
14775         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14776         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14777         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14778         * config/i386/i386lynx.mh (XM_FILE): Delete.
14779         * config/rs6000/xm-rs6000ly.h: Delete file.
14780         * config/sparc/xm-sparclynx.h: Delete file.
14781         * config/m68k/xm-m68klynx.h: Delete file.
14782         * config/i386/xm-i386lynx.h: Delete file.
14783         * config/xm-lynx.h: Delete file.
14784         * config/djgpp/fnchange.lst: Update.
14785
14786 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14787
14788         * alpha-tdep.c (alpha_register_byte): New function.
14789         (alpha_register_raw_size): Ditto.
14790         (alpha_register_virtual_size): Ditto.
14791         (alpha_skip_prologue_internal): Renamed from
14792         alpha_skip_prologue.
14793         (alpha_skip_prologue): New version that calls
14794         alpha_skip_prologue_internal.
14795         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14796         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14797         second argument from alpha_skip_prologue.
14798         (REGISTER_BYTE): Use alpha_register_byte.
14799         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14800         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14801         (FRAMELESS_FUNCTION_INVOCATION): Use
14802         generic_frameless_function_invocation_not.
14803         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14804         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14805
14806 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14807
14808         * config/mips/xm-news-mips.h: Delete file.
14809         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14810
14811         * config/m88k/xm-m88k.h: Delete file.
14812         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14813         * config/m88k/xm-delta88v4.h: Ditto.
14814         * config/m88k/xm-delta88.h: Ditto.
14815
14816         * config/alpha/xm-fbsd.h: Delete file.
14817         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14818
14819         * config/sparc/xm-sparc.h: Delete file.
14820         * Makefile.in (xm-sun4os4.h): Delete dependency.
14821         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14822         * config/sparc/xm-sun4os4.h: Ditto.
14823         * config/sparc/xm-linux.h: Ditto.
14824
14825         * config/i386/xm-windows.h: Delete file.
14826
14827 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14828
14829         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14830         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14831
14832 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14833
14834         * alpha-tdep.c (alpha_call_dummy_words): New.
14835         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14836         (CALL_DUMMY_P): Define.
14837         (CALL_DUMMY_WORDS): Define.
14838         (SIZEOF_CALL_DUMMY_WORDS): Define.
14839
14840 2002-01-19  Per Bothner  <per@bothner.com>
14841
14842         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14843         isn't NULL, which can happen with some gcj-3.x-produced code.
14844
14845 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14846
14847         * alpha-tdep.c (alpha_register_virtual_type): New function.
14848         (alpha_init_frame_pc_first): Ditto.
14849         (alpha_fix_call_dummy): Ditto.
14850         (alpha_store_struct_return): Ditto.
14851         (alpha_extract_struct_value_address): Ditto.
14852         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14853         alpha_register_virtual_type.
14854         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14855         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14856         alpha_extract_struct_value_address.
14857         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14858         (INIT_FRAME_PC): Use init_frame_pc_noop.
14859         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14860
14861 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14862
14863         * i386gnu-nat.c: Include "i386-tdep.h".
14864         (fetch_fpregs): Simplify code dealing with uninitialized floating
14865         point states such that it doesn't require FP7_REGNUM.
14866
14867 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14868
14869         * alpha-tdep.c (frame_extra_info): New.
14870         (alpha_find_saved_regs): Make static.  Use
14871         frame->extra_info.
14872         (alpha_frame_init_saved_regs): New function.
14873         (alpha_frame_saved_pc): Use frame->extra_info.
14874         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14875         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14876         (init_extra_frame_info): Rename to...
14877         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14878         (alpha_print_extra_frame_info): New function.
14879         (alpha_frame_locals_address): Ditto.
14880         (alpha_frame_args_address): Ditto.
14881         (alpha_pop_frame): Use frame->extra_info.
14882         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14883         alpha_frame_args_address.
14884         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14885         (alpha_find_saved_regs): Remove prototype.
14886         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14887         (EXTRA_FRAME_INFO): Remove.
14888         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14889         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14890
14891 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14892
14893         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14894         (alpha_cannot_fetch_register): Ditto.
14895         (alpha_cannot_store_register): Ditto.
14896         (alpha_register_convertible): Ditto.
14897         (alpha_use_struct_convention): Ditto.
14898         * config/alpha/tm-alpha.h: Update copyright years.
14899         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14900         (INNER_THAN): Use core_addr_lessthan.
14901         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14902         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14903         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14904         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14905         (FRAME_CHAIN): Remove unnecessary cast.
14906
14907 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14908
14909         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14910         obsolete.
14911
14912 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14913
14914         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14915         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14916         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14917         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14918         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14919         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14920         * x86-64-linux-nat.c: Ditto.
14921
14922 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14923
14924         * alpha-tdep.c (alpha_register_name): New function.
14925         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14926         (REGISTER_NAME): Define.
14927
14928 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14929
14930         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14931
14932 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14933
14934         * alpha-tdep.c: Update copyright years.
14935         (alpha_next_pc): New function.
14936         (alpha_software_single_step): Ditto.
14937         * config/alpha/tm-alpha.h: Add prototype for
14938         alpha_software_single_step.
14939
14940 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14941
14942         * alphabsd-nat.c: Update copyright years.
14943         (fill_gregset): Use regcache_collect.
14944         (fill_fpregset): Likewise.
14945         (fetch_inferior_registers): Only fetch integer registers
14946         if requested to do so.
14947         (store_inferior_registers): Only store integer registers
14948         if requested to do so.
14949
14950 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14951
14952         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14953         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14954         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14955         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14956         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14957         * config/arm/linux.mh (XDEPFILES): Delete.
14958         * config/arm/nbsd.mh (XDEPFILES): Delete.
14959         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14960         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14961         * config/i386/i386m3.mh (XDEPFILES): Delete.
14962         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14963         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14964         * config/i386/fbsd.mh (XDEPFILES): Delete.
14965         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14966         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14967         * config/i386/i386v4.mh (XDEPFILES): Delete.
14968         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14969         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14970         * config/i386/i386aix.mh (XDEPFILES): Delete.
14971         * config/i386/go32.mh (XDEPFILES): Delete.
14972         * config/i386/cygwin.mh (XDEPFILES): Delete.
14973         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14974         * config/i386/i386mach.mh (XDEPFILES): Delete.
14975         * config/i386/i386v32.mh (XDEPFILES): Delete.
14976         * config/i386/linux.mh (XDEPFILES): Delete.
14977         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14978         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14979         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14980         * config/i386/i386sco.mh (XDEPFILES): Delete.
14981         * config/i386/i386v.mh (XDEPFILES): Delete.
14982         * config/i386/nbsd.mh (XDEPFILES): Delete.
14983         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14984         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14985         * config/i386/symmetry.mh (XDEPFILES): Delete.
14986         * config/i386/obsd.mh (XDEPFILES): Delete.
14987         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14988         * config/ia64/linux.mh (XDEPFILES): Delete.
14989         * config/ia64/aix.mh (XDEPFILES): Delete.
14990         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14991         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14992         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14993         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14994         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14995         * config/m68k/linux.mh (XDEPFILES): Delete.
14996         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14997         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14998         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14999         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15000         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15001         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15002         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15003         * config/m88k/delta88.mh (XDEPFILES): Delete.
15004         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15005         * config/m88k/m88k.mh (XDEPFILES): Delete.
15006         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15007         * config/mips/linux.mh (XDEPFILES): Delete.
15008         * config/mips/irix6.mh (XDEPFILES): Delete.
15009         * config/mips/irix5.mh (XDEPFILES): Delete.
15010         * config/mips/irix4.mh (XDEPFILES): Delete.
15011         * config/mips/irix3.mh (XDEPFILES): Delete.
15012         * config/mips/decstation.mh (XDEPFILES): Delete.
15013         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15014         (NATDEPFILES): Move core-aout.o to here.
15015         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15016         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15017         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15018         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15019         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15020         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15021         * config/pa/hpux11.mh (XDEPFILES): Delete.
15022         * config/powerpc/aix.mh (XDEPFILES): Delete.
15023         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15024         * config/powerpc/linux.mh (XDEPFILES): Delete.
15025         * config/romp/rtbsd.mh: Rename XDEPFILES.
15026         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15027         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15028         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15029         * config/s390/s390.mh (XDEPFILES): Delete.
15030         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15031         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15032         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15033         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15034         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15035         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15036         * config/sparc/linux.mh (XDEPFILES): Delete.
15037         * config/vax/vaxult.mh (XDEPFILES): Delete.
15038         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15039         * Makefile.in (DEPFILES): Remove XDEPFILES.
15040
15041 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15042
15043         * utils.c (internal_verror): Fix comments, default is yes not no.
15044         Update queries to match.  Default to quit and dump core.
15045
15046 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15047
15048         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15049         copyright.
15050         * defs.h, event-top.c, gdbcmd.h: Ditto.
15051         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15052         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15053         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15054         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15055         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15056         * mi/mi-main.c:Ditto.
15057
15058         * stack.c, symfile.c: Update copyright.
15059
15060 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15061
15062         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15063         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15064         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15065         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15066
15067 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15068
15069         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15070         * gdbserver/low-lynx.c (myattach): Likewise.
15071         * gdbserver/low-nbsd.c (myattach): Likewise.
15072         * gdbserver/low-sim.c (myattach): Likewise.
15073         * gdbserver/low-sparc.c (myattach): Likewise.
15074         * gdbserver/low-sun3.c (myattach): Likewise.
15075
15076         * gdbserver/low-linux.c (myattach): New function.
15077
15078         * gdbserver/server.c (attach_inferior): New function.
15079         (main): Handle "--attach".
15080
15081 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15082
15083         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15084         maintainer.
15085
15086 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15087
15088         * c-typeprint.c (is_type_conversion_operator): Add additional
15089         check for non-conversion operators.
15090
15091 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15092
15093         * linux-proc.c: Add "info proc" command, a la procfs.c.
15094         (read_mapping): New function, abstract and re-use code.
15095         (linux_find_memory_regions): Use new func read_mapping.
15096         (linux_info_proc_cmd): New function, implement "info proc".
15097         (_initialize_linux_proc): Add new command "info proc".
15098
15099 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15100
15101         * symfile.c (generic_load): Use bfd_map_over_sections method
15102         instead of manipulating bfd structure members directly.
15103         (add_section_size_callback): New function, bfd sections callback
15104         used by generic_load.
15105         (load_sections_callback): New function, bfd sections callback
15106         used by generic_load.
15107
15108 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15109
15110         [Based on work by Jim Blandy]
15111         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15112         (builtin_type_vec128): Export.
15113         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15114         types.
15115         (builtin_type_vec128): New builtin type for 128 bit vector
15116         registers.
15117         (build_gdbtypes): Initialize builtin_type_v16qi and
15118         builtin_type_v8hi. Create the vec128 register builtin type
15119         structure.
15120         (build_builtin_type_vec128): New function.
15121         (_initialize_gdbtypes): Register builtin_type_v16qi and
15122         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15123         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15124         AltiVec register to new builtin type.
15125
15126 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15127
15128         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15129         to make_cv_type.
15130
15131 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15132
15133         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15134         CLEAN_UP_REGISTER_VALUE.
15135         * regcache.c (supply_register): Update only call.
15136
15137 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15138
15139         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15140         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15141         a29k-*-vxworks* targets as obsolete.
15142
15143 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15144
15145         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15146         until we can resolve portability issues.
15147         * gregset.h: Remove references to fpxregs.
15148         * gcore.c (gcore_command): Initialize note_sec to NULL.
15149
15150 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15151
15152         * signals.c (target_signal_to_name): Rewrite.  Only use
15153         signals[].name when in bounds and non-NULL.
15154
15155 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15156
15157         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15158         * signals.c (target_signal_to_name): Verify that SIG is within the
15159         bounds of the signals array.
15160
15161 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15162
15163         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15164
15165 2002-01-13  Keith Seitz  <keiths@redhat.com>
15166
15167         * stack.c (print_frame_info_base): Print the frame's pc
15168         only if when print_frame_info_listing_hook is not defined.
15169
15170 2002-01-13  Keith Seitz  <keiths@redhat.com>
15171
15172         * varobj.c (varobj_set_value): Make sure that there were no
15173         errors evaluating the object before attempting to set its
15174         value.
15175         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15176         so this offset adjustment is no longer necessary.
15177         (create_child): Don't set the error flag if the child is
15178         a CPLUS_FAKE_CHILD.
15179         (value_of_child): If value_fetch_lazy fails, return NULL
15180         so that callers will be notified that an error occurred.
15181         (c_value_of_variable): Delay check of variable's validity
15182         until later. We actually want all structs and unions to have
15183         the value "{...}".
15184         Do not return "???" for variables which could not be evaluated.
15185         This error condition must be returned to the caller so that it
15186         can get the error condition from gdb.
15187         (cplus_name_of_child): Adjust index for vptr before figuring
15188         out the name of the child.
15189         (cplus_value_of_child): If a child's (real) parent is not valid,
15190         don't even bother trying to give a value for it. Just return
15191         an error. Change all instances in this function.
15192         (cplus_type_of_child): If our parent is one of the "fake"
15193         parents, we need to get at the type of the real parent, and
15194         derive the child's true type using this information.
15195
15196 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15197
15198         From 2002-01-09 John Marshall <johnm@falch.net>:
15199         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15200         sources.redhat.com, and tweak some related URLs which had
15201         suffered from linkrot.
15202
15203 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15204
15205         From Jeff law:
15206         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15207         structures passed in registers.
15208
15209 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15210
15211         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15212         white space which prevented compilation.  Reported by DSK
15213         <dsk@student.unsw.edu.au>.
15214
15215 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15216
15217         * symfile.c (build_section_addr_info_from_section_tab):
15218         Use bfd access method instead of manipulating bfd directly.
15219         (syms_from_objfile): Ditto.
15220         (simple_overlay_update_1): Ditto.
15221         (simple_overlay_update): Ditto.
15222         (generic_load): Ditto.
15223         (overlay_unmapped_address): FIXME comment, bfd access methods.
15224         (sections_overlap): FIXME comment, bfd access methods.
15225         (pc_in_mapped_range): FIXME comment, bfd access methods.
15226         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15227         (section_is_mapped): FIXME comment, bfd access methods.
15228         (section_is_overlay): FIXME comment, bfd access methods.
15229
15230         * symfile.c (generic_load): Whitespace and long line cleanups.
15231         Remove duplicate variable, change several local variables to
15232         more appropriate data types.
15233         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15234
15235 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15236
15237         From Peter Schauer:
15238         * language.c (longest_local_hex_string_custom): Use phex_nz to
15239         convert NUM to a hex string.
15240
15241 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15242
15243         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15244         the function.
15245         Update Copyright year.
15246
15247 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15248
15249         * language.c (longest_raw_hex_string): Delete unused function.
15250
15251 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15252
15253         * MAINTAINERS (write-after-approval): Add myself.
15254         * dwarf2read.c (read_tag_string_type): Handling of
15255         DW_AT_byte_size.
15256         (read_tag_string_type): FORTRAN fix to prevent propagation of
15257         first string size.
15258         (set_cu_language): Handling of DW_LANG_Fortran95
15259
15260 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15261
15262         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15263         GETPID(inferior_ptid).
15264         (store_inferior_registers): Likewise.
15265
15266 2002-01-10  Jason Merrill  <jason@redhat.com>
15267
15268         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15269         Fix DW_OP_minus.
15270
15271 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15272
15273         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15274         and bfd/elf32-sh-nbsd.c.
15275
15276 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15277
15278         * NEWS: Mention --pid and corefile/proc-id behavior change.
15279
15280         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15281         * gcore.c: Include cli/cli-decode.h instead of command.h.
15282
15283         * main.c (captured_main): Add new command line option "--pid".
15284         If the second command line argument (following the symbol-file)
15285         begins with a digit, try to attach to it before trying to open
15286         it as a corefile.
15287         (print_gdb_help): Document the "--pid" argument.
15288
15289 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15290
15291         * completer.c (command_completer): New function.
15292
15293         * completer.h <command_completer>: Add prototype.
15294
15295         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15296         completer for the "help" command.
15297
15298 2002-01-09  Jason Merrill  <jason@redhat.com>
15299
15300         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15301
15302 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15303
15304         * i386-linux-nat.c (fill_fpxregset): Make global.
15305         (store_fpxregset): Ditto.
15306
15307         * gregset.h (gdb_fpxregset_t): Define.
15308         (supply_fpxregset): Prototype.
15309         (fill_fpxregset): Prototype.
15310
15311         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15312
15313 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15314
15315         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15316         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15317         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15318
15319 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15320
15321         * MAINTAINERS: Update target maintainer rules so that any
15322         Maintainer can approve a tested patch for a maintenance-only
15323         target.
15324
15325 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15326
15327         * MAINTAINERS (write-after-approval): Add myself.
15328
15329         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15330         IN_SIGTRAMP.
15331
15332 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15333
15334         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15335         real name of the executable, rather than the /proc name.
15336
15337 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15338
15339         Implement a "generate-core-file" command in gdb, save target state.
15340         * gcore.c: New file.  Implement new command 'generate-core-file'.
15341         Save a corefile image of the current state of the inferior.
15342         * linux-proc.c: Add linux-specific code for saving corefiles.
15343         * target.h (struct target_ops): Add new target vectors for saving
15344         corefiles; to_find_memory_regions and to_make_corefile_notes.
15345         (target_find_memory_regions): New macro.
15346         (target_make_corefile_notes): New macro.
15347         * target.c (update_current_target): Inherit new target methods.
15348         (dummy_find_memory_regions): New place-holder method.
15349         (dummy_make_corefile_notes): New place-holder method.
15350         (init_dummy_target): Initialize new dummy target vectors.
15351         * exec.c (exec_set_find_memory_regions): New function.
15352         Allow the exec_ops vector for memory regions to be taken over.
15353         (exec_make_note_section): New function, target vector method.
15354         * defs.h (exec_set_find_memory_regions): Export prototype.
15355         * procfs.c (proc_find_memory_regions): New function, corefile method.
15356         (procfs_make_note_section): New function, corefile method.
15357         (init_procfs_ops): Set new target vector pointers.
15358         (find_memory_regions_callback): New function.
15359         (procfs_do_thread_registers): New function.
15360         (procfs_corefile_thread_callback): New function.
15361         * sol-thread.c (sol_find_memory_regions): New function.
15362         (sol_make_note_section): New function.
15363         (init_sol_thread_ops): Initialize new target vectors.
15364         * inftarg.c (inftarg_set_find_memory_regions): New function.
15365         Allow to_find_memory_regions vector to be taken over.
15366         (inftarg_set_make_corefile_notes): New function.
15367         Allow to_make_corefile_notes vector to be taken over.
15368         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15369         interface layer if not target_has_execution (may be a corefile).
15370         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15371         * config/sparc/sun4sol2.mh: Ditto.
15372         * config/alpha/alpha-linux.mh: Ditto.
15373         * config/arm/linux.mh: Ditto.
15374         * config/i386/x86-64linux.mh: Ditto.
15375         * config/ia64/linux.mh: Ditto.
15376         * config/m68k/linux.mh: Ditto.
15377         * config/mips/linux.mh: Ditto.
15378         * config/powerpc/linux.mh: Ditto.
15379         * config/sparc/linux.mh: Ditto.
15380
15381 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15382
15383         * arm-linux-nat.c: Remove references to regcache.c internal data
15384         (registers[] and register_valid[]).
15385
15386 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15387
15388         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15389         so that attaching to a pid will automatically read the process's
15390         symbol file and shlibs.
15391         * Makefile.in: Add rule for linux-proc.o.
15392         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15393         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15394         * config/arm/linux.mh: Ditto.
15395         * config/i386/linux.mh: Ditto.
15396         * config/i386/x86-64linux.mh: Ditto.
15397         * config/ia64/linux.mh: Ditto.
15398         * config/m68k/linux.mh: Ditto.
15399         * config/mips/linux.mh: Ditto.
15400         * config/powerpc/linux.mh: Ditto.
15401         * config/sparc/linux.mh: Ditto.
15402
15403 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15404
15405         * win32-nat.c: Add i386-tdep.h dependency.
15406
15407 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15408
15409         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15410         instead of bfd_get_arch_size.  Don't bail out just because
15411         there's no exec_bfd.
15412
15413         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15414         * p-valprint.c (pascal_object_print_value): Ditto.
15415         * somread.c (som_symtab_read): Ditto.
15416         * symfile.c (simple_free_overlay_region_table): Ditto.
15417         * valops.c (value_assign): Ditto.
15418
15419         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15420         use tilde_expand and strerror for opening save-tracepoints file.
15421
15422         * thread-db.c (thread_db_new_objfile): Indendation fix.
15423
15424         * infptrace.c (GDB_MAX_ALLOCA): New define.
15425         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15426         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15427         can be overridden with whatever value is appropriate to the host).
15428         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15429         alloca to allocate potentially large buffer.
15430         * rs6000-nat.c (child_xfer_memory): Ditto.
15431         * symm-nat.c (child_xfer_memory): Ditto.
15432         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15433
15434 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15435
15436         From Nick Clifton  <nickc@redhat.com>
15437         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15438
15439 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15440
15441         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15442         Don't use exec_bfd if it's NULL.
15443
15444 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15445
15446         * valops.c (value_arg_coerce): Fix formatting.
15447
15448 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15449
15450         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15451         * gnu-nat.c: Ditto.
15452
15453 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15454
15455         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15456         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15457         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15458         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15459         z8k-coff have not been multi-arched.  Update z8k-coff build
15460         status.
15461
15462 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15463
15464         * MAINTAINERS: Mark a29k target as obsolete.
15465         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15466         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15467         comments.
15468         * NEWS: Note that a29k targets are obsolete.
15469         * a29k-tdep.c: Mark as obsolete.
15470         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15471         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15472         a29k-*-vxworks* targets as obsolete.
15473         * remote-adapt.c: Obsolete.
15474         * remote-eb.c: Obsolete.
15475         * remote-mm.c: Obsolete.
15476         * remote-udi.c: Obsolete.
15477         * config/a29k/a29k-udi.mt: Obsolete.
15478         * config/a29k/a29k.mt: Obsolete.
15479         * config/a29k/tm-a29k.h: Obsolete.
15480         * config/a29k/tm-vx29k.h: Obsolete.
15481         * config/a29k/vx29k.mt: Obsolete.
15482
15483 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15484
15485         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15486         with BFD_ENDIAN_BIG.
15487
15488 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15489
15490         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15491         * configure, config.in: Re-generate.
15492         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15493         * defs.h: Do not include <endian.h>.
15494
15495 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15496
15497         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15498         * config.in: Regenerate.
15499         * configure.in: Update copyright years.
15500         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15501         * configure: Regenerate.
15502         * i386bsd-nat.c: Update copyright years.
15503         (fill_gregset): Use regcache_collect.
15504         (fetch_inferior_registers): Only fetch integer registers
15505         if requested to do so.  Add support for XMM registers
15506         using PT_GETXMMREGS.
15507         (store_inferior_registers): Only store integer registers
15508         if requested to do so.  Add support for XMM registers
15509         using PT_SETXMMREGS.
15510         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15511         (store_inferior_registers): Remove.
15512         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15513         (fetch_elfcore_registers): New function.
15514         (i386nbsd_elfcore_fns): New.
15515         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15516         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15517         i386bsd-nat.o.
15518         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15519         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15520         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15521         * config/i386/tm-nbsd.h: Update copyright years.
15522         (HAVE_SSE_REGS): Define.
15523         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15524         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15525         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15526         (SIGCONTEXT_PC_OFFSET): Remove.
15527         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15528
15529 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15530
15531         * configure.tgt: Remove powerpc-*-macos* target.
15532         * config/m68k/xm-mpw.h: Delete file.
15533         * config/xm-mpw.h: Delete file.
15534         * ser-mac.c: Delete file.
15535         * mpw-make.sed: Delete file.
15536         * mpw-config.in: Delete file.
15537         * mac-xdep.c: Delete file.
15538         * mac-gdb.r: Delete file.
15539         * mac-defs.h: Delete file.
15540         * mac-nat.c: Delete file.
15541         * config/powerpc/macos.mh: Delete file.
15542         * config/powerpc/macos.mt: Delete file.
15543         * config/powerpc/nm-macos.h: Delete file.
15544         * config/powerpc/tm-macos.h: Delete file.
15545         * source.c (openp, open_source_file): Remove obsolete code.
15546         * top.c (gdb_readline): Ditto.
15547         * utils.c (query): Ditto.
15548         * event-top.c (display_gdb_prompt): Ditto.
15549         * Makefile.in (ser-mac.o): Delete obsolete target.
15550         * NEWS: Update.
15551
15552 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15553
15554         * defs.h (BIG_ENDIAN): Delete macro definition.
15555         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15556         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15557         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15558         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15559         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15560         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15561         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15562         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15563         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15564         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15565         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15566         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15567         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15568         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15569         * gdbarch.c: Re-generate.
15570
15571 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15572
15573         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15574         for core files.
15575
15576 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15577
15578         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15579
15580 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15581
15582         * value.h (value_ptr): Delete typedef.
15583
15584 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15585
15586         * i386nbsd-nat.c: Update copyright years.
15587         Include i386-tdep.h.
15588
15589 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15590
15591         * stabsread.c: Update copyright years.
15592
15593         From Debashis Mahata <debashis.mahata@wipro.com>:
15594         (read_struct_fields): Deal with Sun C compiler erroneous stab
15595         output for structs and unions.
15596         Fix PR gdb/269.
15597
15598 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15599
15600         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15601         prototype.
15602
15603 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15604
15605         * cp-abi.c: Fix whitespace.
15606         (baseclass_offset): New wrapper function.
15607         * cp-abi.h (baseclass_offset): Add prototype.
15608         (struct cp_abi_ops): Add baseclass_offset pointer.
15609
15610         * valops.c (vb_match): Move to...
15611         * gnu-v2-abi.c (vb_match): here.
15612         * valops.c (baseclass_offset): Move to...
15613         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15614
15615         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15616
15617         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15618         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15619         * hpacc-abi.c (init_hpacc_ops): Likewise.
15620
15621 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15622
15623         * valops.c (find_overload_match): Accept obj as a
15624         reference parameter.  Update it before returning.
15625         * value.h (find_overload_match): Update prototype.
15626         * eval.c (evaluate_subexp_standard): Pass object to
15627         find_overload_match by reference.
15628
15629 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15630
15631         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15632         register attribute from value declarations.
15633         * valops.c: Ditto.
15634         * value.h: Ditto.
15635         * scm-lang.c (scm_lookup_name): Ditto.
15636
15637 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15638
15639         Abstract the functionality of iterating over mapped memory
15640         regions into a general purpose iterator function.
15641         * procfs.c (iterate_over_mappings): New function, general purpose
15642         iterator for memory sections.
15643         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15644         (solib_mappings_callback): New function, callback for above.
15645         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15646         (info_mappings_callback): New function, callback for above.
15647
15648         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15649
15650 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15651
15652         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15653         * i386-tdep.c: Include "elf-bfd.h".
15654         (process_note_abi_tag_sections): New function.
15655         (i386_gdbarch_init): Add code to recognize various OS/ABI
15656         combinations.
15657
15658         * maint.c (_initialize_maint_cmds): Add missing \ in
15659         string-literal.
15660
15661 For older changes see ChangeLog-2001
15662 \f
15663 Local Variables:
15664 mode: change-log
15665 left-margin: 8
15666 fill-column: 74
15667 version-control: never
15668 End: