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         * d10v-tdep.c (d10v_init_extra_frame_info): Use
4         frame_relative_level.
5
6         * alpha-tdep.c: Use get_frame_extra_info.
7         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11
12         * alpha-tdep.c: Use get_next_frame.
13         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
16         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
17         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
18         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
19         * xstormy16-tdep.c: Ditto.
20         
21 2003-01-07  Andrew Cagney  <cagney@redhat.com>
22
23         * alpha-tdep.c: Use get_frame_base.
24         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
25         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
26         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
27         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
28         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
29         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
30         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
31         * config/sparc/tm-sparc.h: Ditto.
32         
33 2003-01-07  Andrew Cagney  <cagney@redhat.com>
34
35         * frame.c (deprecated_get_frame_context): New function.
36         (deprecated_set_frame_context): New function.
37         * frame.h (deprecated_get_frame_context): Declare.
38         (deprecated_set_frame_context): Declare.
39         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
40         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
41         
42 2003-01-07  Andrew Cagney  <cagney@redhat.com>
43
44         * frame.c (deprecated_set_frame_next_hack): New function.
45         (deprecated_set_frame_prev_hack): New function.
46         * frame.h (deprecated_set_frame_next_hack): Declare.
47         (deprecated_set_frame_prev_hack): Declare.
48         * mcore-tdep.c (analyze_dummy_frame): Use
49         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
50         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
51
52 2003-01-07  David Carlton  <carlton@math.stanford.edu>
53
54         * linespec.c (decode_line_1): Move code into decode_dollar.
55         (decode_dollar): New function.
56
57 2003-01-07  Andrew Cagney  <cagney@redhat.com>
58
59         * arm-tdep.c (arm_init_extra_frame_info): Use
60         deprecated_update_frame_base_hack.
61         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
62         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
63         (fix_frame_pointer): Ditto.
64         (mn10300_analyze_prologue): Ditto.
65
66 2003-01-07  Andrew Cagney  <cagney@redhat.com>
67
68         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
69         extra_info using frame_extra_info_zalloc.
70         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
71         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
72         (sh64_init_extra_frame_info): Ditto.
73         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
74         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
75         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
76         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
77         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
78         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
79         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
80         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
81         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
82         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
83         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
84         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
85
86         * mn10300-tdep.c (analyze_dummy_frame): Use
87         deprecated_set_frame_extra_info_hack.
88         * mcore-tdep.c (analyze_dummy_frame): Ditto.
89
90 2003-01-07  J. Brobecker  <brobecker@gnat.com>
91
92         * mdebugread.c (parse_symbol): Skip stProc entries which storage
93         class is not scText. These do not define "real" procedures.
94         (parse_partial_symbols): Likewise.
95
96 2003-01-06  Michael Snyder  <msnyder@redhat.com>
97
98         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
99
100 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
101
102         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
103         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
104         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
105         deprecated_frame_xmalloc_with_cleanup.
106         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
107         deprecated_frame_xmalloc.
108         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
109         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
110
111 2003-01-06  Andrew Cagney  <cagney@redhat.com>
112
113         * x86-64-linux-tdep.c: Include "osabi.h".
114         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
115
116         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
117
118 2003-01-06  Andrew Cagney  <cagney@redhat.com>
119
120         * MAINTAINERS (Target Instruction Set Architectures): Update
121         arm-elf.  Can be built with -Werror, has been multiarched.
122
123         * value.h (unpack_long): Make buffer parameter constant.
124         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
125         * scm-lang.h (scm_parse): Ditto.
126         * defs.h (extract_typed_address, extract_address): Ditto.
127         (extract_long_unsigned_integer): Ditto.
128         * inferior.h (unsigned_pointer_to_address): Ditto.
129         (signed_pointer_to_address): Ditto.
130         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
131         * gdbarch.h, gdbarch.c: Regenerate.
132         * findvar.c (extract_long_unsigned_integer): Update.
133         (extract_address): Update.
134         (extract_typed_address): Update.
135         (unsigned_pointer_to_address): Update.
136         * values.c (unpack_long): Update.
137         (unpack_double): Update.
138         (unpack_pointer): Update.
139         (unpack_field_as_long): Update.
140         * d10v-tdep.c (d10v_pointer_to_address): Update.
141         * avr-tdep.c (avr_pointer_to_address): Update.
142         * scm-lang.c (scm_unpack): Update.
143         * findvar.c (signed_pointer_to_address): Update.
144
145 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
146
147         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
148         since it is in i386-tdep.c.
149
150 2003-01-06  J. Brobecker  <brobecker@gnat.com>
151
152         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
153         failure introduced in the previous change.
154
155 2003-01-05  Michael Chastain  <mec@shout.net>
156
157         * README: Remove references to deleted remote-*.c files:
158         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
159         remote-nrom.c, remote-os9k.c, remote-udi.c.
160
161 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
162
163         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
164         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
165         i386_get_longjmp_target.
166
167 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
168
169         * arm-tdep.c (prologue_cache): Change to a pointer.
170         (_initialize_arm_tdep): Allocate prologue_cache.
171         (check_prologue_cache): Update.
172         (save_prologue_cache): Update.
173         (arm_gdbarch_init): Update.
174
175 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
176
177         * stabsread.c (update_method_name_from_physname): Call complaint()
178         instead of error.
179
180 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
181
182         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
183         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
184         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
185
186         * blockframe.c: Include "gdbcmd.h" and "command.h".
187         (backtrace_below_main): New variable.
188         (file_frame_chain_valid, func_frame_chain_valid)
189         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
190         (generic_func_frame_chain_valid): Remove functions.
191         (frame_chain_valid, do_flush_frames_sfunc): New functions.
192         (_initialize_blockframe): New function.
193         * Makefile.in (blockframe.o): Update dependencies.
194         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
195         comment.  Call frame_chain_valid ().
196         * frame.h: Remove old prototypes.  Add prototype for
197         frame_chain_valid and update comments to match.
198         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
199         Remove old comment.
200         * gdbarch.h: Regenerated.
201         * gdbarch.c: Regenerated.
202
203         * alpha-tdep.c (alpha_gdbarch_init): Don't call
204         set_gdbarch_frame_chain_valid.
205         * avr-tdep.c (avr_gdbarch_init): Likewise.
206         * cris-tdep.c (cris_gdbarch_init): Likewise.
207         * frv-tdep.c (frv_gdbarch_init): Likewise.
208         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
209         * i386-tdep.c (i386_svr4_init_abi): Likewise.
210         (i386_nw_init_abi): Likewise.
211         (i386_gdbarch_init): Likewise.
212         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
213         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
214         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
215         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
216         * mips-tdep.c (mips_gdbarch_init): Likewise.
217         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
218         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
219         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
220         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
221         * s390-tdep.c (s390_gdbarch_init): Likewise.
222         * sh-tdep.c (sh_gdbarch_init): Likewise.
223         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
224         * v850-tdep.c (v850_gdbarch_init): Likewise.
225         * vax-tdep.c (vax_gdbarch_init): Likewise.
226         * x86-64-tdep.c (x86_64_init_abi): Likewise.
227
228         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
229         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
230         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
231         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
232         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
233         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
234         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
235         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
236
237 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
238
239         * Makefile.in (acconfig_h): Remove incorrect macro.
240         (config_h): Define.
241         (osabi.o): Update dependencies.
242         * configure.tgt: Set gdb_osabi based on target triplet.
243         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
244         * configure: Regenerated.
245         * config.in: Regenerated.
246         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
247         (GDB_OSABI_DEFAULT): Define if not already defined.
248         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
249         (set_osabi_string): New variables.
250         (gdbarch_register_osabi): Add new OS ABI to
251         gdb_osabi_available_names.
252         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
253         (set_osabi, show_osabi): New functions.
254         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
255
256 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
257
258         * arch-utils.c (gdbarch_info_init): Set osabi to
259         GDB_OSABI_UNINITIALIZED.
260         * gdbarch.sh: Add osabi to struct gdbarch and to struct
261         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
262         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
263         * gdbarch.c: Regenerated.
264         * gdbarch.h: Regenerated.
265         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
266         there's no BFD.
267         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
268         * osabi.h (enum gdb_osabi): Move to defs.h.
269         (gdbarch_init_osabi): Update prototype.
270         * defs.h (enum gdb_osabi): Moved here.
271         * Makefile.in: Update dependencies.
272
273         * alpha-tdep.h: Don't include "osabi.h".
274         (struct gdbarch_tdep): Remove osabi member.
275         * alpha-tdep.c: Include "osabi.h".
276         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
277         iterate over arches.  Update call to gdbarch_init_osabi.
278         (alpha_dump_tdep): Don't dump osabi.
279         * alpha-linux-tdep.c: Include "osabi.h".
280         * alpha-osf1-tdep.c: Include "osabi.h".
281         * alphafbsd-tdep.c: Include "osabi.h".
282         * alphanbsd-tdep.c: Include "osabi.h".
283
284         * arm-tdep.h: Don't include "osabi.h".
285         (struct gdbarch_tdep): Remove osabi member.
286         * arm-tdep.c: Include "osabi.h".
287         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
288         iterate over arches.  Update call to gdbarch_init_osabi.
289         (arm_dump_tdep): Don't dump osabi.
290         * arm-linux-tdep.c: Include "osabi.h".
291         * armnbsd-tdep.c: Include "osabi.h".
292
293         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
294         Update call to gdbarch_init_osabi.
295
296         * i386-tdep.h: Don't include "osabi.h".
297         (struct gdbarch_tdep): Remove osabi member.
298         * i386-tdep.c: Include "osabi.h".
299         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
300         iterate over arches.  Update call to gdbarch_init_osabi.
301         (i386_dump_tdep): Don't dump osabi.
302         * i386-linux-tdep.c: Include "osabi.h".
303         * i386-sol2-tdep.c: Include "osabi.h".
304         * i386bsd-tdep.c: Include "osabi.h".
305         * i386gnu-tdep.c: Include "osabi.h".
306         * i386ly-tdep.c: Include "osabi.h".
307         * i386nbsd-tdep.c: Include "osabi.h".
308         * i386obsd-tdep.c: Include "osabi.h".
309
310         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
311         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
312         check osabi when iterating over arches.  Update call to
313         gdbarch_init_osabi.
314         (mips_dump_tdep): Don't dump osabi.
315
316         * ns32k-tdep.h: Don't include "osabi.h".
317         (struct gdbarch_tdep): Remove.
318         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
319         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
320         allocate tdep.  Update call to gdbarch_init_osabi.
321         (ns32k_dump_tdep): Remove.
322         (_initialize_ns32k_tdep): Update call to gdbarch_register.
323         * ns32knbsd-tdep.c: Include "osabi.h".
324
325         * ppc-tdep.h: Don't include "osabi.h".
326         (struct gdbarch_tdep): Remove osabi member.
327         * rs6000-tdep.c: Include "osabi.h".
328         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
329         osabi when iterating over arches.  Update call to
330         gdbarch_init_osabi.
331         (rs6000_dump_tdep): Don't dump osabi.
332         * ppc-linux-tdep.c: Include "osabi.h".
333         * ppcnbsd-tdep.c: Include "osabi.h".
334
335         * sh-tdep.h: Don't include "osabi.h".
336         (struct gdbarch_tdep): Remove osabi member.
337         * sh-tdep.c: Include "osabi.h".
338         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
339         iterate over arches.  Update call to gdbarch_init_osabi.
340         (sh_dump_tdep): Don't dump osabi.
341         * shnbsd-tdep.c: Include "osabi.h".
342
343         * sparc-tdep.c: Include "osabi.h".
344         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
345         iterate over arches.  Update call to gdbarch_init_osabi.
346         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
347         tdep structure.
348
349         * vax-tdep.h: Don't include "osabi.h".
350         (struct gdbarch_tdep): Remove.
351         * vax-tdep.c: Include "osabi.h".
352         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
353         iterate over arches.  Don't allocate tdep.  Update call
354         to gdbarch_init_osabi.
355         (vax_dump_tdep): Remove.
356         (_initialize_vax_tdep): Update call to gdbarch_register.
357
358 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
359
360         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
361         entirely.
362         (breakpoint_re_set_one): Don't fetch the value for a disabled
363         watchpoint.
364
365 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
366
367         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
368         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
369         (COERCE_FLOAT_TO_DOUBLE): Remove.
370         * gdbarch.c: Regenerate.
371         * gdbarch.h: Regenerate.
372         * Makefile.in: Remove value_h from gdbarch_h.
373         * valops.c (coerce_float_to_double): New variable.
374         (default_coerce_float_to_double): Remove.
375         (standard_coerce_float_to_double): Remove.
376         (value_arg_coerce): Use coerce_float_to_double.
377         (_initialize_valops): Add "set coerce-float-to-double".
378         * value.h (default_coerce_float_to_double): Remove prototype.
379         (standard_coerce_float_to_double): Remove prototype.
380
381         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
382         prototyped.
383         * mdebugread.c (parse_symbol): Likewise.
384         * stabsread.c (define_symbol): Mark all functions as prototyped.
385
386         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
387         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
388         set_gdbarch_coerce_float_to_double.
389         * arm-tdep.c (arm_gdbarch_init): Likewise.
390         * frv-tdep.c (frv_gdbarch_init): Likewise.
391         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
392         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
393         * mips-tdep.c (mips_gdbarch_init): Likewise.
394         (mips_coerce_float_to_double): Remove.
395         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
396         (rs6000_coerce_float_to_double): Remove.
397         * s390-tdep.c (s390_gdbarch_init): Likewise.
398         * sh-tdep.c (sh_gdbarch_init): Likewise.
399         (sh_coerce_float_to_double): Remove.
400         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
401         (sparc_coerce_float_to_double): Remove.
402         * v850-tdep.c (v850_gdbarch_init): Likewise.
403         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
404         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
405         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
406         (hppa_coerce_float_to_double): Remove prototype.
407         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
408
409 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
410
411         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
412
413 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
414
415         Suggested by Stewart Brown <sb24@avaya.com>:
416         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
417         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
418         (c_type_print_varspec_suffix): Likewise.
419
420 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
421
422         * configure.in: Don't set and AC_SUBST SUBDIRS.
423         * configure: Regenerated.
424
425         * configure.in: Remove code dealing with shared libraries.
426         * Makefile.in: Remove HLDFLAGS and HLDENV.
427         * configure: Regenerated.
428
429 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
430
431         * frame.c (deprecated_frame_xmalloc): New function.
432         (deprecated_set_frame_saved_regs_hack): New function.
433         (deprecated_set_frame_extra_info_hack): New function.
434         * frame.h (deprecated_frame_xmalloc): Declare.
435         (deprecated_set_frame_saved_regs_hack): Declare.
436         (deprecated_set_frame_extra_info_hack): Declare.
437
438 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
439
440         * configure.in: Move code that provides the --enable-gdbtk option
441         right after the code that handles the --enable-tui option, and
442         polish it somewhat.
443         * configure: Regenerated.
444
445         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
446         AC_CHECK_FUNCS and remove the old check for pread64.
447         * acinclude.m4 (AC_GNU_SOURCE): New macro.
448         * acconfig.h (_GNU_SOURCE): Add.
449         (HAVE_PREAD64): Remove.
450         * configure, aclocal.m4, config.in: Regenerated.
451
452 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
453
454         * alpha-tdep.c: Use get_frame_saved_regs.
455         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
456         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
457         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
458         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
459         * vax-tdep.c, xstormy16-tdep.c: Ditto.
460
461 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
462
463         * configure.in: Remove all use of the SUBDIRS variable; add
464         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
465         code providing the --enable-multi-ice option, and move it right in
466         front of the code that checks whether gdbserver is supported.
467         Polish that too.
468         * configure: Regenerated.
469         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
470         @SUBDIRS@.
471
472 2003-01-03  Andrew Cagney  <cagney@redhat.com>
473
474         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
475         * avr-tdep.c, cris-tdep.c: Ditto.
476         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
477         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
478         
479 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
480
481         * configure.in: Remove --enable-netrom option.
482         * configure: Regenerated.
483
484 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
485
486         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
487         declaration for `struct re_pattern_buffer' instead.
488         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
489
490 2003-01-03  J. Brobecker  <brobecker@gnat.com>
491
492         * mdebugread.c (parse_symbol): Count until the stEnd matching
493         the structure name.
494
495 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
496
497         * configure.in: Remove --with-cpu option.
498         subscripts.  Remove evil changequotes here.
499         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
500         * config.in, configure: Regenerated.
501         
502         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
503         * configure.in: Cleanup section that sources GDB and BFD configure
504         subscripts.  Remove evil changequotes here.
505         * config.in, configure: Regenerated.
506
507 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
508
509         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
510         frame accessor methods.
511         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
512         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
513         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
514         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
515         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
516         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
517         * z8k-tdep.c: Ditto.
518         
519 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
520
521         * configure.in: Remove UI_OUT configuration code.
522         * ada-lang.c: Update assuming UI_OUT is always true.
523         * Makefile.in (UIOUT_CFLAGS): Remove.
524         * configure: Regenerated.
525         * TODO: Remove blurb about elimination of -DUI_OUT.
526
527         * configure.in: Move code that provides the --enable-gdbcli,
528         --enable-gdbmi options right before the code that handles the
529         --enable-tui option.  Polish a bit.
530         * configure: Regenerated.
531
532         * configure.in: Rewrite check for GNU regex and the
533         --without-included regex option, and move it into the "Checks for
534         library functions" section.  This makes us use the system regex
535         again by default on systems with version 2 of the GNU C library.
536         This was apparently broken.
537         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
538         * acconfig.h (USE_INCLUDED_REGEX): Remove.
539         * config.in, configure: Regenerated.
540
541         * configure.in: Move code that provides the --enable-tui option
542         before the "Checks for libraries" section.  Polish the code
543         somewhat and set need_curses to yes if we build the TUI.  Rewrite
544         code that looks for a library providing termcap functionality to
545         match more closely what's done in the Readline library, and move
546         it into to the "Checks for libraries" section.
547         * configure: Regenerated.
548         * Makefile.in (TERMCAP): Remove variable.
549         * config/i386/go32.mh (TERMCAP): Remove variable.
550
551 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
552
553         * MAINTAINERS: Mention gdb_mbuild.sh.
554         * gdb_mbuild.sh: Rewrite.
555
556 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
557
558         * configure.in: Fix typo in last change.
559         * config.in, configure: Regenerated.
560
561 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
562
563         * valarith.c (value_binop): Delete obsolete code and comments.
564         * configure.host: Ditto.
565         * buildsym.h (make_blockvector): Ditto.
566         * buildsym.c (make_blockvector): Ditto.
567         * defs.h (enum language): Ditto.
568         (chill_demangle): Ditto.
569         * elfread.c (elf_symtab_read): Ditto.
570         * dwarfread.c (CHILL_PRODUCER): Ditto.
571         (set_cu_language): Ditto.
572         (handle_producer): Ditto.
573         * expprint.c (print_subexp): Ditto.
574         * gdbtypes.c (chill_varying_type): Ditto.
575         * gdbtypes.h (builtin_type_chill_bool): Ditto.
576         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
577         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
578         (chill_varying_type): Ditto.
579         * language.h (_LANG_chill): Ditto.
580         * language.c (binop_result_type, integral_type): Ditto.
581         (character_type, string_type, structured_type): Ditto.
582         (lang_bool_type, binop_type_check): Ditto.
583         * stabsread.h (os9k_stabs): Ditto.
584         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
585         (define_symbol, read_type, read_struct_fields): Ditto.
586         (read_array_type, read_enum_type, read_huge_number): Ditto.
587         (read_range_type, start_stabs): Ditto.
588         * symfile.c (init_filename_language_table): Ditto.
589         (add_psymbol_with_dem_name_to_list): Ditto.
590         * symtab.c (symbol_init_language_specific): Ditto.
591         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
592         * symtab.h (struct general_symbol_info): Ditto.
593         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
594         * typeprint.c (typedef_print): Ditto.
595         * utils.c (fprintf_symbol_filtered): Ditto.
596         * valops.c (value_cast, search_struct_field, value_slice): Delete
597         obsolete code.
598         (varying_to_slice): Delete function.
599         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
600         (varying_to_slice): Delete declaration.
601         * MAINTAINERS: Update.
602
603 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
604
605         * configure.in: Reorganize "Checks for library functions section"
606         a bit.  Remove check for `btowc' and `isascii' functions.
607         * configure: Regenerated.
608
609         * acconfig.h (_MSE_INT_H): Remove.
610         * configure.in: Create "Checks for header files" section, and move
611         appropriate tests there.  Don't check for objlist.h, wchar.h,
612         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
613         misdetection fix.  Also add "Checks for types", "Checks for
614         compiler characteristics" and "Checks for library functions"
615         sections.
616         * config.in, configure: Regenerated.
617
618         * configure.in: Create "Checks for programs" section, and move
619         appropriate tests there.
620
621 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
622
623         * configure.in: Create "Checks for libraries" section, and move
624         appropriate tests there.  Cleanup check for wctype in libw.  Use
625         AC_SEARCH_LIBS to see whether we need libsocket.
626         * configure: Regenerated.
627
628 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
629
630         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
631         * config.in, configure: Regenerated.
632
633 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
634
635         * gdb_dirent.h: Cleanup and update code to match the example in
636         the Autoconf manual.
637         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
638         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
639         * configure: Regenerated.
640
641 2002-12-30  Adam Fedor  <fedor@gnu.org>
642
643         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
644         (yylex): Initialize c to avoid uninitialized warning.
645
646 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
647
648         * doc/fdl.texi: Revert the last change.
649
650 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
651
652         * tracepoint.c (ISATTY): Removed.
653
654 2002-12-26  J. Brobecker  <brobecker@gnat.com>
655
656         Continuing work to convert the hppa targets to multiarch partil.
657
658         * hppa-tdep.c: Add some missing forward declarations.
659         (frameless_function_invocation): Prefix the function name
660         by "hppa_" to avoid polluting the namespace.  Update all calls
661         to use the new function name.
662         (saved_pc_after_call): Ditto.
663         (init_extra_frame_info): Ditto.
664         (frame_chain): Ditto.
665         (push_dummy_frame): Ditto.
666         (target_read_pc): Ditto.
667         (target_write_pc): Ditto.
668         (in_solib_call_trampoline): Ditto.
669         (in_solib_return_trampoline): Ditto.
670         (skip_trampoline_code): Ditto.
671         (hppa_read_fp): New function, renamed from target_read_fp.
672         (hppa_target_read_fp): New function, using hppa_read_fp.
673         This function conforms to the function profile for the
674         READ_FP gdbarch method.
675         (hppa_extract_struct_value_address): New function, extracted
676         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
677         macro.
678         (hppa_frame_num_args): New function.
679         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
680
681         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
682         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
683         for the switch to multiarch partial.
684         Update some of the macros definitions to match some changes
685         described above in the name of the function they are calling.
686         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
687         not be straightforward to convert. Do now wrap it inside
688         "#if !... #endif" to remember that this macro has still not
689         been taken care of.
690         (FIX_CALL_DUMMY): Likewise.
691
692 2002-12-26  J. Brobecker  <brobecker@gnat.com>
693
694         Continuing work to convert the hppa targets to multiarch partial.
695
696         * hppa-tdep.c (hppa_register_raw_size): New function replacing
697         the body of macro REGISTER_RAW_SIZE.
698         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
699         config/pa/tm-hppah.h. These functions will be used to initialize
700         the gdbarch structure.
701         (hppa_hpux_pc_in_sigtramp): New function.
702         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
703         (hppa_hpux_frame_base_before_sigtramp): New function.
704         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
705         Add gdbcore.h #include.
706         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
707         of this gdbarch-eligible macro to a call to the new associated
708         function.
709         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
710         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
711         into a call to the new associated function.
712         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
713         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
714         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
715
716 2002-12-24  David Carlton  <carlton@math.stanford.edu>
717
718         * config/sparc/tm-sparc.h: Delete duplicate definition of
719         DEPRECATED_PC_IN_CALL_DUMMY.
720
721 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
722
723         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
724         $(gdb_assert_h).
725         * configure.tgt: Recognize mips64*-*-linux*.
726         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
727         (supply_32_bit_reg): New function.
728         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
729         (fill_gregset): Use regcache_collect() instead of
730         deprecated_registers[].
731         (register_addr): Change name to mips_linux_register_addr().
732         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
733         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
734         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
735         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
736         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
737         (MIPS64_LINUX_JB_PC): New defines.
738         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
739         (mips64_elf_fpregset_t): New typedefs.
740         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
741         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
742         (mips64_linux_register_addr, set_mips_linux_register_addr)
743         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
744         (init_register_addr_data)
745         New functions.
746         (fetch_core_registers): Add support for core file formats with 64-bit
747         registers.
748         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
749         (register_addr_data): New static global variable.
750         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
751         gdbarch_register_osabi() for each MIPS machine.
752         * config/mips/linux64.mt: New file.
753         * config/mips/tm-linux64.h: New file.
754
755 2002-12-23  Adam Fedor  <fedor@gnu.org>
756
757         * maint.c (maintenance_demangle): Add switch to demangle
758         ObjC language symbols as well.
759
760 2002-12-23  Adam Fedor  <fedor@gnu.org>
761
762         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
763         last argument from complaint function call.
764
765 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
766
767         * exec.c (print_section_info): Add FIXME comments regarding format
768         string choices.
769
770 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
771
772         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
773         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
774
775 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
776
777         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
778
779 2002-12-23  David Carlton  <carlton@math.stanford.edu>
780
781         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
782         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
783         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
784         information associated to a minsym, not lookup_symbol.
785
786 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
787
788         * x86-64-tdep.h (x86_64_init_abi): New prototype.
789         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
790         (x86_64_init_abi): Make non-static.  Set number of pseudo
791         registers to 0.
792         (x86_64_gdbarch_init): Remove function.
793         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
794         Remove code dealing with dissambly.
795         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
796         (_initialize_x86_64_linux_tdep): New function.
797         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
798         i386-tdep.o.
799
800 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
801
802         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
803         (struct gdb_osabi_handler): Remove member `arch'.  Add member
804         `arch_info'.
805         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
806         construct a `struct bfd_arch_info' and store it in the `struct
807         gdb_osabi_handler' that is created.
808         (gdbarch_init_osabi): Check for compatibility based on machine
809         type and architecture.
810         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
811         comment.
812         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
813         second argument in call to gdbarch_register_osabi.
814         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
815         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
816         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
817         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
818         * arm-tdep.c (_initialize_arm_tdep): Likewise.
819         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
820         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
821         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
822         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
823         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
824         * i386-tdep.c (_initialize_i386_tdep): Likewise.
825         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
826         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
827         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
828         _initialize_i386bsd_tdep and updated likewise.
829         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
830         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
831         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
832         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
833         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
834         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
835         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
836         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
837         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
838         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
839
840 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
841
842         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
843         DT_MIPS_RLD_MAP case for 64-bit targets.
844
845 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
846
847         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
848         ``temp_saved_regs'', not the pointer or other storage contiguous
849         to this pointer.
850
851 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
852
853         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
854         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
855         (mips_linux_get_longjmp_target): Delete declarations.
856         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
857         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
858         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
859         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
860         (mips_linux_get_longjmp_target)
861         (mips_linux_svr4_fetch_link_map_offsets): Make static.
862         (mips_linux_init_abi): New function.
863         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
864
865 2002-12-19  Keith Seitz  <keiths@redhat.com>
866
867         patch committed by Elena Zannoni  <ezannoni@redhat.com>
868         * thread.c (do_captured_list_thread_ids): Call prune_threads and
869         target_find_new_threads. Fix for PR mi/669.
870
871 2002-12-19  David Carlton  <carlton@math.stanford.edu>
872
873         * linespec.c (decode_line_1): Move code into decode_all_digits.
874         (decode_all_digits): New function.
875
876 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
877
878         * exec.c (print_section_info): Select a format string to use with
879         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
880
881 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
882
883         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
884         deprecated_update_current_frame_pc_hack.
885         (deprecated_update_frame_base_hack): New function.
886         * frame.h (deprecated_update_frame_pc_hack): Replace
887         (deprecated_update_frame_base_hack): Declare.
888         * infrun.c (normal_stop): Update.
889
890 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
891
892         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
893         frame_extra_info_zalloc.
894         (rs6000_frame_args_address): Use get_frame_extra_info.
895         (frame_get_saved_regs): Use get_frame_saved_regs.
896         (frame_initial_stack_address): Use get_frame_saved_regs and
897         get_frame_extra_info.
898         (frame_initial_stack_address): Use get_frame_extra_info.
899
900 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
901
902         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
903         array size.
904         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
905         checks for r3900_regnames[].
906
907 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
908
909         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
910         All uses changed
911         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
912
913 2002-12-17  David Carlton  <carlton@math.stanford.edu>
914
915         * symtab.c (lookup_partial_symbol): Don't search past the end of
916         the partial symbols.
917
918 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
919
920         * stack.c (frame_info): Use get_frame_saved_regs.
921         * breakpoint.c (until_break_command): Use get_frame_pc.
922
923 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
924
925         * buildsym.c (block_end_complaint, anon_block_end_complaint)
926         (innerblock_complaint, innerblock_anon_complaint)
927         (blockvector_complaint): Delete deprecated complaint structs.
928         (finish_block, make_blockvector, end_symtab): Replace calls
929         to complain() with calls to complaint().
930         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
931         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
932         (unexpected_type_complaint, bad_sclass_complaint)
933         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
934         Delete deprecated complaint structs.
935         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
936         Replace calls to complain() with calls to complaint().
937         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
938         (unknown_symtype_complaint, unknown_symchar_complaint)
939         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
940         (lbrac_mismatch_complaint, repeated_header_complaint)
941         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
942         Delete deprecated complaint structs.
943         (unknown_symtype_complaint, lbrac_mismatch_complaint)
944         (repeated_header_complaint)
945         (function_outside_compiliation_unit_complaint): New functions.
946         (add_old_header_file, find_corresponding_bincl_psymtab)
947         (set_namestring, find_stab_function_addr, read_dbx_symtab)
948         (process_one_symbol): Replace calls to complain() with, possibly
949         indirect, calls to complaint().
950         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
951         (unknown_attribute_form, unknown_attribute_length)
952         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
953         (const_ignored, botched_modified_type, op_deref2, op_deref4)
954         (basereg_not_handled, dup_user_type_allocation)
955         (dup_user_type_definition, missing_tag, bad_array_element_type)
956         (subscript_data_items, unhandled_array_subscript_format)
957         (unknown_array_subscript_format, not_row_major)
958         (missing_at_name): Delete deprecated complaint structs.
959         (bad_die_ref_complaint, unknown_attribute_form_complaint)
960         (dup_user_type_definition_complaint)
961         (bad_array_element_type_complaint): New functions.
962         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
963         (decode_subscript_data_item, dwarf_read_array_type)
964         (read_tag_string_type, read_subroutine_type, read_func_scope)
965         (locval, scan_partial_symbols, decode_modified_type)
966         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
967         (attribute_size): Replace calls to complain() with, possibly
968         indirect, calls to complaint().
969         * elfread.c (section_info_complaint, section_info_dup_complaint)
970         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
971         Delete deprecated complaint structs.
972         (elf_symtab_read, elfstab_offset_sections): Replace calls to
973         complain() with calls to complaint().
974         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
975         struct.
976         (stub_noname_complaint): New function.
977         (check_typedef, add_mangled_type): Replace calls to complain()
978         with calls to complaint().
979         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
980         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
981         (hpread_unhandled_type_complaint, hpread_struct_complaint)
982         (hpread_array_complaint, hpread_type_lookup_complaint)
983         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
984         (hpread_unhandled_common_complaint)
985         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
986         struct definitions and declarations.
987         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
988         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
989         Replace calls to complain() with, possibly indirect, calls to
990         complaint().
991         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
992         Likewise.
993         * mdebugread.c (bad_file_number_complaint, index_complaint)
994         (aux_index_complaint, block_index_complaint)
995         (unknown_ext_complaint, unknown_sym_complaint)
996         (unknown_st_complaint, block_overflow_complaint)
997         (basic_type_complaint, unknown_type_qual_complaint)
998         (array_index_type_complaint, bad_tag_guess_complaint)
999         (block_member_complaint, stEnd_complaint)
1000         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1001         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1002         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1003         (bad_continued_complaint, bad_rfd_entry_complaint)
1004         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1005         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1006         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1007         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1008         complaint structs.
1009         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1010         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1011         (unexpected_type_code_complaint)
1012         (function_outside_compilation_unit_complaint): New functions.
1013         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1014         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1015         Replace calls to complain() with, possibly indirect calls to
1016         complaint().
1017         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1018         Delete deprecated complaint structs.
1019         (lookup__objc_class, lookup_child_selector): Replace complain()
1020         with complaint().
1021         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1022         struct.
1023         (vx_lookup_symbol): Replace complain() with complaint().
1024         * stabsread.c (invalid_cpp_abbrev_complaint)
1025         (invalid_cpp_type_complaint, member_fn_complaint)
1026         (const_vol_complaint, error_type_complaint)
1027         (invalid_member_complaint, range_type_base_complaint)
1028         (reg_value_complaint, vtbl_notfound_complaint)
1029         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1030         (unresolved_sym_chain_complaint, stabs_general_complaint)
1031         (lrs_general_complaint, multiply_defined_struct): Delete
1032         deprecated complaint structs.
1033         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1034         (stabs_general_complaint, lrs_general_complaint)
1035         (msg_unknown_complaint): New functions.
1036         (dbx_lookup_type, read_cfront_baseclasses)
1037         (read_cfront_member_functions, resolve_symbol_reference)
1038         (define_symbol, resolve_live_range, add_live_range, read_type)
1039         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1040         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1041         (read_cfront_static_fields, attach_fields_to_type)
1042         (complain_about_struct_wipeout, read_range_type)
1043         (common_block_start, common_block_end, cleanup_undefined_types)
1044         (scan_file_globals): Replace complain() with complaint().
1045         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1046         Delete deprecated complaint struct declarations.
1047         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1048         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1049         (bf_not_found_complaint, ef_complaint, eb_complaint)
1050         (function_outside_compilation_unit_complaint): New functions.
1051         (record_include_begin, record_include_end, enter_line_range)
1052         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1053         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1054         complain() with complaint().
1055
1056 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1057
1058         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1059         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1060         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1061         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1062         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1063         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1064         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1065         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1066         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1067         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1068         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1069         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1070         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1071         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1072         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1073         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1074         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1075         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1076         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1077         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1078         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1079         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1080         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1081         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1082         * config/m88k/xm-dgux.h: Delete.
1083         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1084         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1085         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1086         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1087         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1088         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1089         * ch-valprint.c: Delete.
1090         
1091 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1092
1093         * infrun.c (handle_inferior_event): Rearrange code to resume if
1094         no catchpoint triggers for an event.
1095
1096 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1097
1098         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1099         and TARGET_WAITKIND_VFORKED cases.
1100
1101 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1102
1103         * infrun.c (handle_inferior_event): Assume that catchpoints
1104         are not affected by DECR_PC_AFTER_BREAK.
1105
1106 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1107
1108         * target.c (update_current_target): Don't inherit DONT_USE.
1109         * target.h (struct target_ops): Remove DONT_USE.
1110         (target_next): Remove macro.
1111
1112 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1113
1114         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1115
1116 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1117
1118         * arm-tdep.c (convert_from_extended): New argument to hold the
1119         type of floating point result we want to convert to.  Make input 
1120         argument const.  Fix all callers.
1121         (convert_to_extended): Similarly.
1122         (arm_extract_return_value): Now takes a regcache argument.  Change
1123         code to use regcache accessor functions.  Correctly extract 
1124         smaller-than-word results on big-endian machines.
1125         (arm_store_return_value): Now takes a regcache argument.  Change
1126         code to use regcache accessor functions.  Correctly zero/sign extend
1127         smaller than word results before storing into r0.
1128         (arm_gdbarch_init): Register new-style extract_return_value and
1129         store_return_value functions.
1130
1131 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1132
1133         * thread-db.c (thread_from_lwp): Uniquify error msg.
1134         (lwp_from_thread): Ditto.
1135         (check_event): Ditto.
1136         (find_new_threads_callback): Ditto.
1137         (thread_db_pid_to_str): Ditto.
1138
1139 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1140
1141         * frame.h (get_frame_saved_regs): Declare.
1142         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1143         pointer.
1144         * frame.c (get_frame_saved_regs): New function.
1145         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1146
1147 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1148
1149         * frame.c (deprecated_update_current_frame_pc_hack): New
1150         function.
1151         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1152         * infrun.c (normal_stop): Use said function instead of directly
1153         modifying the frame's PC.
1154         
1155 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1156
1157         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1158
1159 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1160
1161         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1162         config/mips/tm-irix6.h (NUM_REGS): Delete.
1163         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1164         (temp_saved_regs): Declare as a pointer rather than an array.
1165         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1166         that ``temp_saved_regs'' has storage allocated to it and that
1167         it's the correct size.
1168
1169 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1170
1171         * defs.h (init_last_source_visited): New prototype.
1172         (add_path): Ditto.
1173         * source.c (add_path): New function that adds to a specified path.
1174         (mod_path): Change to call add_path.
1175         (init_last_source_visited): New function to allow interfaces to
1176         initialize static variable: last_source_visited.  Part of fix
1177         for PR gdb/741.
1178         * Makefile.in: Add support for mi/mi-cmd-env.c.
1179
1180 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1181
1182         * frame.h (frame_id_unwind): Declare.
1183         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1184         id_unwind_cache.
1185         (frame_id_unwind_ftype): Declare.
1186         * frame.c (frame_id_unwind): New function.
1187         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1188         (create_new_frame, get_prev_frame): Pass id_unwind to
1189         set_unwind_by_pc.
1190         (frame_saved_regs_id_unwind): New function.
1191         (frame_saved_regs_id_unwind): New function.
1192         * dummy-frame.c (dummy_frame_id_unwind): New function.
1193         (struct dummy_frame): Add field id.
1194         (generic_push_dummy_frame): Initialize `id'.
1195         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1196
1197 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1198
1199         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1200         pass that to set_momentary_breakpoint.  Move comments to where they
1201         belong.
1202         * frame.h (set_current_frame): Delete declaration.
1203         * frame.c (set_current_frame): Delete function.
1204
1205 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1206
1207         * frame.c (frame_extra_info_zalloc): New function.
1208         * frame.h (frame_extra_info_zalloc): Declare.
1209
1210 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1211
1212         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1213         in the previous prototype change to set_momentary_breakpoint.
1214
1215 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1216
1217         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1218         and saw_child_exec.
1219         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1220         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1221         (stop_stepping): Remove outdated check for child vfork events.
1222
1223 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1224
1225         * GDB 5.3 released from gdb_5_3-branch.
1226
1227 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1228
1229         * corelow.c (init_core_ops): Delete references to to_require_attach
1230         and to_require_detach.
1231         * exec.c (init_exec_ops): Likewise.
1232         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1233         hppa_require_detach directly.
1234         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1235         * inftarg.c (child_detach): Remove.
1236         (child_detach_from_process): Rename to child_detach, remove
1237         after_fork argument.
1238         (child_attach): Remove.
1239         (child_attach_to_process): Rename to child_attach, remove after_fork
1240         argument.
1241         (init_child_ops): Delete references to to_require_attach
1242         and to_require_detach.
1243         * infttrace.c (hppa_require_attach): Update comment.
1244         * target.c (cleanup_target, update_current_target)
1245         (init_dummy_target, setup_target_debug): Delete references to
1246         to_require_attach and to_require_detach.
1247         (find_default_require_detach, find_default_require_attach)
1248         (debug_to_require_attach, debug_to_require_detach): Remove
1249         functions.
1250         * target.h (struct target_ops): Remove to_require_attach
1251         and to_require_detach.
1252         (target_require_attach, target_require_detach): Delete macros.
1253         (find_default_require_detach, find_default_require_attach): Delete
1254         prototypes.
1255         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1256
1257 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1258
1259         * frame.c (get_frame_extra_info): New function.
1260         * frame.h (get_frame_extra_info): Declare.
1261
1262 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1263
1264         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1265         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1266         with `struct frame_id'.
1267         (set_longjmp_resume_breakpoint): Ditto.
1268         * infrun.c (handle_inferior_event): Update.
1269         * breakpoint.c (watch_command_1, until_break_command): Update.
1270         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1271         (handle_inferior_event, step_over_function): Update.
1272         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1273         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1274         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1275         * infcmd.c (finish_command, run_stack_dummy): Update.
1276
1277 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1278
1279         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1280         (dwarf2_non_const_array_bound_ignored)
1281         (dwarf2_missing_line_number_section)
1282         (dwarf2_statement_list_fits_in_line_number_section)
1283         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1284         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1285         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1286         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1287         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1288         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1289         (dwarf2_missing_member_fn_type_complaint)
1290         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1291         (dwarf2_const_value_length_mismatch)
1292         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1293         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1294         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1295         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1296         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1297         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1298         complaints using deprecated struct..
1299         (dwarf2_non_const_array_bound_ignored_complaint)
1300         (dwarf2_complex_location_expr_complaint)
1301         (dwarf2_unsupported_at_frame_base_complaint)
1302         (dwarf2_const_value_length_mismatch_complaint)
1303         (dwarf2_macros_too_long_complaint)
1304         (dwarf2_macro_malformed_definition_complaint)
1305         (dwarf2_invalid_attrib_class_complaint): New functions.
1306         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1307         (read_structure_scope, read_array_type, read_common_block)
1308         (read_tag_pointer_type, read_base_type, read_partial_die)
1309         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1310         (new_symbol, dwarf2_const_value, read_type_die)
1311         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1312         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1313         complain() with, possibly indirect, calls to complaint().
1314
1315 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1316
1317         * frame.c (deprecated_get_frame_saved_regs): Rename
1318         get_frame_saved_regs.
1319         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1320         * sparc-tdep.c: Update.
1321         * hppa-tdep.c: Update.
1322         * h8500-tdep.c: Update.
1323
1324 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1325
1326         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1327         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1328         ``char *'' for return and parameter types.
1329         * gdbarch.h, gdbarch.c: Regenerate.
1330         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1331         return type from ``char *'' to ``const char *''.
1332         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1333         const.
1334
1335 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1336
1337         * i386-tdep.c: Include "dummy-frame.h".
1338         (i386_frame_chain, i386_frame_saved_pc): Replace
1339         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1340         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1341
1342 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1343
1344         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1345         Change to a function with predicate.
1346         * gdbarch.h, gdbarch.c: Re-generate.
1347         * frame.c (get_prev_frame): Update.  Test
1348         DEPRECATED_INIT_FRAME_PC_P.
1349         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1350         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1351         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1352         * alpha-tdep.c (alpha_gdbarch_init): Update.
1353         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1354         * mips-tdep.c (mips_gdbarch_init): Update.
1355         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1356         * arm-tdep.c: Update comments.
1357         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1358         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1359         * frv-tdep.c (frv_gdbarch_init): Ditto.
1360         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1361         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1362         * s390-tdep.c (s390_gdbarch_init): Ditto.
1363         * v850-tdep.c (v850_gdbarch_init): Ditto.
1364         * vax-tdep.c (vax_gdbarch_init): Ditto.
1365         * sh-tdep.c (sh_gdbarch_init): Ditto.
1366         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1367         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1368         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1369         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1370         * i386-tdep.c (i386_gdbarch_init): Ditto.
1371         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1372         * cris-tdep.c (cris_gdbarch_init): Ditto.
1373         * avr-tdep.c (avr_gdbarch_init): Ditto.
1374         * arm-tdep.c (arm_gdbarch_init): Ditto.
1375         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1376         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1377
1378 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1379
1380         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1381         CHILD_FOLLOW_FORK.
1382         * hppah-nat.c (saved_vfork_pid): Add.
1383         (child_post_follow_vfork): Remove.
1384         (child_follow_fork): New function.
1385         (child_wait): Call detach_breakpoints after receiving the child vfork.
1386         Call child_resume directly instead of going through resume ().
1387         Make sure we have the exec before reporting the vfork.
1388         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1389         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1390         (follow_fork): New function.  Call target_follow_fork.
1391         (follow_inferior_reset_breakpoints): New function broken out from
1392         old follow_inferior_fork.
1393         (resume): Remove hack to follow exec after vfork.
1394         * inftarg.c (child_post_follow_vfork): Remove.
1395         (child_follow_fork): New function.
1396         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1397         * target.c (cleanup_target): Replace to_post_follow_vfork with
1398         to_follow_fork.
1399         (update_current_target): Likewise.
1400         (setup_target_debug): Likewise.
1401         (debug_to_post_follow_vfork): Remove.
1402         (debug_to_follow_fork): New function.
1403         * target.h (struct target_ops): Replace to_post_folow_vfork with
1404         to_follow_fork.
1405         (child_post_follow_vfork): Remove prototype.
1406         (child_follow_fork): Add prototype.
1407         (target_post_follow_vfork): Remove macro.
1408         (target_follow_fork): Add macro.
1409
1410 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1411
1412         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1413         (child_post_follow_vfork): Cancel pending exec event if we follow
1414         the parent.
1415         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1416         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1417         event at the following wait call if necessary.
1418         * infrun.c (follow_vfork): Don't follow_exec here.
1419         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1420         case about HP/UX 10.20.  Remove code pushed down to
1421         hppah-nat.c:child_wait.
1422         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1423         vfork_in_flight is set.
1424
1425 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1426
1427         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1428         for the parent's fork event.
1429         * infrun.c (handle_inferior_event): Only expect one fork event.
1430         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1431         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1432
1433 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1434
1435         * PROBLEMS: Delete reference to PR gdb/725.
1436         
1437         * MAINTAINERS (gdb.c++): Add David Carlton.
1438
1439 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1440
1441         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1442         * cli/cli-cmds.c: Ditto.
1443
1444 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1445
1446         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1447         function address in <>.
1448         * gdbarch.c: Re-generate.
1449
1450 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1451
1452         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1453
1454 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1455
1456         * linespec.c (symtab_from_filename): New function.
1457         (decode_line_1): Move code into symtab_from_filename.
1458
1459 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1460
1461         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1462
1463 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1464
1465         * f-valprint.c (info_common_command): Use get_frame_pc.
1466         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1467         * ax-gdb.c (agent_command): Ditto.
1468         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1469         (rs6000_pop_frame): Ditto.
1470         (rs6000_frameless_function_invocation): Ditto.
1471         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1472         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1473         * macroscope.c (default_macro_scope): Ditto.
1474         * stack.c (print_frame_info_base): Ditto.
1475         (print_frame, frame_info, print_frame_label_vars): Ditto.
1476         (return_command, func_command, get_frame_language): Ditto.
1477         * infcmd.c (finish_command): Ditto.
1478         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1479         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1480         (break_at_finish_at_depth_command_1): Ditto.
1481         (break_at_finish_command_1): Ditto.
1482         (until_break_command, get_catch_sals): Ditto.
1483         * blockframe.c (func_frame_chain_valid): Ditto.
1484         (frameless_look_for_prologue): Ditto.
1485         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1486
1487 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1488
1489         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1490         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1491
1492 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1493
1494         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1495         to pure functions.
1496         * gdbarch.h, gdbarch.c: Re-generate.
1497         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1498         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1499
1500         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1501         declaration to a function returning a CORE_ADDR.
1502         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1503         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1504         (init_frame_pc_default): Ditto.
1505         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1506         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1507         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1508         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1509         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1510         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1511
1512         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1513         to init_frame_pc_noop.
1514         (i386_interix_init_frame_pc): Delete function.
1515         * z8k-tdep.c (init_frame_pc): Delete function.
1516         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1517         (INIT_FRAME_PC_FIRST): Ditto.
1518         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1519         (INIT_FRAME_PC_FIRST): Ditto.
1520         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1521         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1522         init_frame_pc_noop.
1523         (INIT_FRAME_PC_FIRST): Convert to an expression.
1524         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1525
1526 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1527
1528         * blockframe.c: Use get_frame_base instead of directly accessing
1529         the `struct frame_info' member frame.
1530         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1531         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1532
1533 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1534
1535         * Makefile.in (readline_h): Define.
1536         (completer.o): Depend on readline_h.
1537         (corelow.o): Ditto.
1538         (event-top.o): Ditto.
1539         (exec.o): Ditto.
1540         (solib.o): Ditto.
1541         (source.o): Ditto. 
1542         (symfile.o): Ditto. 
1543         (symmisc.o): Ditto. 
1544         (top.o): Ditto.
1545         (tracepoint.o): Ditto. 
1546         (utils.o): Ditto.
1547         (cli-dump.o): Ditto.
1548         (tui-hooks.o): Ditto. 
1549         (tuiWin.o): Ditto. 
1550
1551 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1552
1553         More cleanup from import of readline 4.3.
1554         * completer.h (complete_line, readline_line_completion_function):
1555         Update prototypes.
1556         (line_completion_function): Removed, not used outside of completer.c.
1557         * completer.c (readline_line_completion_function,
1558         complete_function, line_completion_function): Use const for first
1559         parameter.
1560         (line_completion_function): Make static.
1561         (filename_completer): filename_completion_function is now called
1562         rl_filename_completion_function
1563         * corelow.c: Include <readline/readline.h>.
1564         * exec.c: Ditto.
1565         * solib.c: Ditto.
1566         * source.c: Ditto.
1567         * symfile.c: Ditto.
1568         * symmisc.c: Ditto.
1569         * top.c (init_main): No need to coerce
1570         readline_line_completion_function anymore.
1571         * cli/cli-dump.c: Include <readline/readline.h>.
1572
1573 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1574
1575         * stack.c (frame_info): Use get_prev_frame.
1576         * blockframe.c (frame_address_in_block): Ditto.
1577         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1578         (rs6000_frameless_function_invocation): Ditto.
1579         (rs6000_frame_saved_pc): Ditto.
1580         (rs6000_frame_chain): Ditto.
1581         * arch-utils.c (init_frame_pc_default): Ditto.
1582
1583 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1584
1585         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1586         Delete redundant definition.
1587
1588 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1589
1590         Import of readline 4.3:
1591         * cli/cli-cmds.c: Include readline/tilde.h.
1592         * cli/cli-setshow.c: Ditto.
1593         * defs.h: Don't declare tilde_expand anymore, since readline
1594         exports it.
1595
1596 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1597
1598         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1599         -Werror on this file.
1600
1601 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1602
1603         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1604         the format name.
1605         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1606         * gdbarch.c: Regenerate.
1607         
1608 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1609
1610         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1611         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1612         provide a default value.
1613         * gdbarch.h, gdbarch.c: Regenerate.
1614         * frame.c (get_prev_frame): Update.  Check
1615         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1616         * s390-tdep.c (s390_gdbarch_init): Update.
1617         * mips-tdep.c (mips_gdbarch_init): Update.
1618         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1619         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1620         * alpha-tdep.c (alpha_gdbarch_init): Update.
1621         
1622 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1623
1624         * ia64-linux-nat.c: Include gdb_string.h.
1625         * alpha-nat.c: Ditto.
1626         * ppc-linux-nat.c: Ditto.
1627         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1628         Update dependencies.
1629
1630 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1631
1632         * gdbthread.h: Include "frame.h".
1633         (struct thread_info): Replace step_frame_address with
1634         step_frame_id.
1635         * inferior.h: Include "frame.h".
1636         (step_frame_id): Replace external variable step_frame_address.
1637         * gdbthread.h (save_infrun_state): Replace step_frame_address
1638         parameter with step_frame_id parameter.
1639         (load_infrun_state): Ditto.
1640         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1641         * infcmd.c (step_frame_id, step_1, step_once): Update.
1642         * thread.c (load_infrun_state, save_infrun_state): Update.
1643         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1644         (handle_inferior_event, step_over_function): Update.
1645         (normal_stop, context_switch, restore_inferior_status): Update.
1646         (struct inferior_status): Replace step_frame_address with
1647         step_frame_id.
1648
1649 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1650
1651         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1652         DW_TAG_member as well as a declaration as being a C++ static data
1653         member.
1654         (read_structure_scope): Combine tests for DW_TAG_member and
1655         DW_TAG_variable.
1656
1657 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1658
1659         * linespec.c (decode_compound): New function.
1660         (decode_line_1): Move code into decode_compound.
1661
1662 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1663
1664         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1665         argument.
1666         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1667         the static block.  See PR gdb/804.
1668
1669 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1670
1671         * symtab.c (lookup_symbol_aux_block): New function.
1672         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1673
1674 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1675
1676         * gdbarch.sh: Dump the predicate function and macro values.
1677         (read): Print error on standard error.
1678         * gdbarch.c: Regenerate.
1679         
1680 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1681
1682         * Makefile.in (mips_tdep_h): Define.
1683         (mips-tdep.o): Add mips_tdep_h to dependency list.
1684         * mips-tdep.h: New file.
1685         * mips-tdep.c (mips-tdep.h): Include.
1686         (enum mips_abi): Move to mips-tdep.h.
1687         (mips_abi): New function.
1688
1689 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1690
1691         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1692
1693 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1694
1695         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1696         function.
1697         (lookup_symbol_aux_minsyms): New function.
1698
1699 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1700
1701         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1702
1703 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1704
1705         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1706         which is an obsolete macro name.
1707
1708 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1709
1710         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1711         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1712
1713 2002-12-03  H.J. Lu  (hjl@gnu.org)
1714
1715         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1716         (create_breakpoints): Make sure the addr_string field is not
1717         NULL.
1718
1719 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1720
1721         * sparc-nat.c (fetch_inferior_registers)
1722         (store_inferior_registers): Add comment on problem of LWP vs
1723         threads.
1724         
1725         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1726         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1727         (lin_lwp_store_registers): Remove.
1728         (init_lin_lwp_ops): Use fetch_inferior_registers
1729         and store_inferior_registers directly.
1730         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1731         (store_inferior_registers): Likewise.
1732         Fix PR gdb/725.
1733
1734 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1735
1736         * frame.h (get_frame_id): Convert to a function.
1737         (null_frame_id, frame_id_p): Declare.
1738         (frame_id_eq, frame_id_inner): Declare.
1739         (frame_id_build): New function.
1740         * frame.c (get_frame_id): Update.  Use null_frame_id.
1741         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1742         frame_id_inner.
1743         (null_frame_id, frame_id_p): Define.
1744         (frame_id_eq, frame_id_inner): Define.
1745         (frame_id_build): New function.
1746         * varobj.c (varobj_create): Update.
1747         (varobj_update): Update.
1748         * valops.c (value_assign): Update.
1749         (new_root_variable): Update.
1750         * infrun.c (save_inferior_status): Update.
1751         * breakpoint.c (watch_command_1): Update.
1752
1753 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1754
1755         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1756         (SNAP2): Likewise.
1757
1758 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1759
1760         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1761         patch.
1762
1763         * PROBLEMS: Mention PR gdb/725.
1764
1765 2002-12-03  Andreas Schwab  <schwab@suse.de>
1766
1767         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1768
1769 2002-12-02  Adam Fedor  <fedor@gnu.org>
1770             Klee Dienes  <kdienes@apple.com>
1771
1772         * objc-lang.c (objc_printstr): Add width arg to match
1773         printstr prototype.
1774         (compare_selectors): Add 'const' to arg types.
1775         (compare_classes): Likewise.
1776         (find_imps): Cast msym pointer to avoid compiler warning.
1777         (print_object_command): Validate the address before
1778         passing it to the print routine.
1779         (find_objc_msgcall_submethod): Change function argument to
1780         return an int.
1781         * objc-lang.h: Add 'extern' to all function declarations.
1782         (value_nsstring): Add declaration.
1783
1784 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1785
1786         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1787         Fixes a build failure on HP/UX.
1788
1789         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1790         failure on HP/UX. 
1791         (hpread_has_name): Advance declaration to avoid a compilation warning.
1792         (pst_syms_count): Add missing variable type. By change, the compiler
1793         was defaulting to int, which seems a good choice. Fixes a compilation
1794         warning.
1795         (pst_syms_size): Likewise.
1796  
1797 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1798
1799         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1800         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1801         later to set the proper gdbarch methods depending on the osabi.
1802         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1803
1804 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1805
1806         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1807         * osabi.c (gdb_osabi_name): Add strings images for the two new
1808         enum values.
1809         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1810
1811 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1812
1813         * MAINTAINERS (Java): Global maintainers are responible for Java.
1814         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1815         part Java maintainers.
1816
1817 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1818
1819         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1820         Fixes a compilation failure on AiX.
1821
1822 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1823
1824         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1825         why aix-thread.o is not listed.
1826
1827 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1828
1829         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1830         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1831         * gdbarch.h, gdbarch.c: Re-generate.
1832         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1833         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1834         * config/pa/tm-hppa.h, frame.h: Update.
1835         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1836         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1837         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1838         * cris-tdep.c, alpha-tdep.c: Update.
1839         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1840         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1841         (get_prev_frame): Ditto.
1842
1843 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1844
1845         * exec.c (xfer_memory): Replace boolean with int.
1846         * p-exp.y: Use 0 instead of false.
1847         * corelow.c (gdb_check_format): Change return type to int from
1848         boolean.
1849         * utils.c: Don't include <curses.h> or <term.h> first.
1850
1851 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1852
1853         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1854         (m68hc11_register_byte): Remove.
1855         (m68hc11_gdbarch_init): Don't set the above.
1856
1857 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1858
1859         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1860         by calling get_selected_frame.
1861         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1862         set_current_frame, create_new_frame, select_frame and
1863         get_current_frame.
1864         * remote-e7000.c (e7000_start_remote): Ditto.
1865         * remote-mips.c (common_open): Ditto
1866         * remote-rdp.c (remote_rdp_open): Ditto.
1867
1868 2002-11-29  Andreas Schwab  <schwab@suse.de>
1869
1870         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1871         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1872         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1873         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1874         read_memory_unsigned_integer instead of read_memory_integer when
1875         dealing with addresses and instruction opcodes.
1876         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1877         (m68k_linux_frame_saved_pc): Likewise.
1878
1879 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1880
1881         * stack.c (selected_frame, select_frame): Move from here ...
1882         * frame.c (selected_frame, select_frame): ... to here.  Include
1883         "language.h".
1884         * Makefile.in (frame.o): Update dependencies.
1885         * frame.c (get_selected_frame): New function.
1886         * frame.h (get_selected_frame): Declare.
1887         (deprecated_selected_frame): Rename selected_frame.
1888         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1889         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1890         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1891         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1892         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1893         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1894         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1895         * z8k-tdep.c, cli/cli-cmds.c: Update.
1896         
1897 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1898
1899         * frame.h (get_selected_block): Add comments.
1900
1901 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1902
1903         * frame.c (pc_notcurrent): New function.
1904         (find_frame_sal): New function.
1905         * frame.h (find_frame_sal): Declare.
1906         (struct symtab_and_line): Add opaque declaration.
1907         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1908         find_pc_line.
1909         (frame_info): Ditto.
1910         * ada-lang.c (find_printable_frame): Ditto.
1911
1912 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1913
1914         * configure.in: Check that the pthdebug library is recent enough
1915         before enabling thread support on native AiX.
1916         * configure: Regenerate.
1917
1918         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1919         from the list of object files as it is now appended by configure
1920         if thread support is enabled.
1921         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1922         if thread support is enabled.
1923
1924 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1925
1926         * stack.c (get_selected_block): In-line get_current_block.
1927         * frame.h (get_current_block): Delete declaration.
1928         * blockframe.c (get_current_block): Delete function.
1929
1930 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1931
1932         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1933         USE_GENERIC_DUMMY_FRAMES.
1934         * gdbarch.h, gdbarch.c: Regenerate.
1935         * valops.c, frame.c: Update.
1936         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1937         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1938         * config/pa/tm-hppa.h, blockframe.c: Update.
1939         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1940         * m68k-tdep.c, alpha-tdep.c: Ditto.
1941
1942         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1943         * mips-tdep.c: Ditto.
1944
1945 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1946
1947         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1948         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1949         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1950         * gdbarch.c, gdbarch.h: Re-generate.
1951         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1952         (CALL_DUMMY_LOCATION): Delete macro definition.
1953         (PC_IN_CALL_DUMMY): Delete macro definitions.
1954         
1955         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1956         default is already generic_pc_in_call_dummy.
1957         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1958         * v850-tdep.c (v850_gdbarch_init): Ditto.
1959         * sh-tdep.c (sh_gdbarch_init): Ditto.
1960         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1961         * mips-tdep.c (mips_gdbarch_init): Ditto.
1962         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1963         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1964         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1965         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1966         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1967         * avr-tdep.c (avr_gdbarch_init): Ditto.
1968         
1969         * arm-tdep.c (arm_gdbarch_init): Do not set
1970         use_generic_dummy_frames, default is already 1.
1971         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1972         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1973         * v850-tdep.c (v850_gdbarch_init): Ditto.
1974         * sh-tdep.c (sh_gdbarch_init): Ditto.
1975         * s390-tdep.c (s390_gdbarch_init): Ditto.
1976         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1977         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1978         * mips-tdep.c (mips_gdbarch_init): Ditto.
1979         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1980         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1981         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1982         * i386-tdep.c (i386_gdbarch_init): Ditto.
1983         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1984         * frv-tdep.c (frv_gdbarch_init): Ditto.
1985         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1986         * cris-tdep.c (cris_gdbarch_init): Ditto.
1987         * avr-tdep.c (avr_gdbarch_init): Ditto.
1988
1989         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1990         call_dummy_location, default is already AT_ENTRY_POINT.
1991         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1992         * v850-tdep.c (v850_gdbarch_init): Ditto.
1993         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1994         * sh-tdep.c (sh_gdbarch_init): Ditto.
1995         * s390-tdep.c (s390_gdbarch_init): Ditto.
1996         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1997         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1998         * mips-tdep.c (mips_gdbarch_init): Ditto.
1999         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2000         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2001         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2002         * i386-tdep.c (i386_gdbarch_init): Ditto.
2003         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2004         * frv-tdep.c (frv_gdbarch_init): Ditto.
2005         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2006         * cris-tdep.c (cris_gdbarch_init): Ditto.
2007         * avr-tdep.c (avr_gdbarch_init): Ditto.
2008         * arm-tdep.c (arm_gdbarch_init): Ditto.
2009         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2010
2011 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2012
2013         * frame.h: Update comments on set_current_frame, create_new_frame,
2014         flush_cached_frames, reinit_frame_cache, select_frame and
2015         selected_frame.
2016         
2017 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2018
2019         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2020         deprecated pc_in_call_dummy function.
2021         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2022         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2023         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2024         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2025         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2026
2027 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2028
2029         * Makefile.in: Remove Tix dependencies.
2030         * acinclude.m4: Ditto.
2031         * aclocal.m4: Ditto.
2032         * configure.in: Ditto.
2033         * configure: Regenerated.
2034         
2035 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2036
2037         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2038         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2039         * gdbarch.c: Re-generate.
2040         
2041 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2042
2043         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2044         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2045         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2046         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2047         pc_in_call_dummy_at_entry_point.
2048         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2049         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2050         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2051         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2052         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2053         pc_in_call_dummy_on_stack.
2054         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2055         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2056         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2057         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2058         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2059         
2060 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2061
2062         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2063         pc_in_call_dummy_before_text_end
2064         (deprecated_pc_in_call_dummy_after_text_end): Rename
2065         pc_in_call_dummy_after_text_end.
2066         (deprecated_pc_in_call_dummy_on_stack): Rename
2067         pc_in_call_dummy_on_stack.
2068         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2069         pc_in_call_dummy_at_entry_point.
2070         * m68k-tdep.c (m68k_gdbarch_init): Update.
2071         * s390-tdep.c (s390_gdbarch_init): Update.
2072         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2073         * vax-tdep.c (vax_gdbarch_init): Update.
2074         * sparc-tdep.c (sparc_gdbarch_init): Update.
2075         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2076         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2077         * i386-tdep.c (i386_gdbarch_init): Update.
2078         * frv-tdep.c (frv_gdbarch_init): Update.
2079         * cris-tdep.c (cris_gdbarch_init): Update.
2080         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2081         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2082         (deprecated_pc_in_call_dummy_after_text_end)
2083         (deprecated_pc_in_call_dummy_on_stack)
2084         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2085         * alpha-tdep.c (alpha_gdbarch_init): Update.
2086
2087 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2088
2089         * acconfig.h (HAVE_PREAD64): Add.
2090         * configure.in: Check for pread64.
2091         * config.in: Regenerated.
2092         * configure: Regenerated.
2093         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2094         * linux-proc.c (linux_proc_xfer_memory): New function.
2095         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2096
2097 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2098
2099         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2100         pdi's with no name.
2101
2102 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2103
2104         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2105         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2106
2107 2002-11-25  Jim Blandy  <jimb@redhat.com>
2108
2109         * symfile.c (init_objfile_sect_indices): New function.
2110         (default_symfile_offsets): Move the section-index-initializing
2111         stuff into init_objfile_sect_indices, and call that.
2112
2113         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2114         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2115
2116         * symfile.c (syms_from_objfile): Adjust indentation.
2117
2118         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2119         || info_verbose isn't true.
2120
2121 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2122
2123         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2124         default to get_frame_base.
2125         * gdbarch.h, gdbarch.c: Regenerate.
2126         * arch-utils.c (default_frame_address): Delete function.
2127         * arch-utils.h (default_frame_address): Delete declaration
2128
2129 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2130
2131         * varobj.c (find_frame_addr_in_frame_chain):
2132         Use get_frame_base instead of FRAME_FP,
2133         obvious fix.
2134
2135 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2136
2137         * frame.h (FRAME_FP): Delete macro.
2138         (get_frame_base): New function declaration.
2139         * frame.c (get_frame_base): New function.
2140         (get_frame_id): Use ->frame.
2141         (frame_find_by_id): Rewrite to use get_frame_id.
2142         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2143         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2144         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2145         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2146         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2147         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2148         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2149
2150 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2151
2152         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2153
2154 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2155
2156         * frame.c (set_unwind_by_pc): Revert change below, use
2157         PC_IN_CALL_DUMMY.
2158         (get_prev_frame): Ditto.
2159
2160 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2161
2162         * dummy-frame.c (pc_in_dummy_frame): New function.
2163         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2164         (find_dummy_frame): Update comment.
2165         (generic_pop_current_frame): Use get_frame_type.
2166         * dummy-frame.h (pc_in_dummy_frame): Declare.
2167         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2168         (create_new_frame): Use pc_in_dummy_frame.
2169         (get_prev_frame): Use pc_in_dummy_frame.
2170         (frame_saved_regs_register_unwind): Use get_prev_frame.
2171         (deprecated_generic_get_saved_register): Use get_prev_frame.
2172
2173 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2174
2175         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2176         from here ...
2177         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2178         (varobj_create): Note that frame ID should be used.
2179         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2180
2181 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2182
2183         * breakpoint.c: Include "gdb_assert.h".
2184         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2185         not being used.
2186         * Makefile.in (breakpoint.o): Update dependencies.
2187         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2188         deprecated_frame_in_dummy.
2189         * stack.c (print_frame_info_base): Ditto.
2190         (frame_info): Ditto.
2191         (print_frame_info_base): Ditto.  Delete dead code.
2192         
2193 2002-11-23  Andreas Schwab  <schwab@suse.de>
2194
2195         * Makefile.in (m68k_tdep_h): Define.
2196         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2197         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2198         * m68k-tdep.c: Move register number enum ...
2199         * m68k-tdep.h: ... to this new file and rename the constants from
2200         E_* to M68K_*.  All uses changed.
2201         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2202         * abug-rom.c: Include "m68k-tdep.h".  Use
2203         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2204         * cpu32bug-rom.c: Likewise.
2205         * dbug-rom.c: Likewise.
2206         * m68k-tdep.c: Likewise.
2207         * m68klinux-nat.c: Likewise.
2208         * remote-est.c: Likewise.
2209         * rom68k-rom.c: Likewise.
2210         * config/m68k/tm-linux.h: Likewise.
2211
2212 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2213
2214         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2215         dummy frame initialization code.
2216         * mips-tdep.c (mips_gdbarch_init): Ditto.
2217
2218 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2219
2220         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2221         attach will hang.
2222
2223 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2224
2225         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2226         to default_frame_address.
2227         * gdbarch.h, gdbarch.c: Re-generate.
2228
2229         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2230         or frame_locals_address to default_frame_address.
2231         * m68k-tdep.c (m68k_gdbarch_init): Update.
2232         * i386-tdep.c (i386_gdbarch_init): Update.
2233         * frv-tdep.c (frv_gdbarch_init): Update.
2234         * sh-tdep.c (sh_gdbarch_init): Update.
2235         * v850-tdep.c (v850_gdbarch_init): Update.
2236         * sparc-tdep.c (sparc_gdbarch_init): Update.
2237         * mips-tdep.c (mips_gdbarch_init): Update.
2238         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2239         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2240         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2241
2242         * cris-tdep.c (cris_frame_args_address): Delete function.
2243         (cris_frame_locals_address): Delete function.
2244         (cris_gdbarch_init): Do not set frame_args_address or
2245         frame_locals_address.
2246
2247 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2248
2249         * thread-db.c (thread_db_load): Tell the user what's going on
2250         if dlopen fails on libthread_db.
2251
2252 2002-11-23  Andreas Schwab  <schwab@suse.de>
2253
2254         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2255         invariant return values.
2256
2257 2002-11-22  Andreas Schwab  <schwab@suse.de>
2258
2259         * valops.c (value_slice): Move declaration of `offset' to avoid
2260         warning.
2261
2262 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2263
2264         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2265         (struct so_stuff): Add end_addr field.
2266         (register_loaded_dll): Calculate and store end address of loaded dll.
2267         (solib_address): New function.
2268         (child_solib_loaded_library_pathname): Pass carefully constructed
2269         section info to safe_symbol_file_add rather than ignoring it.
2270         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2271         DLL is loaded.
2272         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2273         (child_create_inferior): Fix a compiler warning.
2274         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2275         (solib_address): Declare new function.
2276
2277 2002-11-22  Andreas Schwab  <schwab@suse.de>
2278
2279         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2280         and FPS registers.
2281
2282 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2283
2284         * maint.c (_initialize_maint_cmds): Fix typo.  From
2285         Francesco Potorti` <pot@gnu.org>.
2286
2287 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2288
2289         * mips-tdep.c (mips_dump_tdep): Delete references to
2290         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2291         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2292         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2293         * printcmd.c (build_address_symbolic): Delete calls to
2294         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2295         (address_info): Ditto.
2296         Fix PR gdb/773.
2297         
2298 2002-11-19  Klee Dienes  <kdienes@apple.com>
2299             Adam Fedor  <fedor@gnu.org>
2300
2301         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2302         the ability to explicitly specify the quote characters and word
2303         break characters; if NULL is specified for either, use the old
2304         behavior of using the characters used by the completer.
2305         (skip_chars): New function.  Convenience wrapper around
2306         skip_quoted_chars to provide the original skip_chars behavior.
2307         * completer.h (skip_quoted_chars): Add prototype.
2308
2309 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2310
2311         Problems reported by Paul Eggert.
2312         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2313
2314 2002-11-19  Andreas Schwab  <schwab@suse.de>
2315
2316         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2317         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2318         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2319         (m68k_linux_frame_saved_pc): Move to ...
2320         * m68klinux-tdep.c: ... here.  New file.
2321         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2322         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2323
2324 2002-11-19  Adam Fedor  <fedor@gnu.org>
2325
2326         * objc-exp.y: Revert to old skip_quoted usage.
2327
2328 2002-11-19  Adam Fedor  <fedor@gnu.org>
2329
2330         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2331         (objc_lang_h): Define.
2332         (YYFILES): Add objc-exp.tab.c.
2333         (local-maintainer-clean): Remove objc-exp.tab.c.
2334         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2335         
2336 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2337
2338         * p-exp.y (typecast rule): Add automatic dereference of
2339         pascal classes if needed.
2340         (THIS): Set current_type.
2341         Automatically dereference pascal classes. 
2342         (typebase rule): Add ^typebase recognition.
2343
2344 2002-11-18  Adam Fedor  <fedor@gnu.org>
2345
2346         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2347         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2348         (op_name): Handle OP_OBJC_SELF.
2349         * Makefile.in (expprint.o): Add additional depends.
2350
2351 2002-11-18  Adam Fedor  <fedor@gnu.org>
2352
2353         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2354         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2355         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2356         * objc-exp.y: Likewise. 
2357
2358 2002-11-18  Adam Fedor  <fedor@gnu.org>
2359
2360         * gdb/parser-defs.h: (struct objc_class_str): New structure
2361         for parsing ObjC classes.
2362
2363 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2364
2365         * stack.c (frame_relative_level): Copy function from here ...
2366         * frame.c (frame_relative_level): ...to here.
2367
2368 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2369
2370         * frame.h (enum frame_type): Define.
2371         (get_frame_type): Declare.
2372         (struct frame_info): Add field `type'.  Delete field
2373         signal_handler_caller.
2374         (deprecated_set_frame_signal_handler_caller): Declare.
2375         * frame.c (get_frame_type): New function.
2376         (deprecated_set_frame_type): New function.
2377         (create_new_frame): Set the frame's type.
2378         (get_prev_frame): Similar.
2379         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2380         * s390-tdep.c: Ditto.
2381         * m68klinux-nat.c: Ditto.
2382         * ns32k-tdep.c: Ditto.
2383         * x86-64-linux-tdep.c: Ditto.
2384         * vax-tdep.c: Ditto.
2385         * rs6000-tdep.c: Ditto.
2386         * ppc-linux-tdep.c: Ditto.
2387         * i386-interix-tdep.c: Ditto.
2388         * mips-tdep.c: Ditto.
2389         * m68k-tdep.c: Ditto.
2390         * hppa-tdep.c: Ditto.
2391         * ia64-tdep.c: Ditto.
2392         * cris-tdep.c: Ditto.
2393         * arm-tdep.c: Ditto.
2394         * alpha-tdep.c: Ditto.
2395         * i386-tdep.c: Ditto.
2396         * stack.c: Ditto.
2397         * ada-lang.c: Ditto.
2398         * blockframe.c: Update.
2399         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2400         deprecated_set_frame_type instead of signal_handler_caller.
2401         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2402         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2403         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2404
2405 2002-11-18   Klee Dienes  <kdienes@apple.com>
2406
2407         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2408
2409 2002-11-18  Klee Dienes  <kdienes@apple.com>
2410
2411         * buildsym.c (pop_context): Add comment.
2412         
2413 2002-11-18  Klee Dienes  <kdienes@apple.com>
2414
2415         * buildsym.h (pop_context): Convert to function, defined in
2416         buildsym.c.
2417         * buildsym.c: Include gdb_assert.h.
2418         (pop_context): Implement as C function.  Add check for stack
2419         underflow.
2420         * dbxread.c (process_one_symbol): Complain and stop processing
2421         that symbol if we are already at the top of the context stack for
2422         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2423         when processing N_RBRAC.
2424
2425 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2426
2427         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2428         define.
2429         (struct target_waitstatus): Add opaque definition.
2430         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2431         * exec.c (init_exec_ops): Likewise.
2432         * fork-child.c (clone_and_follow_inferior): Remove.
2433         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2434         * inferior.h (clone_and_follow_inferior): Remove prototype.
2435         * infrun.c (follow_fork_mode_both): Remove.
2436         (follow_fork_mode_kind_names): Remove commented out "both".
2437         (follow_inferior_fork): Remove follow_fork_mode_both support.
2438         * inftarg.c (child_clone_and_follow_inferior): Remove.
2439         (child_post_follow_inferior_by_clone): Remove.
2440         (init_child_ops): Don't set to_clone_and_follow_inferior
2441         or to_post_follow_inferior_by_clone.
2442         * target.c (default_clone_and_follow_inferior): Remove.
2443         (cleanup_target): Don't set to_clone_and_follow_inferior
2444         or to_post_follow_inferior_by_clone.
2445         (find_default_clone_and_follow_inferior): Remove.
2446         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2447         (debug_to_clone_and_follow_inferior): Remove.
2448         (debug_to_post_follow_inferior_by_clone): Remove.
2449         (setup_target_debug): Don't set to_clone_and_follow_inferior
2450         or to_post_follow_inferior_by_clone.
2451         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2452         and to_post_follow_inferior_by_clone.
2453         (child_clone_and_follow_inferior): Remove prototype.
2454         (child_post_follow_inferior_by_clone): Remove prototype.
2455         (target_clone_and_follow_inferior): Remove macro.
2456         (target_post_follow_inferior_by_clone): Remove macro.
2457         (find_default_clone_and_follow_inferior): Remove prototype.
2458
2459 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2460
2461         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2462         inferior_has_vforked, and inferior_has_execd instead of
2463         target_has_forked, target_has_vforked, and target_has_execd.
2464         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2465         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2466         (CHILD_WAIT): Define.
2467         (child_wait): Add prototype.
2468         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2469         Add prototype.
2470         (hpux_has_vforked): Likewise, from child_has_vforked.
2471         (hpux_has_execd): Likewise, from child_has_execd.
2472         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2473         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2474         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2475         and hpux_has_syscall_event instead of the target hooks.
2476         * infrun.c (inferior_has_forked, inferior_has_vforked)
2477         (inferior_has_execd): New functions.
2478         * inftarg.c (not_same_real_pid): Remove.
2479         (child_wait): Remove references to not_same_real_pid,
2480         target_has_forked, target_has_vforked, target_has_execd,
2481         and target_has_syscall_event.
2482         (child_has_forked, child_has_vforked, child_has_execd)
2483         (child_has_syscall_event): Remove.
2484         (init_child_ops): Remove references to child_has_forked,
2485         child_has_vforked, child_has_execd, and child_has_syscall_event.
2486         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2487         (hpux_has_vforked): Likewise, from child_has_vforked.
2488         (hpux_has_execd): Likewise, from child_has_execd.
2489         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2490         * target.c (cleanup_target): Remove references to
2491         to_has_forked, to_has_vforked, to_has_execd, and
2492         to_has_syscall_event.
2493         (update_current_target): Likewise.
2494         (setup_target_debug): Likewise.
2495         (debug_to_has_forked): Remove.
2496         (debug_to_has_vforked): Remove.
2497         (debug_to_has_execd): Remove.
2498         (debug_to_has_syscall_event): Remove.
2499         * target.h (struct target_ops): Remove to_has_forked.
2500         to_has_vforked, to_has_execd, and to_has_syscall_event.
2501         (child_has_forked, child_has_vforked, child_has_execd)
2502         (child_has_syscall_event): Remove prototypes.
2503         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2504         prototypes.
2505         (target_has_forked, target_has_vforked, target_has_execd)
2506         (target_has_syscall_event): Remove macros.
2507
2508 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2509
2510         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2511         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2512         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2513         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2514         * target.c (cleanup_target): Remove reference to
2515         to_can_follow_vfork_prior_to_exec.
2516         (update_current_target): Likewise.
2517         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2518         (setup_target_debug): Remove reference to
2519         to_can_follow_vfork_prior_to_exec.
2520         * target.h (struct target_ops): Remove
2521         to_can_follow_vfork_prior_to_exec.
2522         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2523         (target_can_follow_vfork_prior_to_exec): Remove definition.
2524         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2525         define.
2526         * infrun.c (follow_vfork_when_exec): Remove.
2527         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2528         (follow_exec): Likewise.
2529         (handle_inferior_event): Likewise.
2530         (keep_going): Likewise.
2531
2532 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2533
2534         * frame.c (generic_unwind_get_saved_register): Make static.
2535         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2536         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2537         defaults to generic_unwind_get_saved_register.
2538         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2539         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2540         * frv-tdep.c (frv_gdbarch_init): Ditto.
2541         * i386-tdep.c (i386_gdbarch_init): Ditto.
2542         * s390-tdep.c (s390_gdbarch_init): Ditto.
2543         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2544         * v850-tdep.c (v850_gdbarch_init): Ditto.
2545         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2546         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2547         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2548
2549 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2550
2551         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2552         i386-tdep.c.
2553
2554 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2555
2556         * frame.h (sigtramp_saved_pc): Delete declaration.
2557         * blockframe.c (sigtramp_saved_pc): Delete function.
2558         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2559         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2560         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2561         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2562
2563 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2564
2565         * frame.c (frame_pc_unwind): New function.
2566         (frame_saved_regs_pc_unwind): New function.
2567         (frame_register_unwind): Pass unwind_cache instead of
2568         register_unwind_cache.
2569         (set_unwind_by_pc): Add unwind_pc parameter, set.
2570         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2571         (get_prev_frame): Ditto.
2572         * frame.h (frame_pc_unwind_ftype): Declare.
2573         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2574         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2575         (frame_pc_unwind): Declare.
2576         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2577         (struct dummy_frame): Add comment mentioning that values are for
2578         previous frame.
2579         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2580         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2581         (generic_file_frame_chain_valid): Ditto.
2582         * stack.c (frame_info): Ditto.
2583
2584 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2585
2586         * linespec.c (locate_first_half): New function.
2587         (decode_line_1): Move code into locate_first_half.
2588
2589 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2590
2591         * complaints.h: Add comment explaining how to eliminate a
2592         deprecated_complain call.
2593         * complaints.h: Fix spelling errors.
2594
2595 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2596
2597         * printcmd.c: Remove #include "disasm.h".
2598
2599 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2600
2601         * frame.h: Move the most relevant interface functions to the start
2602         of the file.
2603
2604 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2605
2606         * regcache.h (deprecated_registers): Rename registers.
2607         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2608         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2609         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2610         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2611         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2612         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2613         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2614         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2615         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2616         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2617         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2618         * v850ice.c: Update.
2619
2620 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2621
2622         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2623         NULL buffer.
2624
2625 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2626
2627         * regcache.h (deprecated_read_register_bytes): Rename
2628         read_register_bytes.
2629         (deprecated_write_register_bytes): Rename write_register_bytes.
2630         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2631         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2632         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2633         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2634         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2635         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2636         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2637         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2638         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2639         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2640         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2641         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2642         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2643         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2644
2645 2002-11-13  Jim Blandy  <jimb@redhat.com>
2646
2647         * findvar.c (read_var_value): Doc fix.
2648
2649 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2650
2651         * regcache.c (struct regcache): Replace passthough_p with
2652         readonly_p.
2653         (regcache_xmalloc): Initialize readonly_p.
2654         (build_regcache): Initialize readonly_p.
2655         (regcache_save): New function.
2656         (regcache_restore): New function.
2657         (regcache_cpy): Re-implement using regcache_save and
2658         regcache_restore.
2659         (regcache_raw_read): Update.
2660         (regcache_cooked_read): When a read-only cache, checked for cached
2661         pseudo register values.
2662         (regcache_raw_write): Assert that the cache is not read-only.
2663         Remove code handling a non-passthrough cache.
2664         * regcache.h (regcache_save): Declare.
2665         (regcache_restore): Declare.
2666
2667 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2668
2669         * regcache.c (struct regcache_descr): Add fields
2670         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2671         (init_legacy_regcache_descr): Compute the size of a cooked
2672         register cache and then assign that to sizeof_raw_registers.  Set
2673         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2674         (init_legacy_regcache_descr): Ditto.
2675
2676 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2677
2678         * regcache.c (register_buffer): Move to near start of file, update
2679         description.
2680         (regcache_raw_read): Use.
2681         (regcache_raw_write): Use.
2682         (struct regcache): Rename raw_registers to registers and
2683         raw_register_valid_p to register_valid_p.
2684         (regcache_xmalloc): Update.
2685         (regcache_xfree): Update.
2686         (register_buffer): Update.
2687         (regcache_cpy): Update.
2688         (regcache_cpy_no_passthrough): Update.
2689         (regcache_valid_p): Update.
2690         (deprecated_grub_regcache_for_registers): Update.
2691         (deprecated_grub_regcache_for_register_valid): Update.
2692         (set_register_cached): Update.
2693         (regcache_raw_write): Update.
2694
2695 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2696
2697         * p-exp.y (name_not_typename): Use copy_name to
2698         set current_type variable for fields of THIS.
2699
2700 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2701
2702         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2703         * monitor.c (init_base_monitor_ops): Likewise.
2704         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2705         * remote-array.c (init_array_ops): Likewise.
2706         * remote-e7000.c (init_e7000_ops): Likewise.
2707         * remote-es.c (init_es1800_ops): Likewise.
2708         (init_es1800_child_ops): Likewise.
2709         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2710         * remote-sim.c (init_gdbsim_ops): Likewise.
2711         * remote-st.c (init_st2000_ops): Likewise.
2712         * sol-thread.c (init_sol_core_ops): Likewise.
2713         (init_sol_thread_ops): Likewise.
2714         * v850ice.c (init_850ice_ops): Likewise.
2715         * win32-nat.c (init_child_ops): Likewise.
2716         * wince.c (init_child_ops): Likewise.
2717
2718 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2719
2720         * utils.c (gdb_realpath): Make rp a constant pointer.
2721
2722 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2723
2724         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2725         a constant buffer; cannonicalize_file_name(); realpath() with a
2726         pathconf() defined buffer, xstrdup().
2727
2728 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2729
2730         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2731         to hang2.C; hang3.c to hang3.C.
2732
2733 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2734
2735         * findvar.c (read_var_value): Reenable TLS code.
2736
2737 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2738             Jim Blandy  <jimb@redhat.com>
2739         
2740         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2741         * target.c (update_current_target): Add
2742         to_get_thread_local_address.
2743         * target.h (to_get_thread_local_address): Export.
2744         (target_get_thread_local_address): Define.
2745         (target_get_thread_local_address_p): Define.
2746         * thread-db.c: Include solib-svr4.h.
2747         (td_thr_tls_get_addr_p): Define.
2748         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2749         (thread_db_get_thread_local_address): New function.
2750         (init_thread_db_ops): Initialize to_get_thread_local_address.
2751         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2752         * configure: Regenerate.
2753         * config.in: Regenerate.
2754
2755 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2756
2757         * linespec.c (set_flags): New function.
2758         (decode_line_1): Move code into set_flags.
2759
2760 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2761
2762         * linespec.c (decode_line_1): Move chunks of code to separate
2763         functions.
2764         (initialize_defaults): New function.
2765         (decode_indirect): New function.
2766
2767 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2768
2769         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2770         instead of void_code_ptr.
2771         (sigtramp_saved_pc): Ditto.
2772
2773         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2774         i386_fp_regnum_p.
2775
2776 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2777
2778         * gdbtypes.h (struct main_type): Move artificial flag out of
2779         loc.  New member of ``struct field'' named static_kind.  Reduce
2780         overloaded meaning of bitsize.
2781         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2782         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2783         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2784
2785         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2786         new fields.
2787         (template_to_fixed_record_type, template_to_static_fixed_type)
2788         (to_record_with_fixed_variant_part): Likewise.
2789         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2790         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2791         * dwarfread.c (struct_type, enum_type): Likewise.
2792         * hpread.c (hpread_read_enum_type)
2793         (hpread_read_function_type, hpread_read_doc_function_type)
2794         (hpread_read_struct_type): Likewise.
2795         * mdebugread.c (parse_symbol): Likewise.
2796
2797 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2798
2799         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2800         * stack.c (print_frame_info_base): Update.
2801         (print_frame_info_base, frame_info): Update.
2802         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2803         (sparc_frame_saved_pc): Update.
2804         * ada-lang.c (find_printable_frame): Update.
2805         * breakpoint.c (deprecated_frame_in_dummy): Update.
2806         
2807 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2808
2809         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2810         defined.
2811         (regmap): Extend to cover all registers.
2812         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2813         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2814         definitions.
2815         (fetch_register, sore_register): Simplify.
2816         (old_fetch_inferior_registers, old_store_inferior_registers):
2817         Remove functions.
2818         (cannot_fetch_register, cannot_store_register): Change
2819         implementation to use regmap array to decide which registers
2820         cannot be fetched/stored.  This removes $orig_eax from the
2821         registers that cannot be fetched/stored.
2822         (fetch_inferior_registers): Call fetch_register directly instead
2823         of calling old_fetch_inferior_registers.
2824         (store_inferior_registers): Call store_register directly instead
2825         of calling old_store_inferior_registers.
2826         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2827         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2828         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2829
2830 2002-11-09  Klee Dienes  <kdienes@apple.com>
2831
2832         * i387-tdep.c (i387_supply_register): When called with NULL as a
2833         buffer, mark the register as not provided (to mirror the behavior
2834         of supply_register).
2835         (i387_supply_fxsave): Ditto.
2836         (i387_supply_fsave): Ditto (inherits the behavior from
2837         i387_supply_register).
2838
2839 2002-11-09  Klee Dienes  <kdienes@apple.com>
2840
2841         * blockframe.c (sigtramp_saved_pc): Use
2842         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2843         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2844         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2845         
2846 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2847
2848         * frame.c (get_prev_frame): Test prev_p to identify a previously
2849         unwound frame.  Initialize prev_p.
2850         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2851         comment.
2852
2853 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2854
2855         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2856         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2857         more comments.  Zap dead code.
2858
2859 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2860
2861         * infcmd.c (print_vector_info, print_float_info): Move code that
2862         checks whether the target has any registers and whether there is a
2863         selected frame up, such that it is also used if a target provides
2864         multi-arch definitions of these functions.
2865
2866 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2867
2868         * Makefile.in (DESTDIR): Define.
2869         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2870         prefix.
2871
2872         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2873         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2874
2875 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2876
2877         * i386-linux-tdep.c: Include "reggroups.h".
2878         (i386_linux_register_reggroup_p): New function.
2879         (i386_linux_init_abi): Set register_reggroup_p to
2880         i386_linux_register_reggroup_p.
2881         * i386-tdep.h (i386_register_reggroup_p): Declare.
2882         * i386-tdep.c: Include "reggroups.h".
2883         (i386_init_reggroups): New function.
2884         (i386_add_reggroups): New function.
2885         (i386_register_reggroup_p): New function.
2886         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2887         (_initialize_i386_tdep): Call i386_init_reggroups.
2888         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2889         specific reggroups.
2890
2891 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2892
2893         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2894         request that's available in *BSD.
2895
2896         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2897
2898         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2899         FDOFF_REGNUM.
2900
2901 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2902
2903         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2904         * dummy-frame.c (find_dummy_frame): Rename
2905         generic_find_dummy_frame, make static.  Return the dummy frame
2906         instead of the regcache.
2907         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2908         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2909         (dummy_frame_register_unwind): Rename
2910         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2911         * dummy-frame.h (dummy_frame_register_unwind): Rename
2912         generic_call_dummy_register_unwind.
2913
2914 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2915
2916         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2917         except the inclusion of "i386/tm-i386.h", to...
2918         * config/i386/nm-i386v42mp.h: ...here.
2919         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2920
2921 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2922
2923         * Makefile.in (frame.o): Update dependencies.
2924         * blockframe.c (current_frame, frame_obstack_alloc)
2925         (frame_saved_regs_zalloc, get_current_frame)
2926         (set_current_frame, create_new_frame)
2927         (set_unwind_by_pc, get_next_frame)
2928         (flush_cached_frames, reinit_frame_cache)
2929         (frame_saved_regs_register_unwind)
2930         (deprecated_generic_get_saved_register)
2931         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2932         (_initialize_blockframe): Move frame code from here...
2933         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2934         "annotate.h" and "dummy-frame.h".
2935         (_initialize_frame): New function.
2936
2937 2002-11-08  Jim Blandy  <jimb@redhat.com>
2938
2939         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2940         when we finish a function a context.
2941         * buildsym.h (outermost_context_p): New macro.
2942         (Bug analyzed by David Edelsohn.)
2943
2944 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2945
2946         * blockframe.c: Include "dummy-frame.h".
2947         (struct dummy_frame, dummy_frame_stack)
2948         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2949         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2950         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2951         (generic_save_call_dummy_addr, generic_pop_current_frame)
2952         (generic_pop_dummy_frame, generic_fix_call_dummy)
2953         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2954         dummy frame code from here...
2955         * dummy-frame.c: ...to here.  New file.
2956         * dummy-frame.h: New file.
2957         (generic_call_dummy_register_unwind): Declare.
2958         (generic_find_dummy_frame): Declare.
2959         * Makefile.in (SFILES): Add dummy-frame.c.
2960         (dummy-frame.o): Specify dependencies.
2961         (dummy_frame_h): Define.
2962         (COMMON_OBS): Add dummy-frame.o.
2963         (blockframe.o): Update dependencies.
2964
2965 2002-11-08  Jim Blandy  <jimb@redhat.com>
2966
2967         * dwarf2read.c (read_func_scope): Restore local_symbols and
2968         param_symbols after we finish the function context.  (Based on a
2969         patch from David Edelsohn.)
2970
2971 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2972
2973         * linespec.c (symbol_found): New function.
2974         (minsym_found): New function.
2975         (decode_line_1): Separate out some code into separate functions.
2976
2977 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2978
2979         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2980         the benefit of the interix target.
2981         * i386-tdep.h (i386_frameless_signal_p): Declare.
2982
2983 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2984
2985         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2986         declaration that snuck in from change below.
2987
2988 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2989
2990         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2991         all callers.
2992         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2993         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2994         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2995         (i386_mxcsr_regnum_p): new function.  Use instead of
2996         MXCSR_REGNUM_P.
2997         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2998         (i386_sse_regnum_p): Declare.
2999         (i386_mxcsr_regnum_p): Declare.
3000         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3001         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3002         (IS_FP_REGNUM): Update definition.
3003         (IS_FPU_CTRL_REGNUM): Update definition..
3004         (IS_SSE_REGNUM): Update definition..
3005         * i386v-nat.c (register_u_addr): Update.
3006         * go32-nat.c (fetch_register): Update.
3007         (store_register): Update.
3008
3009 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3010
3011         Preparation work to convert the hppa targets to multiarch partial.
3012
3013         * hppa-tdep.c: Add new functions replacing macro bodies from
3014         config/pa/tm-hppa.h. These function will be used to initialize
3015         the gdbarch structure. Import some comments from tm-hppa.h,
3016         and place them where appropriate, to avoid loosing them when
3017         we cleanup this file.
3018         (hppa_reg_struct_has_addr): New function.
3019         (hppa_inner_than): New function.
3020         (hppa_stack_align): New function.
3021         (hppa_pc_requires_run_before_use): New function.
3022         (hppa_instruction_nullified): New function.
3023         (hppa_register_byte): New function.
3024         (hppa_register_virtual_type): New function.
3025         (hppa_store_struct_return): New function.
3026         (hppa_cannot_store_register): New function.
3027         (hppa_frame_args_address): New function.
3028         (hppa_frame_locals_address): New function.
3029         (hppa_smash_text_address): New function.
3030         (hppa_coerce_float_to_double): New function. Requires the inclusion
3031         of "language.h".
3032
3033         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3034
3035         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3036         gdbarch-eligible macro to a call to the new associated function
3037         created in hppa-tdep.c.
3038         (INNER_THAN): Likewise.
3039         (STACK_ALIGN): Likewise.
3040         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3041         (INSTRUCTION_NULLIFIED): Likewise.
3042         (REGISTER_BYTE): Likewise.
3043         (REGISTER_VIRTUAL_TYPE): Likewise.
3044         (STORE_STRUCT_RETURN): Likewise.
3045         (CANNOT_STORE_REGISTER): Likewise.
3046         (FRAME_ARGS_ADDRESS): Likewise.
3047         (FRAME_LOCALS_ADDRESS): Likewise.
3048         (SMASH_TEXT_ADDRESS): Likewise.
3049         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3050         (ABOUT_TO_RETURN): Delete, as no longer used.
3051
3052 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3053
3054         * printcmd.c (disassemble_command): Remove obsolete function.
3055         (_initialize_printcmd): Do not create disassemble command here.
3056         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3057         disassemble command.
3058         (init_cli_cmds): Create disassemble command here instead.
3059
3060 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3061
3062         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3063
3064 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3065
3066         * regcache.h (regcache_cooked_read_using_offset_hack)
3067         (regcache_cooked_write_using_offset_hack): Delete declarations.
3068         (register_changed): Delete declaration.
3069         * regcache.c (regcache_cooked_read_using_offset_hack)
3070         (regcache_cooked_write_using_offset_hack): Delete functions.
3071         (cooked_xfer_using_offset_hack): Delete function.
3072         (register_changed): Delete function.
3073
3074 2002-11-07  Jim Blandy  <jimb@redhat.com>
3075
3076         * macroscope.c: #include "complaints.h".
3077         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3078         but not in the macro table.
3079         * Makefile.in (macroscope.o): Record dependency.
3080
3081 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3082
3083         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3084
3085 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3086
3087         * regcache.c (deprecated_registers_fetched): Update.
3088         * regcache.h (deprecated_registers_fetched): Rename
3089         registers_fetched.
3090         * remote-vxsparc.c (vx_read_register): Update.
3091         * remote-vxmips.c (vx_read_register): Update.
3092         * remote-vx68.c (vx_read_register): Update.
3093         * irix5-nat.c (fetch_core_registers): Update.
3094         * mipsm3-nat.c (fetch_inferior_registers): Update.
3095         * sun3-nat.c (fetch_inferior_registers): Update.
3096         * symm-nat.c (fetch_inferior_registers): Update.
3097         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3098         (fetch_core_registers): Update.
3099         (fetch_kcore_registers): Update.
3100         * mips-nat.c (fetch_inferior_registers): Update.
3101         * corelow.c (get_core_registers): Update.
3102         * a68v-nat.c (fetch_inferior_registers): Update.
3103
3104 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3105
3106         Put in place the framework necessary for multiarching the hppa targets.
3107         * hppa-tdep.c (hppa_gdbarch_init): New function.
3108         (hppa_dump_tdep): New function.
3109         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3110         tdep structure dumper.
3111         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3112         until the multi-arching conversion has partially been completed.
3113
3114 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3115
3116         * valops.c (value_assign): Merge lval_register case into
3117         lval_reg_frame_relative.  Use frame_register and
3118         regcache_cooked_write instead of get_saved_register and
3119         write_register_bytes.  After flushing the register cache, try to
3120         re-select the selected frame.
3121
3122 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3123
3124         * regcache.h (deprecated_register_valid): Rename register_valid.
3125         * regcache.c: Update.
3126         * ia64-aix-nat.c: Update.
3127         * i386gnu-nat.c: Update.
3128         * alpha-nat.c: Update.
3129         * sparc-nat.c: Update.
3130         * lynx-nat.c: Update.
3131         * remote-mips.c: Update.
3132
3133 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3134
3135         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3136         to end of file, to be more consistent with the pratice followed
3137         by other targets.
3138
3139 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3140
3141         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3142         (print_float_info): Print registers in float_reggroup.
3143         (print_vector_info): Print registers in vector_reggroup.
3144         (default_print_registers_info): When all, print registers in
3145         all_reggroup.  Otherwize, print registers in general_reggroup.
3146         (registers_info): Rewrite.  Add support for register groups.
3147         Eliminate a goto.
3148
3149 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3150
3151         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3152         ages.
3153         (symtab_symbol_info): Remove eons old ifdeffed out code.
3154         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3155         command.
3156
3157 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3158
3159         * c-exp.y: Add missing semi-colons.
3160         * f-exp.y: Add missing semi-colons.
3161         * m2-exp.y: Add missing semi-colons.
3162         * p-exp.y: Add missing semi-colons.
3163         Add empty action to start rule to avoid a type clash error when
3164         building with bison >= 1.50.
3165
3166 2002-11-06  Jim Blandy  <jimb@redhat.com>
3167
3168         * macrotab.h (struct macro_source_file): Doc fix.
3169
3170 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3171
3172         * varobj.c (child_exists, cplus_number_of_children): Change
3173         STREQ macro references to strcmp.
3174         (cplus_name_of_child): Change code to handle the fact that
3175         fields are not necessarily contiguous with regards to their 
3176         access control. This is a fix for PR gdb/792.
3177
3178 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3179
3180         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3181         * gdbarch.h, gdbarch.c: Regnerate.
3182         * frame.h (frame_register): Declare.
3183         * frame.c (frame_register): New function.
3184         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3185         GET_SAVED_REGISTER, otherwize call
3186         generic_unwind_get_saved_register.
3187         (frame_register_read): Use frame_register instead of
3188         get_saved_register.
3189
3190 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3191         
3192         From Jim Ingham  <jingham@apple.com>:
3193         * event-top.c (gdb_disable_readline): New function.
3194         (_initialize_event_loop): Move comment.
3195
3196 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3197
3198         * event-loop.c (start_event_loop): Add comment.
3199         Update copyright.
3200
3201 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3202
3203         * infcmd.c (default_print_registers_info): Do not call
3204         PRINT_REGISTER_HOOK.
3205
3206 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3207
3208         * sparc-tdep.c (sparc_print_register_hook): Make static.
3209         (sparc_print_registers_info): New function.
3210         (sparc_do_registers_info): New function.
3211         (sparclet_print_registers_info): New function.
3212         (sparclet_do_registers_info): New function.
3213         (do_sparc_print_registers_info): New function.
3214         (sparc_print_registers): New static function, clone of infcmd.c's
3215         default_print_registers_info.
3216         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3217         (sparclet_do_registers_info): Declare.
3218         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3219         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3220         Re-define.
3221         (sparc_do_registers_info): Declare.
3222         (PRINT_REGISTER_HOOK): Delete macro.
3223         (sparc_print_register_hook): Delete declaration.
3224
3225 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3226
3227         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3228         functions.
3229         (lookup_symbol_aux_local): New function.
3230         (lookup_symbol_aux_symtabs): New function.
3231         (lookup_symbol_aux_psymtabs): New function.
3232
3233 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3234
3235         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3236         previous values of 'objfile' and 'block'.
3237
3238 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3239
3240         * values.c (value_change_enclosing_type): Set 
3241         enclosing_type field correctly also for the case where 
3242         more memory needs to be allocated.
3243
3244 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3245
3246         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3247         of puts_filtered.
3248
3249         * i387-tdep.c (i387_print_float_info): Replace calls to
3250         register_read and deprecated_read_register_gen with calls to
3251         frame_register_read, and make the necessary adjustments to the
3252         surrounding code.
3253
3254 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3255
3256         * gdbarch.sh (register_reggroup_p): Allow default value.
3257         * gdbarch.h, gdbarch.c: Regenerate.
3258
3259 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3260
3261         * regcache.h: Add coment indicating replacements for deprecated
3262         functions.
3263
3264 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3265
3266         * reggroups.h, reggroups.c: New files.
3267         * regcache.c: Include "reggroups.h".
3268         (enum regcache_dump_what): Add `regcache_dump_groups'.
3269         (regcache_dump): Contract size of the "Type" column.  When
3270         specified, dump the register's groups.
3271         (maintenance_print_register_groups): New function.
3272         (_initialize_regcache): Add command `maint print register-groups'.
3273         * Makefile.in (COMMON_OBS): Add reggroups.o
3274         (SFILES): Add reggroups.c.
3275         (reggroups_h): Define.
3276         (regcache.o, gdbarch.o): Update dependencies.
3277         (reggroups.o): Specify dependencies.
3278         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3279         Add opaque declaration for `struct reggroup' in generated .h file.
3280         Include "reggroups.h" in generated .c file.
3281         gdbarch.h, gdbarch.c: Re-generate.
3282
3283 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3284
3285         * regcache.h (deprecated_read_register_gen): Rename
3286         read_register_gen.
3287         (deprecated_write_register_gen): Rename write_register_gen.
3288         * i387-tdep.c: Update.
3289         * x86-64-linux-nat.c: Update
3290         * wince.c: Update.
3291         * thread-db.c: Update.
3292         * win32-nat.c: Update.
3293         * mips-tdep.c: Update.
3294         * d10v-tdep.c: Update.
3295         * cris-tdep.c: Update.
3296         * remote-sim.c: Update.
3297         * remote-rdi.c: Update.
3298         * remote-rdp.c: Update.
3299         * frame.c: Update.
3300         * target.c: Update.
3301         * blockframe.c: Update.
3302         * x86-64-tdep.c: Update.
3303         * xstormy16-tdep.c: Update.
3304         * sh-tdep.c: Update.
3305         * s390-tdep.c: Update.
3306         * rs6000-tdep.c: Update.
3307         * sparc-tdep.c: Update.
3308         * i386-tdep.c: Update.
3309         * dwarf2cfi.c: Update.
3310         * regcache.c: Update.
3311
3312 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3313
3314         New interix-specific files:
3315         * config/i386/nm-interix.h: New file.
3316         * config/i386/interix.mh: New file.
3317         * config/i386/interix.mt: New file.
3318         * i386-interix-nat.c: New file.
3319         * i386-interix-tdep.c: New file.
3320
3321 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3322
3323         * frame.h (deprecated_generic_get_saved_register): Rename
3324         generic_get_saved_register.
3325         * blockframe.c (deprecated_generic_get_saved_register): Update.
3326         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3327         (xstormy16_frame_saved_register): Update.
3328         * sh-tdep.c (sh_gdbarch_init): Update.
3329         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3330         * ia64-tdep.c (ia64_get_saved_register): Update.
3331         * cris-tdep.c (cris_gdbarch_init): Update.
3332         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3333         * arm-tdep.c (arm_gdbarch_init): Update.
3334
3335 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3336
3337         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3338
3339 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3340
3341         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3342         trampolines in sigaction.
3343
3344 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3345
3346         * h8300-tdep.c: Include "gdb_assert.h".
3347         (h8300_print_register): Add gdbarch, file and frame parameters.
3348         Use frame_read_unsigned_register to read the register's value.
3349         Use fprintf_filtered to display output.
3350         (h8300_print_registers_info): Replace h8300_do_registers_info.
3351         (h8300_gdbarch_init): Set print_registers_info.
3352
3353 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3354
3355         * frame.c (frame_read_unsigned_register): New function.
3356         (frame_read_signed_register): New function.
3357         * frame.h (frame_read_unsigned_register): Declare.
3358         (frame_read_signed_register): Declare.
3359
3360 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3361
3362         * h8500-tdep.c (h8500_print_registers_info): New static function,
3363         clone of infcmd.c's default_print_registers_info.
3364         (h8500_do_registers_info): New funtion.
3365         (h8500_print_register_hook): Rename print_register_hook, make
3366         static.
3367
3368         * config/h8500/tm-h8500.h: Update copyright.
3369         (DEPRECATED_DO_REGISTERS_INFO): Define.
3370         (h8500_do_registers_info: Declare.
3371         (PRINT_REGISTER_HOOK): Delete macro.
3372         (print_register_hook): Delete function.
3373
3374 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3375
3376         * z8k-tdep.c (z8k_print_register_hook): Make static.
3377         (z8k_print_registers_info): New static function, clone of
3378         infcmd.c's default_print_registers_info.
3379         (z8k_do_registers_info): New function.  Wrap
3380         z8k_print_registers_info.
3381         * config/z8k/tm-z8k.h: Update copyright.
3382         (PRINT_REGISTER_HOOK): Delete macro.
3383         (z8k_print_register_hook): Delete declaration.
3384         (DEPRECATED_DO_REGISTERS_INFO): Define.
3385         (z8k_do_registers_info): Declare.
3386
3387 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3388
3389         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3390         as this is already provided by value.h, and was actually causing
3391         a compilation error because of a conflict in parameter type
3392         declaration due to a missing const keyword.
3393         (low_text_segment_addres): Fix a compilation warning.
3394
3395 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3396
3397         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3398         registers without a name.
3399         (mips_linux_cannot_store_register): Don't store registers without
3400         a name.
3401
3402 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3403
3404         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3405         out.)
3406         * symtab.h: Delete prototype for find_addr_symbol.
3407
3408 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3409
3410         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3411         DO_REGISTERS_INFO.
3412         gdbarch.h, gdbarch.c: Re-generate.
3413         * infcmd.c (default_print_registers_info): Update reference.
3414         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3415         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3416         * sh-tdep.c (sh_gdbarch_init): Ditto.
3417         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3418         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3419
3420 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3421
3422         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3423         cfi_init_extra_frame_info.
3424         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3425         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3426
3427         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3428         target where necessary.  Add more comments and remove the ones
3429         that don't provide any useful information.
3430
3431         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3432         deprecated_read_register_dummy with
3433         frame_unwind_unsigned_register.
3434
3435         * i386-tdep.c (i386_extract_struct_value_address): Use
3436         regcache_raw_read_unsigned instead of
3437         regcache_cooked_read_unsigned since we know that the register
3438         we're reading isn't a pseudo register.  Rename variable 'val' into
3439         the more descriptive 'addr'.
3440
3441         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3442         (x86_64_push_return_address): Add comment.
3443         (x86_64_pop_frame): Make static.
3444         (examine_argument): Clarify comment.
3445         (x86_64_skip_prologue): Make prolog_expact variable static.
3446
3447         * dwarf2cfi.c: Fix some formatting problems.
3448         (context_cpy, read_encoded_pointer): Clarify comments.
3449
3450         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3451         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3452         i386 target back into x86_64_gdbarch_init.  Add some comments and
3453         remove meaningless ones.
3454
3455 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3456
3457         * complaints.h (struct deprecated_complaint): Rename `struct
3458         complaint'.
3459         * complaints.c (complain): Update.
3460         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3461         incorrect comment indicating that "symfile.h" was being included
3462         for the `struct complaint' definition.
3463         * remote-vx.c: Update.
3464         * objc-lang.c: Update.
3465         * xcoffread.c: Update.
3466         * hpread.c: Update.
3467         * mdebugread.c: Update.
3468         * stabsread.c: Update.
3469         * dwarf2read.c: Update.
3470         * dwarfread.c: Update.
3471         * elfread.c: Update.
3472         * coffread.c: Update.
3473         * stabsread.h: Update.
3474         * dbxread.c: Update.
3475         * buildsym.c: Update.
3476         * gdbtypes.c: Update.
3477         * macrotab.c: Update.
3478
3479 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3480
3481         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3482         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3483         (x86_64_init_abi): ...new function.
3484
3485         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3486         * i386v-nat.c: Include "i386-tdep.h".
3487
3488 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3489
3490         * gdbtypes.c (address_space_name_to_int): Update.
3491         (address_space_int_to_name): Update.
3492         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3493         multi-arch predicate.
3494         (address_class_name_to_type_flags): Ditto.
3495         * gdbarch.h, gdbarch.c: Re-generate.
3496         
3497         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3498
3499 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3500
3501         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3502
3503 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3504
3505         * symtab.h (INIT_SAL): Delete macro.
3506         (init_sal): Export.
3507         * symtab.c (init_sal): New function.
3508
3509         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3510         to init_sal function call.
3511         (find_sal_from_funcs_and_line): Ditto.
3512         (all_sals_for_line): Ditto. 
3513         * breakpoint.c (create_internal_breakpoint): Ditto. 
3514         (create_fork_vfork_event_catchpoint): Ditto. 
3515         (create_exec_event_catchpoint): Ditto. 
3516         (parse_breakpoint_sals): Ditto. 
3517         (watch_command_1): Ditto. 
3518         (handle_gnu_4_16_catch_command): Ditto.
3519         (clear_command): Ditto. 
3520         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3521         * infcmd.c (run_stack_dummy): Ditto. 
3522         * infrun.c (process_event_stop_test): Ditto.
3523         (check_sigtramp2): Ditto.
3524         (step_over_function): Ditto. 
3525         * linespec.c (decode_line_2): Ditto. 
3526         (decode_line_1): Ditto. 
3527         * source.c (line_info): Ditto. 
3528         * symtab.c (find_pc_sect_line): Ditto.
3529
3530 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3531
3532         * dwarf2cfi.c (struct context)
3533         (struct context_reg): Moved to dwarf2cfi.h
3534         (context_alloc, frame_state_alloc, context_cpy):
3535         Made extern instead of static, removed prototypes.
3536         * dwarf2cfi.h (struct context)
3537         (struct context_reg): New, moved from dwarf2cfi.c
3538         (context_alloc, frame_state_alloc, context_cpy):
3539         New prototypes.
3540         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3541         Changed from static to extern.
3542         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3543         (LINUX_SIGCONTEXT_FP_OFFSET)
3544         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3545         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3546         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3547         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3548         set_gdbarch_*() calls now use x86-64 specific functions 
3549         instead of DWARF2 CFI ones.
3550         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3551         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3552         (x86_64_init_extra_frame_info): New prototypes.
3553         
3554 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3555
3556         * linespec.c: #include "parser-defs.h".
3557         Delete prototype for find_template_name_end.
3558         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3559
3560 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3561
3562         * NEWS: add recent mi fixes.
3563         * varobj.c (struct varobj): Add new "updated" flag.
3564         (new_variable): Default "updated" flag to 0.
3565         (varobj_set_value): Set "updated" flag to 1 if value
3566         changes.
3567         (varobj_update): Check varobj "updated" flag before
3568         comparing old and refreshed values.  Fix for
3569         PR gdb/702.
3570
3571 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3572
3573         * parse.c (parse_exp_1): Use BLOCK_START.
3574         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3575         SYMBOL_BLOCK_VALUE.
3576         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3577
3578 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3579
3580         * symtab.c: Delete cplusplus_hint.
3581         Delete prototype for find_template_name_end.
3582
3583 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3584
3585         * symtab.h: Update comment.
3586
3587 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3588
3589         * printcmd.c (address_info): Restore quotes in output.
3590         * valops.c (value_of_local): Restore quotes in error message.
3591
3592 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3593
3594         * symtab.c (symbol_demangled_name): New function.
3595         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3596         turning most of it into a function.
3597         (symbol_demangled_name): Export.
3598
3599 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3600
3601         * valops.c (value_of_local): Restore quotes in error message.
3602
3603 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3604
3605         * symtab.c (symbol_init_language_specific): New function.
3606         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3607         turning most of it into a function.
3608         (symbol_init_language_specific): Export.
3609
3610 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3611
3612         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3613         (dwarf_attr_name): Ditto.
3614         (dwarf_type_encoding_name): Ditto.
3615         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3616         (process_die): Handle DW_TAG_namespace,
3617         DW_TAG_imported_declaration, DW_TAG_imported_module.
3618         (read_namespace): New function.
3619
3620 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3621
3622         * configure.in: Define NEW_PROC_API on Interix too.
3623         * configure: Regenerate.
3624
3625 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3626
3627         * configure: Regenerate using the proper version of autoconf.
3628
3629 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3630
3631         * findvar.c (read_var_value): Temporarily disable TLS code, until
3632         complete TLS support is added.
3633
3634 2002-10-21  Jim Blandy  <jimb@redhat.com>
3635             Elena Zannoni  <ezannoni@redhat.com>
3636
3637         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3638         for thread local storage locations.
3639         (struct symbol): Add objfile field.
3640         (SYMBOL_OBJFILE): Define.
3641         * dwarf2read.c (is_thread_local): New static variable.
3642         (new_symbol): If variable is in thread local fill in address class
3643         and objfile appropriately.
3644         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3645         stack operation.
3646         * printcmd.c (address_info): Print the information for thread
3647         local storage variable.
3648         * findvar.c (read_var_value): In case of thread local variable,
3649         defer to the target vector code to compute address.
3650
3651 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3652
3653         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3654         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3655
3656 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3657
3658         * symtab.h (address_class):  Rename
3659         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3660         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3661         * printcmd.c (address_info): Ditto.
3662         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3663
3664 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3665
3666         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3667         DBREG_DRX macro to acces debug registers.
3668
3669         * Makefile.in (i386obsd-tdep.o): New target.
3670
3671         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3672         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3673
3674         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3675         * config/i386/obsd.mt: New file.
3676         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3677         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3678         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3679         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3680         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3681         * i386obsd-tdep.c: New file.
3682
3683 2002-10-19  Adam Fedor  <fedor@gnu.org>
3684
3685         * objc-exp.y (name_not_typename): Fix invalid comment.  
3686
3687 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3688
3689         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3690         to allocate partial syms and macro byte caches.
3691
3692 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3693
3694         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3695
3696 2002-10-18  Adam Fedor  <fedor@gnu.org>
3697
3698         * stabsread.c (find_name_end): New function.
3699         (define_symbol): Use it.
3700
3701 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3702
3703         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3704         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3705         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3706         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3707
3708 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3709
3710         * symfile.h: Add opaque declaration for struct obstack.
3711         Declare obsavestring to take a const char *.
3712         * symfile.c (obsavestring): Make first argument a const char *.
3713
3714 2002-10-16  Adam Fedor  <fedor@gnu.org>
3715
3716         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3717         names when matching breakpoints in current file.
3718
3719 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3720
3721         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3722         (read_tag_pointer_type): Add address class support.
3723         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3724         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3725         New methods.
3726         * gdbarch.h, gdbarch.c: Regenerate.
3727         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3728         (make_type_with_address_space, recursive_type_dump): Add address
3729         class support.
3730         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3731         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3732         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3733
3734 2002-10-16  Klee Dienes  <kdienes@apple.com>
3735
3736         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3737         to get the last character of a char[] buffer, not
3738         name[sizeof(vptr_name)-1].
3739
3740 2002-10-14  Adam Fedor  <fedor@gnu.org>
3741
3742         * symtab.h: New objc_specific struct.
3743         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3744         (SYMBOL_DEMANGLED_NAME): Likewise.
3745
3746 2002-10-14  Adam Fedor  <fedor@gnu.org>
3747
3748         * symfile.c (init_filename_language_table): Add ObjC file extension.
3749
3750 2002-10-14  Adam Fedor  <fedor@gnu.org>
3751
3752         * utils.c (puts_filtered_tabular): New function.
3753         (fprintf_symbol_filtered): Get ObjC demangled name.
3754         * defs.h (puts_filtered_tabular): Declared.
3755
3756 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3757
3758         * c-lang.h (c_type_print_varspec_prefix): Delete.
3759         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3760         ``need_post_space'' parameter.  Adjust all callers.
3761
3762 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3763  
3764         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3765         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3766         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3767         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3768
3769 2002-10-13  Adam Fedor  <fedor@gnu.org>
3770
3771         * source.c (print_source_lines): Update comments.
3772
3773 2002-10-13  Adam Fedor  <fedor@gnu.org>
3774
3775         * valops.c (value_of_local): New function.
3776         (value_of_this): Use it.
3777         * value.h (value_of_local): Declared.
3778
3779 2002-10-13  Adam Fedor  <fedor@gnu.org>
3780
3781         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3782         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3783
3784 2002-10-12  Adam Fedor  <fedor@gnu.org>
3785
3786         * language.c (binop_result_type): Add language_objc to case.
3787         (integral_type): Likewise.
3788         (character_type): Likewise.
3789         (string_type): Likewise.
3790         (boolean_type): Likewise.
3791         (structured_type): Likewise.
3792         (binop_type_check): Likewise.
3793
3794 2002-10-11  Adam Fedor  <fedor@gnu.org>
3795
3796         * printcmd.c (address_info): Print 'self' for ObjC.
3797
3798 2002-10-11  Adam Fedor  <fedor@gnu.org>
3799
3800         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3801         OP_SELF.
3802
3803 2002-10-11  Adam Fedor  <fedor@gnu.org>
3804
3805         * language.h (CAST_IS_CONVERSION): Add language_objc.
3806
3807 2002-10-11  Adam Fedor  <fedor@gnu.org>
3808
3809         * defs.h (enum language): Add language_objc.
3810
3811 2002-10-11  Klee Dienes  <kdienes@apple.com>
3812
3813         * corefile.c (read_memory_typed_address): New function.
3814         * gdbcore.h (read_memory_typed_address): Add prototype.
3815         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3816         to read a value destined for a CORE_ADDR, not read_memory_integer.
3817         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3818         (f77_get_dynamic_lowerbound): Ditto.
3819
3820 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3821
3822         * utils.c (string_to_core_addr): After turning string into
3823         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3824         which will do necessary sign-extension, etc.
3825
3826 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3827
3828         * c-exp.y (THIS): Delete token and grammar rule.
3829         (yylex): Don't return THIS.
3830         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3831         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3832         * demangle.c (cplus_markers): Update comment.  Put '$'
3833         first.  Remove CPLUS_MARKER.
3834         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3835         * jv-exp.y (THIS): Delete token and grammar rule.
3836         (yylex): Don't return THIS.
3837         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3838         * objc-exp.y (THIS): Delete token and grammar rule.
3839         (yylex): Don't return THIS.
3840         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3841         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3842         (read_member_functions): Likewise for opname.
3843         (read_tilde_fields): Use is_cplus_marker.
3844
3845         * defs.h (CPLUS_MARKER): Don't define.
3846         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3847         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3848         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3849         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3850         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3851
3852         * config/i386/tm-i386v4.h: Delete file.
3853         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3854         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3855         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3856         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3857         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3858         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3859         * config/i386/i386v4.mt (TM_FILE): Likewise.
3860         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3861
3862 2002-10-10  Marko Mlinar  <markom@opencores.org>
3863
3864         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3865         accidentially not commited 2002-10-09
3866         * gdbarch.h, gdbarch.c: Re-generate.
3867
3868 2002-10-09  Marko Mlinar  <markom@opencores.org>
3869
3870         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3871         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3872         * gdbarch.h, gdbarch.c: Re-generate.
3873
3874 2002-10-08  Petr Sorfa <petrs@caldera.com>
3875
3876         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3877
3878         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3879         so we can work on more than one compilation unit at a time.  This
3880         helps prepare GDB to handle inter-CU die references.
3881         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3882         the code to be defined before struct comp_unit_head.
3883         (comp_unit_head): Added new members - offset, cu_head,
3884         begin_die, next and dwarf2_abbrevs.
3885         (dwarf2_abbrevs): Removed single static var; now member of
3886         struct comp_unit_head.
3887         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3888         members.
3889         (psymtab_to_symtab_1): Changed to work with the new
3890         struct comp_unit_head.
3891         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3892         constructs the dwarf2_abbrevs[] inside the cu_header.
3893         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3894         dwarf2_abbrev table to clean up.
3895         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3896         handling of dwarf2_abbrevs inside the cu_header.
3897         (read_partial_die): Now supports the call to the new
3898         dwarf2_lookup_abbrev.
3899         (read_full_die): Now supports the call to the new
3900         dwarf2_lookup_abbrev.
3901
3902 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3903
3904         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3905         insure that shell variables, such as "transformed_name" are propagated
3906         to later shell statements in rule.
3907
3908 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3909
3910         * config/i386/nm-i386sco.h: Add protection against
3911         multiple-inclusion.  Include "i386/nm-i386v.h".
3912         (REGISTER_U_ADDR): Remove define.
3913         (i386_register_u_addr): Remove prototype.
3914
3915 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3916
3917         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3918         before treating it as a single-step event.
3919
3920 2002-10-03  Adam Fedor  <fedor@gnu.org>
3921
3922         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3923         (objc_demangle): Remove assignment in if statements, Replace
3924         free with xfree.
3925         (add_msglist): Likewise.
3926         (end_msglist): Likewise.
3927         (complare_selectors): Likewise.
3928         (selectors_info): Likewise.
3929         (compare_classes): Likewise.
3930         (classes_info): Likewise.
3931         (print_object_command): Likewise.
3932         (find_objc_msgcall_submethod): Replace PTR with void *.
3933         * objc-lang.h: Remove check for __STDC__.
3934
3935 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3936
3937         * ui-out.h (ui_out_field_fmt_int): New prototype.
3938         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3939         of field width and alignment.
3940         * stack.c (print_frame_info_base): When printing frame level, use
3941         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3942         PR gdb/192
3943
3944 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3945
3946         * MAINTAINERS: Add self to Write After Approval list.
3947
3948 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3949
3950         * infcmd.c (interrupt_target_command_wrapper): Delete.
3951         (interrupt_target_command): Make non static.
3952         (nofp_registers_info): Make static.
3953         * stack.c (return_command_wrapper): Delete.
3954         (return_command): Make non static.
3955
3956 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3957
3958         * event-top.c (gdb_setup_readline): New function. Code moved from
3959         _initialize_event_loop().
3960         (_initialize_event_loop): Call gdb_setup_readline().
3961
3962 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3963
3964         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3965         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3966         * gdbarch.h, gdbarch.c: Re-generate.
3967
3968 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3969
3970         Fix PR gdb/778
3971         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3972         before recursing.
3973         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3974         of fill_in_vptr_fieldno.
3975
3976 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3977
3978         * inferior.h (registers_info, stepi_command, nexti_command,
3979         continue_command, interrupt_target_command): Export from infcmd.c.
3980         * frame.h (args_info, selected_frame_level_changed_hook,
3981         return_command): Export from stack.c.
3982         * v850ice.c (stepi_command, nexti_command, continue_command): use
3983         prototypes from inferior.h.
3984         * tracepoint.c (registers_info, args_info, locals_info): Use
3985         prototypes from frame.h and inferior.h.
3986         * Makefile.in (mi-main.o): Add dependency on frame.h.
3987
3988 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3989
3990         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3991         value in register 3 adjusted by ppc_gp0_regnum.
3992
3993         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3994
3995 2002-10-02  Marko Mlinar <markom@opencores.org>
3996
3997         * MAINTAINERS: Add myself to the Write After Approval list.
3998
3999 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
4000
4001         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4002         of the section for the N64 ABI, fixed.
4003
4004         * config/mips/tm-irix6.h: Include solib.h.
4005
4006 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
4007
4008         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4009         GNU operators.
4010
4011 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4012
4013         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4014         and that "mi0" syntax has been removed.
4015
4016 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4017
4018         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4019         * ppc-sysv-tdep.c: #include "gdb_string.h".
4020         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4021         pacify GCC.
4022
4023 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4024
4025         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4026         "vrsave"'s register number.
4027
4028 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4029
4030         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4031         use frame_unwind_signed_register to obtain the PC.
4032         (mips_frame_chain): Handle a generic dummy frame.
4033         (mips_init_extra_frame_info): When a generic dummy frame, don't
4034         re-compute the frame base.
4035         (mips_pop_frame): Handle generic dummy frames.
4036         (mips_gdbarch_init): When generic dummy frames, set
4037         use_generic_dummy_frames, push_dummy_frame to
4038         generic_push_dummy_frame, pc_in_call_dummy to
4039         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4040         generic_save_dummy_frame_tos.
4041
4042 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4043
4044         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4045         against TOP when TOP was explictly set.
4046         (generic_push_dummy_frame): Set TOP to zero.
4047
4048 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4049
4050         * event-loop.c (start_event_loop): Rename variable 'result' to
4051         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4052
4053 2002-09-30  Keith Seitz  <keiths@redhat.com>
4054
4055         * gdb-events.sh (selected_thread_changed): New event.
4056         * gdb-events.c: Regenerated.
4057         * gdb-events.h: Regenerated.
4058
4059 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4060
4061         * MAINTAINERS: Add self to Write After Approval list.
4062
4063 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4064
4065         * disasm.c: New file.  
4066         * disasm.h: New file.  
4067         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4068         (compare_lines): Ditto.
4069         (dump_insns): Ditto.
4070         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4071         argument.
4072         (do_assembly_only): Ditto.
4073         (do_disassembly): Renamed to gdb_disassembly and moved to
4074         disasm.c.  Sdded uiout argument.
4075         * Makefile.in: Add new files.  Reorder SFILES list. Update
4076         dependencies.  Include libgdb.a later in the insight executable.
4077
4078 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4079
4080         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4081         bfd/elf64-alpha-fbsd.c.
4082
4083 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4084
4085         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4086         i386gnu-tdep.c.
4087
4088 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4089
4090         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4091         __FUNCTION__.
4092         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4093         function name.
4094         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4095         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4096         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4097         (S_msg_sig_post_reply): Ditto.
4098         
4099 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4100
4101         * sh-tdep.c (sh_use_struct_convention): Use definition according
4102         to ABI.
4103         (sh_push_arguments): Store in register with correct endianess.
4104         (sh_default_store_return_value): Ditto.
4105         (sh_gdbarch_init): Set sizeof long double to 8.
4106
4107 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4108
4109         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4110         Fix some whitespace problems.
4111
4112 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4113
4114         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4115         (mcore-tdep.o): Ditto.
4116         (ns32k-tdep.o): Ditto.
4117         (ns32knbsd-tdep.o): Ditto.
4118         (sh3-rom.o): Ditto.
4119         (vax-tdep.o): Ditto.
4120         * cris-tdep.c: #include "gdb_string.h"
4121         * mcore-tdep.c: Ditto.
4122         * ns32k-tdep.c: Ditto.
4123         * ns32knbsd-tdep.c: Ditto.
4124         * sh3-rom.c: Ditto.
4125         * vax-tdep.c: Ditto.
4126
4127 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4128
4129         * config/djgpp/fnchange.lst: Add entries for
4130         gdb/testsuite/gdb.c++/m-static files.
4131
4132 2002-09-27  Jim Wilson  <wilson@redhat.com>
4133
4134         * MAINTAINERS: Add myself to the Write After Approval list.
4135
4136 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4137
4138         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4139
4140
4141 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4142
4143         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4144         frame.
4145
4146 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4147
4148         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4149         (rs6000_struct_return_address): Delete variable.
4150         (rs6000_store_struct_return): Update.
4151         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4152         deprecated_extract_struct_value_address.
4153         (rs6000_frame_align): New function.
4154         (rs6000_gdbarch_init): Set frame_align.
4155
4156 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4157
4158         From Grace Sainsbury <graces@redhat.com>:
4159         * Makefile.in (gdbtk-main.o): New target.
4160         (gdb.o): New target.
4161         (main_h): Define.
4162         (main.o): Update dependencies.
4163         (gdb$(EXEEXT)): Add gdb.o.
4164         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4165         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4166         (SUBDIR_GDBTK_CLEAN): Set.
4167         (install-gdbtk): Install the insight binary.
4168         (uninstall-gdbtk): New target.
4169         (all-gdbtk, clean-gdbtk): New rule.
4170         * top.c (use_windows): Default to zero.
4171         * main.c: Include "main.h".
4172         (main): Delete.
4173         (struct captured_main_args): Delete.
4174         (gdb_main): New function.
4175         * main.h: New file.
4176         * gdb.c: New File.
4177
4178 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4179
4180         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4181         (frame_map_regnum_to_name): New function.
4182         (frame_map_name_to_regnum): New function.
4183         * frame.h (frame_map_name_to_regnum): Declare.
4184         (frame_map_regnum_to_name): Declare.
4185         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4186         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4187         * parse.c: Do not include "builtin-regs.h".
4188         (target_map_name_to_register): Delete function.
4189         (write_dollar_variable): Use frame_map_name_to_regnum.
4190         * parser-defs.h (target_map_name_to_register): Delete declaration.
4191         * expprint.c: Include "frame.h".
4192         (print_subexp): Use frame_map_regnum_to_name.
4193         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4194         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4195
4196 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4197
4198         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4199         wasn't saved, and the next innermost frame is a dummy, return the
4200         dummy frame's link register.
4201
4202 2002-09-24  Jim Blandy  <jimb@redhat.com>
4203
4204         Fix from Paul Breed:
4205         * main.c (captured_main): Add a `break' after the case for 'b'.
4206
4207 2002-09-24  Keith Seitz  <keiths@redhat.com>
4208
4209         * varobj.c (c_type_of_child): Use get_target_type instead
4210         of TYPE_TARGET_TYPE.
4211
4212 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4213
4214         * source.c (get_current_or_default_source_symtab_and_line): Remove
4215         function.
4216         (set_default_source_symtab_and_line): New function. Attempts to
4217         determine a source file to list lines from if one is not currently
4218         defined.
4219         (get_current_source_symtab_and_line): Initialize sal.pc and
4220         sal.end fields.
4221         (set_current_source_symtab_and_line): Mark argument as const.
4222         * source.h: Update declarations and comments.
4223         * linespec.c (decode_line_1): Replace call to removed routine above.
4224         * stack.c (print_frame_info_base): Ditto.
4225         * cli/cli-cmds.c (edit_command): Ditto.
4226         (list_command): Ditto.
4227
4228 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4229
4230         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4231         sal.pc and sal.end fields.
4232         (get_current_or_default_source_symtab_and_line): Ditto.
4233         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4234         so we do not cause a new source symtab to be searched for (reverting an
4235         unintentional change from the 2002-09-20 patch).
4236         * scm-lang.c (scm_unpac): Ditto.
4237
4238 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4239
4240         * complaints.c (symfile_explanations): Remove new-line from
4241         ``isolated_message''.
4242         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4243         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4244
4245 2002-09-20  Nick Clifton  <nickc@redhat.com>
4246         
4247         * NEWS: Announce that V850EA ISA is no longer supported.
4248         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4249
4250 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4251
4252         * Makefile.in (c-lang.o): Correct dependencies.
4253         (utils.o): Gather dependencies.
4254         (charset.o): Move.
4255         * c-lang.c: #include "gdb_string.h"
4256
4257 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4258
4259         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4260         * cli/cli-cmds.c (list_command): New function.  Implements the new
4261         cli edit command.
4262         (_init_cli_cmds): Add new command definition.
4263         * gdb.1: Document edit command.
4264         * doc/gdb.texinfo: Document edit command.
4265
4266 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4267
4268         * source.c: Make global variables current_source_symtab and
4269         current_source_line static.
4270         (list_command): Moved to cli/cli-cmds.c.
4271         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4272         (get_first_line_listed): New accessor function.
4273         (get_lines_to_list): New accessor function.
4274         (get_current_source_symtab_and_line): New function. Retrieves the
4275         position in the source code that we consider current.
4276         (get_current_or_default_source_symtab_and_line): New function.
4277         Like the above but attempts to determine a default position if one
4278         is not currently defined.
4279         (set_current_source_symtab_and_line): New function. Sets the source
4280         code position considered current and returns the previously set one.
4281         (clear_current_source_symtab_and_line): Reset stored information about
4282         a current source line.
4283         (_initialize_source): Remove registration for the "list" command and
4284         its alias.
4285         * source.h: Add declarations for the new functions above.
4286         * symtab.h: Remove declarations for the global variables mentioned
4287         above.
4288         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4289         obtain current source line.
4290         * linespec.c (decode_line_1): Ditto.
4291         * macroscope.c (default_macro_scope): Ditto.
4292         * scm-lang.c (scm_unpac): Ditto.
4293         * stack.c (print_frame_info_base): Ditto.
4294         * symfile.c (clear_symtab_users): Ditto.
4295         * symtab.c (decode_line_spec): Ditto.
4296         * cli/cli-cmds.c (list_command): Moved here from source.c.
4297         (ambiguous_line_spec): Moved here from source.c.
4298         (_init_cli_cmds): Add definition for "list" and its alias.
4299         * Makefile.in: Update dependencies.
4300
4301 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4302
4303         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4304         with what gcc thinks is correct.
4305
4306 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4307
4308         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4309         multiple register push instruction.
4310
4311 2002-09-19  Jim Blandy  <jimb@redhat.com>
4312
4313         Add support for distinct host and target character sets.
4314         * charset.c, charset.h: New files.
4315         * c-exp.y: #include "charset.h".
4316         (yylex): Convert character and string literals to the target
4317         character set, before returning them as the semantic value of the
4318         token.
4319         * c-lang.c: #include "charset.h".
4320         (c_emit_char): Use charset-specific methods to recognize
4321         characters with backslash escape forms, to decide which characters
4322         to print literally and which to print using numeric escape
4323         sequences, and to convert target characters to host characters
4324         before printing.
4325         * utils.c: #include "charset.h".
4326         (no_control_char_error): New function.
4327         (parse_escape): Use charset-specific methods to recognize
4328         backslash escapes, parse `control character' notation, and convert
4329         characters from the host character set to the target character set.
4330         * configure.in: Set the default host character set.
4331         Check where to find iconv, and what its argument types might be.
4332         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4333         * Makefile.in (SFILES): List charset.c.
4334         (COMMON_OBS): List charset.o.   
4335         (charset.o): New rule.
4336         (charset_h): New header dependency variable.
4337         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4338         (LIBICONV): New variable, set by configure.
4339         (CLIBS): Include $(LIBICONV) here.
4340         * aclocal.m4, config.in, configure: Regenerated.
4341
4342 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4343
4344         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4345         bison 1.35 warning.
4346
4347 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4348
4349         * gdb_mbuild.sh: New file.
4350
4351 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4352
4353         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4354
4355 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4356
4357         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4358         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4359         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4360         valops.c, value.h: Revert previous change.
4361         
4362 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4363
4364         Preliminary support for Objective-C:
4365         * defs.h (language_objc): New enum value.
4366         (puts_filtered_tabular): Declaration only, exported from utils.c.
4367         (skip_quoted): Delete, declared in completer.h.
4368         * c-exp.y: Include completer.h.
4369         * p-exp.y: Ditto.
4370         * jv-exp.y: Ditto.
4371         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4372         New operator enum values.
4373         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4374         * language.c (binop_result_type): Handle language_objc case.
4375         (integral_type, character_type, string_type, boolean_type,
4376         structured_type, binop_type_check): Ditto.
4377         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4378         (struct objc_specific): Add to general_symbol_info.
4379         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4380         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4381         * parser-defs.h (struct objc_class_str): New struct type.
4382         (start_msglist, end_msglist, add_msglist): Declaration only,
4383         exported from objc-lang.c.
4384         * value.h (value_of_local, value_nsstring, 
4385         call_function_by_hand_expecting_type): Exported from valops.c.
4386         * valops.c (find_function_addr): Export.
4387         (call_function_by_hand_expecting_type): New function.
4388         (value_of_local): New function.
4389         * symfile.c (init_filename_language_table): Add ".m" extension
4390         for Objective-C.
4391         * utils.c (puts_filtered_tabular): New function.
4392         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4393         (set/show demangle): Extend help-string to refer to ObjC.
4394         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4395         * stabsread.c (symbol_reference_defined): Objective-C symbols
4396         may contain colons: make allowances when scanning stabs strings
4397         for colons.
4398         (objc_find_colon): New function.
4399         * printcmd.c (address_info): If language == objc then print
4400         "self" instead of "this".
4401         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4402         OP_NSSTRING, and OP_SELF.
4403         (prefixify_subexp): Ditto.
4404         * source.c (print_source_lines): Mention objc in comment.
4405         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4406         method names.
4407
4408 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4409
4410         * complaints.h: Update copyright.
4411         (struct complaints): Declare.
4412         (struct complaint): Make `message' constant.
4413         (internal_complaint): Declare.
4414         (complaint): Declare.
4415         (complaint_root): Delete declaration.
4416         (symfile_complaints): Delete declaration.
4417         (struct complaints): Add opaque declaration.
4418         (clear_complaints): Add a complaints parameter.
4419         * complaints.c: Update copyright.
4420         (enum complaint_series): Define.
4421         (complaint_root): Delete.
4422         (struct complaints): Define.
4423         (complaint_sentinel, symfile_complaint_book): New variables.
4424         (symfile_explanations, symfile_complaints): New variables.
4425         New variables.
4426         (get_complaints): New function.
4427         (vcomplaint): New function.
4428         (complaint): New function.
4429         (internal_complaint): New function.
4430         (complain): Call vcomplain with symfile_complaint.
4431         (clear_complaints): Rewrite.
4432         (_initialize_complaints): Use add_setshow_command.
4433         * Makefile.in (complaints.o): Update dependencies.
4434         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4435         to call to clear_complaints.
4436         (new_symfile_objfile, reread_symbols): Ditto.
4437         (oldsyms_complaint): Delete.
4438         (empty_symtab_complaint, unknown_option_complaint): Delete.
4439         (free_named_symtabs): Use complaint instead of complain.
4440
4441 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4442
4443         Contributed by Apple Computer, Inc.  Merged with current sources
4444         by Adam Fedor <fedor@doc.com> [cagney].
4445         
4446         * objc-lang.c: First clean-up round: comments, indentation.
4447         * objc-lang.h: Ditto.
4448         * objc-lang.y: Ditto.
4449
4450 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4451
4452         * maint.c (maintenance_internal_error): Print the parameter as the
4453         error message.
4454         (maintenance_internal_warning): New function.
4455         (_initialize_maint_cmds): Add command `maint internal-warning'.
4456
4457         * defs.h (internal_warning, internal_vwarning): Declare.
4458         * utils.c (struct internal_problem): Define.
4459         (internal_vproblem): New function.
4460         (internal_warning): New function.
4461         (internal_vwarning): New function.
4462         (internal_warning_problem, internal_error_problem): New variables.
4463         (internal_verror): Just call internal_vproblem.
4464
4465 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4466
4467         * objc-lang.c: New file, support for Objective-C.
4468         Preliminary check-in, not yet integrated into gdb.
4469         * objc-lang.h: New file.
4470         * objc-exp.y:  New file.
4471
4472 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4473
4474         * infrun.c (signal_stop_update): Convert definition to ISO C.
4475         (signal_print_update): Ditto.
4476         (signal_pass_update): Ditto.
4477         * inflow.c (terminal_save_ours): Ditto.
4478
4479         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4480         comments.
4481         
4482         * config/djgpp/fnchange.lst: Handle name clashes between
4483         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4484         bfd/coff-tic80.c.
4485
4486         * i386-linux-tdep.h: Fix tipo.
4487
4488 2002-09-18  Adam Fedor  <fedor@gnu.org>
4489
4490         * MAINTAINERS: Add myself to the Write After Approval list.
4491
4492 2002-09-18  Jim Blandy  <jimb@redhat.com>
4493
4494         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4495         texthigh and textlow to reader-specific structs caused
4496         objfile_relocate to miss them.  This is fixable, but the work that
4497         the change was supposed to prepare GDB for never got done anyway.
4498
4499 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4500
4501         * MAINTAINERS: Alphabetize Write After Approval list.
4502
4503 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4504
4505         Fix PR gdb/709
4506         * values.c (value_static_field): Call read_var_value.
4507
4508 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4509
4510         * valops.c (hand_function_call): Align the initial stack pointer
4511         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4512         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4513         return value.
4514         * mips-tdep.c (mips_frame_align): New function.
4515         (mips_gdbarch_init): Set frame_align.
4516         * gdbarch.sh (FRAME_ALIGN): New method.
4517         * gdbarch.h, gdbarch.c: Re-generate.
4518
4519 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4520
4521         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4522         registers.
4523
4524 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4525
4526         * NEWS: Mention that MIPS $fp behavior changed.
4527         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4528         reference to FP_REGNUM.
4529         (mipsnbsd_cannot_store_register): Ditto.
4530         * mips-linux-nat.c: Update copyright.
4531         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4532         (mips_linux_cannot_store_register): Ditto.
4533         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4534         * config/mips/tm-mips.h: Update copyright.
4535         (FP_REGNUM): Delete macro.
4536         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4537         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4538         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4539         (mips_r3041_reg_names, mips_r3051_reg_names)
4540         (mips_r3081_reg_names): Replace "fp" with "".
4541         Fix PR gdb/480.
4542
4543 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4544
4545         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4546         generic_read_register_dummy() (PR gdb/703).
4547         (avr_push_return_address): #if 0 out unused vars.
4548         (avr_gdbarch_init): Enable use of avr_push_return_address().
4549
4550 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4551
4552         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4553         RTE will take care of it.
4554
4555 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4556
4557         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4558         invalid, return SP_REGNUM.
4559
4560 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4561
4562         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4563         point registers without sign extension.
4564
4565 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4566
4567         * blockframe.c (deprecated_read_register_dummy): Rename
4568         generic_read_register_dummy.
4569         * frame.c (frame_unwind_signed_register): New function.
4570         (frame_unwind_unsigned_register): New function.
4571         * frame.h (frame_unwind_signed_register): Declare.
4572         (frame_unwind_unsigned_register): Declare.
4573         (deprecated_read_register_dummy): Rename
4574         generic_read_register_dummy.
4575
4576         * h8300-tdep.c (h8300_frame_chain): Update.
4577         (h8300_frame_saved_pc): Update.
4578         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4579         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4580         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4581         (s390_frame_chain): Update.
4582         * v850-tdep.c (v850_find_callers_reg): Update.
4583         (v850_frame_saved_pc): Update.
4584         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4585         (m32r_find_callers_reg): Update.
4586         (m32r_frame_saved_pc): Update.
4587         * sh-tdep.c (sh_find_callers_reg): Update.
4588         (sh64_get_saved_pr): Update.
4589         (sh_init_extra_frame_info): Update.
4590         (sh_init_extra_frame_info): Update.
4591         (sh64_init_extra_frame_info): Update.
4592         (sh64_init_extra_frame_info): Update.
4593         * mcore-tdep.c (mcore_find_callers_reg): Update.
4594         (mcore_frame_saved_pc): Update.
4595         (mcore_init_extra_frame_info): Update.
4596         * i386-tdep.c (i386_frame_saved_pc): Update.
4597         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4598         (ia64_init_extra_frame_info): Update.
4599         (ia64_init_extra_frame_info): Update.
4600         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4601         * cris-tdep.c (cris_init_extra_frame_info): Update.
4602         * avr-tdep.c (avr_frame_chain): Update.
4603         (avr_init_extra_frame_info): Update.
4604         (avr_frame_saved_pc): Update.
4605         * arm-tdep.c (arm_find_callers_reg): Update.
4606         (arm_init_extra_frame_info): Update.
4607         (arm_frame_saved_pc): Update.
4608
4609 2002-09-17  Tom Tromey  <tromey@redhat.com>
4610
4611         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4612         is "'".
4613
4614 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4615
4616         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4617         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4618         NEXT_PROLOGUE_INSN.
4619         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4620         NEXT_PROLOGUE_INSN.
4621
4622 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4623
4624         * osfsolib.c: Remove file, replaced by solib-osf.c.
4625         * Makefile.in: Remove compilation rules for osfsolib.c.
4626
4627 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4628
4629         * cp-valprint.c (cp_print_class_method): Correct args to
4630         check_stub_method_group.
4631
4632 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4633
4634         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4635         `set architecture'.  Unify naming convention of functions.
4636         (h8300_skip_prologue): Improve prologue analysis.
4637         (h8300_push_arguments): Rewritten to more closely match GCC's
4638         bizarre argument-passing behavior, along with the comment describing
4639         said behavior.
4640         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4641         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4642         sim, remote-e7000.c, remote-hms.c and remote.c
4643
4644 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4645
4646         * i386-tdep.c (gdb_print_insn_i386): Removed.
4647         (i386_print_insn): New function.
4648         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4649         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4650         tm_print_insn_info.
4651
4652 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4653
4654         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4655         zero.
4656
4657 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4658
4659         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4660         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4661         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4662
4663 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4664
4665         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4666
4667 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4668
4669         * gdbtypes.c (check_stub_method): Make static.
4670         (check_stub_method_group): New function.
4671         * gdbtypes.h: Update prototypes.
4672         * cp-support.c: New file.
4673         * cp-support.h: New file.
4674
4675         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4676         (update_method_name_from_physname): New function.
4677         (read_member_functions): Correct method names for operators
4678         and v3 constructors/destructors.  Separate v2 constructors and
4679         destructors.
4680         * Makefile.in (stabsread.o): Update dependencies.
4681         (SFILES): Add cp-support.c.
4682         (COMMON_OBS): Add cp-support.o.
4683         (cp_support_h, cp-support.o): Add.
4684
4685         * cp-valprint.c (cp_print_class_method): Call
4686         check_stub_method_group instead of check_stub_method.  Remove
4687         extraneous QUITs.
4688         * p-valprint.c (pascal_object_print_class_method): Likewise.
4689         * valops.c (search_struct_method): Likewise.
4690         (find_method_list, value_struct_elt_for_reference): Likewise.
4691
4692 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4693
4694         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4695         * gdbarch.h, gdbarch.c: Regenerate.
4696
4697 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4698
4699         * frame.c (find_saved_register): Delete function.
4700         * frame.h (find_saved_register): Delete declaration.
4701         Fix PR gdb/631.
4702
4703 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4704
4705         * mips-tdep.c (read_next_frame_reg): Re-hack using
4706         frame_register_unwind.
4707
4708 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4709
4710         * mips-tdep.c (mips_get_saved_register): Re-hack using
4711         frame_register_unwind.
4712
4713 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4714
4715         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4716         vector. Will be useful for Interix.  
4717         * gdbarch.h, gdbarch.c: Regenerate.
4718
4719         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4720         name of the malloc function by NAME_OF_MALLOC.
4721
4722 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4723
4724         * value.h (find_function_in_inferior): Add const keyword to
4725         one of the parameters. Allows us to invoke this function with
4726         a const char *.
4727         * valops.c (find_function_in_inferior): Likewise.
4728
4729 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4730
4731         * exec.c (xfer_memory): Fix compilation warning with old versions
4732         of GCC.
4733         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4734
4735 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4736
4737         * symtab.h: Run through gdb_indent.h.
4738         Add 2002 to Copyright year list.
4739
4740 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4741
4742         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4743         mach constants.
4744         * MAINTAINERS: Add myself to write after approval list.
4745
4746 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4747
4748         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4749
4750 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4751
4752         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4753         Interix.
4754
4755 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4756
4757         * procfs.c (do_detach): Clear current signal, not just fault.
4758         Corrects problem with breakpoint trap signal leaking to detached
4759         process on Tru64.
4760
4761 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4762
4763         * buildsym.c (finish_block): Protect against null pointer.
4764
4765 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4766
4767         * infcmd.c (default_print_registers_info): Send all output to
4768         ``file'' instead of ``gdb_stdout''.
4769
4770 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4771
4772         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4773         LONGEST, and use signed register read (addresses are sign-
4774         extended for mips).
4775
4776 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4777
4778         * event-loop.c (gdb_do_one_event): Make public.
4779         * event-loop.h (gdb_do_one_event): Declare.
4780
4781 2002-09-10  Jeff Law  <law@redhat.com>
4782
4783         * infttrace.c (child_resume): Simplify and rework to avoid
4784         TT_PROC_CONTINUE.
4785
4786 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4787
4788         * printcmd.c (print_scalar_formatted): "len" is the number of
4789         target bytes, NOT the number of target bits.
4790
4791 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4792
4793         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4794         * top.c (init_main): Set rl_terminal_name.
4795
4796 2002-09-08  Aidan Skinner <aidan@velvet.net>
4797
4798         * ada-lang.c (ada_array_bound, ada_type_match,
4799         _initialize_ada_language): Fix K&R definitions.
4800         * ada-tasks.c (get_current_task): Fix K&R definitions.
4801         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4802                         
4803 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4804
4805         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4806         Add XP.
4807
4808 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4809
4810         * i386-tdep.c (i386_register_virtual_type,
4811         i386_register_convertible, i386_register_convert_to_virtual,
4812         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4813         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4814         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4815         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4816         Don't set push_arguments twice.
4817
4818         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4819         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4820         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4821         sigtramp_end to NULL.
4822         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4823         defines.
4824         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4825
4826         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4827         whitespace.
4828
4829         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4830         * gdbarch.h, gdbarch.c: Re-generate.
4831         * blockframe.c (find_pc_sect_partial_function): Convert to use
4832         SIGTRAMP_START_P predicate.
4833
4834 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4835
4836         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4837         generic_dummy_frame method and old method.  Also distinguish
4838         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4839         (arm_extract_return_value): Use new regcache method.
4840
4841         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4842         adjustment that doesn't conform to the ABI.
4843         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4844         saved regcache, not from current regcache.
4845
4846 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4847
4848         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4849         * README: Update.
4850
4851 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4852
4853         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4854         if arm_apcs_32 is false.
4855
4856 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4857
4858         GDB 5.3 branch created.
4859
4860 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4861
4862         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4863         generic_unwind_get_saved_register.
4864
4865 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4866
4867         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4868         argument (PR gdb/653).  Update call to smash_to_method_type.
4869         (read_structure_scope): Update call to dwarf2_add_member_fn.
4870
4871 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4872
4873         * x86-64-linux-tdep.c: Include gdb_string.h
4874         * x86-64-linux-nat.c: Ditto.
4875
4876 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4877
4878         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4879         when YYDEBUG is set to 1.  
4880         * c-exp.y: Likewise.
4881         * f-exp.y: Likewise.
4882         * jv-exp.y: Likewise.
4883         * m2-exp.y: Likewise.
4884         * p-exp.y: Likewise.
4885
4886 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4887
4888         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4889         dependency list.
4890         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4891         solib_svr4_fetch_link_map_offsets to
4892         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4893         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4894         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4895         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4896         solib-svr4.o, and solib-legacy.o.
4897         * config/i386/tm-nbsd.h: Include solib.h.
4898
4899 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4900
4901         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4902         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4903         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4904         comment noting that this needs its own target configuration.
4905         * config/i386/nbsd.mt: New file.
4906         * config/i386/nbsdaout.mt: Remove.
4907         * config/i386/nbsdelf.mt: Ditto.
4908         * config/i386/tm-nbsdaout.h: Ditto. 
4909
4910 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4911
4912         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4913         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4914         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4915         tdep->sigtramp_end.
4916         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4917         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4918         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4919
4920 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4921
4922         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4923         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4924         * i386-tdep.h (i386bsd_init_abi): New prototype.
4925         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4926         function declaration.
4927         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4928         for NetBSD-a.out or NetBSD-ELF.
4929         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4930         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4931         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4932         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4933         and nbsd-tdep.h.
4934         (i386nbsd_pc_in_sigtramp): New function.
4935         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4936         i386nbsd_pc_in_sigtramp.
4937         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4938         and i386nbsdelf_init_abi OS ABI handlers.
4939         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4940         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4941
4942 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4943
4944         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4945         registers if the target really has them.
4946
4947 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4948
4949         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4950         than nbsd-tdep.h.
4951
4952 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4953
4954         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4955         list.
4956         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4957         (alphanbsd_skip_sigtramp_frame): New functions. 
4958         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4959         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4960         to alphanbsd_sigcontext_addr. 
4961
4962 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4963
4964         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4965         list.
4966         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4967         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4968         nbsd_pc_in_sigtramp. 
4969         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4970         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4971         * nbsd-tdep.c: Include gdb_string.h.
4972         (nbsd_pc_in_sigtramp): New function. 
4973         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4974         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4975         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4976         ppcnbsd_pc_in_sigtramp. 
4977         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4978         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4979         shnbsd_pc_in_sigtramp. 
4980         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4981         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4982         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4983
4984 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4985
4986         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4987         watchpoints to NULL.
4988         (insert_breakpoints): set val field of watchpoints if NULL.
4989
4990
4991 2002-08-29  Jim Blandy  <jimb@redhat.com>
4992
4993         * symtab.c (lookup_symbol_aux): In the cases where we find a
4994         minimal symbol of an appropriate name and use its address to
4995         select a symtab to read and search, use `name' (as passed to us)
4996         as the demangled name when searching the symtab's global and
4997         static blocks, not the minsym's name.
4998
4999 2002-08-29  Keith Seitz  <keiths@redhat.com>
5000
5001         * stack.c (print_frame_info_base): Always set current_source_symtab
5002         and current_source_line.
5003
5004 2002-08-29  Donn Terry  <donnte@microsoft.com>
5005
5006         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5007
5008 2002-08-28  Keith Seitz  <keiths@redhat.com>
5009
5010         * stack.c (select_frame): Add FIXME concerning selected-frame
5011         events.
5012         (select_frame_command): Send selected-frame-level-changed
5013         event notification, but only if the level actually changed.
5014         (up_silently_base): Add selected-frame-level-changed event
5015         notification.
5016         (down_silently_base): Likewise.
5017
5018 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5019
5020         * Makefile.in: Update dependencies for all gdb/*.c files.
5021
5022 2002-08-27  Tom Tromey  <tromey@redhat.com>
5023
5024         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5025         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5026         Update dependencies.
5027         * i387-tdep.c: Include gdb_string.h.
5028         * osabi.c: Likewise.
5029         * i386-linux-nat.c: Likewise.
5030         * lin-lwp.c: Likewise.
5031         * ax-gdb.c: Likewise.
5032         * signals/signals.c: Likewise.
5033         * jv-valprint.c: Likewise.
5034         * p-lang.c: Likewise.
5035         * c-valprint.c: Likewise.
5036         * cp-abi.c: Likewise.
5037
5038 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5039
5040         * cli/cli-script.h (copy_command_lines): Export.
5041         * breakpoint.c: Include cli/cli-script.h.
5042         * Makefile.in (breakpoint.o): Update dependencies.
5043
5044 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5045
5046         * breakpoint.c (insert_breakpoints): Protect all references
5047         to 'process_warning'.  Shorten long lines.
5048
5049 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5050
5051         * cli/cli-script.c (copy_command_lines): New function.
5052         * defs.h (copy_command_lines): Export.
5053         * testsuite/gdb.base/commands.exp: New tests for commands
5054         attached to a temporary breakpoint, and for commands that
5055         delete the breakpoint they are attached to.
5056         
5057 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5058
5059         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5060         pointer to the breakpoint commands struct, make a new copy
5061         of the struct and point to that.
5062         (bpstat_clear): Free the commands struct.
5063         (bpstat_clear_actions): Free the commands struct.
5064         (bpstat_do_actions): Free the command actions.  Also execute
5065         the local cleanups, instead of deleting them.
5066         (delete_breakpoint): Leave the commands field of the bpstat
5067         chain alone -- it will be freed later.
5068
5069 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5070
5071         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5072         deleted in 2002-08-20 commit.  This function is still used by
5073         ppc-linux-nat.c.
5074
5075 2002-08-26  Keith Seitz  <keiths@redhat.com>
5076
5077         * gdb-events.sh: Add selected-frame-level-changed event.
5078         * gdb-events.c: Regenerated.
5079         * gdb-events.h: Regenerated.
5080         
5081 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5082
5083         Fix PR gdb/393:
5084         * inflow.c (terminal_save_ours): New function to save terminal
5085         settings.
5086         * inferior.h (terminal_save_ours): Declare.
5087         * target.c (debug_to_terminal_save_ours): New function.
5088         (cleanup_target): Defaults to_terminal_save_ours.
5089         (update_current_target): Inherit to_terminal_save_ours.
5090         (setup_target_debug): Set to_terminal_save_ours.
5091         * target.h (target_terminal_save_ours): New to save terminal settings.
5092         (target_ops): New member to_terminal_save_ours.
5093         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5094         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5095         * inftarg.c (init_child_ops): Likewise.
5096         * m3-nat.c (init_m3_ops): Likewise.
5097         * procfs.c (init_procfs_ops): Likewise.
5098         * wince.c (init_child_ops): Likewise.
5099         * win32-nat.c (init_child_ops): Likewise.
5100         * sol-thread.c (init_sol_thread_ops): Likewise.
5101
5102 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5103
5104         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5105         use regcache_* functions.
5106         (i386_gdbarch_init): Set store_return_value instead of
5107         deprecated_store_return_value.
5108
5109         * regcache.c (regcache_raw_write_signed,
5110         regcache_raw_write_unsigned): New functions.
5111         * regcache.h (regcache_raw_write_signed,
5112         regcache_raw_write_unsigned): New prototypes.
5113
5114 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5115
5116         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5117         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5118         source file dependencies.  Cleanup corresponding generator rules.
5119
5120 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5121
5122         * regcache.h (register_offset_hack): Declare.
5123         (regcache_cooked_read_using_offset_hack): Declare.
5124         (regcache_cooked_write_using_offset_hack): Declare.
5125
5126         * regcache.c (register_offset_hack): New function.
5127         (regcache_cooked_read_using_offset_hack): New function.
5128         (regcache_cooked_write_using_offset_hack): New function.
5129         (regcache_dump): Check that the registers, according to their
5130         offset, are packed hard against each other.
5131         (cooked_xfer_using_offset_hack): New function.
5132
5133 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5134
5135         * regcache.c (struct regcache_descr): Add field register_type.
5136         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5137         in as a parameter
5138         (init_regcache_descr): Initialize register_type.  Pass the descr
5139         to init_legacy_regcache_descr.  Use register_type instead of
5140         REGISTER_VIRTUAL_TYPE.
5141         (register_type): New function.
5142         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5143         * regcache.h (register_type): Declare.
5144
5145 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5146
5147         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5148         instead of deprecated_store_return_value.  Fix fallout from
5149         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5150
5151 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5152
5153         * regcache.c (max_register_size): New function.
5154         (init_legacy_regcache_descr): Ensure that max_register_size is
5155         large enough for REGISTER_VIRTUAL_SIZE.
5156         * regcache.h (max_register_size): Declare.
5157
5158 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5159
5160         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5161         store_return_value.
5162         (e500_extract_return_value): Change type of valbuf pointer to
5163         void.
5164
5165 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5166
5167         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5168         workaround.
5169
5170         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5171         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5172         long long) to prevent compiler warning on 64-bit systems.
5173
5174 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5175
5176         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5177         (DEPRECATED_STORE_RETURN_VALUE): New method.
5178         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5179         * gdbarch.h, gdbarch.c: Re-generate.
5180
5181         * values.c (set_return_value): Pass current_regcache to
5182         STORE_RETURN_VALUE.
5183         * arch-utils.h (legacy_store_return_value): Declare.
5184         * arch-utils.c (legacy_store_return_value): New function.
5185         (legacy_extract_return_value): Update parameters.
5186
5187         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5188         STORE_RETURN_VALUE.
5189         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5190         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5191         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5192         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5193         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5194         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5195         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5196         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5197         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5198         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5199
5200         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5201         * i386-tdep.c (i386_extract_return_value): Update.
5202         * arch-utils.c (legacy_extract_return_value): Update.
5203         * frv-tdep.c (frv_gdbarch_init): Update.
5204         * cris-tdep.c (cris_gdbarch_init): Update.
5205         * d10v-tdep.c (d10v_gdbarch_init): Update.
5206         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5207         * m68k-tdep.c (m68k_gdbarch_init): Update.
5208         * mcore-tdep.c (mcore_gdbarch_init): Update.
5209         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5210         * s390-tdep.c (s390_gdbarch_init): Update.
5211         * sparc-tdep.c (sparc_gdbarch_init): Update.
5212         * sh-tdep.c (sh_gdbarch_init): Update.
5213         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5214         * v850-tdep.c (v850_gdbarch_init): Update.
5215         * avr-tdep.c (avr_gdbarch_init): Update.
5216         * ia64-tdep.c (ia64_gdbarch_init): Update.
5217         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5218         * vax-tdep.c (vax_gdbarch_init): Update.
5219         * alpha-tdep.c (alpha_gdbarch_init): Update.
5220         * arm-tdep.c (arm_gdbarch_init): Update.
5221         * mips-tdep.c (mips_gdbarch_init): Update.
5222         * i386-tdep.c (i386_gdbarch_init): Update.
5223
5224 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5225
5226         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5227         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5228
5229 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5230
5231         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5232         problems.
5233
5234 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5235
5236         * infrun.c (handle_inferior_event): Move a comment outside of a
5237         function call, in order to avoid indent reformatting this part
5238         of the code in an unreadable way.
5239
5240 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5241
5242         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5243         when breakpoints fail. Move general breakpoint error messages to
5244         insert_breakpoints.  
5245         * breakpoint.c (insert_breakpoints): Change warnings when
5246         breakpoints are nto inserted to specify the type. Remove call to
5247         memory_error when hardware breakpoints can't be inserted. Remove
5248         multiple calls to warning so all messages are sent to the user at
5249         once.
5250         (delete_breakpoints): Make insert error messsages more explicit.
5251
5252 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5253
5254         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5255         gdbserver/ChangeLog.
5256
5257 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5258
5259         * i386-tdep.c: Include "objfiles.h".
5260         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5261         skip_trampoline_code.
5262         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5263         (CPLUS_MARKER): Define to '.'.
5264
5265         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5266         member.
5267         (linux_corefile_thread_callback): Increase args->num_notes.
5268         (linux_make_note_section): Initialize thread_args.num_notes, and
5269         use it to determine whether notes for any threads were created.
5270
5271 2002-08-23  Donn Terry  <donnte@microsoft.com>
5272
5273         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5274         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5275         and PCUNKILL.
5276         (write_with_trace): Conditionalize out the switch branch handling
5277         PCSHOLD if the corresponding macro is not defined. Likewise for
5278         PRSABORT and PRSTOP.
5279         This change will be needed by the Interix port.
5280
5281 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5282
5283         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5284         write_register wherever possible instead of manipulating the
5285         register bytes directly.
5286         Assign VALUE_CONTENTS to a variable and use that.
5287         The GPR numbers are now dependent on the architecture.
5288         
5289 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5290
5291         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5292         ev_offset fields.
5293         (skip_prologue): Add support for BookE/e500 instructions.
5294         (e500_extract_return_value): New function.
5295         (frame_get_saved_regs): Add support for saving ev registers and
5296         pseudo gpr's.
5297         (e500_store_return_value): New function.
5298         (rs6000_gdbarch_init): Move up default intializations of
5299         deprecated_extract_return_value and store_return_value.  Overwrite
5300         init of store_return_value with e500 specific version.
5301         Set extract_return_value for e500.
5302         
5303 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5304
5305         * blockframe.c (generic_call_dummy_register_unwind): Use
5306         regcache_cooked_read to catch cases in which the variable is
5307         stored in a pseudo register.
5308
5309 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5310
5311         * NEWS: Mention that the i960 has been made obsolete.
5312         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5313         i960-tdep.c
5314         (remote-nrom.o): Obsolete target.
5315         (remote-nindy.o, i960-tdep.o): Ditto.
5316         * remote-nrom.c: Make file obsolete.
5317         * remote-nindy.c, remote-vx960.c: Ditto.
5318         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5319         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5320         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5321         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5322         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5323         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5324         i960-*-vxworks* obsolete.
5325         * MAINTAINERS: Note that the i960 is obsolete.
5326
5327 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5328
5329         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5330         detach to allow reinitialization.
5331
5332 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5333
5334         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5335         attempt).
5336
5337 2002-08-22  Jim Blandy  <jimb@redhat.com>
5338
5339         * coffread.c (coff_symfile_read): Don't try to read the line
5340         number table from disk if the image file doesn't have a symbol
5341         table; we'll never actually look at the info anyway, and Windows
5342         ships DLL's with bogus file offsets for the line number data.
5343
5344 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5345
5346         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5347         an e500 executable.
5348
5349 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5350
5351         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5352         (MSYMBOL_SIZE): Replace macro with function.
5353         (DEFAULT_MIPS_TYPE): Delete unused macro.
5354         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5355         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5356
5357 2002-08-21  Jim Blandy  <jimb@redhat.com>
5358
5359         * valops.c (value_cast): Simplify and correct logic for doing a
5360         static cast from a pointer to a base class to a pointer to a
5361         derived class.
5362
5363 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5364
5365         * infcmd.c (default_print_registers_info): Replace
5366         do_registers_info.
5367         (registers_info): Use gdbarch_print_registers_info instead of
5368         DO_REGISTERS_INFO.
5369         * inferior.h (default_print_registers_info): Replace
5370         do_registers_info.
5371         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5372         (DO_REGISTERS_INFO): Change to a predicate function.
5373         * gdbarch.h, gdbarch.c: Regenerate.
5374         
5375 2002-08-21  Keith Seitz  <keiths@redhat.com>
5376
5377         * gdb-events.sh: Add target-changed event.
5378         * gdb-events.c: Regenerated.
5379         * gdb-events.c: Regenerated.
5380         * valops.c (value_assign): Add target-changed event notification
5381         to inlval_register, lval_memory, and lval_reg_frame_relative.
5382
5383 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5384
5385         * NEWS: Add an entry regarding the improvement of the next/step
5386         operation on Alpha Tru64 multi-processor machines.
5387
5388 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5389
5390         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5391         directores.
5392         * Makefile.in: Update all _h macro definitions.
5393         * Makefile.in (install-gdbtk): Move to install section.
5394         (rdi-share/libangsd.a): Move to end of file.
5395
5396 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5397
5398         * frame.c (frame_register_unwind): When a register, set addrp to
5399         the register's byte.
5400
5401 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5402
5403         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5404         used locally, so move them from the target machine header to here.
5405         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5406         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5407         Make static.
5408         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5409
5410 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5411
5412         * NEWS: Mention that the Apollo line was made obsolete.
5413         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5414         m68*-hp-hpux* obsolete.
5415         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5416         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5417         * buildsym.c (make_blockvector): Make static.
5418         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5419         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5420         (ALLDEPFILES): Remove dstread.c.
5421         (dstread.o): Obsolete make rule.
5422         * dstread.c: Makefile obsolete.
5423         * dst.h: Ditto.
5424         * config/m68k/hp300hpux.mt: Ditto.
5425         * config/m68k/hp300hpux.mh: Ditto.
5426         * config/m68k/hp300bsd.mt: Ditto.
5427         * config/m68k/hp300bsd.mh: Ditto.
5428         * config/m68k/apollo68b.mt: Ditto.
5429         * config/m68k/apollo68v.mh: Ditto.
5430         * config/m68k/apollo68b.mh: Ditto.
5431
5432 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5433
5434         * mips-tdep.c (mips_in_return_stub): Make static.
5435         (mips_gdbarch_init): Set in_solib_return_trampoline.
5436         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5437
5438 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5439
5440         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5441         * gdbarch.c, gdbarch.h: Regenerate.
5442         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5443         Add.
5444         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5445
5446 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5447
5448         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5449         (mips_gdbarch_init): Set skip_trampoline_code, 
5450         in_solib_call_trampoline.
5451         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5452         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5453
5454 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5455
5456         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5457
5458         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5459         vector type for ev registers.
5460         (e500_pseudo_register_read): New function.
5461         (e500_pseudo_register_write): New function.
5462         (e500_dwarf2_reg_to_regnum): New function.
5463         (PPC_UISA_NOFP_SPRS): New macro.
5464         (PPC_EV_REGS): New macro.
5465         (PPC_GPRS_PSEUDO_REGS): New macro.
5466         (registers_e500): New register set for e500.
5467         (variants): Add e500 variant.
5468         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5469         before setting architectural dependent variations.  Initialize ev
5470         registers numbers.  Add case for e500 architecture.  Set the
5471         number of pseudo registers.
5472
5473 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5474
5475         * rs6000-tdep.c: Clean up comments.
5476
5477 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5478
5479         * h8300-tdep.c: Re-indent file.
5480
5481 2002-08-20  Jim Blandy  <jimb@redhat.com>
5482
5483         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5484         default for this.
5485
5486 2002-08-20  Keith Seitz  <keiths@redhat.com>
5487
5488         * breakpoints.c (watch_command_1): Use internal breakpoint
5489         when setting a watchpoint_scope breakpoint.
5490
5491 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5492
5493         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5494         (build_builtin_type_vec64i): Ditto.
5495         (build_builtin_type_vec128): Ditto.
5496         (build_builtin_type_vec128i): Ditto.
5497
5498 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5499
5500         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5501         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5502         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5503         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5504         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5505         CALL_DUMMY_ADDRESS): Delete.
5506         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5507         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5508         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5509         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5510         push_return_address.
5511         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5512         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5513         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5514         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5515         mips_n32n64_push_arguments, mips_push_return_address,
5516         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5517         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5518
5519 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5520
5521         * mips-tdep.c (mips_frame_num_args): New function.
5522         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5523         frame_saved_pc, frame_args_address, frame_locals_address, 
5524         frame_num_args, and frame_args_skip.
5525         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5526         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5527         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5528         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5529
5530 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5531
5532         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5533         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5534         * mips-tdep.c (mips_store_struct_return): New function.
5535         (mips_extract_struct_value_address): New function.
5536         (mips_gdbarch_init): Set store_struct_return and
5537         extract_struct_value_address.
5538
5539 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5540
5541         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5542         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5543         (read_file_scope): Check that line_header is nonzero before
5544         decoding macro information.
5545
5546 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5547
5548         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5549         flag the general-purpose registers as floating-point on targets
5550         that don't support the floating-point registers.
5551
5552 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5553
5554         * rs6000-tdep.c (altivec_register_p): Delete.
5555         (rs6000_do_altivec_registers): Delete.
5556         (rs6000_altivec_registers_info): Delete.
5557         (rs6000_do_registers_info): Delete.
5558         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5559         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5560
5561 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5562
5563         * infcmd.c (do_registers_info): Print vector registers in hex
5564         format only.
5565         (print_vector_info): Check that printing registers
5566         makes sense.
5567         (print_float_info): Ditto.
5568
5569 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5570
5571         * mips-tdep.c (mips_gdbarch_init): Update.
5572         (mips_o32_extract_return_value): Rewrite.
5573         (mips_o32_store_return_value): Rewrite.
5574         (mips_o32_xfer_return_value): New function.
5575         (mips_xfer_register): Tweak debug print message.  Allow for
5576         buf_offset when dumping the value transfered.
5577
5578 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5579
5580         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5581         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5582         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5583         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5584         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5585
5586 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5587
5588         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5589
5590 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5591
5592         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5593         register.
5594         (P): New macro to define a register as a pseudo register.
5595         (R, R4, R8, R16, FR32, R64, R0): Updated.
5596         (struct variant): Add new fields for number of pseudo registers
5597         and number of total registers.
5598         (tot_num_registers): New macro replacing....
5599         (num_registers): ...deleted macro.
5600         (num_registers): New function.
5601         (num_pseudo_registers): New function.
5602         (variants): Update all variants to intialize new fields correctly.
5603         Postpone initialization of number of pseudo regs and real regs.
5604         (init_variants): New function.
5605         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5606         registers offsets.
5607
5608 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5609
5610         * valops.c (search_struct_field): Change error message to treat
5611         return value of 0 from value_static_field as meaning that field is
5612         optimized out.
5613         (value_struct_elt_for_reference): Ditto.
5614         * values.c (value_static_field): Treat an unresolved location the
5615         same as a nonexistent symbol.  Fix PR gdb/635.
5616         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5617         enclosed.  Fix PR gdb/574.
5618         * MAINTAINERS: Add self to Write After Approval list.
5619
5620 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5621
5622         * mips-tdep.c (mips_xfer_register): New function.
5623         (mips_n32n64_extract_return_value): Rewrite.
5624         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5625         instead of deprecated_extract_return_value.
5626
5627 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5628
5629         * rs6000-tdep.c (TDEP): Delete macro.
5630         (branch_dest): Replace use of TDEP macro with its body.
5631         (rs6000_pop_frame): Ditto.
5632         (rs6000_push_arguments): Ditto.
5633         (rs6000_skip_trampoline_code): Ditto.
5634         (rs6000_frame_saved_pc): Ditto.
5635         (rs6000_frame_chain): Ditto.
5636         (rs6000_register_name): Ditto.
5637         (rs6000_register_byte): Ditto.
5638         (rs6000_register_raw_size): Ditto.
5639         (rs6000_register_virtual_type): Ditto.
5640         (rs6000_register_convertible): Ditto.
5641         (rs6000_convert_from_func_ptr_addr): Ditto.
5642
5643 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5644
5645         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5646         conditionally.
5647         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5648         MIPS_LINUX_JB_ELEMENT_SIZE.
5649         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5650         for MAX_REGISTER_RAW_SIZE arrays.
5651         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5652         MIPS_LINUX_JB_ELEMENT_SIZE.
5653
5654 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5655
5656         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5657
5658 2002-08-19  Aidan Skinner <aidan@velvet.net>
5659
5660         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5661         ada-valprint.c ada-tasks.c.
5662         (YYFILES): Add ada-exp.y.
5663         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5664         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5665         (ada-exp.tab.o): New target.
5666                 
5667 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5668
5669         * regcache.c (regcache_xfer_part): New function.
5670         (regcache_raw_read_part): New function.
5671         (regcache_raw_write_part): New function.
5672         (regcache_cooked_read_part): New function.
5673         (regcache_cooked_write_part): New function.
5674         * regcache.h (regcache_raw_read_part): Declare.
5675         (regcache_raw_write_part): Declare.
5676         (regcache_cooked_read_part): Declare.
5677         (regcache_cooked_write_part): Declare.
5678
5679 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5680
5681         * remote.c (remote_open_1): Add async_p.
5682         (remote_async_open_1): Delete.
5683         (open_remote_target): Delete.
5684         (remote_open, extended_remote_open): Update calls to remote_open_1.
5685         (remote_async_open, extended_remote_async_open): Call
5686         remote_open_1 instead of remote_async_open_1.
5687
5688 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5689
5690         * blockframe.c: Fix a few coding standard violations.
5691
5692 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5693
5694         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5695         here from ...
5696         * config/i386/tm-i386sco5.h: ... here.  File removed.
5697         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5698
5699         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5700         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5701         (TM_FILE): Set to tm-i386.h.
5702         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5703         * config/i386/tm-i386v.h: Remove file.
5704         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5705         instead of "i386/tm-i386v.h".
5706         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5707         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5708         "i386/tm-i386v.h".
5709         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5710         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5711         "i386/tm-i386.h".
5712
5713 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5714
5715         * config/i386/nm-i386v.h: Add protection against
5716         multiple-inclusion.
5717         (i386_register_u_addr): Remove prototype.
5718         (register_u_addr): New prototype.
5719         (REGISTER_U_ADDR): Redefine accordingly.
5720         * i386v-nat.c: Improve several comments.
5721         (i386_register_u_addr): Change signature and rename to
5722         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5723         ubase variable.
5724
5725 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5726
5727         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5728         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5729         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5730         deprecated_extract_return_value.
5731         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5732         rename mips_o32o64_push_arguments.
5733         (mips_gdbarch_init): Update.
5734         (mips_extract_return_value): Delete.
5735         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5736         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5737         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5738         (mips_n32n64_extract_return_value): Clone
5739         mips_extract_return_value.
5740         (mips_store_return_value): Delete.
5741         (mips_o32_store_return_value): Clone mips_store_return_value.
5742         (mips_o64_store_return_value): Clone mips_store_return_value.
5743         (mips_eabi_store_return_value): Clone mips_store_return_value.
5744         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5745
5746 2002-08-18  Aidan Skinner <aidan@velvet.net>
5747
5748         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5749         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5750                 
5751 2002-08-18  Aidan Skinner <aidan@velvet.net>
5752
5753         * ada-lang.c: Run through gdb_indent.sh.
5754         * ada-lang.h: Run through gdb_indent.sh.
5755         * ada-tasks.c: Run through gdb_indent.sh.
5756         * ada-typeprint.c: Run through gdb_indent.sh.
5757         * ada-valprint.c: Run through gdb_indent.sh.
5758
5759 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5760
5761         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5762         ABI.
5763
5764 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5765
5766         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5767
5768         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5769         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5770
5771         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5772         write_register_gen instead of write_register_bytes.
5773
5774         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5775         i[3456]-*-osf1mk* configurations have been made obsolete.
5776         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5777         i[3456]86-*-osf1mk* hosts obsolete.
5778         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5779         targets obsolete.
5780         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5781         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5782         config/i386/i386m3.mt, config/i386/nm-m3.h,
5783         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5784         config/i386/i386mk.mh, config/i386/i386mk.mt,
5785         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5786         obsolete.
5787         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5788         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5789         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5790
5791 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5792
5793         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5794         (hppa_value_returned_from_stack): Declare.
5795         (hppa_extract_return_value): Declare.
5796         * config/pa/hppa.mt: New file.
5797         * configure.tgt: Recognize hppa*-*-*.
5798         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5799
5800 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5801
5802         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5803         comment.
5804
5805 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5806
5807         * top.c (gdb_rl_operate_and_get_next): Make sure
5808         operate-and-get-next functions correctly even when the history
5809         list is completely filled.
5810
5811 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5812
5813         * MAINTAINERS (Target Instruction Set Architectures): Rename
5814         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5815         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5816         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5817         already listed under Host/Native.
5818
5819         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5820         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5821         mips*-*-*.
5822
5823 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5824
5825         * config/ia64/ia64.mt: New file.
5826         * config/alpha/alpha.mt: New file.
5827         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5828         ia64-linux-gnu.  Mention that ia64-elf is broken.
5829         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5830
5831 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5832
5833         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5834         generic_func_frame_valid instead of func_frame_valid.
5835
5836 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5837
5838         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5839         procfs appears to be broken when debugging on multi-processor
5840         machines. So enable software single stepping in order to avoid
5841         using the procfs interface to do next/step operations, using
5842         internal breakpoints instead.
5843
5844         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5845         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5846         make this pc address equal to the value it would have if the
5847         system stepping capability was used. Also set a new flag used
5848         to ensure that we don't readjust the PC one more time later.
5849
5850         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5851         address by DECR_PC_AFTER_BREAK when software single step is
5852         in use for this architecture, as this has already been taken
5853         care of in handle_inferior_event().
5854
5855 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5856
5857         * infrun.c (handle_inferior_event): Minor reformatting, to make
5858         a rather long condition expression easier to read.
5859
5860 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5861
5862         * Makefile.in (gdbtk.o): Move to end of file.
5863         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5864         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5865         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5866         (gdbtk-wrapper.o, gdbres.o): Ditto.
5867
5868 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5869
5870         * Makefile.in (copying.o): Separate out compile rule.
5871         (hpux-thread.o, procfs.o, signals.o): Ditto.
5872         (v850ice.o, z8k-tdep.o): Ditto.
5873         (tui-file.o): Move to TUI section.
5874         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5875         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5876
5877 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5878
5879         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5880         skip_trampoline_code, for better namespace-proofing.   
5881
5882         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5883
5884 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5885
5886         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5887
5888 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5889
5890         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5891         signal, check whether we hit a breakpoint before checking for a
5892         single step breakpoint. Otherwise, GDB fails to notice that a
5893         breakpoint has been hit when stepping onto a breakpoint.
5894
5895 2002-08-16  Keith Seitz  <keiths@redhat.com>
5896
5897         * gdb-events.sh (clear_gdb_event_hooks): New function.
5898         * gdb-events.c: Regenerate.
5899         * gdb-events.h: Regenerate.
5900
5901 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5902
5903         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5904         not_a_sw_breakpoint.
5905         * breakpoint.h (bpstat_stop_status): Add parameter names.
5906
5907 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5908
5909         * remote.c (remote_insert_hw_breakpoint)
5910         (remote_remove_hw_breakpoint): Fix calculation of length field
5911         for Z-packet.
5912
5913 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5914
5915         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5916         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5917         (supply_fpregset): Ditto.
5918         
5919         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5920         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5921         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5922         (TARGET_READ_SP): Delete.
5923         (DO_REGISTERS_INFO): Delete.
5924         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5925         Delete.
5926         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5927         from macros to functions.
5928
5929         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5930         (mips_register_convertible, mips_register_convert_to_virtual,
5931         mips_register_convert_to_raw): Make static.
5932         (mips_read_sp): New function.
5933         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5934         (mips_do_registers_info): Make static.
5935         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5936         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5937         (mips_register_convert_from_type, mips_register_convert_to_type):
5938         New functions.
5939         (mips_gdbarch_init): Set up function_start_offset, 
5940         register_virtual_size, pc_in_sigtramp.
5941
5942 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5943
5944         * infcmd.c (vector_info): New function.
5945         (_initialize_infcmd): Add command "info vector".
5946         (print_vector_info): New function.
5947
5948         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5949         * gdbarch.h, gdbarch.c: Regenerate.
5950
5951 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5952
5953         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5954         ``print_all''.  Only print vector registers when ``print_all''.
5955
5956 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5957
5958         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5959         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5960
5961         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5962         Add `args' parameter.
5963         * gdbarch.h, gdbarch.c: Regenerate.
5964         
5965         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5966         
5967         * infcmd.c (float_info): Call print_float_info.
5968         (print_float_info): New function.  By default, print the
5969         floating-point registers.
5970
5971         * arch-utils.h (default_print_float_info): Delete declaration.
5972         * arch-utils.c (default_print_float_info): Delete function.
5973         
5974 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5975
5976         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5977         out define.
5978
5979         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5980         FRAME.
5981
5982         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5983         * configure.host: Make i[3456]86-*-aix host obsolete.
5984         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5985         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5986         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5987         config/i386/xm-i386aix.h: Make files obsolete.
5988         * i386aix-nat.c: Make file obsolete.
5989         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5990         (i386aix-nat.o): Make target obsolete.
5991
5992         * config/i386/nm-gnu.h: Removed.
5993         * config/i386/nm-i386gnu.h: New file.
5994         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5995         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5996         Moved here from ...
5997         * config/i386/tm-i386gnu.h: ... here.  Removed.
5998         * config/i386/xm-i386gnu.h: Removed.
5999         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6000         (NAT_FILE): Set to nm-i386gnu.h.
6001         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6002         * i386-tdep.c: New file.
6003         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6004         (i386gnu-tdep.o): Specify dependencies.
6005
6006 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
6007
6008         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6009         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6010         Adjust a few comments to reflect reality a bit closer.
6011         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6012         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6013         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6014         target_insert_watchpoint, target_remove_watchpoint):
6015         Move defines to ...
6016         * config/i386/nm-i386sco5.h: ... here.
6017         (kernel_u_size): Add prototype.  Improve a few comments and add
6018         protection against multiple inclusion.
6019         
6020         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6021         out define.
6022
6023         * uw-thread.c (SP_ARG0): Define if not already defined.
6024         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6025
6026         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6027
6028         * config/i386/tm-i386.h: Don't include "regcache.h".
6029
6030         * i387-tdep.h (i387_print_float_info): New prototype.
6031         * i387-tdep.c (print_i387_value, print_i387_ext,
6032         print_i387_status_word, print_i387_control_word): Add `struct
6033         ui_file *' argument and use it for output.
6034         (i387_print_float_info): Renamed from i387_float_info.  Add
6035         `struct gdbarch *' and `struct ui_file *' arguments and use the
6036         latter for output.
6037         * i386-tdep.c: Include "i387-tdep.h".
6038         (i386_gdbarch_init): Set print_float_info.
6039         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6040         (FLOAT_INFO): Remove define.
6041
6042 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6043
6044         * mips-tdep.c (mips_push_arguments): Rename to
6045         mips_eabi_push_arguments, and tune for EABI.
6046         (MIPS_REGS_HAVE_HOME_P): Delete.
6047         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6048         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6049         Delete references to mips_regs_have_home_p.
6050
6051 2002-08-14  Keith Seitz  <keiths@redhat.com>
6052
6053         * Makefile.in (install-gdbtk): Create insight plugin directory.
6054         Install plugins.tcl file.
6055
6056 2002-08-14  Keith Seitz  <keiths@redhat.com>
6057
6058         * configure.in: Move SUBDIRS to near top of the file so that
6059         --enable options may add things to it.
6060         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6061         * configure: Regenerate.
6062
6063 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6064
6065         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6066         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6067         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6068
6069 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6070
6071         * vax-tdep.c (vax_get_saved_register): Delete function.
6072         (vax_gdbarch_init): Update.
6073         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6074         (ns32k_gdbarch_init): Update.
6075         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6076         (alpha_gdbarch_init): Update.
6077
6078 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6079
6080         * regcache.c (init_regcache_descr): Overallocate the
6081         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6082         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6083         nr_raw_registers.
6084         (set_register_cached): Add range checking assertions.  Use
6085         current_regcache.
6086
6087 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6088
6089         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6090         numbers for MMX registers.
6091
6092 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6093
6094         * i386-tdep.c (i386_gdbarch_init): Use
6095         generic_unwind_get_saved_register.
6096
6097 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6098
6099         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6100         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6101         target vector.
6102         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6103         Delete.  Add comment regarding this now-deleted target method.
6104
6105 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6106
6107         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6108         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6109         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6110         real PC and the page number (if it's within the memory bank window).
6111         (m68hc11_pseudo_register_write): Likewise when saving.
6112         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6113         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6114         (m68hc11_register_raw_size): And use 32-bit for it.
6115         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6116         16K memory bank is used by the prog; also use the virtual pc.
6117
6118 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6119
6120         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6121         (m68hc11_gdbarch_init): Install it in gdbarch.
6122         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6123         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6124         (MSYMBOL_SIZE): New for documentation.
6125         (insn_return_kind): Enum to specify how a function returns.
6126         (frame_extra_info): Cleanup and record the return mode.
6127         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6128         register in address computation.
6129         (m68hc11_get_return_insn): New to obtain the return instruction used
6130         by the function.
6131         (m68hc11_frame_init_saved_regs): Take into account the return
6132         instruction used by the function for far and interrupt functions.
6133         (m68hc11_init_extra_frame_info): Take into account page register.
6134         (m68hc11_frame_args_address): Adjust according to the return mode.
6135         (show_regs): Print page register only when it's used.
6136
6137 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6138
6139         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6140         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6141         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6142         registers.
6143         (m68hc11_register_raw_size): Likewise.
6144
6145 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6146
6147         * i386-tdep.c (i386_register_name): Handle mmx registers.
6148         (mmx_regnum_p): New function.
6149         (i386_mmx_names): New array.
6150         (mmx_num_regs): New variable.
6151         (i386_pseudo_register_read): New function.
6152         (i386_pseudo_register_write): New function.
6153         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6154
6155         * regcache.c (regcache_raw_read_unsigned): New function.
6156         (regcache_raw_read_signed): New function.
6157         * regcache.h (regcache_raw_read_unsigned): Declare.
6158         (regcache_raw_read_signed): Declare.
6159
6160 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6161
6162         * regcache.c (regcache_raw_read_as_address): Delete function.
6163         (regcache_cooked_read_signed): New function.
6164         (regcache_cooked_read_unsigned): New function.
6165         * regcache.h (regcache_cooked_read_signed): Declare.
6166         (regcache_cooked_read_unsigned): Declare.
6167         (regcache_raw_read_as_address): Delete declaration.
6168
6169         * blockframe.c (generic_read_register_dummy): Use
6170         regcache_cooked_read_unsigned.
6171         * i386-tdep.c (i386_extract_struct_value_address): Use
6172         regcache_cooked_read_unsigned.
6173
6174 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6175
6176         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6177         double sizes according to ELF ABI flags.
6178         (gdbarch_tdep): Record elf_flags.
6179
6180 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6181
6182         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6183         (m6812_prolog): They can appear in 68HC12 function prologue.
6184         (m68hc11_frame_chain): Cleanup.
6185
6186 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6187
6188         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6189         declarations.
6190         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6191         (i386_linux_register_raw_size): Delete function.
6192         (i386_linux_init_abi): Update.
6193         * i386-tdep.c (i386_register_raw_size): Delete function.
6194         (i386_register_byte): Delete function.
6195         (i386_gdbarch_init): Update.
6196         (i386_register_size): Delete array.
6197         (i386_register_offset): Delete array.
6198
6199         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6200         (REGISTER_RAW_SIZE): Delete macro.
6201         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6202         (REGISTER_BYTE): Delete macro.
6203
6204 2002-08-11  Aidan Skinner <aidan@velvet.net>
6205
6206         * ada-lang.c (ada_lookup_partial_symbol)
6207         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6208         prototype names so that grep ^func works properly.
6209
6210         * ada-lang.c (ada_array_element_type)
6211         (ada_lookup_partial_symbol): Fix typos in parameter list.
6212
6213         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6214         Fix prototype names so that grep ^func works properly.
6215         
6216 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6217             Elena Zannoni  <ezannoni@redhat.com>
6218             Martin M. Hunt  <hunt@redhat.com>
6219
6220         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6221         (build_builtin_type_vec128i): Set the vector bit.
6222         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6223         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6224         (build_builtin_type_vec64): New function.
6225         (build_builtin_type_vec64i): New function.
6226         (build_gdbtypes): Initialize builtin_type_vec64 and
6227         builtin_type_vec64i.
6228
6229 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6230
6231         * regcache.c (regcache_dump): Compare the register offset
6232         with REGISTER_BYTE.
6233         * arch-utils.c (generic_register_byte): New function.
6234         * arch-utils.h (generic_register_byte): Declare.
6235         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6236         * gdbarch.h, gdbarch.c: Regenerate.
6237
6238 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6239
6240         * regcache.c: Include "gdbcmd.h"
6241         (_initialize_regcache): Add commands "maintenance print
6242         registers", "maintenance print raw-registers" and "maintenance
6243         print cooked-registers".
6244         (enum regcache_dump_what): Define.
6245         (dump_endian_bytes): New function.
6246         (regcache_dump): New function.
6247         (regcache_print): New function.
6248         (maintenance_print_registers): New function.
6249         (maintenance_print_raw_registers): New function.
6250         (maintenance_print_cooked_registers): New function.
6251         * Makefile.in (regcache.o): Update dependencies.
6252
6253 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6254
6255         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6256         (mips_push_arguments): Correct some comments.  Use paddr_nz
6257         for printing addresses in debug output.  Replace static
6258         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6259         (mips_n32n64_push_arguments): New function, cloned from
6260         mips_push_arguments and tuned for the n32/n64 ABI.
6261         (mips_push_register): Buffer needs dynamic allocation.
6262         (mips_print_register): Ditto.
6263         (do_gp_register_row): Ditto.
6264         (mips_store_return_value): Ditto.
6265         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6266
6267 2002-08-09  Don Howard  <dhoward@redhat.com>
6268
6269         * memattr.c (mem_info_command): Print special case of upper bound
6270         as max CORE_ADDR + 1.
6271
6272 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6273
6274         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6275         returns structs by ref if they're too big to fit in two registers.
6276
6277 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6278
6279         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6280         saved regs value.
6281         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6282         mips_find_saved_regs().
6283         (mips_pop_frame): Likewise.
6284
6285 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6286
6287         * blockframe.c (frame_saved_regs_register_unwind): Revise
6288         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6289         frames are in use.
6290
6291 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6292         
6293         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6294         T-packets; the 'a' is not taken as a register number.
6295         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6296         (remote_stopped_data_address): New functions; add to target
6297         vector.
6298         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6299         prototypes to match other implementations of this
6300         function. replace integer argument with pointer -- the length
6301         field in the Z-packet is the length of what is pointed to or 1 if
6302         pointer is null. Add to target vector.
6303         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6304         target vector.
6305
6306         From Mark Salter:
6307         * remote.c (remote_wait): Add support to extract optional
6308         watchpoint information from T-packet. Ignore unrecognized
6309         optional info in T-packet.
6310         (remote_async_wait): Ditto.
6311
6312 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6313
6314         * cli/cli-dump.c: Change fopen modes to use binary open modes
6315         as defined in include/fopen-bin.h throughout.
6316
6317 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6318
6319         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6320
6321 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6322
6323         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6324         assertion failure by returning early after a warning.
6325
6326 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6327
6328         * mips-tdep.c (mips_find_saved_regs): Make static.
6329         (mips_frame_init_saved_regs): New function.
6330         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6331         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6332         (mips_find_saved_regs): Delete declaration.
6333
6334 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6335
6336         * remote.c (remote_wait, remote_async_wait): Change
6337         thread_num from int to ULONGEST.
6338         (unpack_varlen_hex): Change result parameter from
6339         int * to ULONGEST *.
6340
6341 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6342
6343         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6344         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6345         powerpc*-*-*.
6346         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6347
6348 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6349
6350         * gcore.c (override_derive_stack_segment): Delete variable.
6351         (preempt_derive_stack_segment): Delete function.
6352         (derive_stack_segment): Delete function.
6353         (default_derive_stack_segment): Renamed to derive_stack_segment.
6354         (override_derive_heap_segment): Delete variable.
6355         (preempt_derive_heap_segment): Delete function.
6356         (derive_heap_segment): Delete function.
6357         (default_derive_heap_segment): Rename to derive_heap_segment.
6358
6359 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6360
6361         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6362         * mips-tdep.c (mips_EABI_use_struct_convention, 
6363         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6364         New functions.  (mips_use_struct_convention): Delete.
6365         (mips_gdbarch_init): set use_gdbarch_convention.
6366
6367 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6368
6369         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6370         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6371         mips_o32_reg_struct_has_addr): New functions.
6372         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6373
6374 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6375
6376         * regcache.c (pseudo_register): Delete function.
6377         (fetch_register): Delete function.
6378         (store_register): Delete function.
6379         (regcache_raw_read, legacy_read_register_gen): Use
6380         target_fetch_registers instead of fetch_register.
6381         (legacy_write_register_gen, regcache_raw_write): Use
6382         target_store_register instead of store_register.
6383         (write_register_bytes): Ditto.
6384
6385         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6386         (STORE_PSEUDO_REGISTER): Delete.
6387         * gdbarch.h, gdbarch.c: Regenerate.
6388
6389 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6390
6391         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6392         write dump file binary.
6393
6394 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6395
6396         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6397         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6398         (mips_gdbarch_init): Set N32 target to be mips64.
6399
6400 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6401
6402         * frame.c (find_saved_register): Break out of loop once saved
6403         register address is found.  Don't mention sparc in loop comment
6404         anymore.
6405
6406 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6407
6408         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6409         mips_default_saved_regsize to 8.
6410
6411 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6412
6413         * gcore.c: Do not include <sys/procfs.h>.
6414         * Makefile.in (gcore.o): Update dependencies.
6415
6416 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6417
6418         * configure.tgt: Make arc-*-* obsolete.
6419         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6420         * MAINTAINERS: Make arc-elf obsolete.
6421         * arc-tdep.c: Make file obsolete.
6422         * config/arc/arc.mt: Ditto.
6423         * config/arc/tm-arc.h: Ditto.
6424
6425 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6426
6427         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6428
6429 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6430
6431         * mcore-tdep.c (mcore_gdbarch_init): Use
6432         generic_unwind_get_saved_register instead of
6433         generic_get_saved_register.
6434         * v850-tdep.c (v850_gdbarch_init): Ditto.
6435         * frv-tdep.c (frv_gdbarch_init): Ditto.
6436         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6437         * s390-tdep.c (s390_gdbarch_init): Ditto.
6438         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6439         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6440         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6441
6442 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6443
6444         * objfiles.h: Add missing #include "symfile.h"
6445
6446         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6447
6448 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6449
6450         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6451         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6452         of FIELD_BITSIZE.
6453
6454 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6455
6456         * NEWS: Cleanup and nitpick.
6457
6458 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6459
6460         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6461
6462 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6463
6464         * Makefile.in (gdbtk-bp.o): Update dependencies.
6465         (gdbtk-register.o): Ditto.
6466         (gdbtk-varobj.o): Ditto.
6467
6468 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6469
6470         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6471         m68hc11_fetch_pseudo_register.
6472         (m68hc11_pseudo_register_write): Replace
6473         m68hc11_store_pseudo_register.
6474         (m68hc11_gdbarch_init): Update.
6475
6476 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6477
6478         * gdbarch.sh: Include "gdb_string.h".
6479         * gdbarch.c: Regenerate.
6480
6481         * regcache.c: Include "gdb_string.h".
6482         * ax-general.c: Ditto.
6483         * varobj.c: Ditto.
6484         * std-regs.c: Ditto.
6485         * fbsd-proc.c: Ditto.
6486         * thread.c: Ditto.
6487
6488         * Makefile.in (regcache.o): Update dependencies.
6489         (thread.o, gdbarch.o): Ditto.
6490         (ax-general.o, gdbarch.o): Ditto.
6491         (varobj.o, std-regs.o): Ditto.
6492         (fbsd-proc.o): Specify dependencies.
6493
6494 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6495
6496         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6497         regnum.
6498         (regcache_cooked_write): Ditto.
6499
6500 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6501
6502         * regcache.c (regcache_cooked_read): New function.
6503         (regcache_cooked_write): New function.
6504         (read_register_gen): Rewrite using regcache_cooked_read.
6505         (write_register_gen): Rewrite using regcache_cooked_write.
6506
6507         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6508         Declare.
6509
6510 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6511
6512         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6513         Replace the architecture methods register_read and register_write.
6514         * gdbarch.h, gdbarch.c: Regenerate.
6515         * regcache.c (init_regcache_descr): Update.
6516         (read_register_gen): Update.
6517         (write_register_gen): Update.
6518         (supply_register): Update comment.
6519
6520         * sh-tdep.c (sh_gdbarch_init): Update.
6521         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6522         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6523         pointer.  Update code.
6524         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6525         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6526         void pointer.  Update code.
6527         (sh64_register_write): Delete.
6528         (sh4_register_read): Delete.
6529         (sh64_register_read): Delete.
6530         (sh4_register_write): Delete.
6531         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6532         void pointer, `to' parameter a void pointer.
6533         (sh_sh64_register_convert_to_raw): Ditto.
6534
6535 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6536
6537         * mips-tdep.c (mips_register_virtual_type): Use architecture
6538         invariant return values.
6539
6540 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6541
6542         * linux-proc.c: Include "gdb_string.h".
6543         * Makefile.in (linux-proc.o): Update dependency list.
6544
6545 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6546
6547         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6548         comment.
6549
6550 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6551
6552         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6553         to_insert_watchpoint, to_remove_watchpoint,
6554         to_stopped_by_watchpoint, to_stopped_data_address,
6555         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6556         target vecctor. Define their corresponding macros so they call
6557         them.
6558         
6559         * target.c: Add default and debug versions of for
6560         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6561         to_insert_watchpoint, to_remove_watchpoint,
6562         to_stopped_by_watchpoint, to_stopped_data_address,
6563         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6564
6565 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6566
6567         * mips-tdep.c (mips_register_virtual_type): New function.
6568         (mips_gdbarch_init): Register mips_register_virtual_type()
6569         with gdbarch machinery.
6570         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6571         this file instead of tm-bigmips.h.
6572         (MIPS_REGSIZE): Delete this macro.
6573         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6574         multiarch version in mips-tdep.c will be found.
6575
6576 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6577
6578         * NEWS: Menion that CHILL has been made obsolete.
6579
6580         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6581         * stabsread.c (read_range_type): Ditto.
6582         * gdbtypes.h: Ditto.
6583         * language.c (binop_type_check): Ditto.
6584         (binop_result_type): Ditto.
6585         (integral_type): Ditto.
6586         (character_type): Ditto.
6587         (string_type): Ditto.
6588         (boolean_type): Ditto.
6589         (structured_type): Ditto.
6590         (lang_bool_type): Ditto.
6591         (binop_type_check): Ditto.
6592         * language.h (_LANG_chill): Ditto.
6593         * dwarfread.c (set_cu_language): Ditto.
6594         * dwarfread.c (CHILL_PRODUCER): Ditto.
6595         * dwarfread.c (handle_producer): Ditto.
6596         * expression.h (enum exp_opcode): Ditto.
6597         * eval.c: Ditto for comments.
6598         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6599         * expprint.c (print_subexp): Ditto.
6600         (print_subexp): Ditto.
6601         * valops.c (value_cast): Ditto.
6602         (search_struct_field): Ditto.
6603         * value.h (COERCE_VARYING_ARRAY): Ditto.
6604         * symfile.c (init_filename_language_table): Ditto.
6605         (add_psymbol_with_dem_name_to_list): Ditto.
6606         * valarith.c (value_binop): Ditto.
6607         (value_neg): Ditto.
6608         * valops.c (value_slice): Ditto.
6609         * symtab.h (union language_specific): Ditto.
6610         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6611         (SYMBOL_DEMANGLED_NAME): Ditto.
6612         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6613         * defs.h (enum language): Ditto.
6614         * symtab.c (got_symtab): Ditto.
6615         * utils.c (fprintf_symbol_filtered): Ditto.
6616
6617         * ch-typeprint.c: Make file obsolete.
6618         * ch-valprint.c: Make file obsolete.
6619         * ch-lang.h: Make file obsolete.
6620         * ch-exp.c: Make file obsolete.
6621         * ch-lang.c: Make file obsolete.
6622
6623         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6624         CHILL_LIB.
6625         (TARGET_FLAGS_TO_PASS): Ditto.
6626         (CHILLFLAGS): Obsolete.
6627         (CHILL): Obsolete.
6628         (CHILL_FOR_TARGET): Obsolete.
6629         (CHILL_LIB): Obsolete.
6630         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6631         ch-valprint.c.
6632         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6633         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6634         ch-lang.o.
6635         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6636         targets.
6637
6638 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6639
6640         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6641         This does not change anything at the moment, but will be helpful
6642         later when full Ada support is integrated.
6643
6644 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6645
6646         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6647         help message.
6648
6649 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6650
6651         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6652         and save it in a local variable.  Use variable in later test.
6653
6654 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6655
6656         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6657         test.  (Thanks to Daniel Jacobowitz.)
6658         
6659 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6660
6661         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6662         (mips_abi_strings): Add "n64".
6663         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6664
6665 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6666
6667         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6668         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6669
6670 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6671
6672         * utils.c (host_pointer_to_address, address_to_host_pointer):
6673         Use gdb_assert() instead of explicit call to internal_error().
6674
6675 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6676
6677         * Makefile.in (rs6000-nat.o): Update dependencies.
6678
6679         From Nicholas Duffek:
6680         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6681         (aix-thread.o): New rule.
6682         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6683         * config/powerpc/aix432.mh: New file.
6684
6685 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6686
6687         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6688         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6689         (fetch_core_registers, ppc_linux_supply_gregset)
6690         (ppc_linux_supply_fpregset): New functions.
6691         (ppc_linux_regset_core_fns): New.
6692         (_initialize_ppc_linux_tdep): Call add_core_fns.
6693         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6694         and ppc_linux_supply_gregset.
6695         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6696         (supply_fpregset): Call ppc_linux_supply_fpregset.
6697         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6698         corelow.o.
6699         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6700
6701 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6702
6703         * symtab.c (lookup_symbol): Demangle before lowercasing.
6704
6705 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6706
6707         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6708         declaration.
6709         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6710         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6711         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6712         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6713         "gdb_string.h".
6714         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6715         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6716         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6717         (avr-tdep.o, mon960-rom.o): Ditto.
6718         (aout_stabs_gnu_h): Define.
6719         (symtab_h): Remove $(gdb_obstack_h).
6720
6721 2002-07-30  Jim Blandy  <jimb@redhat.com>
6722
6723         Patch from David Carlton <carlton@math.stanford.edu>:
6724         * gdbinit.in: Move the `dir' commands that add GDB's own source
6725         directory to the search path to the end, so that the `gdb' source
6726         directory will be searched first.
6727
6728 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6729
6730         * gdb_obstack.h: New file.
6731         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6732         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6733         * objfiles.h: Include "gdb_obstack.h".
6734         * Makefile.in (gdb_obstack_h): Define.
6735         (symtab_h): Add $(gdb_obstack_h).
6736         (objfiles_h): Add $(gdb_obstack_h).
6737         
6738         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6739         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6740         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6741         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6742         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6743         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6744         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6745         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6746
6747         * Makefile.in (bcache.o): Update dependencies.
6748         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6749         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6750         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6751         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6752         (stabsread.o, symfile.o, symmisc.o): Ditto.
6753         (symtab.o, typeprint.o, macroexp.o): Ditto.
6754         (macrotab.o, mdebugread.o): Ditto.
6755         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6756         (coff_ecoff_h, aout_aout64_h): Define.
6757         (aout_stabs_gnu_h, libaout_h): Define.
6758
6759 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6760
6761         * regcache.c (struct regcache_descr): Rename nr_registers to
6762         nr_cooked_registers.  Revise comments describing the structure
6763         member fields.
6764         (init_regcache_descr): Update.
6765         (init_legacy_regcache_descr): Update.
6766         (read_register_gen, write_register_gen): When a cooked register in
6767         the raw register range, directly access the value from the raw
6768         register cache.
6769
6770 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6771
6772         * z8k-tdep.c: Do not include "obstack.h".
6773         * h8300-tdep.c, h8500-tdep.c: Ditto.
6774         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6775         * valprint.c, v850-tdep.c: Ditto.
6776         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6777         * mn10200-tdep.c: Ditto.
6778
6779         * Makefile.in (z8k-tdep.o): Update dependencies.
6780         (m68hc11-tdep.o, valprint.o): Ditto.
6781         (v850-tdep.o, d10v-tdep.o): Ditto.
6782         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6783         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6784         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6785         (sh_opc_h, gdb_sim_sh_h): Define.
6786         (elf_sh_h, elf_bfd_h): Define.
6787         (opcode_m68hc11_h): Define.
6788         (OPCODES_SRC, OPCODES_DIR): define.
6789         (OPCODES): Use $(OPCODES_DIR).
6790         (gdb_sim_d10v_h): Rename sim_d10v_h.
6791         (gdb_sim_arm_h): Rename sim_arm_h.
6792
6793 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6794
6795         * utils.c (host_pointer_to_address, address_to_host_pointer):
6796         Change internal_error() message to indicate function responsible
6797         for the error.
6798
6799 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6800
6801         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6802         calls to local_hex_string_custom().
6803
6804 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6805
6806         * irix5-nat.c: Move IRIX shared library support from here...
6807         * solib-irix.c: ...to here.  Revised substantially to work with
6808         generic solib framework.
6809
6810         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6811         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6812         * mips-irix-tdep.c: New file.
6813
6814         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6815         (mips-irix-tdep.o, solib-irix.o): New rules.
6816         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6817         solib-irix.o.
6818         * config/mips/irix6.mt (TDEPFILES): Likewise.
6819         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6820
6821 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6822
6823         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6824         disabled (via ``#if 0'') includes.
6825
6826 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6827
6828         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6829         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6830         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6831         Add support for the fpscr register.
6832         * rs6000-nat.c (regmap, fetch_inferior_registers)
6833         (store_inferior_registers, fetch_core_registers): Likewise.
6834
6835 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6836
6837         * rs6000-nat.c (language.h): Include.
6838         (special_regs): Delete this array.
6839         (regmap): New function.
6840         (fetch_register, store_register):  Use regmap() to map gdb
6841         register numbers to ptrace register numbers.  Also, use
6842         outputs from regmap() to make decisions regarding type of
6843         ptrace() call to make.  In particular, don't compare against
6844         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6845         (fetch_inferior_registers, store_inferior_registers): Where
6846         possible, obtain register numbers from tdep struct.  Don't
6847         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6848         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6849         (LAST_UISA_SP_REGNUM): Delete.
6850         
6851 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6852
6853         * rs6000-nat.c (ppc-tdep.h): Include.
6854         (fetch_registers, store_register, fetch_core_registers): Don't
6855         access registers[] directly.  Instead, use supply_register() or
6856         regcache_collect() as appropriate.
6857         (find_toc_address): Format hex address with local_hex_string().
6858
6859 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6860
6861         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6862         bfd/elf32-frv.c.
6863
6864 2002-07-24  Tom Tromey  <tromey@redhat.com>
6865
6866         * jv-exp.y: Marked all strings with _().
6867         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6868         internal_error.
6869         (MethodInvocation, CastExpression, parse_number, yyerror,
6870         java_type_from_name, push_expression_name, yylex): Typo fixes.
6871
6872 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6873
6874         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6875         (tee_file_flush, tee_file_write, tee_file_fputs)
6876         (tee_file_isatty): New.
6877         * ui-file.h (tee_file_new): Add prototype.
6878
6879 2002-07-24  Aidan Skinner <aidan@velvet.net>
6880
6881         * ada-lang.c: Change k&r style function definitions to prototyped
6882         form.
6883         * ada-typeprint.c: Change k&r style function definitions to prototyped
6884         form.
6885         * ada-valprint.c: Change k&r style function definitions to prototyped
6886         form.
6887         
6888 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6889
6890         * README: Remove reference to remote-bug.
6891         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6892         remote-bug.c.
6893         (m88k-nat.o): Delete rule.
6894         (m88k-tdep.o): Delete rule.
6895         (remote-bug.o): Delete rule.
6896         * MAINTAINERS: Mark as obsolete.
6897         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6898         * m88k-tdep.c: Make file obsolete.
6899         * config/m88k/m88k.mh: Ditto.
6900         * config/m88k/delta88v4.mh: Ditto.
6901         * config/m88k/delta88v4.mt: Ditto.
6902         * config/m88k/delta88.mt: Ditto.
6903         * config/m88k/delta88.mh: Ditto.
6904         * remote-bug.c: Ditto.
6905         * config/m88k/tm-delta88.h: Ditto.
6906         * config/m88k/nm-delta88v4.h: Ditto.
6907         * config/m88k/xm-delta88.h: Ditto.
6908         * config/m88k/xm-dgux.h: Ditto.
6909         * config/m88k/tm-m88k.h: Ditto.
6910         * config/m88k/nm-m88k.h: Ditto.
6911         * config/m88k/tm-delta88v4.h: Ditto.
6912         * m88k-nat.c: Ditto.
6913         * cxux-nat.c: Ditto.
6914         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6915         and m88*-*-* obsolete.
6916         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6917         m88*-*-* obsolete.
6918
6919 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6920
6921         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6922         constant.  Same for local pointer variables.
6923         (extract_signed_integer): Ditto.
6924         * defs.h (extract_unsigned_integer): Update.
6925         (extract_signed_integer): Update.
6926
6927 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6928
6929         * regcache.c (regcache_raw_write): Change buf parameter to a
6930         constant void pointer.
6931         (regcache_raw_read): Change buf parameter to a void pointer.
6932         (legacy_write_register_gen): Change myaddr parameter a constant
6933         void pointer.
6934         (supply_register): Change val parameter to a const void pointer.
6935         * regcache.h (regcache_raw_write): Update declaration.
6936         (regcache_raw_read): Update declaration.
6937         (supply_register): Update declaration.
6938
6939 2002-07-24  Tom Tromey  <tromey@redhat.com>
6940
6941         * defs.h (gdb_readline_wrapper): Declare.
6942         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6943         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6944         * top.c (gdb_readline_wrapper): New function.
6945         (command_line_input): Use it.
6946
6947 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6948
6949         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6950         regcache_read and regcache_write.
6951         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6952         * regcache.c: Update.
6953         * sh-tdep.c (sh64_push_arguments): Update comment.
6954         (sh_pseudo_register_read): Update.
6955         (sh_pseudo_register_write): Update.
6956         (sh4_register_read): Update.
6957         (sh4_register_write): Update.
6958         (sh64_pseudo_register_read): Update.
6959         (sh64_pseudo_register_write): Update.
6960         (sh64_register_read): Update.
6961         (sh64_register_write): Update.
6962         * i386-tdep.c (i386_extract_return_value): Update.
6963         (i386_extract_struct_value_address): Update.
6964         (i386_extract_return_value): Update.
6965         * blockframe.c (generic_read_register_dummy): Update.
6966         (generic_call_dummy_register_unwind): Update
6967         * infrun.c (write_inferior_status_register): Update.
6968
6969 2002-07-23  Jim Blandy  <jimb@redhat.com>
6970
6971         * parser-defs.h (expression_context_pc): Make this extern.
6972         (Thanks to Michael Snyder.)
6973
6974 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6975
6976         GDB 5.2.1 released from 5.2 branch.
6977         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6978         * README: Update to mention 5.2.1.
6979
6980 2002-07-23  Mark Salter  <msalter@redhat.com>
6981
6982         * remote.c (remote_read_bytes): Fix check for error.
6983
6984 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6985
6986         * aix-thread.c (language.h): Include.
6987         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6988         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6989         Print newlines at end of debug messages.
6990         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6991         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6992
6993 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6994
6995         * aix-thread.c (ppc-tdep.h): Include.
6996         (special_register_p): New function.
6997         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6998         (store_regs_user_thread): Use register number information from
6999         gdbarch_tdep struct instead of hardcoded offsets relative to
7000         FIRST_UISA_SP_REGNUM.
7001         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
7002         special_register_p() instead of using FPLAST_REGNUM and
7003         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7004         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
7005         will be MQ's register number.
7006
7007 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7008
7009         * aix-thread.c (ops): Rename to aix_thread_ops.
7010         (base_ops): Rename to base_target.
7011         (ops_attach): Rename to aix_thread_attach.
7012         (ops_detach): Rename to aix_thread_detach.
7013         (ops_resume): Rename to aix_thread_detach.
7014         (ops_wait):   Rename to aix_thread_wait.
7015         (ops_kill):   Rename to aix_thread_kill.
7016         (init_ops):   Rename to init_aix_thread_ops.
7017         (ops_fetch_register): Rename to aix_thread_fetch_register.
7018         (ops_store_register): Rename to aix_thread_store_register.
7019         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7020         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7021         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7022         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7023         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7024         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7025         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7026         (store_regs_lib):  Rename to store_regs_user_thread.
7027         (store_regs_kern): Rename to store_regs_kernel_thread.
7028
7029 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7030
7031         * aix-thread.c (ops_prepare_to_store): Eliminate.
7032         (init_ops): Don't initialize ops.prepare_to_store.
7033         (store_regs_kern): Pre-fetch register buffers from child, 
7034         because some registers may not be in the cache.  Copy
7035         regs from register cache only if they are cached.
7036         (store_regs_lib): Copy regs from register cache only
7037         if they are cached.
7038         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7039         fill_gprs64): Ditto.
7040
7041 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7042
7043         * aix-thread.c (gdb_assert.h): Include.
7044         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7045         register sizes (from register cache) match size of buffer holding
7046         register data.
7047         (fill_sprs32): Change parameter types to match those in the ptrace()
7048         buffer.
7049         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7050         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7051
7052 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7053
7054         * aix-thread.c (supply_sprs64): Cosmetic change.
7055         (supply_sprs32): Cosmetic change.
7056         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7057         (fill_sprs64): Use regcache_collect instead of read_register.
7058         (store_regs_lib): Use regcache_collect instead of 
7059         read_register.  Use fill_sprs32 instead of fill_sprs64,
7060         if debugging a 32-bit architecture.
7061         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7062         out of the register cache, instead of passing a pointer into
7063         the register cache directly to ptrace.  Use regcache_collect
7064         insteaad of read_register.
7065         (ops_prepare_to_store): Use target_read_registers instead
7066         of read_register_bytes.
7067
7068 2002-07-20  Aidan Skinner <aidan@velvet.net>
7069
7070         * MAINTAINERS: Add self under write after approval. 
7071                 
7072 2002-07-20  Aidan Skinner <aidan@velvet.net>
7073
7074         * ada-tasks.c: Change k&r style function definitions to prototyped
7075         form.
7076                 
7077 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7078
7079         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7080         * x86-64-tdep.c: Include "objfiles.h".
7081         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7082         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7083
7084 2002-07-17  Michal Ludvig  <michal@suse.cz>
7085
7086         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7087         (update_context): Initialise cfa variable.
7088
7089 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7090
7091         * aix-thread.c: Shorten some long lines.  
7092         Bring comments into line with code spec.
7093
7094 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7095
7096         * infrun.c: Re-indent using gdb_indent.sh.
7097
7098 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7099
7100         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7101         Leave the indentation temporarily untouched, to minimize the diffs.
7102
7103 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7104
7105         * stabsread.c: Make os9k sections of the code obsolete,
7106         for real this time.
7107         * stabsread.h: Make os9k sections of the code obsolete.
7108
7109 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7110
7111         * linux-low.c (regsets_store_inferior_registers): Add free()
7112         at the end of a loop to prevent memory leak.
7113         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7114         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7115         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7116         line a comment.
7117         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7118
7119 2002-07-17  Jim Blandy  <jimb@redhat.com>
7120
7121         * macrocmd.c (info_macro_command): Remove newline from error
7122         message.
7123
7124 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7125
7126         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7127         (sh_gdbarch_init): Use it for sh-dsp.
7128
7129 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7130
7131         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7132         64-bit DWARF2 format.
7133
7134 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7135
7136         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7137         <sys/proc.h> when not available.
7138
7139 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7140
7141         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7142         * stabsread.c: Make os9k sections of the code obsolete.
7143         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7144         * config/i386/i386os9k.mt: Make file obsolete.
7145         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7146         (COMMON_OBS): Remove os9kread.o
7147         (SFILES): Remove os9kread.c.
7148         (os9kread.o, remote-os9k.o): Make target obsolete.
7149         * remote-os9k.c: Make file obsolete.
7150         * os9kread.c: Make file obsolete.
7151         * Makefile.in
7152
7153 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7154
7155         * NEWS: Mention that the FR30 has been made obsolete.
7156         * fr30-tdep.c: Make file obsolete.
7157         * config/fr30/tm-fr30.h: Ditto.
7158         * config/fr30/fr30.mt: Ditto.
7159         * configure.tgt: Make fr30-*-elf obsolete.
7160         * MAINTAINERS: Make fr30-elf obsolete.
7161
7162 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7163
7164         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7165         found is not inside a section.
7166
7167 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7168
7169         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7170         strerror().
7171         (pdc_realloc): Use xrealloc() instead of realloc().
7172
7173 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7174
7175         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7176         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7177         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7178         macros.
7179
7180 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7181
7182         * aix-thread.c (ptrace_check): Eliminate goto.
7183         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7184         problem.
7185
7186 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7187
7188         * aix-thread.c (gdbcmd.h): Include.
7189         (DEBUG, DBG, DBG2, dbg): Eliminate.
7190         (debug_aix_thread): New static global.
7191         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7192         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7193         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7194         invocations to DBG and DBG2 macros to test against
7195         ``debug_aix_thread'' and call fprintf_unfiltered().
7196         (_initialize_aix_thread): Add new command "set debug aix-thread".
7197
7198 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7199
7200         From Gerhard Tonn <TON@de.ibm.com>:
7201         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7202         instead of supply_register.
7203
7204 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7205
7206         * dwarf2cfi.c: Include "gdb_assert.h".
7207         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7208         non-NULL.
7209         (update_context): Do not use __func__.  Add missing ``break''.
7210         (update_context): Do not use __func__.
7211
7212 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7213
7214         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7215         and its setting.  Set gdbarch instruction printing functions
7216         directly.  For non-rs6000 case use new function
7217         gdb_print_insn_powerpc.
7218         (gdb_print_insn_powerpc): New function.
7219
7220 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7221
7222         * NEWS: Mention that the d30v has been marked obsolete.
7223         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7224         * configure.tgt: Mark d30v-*-* as obsolete.
7225         * d30v-tdep.c: Mark file as obsolete.
7226         * config/d30v/d30v.mt: Ditto.
7227         * config/d30v/tm-d30v.h: Ditto.
7228
7229 2002-07-13  Aidan Skinner <aidan@velvet.net>
7230
7231         * ada-tasks.c (add_task_entry): replace calls to
7232         malloc() with xmalloc
7233         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7234         
7235         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7236         ada_finish_decode_line_1, all_sals_for_line
7237         ada_breakpoint_rewrite): replace calls to free() with xfree()
7238                 
7239 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7240
7241         From Nicholas Duffek (with minor changes by Martin Hunt, 
7242         Louis Hamilton, and Kevin Buettner):
7243         * aix-thread.c: New file.
7244
7245 2002-07-12  Petr Sorfa <petrs@caldera.com>
7246
7247         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7248         complaint for invalid attribute class or form.
7249         (read_func_scope): DW_AT_frame_base
7250         better handling of DW_AT_block*.
7251         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7252         better handling of DW_AT_block*.
7253         (read_common_block): DW_AT_location
7254         better handling of DW_AT_block*.
7255         (read_partial_die): DW_AT_location better handling
7256         of DW_AT_block*.
7257         (new_symbol): DW_AT_external better handling of
7258         DW_AT_block*. Proper initialization of variable
7259         "addr".
7260         (attr_form_is_block): New function that returns true
7261         if the attribute's form is of DW_FORM_block*.
7262
7263 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7264
7265         * valops.c (find_method_list): Remove comment about
7266         removed STATIC_MEMFUNCP argument.
7267         (value_find_oload_method_list): Likewise.
7268
7269 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7270
7271         From Nicholas Duffek:
7272         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7273         target_new_objfile_hook.
7274
7275 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7276
7277         From Nicholas Duffek:
7278         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7279         csect.
7280
7281 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7282
7283         * MAINTAINERS: Mention --enable-sim-build-warnings.
7284         (m68hc11-elf): Disable sim build warnings.
7285         (m32r-elf): Mark as broken obsolete candidate.
7286         (x86_64-linux-gnu): Mark as buildable with -Werror.
7287         (arm-elf): Change -w to ``,'' which enables warnings but not
7288         -Werror.
7289
7290 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7291
7292         * bcache.h: Update copyright.
7293         (struct bstring, struct bcache): Move definition to "bcache.c".
7294         Replaced by opaque declaration.
7295         (bcache_xfree): Replace free_bcache.
7296         (bcache_xmalloc, bcache_memory_used): Declare.
7297         
7298         * bcache.c: Update copyright.
7299         (struct bstring, struct bcache): Moved to here from "bcache.h".
7300         Update comments.
7301         (bcache_xmalloc, bcache_memory_used): New functions.
7302         (bcache_xfree): Replace function free_bcache.
7303         
7304         * Makefile.in (objfiles.o): Add $(bcache_h).
7305         (objfiles_h): Remove $(bcache_h).
7306         (symfile.o): Add $(bcache_h).
7307
7308         * symmisc.c: Update copyright.
7309         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7310         (print_objfile_statistics): Use bcache_memory_used.
7311
7312         * symfile.c: Include "bcache.h".
7313         (reread_symbols): Use bcache_xfree.
7314         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7315         (add_psymbol_to_list): Pass psymbol_cache by value.
7316         (add_psymbol_with_dem_name_to_list): Ditto.
7317
7318         * objfiles.h: Update copyright.
7319         (struct bcache): Declare opaque.  Do not include "bcache.h".
7320         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7321         bcache'' pointers.
7322         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7323
7324         * objfiles.c: Include "bcache.h".  Update copyright.
7325         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7326         macro_cache.
7327         (free_objfile): Use bcache_xfree.
7328
7329 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7330
7331         * monitor.c (monitor_fetch_register): Make name a constant.
7332         (monitor_store_register): Same.
7333
7334 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7335
7336         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7337         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7338         (finish_block) For non-function blocks, hash the symbol table.  For
7339         function blocks, mark the symbol table as unhashed.
7340         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7341         (msymbol_hash_iw): Likewise.
7342         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7343         value.
7344         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7345         (lookup_minimal_symbol): Likewise for both.
7346         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7347         hashtable.
7348         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7349         (ALL_BLOCK_SYMBOLS): Update.
7350         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7351         (struct symbol): Add `hash_next' pointer.
7352         * symtab.c (lookup_block_symbol): Search using the hash table when
7353         possible.
7354         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7355         (search_symbols, find_addr_symbol): Likewise.
7356
7357         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7358         (read_dst_symtab): Likewise.
7359         * jv-lang.c (get_java_class_symtab): Likewise.
7360         * mdebugread.c: Include "gdb_assert.h".
7361         (shrink_block): Assert that the block being modified is not hashed.
7362         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7363         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7364         symbols.
7365         (dump_symtab): Recognize hashed blocks.
7366         * printcmd.c (print_frame_args):  Assert that function blocks do not
7367         have hashed symbol tables.
7368         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7369         (fill_in_ada_prototype, debug_print_block): Likewise.
7370         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7371
7372 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7373
7374         * stack.c (print_frame): Use result of frame_address_in_block()
7375         instead of fi->pc when evaluating symbols.
7376         (backtrace_command_1): Ditto.
7377
7378 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7379
7380         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7381         Make static.
7382
7383         * arm-tdep.c (arm_register_name): Make return type constant.
7384
7385 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7386
7387         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7388         prototype.
7389         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7390         * s390-tdep.c (s390_fp_regnum): Ditto.
7391         (s390_read_fp): Ditto.
7392         (s390_pop_frame): Ditto.
7393         (_initialize_s390_tdep): Ditto.
7394         * remote.c (get_remote_state): Ditto.
7395         * procfs.c (mappingflags): Ditto.
7396         * memattr.c (_initialize_mem): Ditto.
7397         * mcore-tdep.c (mcore_pop_frame): Ditto.
7398         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7399         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7400         * language.c (set_case_str): Ditto.
7401         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7402         * frv-tdep.c (new_variant): Ditto.
7403         (frv_stopped_data_address): Ditto.
7404         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7405         (context_alloc): Ditto.
7406         (frame_state_alloc): Ditto.
7407         (unwind_tmp_obstack_init): Ditto.
7408         (unwind_tmp_obstack_free): Ditto.
7409         (cfi_read_fp): Ditto.
7410         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7411         (cris_pop_frame): Ditto.
7412         * c-lang.c (scanning_macro_expansion): Ditto.
7413         (finished_macro_expansion): Ditto.
7414         (c_preprocess_and_parse): Ditto.
7415         * gdbarch.sh: Ditto.
7416         * gdbarch.h, gdbarch.c: Regenerate.
7417         * config/mn10200/tm-mn10200.h: Adjust indentation.
7418         * target.c: Adjust indentation.
7419         * symtab.h: Adjust indentation.
7420         * stabsread.h: Adjust indentation.
7421         * remote-es.c: Adjust indentation.
7422         * os9kread.c: Adjust indentation.
7423
7424 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7425         
7426         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7427         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7428
7429 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7430         
7431         * NEWS: Mention m68k, mcore multi-arching.  
7432         * MAINTAINERS: Change status of m68k, mcore to reflect
7433         multi-arching.
7434
7435 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7436
7437         * valops.c (find_overload_match): Free oload_syms.
7438
7439 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7440
7441         Define HAVE_SYS_PROC_H if sys/proc.h exists
7442         * configure.in: Add check for sys/proc.h
7443         * config.in: Regenerate.
7444         * configure: Regenerate.
7445
7446 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7447
7448         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7449         #if !GDB_MULTI_ARCH. 
7450
7451 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7452
7453         * config.in, configure: Regenerate.
7454
7455 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7456
7457         * dwarf2cfi.c: Include "gcore.h".
7458         (execute_stack_op): Fix implementation of the
7459         DW_OP_deref and DW_OP_deref_size operators by letting do their
7460         lookup in the target.
7461
7462 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7463
7464         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7465         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7466         tdep->sc_sp_offset.
7467
7468 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7469
7470         Fix PR gdb/595, gdb/602
7471         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7472         Don't call value_cast, just read the vtable pointer; update comments
7473         to match.
7474
7475 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7476
7477         * config/mcore/tm-mcore.h: Remove file.
7478         * config/mcore/mcore.mt: Remove definition of TM_FILE
7479         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7480
7481 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7482
7483         * i386bsd-tdep.c: Include "gdb_string.h".
7484
7485 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7486
7487         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7488         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7489         mcore-tdep.
7490         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7491         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7492         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7493         (RETVAL_REGNUM): Move macros from tm-mcore.h
7494         (mcore_reg_struct_has_addr): New function.
7495         (mcore_gdbarch_init): Added initializations for the macros removed
7496         from tm-mcore.h.
7497
7498 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7499
7500         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7501         traditonal string branding within the ELF header.
7502
7503 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7504
7505         * symtab.c (remove_params): New function.
7506         (make_symbol_overload_list): Use it instead of cplus_demangle.
7507         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7508
7509 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7510
7511         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7512
7513         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7514         New variables.
7515         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7516         and tdep->sigtramp_end.
7517         * i386obsd-nat.c: New file.
7518         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7519
7520         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7521         Don't call get_current_frame().
7522
7523 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7524
7525         * i386-nat.c (child_post_startup_inferior): New function
7526         calling i386_cleanup_dregs if
7527         I386_USE_GENERIC_WATCHPOINTS is defined.
7528         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7529         conditional to acknowledge that i386-nat.c has its
7530         own child_post_startup_inferior function.
7531
7532 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7533
7534         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7535         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7536         instead of MAX_REGISTER_RAW_SIZE.
7537         (i386_extract_return_value, i386_extract_struct_value_address):
7538         Convert to use regcache.
7539         (i386_gdbarch_init): Set max_register_raw_size and
7540         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7541         Set extract_return_value and extract_struct_value_address instead
7542         of their deprecated variants.
7543
7544         Convert i386 target to generic dummy frames.
7545         * i386-tdep.c: Include "symfile.h".
7546         (i386_frameless_signal_p): Consider a function to be frameless if
7547         the pc points at the first instruction of the function.
7548         (i386_frame_chain): Handle (generic) call dummies.
7549         (i386_frame_saved_pc): Likewise.
7550         (i386_frame_init_saved_regs): Remove code dealing with call
7551         dummies on the stack.
7552         (i386_push_dummy_frame): Removed.
7553         (i386_call_dummy_words): Removed.
7554         (i386_fix_call_dummy): Removed.
7555         (i386_push_return_address): New function.
7556         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7557         parameter, and don't call get_current_frame.
7558         (i386_pop_frame): New function.
7559         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7560         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7561         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7562         call_dummy_length to 0, set call_dummy_words to NULL, set
7563         sizeof_call_dummy_words to 0, set fix_call_dummy to
7564         generic_fix_call_dummy, set pc_in_call_dummy to
7565         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7566         generic_push_dummy_frame, set push_return_address to
7567         i386_push_return_address and set frame_chain_valid to
7568         generic_file_frame_chain_valid.
7569
7570 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7571
7572         * gdbarch.sh (struct regcache): Add opaque declaration.
7573         (EXTRACT_RETURN_VALUE): New architecture method.
7574         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7575         * gdbarch.h, gdbarch.c: Regenerate.
7576         * arch-utils.c (legacy_extract_return_value): New function.
7577         * arch-utils.h (legacy_extract_return_value): Declare.
7578         * values.c (value_being_returned): Re-enable code handling
7579         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7580         deprecated_grub_regcache_for_registers call to block handling
7581         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7582         (EXTRACT_RETURN_VALUE): Do not define.
7583
7584 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7585
7586         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7587         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7588         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7589         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7590         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7591         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7592         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7593         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7594         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7595         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7596         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7597         argument so the function fits the prototype in the architecture
7598         vector.
7599         (mcore_pop_frame): Remove argument so the function fits the
7600         prototype. Use get_current_frame instead of the argument.
7601         (mcore_push_arguments): Change type of struct_return so the
7602         function can be used in the architecture vector.
7603         (mcore_store_struct_return): Add.
7604         (mcore_frame_init_saved_regs): Add.
7605         (mcore_gdbarch_init): Add function calls to replace the macros
7606         removed from tm-mcore.h
7607
7608 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7609
7610         * infcmd.c (print_return_value): Remove compatibility code calling
7611         deprecated_grub_regcache_for_registers.
7612         
7613         * values.c: Include "regcache.h".
7614         (value_being_returned): Update.  Use
7615         deprecated_grub_regcache_for_registers to extract the register
7616         buffer address.  
7617         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7618         ``struct regcache''.
7619         * Makefile.in (values.o): Add dependency on $(regcache_h).
7620
7621         * inferior.h (run_stack_dummy): Change type of second parameter to
7622         a ``struct regcache''.
7623         * valops.c (hand_function_call): Change type of retbuf to ``struct
7624         regcache''.  Allocate using regcache_xmalloc, clean using
7625         make_cleanup_regcache_xfree.
7626         * infcmd.c (run_stack_dummy): Update.  Use
7627         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7628
7629         * regcache.c (do_regcache_xfree): New function.
7630         (make_cleanup_regcache_xfree): New function.
7631         * regcache.h (make_cleanup_regcache_xfree): Declare.
7632
7633 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7634
7635         * event-top.c (command_line_handler): Don't read past
7636         beginning of buffer.
7637
7638 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7639         
7640         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7641         struct frame_id. 
7642         (varobj_create): Store frame_id for root.
7643         (varobj_gen_name): Use xasprintf.
7644         (varobj_update): Save and restore frame using get_frame_id() and
7645         frame_find_by_id().
7646         (create_child): Use xasprintf.
7647         (new_root_variable): Initialize frame_id.
7648         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7649         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7650         to prevent memory leak.
7651
7652 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7653
7654         * valops.c (hand_function_call): Move declaration of retbuf to
7655         start of function, allocate using malloc, add a cleanup but before
7656         the inf_status cleanup, cleanup the buffer.  Rename local variable
7657         old_chain to inf_status_cleanup.
7658
7659 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7660
7661         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7662
7663         * cli/cli-decode.c (cmd_func_p): New function.
7664         (cmd_func): New function.
7665
7666         * command.h: Add cmd_func() and cmd_func_p().   
7667         
7668 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7669
7670         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7671         (REGISTER_SIZE): Remove.
7672         (MAX_REGISTER_RAW_SIZE): Remove.
7673         (REGISTER_VIRTUAL_TYPE): Remove.
7674         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7675         (REGISTER_NAME): Remove.
7676         (USE_GENERIC_DUMMY_FRAMES): Remove.
7677         (CALL_DUMMY): Remove.
7678         (CALL_DUMMY_START_OFFSET): Remove.
7679         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7680         (CALL_DUMMY_LOCATION): Remove.
7681         (FIX_CALL_DUMMY): Remove.
7682         (CALL_DUMMY_ADDRESS): Remove.
7683         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7684         (SAVE_DUMMY_FRAME_TOS): Remove.
7685         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7686         (mcore_register_virtual_type): New function.
7687         (mcore_register_byte): New function.
7688         (mcore_register_size): New function.
7689         (mcore_register_name): New function.
7690         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7691         macros removed from tm-mcore.h.
7692         (mcore_dump_tdep): Add.
7693         (_initialize_mcore_tdep): Add gdbarch_register call.
7694
7695 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7696
7697         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7698         frameless_look_for_prologue, such that we actually call this
7699         function.
7700
7701 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7702
7703         * frame.h (frame_address_in_block): New function.
7704
7705         * blockframe.c (frame_address_in_block): New function extracted
7706         from get_frame_block().
7707         (get_frame_block): Use frame_address_in_block().
7708         (block_innermost_frame): Use frame_address_in_block() to match
7709         the frame pc address against the block boundaries rather than
7710         the frame pc directly. This prevents a failure when a frame pc
7711         is actually a return-address pointing immediately after the end
7712         of the given block. 
7713
7714 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7715
7716         * MAINTAINERS: Add self under write after approval. 
7717
7718 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7719
7720         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7721         used in architecture vector. The default is
7722         m68k_local_breakpoint_from_pc.
7723         (m68k_local_breakpoint_from_pc): Add.
7724         (enum): Add register numbers from tm-m68k.h.
7725         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7726         vector.  
7727         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7728         GDB_MULTI_ARCH_PARTIAL.
7729         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7730         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7731         m68k-tdep.c.
7732         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7733         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7734         to enum in m68k-tdep.c
7735
7736 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7737
7738         * solib-osf.c (open_map): Compute the list of shared libraries
7739         loaded by the inferior, rather than the list of libraries loaded
7740         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7741         the wrong shared libraries...
7742
7743 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7744
7745         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7746         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7747         macros.
7748         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7749         Remove functions.
7750         (FRAMELESS_SIGNAL): Remove function.
7751         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7752         i386_linux_saved_pc_after_call): Removed.
7753         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7754         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7755         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7756
7757         * i386-tdep.c (i386_frameless_signal_p): New function.
7758         (i386_frame_chain): Deal with frameless signals.
7759         (i386_sigtramp_saved_sp): New function.
7760         (i386_frame_saved_pc): Deal with frameless signals.
7761         (i386_saved_pc_after_call): Make sure the correct value is
7762         returned just after entry into a sigtramp.
7763         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7764         i386fbsd4_sc_sp_offset): New variables.
7765         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7766         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7767         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7768         similiar to what we already did for sc_pc_offset.
7769         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7770         tdep->sc_sp_offset.
7771
7772         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7773
7774 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7775
7776         * config/i386/tm-x86-64linux.h: New.
7777         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7778         definitions.
7779         * config/i386/nm-x86-64.h: Rename to ...
7780         * config/i386/nm-x86-64linux.h: ... this one.
7781         * config/i386/x86-64linux.mh: Reflect the above change.
7782         
7783 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7784
7785         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7786         with sigcontext_addr.  Add sc_sp_offset.
7787         (i386bsd_sigtramp_saved_pc): Remove prototype.
7788         (i386bsd_sicontext_addr): Add prototype.
7789         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7790         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7791         (i386_svr4_sigtramp_saved_pc): Removed.
7792         (i386_svr4_sigcontext_addr): New function.
7793         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7794         Initialize tdep->sigcontext_addr instead.  Initialize
7795         tdep->sc_pc_offset and tdep->sc_sp_offset.
7796         (i386_gdbarch_init): Likewise.
7797         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7798         any more.
7799         (i386bsd_sigtramp_saved_pc): Remove function.
7800         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7801         Initialize tdep->sigcontext_addr instead.  Initialize
7802         tdep->sc_pc_offset.
7803         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7804         of tdep->sigtramp_saved_pc.
7805         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7806         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7807         instead.
7808
7809         * i386-tdep.c (i386_frameless_function_invocation,
7810         i386_frame_num_args, i386_frame_init_saved_regs,
7811         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7812         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7813         i386_extract_return_value, i386_store_return_value,
7814         i386_extract_struct_value_address, i386_register_virtual_type,
7815         i386_register_convertible, i386_register_convert_to_virtual,
7816         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7817         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7818         static.
7819
7820 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7821
7822         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7823
7824         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7825         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7826         this macro.  Include "value.h".
7827
7828 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7829
7830         * ada-exp.tab.c: remove as it's a generated file
7831         * ada-lex.c: remove as it's a generated file
7832                 
7833 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7834
7835         * config/i386/tm-i386.h (struct frame_info, struct
7836         frame_saved_regs, struct value, struct type): Remove forward
7837         declarations.
7838
7839         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7840         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7841         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7842         (FILL_FPXREGSET): Define.
7843
7844         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7845
7846         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7847         i[3456]86-*-netbsd* case.
7848         * config/i386/tm-obsd.h: Removed.
7849         * config/i386/obsd.mt: Removed.
7850         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7851         core-aout.o.
7852         (MH_CFLAGS): Add -DYYDEBUG=0.
7853
7854         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7855         i386nbsd_sc_pc_offset on OpenBSD too.
7856
7857         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7858         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7859         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7860         define.
7861         * i386bsd-tdep.c: Include "arch-utils.h".
7862         (i386bsd_aout_in_solib_call_trampoline): New function.
7863         (i386bsd_init_abi): Set in_solib_call_trampoline to
7864         i386bsd_aout_in_solib_call_trampoline.
7865         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7866         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7867
7868 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7869
7870         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7871         (struct obstack, struct bcache): Add opaque declarations.
7872         * Makefile.in (macrotab_h): Update
7873
7874 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7875
7876         * blockframe.c (generic_find_dummy_frame): Change return type to
7877         ``struct regcache''.
7878         (struct dummy_frame): Replace field ``registers'' with regcache, a
7879         struct regcache object.
7880         (generic_find_dummy_frame): Update.
7881         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7882         regcache_xmalloc and regcache_cpy.
7883         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7884         regcache_xfree.
7885         (deprecated_generic_find_dummy_frame): Update.
7886         (generic_read_register_dummy): Update.  Use
7887         regcache_read_as_address.
7888         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7889         (generic_get_saved_register): Update.  Use regcache_read.
7890
7891 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7892
7893         * Makefile.in (objfiles_h): Add $(bcache_h).
7894         * objfiles.h: Include "bcache.h".
7895
7896         * Makefile.in (symtab_h): Remove $(bcache_h).
7897         * symtab.h: Do not include "bcache.h".
7898
7899 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7900
7901         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7902         generic_func_frame_chain_valid.
7903
7904 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7905
7906         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7907         * config/i386/tm-fbsd.h: Likewise.
7908
7909 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7910
7911         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7912         generic_unwind_get_saved_register.
7913
7914 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7915
7916         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7917         * regcache.c (supply_register): Add missing argument to
7918         register_buffer call.
7919
7920 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7921
7922         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7923         Solaris /bin/grep does not not like it.  From Peter Schauer.
7924
7925 2002-06-26  Tom Tromey  <tromey@redhat.com>
7926
7927         * command.h (add_setshow_cmd): Declare.
7928         (add_setshow_cmd_full): Declare.
7929         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7930         returns void.  Use add_setshow_cmd_full.
7931         (add_setshow_cmd_full): New function.
7932         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7933         (add_setshow_boolean_cmd): Likewise.
7934
7935 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7936
7937         * config/vax/tm-vax.h: Protect from multiple inclusion.
7938         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7939         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7940         * config/vax/tm-vaxbsd.h: ...here.  New file.
7941         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7942
7943 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7944
7945         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7946         (BELIEVE_PCC_PROMOTION): Remove.
7947         (AP_REGNUM): Move to...
7948         * config/vax/nm-vax.h: ...here.
7949         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7950         (vax_breakpoint_from_pc): New function.
7951         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7952         and gdbarch_believe_pcc_promotion.
7953
7954 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7955
7956         * Makefile.in (vax_tdep_h): Define.  
7957         (vax-tdep.o): Use $(vax_tdep_h).
7958         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7959         (vax_dump_tdep): New function. 
7960         (_initialize_vax_tdep): Register vax_dump_tdep.
7961         * vax-tdep.h: Include osabi.h.     
7962         (struct gdbarch_tdep): New. 
7963
7964 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7965
7966         * frame.h (deprecated_generic_find_dummy_frame): Rename
7967         generic_find_dummy_frame.
7968         * blockframe.c (generic_find_dummy_frame): Make static.
7969         (deprecated_generic_find_dummy_frame): New function.
7970         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7971         generic_find_dummy_frame with deprecated_find_dummy_frame.
7972         (sh64_nofp_frame_init_saved_regs): Ditto.
7973         (sh_fp_frame_init_saved_regs): Ditto.
7974         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7975         (s390_frame_chain): Ditto.
7976         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7977
7978 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7979
7980         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7981         gdbarch vector are at the top.
7982         (NUM_REGS): Remove.
7983         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7984         (FRAME_ARGS_ADDRESS): Remove.
7985         (FRAME_LOCALS_ADDRESS): Remove.
7986         (FRAME_NUM_ARGS): Remove.
7987         (FRAME_ARGS_SKIP): Remove.  
7988         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7989         (m68k_gdbarch_init): Add gdbarch initializations for macros
7990         undefined in tm-m68k.h
7991
7992 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7993
7994         * monitor.h: Add the function regname to monitor_ops
7995         structure. This way NUM_REGS does not have to be a constant.
7996         * monitor.c (monitor_fetch_register): Added support for regname
7997         function. The function is called if the array regnames is NULL.
7998         (monitor_store_register): Same.
7999         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8000         regnames array.
8001         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8002         cpu32bug_cmds.regname to point to new function.
8003         * abug-rom.c (abug_regname): Same as above.
8004         (init_abug_cmds): Same.
8005         * dbug-rom.c (dbug_regname): Same as above.
8006         (init_dbug_cmds): Same.
8007         * remote-est.c (est_regname): Same. 
8008         (init_est_cmds): Same.
8009         * rom68k-rom.c (rom68k_regname): Same. 
8010         (init_rom68k_cmds): Same.
8011
8012 2002-06-25  Tom Tromey  <tromey@redhat.com>
8013
8014         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8015
8016 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8017
8018         * infrun.c (stop_registers): Change variable's type to ``struct
8019         regcache'''.
8020         (xmalloc_inferior_status): Delete function.
8021         (free_inferior_status): Delete function.
8022         (normal_stop): Use regcache_cpy.
8023         (struct inferior_status): Change type of fields ``stop_registers''
8024         and ``registers'' to ``struct regcache''.
8025         (write_inferior_status_register): Use regcache_write.
8026         (save_inferior_status): Instead of calling
8027         xmalloc_inferior_status, allocate the inf_status buffer directly.
8028         Use regcache_dup_no_passthrough and regcache_dup to save the
8029         buffers.
8030         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8031         Replace the stop_registers regcache instead of overriding it.  Use
8032         regcache_xfree.  Instead of calling free_inferior_status, xfree
8033         the buffer directly.
8034         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8035         free_inferior_status, xfree the buffer directly.
8036         (build_infrun): Use regcache_xmalloc.
8037         (_initialize_infrun): Delete redundant call to build_infrun.
8038
8039         * Makefile.in (infcmd.o): Add $(regcache_h).
8040
8041         * infcmd.c: Include "regcache.h".
8042         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8043         obtain the address of `stop_registers' register buffer.
8044         (print_return_value): Ditto.
8045
8046         * inferior.h (struct regcache): Add opaque declaration.
8047         (stop_registers): Change variable's declared type to ``struct
8048         regcache''.
8049
8050 2002-06-24  Tom Tromey  <tromey@redhat.com>
8051
8052         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8053         * target.c (initialize_targets): Fixed typo in
8054         trust-readonly-sections `show' documentation.
8055
8056         * main.c: Marked all strings with _().
8057
8058 2002-06-24  Don Howard  <dhoward@redhat.com>
8059
8060         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8061         that means max CORE_ADDR+1.
8062         (lookup_mem_region): Ditto.
8063         (mem_info_command): Ditto.
8064
8065 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8066
8067         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8068         (REGISTER_BYTES_OK): Remove.
8069         (REGISTER_BYTES): Remove.
8070         (STORE_STRUCT_RETURN): Remove.
8071         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8072         (STORE_RETURN_VALUE): Remove.
8073         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8074         (FRAME_CHAIN): Remove.
8075         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8076         (FRAME_SAVED_PC): Remove.  
8077         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8078         (m68k_store_struct_return): Add.
8079         (m68k_deprecated_extract_return_value): Add.
8080         (m68k_deprecated_extract_struct_value_address): Add.
8081         (m68k_store_return_value): Add.
8082         (m68k_frame_chain): Add.
8083         (m68k_frameless_function_invocation): Add.
8084         (m68k_frame_saved_pc): Add.
8085         (m68k_gdbarch_init): added set_gdbarch calls for new 
8086         functions and deleted macros.
8087
8088 2002-06-23  Tom Tromey  <tromey@redhat.com>
8089
8090         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8091         (ALLDEPFILES): Likewise.
8092         (udiheaders): Removed.
8093         (udip2soc.o): Likewise.
8094         (udi2go32.o): Likewise.
8095         (udr.o): Likewise.
8096         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8097
8098 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8099
8100         * infrun.c (_initialize_infrun): Delete unnecessary call to
8101         build_infrun.
8102
8103         * regcache.h: Update comments describing the regcache_cpy family
8104         of functions.
8105         (regcache_save, regcache_restore): Delete declaration.
8106         (regcache_save_no_passthrough): Delete declaration.
8107         (regcache_restore_no_passthrough): Delete declaration.
8108         * regcache.c (regcache_save): Delete function.
8109         (regcache_save_no_passthrough): Delete function.
8110         (regcache_restore): Delete function.
8111         (regcache_restore_no_passthrough): Delete function.
8112
8113 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8114
8115         * config/m68k/tm-m68k.h: Fix typo.
8116         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8117         (m68k_frame_init_saved_regs): Declare.
8118
8119 2002-06-21  Jim Blandy  <jimb@redhat.com>
8120
8121         Remove some vestiges of Harris 88k support.
8122         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8123         register numbering quirk.
8124         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8125         odd symbols occurring in Harris 88k ELF targets.
8126
8127 2002-06-21  Tom Tromey  <tromey@redhat.com>
8128
8129         * gdb_locale.h: New file.
8130         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8131         (defs_h): Added gdb_locale.h.
8132         * configure, config.in: Rebuilt.
8133         * configure.in (PACKAGE): Define.
8134         * defs.h: Include gdb_locale.h.
8135         * main.c (captured_main): Call setlocale, bindtextdomain,
8136         textdomain.
8137
8138 2002-06-21  Dave Brolley  <brolley@redhat.com>
8139
8140         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8141         * config/frv/frv.mt: New file.
8142         * config/frv/tm-frv.h: New file.
8143         * configure.tgt: Support frv-*-*.
8144         * Makefile.in (frv-tdep.o): New target.
8145         * frv-tdep.c: New file.
8146         * NEWS: Mention frv.
8147
8148 2002-06-21  Dave Brolley  <brolley@redhat.com>
8149
8150         * MAINTAINERS: Add self to "Write After Approval" list.
8151
8152 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8153
8154         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8155         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8156         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8157         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8158         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8159
8160         * m68k-tdep.c: Include arch-utils.h
8161         (m68k_register_raw_size): Add.
8162         (m68k_register_virtual_size): Add.
8163         (m68k_register_virtual_type): Add.
8164         (m68k_register_name): Add.
8165         (m68k_stack_align): Add.
8166         (m68k_register_byte): Add.
8167         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8168         tm-m68k.h.
8169
8170 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8171
8172         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8173         m68k_find_saved_regs.
8174         (m68k_pop_frame): Removed saved_regs structure, and replaced
8175         references to it with frame->saved_regs.
8176         (m68k_gdbarch_init): Added function calls to initialize the
8177         gdbarch structure.
8178         (m68k_fix_call_dummy): Add. 
8179         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8180         (CALL_DUMMY): Remove.
8181         (CALL_DUMMY_LENGTH): Remove.
8182         (CALL_DUMMY_START_OFFSET): Remove.
8183         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8184         (FIX_CALL_DUMMY): Remove.
8185         (PUSH_DUMMY_FRAME): Remove.
8186         (POP_FRAME): Remove.
8187
8188 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8189
8190         * parse.c (parse_fprintf): New function used to avoid calls to
8191         fprintf in bison parser generated debug code.
8192         * parser-defs.h: Declaration of new parse_fprintf function.
8193         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8194         Set YYDEBUG to 1 by default.
8195         Set YYFPRINTF as parse_fprintf.
8196
8197 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8198
8199         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8200         encoding anymore.
8201         (pointer_encoding, enum ptr_encoding): New.
8202         (execute_cfa_program): Take care about pointer encoding.        
8203         (dwarf2_build_frame_info): Only call parse_frame_info for 
8204         .debug_frame and .eh_frame.
8205         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8206         fixed augmentation handling, added relative addressing, 
8207         ignore duplicate FDEs. Added comments.
8208         * dwarf2cfi.c: Reindented.
8209         
8210 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8211
8212         * event-top.c (command_handler): Don't use space_at_cmd_start
8213         unless there is sbrk() on the host. Assign time and space data
8214         to union fields of the appropriate length.
8215
8216 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8217
8218         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8219         x86_64_register_name. Return type changed to 'const char *'.
8220         (x86_64_register_name2nr): Rename to x86_64_register_number.
8221         (x86_64_gdbarch_init): Update to reflect the change.
8222         * x86-64-tdep.h: Ditto.
8223         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8224         (supply_fpregset): Ditto.
8225
8226 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8227
8228         * regcache.h: Update copyright.
8229         (struct regcache, struct gdbarch): Add opaque declarations.
8230         (current_regcache): Declare global variable.
8231         (regcache_read, regcache_write): Add gdbarch parameter.
8232         (regcache_save, regcache_save_no_passthrough)
8233         (regcache_restore, regcache_restore_no_passthrough)
8234         (regcache_dup, regcache_dup_no_passthrough)
8235         (regcache_cpy, regcache_cpy_no_passthrough)
8236         (deprecated_grub_regcache_for_registers)
8237         (deprecated_grub_regcache_for_register_valid)
8238         (regcache_valid_p): Add function declarations.
8239         
8240         * regcache.c: Update copyright.
8241         (regcache_descr_handle): New global variable.
8242         (struct regcache_descr): Define.
8243         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8244         (regcache_descr, xfree_regcache_descr): New functions.
8245         (struct regcache): Define.
8246         (regcache_xmalloc, regcache_xfree): New functions.
8247         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8248         (regcache_dup, regcache_dup_no_passthrough): New functions.
8249         (regcache_valid_p, regcache_read_as_address): New functions.
8250         (deprecated_grub_regcache_for_registers): New function.
8251         (deprecated_grub_regcache_for_register_valid): New function.
8252         (current_regcache): New global variable.
8253         (register_buffer): Add regcache parameter.  Update calls.
8254         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8255         (read_register_gen, write_register_gen): Update register_buffer
8256         call.  Test for legacy_p instead of gdbarch_register_read_p or
8257         gdbarch_register_write_p.
8258         (regcache_collect): Update register_buffer call.
8259         (build_regcache): Rewrite.  Use deprecated grub functions.
8260         (regcache_save, regcache_save_no_passthrough): New functions.
8261         (regcache_restore, regcache_restore_no_passthrough): New
8262         functions.
8263         (_initialize_regcache): Create the regcache_data_handle. Swap
8264         current_regcache global variable.
8265         
8266         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8267         parameter to regcache_read and regcache_write calls.
8268         (sh4_register_read): Ditto.
8269         (sh64_pseudo_register_read): Ditto.
8270         (sh64_register_read): Ditto.
8271         (sh_pseudo_register_write): Ditto.
8272         (sh4_register_write): Ditto.
8273         (sh64_pseudo_register_write): Ditto.
8274         (sh64_register_write): Ditto.
8275
8276         * defs.h (XCALLOC): Define.
8277
8278 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8279
8280         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8281         * m68k-tdep.c (m68k_gdbarch_init): Added.
8282         (m68k_dump_tdep): Added.
8283
8284 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8285
8286         * ada-lang.c (fill_in_ada_prototype): Update comment.
8287
8288 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8289
8290         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8291         MIPS_ABI_LAST.
8292         (mips_abi_string, mips_abi_strings): New.
8293         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8294         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8295         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8296         O32 if no ABI is found.
8297         (mips_dump_tdep): Use mips_abi_strings.
8298         (mips_abi_update): New function.
8299         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8300         ``set mips abi'' and ``show mips abi''.  Check the size of
8301         mips_abi_strings.
8302
8303 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8304
8305         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8306         constant.
8307
8308 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8309
8310         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8311         current frame using only the first stack size adjustment. All
8312         subsequent size adjustments are not considered to be part of
8313         the "static" part of the current frame.
8314         Compute the address of the saved registers relative to the
8315         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8316         in use in this frame.
8317
8318 2002-06-18  Don Howard  <dhoward@redhat.com>
8319  
8320         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8321         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8322         suggesting this solution.
8323
8324 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8325
8326         * config/romp/xm-rtbsd.h: Delete file.
8327         * config/romp/rtbsd.mh: Delete file.
8328
8329 2002-06-18  Keith Seitz  <keiths@redhat.com>
8330
8331         * breakpoint.c (condition_command): Post breakpoint_modify
8332         when a condition is added to an existing breakpoint.
8333         (commands_command): Likewise for commands.
8334         (set_ignore_count): Likewise for ignore counts.
8335         If no tty, do not simply return, still need to send event
8336         notification.
8337         (ignore_command): Only print a newline if the command came
8338         from a tty.
8339         Don't call breakpoints_changed, since this is now properly
8340         handled by set_ignore_count.
8341
8342 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8343
8344         * MAINTAINERS: Note that cris-elf target can be compiled with
8345         -Werror.
8346         * cris-tdep.c (cris_register_name): Make return type constant.
8347         (cris_breakpoint_from_pc): Ditto.
8348
8349 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8350
8351         * frame.h (struct frame_info): Change type of context to 
8352         'struct context'.
8353
8354 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8355
8356         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8357         pointer.
8358         * gdbarch.h, gdbarch.c: Regenerate.
8359         * config/mips/tm-mips.h (mips_register_name): Update.
8360         * i386-tdep.h (i386_register_name): Update.
8361         * mips-tdep.c (mips_register_name): Update
8362         * alpha-tdep.c (alpha_register_name): Update.
8363         * arch-utils.c (legacy_register_name): Update.
8364         * arch-utils.h (legacy_register_name): Update.
8365         * avr-tdep.c (avr_register_name): Update.
8366         * ia64-tdep.c (ia64_register_name): Update.
8367         * i386-tdep.c (i386_register_name): Update.
8368         * sparc-tdep.c (sparc32_register_name): Update.
8369         (sparc64_register_name): Update.
8370         (sparclite_register_name): Update.
8371         (sparclet_register_name): Update.
8372         * sh-tdep.c (sh_generic_register_name): Update.
8373         (sh_sh_register_name): Update.
8374         (sh_sh3_register_name): Update.
8375         (sh_sh3e_register_name): Update.
8376         (sh_sh_dsp_register_name): Update.
8377         (sh_sh3_dsp_register_name): Update.
8378         (sh_sh4_register_name): Update.
8379         (sh_sh64_register_name): Update.
8380         * s390-tdep.c (s390_register_name): Update.
8381         * rs6000-tdep.c (rs6000_register_name): Update.
8382         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8383         (ns32k_register_name_32382): Update.
8384         * d10v-tdep.c (d10v_ts2_register_name): Update.
8385         (d10v_ts3_register_name): Update.
8386         * xstormy16-tdep.c (xstormy16_register_name): Update.
8387         * vax-tdep.c (vax_register_name): Update.
8388         * v850-tdep.c (v850_register_name): Update.
8389         * m68hc11-tdep.c (m68hc11_register_name): Update.
8390         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8391         (am33_register_name): Update.
8392
8393 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8394
8395         * m68k-tdep.c: Reindented.
8396
8397 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8398
8399         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8400         list of predefined types.
8401
8402 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8403
8404         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8405         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8406         REGISTER_CONVERT_TO_RAW): Remove defines.
8407         (i386_register_virtual_type, i386_register_convertible,
8408         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8409         Remove prototypes.
8410         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8411         macros mentioned above.
8412
8413         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8414         (i386lynx_saved_pc_after_call): Remove prototype.
8415         * i386ly-tdep.c: Include "i386-tdep.h".
8416         (i386lynx_saved_pc_after_call): Make static.  Use
8417         read_memory_nobpt instead of read_memory.  Use
8418         read_memory_unsigned_integer instead of read_memory_integer.
8419         (i386lynx_init_abi): New function.
8420         (i386lynx_coff_osabi_sniffer): New function.
8421         (_initialize_i386bsd_tdep): New function.
8422
8423         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8424         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8425         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8426         (i386_fix_call_dummy): Remove prototype.
8427         * i386-tdep.c (i386_call_dummy_words): New variable.
8428         (i386_gdbarch_init): Adjust for removal of the
8429         macros mentioned above.
8430
8431 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8432
8433         * command.h (add_setshow_auto_boolean_cmd): Replace
8434         add_set_auto_boolean_cmd.
8435         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8436         add_set_auto_boolean_cmd.
8437         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8438         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8439         mask-address'' command.
8440         (show_mask_address): Add cmd parameter.
8441         * remote.c (add_packet_config_cmd): Update.  Change type of
8442         set_func and show_func to cmd_sfunc_ftype.
8443         (_initialize_remote): Update `set remote Z-packet'
8444         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8445         (show_remote_protocol_e_packet_cmd): Ditto.
8446         (show_remote_protocol_E_packet_cmd): Ditto.
8447         (show_remote_protocol_P_packet_cmd): Ditto.
8448         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8449         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8450         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8451         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8452         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8453         (show_remote_protocol_Z_packet_cmd): Ditto.
8454         (show_remote_protocol_binary_download_cmd): Ditto.
8455         (show_remote_cmd): Pass NULL to all of above.
8456
8457 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8458
8459         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8460         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8461         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8462         POP_FRAME): Remove defines.
8463         (i386_push_arguments, i386_store_struct_return,
8464         i386_extract_return_value, i386_store_return_value,
8465         i386_extract_struct_value_address, i386_push_dummy_frame,
8466         i386_pop_frame): Renove prototypes.
8467         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8468         macros mentioned above.
8469
8470 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8471
8472         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8473         add_set_boolean_cmd.
8474         (add_setshow_cmd): New function.
8475         * command.h (add_setshow_boolean_cmd): Replace
8476         add_set_boolean_cmd.
8477         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8478         and ``set rdiromatzero''.
8479         * maint.c (_initialize_maint_cmds): Update commented out code.
8480         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8481         * target.c (initialize_targets): Update `set
8482         trust-readonly-sections'.
8483         * remote.c (_initialize_remote): Update `set remotebreak'.
8484
8485 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8486
8487         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8488         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8489         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8490         fit into multi-arch framework.
8491         (i386_breakpoint_from_pc): New function.
8492         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8493         above.
8494
8495         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8496         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8497         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8498         (i386_frameless_function_invocation, i386_frame_num_args,
8499         i386_frame_init_saved_regs): Remove prototypes.
8500         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8501         macros mentioned above.
8502
8503 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8504
8505         * cli/cli-decode.c (set_cmd_cfunc): Update.
8506         (set_cmd_sfunc): Update.
8507         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8508         (set_cmd_sfunc, set_cmd_cfunc): Update.
8509         * cli/cli-decode.h: Update.
8510
8511 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8512
8513         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8514         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8515
8516 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8517
8518         * defs.h (auto_boolean): Declare enum.
8519         * command.h (cmd_auto_boolean): Delete enum.
8520         * mips-tdep.c (mask_address_var): Update.
8521         (mips_mask_address_p): Update.
8522         (show_mask_address): Update.
8523         * remote.c (struct packet_config): Update.
8524         (update_packet_config): Update.
8525         (show_packet_config_cmd): Update.
8526         (packet_ok): Update.
8527         (add_packet_config_cmd): Update.
8528         (_initialize_remote): 
8529         * command.h: Update.
8530         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8531         (do_setshow_command): Update.
8532         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8533         * cli/cli-decode.h: Update.
8534
8535 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8536
8537         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8538         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8539         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8540         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8541         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8542         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8543
8544         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8545         list of DJGPP COFF targets.
8546
8547         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8548         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8549         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8550         (FP0_REGNUM): Remove define.
8551         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8552         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8553         (i386_register_virtual_size): Remove protoype.
8554         * i386-tdep.c (i386_register_virtual_size): Removed.
8555         (i386_extract_return_value, i386_store_return_value): Use
8556         FP0_REGNUM instead of NUM_FREGS to determine whether the
8557         floating-point registers are available.
8558         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8559         Adjust for removal of macros mentioned above.
8560
8561 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8562
8563         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8564         comments.
8565         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8566         Remove prototypes.
8567         (supply_gregset, fill_gregset): Remove use of register keyword and
8568         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8569         NUM_REGS and NUM_FREGS.
8570         (FPREGSET_FSAVE_OFFSET): Remove.
8571         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8572         NUM_FREGS to determine whether the floating-point registers are
8573         available.
8574
8575         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8576         gnu_store_registers): Replace usage of NUM_GREGS with
8577         I386_NUM_GREGS.
8578
8579         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8580         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8581         usage of NUM_GREGS with I386_NUM_GREGS.
8582
8583         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8584
8585         * i386bsd-nat.c: Include "i386-tdep.h".
8586         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8587         I386_NUM_GREGS.
8588
8589         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8590         and associated comment.  They no longer make any sense, since we
8591         don't use this file anymore on Linux.
8592
8593         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8594         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8595         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8596         elements in these arrays.
8597         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8598         MAX_NUM_REGS.
8599
8600 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8601
8602         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8603         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8604
8605 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8606
8607         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8608         EXTRACT_RETURN_VALUE.
8609         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8610         EXTRACT_STRUCT_VALUE_ADDRESS.
8611         * gdbarch.h, gdbarch.c: Regenerate.
8612         
8613         * values.c (value_being_returned): Handle
8614         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8615         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8616
8617         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8618         * arm-tdep.c (arm_gdbarch_init): Update.
8619         * avr-tdep.c (avr_gdbarch_init): Update.
8620         * cris-tdep.c (cris_gdbarch_init): Update.
8621         * d10v-tdep.c (d10v_gdbarch_init): Update.
8622         * ia64-tdep.c (ia64_gdbarch_init): Update.
8623         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8624         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8625         * s390-tdep.c (s390_gdbarch_init): Update.
8626         * sh-tdep.c (sh_gdbarch_init): Update.
8627         * s390-tdep.c (s390_gdbarch_init): Update.
8628         * sparc-tdep.c (sparc_gdbarch_init): Update.
8629         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8630         * v850-tdep.c (v850_gdbarch_init): Update.
8631         * vax-tdep.c (vax_gdbarch_init): Update.
8632         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8633         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8634
8635         * config/arc/tm-arc.h: Update.
8636         * config/d30v/tm-d30v.h: Update.
8637         * config/fr30/tm-fr30.h: Update.
8638         * config/h8300/tm-h8300.h: Update.
8639         * config/h8500/tm-h8500.h: Update.
8640         * config/i386/tm-i386.h: Update.
8641         * config/i386/tm-ptx.h: Update.
8642         * config/i386/tm-symmetry.h: Update.
8643         * config/i960/tm-i960.h: Update.
8644         * config/m32r/tm-m32r.h: Update.
8645         * config/m68k/tm-delta68.h: Update.
8646         * config/m68k/tm-linux.h: Update.
8647         * config/m68k/tm-m68k.h: Update.
8648         * config/m88k/tm-m88k.h: Update.
8649         * config/mcore/tm-mcore.h: Update.
8650         * config/mips/tm-mips.h: Update.
8651         * config/mn10200/tm-mn10200.h: Update.
8652         * config/pa/tm-hppa.h: Update.
8653         * config/pa/tm-hppa64.h: Update.
8654         * config/sparc/tm-sp64.h: Update.
8655         * config/sparc/tm-sparc.h: Update.
8656         * config/sparc/tm-sparclet.h: Update.
8657         * config/z8k/tm-z8k.h: Update.
8658
8659 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8660
8661         * Makefile.in (i386_linux_tdep_h): Define.
8662         (i386_tdep_h, i387_tdep_h): Define.
8663         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8664         $(i386_tdep_h) and $(i387_tdep_h).
8665         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8666
8667 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8668
8669         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8670         Already covered by the default.
8671
8672         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8673         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8674         (i386_gdbarch_init): Initialize long_double_format and long_double
8675         bit.
8676
8677         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8678         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8679         Move these to ...
8680         * config/i386/i386sol2.mh: ... here.
8681         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8682         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8683         (SIGCONTEXT_PC_OFFSET): Remove define.
8684         (IN_SIGTRAMP): Remove define.
8685         * i386-sol2-tdep.c: New file.
8686         
8687         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8688         * config/i386/tm-i386nw.h: Removed.
8689
8690         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8691         USE_STRUCT_CONVENTION): Remove defines.
8692         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8693         (get_longjmp_target): Remove prototype.
8694         (IN_SIGTRAMP): Remove define.
8695         (i386bsd_in_sigtramp): Remove prototype.
8696         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8697         function.  Update comment accordingly
8698         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8699         (FRAME_SAVED_PC): Remove define.
8700         (i386bsd_frame_saved_pc): Remove prototype.
8701         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8702         GET_LONGJMP_TARGET): Remove defines.
8703         (get_longjmp_target): Remove prototype.
8704         (IN_SIGTRAMP): Remove define.
8705         (i386bsd_in_sigtramp): Remove prototype.
8706         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8707         function.  Update comment accordingly
8708         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8709         (FRAME_SAVED_PC): Remove define.
8710         (i386bsd_frame_saved_pc): Remove prototype.
8711         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8712         Remove prototype.
8713         (USE_STRUCT_CONVENTION): Remove prototype.
8714         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8715         declaration.
8716         (_initialize_i386bsd_nat): Revise logic to determine some
8717         constants at compile time when compiling a native GDB.  Warn if
8718         things don't match up with what we expect.
8719         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8720         Remove variables.
8721         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8722         to use date stored in `struct gdbarch_tdep'.
8723         (i386bsd_sigcontext_offset): Remove varaible.
8724         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8725         stored in `struct gdbarch_tdep'.
8726         (i386bsd_frame_saved_pc): Make static.
8727         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8728         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8729         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8730         i386fbsd4_sc_pc_offset): New variables.
8731         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8732         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8733         functions.
8734         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8735         functions.
8736         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8737         Modify the value of i386fbsd_sigtramp_start and
8738         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8739         i386fbsd_sigtramp_end.
8740         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8741         function.
8742
8743         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8744         define to i386-linux-tdep.h.
8745         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8746         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8747         defines.
8748         (i386_linux_register_name, i386_linux_register_byte,
8749         i386_linux_register_raw_size): Remove prototypes.
8750         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8751         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8752         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8753         TARGET_WRITE_PC): Remove defines.
8754         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8755         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8756         i386_linux_write_pc): Remove prototypes.
8757         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8758         (get_longjmp_target): Remove prototype.
8759         * i386-linux-tdep.h: New file.
8760         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8761         * i386-linux-tdep.c: Include "i386-tdep.h" and
8762         "i386-linux-tdep.h".
8763         (i386_linux_register_name, i386_linux_register_byte,
8764         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8765         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8766         Make static.
8767         (i386_linux_init_abi): New function.
8768         (_initialize_i386_linux_tdep): New function.
8769
8770         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8771         (i386_saved_pc_after_call): Remove prototype.
8772         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8773         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8774         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8775         (i386_register_name, i386_stab_reg_to_regnum,
8776         i386_dwarf_reg_to_regnum): Remove prototypes.
8777         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8778         SIZEOF_SSE_REGS): Remove defines.
8779         (REGISTER_BYTES): Remove define.
8780         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8781         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8782         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8783         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8784         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8785         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8786         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8787         (get_longjmp_target): Remove prototype.
8788         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8789         (sigtramp_saved_pc): Remove define.
8790         (i386v4_sigtramp_saved_pc): Remove prototype.
8791         * config/i386/tm-go32.h (FRAME_CHAIN,
8792         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8793         (i386go32_frame_saved_pc): Remove prototype.
8794         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8795         (get_longjmp_target): Remove prototype.
8796         * i386-tdep.h: Include "osabi.h".
8797         (enum i386_abi): Removed.
8798         (enum struct_return): New enum.
8799         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8800         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8801         sc_pc_offset members.
8802         (i386_gdbarch_register_os_abi): Remove prototype.
8803         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8804         I386_SSE_NUM_REGS): New defines.
8805         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8806         I386_SSE_SIZEOF_REGS): New defines.
8807         (i386_register_name, i386_register_byte, i386_register_raw_size):
8808         New prototypes.
8809         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8810         (i386bsd_sigtramp_saved_pc): New prototype.
8811         * i386-tdep.c: Don't include "elf-bfd.h".
8812         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8813         i386_frame_chain, i386_saved_pc_after_call): Make static.
8814         (i386_frame_saved_pc): Rewrite to call architecture dependent
8815         function to deal with signal handlers.  Make static.
8816         (i386go32_frame_saved_pc): Removed.
8817         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8818         Removed.
8819         (i386_get_longjmp_target): New function.
8820         (default_struct_convention, pcc_struct_convention,
8821         reg_struct_convention, valid_conventions, struct_convention): New
8822         variables.
8823         (i386_use_struct_convention): New function.
8824         (i386v4_sigtramp_saved_pc): Renamed to
8825         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8826         (i386_pc_in_sigtramp): New function.
8827         (i386_abi_names): Removed.
8828         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8829         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8830         Removed.
8831         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8832         i386_gdbarch_register_os_abi): Removed.
8833         (struct i386_abi_handler): Removed.
8834         (i386_abi_handler_list): Removed.
8835         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8836         functions.
8837         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8838         i386_nw_init_abi): New functions.
8839         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8840         Use set_gdbarch_xxx() calls instead of relying on macros for a
8841         number of calls.
8842         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8843         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8844         Register the various architecture variants defined in this file.
8845
8846 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8847
8848         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8849         (struct main_type): Remove arg_types member.  Update comments for
8850         struct field.
8851         (TYPE_ARG_TYPES): Remove.
8852         (TYPE_FN_FIELD_ARGS): Update.
8853         (smash_to_method_type): Update prototype.
8854
8855         * c-typeprint.c (cp_type_print_method_args): Take method type
8856         instead of argument list.  Use new argument layout.  Simplify.
8857         (c_type_print_args): Use new argument layout.  Simplify.
8858         (c_type_print_base): Update call to cp_type_print_method_args.
8859         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8860         argument; use die->type instead.  Update call to
8861         smash_to_method_type.
8862         (read_structure_scope): Update call to dwarf2_add_member_fn.
8863         * gdbtypes.c (allocate_stub_method): Update comment.
8864         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8865         Use new argument layout.
8866         (check_stub_method): Use new argument layout.  Don't count
8867         void as an argument.
8868         (print_arg_types): Update comments.  Use new argument layout.
8869         (recursive_dump_type): Don't print arg_types member.
8870         * hpread.c (hpread_read_struct_type): Use new argument layout.
8871         (fixup_class_method_type): Likewise.
8872         (hpread_type_lookup): Likewise.
8873         * stabsread.c (read_type): Update calls to read_args and
8874         smash_to_method_type.
8875         (read_args): Use new argument layout.  Simplify.
8876         * valops.c (typecmp): Use new argument layout.  Update parameters
8877         and comments.  Simplify.
8878         (hand_function_call): Use new argument layout.
8879         (search_struct_method): Update call to typecmp.
8880         (find_overload_match): Use new argument layout.
8881
8882 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8883
8884         * NEWS: Mention multithreaded debug support for gdbserver.
8885
8886 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8887
8888         * MAINTAINERS: Mention NEWS.
8889
8890 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8891
8892         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8893         (struct mips_objfile_private, compare_pdr_entries): New.
8894         (non_heuristic_proc_desc): Read the ".pdr" section if it
8895         is present.
8896
8897 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8898
8899         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8900         (arm_debug): New static variable.
8901         (_initialize_arm_tdep): Add ``set debug arm'' command.
8902
8903 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8904
8905         * Makefile.in (sim_arm_h): Define.
8906         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8907         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8908         (arm_register_sim_regno): New function, map an internal REGNUM
8909         onto a simulator register number.
8910         (arm_gdbarch_init): Set register_sim_regno.
8911
8912 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8913
8914         * MAINTAINERS: Add self.
8915
8916 2002-06-11  Jim Blandy  <jimb@redhat.com>
8917
8918         * source.c (source_info): Mention whether the symtab has
8919         information about preprocessor macros.
8920
8921         Call the command `info macro', not `show macro'.
8922         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8923         Fix error message.
8924         (_initialize_macrocmd): Register `info_macro_command' in
8925         `infolist', not `showlist'.
8926
8927 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8928
8929         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8930         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8931         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8932         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8933         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8934         unconditionally.
8935         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8936         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8937         (_initialize_mips_tdep): Remove dead code.
8938         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8939         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8940         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8941         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8942         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8943         MIPS_LAST_FP_ARG_REGNUM): Remove.
8944
8945 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8946
8947         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8948         (unwind_tmp_obstack_free, parse_frame_info)
8949         (update_context, cfi_read_fp, cfi_write_fp)
8950         (cfi_frame_chain, cfi_init_extra_frame_info)
8951         (cfi_virtual_frame_pointer): Use the above function.
8952         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8953
8954 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8955
8956         * v850-tdep.c (v850_type_is_scalar): New function.
8957         (v850_use_struct_convention): Match current gcc implementation
8958         as close as possible.
8959         (v850_push_arguments): Fix stack_offset handling.  Don't write
8960         struct_addr into register.  This is done by v850_store_struct_return.
8961         (v850_extract_return_value): Care for structs.
8962         (v850_store_return_value): Ditto.
8963         (v850_store_struct_return): Actually write address.
8964
8965 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8966
8967         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8968         without debug information too.
8969
8970 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8971
8972         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8973         Make multi-arch pure.
8974         * gdbarch.h, gdbarch.c: Re-generate.
8975         * arm-tdep.c (arm_print_float_info): Update.
8976         * arch-utils.h (default_print_float_info): Update.
8977         * arch-utils.c (default_print_float_info): Update.
8978         * infcmd.c (float_info): Update call.
8979
8980 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8981
8982         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8983         the front of the initialize list.
8984
8985 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8986
8987         * infrun.c (struct inferior_status): Replace fields
8988         selected_frame_address and selected_level with field
8989         selected_frame_id.
8990         (save_inferior_status): Update.  Use get_frame_id.
8991         (struct restore_selected_frame_args): Delete.
8992         (restore_selected_frame): Update.  Use frame_find_by_id.
8993         (restore_inferior_status): Update.
8994
8995         * breakpoint.h (struct breakpoint): Change type of
8996         watchpoint_frame to frame_id.
8997         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8998         call to get_current_frame.
8999         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
9000         get_current_frame.
9001         (watchpoint_check): Use frame_find_by_id.
9002
9003         * frame.h (record_selected_frame): Delete declaration.
9004         * stack.c (record_selected_frame): Delete function.
9005         
9006         * frame.h (struct frame_id): Define.
9007         (get_frame_id): Declare.
9008         (frame_find_by_id): Declare.
9009         * frame.c (frame_find_by_id): New function.
9010         (get_frame_id): New function.
9011
9012 2002-06-10  Andrey Volkov <avolkov@transas.com>
9013
9014         * ser-e7kpc.c: Fix duplicated define and call of 
9015         _initialize_ser_e7000pc
9016             
9017 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9018
9019         * signals/signals.c (target_signal_from_host): Fix #ifdef
9020         SIGRTMIN case.
9021         (do_target_signal_to_host): Likewise.
9022
9023 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9024
9025         * mips-tdep.c (mips_find_abi_section): New function.
9026         (mips_gdbarch_init): Call it.
9027
9028 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9029
9030         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9031         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9032         after Andrew's 2002-06-08 gdbarch change.
9033
9034 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9035
9036         * i386-linux-nat.c (suppy_gregset): Don't supply
9037         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9038         register cache.
9039         (fill_gregset): Don't fetch it under the same circumstances.
9040
9041 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9042
9043         * Makefile.in (callback_h): Define.
9044         (remote_sim_h): Update path to remote-sim.h.
9045         (remote-rdp.o): Add $(callback_h).
9046         (remote-sim.o): Use $(callback_h).
9047         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9048         * remote-rdp.c: Include "gdb/callback.h".
9049
9050 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9051
9052         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9053         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9054
9055 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9056
9057         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9058         * rdi-share/serpardr.c: Ditto.
9059         * rdi-share/unixcomm.c: Ditto.
9060         * rdi-share/serdrv.c: Ditto.
9061         * rdi-share/hostchan.h: Ditto.
9062         * rdi-share/hostchan.c: Ditto.
9063         * rdi-share/host.h: Ditto.
9064         * rdi-share/devsw.c: Ditto.
9065
9066         * objfiles.h: Change type of obj_private to void pointer.
9067         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9068         strcmp instead of STREQ, use LONGEST, do not use PTR
9069         * somsolib.c: Ditto.
9070
9071         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9072         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9073         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9074
9075 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9076
9077         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9078         (default_get_saved_register): Delete function.
9079         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9080         generic_unwind_get_saved_register.
9081         * gdbarch.h, gdbarch.c: Re-generate.
9082         
9083 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9084
9085         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9086         generic_func_frame_chain_valid.
9087         * gdbarch.h, gdbarch.c: Re-generate.
9088         * blockframe.c (generic_func_frame_chain_valid): Only check
9089         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9090         passing FP to PC_IN_CALL_DUMMY.
9091         Fix PR gdb/360.
9092
9093 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9094
9095         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9096         (register_gdbarch_data): Initialize init_p.
9097         (gdbarch_data): Initialize data pointer using the init function.
9098         (init_gdbarch_data): Delete function.
9099         (gdbarch_update_p): Update.
9100         (initialize_non_multiarch): Update.
9101         (struct gdbarch): Add field initialized_p.
9102         * gdbarch.h, gdbarch.c: Re-generate.
9103
9104 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9105
9106         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9107         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9108         better do the things actually here.
9109         * x86-64-tdep.c (x86_64_register_name2nr): New.
9110         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9111         (x86_64_gdbarch_init): Respect the above change.
9112         * x86-64-tdep.h (x86_64_register_name2nr)
9113         (x86_64_register_nr2name): Add prototypes.
9114         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9115
9116 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9117
9118         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9119         Delete extra braces and re-indent.
9120         (d10v_store_return_value): Char return values
9121         must be shifted over by one byte in R0.
9122         (d10v_extract_return_value): Delete extra braces, re-indent.
9123
9124 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9125
9126         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9127         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9128         (d10v_integer_to_address): Rewrite.
9129         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9130         the d10v specific functions which take care of converting to the
9131         correct space.
9132
9133 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9134
9135         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9136         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9137
9138 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9139
9140         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9141         includes.
9142         * config/tm-linux.h: Ditto.
9143         * config/alpha/tm-alphalinux.h: Ditto.
9144         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9145         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9146         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9147         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9148         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9149         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9150         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9151         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9152         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9153         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9154         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9155         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9156         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9157         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9158         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9159         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9160         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9161         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9162         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9163         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9164         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9165         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9166         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9167         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9168         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9169         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9170         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9171         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9172         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9173         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9174         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9175         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9176         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9177         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9178         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9179         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9180         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9181
9182 2002-05-04  Aidan Skinner <aidan@velvet.net>
9183
9184         * ada-exp.tab.c: New file
9185         * ada-exp.y: New file
9186         * ada-lang.c: New file
9187         * ada-lang.h: New file
9188         * ada-lex.c: New file
9189         * ada-lex.l: New file
9190         * ada-tasks.c: New file
9191         * ada-typeprint.c: New file
9192         * ada-valprint.c: New file
9193         
9194 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9195
9196         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9197         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9198
9199 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9200
9201         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9202         insetead of ppc-linux-tdep.o.
9203         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9204         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9205
9206 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9207
9208         2002-05-07 Christian Groessler <chris@groessler.org>
9209         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9210         bit register contents for little endian hosts.
9211
9212 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9213
9214         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9215         any maintainer.
9216
9217 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9218
9219         * gdbarch.h: Regenerate.
9220
9221 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9222
9223         * MAINTAINERS: Add everyone to write-after-approval list.
9224
9225 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9226
9227         * stack.c (frame_info): Use frame_register_unwind instead of
9228         saved_regs.  Mention when the SP is on the stack or in a register.
9229
9230         * frame.h (frame_register_unwind_ftype): Define.  Document.
9231         (struct frame_info): Add field register_unwind and
9232         register_unwind_cache.
9233         (frame_register_unwind): Declare.
9234         (generic_unwind_get_saved_register): Declare.
9235
9236         * frame.c (frame_register_unwind): New function.
9237         (generic_unwind_get_saved_register): New function.
9238
9239         * blockframe.c (generic_call_dummy_register_unwind): New function.
9240         (frame_saved_regs_register_unwind): New function.
9241         (set_unwind_by_pc): New function.
9242         (create_new_frame): New function.
9243         (get_prev_frame): New function.
9244
9245 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9246
9247         * a29k-share/: Delete directory.
9248         * remote-vx29k.c: Delete file.
9249
9250 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9251
9252         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9253         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9254
9255 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9256
9257         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9258         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9259         (sparc64nbsd-nat.o)
9260         (sparcnbsd-nat.o)
9261         (sparcnbsd-tdep.o): New dependency lists.
9262         * NEWS: Note new UltraSPARC NetBSD native configuration.
9263         * configure.host (sparc64-*-netbsd*): New host.
9264         * configure.tgt (sparc-*-netbsdelf*)
9265         (sparc-*-netbsd*): Set gdb_target to nbsd.
9266         (sparc64-*-netbsd*): New target.
9267         * sparc64nbsd-nat.c: New file.
9268         * sparcnbsd-nat.c: New file.
9269         * sparcnbsd-tdep.c: New file.
9270         * sparcnbsd-tdep.h: New file.
9271         * config/sparc/nbsd.mt: New file.
9272         * config/sparc/nbsd64.mh: New file.
9273         * config/sparc/nbsd64.mt: New file.
9274         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9275         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9276         (HOST_IPC): Remove.
9277         * config/sparc/nbsdaout.mt: Remove.
9278         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9279         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9280         (HOST_IPC): Remove.
9281         * config/sparc/nbsdelf.mt: Remove.
9282         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9283         sparc-nat.c compatiblity defines.
9284         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9285         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9286         * config/sparc/tm-nbsd64.h: New file.
9287         * config/sparc/tm-nbsdaout.h: Remove.
9288         * config/sparc/xm-nbsd.h: Remove.
9289
9290 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9291
9292         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9293         * sparc-tdep.c: Include osabi.h.
9294         (gdbarch_tdep): Add osabi member.
9295         (_initialize_sparc_tdep): Use gdbarch_register.
9296         (sparc_gdbarch_init): Use generic OS ABI framework.
9297         (sparc_dump_tdep): New function.
9298
9299 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9300
9301         * corefile.c (do_captured_read_memory_integer): Return non-zero
9302         result.
9303         (safe_read_memory_integer): Copy result of memory read when
9304         status is non-zero.  Also, add comments.
9305
9306 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9307
9308         * Makefile.in (ppc_tdep_h): Define.
9309         (ppc-linux-nat.o)
9310         (ppc-linux-tdep.o)
9311         (rs6000-tdep.o): Use $(ppc_tdep_h).
9312         (ppc-sysv-tdep.o)
9313         (ppcnbsd-nat.o)
9314         (ppcnbsd-tdep.o): New dependency lists.
9315         * ppc-tdep.h: Use generic OS ABI framework.
9316         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9317         (ppc_linux_init_abi): New functions.
9318         (ppc_sysv_abi_broken_use_struct_convention)
9319         (ppc_sysv_abi_use_struct_convention)
9320         (ppc_sysv_abi_push_arguments): Move to...
9321         * ppc-sysv-tdep.c: ...here.
9322         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9323         * rs6000-tdep.c (process_note_abi_tag_sections)
9324         (get_elfosabi): Remove.
9325         (rs6000_gdbarch_init): Use generic OS ABI framework.
9326         (rs6000_dump_tdep): New function.
9327         (_initialize_rs6000_tdep): Use gdbarch_register.
9328         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9329         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9330         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9331         of ppc-linux-tdep.o.
9332         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9333         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9334         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9335         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9336         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9337         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9338
9339 2002-05-29  Jim Blandy  <jimb@redhat.com>
9340
9341         * macroscope.c (default_macro_scope): Put `void' in empty argument
9342         list.
9343
9344 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9345
9346         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9347         * arch-utils.c: Include "sim-regno.h".
9348         * gdbarch.sh: Don't include "sim-regno.h".
9349         * gdbarch.h, gdbarch.c: Regenerate.
9350         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9351         here.
9352         * arch-utils.h (legacy_register_sim_regno): To here.
9353         * remote-sim.c (legacy_register_sim_regno): Move function from
9354         here.
9355         * arch-utils.c (legacy_register_sim_regno): To here.
9356
9357 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9358
9359         * sim-regno.h: New file.
9360         * Makefile.in (sim_regno_h): Define.
9361         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9362         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9363         (legacy_register_sim_regno): New function.
9364         (one2one_register_sim_regno): New function.
9365         (gdbsim_fetch_register): Rewrite.
9366         (gdbsim_store_register): Only store a register when
9367         REGISTER_SIM_REGNO is valid.
9368         * d10v-tdep.c: Include "sim-regno.h".
9369         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9370         (d10v_ts3_register_sim_regno): Ditto.
9371         * gdbarch.sh: Include "sim-regno.h".
9372         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9373         * gdbarch.h, gdbarch.c: Regenerate.
9374         * arch-utils.h (default_register_sim_regno): Delete declaration.
9375         * arch-utils.c (default_register_sim_regno): Delete function.
9376
9377 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9378
9379         * ppcnbsd-nat.c: Rewrite.
9380         * ppcnbsd-tdep.c: New file.
9381         * ppcnbsd-tdep.h: New file.
9382         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9383         solib.o, and solib-svr4.o.
9384         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9385         nbsd-tdep.o, and corelow.o.
9386
9387 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9388
9389         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9390         `tr' and `sed'.  Mention that `broken' targets are not expected to
9391         build.
9392
9393 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9394
9395         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9396         Let PC point right after the prologue before looking up symbols.
9397         
9398 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9399
9400         * i386-tdep.c (i386_register_virtual_type): Return 
9401         builtin_type_vec128i for SSE registers.
9402
9403         * gdbtypes.h (builtin_type_vec128i): Declare.
9404
9405         * gdbtypes.c (build_builtin_type_vec128i): New function.
9406         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9407         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9408         (build_gdbtypes): Initialize new builtin vector types.
9409         (_initialize_gdbtypes): Register new vector types with gdbarch.
9410
9411 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9412
9413         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9414         since it has been multi-arch'd.
9415         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9416         Move Alpha and VAX multi-arch news entries to same section
9417         as other multi-arch news.
9418
9419 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9420
9421         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9422         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9423         static.  Rename some register numbers to put them in ns32k-tdep
9424         private namespace.
9425         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9426         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9427         functions.
9428         (_initialize_ns32k_tdep): Use gdbarch_register.
9429         * ns32k-tdep.h: New file.
9430         * ns32knbsd-tdep.c: New file.
9431         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9432         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9433         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9434         REGISTER_BYTES, REGISTER_BYTE): Remove.
9435         * config/ns32k/tm-ns32k.h: New file.
9436         * config/ns32k/tm-umax.h: Remove.
9437
9438 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9439
9440         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9441         ns32k_store_struct_return, ns32k_extract_return_value,
9442         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9443         functions.
9444         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9445         ns32k_saved_pc_after_call.
9446         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9447         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9448         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9449         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9450         ns32k_extract_struct_value_address.
9451
9452 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9453
9454         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9455         ns32k_fix_call_dummy): New.
9456         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9457         ns32k_call_dummy_words.
9458         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9459         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9460         CALL_DUMMY_NARGS): Remove.
9461         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9462
9463 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9464
9465         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9466         ns32k_frame_saved_pc, ns32k_frame_args_address,
9467         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9468         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9469         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9470         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9471         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9472         (BREAKPOINT): Remove..
9473         (FRAME_CHAIN): Define as ns32k_frame_chain.
9474         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9475         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9476         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9477         (FRAME_FIND_SAVED_REGS): Remove.
9478         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9479         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9480         (POP_FRAME): Define as ns32k_pop_frame.
9481
9482 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9483
9484         * ns32k-tdep.c (ns32k_register_byte_32082,
9485         ns32k_register_byte_32382, ns32k_register_raw_size,
9486         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9487         functions.
9488         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9489         ns32k_register_byte_32382.
9490         * config/ns32k/tm-umax.h: Update copyright years.
9491         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9492         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9493         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9494         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9495         (ns32k_get_enter_addr): Fix prototype.
9496
9497 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9498
9499         * ns32k-tdep.c: Update copyright years.
9500         (ns32k_register_name_32082): New function.
9501         (ns32k_register_name_32382): Ditto.
9502         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9503         (REGISTER_NAME): Define as ns32k_register_name_32382.
9504         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9505         (REGISTER_NAME): Define as ns32k_register_name_32082.
9506
9507 2002-05-24  Jim Blandy  <jimb@redhat.com>
9508
9509         * dwarf2read.c (free_line_header): Use xfree, not free.
9510
9511 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9512
9513         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9514         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9515
9516 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9517
9518         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9519
9520 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9521
9522         From Ross Alexander at NEC Europe:
9523         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9524
9525 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9526
9527         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9528         for input, rather than parse_and_eval_address.  
9529
9530 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9531
9532         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9533         * Makefile.in (sim_d10v_h): Update definition.
9534
9535 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9536
9537         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9538         change `2002-05-22 Michael Snyder' below.
9539         (d10v_push_arguments): Ditto.
9540         (d10v_extract_return_value): Ditto.
9541
9542 2002-05-23  Jim Blandy  <jimb@redhat.com>
9543
9544         * macrotab.c (check_for_redefinition): Don't complain if the new
9545         definition is the same as the previous one.  Take more arguments
9546         to allow the comparison.
9547         (macro_define_object, macro_define_function): Pass more arguments
9548         to check_for_redefinition.
9549
9550 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9551
9552         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9553         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9554         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9555         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9556         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9557         Add a temp variable to save a call (and a memory read).
9558         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9559         if possible (so that PC_IN_CALL_DUMMY will work).
9560
9561 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9562
9563         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9564
9565 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9566
9567         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9568         fde->cie_ptr.
9569         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9570         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9571         so that frames of shared libraries are mapped correctly.
9572         (execute_stack_op): Change type of 'result' from ULONGEST to
9573         CORE_ADDR.
9574         
9575 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9576
9577         * config/alpha/tm-nbsd.h: Include solib.h.
9578
9579 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9580
9581         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9582         assumptions about the host's byte order.
9583
9584 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9585
9586         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9587         to dependency list.
9588         * alphanbsd-tdep.c: Include solib-svr4.h.
9589         * shnbsd-tdep.c: Ditto.
9590
9591 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9592
9593         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9594         nbsd-tdep.h to dependency list.
9595         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9596         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9597         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9598         nbsdaout.mh and nbsdelf.mh consistently.
9599         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9600         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9601         nbsdaout.mt and nbsdelf.mh consistently.
9602         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9603         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9604         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9605         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9606         a.out shared library stuff from here...
9607         * config/nm-nbsdaout.h: ...to here.
9608         * config/tm-nbsd.h: Remove.
9609         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9610         * config/arm/nbsd.mh: Remove.
9611         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9612         nbsd-tdep.o.
9613         * config/arm/nbsdaout.mh: New file. 
9614         * config/arm/nbsdelf.mh: New file.
9615         * config/arm/nm-nbsdaout.h: New file.
9616         * config/i386/nbsd.mh: Remove.
9617         * config/i386/nbsd.mt: Remove.
9618         * config/i386/nbsdaout.mh: New file.
9619         * config/i386/nbsdaout.mt: New file.
9620         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9621         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9622         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9623         i386_register_u_addr): Remove.
9624         * config/i386/nm-nbsdaout.h: New file.
9625         * config/i386/nm-nbsdelf.h: Remove.
9626         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9627         (USE_STRUCT_CONVENTION): Remove.
9628         * config/i386/tm-nbsdaout.h: New file.
9629         * config/i386/tm-nbsdelf.h: Remove.
9630         * config/m68k/nbsd.mh: Remove.
9631         * config/m68k/nbsd.mt: Remove.
9632         * config/m68k/nbsdaout.mh: New file.
9633         * config/m68k/nbsdaout.mt: New file. 
9634         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9635         * config/m68k/nm-nbsdaout.h: New file.
9636         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9637         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9638         * config/ns32k/nbsd.mh: Remove.
9639         * config/ns32k/nbsd.mt: Remove. 
9640         * config/ns32k/nbsdaout.mh: New file.
9641         * config/ns32k/nbsdaout.mt: New file.
9642         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9643         * config/ns32k/nm-nbsdaout.h: New file.
9644         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9645         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9646         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9647         (SVR4_SHARED_LIBS): Remove.
9648         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9649         * config/sparc/nbsd.mh: Remove.
9650         * config/sparc/nbsd.mt: Remove.
9651         * config/sparc/nbsdaout.mh: New file.
9652         * config/sparc/nbsdaout.mt: New file.
9653         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9654         * config/sparc/nbsdelf.mt: New file.
9655         * config/sparc/nm-nbsdaout.h: New file.   
9656         * config/sparc/nm-nbsdelf.h: Remove.
9657         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9658         * config/sparc/tm-nbsdaout.h: New file.
9659
9660 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9661
9662         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9663         mipsnbsd-tdep.c
9664         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9665
9666 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9667
9668         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9669         shnbsd-nat.c.
9670         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9671
9672 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9673
9674         * NEWS: Note new MIPS NetBSD native configuration. 
9675         * configure.host (mips*-*-netbsd*): New host. 
9676         * configure.tgt (mips*-*-netbsd*): New target. 
9677         * mipsnbsd-nat.c: New file.
9678         * mipsnbsd-tdep.c: New file.
9679         * mipsnbsd-tdep.h: New file.
9680         * config/mips/nbsd.mh: New file.
9681         * config/mips/nbsd.mt: New file.
9682         * config/mips/nm-nbsd.h: New file.
9683         * config/mips/tm-nbsd.h: New file.
9684
9685 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9686
9687         * Makefile.in (SFILES): Add osabi.c.
9688         (COMMON_OBS): Add osabi.o.
9689         (osabi.o): New dependency list.
9690         * osabi.c: New file.
9691         * osabi.h: New file.
9692         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9693
9694         * Makefile.in (alpha_tdep_h): Define and use instead of
9695         alpha-tdep.h.
9696         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9697         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9698         Remove.
9699         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9700         * alpha-tdep.h: Include osabi.h.
9701         (alpha_abi): Remove.
9702         (gdbarch_tdep): Use generic OS ABI framework.
9703         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9704         gdbarch_register_osabi.
9705         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9706         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9707         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9708
9709         * Makefile.in (sh_tdep_h): Add osabi.h.
9710         * sh-tdep.h (sh_osabi): Remove.
9711         (gdbarch_tdep): Use generic OS ABI framework.
9712         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9713         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9714         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9715         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9716
9717         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9718         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9719         gdbarch_register_osabi.
9720         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9721         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9722         (get_elfosabi): Rename to...
9723         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9724         ABI framework support routines.
9725         (arm_gdbarch_init): Use generic OS ABI framework.
9726         (arm_dump_tdep): Likewise.
9727         (_initialize_arm_tdep): Likewise.
9728         * arm-tdep.h: Include osabi.h.
9729         (arm_abi): Remove.
9730         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9731         osabi member.
9732         (arm_gdbarch_register_os_abi): Remove prototype.
9733         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9734         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9735
9736         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9737         * mips-tdep.c: Include osabi.h.
9738         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9739         OS ABI framework.
9740
9741 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9742
9743         * h8300-tdep.c: Fix formatting.
9744
9745 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9746
9747         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9748         printing vector registers.
9749
9750 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9751
9752         From Fernando Nasser:
9753         * remote.c (remote_async_open_1): Re-throw the exception when the
9754         connection fails.
9755         (remote_cisco_open): Ditto.
9756         (remote_open_1): Ditto.
9757
9758 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9759
9760         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9761         (remote_start_remote): Add uiout parameter.  Pass through to
9762         remote_start_remote_dummy.
9763         (remote_open_1): Use catch_exception instead of catch_errors.
9764         (remote_async_open_1): Ditto.
9765         (remote_cisco_open): Ditto.
9766
9767 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9768
9769         * remote.c (remote_start_remote): Replace PTR with void pointer.
9770         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9771         static.
9772
9773 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9774
9775         * gdb_indent.sh: Allow the script to be run in the sim directory.
9776
9777 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9778
9779         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9780         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9781
9782         * corelow.c (core_open): Only call set_gdbarch_from_file if
9783         exec_bfd is NULL.
9784
9785 2002-05-17  Andrey Volkov <avolkov@transas.com>
9786
9787         * h8300-tdep.c: Add support of EXR register
9788         * config/h8300/tm-h8300.h: Ditto. 
9789         
9790 2002-05-17  Andrey Volkov <avolkov@transas.com>
9791
9792         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9793         
9794 2002-05-17  Andrey Volkov <avolkov@transas.com>
9795
9796         * h8300-tdep.c: Change literal regnums to REGNO.
9797         
9798 2002-05-17  Jim Blandy  <jimb@redhat.com>
9799
9800         * NEWS: Note addition of macro support.
9801
9802         Expand preprocessor macros in C expressions.
9803         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9804         (scan_macro_expansion, scanning_macro_expansion,
9805         finished_macro_expansion): New function declarations.
9806         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9807         variable declarations.
9808         * parser-defs.h (expression_context_pc): New declaration.
9809         * parse.c (expression_context_pc): New variable.
9810         (parse_exp_1): Set expression_context_pc, as well as
9811         expression_context_block.
9812         * c-exp.y (yylex): If we're not already reading the result of a
9813         macro expansion, try to macro-expand the next token.  When we're
9814         done scanning a macro expansion, switch back to the mainline text.
9815         Commas and `if's in a macro's expansion don't terminate the input.
9816         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9817         (macro_original_text, macro_expanded_text,
9818         expression_macro_lookup_func, expression_macro_lookup_baton): New
9819         variables.
9820         (scan_macro_expansion, scanning_macro_expansion,
9821         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9822         c_preprocess_and_parse): New functions.
9823         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9824         c_preprocess_and_parse, instead of c_parse.
9825         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9826         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9827
9828 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9829
9830         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9831         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9832         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9833
9834 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9835
9836         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9837
9838 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9839
9840         * Makefile.in (sh_tdep_h): Define and use.
9841         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9842         register enum): Move to...
9843         * * sh-tdep.h: ...here.
9844         * sh-tdep.c: Include sh-tdep.h.
9845         * sh3-rom.c: Likewise.
9846         * shnbsd-tdep.c: Likewise.
9847
9848 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9849
9850         * arm-tdep.c: Spelling fix in comment.
9851
9852 2002-05-16  Jim Blandy  <jimb@redhat.com>
9853
9854         Add commands for manually expanding macros and showing their
9855         definitions.
9856         * macrocmd.c, macroscope.c, macroscope.h: New files.
9857         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9858         (macroscope_h): New variable.
9859         (HFILES_NO_SRCDIR): Add macroscope.h.
9860         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9861         (macroscope.o, macrocmd.o): New rules.
9862
9863         Teach the Dwarf 2 reader to read macro information.
9864         * dwarf2read.c: #include "macrotab.h".
9865         (dwarf_macinfo_buffer): New variable.
9866         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9867         dwarf_macinfo_size.
9868         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9869         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9870         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9871         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9872         dwarf2_macro_spaces_in_definition): New complaints.
9873         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9874         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9875         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9876         the partial symbol table.
9877         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9878         from what's recorded in the partial symbol table.
9879         (read_file_scope): If the compilation unit has a
9880         `DW_AT_macro_info' attribute, read its macro information.
9881         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9882
9883 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9884
9885         Fix PR gdb/546
9886         * ser-tcp.c: Don't include <netinet/udp.h>.
9887
9888 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9889
9890         * MAINTAINERS: Update my email address.
9891
9892 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9893
9894         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9895         include file of the same name.
9896
9897 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9898
9899         * configure.tgt: Mark v850 as multi-arched.
9900         * config/v850/tm-v850.h: Remove file.
9901         * config/v850/v850.mt: Eliminate TM_FILE.
9902
9903 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9904
9905         * v850-tdep.c: Full multi-arch.
9906         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9907         Define GDB_MULTI_ARCH to 2.
9908
9909 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9910
9911         * p-exp.y (current_type): New static variable.
9912         Carries the type of the expression at the position that is parsed.
9913         (push_current_type, pop_current_type): Two new functions. Used
9914         to store/restore current_type in expression on specific tokens.
9915         (search_field): New static variable. Set to one after parsing a point
9916         as at that point only a FIELDNAME token should be searched.
9917         (FIELDNAME): New token. After a point only a token belonging to 
9918         current_type type definition is allowed.
9919         (all over token rules): reset and change current_type according
9920         to rules.
9921         (exp '[' rule): insert implicit array index field if
9922         exp is a pascal string type.
9923
9924 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9925
9926         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9927         frame info.  Use frame_info's saved_regs instead of matching member
9928         in extra_frame_info throughout.
9929         (v850_frame_init_saved_regs): New function.
9930         (v850_init_extra_frame_info): Move most functionality into
9931         v850_frame_init_saved_regs().
9932         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9933         (v850_frame_find_saved_regs): Remove declaration.
9934         (FRAME_FIND_SAVED_REGS): Remove definition.
9935         (v850_frame_init_saved_regs): Add declaration.
9936         (FRAME_INIT_SAVED_REGS): Add definition.
9937
9938 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9939
9940         * v850-tdep.c: Begin multi-arch'ing v850.
9941         (v850_target_architecture_hook): Remove function.
9942         (v850_gdbarch_init): New function.  Add code previously in
9943         v850_target_architecture_hook().
9944         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9945         Call register_gdbarch_init() instead.
9946
9947 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9948
9949         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9950         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9951         (fixup_class_method_type): Likewise.
9952
9953 2002-05-15  Jim Blandy  <jimb@redhat.com>
9954
9955         Add macro structures to GDB's symbol tables.  Nobody puts anything
9956         in them yet.
9957         * symtab.h (struct symtab): New member: `macro_table'.
9958         * buildsym.h (pending_macros): New global variable.
9959         * buildsym.c: #include "macrotab.h".
9960         (buildsym_init): Initialize `pending_macros'.
9961         (end_symtab): If we found macro information while reading a CU's
9962         debugging info, do build a symtab structure for it.  Make the
9963         symtab point to the macro information, and clear the
9964         `pending_macros' pointer which held it while we were reading the
9965         debug info.
9966         (really_free_pendings): Free any pending macro table.
9967         * objfiles.h (struct objfile): New member: `macro_cache'.
9968         * objfiles.c (allocate_objfile): Set allocate and free functions
9969         for the macro cache's objstack.
9970         (free_objfile): Empty the macro cache's obstack.
9971         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9972         set new allocate and free functions for it.
9973         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9974         free functions for the macro cache's objstack.  (Why is this
9975         function building its own objfile?)
9976         * symmisc.c (print_objfile_statistics): Print statistics on the
9977         macro bcache.
9978         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9979
9980 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9981
9982         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9983         (REGISTER_U_ADDR): Delete definition.
9984         (arm_register_u_addr): Delete declaration.
9985
9986 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9987
9988         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9989         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9990
9991 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9992
9993         * regcache.c (register_valid): Revise comments refering to "Not
9994         available" and "unavailable".
9995         * frame.c (frame_register_read): Ditto.
9996         * findvar.c (value_of_register): Ditto.
9997
9998 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9999
10000         * Makefile.in (remote_sim_h): Replace remote-sim_h.
10001         (remote-sim.o): Update dependencies.
10002         (d10v-tdep.o): Specify dependencies.
10003         (sim_d10v_h): Define.
10004
10005 2002-05-14  Jim Blandy  <jimb@redhat.com>
10006
10007         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10008         * macrotab.c (macro_lookup_inclusion, find_definition,
10009         new_macro_table): Same.
10010         
10011         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10012         not `! strcmp ()'.  This is a dubious improvement.
10013         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10014
10015         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10016         although it's not necessary, to avoid a warning.
10017
10018 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10019
10020         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10021         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10022         TYPE_INSTANCE_FLAGS.
10023         (struct main_type): New.
10024         (struct type): Move most members to struct main_type.  Change
10025         cv_type and as_type to new type_chain member.  Add instance_flags.
10026         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10027         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10028         (finish_cv_type): Remove prototype.
10029         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10030         Set TYPE_CHAIN.
10031         (alloc_type_instance): New function.
10032         (smash_type): New function.
10033         (make_pointer_type, make_reference_type, make_function_type)
10034         (smash_to_member_type, smash_to_method_type): Call smash_type.
10035         (make_qualified_type): New function.
10036         (make_type_with_address_space): Call make_qualified_type.
10037         (make_cv_type): Likewise.
10038         (finish_cv_type): Remove unnecessary function.
10039         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10040         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10041         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10042         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10043         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10044         * hpread.c (hpread_read_struct_type): Likewise.
10045         * stabsread.c (read_struct_type): Likewise.
10046
10047 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10048
10049         * configure.tgt: Add a catch all sh* target, for cases like
10050         sh[2,3,4]-elf and sh-hms.
10051
10052 2002-05-14  Keith Seitz  <keiths@redhat.com>
10053
10054         * event-loop.c (create_file_handler): Don't do anything but
10055         update data when we are given a fd which we are already
10056         monitoring.
10057
10058 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10059
10060         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10061         (update_context): Use __func__ in warnings.
10062         
10063 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10064
10065         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10066         and tcp_close to net_open and net_close.
10067         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10068         using UDP if requested.  Don't try to disable Nagle on UDP
10069         sockets.
10070         * remote.c (remote_serial_open): New function.  Warn about UDP.
10071         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10072
10073 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10074
10075         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10076
10077 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10078
10079         * configure.tgt: Remove sh-hms target.
10080         * MAINTAINERS: Don't list sh-hms as a separate target.
10081
10082 2002-05-13  Jim Blandy  <jimb@redhat.com>
10083
10084         Add first preprocessor macro-expansion files.
10085         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10086         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10087         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10088         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10089         (COMMON_OBS): Add macrotab.o, macroexp.o.
10090         (macroexp.o, macrotab.o): New rules.
10091
10092 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10093
10094         * config/m88k/tm-m88k.h: Update copyright.
10095         (m88k_target_write_pc): Declare
10096         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10097         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10098         (SHIFT_INST_REGS): Update definition.
10099         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10100         using old definition of TARGET_WRITE_PC.
10101         * regcache.c (generic_target_write_pc): Delete code handling
10102         NNPC_REGNUM.
10103         * gdbarch.sh (NNPC_REGNUM): Delete.
10104         * gdbarch.h, gdbarch.c: Regenerate.
10105
10106 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10107
10108         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10109         builtin reg number.
10110
10111 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10112
10113         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10114         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10115         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10116         access macros.
10117         * c-typeprint.c (cp_type_print_method_args): Likewise.
10118         (c_type_print_args): Likewise.
10119         * d10v-tdep.c (d10v_push_arguments): Likewise.
10120         (d10v_extract_return_value): Likewise.
10121         * expprint.c (print_subexp): Likewise.
10122         * gdbtypes.c (lookup_primitive_typename): Likewise.
10123         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10124         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10125         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10126         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10127         (TYPE_VECTOR): Likewise.
10128         * hpread.c (hpread_read_struct_type)
10129         (fix_static_member_physnames, fixup_class_method_type)
10130         (hpread_type_lookup): Likewise.
10131         * mdebugread.c (parse_symbol, parse_type): Likewise.
10132         * p-lang.c (is_pascal_string_type): Likewise.
10133         * valops.c (hand_function_call): Likewise.
10134         * x86-64-tdep.c (classify_argument): Likewise.
10135
10136         * hpread.c (hpread_read_function_type)
10137         (hpread_read_doc_function_type): Call replace_type.
10138         * dstread.c (create_new_type): Delete.
10139         (decode_dst_structure, process_dst_function): Call alloc_type.
10140         Use type access macros.
10141
10142 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10143
10144         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10145         the're not supported by the current architecture.
10146         (i387_fill_fxsave): Likewise.
10147
10148 2002-05-12  Fred Fish  <fnf@redhat.com>
10149
10150         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10151         sect_index_xxx members to index the first slot in section_offsets
10152         if all of the section_offsets are zero.
10153
10154 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10155
10156         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10157         checked in with last change.
10158
10159 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10160
10161         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10162         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10163         config.sub.
10164
10165 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10166
10167         * Makefile.in: Update dependencies.
10168
10169 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10170
10171         * language.c (local_hex_string_custom): Simplify.  Do not depend
10172         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10173
10174         * memattr.c (mem_info_command): Replace calls to
10175         longest_local_hex_string and longest_local_hex_string_custom.
10176         * buildsym.c (make_blockvector): Ditto.
10177         * solib.c (info_sharedlibrary_command): Ditto.
10178         * tracepoint.c (tracepoints_info): Ditto.
10179         * symtab.c (print_msymbol_info): Ditto.
10180
10181         * language.c (local_hex_string): Delete.
10182         (local_hex_string_custom): Delete.
10183         (longest_local_hex_string): Rename to local_hex_string.
10184         (longest_local_hex_string_custom): Rename to
10185         local_hex_string_custom.
10186         * language.h (local_hex_string): Change parameter type to LONGEST.
10187         (local_hex_string_custom): Ditto.
10188         (longest_local_hex_string): Delete declaration.
10189         (longest_local_hex_string_custom): Ditto.
10190
10191         * solib.c: Update copyright.
10192         * memattr.c: Update copyright.
10193         
10194 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10195
10196         * arch-utils.h (legacy_register_to_value): Declare.
10197         (legacy_value_to_register): Declare.
10198         (legacy_convert_register_p): Declare.
10199         * arch-utils.c (legacy_register_to_value): New function.
10200         (legacy_value_to_register): New function.
10201         (legacy_convert_register_p): New function.
10202
10203         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10204         (VALUE_TO_REGISTER): Define.
10205         (CONVERT_REGISTER_P): Define.
10206         * gdbarch.h, gdbarch.c: Regenerate.
10207
10208         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10209         VALUE_TO_REGISTER.
10210         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10211         CONVERT_REGISTER_P.
10212
10213 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10214             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10215
10216         * Makefile.in: Update dependencies for valops.c.
10217         * valops.c: Include "gdb_assert.h".
10218         (typecmp): Skip THIS parameter to methods.
10219         (find_method_list): Remove static_memfuncp argument,
10220         update callers.  Check for stub methods.
10221         (find_value_oload_method_list): Don't set *static_memfuncp.
10222         (find_overload_match): Don't check for stub methods.  Assert
10223         that methods are not stubbed.  Handle static methods.
10224         (value_find_oload_method_list): Remove static_memfuncp argument.
10225         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10226         to the argument list for static stub methods.
10227         * value.h (value_find_oload_method_list): Update prototype.
10228
10229 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10230
10231         * arch-utils.h (generic_register_size): Declare.
10232         (generic_register_raw_size, generic_register_virtual_size): Delete
10233         declarations.
10234         * arch-utils.c (generic_register_raw_size): Delete.
10235         (generic_register_size): New function.
10236         (generic_register_virtual_size): Delete.
10237
10238         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10239         default generic_register_size.
10240         * gdbarch.h, gdbarch.c: Re-generate.
10241         
10242         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10243         register_virtual_size.
10244         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10245         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10246
10247 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10248
10249         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10250         * gdbarch.h, gdbarch.c: Regenerate.
10251         * gnu-v3-abi.c: Update copyright.
10252         (vtable_address_point_offset): Update.
10253         (gnuv3_rtti_type): Update.
10254         (gnuv3_baseclass_offset): Update.
10255         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10256         (init_fetch_link_map_offsets): Update.
10257         * remote.c (get_remote_state): Update.
10258         
10259 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10260
10261         * TODO: Remove value_headof/value_from_vtable_info comment.
10262         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10263         * values.c (value_headof, value_from_vtable_info): Delete.
10264         * value.h (value_from_vtable_info): Delete prototype.
10265
10266 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10267
10268         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10269         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10270         $(gdb_regex_h).
10271         (gdb_assert_h): Define.
10272         (gdb_wait_h): Define.
10273         (gdb_regex_h): Define.
10274
10275 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10276
10277         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10278         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10279
10280 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10281
10282         * nbsd-tdep.c: Fix comment.
10283
10284 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10285
10286         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10287         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10288         (nbsd-tdep.o): New dependency list.
10289         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10290         nbsd-tdep.h.
10291         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10292         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10293         * nbsd-tdep.c: New file.
10294         * nbsd-tdep.h: New file.
10295         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10296         nbsd-tdep.h.
10297         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10298         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10299         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10300         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10301
10302 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10303
10304         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10305         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10306         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10307         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10308         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10309         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10310
10311 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10312
10313         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10314         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10315         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10316         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10317         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10318         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10319         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10320
10321 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10322
10323         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10324         fetch_elfcore_registers to...
10325         * i386nbsd-tdep.c: ...here.
10326         (i386nbsd_use_struct_convention): Rename to...
10327         (i386nbsd_aout_use_struct_convention): ...this.
10328         (i386nbsd_supply_reg): New function.
10329         (i386nbsd_fill_reg): New function.
10330         (fetch_core_registers): Use i386nbsd_supply_reg.
10331         (fetch_elfcore_registers): Likewise.
10332         (_initialize_i386nbsd_tdep): New function.
10333         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10334         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10335         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10336         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10337         (i386nbsd_aout_use_struct_convention): ...this.
10338
10339 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10340
10341         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10342         (store_inferior_registers): Use shnbsd_fill_reg.
10343         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10344         sh_nbsd_supply_register): Collapse into...
10345         (shnbsd_supply_reg): ...this.
10346         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10347         (shnbsd_fill_reg): ...this.
10348         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10349         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10350         (fetch_core_registers): Use shnbsd_supply_reg.
10351         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10352         (sh_nbsd_core_fns): Rename to...
10353         (shnbsd_core_fns): ...this.
10354         (sh_nbsd_elfcore_fns): Rename to...
10355         (shnbsd_elfcore_fns): ...this.
10356         (sh_nbsd_init_abi): Rename to...
10357         (shnbsd_init_abi): ...this.
10358         (_initialize_sh_nbsd_tdep): Rename to...
10359         (_initialize_shnbsd_tdep): ...this.
10360         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10361         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10362         sh_nbsd_fill_register): Remove prototypes.
10363         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10364
10365 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10366
10367         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10368         (i387-nat.o): Delete dependency list.
10369         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10370         (x86-64-linux-nat.o): Likewise.
10371         * i387-nat.c: Delete file, moving contents to...
10372         * i387-tdep.c: ...here.
10373         * i387-nat.h: Rename...
10374         * i387-tdep.h: ...to this.
10375         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10376         * i386-linux-nat.c: Likewise.
10377         * i386bsd-nat.c: Likewise.
10378         * i386gnu-nat.c: Likewise.
10379         * i386nbsd-nat.c: Likewise.
10380         * i386v4-nat.c: Likewise.
10381         * x86-64-linux-nat.c: Likewise.
10382         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10383         * config/i386/go32.mh (NATDEPFILES): Likewise.
10384         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10385         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10386         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10387         * config/i386/linux.mh (NATDEPFILES): Likewise.
10388         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10389         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10390         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10391         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10392
10393 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10394
10395         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10396         (alphanbsd-nat.o): Remove dependency list.
10397         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10398         * alphanbsd-nat.c: Delete.  Contents moved to...
10399         * alphanbsd-tdep.c: ...here.
10400         (_initialize_alphanbsd_tdep): Register core functions.
10401         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10402
10403 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10404
10405         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10406         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10407         (alphanbsd-nat.o): Likewise.
10408         (alphabsd-tdep.o): New dependency list.
10409         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10410         (fill_gregset): Use alphabsd_fill_reg.
10411         (supply_fpregset): Use alphabsd_supply_fpreg.
10412         (fill_fpregset): Use alphabsd_fill_fpreg.
10413         (fetch_inferior_registers): Use struct reg and struct fpreg
10414         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10415         and alphabsd_supply_fpreg.
10416         (store_inferior_registers): Use struct reg and struct fpreg
10417         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10418         and alphabsd_fill_fpreg.
10419         * alphabsd-tdep.c: New file.
10420         * alphabsd-tdep.h: New file.
10421         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10422         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10423         alphabsd_supply_fpreg.
10424         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10425         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10426
10427 2002-05-11  Eric Christopher  <echristo@redhat.com>
10428
10429         * mips-tdep.c (mips_double_register_type): Fix thinko.
10430         (mips_single_register_type): Ditto.
10431         * MAINTAINERS: Add self.
10432
10433 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10434
10435         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10436         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10437         right thing on architectures with different endianness and/or
10438         integer sizes.
10439
10440 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10441
10442         From Christian Limpach <chris@Pin.LU>
10443         * configure.in: Change sed expression which comments out
10444         NATDEPFILES to also comment out continuation lines.
10445         * configure: Regenerate.
10446
10447 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10448
10449         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10450         big patch.
10451
10452 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10453
10454         * sh-tdep.c: Include correct file.
10455
10456 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10457
10458         New support for sh64-elf (sh5) target.
10459
10460         * configure.tgt: For sh64-elf target, default to sh-elf.
10461
10462         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10463         (struct gdbarch_tdep): Add new fields for new registers and ABI
10464         info.
10465
10466         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10467         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10468         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10469         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10470         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10471         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10472         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10473         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10474         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10475         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10476         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10477         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10478         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10479         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10480         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10481         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10482         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10483         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10484         sign_extend, sh64_nofp_frame_init_saved_regs,
10485         sh64_init_extra_frame_info, sh64_get_saved_register,
10486         sh64_extract_struct_value_address, sh64_pop_frame,
10487         sh64_push_arguments, sh64_extract_return_value,
10488         sh64_store_return_value, sh64_show_media_regs,
10489         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10490         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10491         sh_sh64_register_virtual_type,
10492         sh_sh64_register_convert_to_virtual,
10493         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10494         sh64_register_read, sh64_pseudo_register_write,
10495         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10496         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10497         sh64_do_pseudo_register, sh_compact_do_registers_info,
10498         sh64_do_registers_info, sh_gdbarch_init): New functions.
10499
10500 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10501
10502         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10503
10504 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10505
10506         * linespec.c (decode_line_1): Check for a double quote after
10507         a filename correctly.
10508
10509 2002-05-10  Jim Blandy  <jimb@redhat.com>
10510
10511         Properly track the size of the current objfile's .debug_line section.
10512         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10513         (DWARF_LINE_SIZE): New macro.
10514         (dwarf2_build_psymtabs_hard): Record the line section's size in
10515         the partial symbol table.
10516         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10517         symbol table.
10518
10519 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10520
10521         * ia64-tdep.c: Handle breakpoints on L instruction type
10522         in MLX instruction bundle by moving the breakpoint to
10523         the third slot (X instruction type) as L holds only data.
10524
10525 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10526
10527         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10528         (process_one_symbol): Complain about discarding local symbols
10529         due to a misplaced N_LBRAC entry.
10530
10531 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10532
10533         From Daniel Berlin <dan@cgsoftware.com>
10534         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10535         decrease the depth we are at, in the case of templates.
10536
10537 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * mips-tdep.c (mips_float_register_type): New function.
10540         (mips_double_register_type): New function.
10541         (mips_print_register): Use them.
10542         (do_fp_register_row): Likewise.
10543
10544 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10545
10546         * signals/signals.c (signals): Remove conditional compilation around
10547         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10548         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10549
10550 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10551
10552         * remote-rdp.c (remote_rdp_can_run): Remove.
10553
10554 2002-05-09  Tom Tromey  <tromey@redhat.com>
10555
10556         * jv-valprint.c (java_val_print): Handle `char' as a special case
10557         of TYPE_CODE_INT.
10558
10559 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10560
10561         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10562         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10563         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10564         str r(0123),[sp,#nn].
10565         (arm_skip_prologue): Ditto.  Also make disassembly
10566         order-independent by placing it in a loop.
10567
10568 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10569
10570         * stabsread.c (read_type): Add recognition for new attribute:
10571         "@V;" means that an array type is actually a vector.
10572         This is analogous to the vector flag that's been added to dwarf2.
10573
10574 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10575
10576         * i386-tdep.h (i386_abi): New enum.
10577         (struct gdbarch_tdep): Replace os_ident member with abi.
10578         (i386_gdbarch_register_os_abi): New prototype.
10579         * i386-tdep.c (i386_abi_names): New array.
10580         (process_note_abi_tag_sections): Removed.
10581         (process_note_sections): New function.
10582         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10583         (struct i386_abi_handler): New struct.
10584         (i386_abi_handler_list): New variable.
10585         (i386_gdbarch_register_os_abi): New function.
10586         (i386_gdbarch_init): Adapt for the changes given above.
10587
10588 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10589
10590         * gregset.h: Say "GNU/Linux".
10591
10592 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10593
10594         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10595         (build_gdbtypes): Build builtin_type_v2_float.
10596         (_initialize_gdbtypes): Register new builtin type.
10597
10598 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10599
10600         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10601         (clear_gdbarch_swap): New function.
10602         (initialize_non_multiarch): Call.
10603         (gdbarch_update_p): Before calling init(), swap out and clear the
10604         existing architecture.
10605         * gdbarch.c: Regenerate.
10606
10607 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10608
10609         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10610         alphanbsd-tdep.c.
10611
10612 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10613
10614         * sh-nbsd-nat.c: Rename to...
10615         * shnbsd-nat.c: ...this.
10616         * sh-nbsd-tdep.c: Rename to...
10617         * shnbsd-tdep.c: ...this.
10618         * sh-nbsd-tdep.h: Rename to...
10619         * shnbsd-tdep.h: ...this.
10620         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10621         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10622
10623 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10624
10625         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10626         concatenation for command help messages.
10627
10628 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10629
10630         * NEWS: Note new sh*-*-netbsdelf* configuration.
10631         * configure.host: Set gdb_host_cpu to sh for all sh*.
10632         (sh*-*-netbsdelf*): New host.
10633         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10634         (sh*-*-netbsdelf*): New target.
10635         * sh-nbsd-nat.c: New file.
10636         * sh-nbsd-tdep.c: New file.
10637         * sh-nbsd-tdep.h: New file.
10638         * config/sh/nbsd.mh: New file.
10639         * config/sh/nbsd.mt: New file.
10640         * config/sh/nm-nbsd.h: New file.
10641         * config/sh/tm-nbsd.h: New file.
10642
10643 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10644
10645         * sh-tdep.c (sh_osabi_names): Declare.
10646         (process_note_abi_tag_sections): New function.
10647         (get_elfosabi): Ditto.
10648         (sh_gdbarch_register_os_abi): Ditto.
10649         (sh_dump_tdep): Ditto.
10650         _initialize_sh_tdep): Use gdbarch_register to register
10651         sh_gdbarch_init and sh_dump_tdep.
10652         * config/sh/tm-sh.h (sh_osabi): Declare.
10653         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10654
10655 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10656
10657         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10658         (thumb_scan_prologue): Ditto.
10659         (arm_find_callers_reg): Ditto.
10660         (arm_frame_chain): Ditto.
10661         (arm_init_extra_frame_info): Ditto.
10662         (arm_frame_saved_pc): Ditto.
10663         (arm_pop_frame): Ditto.
10664         (arm_push_return_address): New function.
10665         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10666         call_dummy_location, call_dummy_breakpoint_offset_p,
10667         call_dummy_breakpoint_offset, call_dummy_p,
10668         call_dummy_stack_adjust_p, call_dummy_words,
10669         sizeof_call_dummy_words, call_dummy_start_offset,
10670         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10671         call_dummy_address, push_return_address and push_dummy_frame for
10672         generic dummy frames.
10673
10674 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10675
10676         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10677         size computation for alloca.
10678         (sh_fp_frame_init_saved_regs): Likewise.
10679
10680 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10681
10682         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10683         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10684         * arm-tdep.c (arm_store_return_value): Use them.
10685         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10686         * remote-rdp.c (remote_rdp_fetch_register): Use
10687         ARM_MAX_REGISTER_RAW_SIZE.
10688         (remote_rdp_store_register): Likewise.
10689
10690 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10691
10692         * dwarf2cfi.c: Code cleanup, removed unused variables,
10693         added default labels to switch {} statements.
10694         * x86-64-tdep.c: Ditto.
10695         * x86-64-linux-nat.c: Ditto.
10696
10697 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10698
10699         * solib.h: Protect against multiple inclusion.
10700
10701 2002-05-06  Jim Blandy  <jimb@redhat.com>
10702
10703         Add first preprocessor macro-expansion files.
10704         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10705         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10706         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10707         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10708         (COMMON_OBS): Add macrotab.o, macroexp.o.
10709         (macroexp.o, macrotab.o): New rules.
10710
10711         Separate the job of reading the line number info statement program
10712         header (...expialidocious) out into its own function.
10713         * dwarf2read.c (struct line_head, struct filenames, struct
10714         directories): Replace with...
10715         (struct line_header): New structure, containing the full
10716         contents of the statement program header, including the
10717         include directory and file name tables.
10718         (read_file_scope): If we have line number info, instead of just
10719         calling dwarf_decode_lines to do all the work, call
10720         dwarf_decode_line_header first to get a `struct line_header'
10721         containing the data in the statement program header, and then
10722         pass that to dwarf_decode_lines, which will pick up where that
10723         left off.  Be sure to clean up the `struct line_header' object.
10724         (dwarf_decode_line_header, free_line_header, add_include_dir,
10725         add_file_name): New functions.
10726         (dwarf_decode_lines): Move all the code to read the statement
10727         program header into dwarf_decode_line_header.  Take the line
10728         header it built as the first argument, instead of the offset to
10729         the compilation unit's line number info.  Use the new `struct
10730         line_header' type instead of the old structures.  No need to do
10731         cleanups here now, since we don't allocate anything.
10732         (dwarf2_statement_list_fits_in_line_number_section,
10733         dwarf2_line_header_too_long): New complaints.
10734
10735 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10736
10737         * gdbtypes.c (init_vector_type): New function.
10738         (build_builtin_type_vec128): Simplify the representation of SIMD
10739         registers.
10740         (build_gdbtypes): Initialize new builtin vector types.
10741         (_initialize_gdbtypes): Register new vector types with gdbarch.
10742         (builtin_type_v4_float, builtin_type_v4_int32,
10743         builtin_type_v8_int16, builtin_type_v16_int8,
10744         builtin_type_v2_int32, builtin_type_v4_int16,
10745         builtin_type_v8_int8): New (renamed) SIMD types.
10746
10747 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10748
10749         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10750         (i387_fill_fxsave): Likewise.
10751
10752 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10753
10754         * alpha-tdep.c (alpha_extract_return_value): Don't use
10755         non-constant array size in prototype.
10756
10757 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10758
10759         From Brian Taylor <briant at model dot com>:
10760         * ui-out.c (ui_out_field_core_addr): Use the function
10761         longest_local_hex_string_custom'to format addresses > 32 bits
10762         wide.
10763
10764         * ui-out.c (ui_out_field_core_addr): Update comment.
10765
10766 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10767
10768         * stack.c (select_and_print_frame): Make static.  Delete the
10769         parameter `level'.
10770         (func_command): Update call.
10771         (select_frame_command): Delete code computing the frame level.
10772         * frame.h (select_and_print_frame): Delete declaration.
10773
10774 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10775
10776         * sparc-tdep.c (sparc_get_saved_register): Comment why
10777         get_prev_frame call is safe.
10778
10779 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10780
10781         * frame.h (select_frame): Delete level parameter.
10782         * stack.c (select_frame): Update.  Use frame_relative_level to
10783         obtain the frame's level.
10784         (select_and_print_frame): Update call.
10785         (select_frame_command): Ditto.
10786         (up_silently_base): Ditto.
10787         (down_silently_base): Ditto.
10788         * ocd.c (ocd_start_remote): Ditto.
10789         * remote-rdp.c (remote_rdp_open): Ditto.
10790         * remote-mips.c (mips_initialize): Ditto.
10791         (common_open): Ditto.
10792         * remote-e7000.c (e7000_start_remote): Ditto.
10793         * m3-nat.c (select_thread): Ditto.
10794         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10795         (child_get_current_exception_event): Ditto.
10796         * varobj.c (varobj_create): Ditto.
10797         (varobj_update): Ditto.
10798         (c_value_of_root): Ditto.
10799         * tracepoint.c (finish_tfind_command): Ditto.
10800         * corelow.c (core_open): Ditto.
10801         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10802         * thread.c (info_threads_command): Ditto.
10803         (switch_to_thread): Ditto.
10804         * infrun.c (normal_stop): Ditto.
10805         (restore_selected_frame): Ditto.
10806         (restore_inferior_status): Ditto.
10807         * breakpoint.c (insert_breakpoints): Ditto.
10808         (watchpoint_check): Ditto.
10809         (bpstat_stop_status): Ditto.
10810         (do_enable_breakpoint): Ditto.
10811         * blockframe.c (flush_cached_frames): Ditto.
10812         (reinit_frame_cache): Ditto.
10813
10814 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10815
10816         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10817         maintainer.
10818
10819 2002-05-04  Jim Blandy  <jimb@redhat.com>
10820
10821         * gdbtypes.c (replace_type): Doc fix.
10822
10823 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10824
10825         * valprint.c (strcat_longest): Delete commented out function.
10826         Update copyright.
10827
10828 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10829
10830         * MAINTAINERS: Mark a29k as deleted.
10831         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10832         Move new configurations to the top.
10833         * configure.tgt: Remove a29k.
10834         * config/a29k/tm-vx29k.h: Delete.
10835         * config/a29k/vx29k.mt: Delete.
10836         * config/a29k/tm-a29k.h: Delete.
10837         * config/a29k/a29k-udi.mt: Delete.
10838         * config/a29k/a29k.mt: Delete.
10839         * a29k-tdep.c: Delete.
10840         * remote-udi.c: Delete.
10841         * remote-mm.c: Delete.
10842         * remote-eb.c: Delete.
10843         * remote-adapt.c: Delete.
10844         * Makefile.in: Remove obsolete code.
10845         * config/s390/s390x.mt: Ditto.
10846         * config/s390/s390.mt: Ditto.
10847         * config/sparc/sparclynx.mh: Ditto.
10848         * config/sparc/linux.mh: Ditto.
10849         * config/pa/hppaosf.mh: Ditto.
10850         * config/pa/hppabsd.mh: Ditto.
10851         * config/ns32k/nbsd.mt: Ditto.
10852         * config/mips/vr5000.mt: Ditto.
10853         * config/m68k/sun3os4.mh: Ditto.
10854         * config/m68k/nbsd.mt: Ditto.
10855         * config/m68k/m68klynx.mh: Ditto.
10856         * config/m32r/m32r.mt: Ditto.
10857         * config/i386/x86-64linux.mt: Ditto.
10858         * config/i386/nbsdelf.mt: Ditto.
10859         * config/i386/nbsd.mt: Ditto.
10860         * config/i386/i386lynx.mh: Ditto.
10861
10862 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10863
10864         * target.c (debug_print_register): New function.  Handle oversize
10865         registers.
10866         (debug_to_fetch_registers): Call.
10867         (debug_to_store_registers): Call.
10868
10869 2002-05-03  Jim Blandy  <jimb@redhat.com>
10870
10871         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10872         (read_type): Doc fix.
10873         * gdbtypes.c (replace_type): Doc fix.
10874
10875         * stabsread.c (multiply_defined_struct): New complaint.
10876         (read_struct_type): If the type we were passed isn't empty, or
10877         incomplete, don't read the new struct type into it; complain,
10878         and return the original type unchanged.  Take a new `type_code'
10879         argument, which is the type code for the new type.
10880         (read_type): Rather than storing the type's type code here, pass
10881         it as an argument to read_struct_type, and let that take care of
10882         storing it.  That way, we don't overwrite the original type code,
10883         so read_struct_type can use it to decide whether we're overwriting
10884         something we shouldn't.
10885         (complain_about_struct_wipeout): New function.
10886
10887 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10888
10889         * gdbarch.sh: Assert that gdbarch is non-NULL.
10890         * gdbarch.c: Regenerate.
10891
10892 2002-05-03  Jason Merrill  <jason@redhat.com>
10893
10894         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10895         and return NULL.
10896
10897 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10898
10899         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10900         (x86_64_dwarf2gdb_regno_map_length),
10901         (x86_64_dwarf2_reg_to_regnum): Added.
10902         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10903         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10904         (_initialize_x86_64_tdep): Synced with the change above.
10905         (x86_64_skip_prologue): Reformulated message.
10906
10907 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10908
10909         * f-exp.y: Also use new prev_lexptr variable
10910         to improve error reporting. Based on Michael Snyder
10911         2002-04-24 dated patch to c-exp.y.
10912         * jv-exp.y: Likewise.
10913         * m2-exp.y: Likewise.
10914
10915 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10916
10917         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10918         we are dealing with vectors.
10919
10920 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10921
10922         * config/m68k/tm-nbsd.h: Obvious fix,
10923         correct machine name.
10924
10925 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10926
10927         * p-typeprint.c (pascal_type_print_base): Add support
10928         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10929
10930 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10931
10932         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10933         for fondamental pascal 'char' type.
10934
10935 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10936
10937         * p-lang.h (is_pascal_string_type): Declaration changed,
10938         new sixth argument of type char ** added.
10939         * p-lang.c (is_pascal_string_type): Implementation
10940         changed. Args length_pos, length_size, string_pos, char_size
10941         can now be NULL. New argument arrayname set to the field
10942         name of the char array. Return value set to char array
10943         field index plus one.
10944         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10945         is_pascal_string_type function.
10946
10947 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10948
10949         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10950         <cagney@redhat.com> change.
10951         * gdbarch.c: Regenerate.
10952
10953 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10954
10955         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10956         before probing for a new one.  Detect errorenous gdbarch_init
10957         functions.
10958         * gdbarch.c: Regenerate.
10959
10960 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10961
10962         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10963         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10964         * config/v850/tm-v850.h: Ditto.  Update copyright.
10965
10966 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10967
10968         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10969         current_gdbarch.
10970
10971 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10972
10973         * arm-tdep.c: Whitespace clean-ups.
10974         (arm_skip_prologue): Fix thinko; two lines
10975         should have been removed as part of 4/24 change.
10976
10977 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10978
10979         * rs6000-tdep.c: Added comment describing how fpscr register
10980         numbers were chosen.
10981
10982 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10983
10984         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10985
10986 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10987
10988         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10989         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10990         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10991
10992 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10993
10994         From Louis Hamilton <hamilton@redhat.com>:
10995         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10996         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10997         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10998         not bfd-private xcoff data, to determine wordsize.
10999         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11000
11001 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
11002
11003         GDB 5.2 released from 5.2 branch.
11004
11005 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
11006
11007         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11008         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11009         (x86_64_register_info_table): Added comments with register numbers.
11010
11011 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11012
11013         * rs6000-tdep.c (rs6000_extract_return_value,
11014         rs6000_store_return_value): Handle returning vectors.
11015         (rs6000_gdbarch_init): Use
11016         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11017         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11018         New function.
11019         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11020         vectors.
11021         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11022         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11023
11024 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11025
11026         * hpread.c (hpread_psymtab_to_symtab_1,
11027         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11028         with fprintf_unfiltered (gdb_stderr,...).
11029
11030 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11031
11032         * remote-array.c (printf_monitor, write_monitor,
11033         array_insert_breakpoint, array_remove_breakpoint ):
11034         Replace fprintf (stderr,...
11035         with fprintf_unfiltered (gdb_stderr,....
11036         * remote-es.c: Likewise.
11037         * remote-os9k.c: Likewise.
11038         * remote-st.c: Likewise.
11039
11040 2002-04-28  Andreas Schwab  <schwab@suse.de>
11041
11042         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11043         linux-proc.o and gcore.o.
11044
11045 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11046
11047         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11048         code without frame pointers.
11049
11050 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11051
11052         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11053         ON_STACK is needed.
11054
11055 2002-04-26  Ben Elliston  <bje@redhat.com>
11056
11057         * target.c (do_xfer_memory): Correct reference to the new option
11058         "trust-readonly-sections".
11059
11060 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11061
11062         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11063         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11064         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11065         vectors.
11066         (read_array_type): Record the fact that this array type is really a
11067         vector (i.e. are passed in by value).
11068
11069 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11070
11071         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11072         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11073         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11074         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11075         * alpha-linux-tdep.c: Include frame.h.
11076         (alpha_linux_sigcontext_addr): New function.
11077         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11078         alpha_linux_sigcontext_addr.
11079         * alpha-osf1-tdep.c: Include gdbcore.h.
11080         (alpha_osf1_sigcontext_addr): New function.
11081         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11082         alpha_osf1_sigcontext_addr.
11083         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11084         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11085
11086 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11087
11088         * stack.c (selected_frame_level):
11089         (select_frame): Do not set selected_frame_level.
11090         * frame.h (selected_frame_level): Delete declaration.
11091
11092 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11093
11094         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11095         convert_from_func_ptr-addr when AIX / PowerOpen.
11096
11097 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11098
11099         * valops.c (hand_function_call): Call
11100         generic_save_call_dummy_addr.
11101         * frame.h (generic_save_call_dummy_addr): Declare.
11102         * blockframe.c (struct dummy_frame): Add fields call_lo and
11103         call_hi.
11104         (generic_find_dummy_frame): Check for PC in range call_lo to
11105         call_hi instead of entry_point_address.
11106         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11107         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11108         (generic_save_call_dummy_addr): New function.
11109
11110 2002-04-24  David S. Miller  <davem@redhat.com>
11111
11112         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11113         sparc_skip_prologue.
11114         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11115         information to find prologue when possible.
11116         (sparc_prologue_frameless_p): Call examine_prologue directly.
11117         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11118         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11119         second argument.
11120         (SKIP_PROLOGUE): Likewise.
11121
11122 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11123
11124         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11125         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11126         indicate that the condition it was testing is always true.
11127         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11128         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11129         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11130
11131 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11132
11133         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11134         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11135         tdep->jb_pc and tdep->jb_elt_size.
11136         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11137         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11138         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11139         * alpha-nat.c (get_longjmp_target): Remove.
11140         (JB_ELEMENT_SIZE): Ditto.
11141         (JB_PC): Ditto.
11142         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11143         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11144         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11145         to alpha_get_longjmp_target.
11146         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11147         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11148         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11149
11150 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11151
11152         * README: Update to GDB 5.2.
11153
11154 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11155
11156         * gdbarch.sh (LC_ALL): Set to `c'.
11157
11158 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11159
11160         * avr-tdep.c: Ran through gdb_indent.sh.
11161
11162 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11163
11164         * MAINTAINERS: Add myself as AVR maintainer.
11165         * NEWS: Note new target avr.
11166
11167 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11168
11169         * Makefile.in: Add support for AVR target.
11170         * configure.tgt: Add support for AVR target.
11171         * avr-tdep.c: New file
11172         * config/avr/avr.mt: New file.
11173
11174 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11175
11176         * MAINTAINERS: Add myself to write-after-approval.
11177
11178 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11179
11180         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11181         with fprintf_unfiltered (gdb_stderr,....
11182
11183 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11184
11185         Fix PR gdb/508.
11186         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11187
11188 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11189
11190         * p-exp.y: Also use new prev_lexptr variable
11191         to improve error reporting. Based on Michael Snyder
11192         2002-04-24 dated patch to c-exp.y.
11193
11194 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11195
11196         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11197         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11198         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11199         to 0.
11200         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11201         and struct value.
11202         (FUNCTION_START_OFFSET): Remove.
11203         (BREAKPOINT): Ditto.
11204
11205 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11206
11207         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11208         * NEWS: Ditto.
11209
11210 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11211
11212         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11213         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11214         alpha_linux_pc_in_sigtramp.
11215         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11216         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11217         alpha_osf1_pc_in_sigtramp.
11218         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11219         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11220         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11221         alphafbsd_pc_in_sigtramp.
11222         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11223         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11224         alphanbsd_pc_in_sigtramp.
11225         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11226         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11227
11228 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11229
11230         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11231
11232 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11233
11234         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11235         alphanbsd-tdep.c.
11236         (alphanbsd-nat.o): New dependency list.
11237         (alphanbsd-tdep.o): Ditto.
11238         * NEWS: Note new native NetBSD/alpha configuration.
11239         * alphanbsd-nat.c: New file.
11240         * alphanbsd-tdep.c: Ditto.
11241         * configure.host (alpha*-*-netbsd*): New host.
11242         * configure.tgt (alpha*-*-netbsd*): New target.
11243         * config/alpha/nbsd.mh: New file.
11244         * config/alpha/nbsd.mt: Ditto.
11245         * config/alpha/nm-nbsd.h: Ditto.
11246         * config/alpha/tm-nbsd.h: Ditto.
11247
11248 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11249
11250         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11251         (alpha-osf1-tdep.o): New dependency list.
11252         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11253         and skip_sigtramp_frame members.
11254         * alpha-linux-tdep.c: Include gdbcore.h.
11255         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11256         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11257         * alpha-osf1-tdep.c: New file.
11258         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11259         alpha-osf1-dep.c.
11260         (alpha_frame_past_sigtramp_frame): New function.
11261         (alpha_dynamic_sigtramp_offset): Ditto.
11262         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11263         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11264         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11265         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11266         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11267         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11268         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11269         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11270         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11271         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11272         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11273         to find_solib_trampoline_target.
11274         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11275         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11276         (SKIP_TRAMPOLINE_CODE): Remove.
11277         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11278         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11279         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11280         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11281         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11282         (PROC_SIGTRAMP_MAGIC): Ditto.
11283         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11284         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11285         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11286         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11287         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11288
11289 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11290
11291         * NEWS: Note that Alpha targets are now multi-arch.
11292
11293 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11294
11295         * parser-defs.h (prev_lexptr): New external variable.
11296         * parse.c (parse_exp_1): Set prev_lexptr to null before
11297         calling the language-specific parser.
11298         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11299         (yyerror): Use prev_lexptr in error reporting.
11300
11301 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11302
11303         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11304         * gregset.h: If FILL_FPXREGSET is defined, provide
11305         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11306         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11307         is defined, call fill_fpxregset.
11308
11309 2002-04-24  Roland McGrath  <roland@frob.com>
11310
11311         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11312         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11313         (supply_gregset, supply_fpregset): New functions.
11314
11315         * gnu-nat.c (gnu_find_memory_regions): New function.
11316         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11317         (gnu_xfer_memory): Add a cast.
11318
11319 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11320
11321         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11322         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11323         of argument regs ("str r(0123), [r11, #-nn"]).
11324         (arm_skip_prologue): Better handling for frameless functions.
11325         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11326         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11327
11328 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11329
11330         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11331         NUM_PSEUDO_REGS can be used.
11332
11333 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11334
11335         * arch-utils.h: Update copyright.
11336
11337         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11338         * gdbarch.h, gdbarch.c: Re-generate.
11339
11340         * inferior.h (IN_SIGTRAMP): Delete definition.
11341         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11342         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11343
11344         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11345         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11346         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11347         (find_proc_framesize): Ditto.
11348         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11349         (alpha_init_extra_frame_info): Ditto.
11350         * infrun.c (handle_inferior_event): Ditto.
11351         (handle_inferior_event): Ditto.
11352         (check_sigtramp2): Ditto.
11353         * blockframe.c (create_new_frame): Ditto.
11354         (get_prev_frame): Ditto.
11355         * ppc-linux-tdep.c: Update comments.
11356         * i386-linux-tdep.c: Update comments.
11357         * breakpoint.c (bpstat_what): Update comment.
11358
11359 2002-04-24  David S. Miller  <davem@redhat.com>
11360
11361         * i960-tdep.c (register_in_window_p): New function.
11362         (i960_find_saved_register): Use it instead of
11363         REGISTER_IN_WINDOW_P.
11364         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11365
11366         * symtab.h (find_stab_function_addr): Kill extern.
11367         * minsyms.c (find_stab_function_addr): Remove from here...
11368         * dbxread.c: ... to here, and mark it static.
11369
11370 2002-04-20  David S. Miller  <davem@redhat.com>
11371
11372         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11373         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11374
11375 2002-04-21  David S. Miller  <davem@redhat.com>
11376
11377         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11378         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11379         (vx_write_register): Likewise.
11380
11381 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11382
11383         * source.c (is_regular_file): New function.
11384         (openp): Check wether file to open is a regular file
11385         to avoid opening directories.
11386
11387 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11388
11389         * findvar.c (extract_signed_integer): Cast printf argument
11390         to suppress format warning.
11391         (extract_unsigned_integer): Likewise.
11392         * infcmd.c (registers_info): Likewise.
11393         * top.c (get_prompt_1): Likewise.
11394         * valops.c (value_assign): Likewise.
11395         * valprint.c (print_decimal): Likewise.
11396
11397 2002-04-22  H.J. Lu  (hjl@gnu.org)
11398
11399         * c-exp.y (typebase): Support
11400
11401         [long|long long|short] [signed|unsigned] [int|]
11402
11403         and
11404
11405         signed [long|long long|short] int
11406
11407 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11408
11409         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11410         and vax-tdep.h.
11411         * vax-tdep.h: New file.
11412         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11413         Make several routines static.
11414         (vax_get_saved_register): New function.
11415         (vax_gdbarch_init): New function.
11416         (_initialize_vax_tdep): Register vax_gdbarch_init.
11417         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11418         Remove macros now under the control of gdbarch.
11419
11420 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11421
11422         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11423         Some whitespace and coding standards tweaks.
11424
11425 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11426
11427         * vax-tdep.c: Include regcache.h.
11428         (vax_call_dummy_words): New.
11429         (sizeof_vax_call_dummy_words): New.
11430         (vax_fix_call_dummy): New function.
11431         (vax_saved_pc_after_call): Ditto.
11432         * config/vax/tm-vax.h: Don't include regcache.h.
11433         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11434         (CALL_DUMMY): Remove.
11435         (CALL_DUMMY_WORDS): Define.
11436         (SIZEOF_CALL_DUMMY_WORDS): Define.
11437         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11438
11439 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11440
11441         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11442
11443 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11444
11445         * vax-tdep.c (vax_frame_chain): New function.
11446         (vax_push_dummy_frame): Ditto.
11447         (vax_pop_frame): Ditto.
11448         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11449         (FRAMELESS_FUNCTION_INVOCATION): Use
11450         generic_frameless_function_invocation_not.
11451         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11452         (POP_FRAME): Use vax_pop_frame.
11453
11454 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11455
11456         * vax-tdep.c (vax_store_struct_return): New function.
11457         (vax_extract_return_value): Ditto.
11458         (vax_store_return_value): Ditto.
11459         (vax_extract_struct_value_address): Ditto.
11460         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11461         vax_store_struct_return.
11462         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11463         (STORE_RETURN_VALUE): Use vax_store_return_value.
11464         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11465
11466 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11467
11468         * vax-tdep.c (vax_frame_saved_pc): New function.
11469         (vax_frame_args_address_correct): Ditto.
11470         (vax_frame_args_address): Ditto.
11471         (vax_frame_locals_address): Ditto.
11472         (vax_frame_num_args): Move code to be in proximity to
11473         other frame-related functions.
11474         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11475         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11476         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11477         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11478         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11479
11480 2002-04-22  H.J. Lu  (hjl@gnu.org)
11481
11482         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11483         includedir.
11484
11485 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11486
11487         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11488         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11489         (FRAME_INIT_SAVED_REGS): New macro.
11490
11491 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11492
11493         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11494
11495 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11496
11497         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11498         where needed.
11499         (fetch_osf_core_registers): Likewise.
11500         (supply_gregset): Likewise.
11501
11502 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11503
11504         * symfile.h (get_section_index): Define.
11505         * symfile.c (get_section_index): New function.
11506         * mdebugread.c (SC_IS_SBSS): New macro.
11507         (SC_IS_BSS): Return true for the scBss storage class only, as
11508         the scSBss storage class refers to the .sbss section.
11509         (parse_partial_symbols): Discard the symbols which associated
11510         section does not exist.
11511         Make sure to use the .sbss section index for symbols which
11512         storage class is scBss, rather than using the .bss section index.
11513
11514 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11515
11516         * vax-tdep.c: Update copyright years.
11517         (vax_register_name): New function.
11518         (vax_register_byte): Ditto.
11519         (vax_register_raw_size): Ditto.
11520         (vax_register_virtual_size): Ditto.
11521         (vax_register_virtual_type): Ditto.
11522         * config/vax/tm-vax.h: Update copyright years.
11523         (REGISTER_NAMES): Remove.
11524         (REGISTER_NAME): Define.
11525         (REGISTER_BYTE): Use vax_register_byte.
11526         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11527         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11528         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11529
11530 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11531
11532         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11533         declaration
11534         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11535
11536 2002-04-21  David S. Miller  <davem@redhat.com>
11537
11538         * arch-utils.c (generic_prologue_frameless_p): Kill
11539         SKIP_PROLOGUE_FRAMELESS_P code.
11540         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11541         references.
11542         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11543         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11544         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11545         references.
11546         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11547         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11548         (sparc_gdbarch_init): Pass it to
11549         set_gdbarch_prologue_frameless_p.
11550
11551 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11552
11553         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11554         (alphabsd-nat.o): New dependency list.
11555
11556 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11557
11558         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11559         alphafbsd-tdep.c.
11560         (alpha-linux-tdep.o): New dependency list.
11561         (alphafbsd-tdep.o): Likewise.
11562
11563 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11564
11565         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11566         to here...
11567         * alpha-tdep.c: ...from here.
11568         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11569
11570 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11571
11572         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11573         prototype from here...
11574         * alpha-tdep.h: ...to here.
11575
11576 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11577
11578         * frame.h (selected_frame_level): Document as deprecated.
11579         (frame_relative_level): Declare.
11580         * stack.c (frame_relative_level): New function.
11581         (selected_frame_level): Document as deprecated.
11582         (select_frame): Do not set the selected_frame_level.
11583
11584         * stack.c (frame_info, record_selected_frame): Update.
11585         (frame_command, current_frame_command): Update.
11586         (up_silently_base, up_command, down_silently_base): Update.
11587         (down_command): Update.
11588         * inflow.c (kill_command): Update.
11589         * tracepoint.c (finish_tfind_command): Update.
11590         * corelow.c (core_open): Update.
11591         * thread.c (info_threads_command): Update.
11592         (do_captured_thread_select): Update.
11593         * infcmd.c (finish_command): Update.
11594         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11595
11596 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11597
11598         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11599
11600 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11601
11602         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11603         type const.
11604
11605 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11606
11607         * alphafbsd-tdep.c: Update copyright years.  Include
11608         alpha-tdep.h.
11609         (alphafbsd_use_struct_convention): Make static.
11610         (alphafbsd_init_abi): New function.
11611         (_initialize_alphafbsd_tdep): New function.
11612         * config/alpha/tm-fbsd.h: Update copyright years.
11613         (USE_STRUCT_CONVENTION): Remove.
11614
11615 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11616
11617         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11618         an Alpha ABI variant.
11619         (alpha_abi_handler_list): Declare.
11620         (alpha_gdbarch_register_os_abi): New function.
11621         (alpha_gdbarch_init): Give registered ABI variant handlers a
11622         chance to tweak the gdbarch once we have set up defaults.
11623         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11624
11625 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11626
11627         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11628         to standard_coerce_float_to_double.
11629         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11630
11631 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11632
11633         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11634         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11635         from gdbarch_tdep rather than a constant.
11636         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11637         the default text address for all Alpha Unix ABIs.
11638         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11639         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11640
11641 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11642
11643         * alpha-tdep.h: New file.  Includes several Alpha target constants
11644         taken from...
11645         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11646         let gdbarch deal with.
11647         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11648         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11649         to dependency list.
11650         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11651         Alpha target register names.
11652         * alphabsd-nat.c: Likewise.
11653         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11654         Alpha target register names.  Make serveral routines static.
11655         (alpha_get_saved_register): New function.
11656         (alpha_abi_names): New.
11657         (process_note_abi_tag_sections): New function.
11658         (get_elfosabi): New function.
11659         (alpha_gdbarch_init): New function.
11660         (alpha_dump_tdep): New function.
11661         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11662
11663 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11664
11665         * frame.c (find_saved_register): Delete #ifdef
11666         HAVE_REGISTER_WINDOWS code.
11667         * config/sparc/tm-sparc.h: Update comments.
11668         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11669
11670 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11671
11672         * i960-tdep.c (i960_find_saved_register): New function.
11673         (i960_get_saved_register): New function.
11674         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11675         (i960_get_saved_register): Declare.
11676         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11677
11678 2002-04-20  David S. Miller  <davem@redhat.com>
11679
11680         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11681
11682 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11683
11684         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11685         instead of NUM_PSEUDO_REGS.
11686
11687 2002-04-20  David S. Miller  <davem@redhat.com>
11688
11689         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11690         GDB_MULTI_ARCH_PARTIAL
11691         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11692         define, let tm-sp64.h do it.
11693
11694 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11695
11696         * frame.c (find_saved_register): Avoid a NULL pointer
11697         dereference and actually walk the frame list.
11698
11699 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11700
11701         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11702         sorted in most most-recent-used order.  Document.
11703         * gdbarch.h, gdbarch.c: Regenerate.
11704
11705 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11706
11707         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11708         instead of ->prev.
11709         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11710         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11711         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11712         instead of ->prev.
11713
11714 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11715
11716         Fix PR gdb/471.
11717         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11718         (build_builtin_type_vec128): Ditto.
11719         (append_composite_type_field): Fix calculation of type length in
11720         union case.
11721
11722 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11723
11724         * config/djgpp/README: Update.
11725
11726         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11727         compiler warnings.
11728
11729 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11730
11731         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11732         (alpha_setup_arbitrary_frame): ...to this.
11733         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11734         for alpha_setup_arbitrary_frame.
11735
11736 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11737
11738         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11739         * gdbarch.h, gdbarch.c: Regenerate.
11740
11741         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11742         * target.h (memory_breakpoint_from_pc): Update declaration.
11743         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11744
11745         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11746         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11747         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11748         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11749         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11750         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11751         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11752         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11753         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11754         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11755         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11756         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11757
11758         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11759         const pointer.
11760         * monitor.c (monitor_insert_breakpoint): Ditto.
11761         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11762
11763         * config/mcore/tm-mcore.h: Update copyright.
11764         * mem-break.c: Ditto.
11765         * xstormy16-tdep.c: Ditto.
11766
11767 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11768
11769         * p-exp.y: Add precedence rule for '^' token.
11770         This removes the shift/reduce conflicts.
11771         Remove the comment concerning these shift/reduce conflicts.
11772
11773 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11774
11775         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11776         (registers_powerpc_nofp): New register set for processors
11777         without floating point unit.
11778
11779 2002-04-18  David S. Miller  <davem@redhat.com>
11780
11781         * MAINTAINERS: Add myself to write-after-approval.
11782
11783 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11784
11785         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11786
11787 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11788
11789         * rs6000-tdep.c (frame_initial_stack_address): Use
11790         frame_register_read to read the alloca_reg.
11791
11792 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11793
11794         * frame.c (find_saved_register): Find saved registers in the next
11795         not prev frame.
11796         Fix PR gdb/365.
11797
11798 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11799
11800         * gdbarch.sh (LANG): Set to ``c''.
11801
11802 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11803
11804         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11805
11806 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11807
11808         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11809         Update copyright.
11810
11811         * hpread.c (hpread_get_lntt): Add declaration.
11812         Also fix PR gdb/391.
11813
11814 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11815
11816         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11817         * aclocal.m4, configure: Re-generate.
11818         Fix PR gdb/391.
11819
11820 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11821
11822         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11823         instead of tm_print_insn.
11824
11825 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11826
11827         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11828
11829 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11830
11831         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11832         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11833         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11834
11835 2002-04-12  Don Howard  <dhoward@redhat.com>
11836
11837         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11838         max_user_call_depth.
11839         (init_cmd_lists): Initialize the new value;
11840         * cli/cli-script.c (execute_user_command): Limit the call depth of
11841         user defined commands.  This avoids a core-dump when user commands
11842         are infinitly recursive.
11843
11844 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11845
11846         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11847         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11848         from tdep struct instead of DEFAULT_LR_SAVE.
11849         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11850         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11851         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11852
11853 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11854
11855         * Remote.c: Spelling fix.
11856         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11857         If no symbol found for "sbrk", try "_sbrk".
11858         (make_output_phdrs): Use bfd_section_name.
11859         (gcore_copy_callback): Use bfd_section_name.
11860         * eval.c: Indentation fix-ups.
11861         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11862         in case it gets applied to an address that is already
11863         in the instruction space.
11864         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11865         * symfile.c: Fix indentation, long lines.
11866         * source.c: White space fix-up.
11867
11868 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11869
11870         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11871         * frame.c (frame_register_read): New function.  Return non-zero on
11872         success.
11873         (read_relative_register_raw_bytes_for_frame): Delete.
11874         (read_relative_register_raw_bytes): Delete.
11875         * frame.h (frame_register_read): Declare.
11876         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11877         * sh-tdep.c: Ditto.
11878         * infcmd.c (do_registers_info): Ditto.
11879         * hppa-tdep.c: Ditto.
11880         * rs6000-tdep.c: Ditto.
11881         * h8500-tdep.c: Ditto.
11882         * mips-tdep.c: Ditto.
11883         * h8300-tdep.c: Ditto.
11884         * z8k-tdep.c: Ditto.
11885
11886 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11887
11888         From Jimi X <jimix@watson.ibm.com>:
11889         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11890         64-bit SysV ABI.
11891
11892 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11893
11894         From Jimi X <jimix@watson.ibm.com>:
11895         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11896         bfd info.
11897
11898 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11899
11900         From Jimi X <jimix@watson.ibm.com>:
11901         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11902         register sets for these processor variants.
11903
11904 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11905
11906         * regformats/reg-ppc.dat: Support FPSCR.
11907
11908 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11909
11910         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11911         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11912         Add fpscr as an invalid/unfetchable register.
11913         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11914         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11915         (fill_fpregset): Add support for register fpscr.
11916         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11917         (fill_gregset): Account for the fact that register ``mq'' might
11918         not exist.
11919         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11920         (registers_power): Add fpscr to register set at slot 71.
11921         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11922         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11923
11924 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11925
11926         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11927         * configure: Regenerate.
11928         * config.in: Regenerate.
11929         * acconfig.h: Add define for _SYSCALL32.
11930         * core-sol2.c: Remove #define _SYSCALL32.
11931         * solib-legacy.c: Remove #define _SYSCALL32.
11932
11933 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11934
11935         * stack.c (select_frame): Cleanup internal error message, do not
11936         use %p.
11937
11938 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11939
11940         * stack.c (select_frame): Check that selected_frame and the
11941         specified level are as expected.
11942         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11943         Update copyright.
11944         * frame.h (struct frame_info): Add field `level'.  Update
11945         copyright.
11946         Work-in-progress PR gdb/464.
11947
11948 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11949
11950         * maint.c (maint_print_section_info): Rename print_section_info.
11951         (print_bfd_section_info, print_objfile_section_info): Update.
11952         * inferior.h (struct gdbarch): Add opaque declaration.
11953         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11954         * gdbarch.h: Regenerate.
11955
11956 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11957
11958         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11959         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11960         (kernel_u_size): Added.
11961         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11962         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11963
11964 2002-04-04  Jim Ingham  <jingham@apple.com>
11965
11966        * valarith.c (find_size_for_pointer_math): New function, either returns
11967        the size for a pointer's target, returns 1 for void *, or errors for
11968        incomplete types.
11969        (value_add, value_sub): use find_size_for_pointer_math.
11970
11971 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11972
11973         * linux-low.c (linux_look_up_symbols): New hook.
11974         (linux_target_ops): Add linux_look_up_symbols.
11975         * remote-utils.c (decode_address): New function.
11976         (look_up_one_symbol): New function.
11977         * server.c (handle_query): Call target look_up_symbols hook.
11978         * server.h (look_up_one_symbol): Add prototype.
11979         * target.h (struct target_ops): Add look_up_symbols hook.
11980
11981 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11982
11983         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11984         override FP_REGNUM with frame->fp.  Update copyright.
11985         * parse.c (num_std_regs, std_regs): Delete.
11986         (target_map_name_to_register): Do not search std_regs.  Update
11987         function description.
11988         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11989         declarations.  Update copyright.
11990         Fix PR gdb/251.
11991
11992 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11993
11994         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11995         after the last symbol in a block.
11996
11997 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11998
11999         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12000         is non zero as a found symbol.
12001
12002 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12003
12004         * findvar.c: Include "builtin-regs.h".
12005         (value_of_register): Call value_of_builtin_reg when applicable.
12006         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12007         (target_map_name_to_register): Call
12008         builtin_reg_map_name_to_regnum.
12009         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12010         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12011         (builtin_regs_h): Define.
12012         (builtin-regs.o): New target.
12013         (findvar.o): Add $(builtin_regs_h).
12014         * builtin-regs.c, builtin-regs.h: New files.
12015         * std-regs.c: New file.
12016         Partial fix for PR gdb/251.
12017
12018 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12019
12020         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12021         it's no longer required.
12022
12023 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12024
12025         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12026
12027 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12028
12029         From Jimi X <jimix@watson.ibm.com>:
12030         * rs6000-tdep.c (rs6000_software_single_step): Use
12031         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12032         and size.  Use target_insert_breakpoint() and
12033         target_remove_breakpoint() to insert and remove breakpoints
12034         instead of explicit memory reads and writes.
12035
12036 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12037
12038         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12039         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12040         ELF_OBJECT_FORMAT ifdef.
12041
12042 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12043
12044         From Jimi X <jimix@watson.ibm.com>:
12045         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12046
12047 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12048
12049         From Jimi X <jimix@watson.ibm.com>:
12050         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12051         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12052
12053 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12054
12055         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12056         s/asprintf/xasprintf/.
12057         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12058
12059 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12060
12061         I believe Jeff Law denies responsability for this one:
12062         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12063         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12064         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12065         Work-around for PR gdb/366.
12066
12067 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12068
12069         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12070         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12071         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12072
12073 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12074
12075         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12076         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12077         information.
12078
12079 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12080
12081         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12082         maintainer.
12083
12084 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12085
12086         * README (Reporting Bugs in GDB): Document the bug web page as the
12087         prefered way of submitting bugs.
12088         Fix PR gdb/402.
12089
12090 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12091
12092         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12093         -1.  Update comment.
12094         * gdbarch.h, gdbarch.c: Re-generate.
12095
12096 2002-04-07  Andreas Schwab  <schwab@suse.de>
12097
12098         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12099         buffer to regcache_collect.
12100
12101 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12102
12103         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12104         * gdbarch.c, gdbarch.h: Re-generate.
12105
12106 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12107
12108         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12109         declaration.  Fix -Werror.
12110
12111 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12112
12113         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12114         * gdbarch.c: Regenerate.
12115
12116 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12117
12118         * breakpoint.c (clear_command): Rewrite middle section to
12119         combine two loops with identical control conditions.
12120         Add a cleanup to eliminate a memory leak.
12121         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12122
12123 2002-04-05  H.J. Lu  (hjl@gnu.org)
12124
12125         * solib-svr4.c (bkpt_names): Add "__start".
12126
12127 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12128
12129         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12130         as test for 64 bit target.
12131
12132 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12133
12134         * h8500-tdep.c (h8500_write_fp): Delete function.
12135         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12136         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12137         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12138         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12139         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12140         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12141         (s390_write_fp):
12142         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12143         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12144         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12145         (d10v_write_fp): Delete function.
12146         * inferior.h (write_fp, generic_target_write_fp): Delete
12147         declarations.
12148         * regcache.c (generic_target_write_fp): Delete function.
12149         (write_fp): Delete function.
12150         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12151         * gdbarch.h, gdbarch.c: Regenerate.
12152         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12153         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12154         (sparc64_write_fp): Delete declaration.
12155         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12156         (h8500_write_fp): Delete declaration.
12157
12158 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12159
12160         * sparc-tdep.c (sparc64_write_fp): Delete.
12161         (sparc_push_dummy_frame): Replace write_fp call with code to store
12162         the FP directly.
12163         (sparc_gdbarch_init): Do not initialize write_fp.
12164
12165 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12166
12167         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12168         clause.
12169
12170 2002-03-29  Jim Blandy  <jimb@redhat.com>
12171
12172         * stack.c (get_selected_block): Add new argument `addr_in_block',
12173         used to return the exact code address we used to select the block,
12174         not just the block.
12175         * blockframe.c (get_frame_block, get_current_block): Same.
12176         * frame.h (get_frame_block, get_current_block,
12177         get_selected_block): Update declarations.
12178         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12179         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12180
12181 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12182
12183         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12184         warning message.
12185
12186 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12187
12188         * utils.c (xfullpath): New function.
12189         * defs.h (xfullpath): Add declaration.
12190         * source.c (openp): Use xfullpath in place of gdb_realpath to
12191         avoid resolving the basename part of filenames when the
12192         associated file is a symbolic link. This fixes a potential
12193         inconsistency between the filenames known to GDB and the
12194         filenames it prints in the annotations.
12195         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12196         to be able to match a filename with either the real filename, or
12197         the name of any symbolic link to this file.
12198         (lookup_partial_symtab): Ditto.
12199
12200 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12201
12202         * breakpoint.c: Add support for hardware breakpoints in overlays.
12203         (overlay_events_enabled): New state variable.
12204         (insert_breakpoints): Use overlay_events_enabled to decide
12205         whether to attempt to set a breakpoint at the overlay load addr.
12206         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12207         (remove_breakpoint): Use overlay_events_enabled to decide
12208         whether breakpoints need to be removed from overlay load addr.
12209         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12210         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12211         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12212         disable_overlay_breakpoints): Update overlay_events_enabled.
12213
12214 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12215
12216         * dwarf2read.c (struct function_range): New.
12217         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12218         (check_cu_functions): New.
12219         (read_file_scope): Initialize global function lists.
12220         Call dwarf_decode_line after processing children.
12221         (read_func_scope): Add to global function list.
12222         (dwarf_decode_lines): Call check_cu_functions everywhere
12223         record_line is called.  Call record_line with a linenumber
12224         of 0 to mark sequence ends.
12225
12226 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12227
12228         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12229         change sync with glibc.
12230
12231 2002-04-03  Jim Blandy  <jimb@redhat.com>
12232
12233         * configure.in: Call AC_C_INLINE.
12234         * configure: Regenerated.
12235
12236 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12237
12238         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12239         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12240
12241 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12242
12243         * NEWS: Mention gcore support on FreeBSD/i386.
12244
12245         * fbsd-proc.c: New file.
12246         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12247         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12248
12249         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12250         while statement.
12251
12252 2002-03-29  Jim Blandy  <jimb@redhat.com>
12253
12254         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12255         unescaped newlines in string literals, but newer ones don't.  So
12256         escape them.
12257
12258 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12259             Andrew Cagney <cagney@redhat.com>
12260
12261         * cli/cli-dump.c: New file.  Dump memory to file,
12262         restore file to memory.
12263         * cli/cli-dump.h: New file.
12264         * Makefile.in: Add rules, dependencies for cli-dump.o.
12265         * NEWS: Mention new commands.
12266
12267 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12268
12269         * symfile.c (symbol_file_add): Move test for null symbols to later.
12270
12271 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12272
12273         From veksler at il.ibm.com:
12274         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12275         the xstrduped original path.
12276         Fix PR gdb/417.
12277
12278 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12279
12280         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12281         * infcmd.c (_initialize_infcmd): Ditto.
12282         * language.c (_initialize_language): Ditto.
12283         * symfile.c (_initialize_symfile): Ditto.
12284         * top.c (_init_main): Ditto.
12285         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12286
12287 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12288
12289         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12290         vector registers handling.
12291         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12292         fields of frame data.
12293         (frame_get_saved_regs): Fill in information for AltiVec registers.
12294
12295 2002-03-27  Jim Blandy  <jimb@redhat.com>
12296
12297         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12298         a function; leave this macro here to invoke that function.
12299         (symbol_init_mangled_name): Declaration for that function.
12300         * symtab.c (symbol_init_mangled_name): New function.
12301
12302 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12303
12304         * valarith.c: Replace strerror with safe_strerror.
12305         * tracepoint.c: Ditto.
12306         * lin-lwp.c: Ditto.
12307         * go32-nat.c: Ditto.
12308         * inflow.c: Ditto.
12309         * gnu-nat.c: Ditto.
12310
12311 2002-03-27  Andreas Schwab  <schwab@suse.de>
12312
12313         * event-top.c (command_line_handler): Remove useless if.
12314
12315 2002-03-27  Andreas Jaeger  <aj@suse.de>
12316
12317         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12318         comment.
12319
12320 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12321
12322         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12323         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12324         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12325         (x86_64_linux_dr_get_status, supply_gregset),
12326         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12327         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12328         (x86_64_register_info_table): Add.
12329         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12330         (x86_64_register_raw_size, x86_64_register_virtual_type),
12331         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12332         general x86_64_register_info_table.
12333         (i386_gdbarch_init): gdbarch_register_bytes is now set
12334         dynamicaly during initialization.
12335         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12336         * gdbserver/linux-x86-64-low.c: Ditto.
12337
12338 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12339
12340         * gdbserver/server.c (main): Call target_signal_to_host_p
12341         and target_signal_to_host on signals received from the remote.
12342         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12343         target_signal_from_host on signals sent to the remote.
12344         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12345         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12346
12347 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12348
12349         * signals/signals.c: Include "server.h" in gdbserver build.
12350         (target_signal_from_name): Don't use STREQ.
12351         (_initialize_signals): Likewise.  Don't include function in
12352         gdbserver build.
12353
12354 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12355
12356         * signals.c: Moved to...
12357         * signals/signals.c: Here.
12358         * Makefile (signals.o): Update.
12359
12360 2002-03-26  Jeff Law (law@redhat.com)
12361
12362         * somread.c (som_symtab_read): Remove some commented out code and
12363         updated related comments.  Do not set the minimal symbol table to
12364         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12365         in a dynamic executable.
12366         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12367         where we are unable to find the minimal symbol for the given
12368         PC value.
12369
12370 2002-03-25  Jeff Law (law@redhat.com)
12371
12372         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12373
12374 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12375
12376         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12377
12378 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12379
12380         * command.h: Update copyright.
12381         (struct cmd_list_element): Replace definition with opaque
12382         declaration.
12383         (enum cmd_types): Document that it will eventually be moved to
12384         cli/cli-decode.h
12385         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12386         (MALLOCED_REPLACEMENT): Delete macro.
12387         * Makefile.in (cli_decode_h): Add $(command_h).
12388         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12389         * top.c: Include "cli/cli-decode.h".
12390         * completer.c: Include "cli/cli-decode.h".
12391         * maint.c: Include "cli/cli-decode.h".
12392         * cli/cli-decode.h: Include "command.h".
12393         (enum command_class): Delete.
12394         (enum cmd_types): Comment out.
12395         (enum cmd_auto_boolean): Delete.
12396         (enum var_types): Delete.
12397
12398 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12399
12400         * cli/cli-decode.c: Include "gdb_assert.h".
12401         (add_set_or_show_cmd): New static function.
12402         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12403         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12404         all fields, such as func, from the set command.
12405
12406 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12407
12408         * MAINTAINERS (sh-elf): Change warning flag to -w.
12409
12410 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12411
12412         * defs.h (error): Add printf format attribute.
12413         * thread-db.c (thread_from_lwp): Fix error format string.
12414         * stack.c (parse_frame_specification): Ditto.
12415         * cli/cli-decode.c (undef_cmd_error): Ditto.
12416         * scm-lang.c (scm_lookup_name): Ditto.
12417         * tracepoint.c (trace_error): Ditto.
12418         * remote-utils.c (usage): Ditto.
12419         * remote.c (compare_sections_command): Ditto.
12420         Fix PR gdb/328.
12421
12422 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12423
12424         * gdbtypes.c (append_composite_type_field): New function.
12425         (init_composite_type): New function.
12426         * gdbtypes.h (append_composite_type_field): Declare.
12427         (init_composite_type): Ditto.
12428
12429 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12430
12431         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12432         function.
12433         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12434         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12435         structure returning convention for SYSV ABI case, but not
12436         for GNU/Linux, FreeBSD, or NetBSD.
12437
12438 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12439
12440         * symtab.h (lookup_block_symbol): Add mangled_name argument
12441         to prototype.
12442
12443         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12444         with new mangled_name argument.
12445         * linespec.c (decode_line_1): Likewise.
12446         * valops (value_of_this): Likewise.
12447         * symtab.c (lookup_transparent_type): Likewise.
12448         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12449         (lookup_symbol): If we are given a mangled name, pass it down
12450         to lookup_symbol_aux.
12451         (lookup_block_symbol): If we are given a mangled name to check
12452         against, only return symbols which match it.
12453
12454 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12455
12456         * win32-nat.c (child_create_inferior): Check for proper shell to use
12457         here, in case the user changes it on the fly.
12458         (_initialize_inftarg): Remove shell path considerations.
12459
12460 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12461
12462         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12463         for gdbarch_max_register_raw_size and max_register_virtual_size.
12464         Adjust copyright year.
12465
12466 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12467
12468          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12469          in a function to cover the entire beginning of the function
12470          as well if it does not already.
12471
12472 2002-03-21  Tom Rix  <trix@redhat.com>
12473
12474         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12475         (rs6000_ptrace64): Renamed from ptrace64.
12476
12477 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12478
12479         * gdbserver/remote-utils.c (remote_open): Don't call
12480         getprotobyname, we're all using TCP here so just use
12481         IPPROTO_TCP.
12482         * gdbserver/gdbreplay.c (remote_open): Ditto.
12483
12484 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12485
12486         * regcache.c (_initialize_regcache): No need to call
12487         build_regcache() at this time; it gets called whenever
12488         the gdbarch changes.
12489
12490 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12491
12492         * sparc-nat.c:  Include sys/param.h where possible.
12493
12494 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12495
12496         Fix PR gdb/422.
12497         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12498         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12499         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12500         complex types.
12501         * stabsread.c (rs6000_builtin_type): Likewise.
12502         (read_sun_floating_type): Likewise.
12503
12504 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12505
12506         * stabsread.c (read_member_functions): Remove skip code for duplicate
12507         constructor/destructor methods.  Use standard parsing for these
12508         methods and just do not chain them to the list of methods after
12509         parsing.
12510
12511 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12512
12513         * coffread.c: Remove redundant static declarations.  Replace
12514         occurrences of `PTR' with `void *'.
12515         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12516         * top.h (quit_cover): Likewise.
12517         * defs.h (catch_errors): Likewise.
12518
12519 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12520
12521         * defs.h (XMALLOC): Define.
12522         * gdb-events.sh (XMALLOC): Delete macro.
12523         * gdb-events.c, gdb-events.h: Regenerate.
12524         * gdbarch.sh (XMALLOC): Delete macro.
12525         * gdbarch.c: Regenerate.
12526         * serial.c (XMALLOC): Delete macro.
12527         * ui-file.c (XMALLOC): Ditto.
12528         * ser-unix.h (XMALLOC): Ditto.
12529         * sh-tdep.c (XMALLOC): Ditto.
12530         * ui-out.c (XMALLOC): Ditto.
12531         * utils.c (XMALLOC): Ditto.
12532         * i386-tdep.c (XMALLOC): Ditto.
12533         * gdb-events.c (XMALLOC): Ditto.
12534         * d10v-tdep.c (XMALLOC): Ditto.
12535         * cli-out.c (XMALLOC): Ditto.
12536
12537         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12538         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12539         * ui-file.c, ui-out.c: Ditto.
12540
12541 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12542
12543         * command.h (struct cmd_list_element): Add field context.
12544         (set_cmd_context, get_cmd_context): Declare.
12545         * cli/cli-decode.h: Ditto.
12546         * cli/cli-decode.c (get_cmd_context): New function.
12547         (set_cmd_context): New function.
12548         (add_cmd): Initialize context.
12549         Part of fixing PR gdb/145 and PR gdb/146.
12550
12551 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12552
12553         * cli/cli-decode.c (cmd_type): New function.
12554         * command.h (cmd_type): Declare.
12555         * infrun.c (set_schedlock_func): Call function cmd_type.
12556         * kod.c (kod_set_os): Call cmd_type.
12557         * cris-tdep.c (cris_version_update): Use function cmd_type.
12558         (cris_mode_update, cris_abi_update): Ditto.
12559
12560         * command.h: (execute_cmd_post_hook): Declare.
12561         (execute_cmd_pre_hook): Declare.
12562         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12563         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12564         functions. Execute pre/post hook while ensuring that afterwords
12565         hook_in is cleared.
12566         * top.c (execute_command): Use execute_cmd_post_hook, and
12567         execute_cmd_pre_hook to execute pre/post commands.
12568         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12569         hook_stop_stub.
12570         (hook_stop_stub): Call execute_cmd_pre_hook.
12571
12572 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12573
12574         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12575         set'' and this leads to a core dump.  Move xstrdup of
12576         operating_system to after check that it is not NULL.
12577
12578 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12579
12580         * kod.c (kod_set_os): Remove unnecessary check that
12581         ``command->type'' is set_cmd.
12582
12583         * valprint.c (set_input_radix): Use input_radix.
12584         (set_output_radix): Use output_radix.
12585         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12586         isn't reverted.
12587
12588 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12589
12590         * value.h (struct value): Delete field ``substring_addr''.  Change
12591         aligner fields to force_doublest_align, force_longest_align,
12592         force_core_addr_align and force_pointer_aligh.
12593
12594         * value.h (struct value): Fix typo in above change.
12595
12596 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12597
12598         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12599         to fix internal_error from ``maintenance print architecture''.
12600
12601 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12602
12603         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12604         for gcc versions after gcc-2.8.1.
12605
12606 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12607
12608         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12609         for method resolution.  Restore adjustment of ``this'' pointer after
12610         calling value_struct_elt, which was accidentally removed during the
12611         HP merge.
12612
12613 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12614
12615         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12616         value_of_register.
12617         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12618         get_saved_register.
12619         * value.h (value_of_register): Update.
12620
12621 2002-03-14  Richard Henderson  <rth@redhat.com>
12622
12623         * configure.in: Detect declaration for canonicalize_file_name.
12624         * utils.c (canonicalize_file_name): Declare, if needed.
12625         (gdb_realpath): Prefer realpath if available and usable.
12626         * config.in, configure: Rebuild.
12627
12628 2002-03-14  Richard Henderson  <rth@redhat.com>
12629
12630         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12631         a constant array bound.
12632
12633         * MAINTAINERS: Add myself to write-after-approval.
12634
12635 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12636
12637         * symfile.c (syms_from_objfile): Return immediately if no syms.
12638         (symbol_file_add): Return immediately if no syms.
12639         (find_sym_fns): Return immediately if no syms.
12640
12641 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12642
12643         * gdbserver/remote-util.c (remote_open): Print remote-side's
12644         IP address when remote debugging over the network.
12645
12646 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12647
12648         * config/sparc/fbsd.mh: Fix copyright.
12649         * config/sparc/fbsd.mt: Likewise.
12650
12651 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12652
12653         * MAINTAINERS: Fix typo in name of gdb warnings option.
12654         (x86-64): Fix formating so that this can be parsed by awk.
12655
12656 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12657
12658         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12659         * defs.h: Include "gdb/signals.h".
12660         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12661
12662 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12663
12664         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12665         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12666         from x86-64-tdep.h
12667
12668 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12669             Don Howard <dhoward@redhat.com>
12670
12671         * mips-tdep.c (ST0_FR): Define.
12672         (mips2_fp_compat): New function, temporarily disabled.
12673         (mips_read_fp_register_single): New function.
12674         (mips_read_fp_register_double): New function.
12675         (mips_print_register): Use them.
12676         (do_fp_register_row): Likewise.
12677
12678 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12679
12680         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12681         approval''.
12682
12683 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12684
12685         * stabsread.c (read_member_functions): Fix is_stub test for
12686         static member functions, improve comment.
12687
12688 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12689
12690         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12691         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12692         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12693         commands that set boolean values.
12694         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12695         (arm_rdi_resume): Always initialize PC.
12696         (arm_rdi_open): Don't use rslt as a boolean.
12697         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12698         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12699         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12700         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12701
12702 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12703
12704         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12705         * configure: Rebuilt.
12706
12707 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12708
12709         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12710         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12711
12712 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12713
12714         * cli/cli-decode.c (set_cmd_completer): New function.
12715         * command.h (set_cmd_completer): Declare.
12716         * cli/cli-decode.h (set_cmd_completer): Ditto.
12717
12718         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12719         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12720         * win32-nat.c (_initialize_inftarg): Ditto.
12721         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12722         * proc-api.c (_initialize_proc_api): Ditto.
12723         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12724         * source.c (_initialize_source): Ditto.
12725         * exec.c (_initialize_exec): Ditto.
12726         * solib.c (_initialize_solib): Ditto.
12727         * top.c (init_main): Ditto.
12728         * tracepoint.c (_initialize_tracepoint): Ditto.
12729         * symfile.c (_initialize_symfile): Ditto.
12730         * printcmd.c (_initialize_printcmd): Ditto.
12731         * infcmd.c (_initialize_infcmd): Ditto.
12732         * corefile.c (_initialize_core): Ditto.
12733
12734 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12735
12736         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12737
12738 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12739
12740         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12741
12742 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12743
12744         * NEWS: Update headings, 5.2 has branched.
12745
12746 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12747
12748         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12749         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12750         (register_addr, REGISTER_RAW_SIZE): Likewise.
12751         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12752         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12753
12754 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12755
12756         * MAINTAINERS (x86-64): Add myself.
12757         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12758         changed value_ptr -> struct value *
12759
12760 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12761
12762         * configure.host (sparc64-*-freebsd): Add.
12763         * configure.tgt: Likewise.
12764         * config/sparc/fbsd.mh: New file.
12765         * config/sparc/fbsd.mt: Likewise.
12766         * config/sparc/nm-fbsd.h: Likewise.
12767         * config/sparc/tm-fbsd.h: Likewise.
12768
12769 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12770
12771         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12772         regformats/reg-s390x.dat.
12773
12774 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12775
12776         * utils.c: Add FIXME explaining true/false problem.
12777
12778 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12779
12780         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12781
12782 2002-02-28  Michael Chastain  <mec@shout.net>
12783
12784         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12785
12786 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12787
12788         * gdbserver/linux-s390-low.c: New file.
12789         * regformats/reg-s390.dat: New file.
12790         * regformats/reg-s390x.dat: New file.
12791         * gdbserver/configure.srv: Add S/390.
12792         * gdbserver/Makefile.in: Add S/390.
12793         * configure.tgt: Enable gdbserver for S/390.
12794
12795 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12796
12797         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12798         first line of the doc string for "info dos", except at the end of
12799         the sentence, since the short help stops at the first period.
12800
12801 2002-02-28  Jason Merrill  <jason@redhat.com>
12802
12803         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12804
12805 2002-02-27  Fred Fish  <fnf@redhat.com>
12806
12807         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12808         comment (dumy -> dummy).
12809
12810 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12811
12812         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12813
12814 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12815
12816       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12817
12818 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12819
12820         * gdbserver/acconfig.h: New file.
12821         * gdbserver/i387-fp.c: New file.
12822         * gdbserver/i387-fp.h: New file.
12823         * gdbserver/linux-x86-64.c: New file.
12824         * regformats/reg-x86-64.dat: New file.
12825         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12826         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12827         * gdbserver/configure.in: Add support for regsets.
12828         * gdbserver/config.in: Regenerate.
12829         * gdbserver/configure: Regenerate.
12830         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12831         * gdbserver/linux-low.h: New file.
12832         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12833         for regsets.
12834         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12835         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12836         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12837         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12838         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12839         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12840         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12841         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12842         * gdbserver/regcache.c (supply_register): New function.
12843         (supply_register_by_name): New function.
12844         (collect_register): New function.
12845         (collect_register_by_name): New function.
12846
12847 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12848
12849         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12850         (config.status): Add configure.srv dependency.
12851         (server_h): Add config.h dependency.
12852
12853 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12854
12855         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12856         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12857         * gdbserver/configure.srv: Change i386-*-linux* to use
12858         reg-i386-linux.o.
12859
12860 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12861
12862         * x86-64-tdep.c: Re-indent.  Update copyright date.
12863
12864 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12865
12866         From Michal Ludvig <mludvig@suse.cz>:
12867         * x86-64-tdep.c (value.h): Delete.
12868         (gdb_assert.h): Include.
12869         (x86_64_register_convert_to_virtual,
12870         x86_64_register_convert_to_raw ): Add check which lets only
12871         floating-point values to be converted.
12872         (value_push): Delete.
12873         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12874         (i386_gdbarch_init): Number of register_bytes fixed.
12875
12876 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12877
12878         * MAINTAINERS: Add x86-64 target.
12879
12880 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12881
12882         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12883         * osfsolib.c (solib_map_sections): Ditto.
12884         * irix5-nat.c (solib_map_sections): Ditto.
12885         * corelow.c (gdb_check_format): Ditto.
12886         * symfile.c (symfile_bfd_open): Ditto.
12887         * solib.c (solib_map_sections): Ditto.
12888         Fix PR gdb/354.
12889
12890 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12891
12892         * remote.c (_initialize_remote): By default, disable ``e'' and
12893         ``E'' step out-of-range packets.
12894
12895 2002-02-26  Andreas Schwab  <schwab@suse.de>
12896
12897         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12898         m68k_linux_frame_saved_pc.
12899         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12900         in_sigtramp.
12901         (SIGCONTEXT_PC_OFFSET): Remove.
12902         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12903         m68k_linux_sigtramp_saved_pc): New functions.
12904         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12905         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12906         (UCONTEXT_PC_OFFSET): Define.
12907         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12908         non-RT and RT signal trampolines.
12909
12910 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12911
12912         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12913         (TARGET_NBPG, STACK_END_ADDR): Delete
12914         (VARIABLES_INSIDE_BLOCK): Delete.
12915
12916 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12917
12918         * utils.c (perror_with_name): Make string parameter constant.
12919         (print_sys_errmsg): Ditto.
12920         (query): Ditto.
12921         * defs.h (perror_with_name): Update.
12922         (print_sys_errmsg): Update.
12923         (query): Update.
12924
12925 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12926
12927         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12928         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12929
12930 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12931
12932         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12933         if it already matches the current architecture from the exec file.
12934         Include arch-utils.h for gdbarch_info_init prototype.
12935         * Makefile.in (rs6000-nat.o): Update dependencies.
12936
12937 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12938
12939         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12940          list of exported variables.
12941
12942 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12943
12944         * gdbserver/configure.srv: New file.
12945         * gdbserver/configure.in: Use configure.srv instead
12946         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12947         from it.
12948         * gdbserver/configure: Regenerated.
12949         * gdbserver/terminal.h: New file.
12950         * gdbserver/Makefile.in: Update for configure changes.  Remove
12951         more unneeded include paths.
12952
12953 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12954
12955         From wiz at danbala:
12956         * config/sparc/tm-sp64.h: Fix grammar and typos.
12957         Fix PR gdb/287.
12958
12959 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12960
12961         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12962         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12963         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12964         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12965         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12966         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12967         * s390-tdep.c: Ditto.
12968         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12969         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12970         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12971         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12972         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12973         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12974         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12975         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12976         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12977         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12978         Fix PR gdb/378.
12979
12980 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12981
12982         * lin-thread.c: Delete file.
12983         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12984         to gdb_proc_service.h.
12985         * configure: Re-generate.
12986
12987         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12988         * serial.c (serial_open): Delete check for "ocd".
12989         Fix PR gdb/349.
12990
12991         * Makefile.in (linux-thread.o): Delete target.
12992         * linux-thread.c: Delete file.
12993
12994         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12995         renamed SH files to be consistent.
12996
12997         * symtab.c (sort_search_symbols): Use xfree.
12998
12999 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13000
13001         * arm-linux-tdep.c (arm_linux_init_abi): Register
13002         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13003         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13004         definition with undef, since we don't want the sysvr4 definition.
13005         (SKIP_TRAMPOLINE_CODE): Likewise.
13006
13007 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13008
13009         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13010
13011         * configure.in: (AC_CHECK_FUNCS) Added test for
13012         canonicalize_file_name Regenerated.
13013         * config.in, configure: Regenerated.
13014         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13015         defined use canonicalize_file_name.
13016
13017 2002-02-23  Michael Chastain  <mec@shout.net>
13018
13019         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13020
13021 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13022
13023         * README: Remove references to cygnus.com.
13024         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13025         dot com'' form.  Remove references to cygnus.com and sourceware.
13026
13027 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13028
13029         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13030         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13031         1003.1-2001 no longer allows "head -1".
13032         * gdb/Makefile.in (version.c): Likewise.
13033         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13034         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13035         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13036
13037 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13038
13039         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13040         * command.h (cmd_cfunc_eq): Declare.
13041         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13042
13043         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13044         ``struct cmd_list_element *''.
13045         * cli/cli-cmds.c (is_complete_command): Update.  Use
13046         cmd_cfunc_eq.
13047         * top.c (execute_command): Pass the command to
13048         is_complete_command.
13049         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13050
13051 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13052
13053         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13054         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13055         architecture defines.
13056         * s390-tdep.c (s390_gdbarch_init): Likewise.
13057
13058 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13059
13060         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13061         (arm_linux_push_arguments): Likewise.
13062         (arm_linux_init_abi): Register them.  Also register linux-specific
13063         call_dummy_words.
13064         (find_minsym_and_objfile): Use strcmp, not STREQ.
13065         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13066         (arm_linux_call_dummy_words): Delete declaration.
13067         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13068         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13069         declarations.
13070         (LOWEST_PC): Delete.
13071
13072 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13073
13074         * maint.c (print_section_info): Do not prepend `0x' to filepos
13075         output, it will be handled by local_hex_string_custom.
13076
13077 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13078
13079         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13080         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13081         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13082
13083 2002-02-22  Jim Blandy  <jimb@redhat.com>
13084
13085         Indicate that the bcache functions don't change the strings
13086         they're passed.
13087         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13088         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13089
13090 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13091
13092         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13093
13094 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13095
13096         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13097         find the complete path to a loaded DLL.
13098
13099 2002-02-21  Fred Fish  <fnf@redhat.com>
13100
13101         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13102         that marks the end of the range of a function, enter a line number
13103         entry that has a line number of zero and a PC offset that matches
13104         the end of the function.  This starts a range of PC's for which no
13105         line number information is known.
13106         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13107         PC's for which no line number info is found (line number is zero)
13108         then we didn't find any valid line information.
13109         * symtab.h: Document use of zero line number entry.
13110
13111 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13112
13113         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13114         (have_ptrace_getvrregs): Define for run time checks.
13115         (gdb_vrregset_t): New type for Altivec register handling.
13116         (fetch_register, store_register): Fetch/store altivec register
13117         when needed.
13118         (fetch_altivec_register, store_altivec_register): New functions.
13119         (supply_vrregset, fill_vrregset): New functions.
13120         (fetch_altivec_registers, store_altivec_registers): New functions.
13121         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13122         registers as well.
13123
13124 2002-02-21  Jiri Smid  <smid@suse.cz>
13125
13126         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13127
13128 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13129
13130         * Makefile.in (armnbsd-nat.o): Update dependencies.
13131         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13132         supply the integer register set.
13133         (supply_fparegset): New function.  Similar for FPA registers.
13134         (fetch_regs, fetch_fp_regs): Use them.
13135         (fetch_core_registers): Likewise.
13136         (fetch_elfcore_registers): New function.
13137         (arm_netbsd_elfcore_fns): New core-file type specification.
13138         (_initialize_arm_netbsd_nat): Register it.
13139
13140 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13141
13142         * armnbsd-nat.c: Include gdbcore.h.
13143         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13144         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13145         'void' to declaration, to shut up ARI.
13146         (fetch_core_registers): Make static.  Rewrite using supply_register.
13147         (arm_netbsd_core_fns): New core-file type specification.
13148         (_initialize_arm_netbsd_nat): New function.
13149
13150 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13151
13152         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13153         value.
13154
13155 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13156
13157         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13158         fails.
13159
13160 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13161
13162         * jv-exp.y (parse_number): Change type of implicit longs
13163         to builtin_type_uint64.
13164
13165 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13166
13167         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13168         to be an integer instead of a `union wait'.
13169
13170 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13171
13172         * mips-linux-nat.c: Call the operating system GNU/Linux.
13173         * mips-linux-tdep.c: Likewise.
13174         * mips-tdep.c: Likewise.
13175
13176 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13177
13178         Fix PR gdb/265.
13179         * jv-exp.y (parse_number): Handle 64-bit integers.
13180
13181 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13182
13183         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13184         AC_STDC_HEADERS to AC_HEADER_STDC.
13185         * gdbserver/configure: Regenerated.
13186
13187 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13188
13189         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13190         is defined.
13191         * sparc-tdep.c (get_longjmp_target): Likewise.
13192
13193 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13194
13195         * News: Add news about ARM and Multi-arch.  Mention the new target
13196         arm*-*-netbsd*.
13197
13198 2002-02-19  Jim Blandy  <jimb@redhat.com>
13199
13200         * stabsread.c (error_type_complaint): Improve error message.
13201
13202 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13203
13204         * gdbserver/README: Update documentation.
13205         * gdbserver/configure.in: Update configury to match documentation.
13206         * gdbserver/Makefile.in: Likewise.
13207         * gdbserver/configure: Regenerated.
13208         * gdbserver/aclocal.m4: New file, generated by aclocal.
13209         * gdbserver/config.in: New file, generated by autoheader.
13210
13211 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13212
13213         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13214         armnbsd-nat.c.
13215
13216 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13217
13218         * arm-tdep.h (enum arm_float_model): New enum.
13219         (struct gdbarch_tdep): Add fp_model.
13220         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13221         up floating-point conversions until we know the floating-point model
13222         in use by the inferior.  Don't complain about being unable to
13223         determine the ABI of the inferior when we don't have one.
13224         (arm_extract_return_value): Support different floating-point models.
13225         (arm_store_return_value): Likewise.
13226         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13227         ARM_FLOAT_SOFT.
13228         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13229
13230 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13231
13232         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13233         of ``current_gdbarch''.
13234
13235 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13236
13237         * armnbsd-nat.c : ANSIfy all function declarations.
13238         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13239         (fetch_inferior_registers): Re-implement in terms of above.
13240         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13241         (store_inferior_registers): Re-implement in terms of above.
13242
13243 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13244
13245         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13246         kernel.
13247         * arm-linux-tdep.c: Likewise.
13248         * config/arm/tm-linux.h: Likewise.
13249
13250 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13251
13252         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13253         * config/arm/nbsd.mt (TM_FILE): Delete.
13254         * config/arm/tm-nbsd.h: Delete.
13255
13256 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13257
13258         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13259         Initialize CALL_DUMMY_LENGTH.
13260
13261 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13262
13263         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13264         function.
13265         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13266         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13267         defines one thing and that is incorrect for this port.
13268         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13269
13270 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13271
13272         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13273
13274 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13275
13276         * win32-nat.c (display_selector): New function. Displays information
13277         about the information returned by GetThreadSelectorEntry API function.
13278         (display_selectors): New function. Displays the infomation of
13279         the selector given as argument, or of CS, DS ans FS selectors
13280         if no argument is given.
13281         ( _initialize_inftarg): Add "w32" as info prefix command.
13282         Add "info w32 selector" as command calling display_selectors.
13283
13284 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13285
13286         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13287         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13288         if not defined.
13289
13290 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13291
13292         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13293
13294 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13295
13296         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13297         (arm_fix_call_dummy): Call it.
13298         (arm_call_dummy_breakpoint_offset): Delete.
13299         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13300         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13301
13302 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13303
13304         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13305         Default to func_frame_chain_valid.
13306         * gdbarch.h, gdbarch.c: Re-generate.
13307         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13308
13309 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13310
13311         * ppc-linux-nat.c: Update copyright.
13312         (fetch_register, store_register): Add tid parameter, don't compute
13313         tid here.
13314         (fetch_ppc_registers, store_ppc_registers): Add tid
13315         parameter. Pass it along to callees.
13316         (fetch_inferior_registers, store_inferior_registers): Compute tid
13317         here, and pass it to calleed functions.
13318         (fill_gregset, supply_fpregset): Clean up formatting.
13319
13320 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13321
13322         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13323         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13324
13325 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13326
13327         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13328         * gdbarch.c gdbarch.h: Regenerate.
13329         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13330         function.
13331         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13332         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13333         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13334
13335         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13336         * arm-tdep.c (arm_get_longjmp_target): New function.
13337         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13338         this to a positive value register arm_get_longjmp_target as the
13339         longjmp handler.
13340         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13341         (arm_linux_init_abi): Set up longjmp description in tdep.
13342         * armnbsd-nat.c (get_longjmp_target): Delete.
13343         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13344         description in tdep.
13345         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13346         (get_longjmp_target): Delete declaration.
13347         (GET_LONGJMP_TARGET): Delete.
13348         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13349         (GET_LONGJMP_TARGET): Delete.
13350
13351 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13352
13353         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13354         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13355         of ``current_gdbarch''.
13356
13357 2002-02-17  Tom Tromey  <tromey@redhat.com>
13358
13359         * cli/cli-cmds.c (compare_strings): New function.
13360         (complete_command): Only print each unique item once.
13361         * completer.h (complete_line): Declare.
13362         * completer.c (complete_line): New function.
13363         (line_completion_function): Use it.
13364
13365 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13366
13367         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13368         * gdbarch.h, gdbarch.c: Re-generate.
13369
13370 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13371
13372         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13373
13374 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13375
13376         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13377         * valops.c (value_arg_coerce): Don't take the address of a reference
13378         to convert an argument to a reference.
13379
13380 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13381
13382         * win32-nat.c (get_image_name): New function.
13383         (handle_load_dll): Use get_image_name function.
13384         (get_child_debug_event): Avoid registering debug events until possibly
13385         execed process is started.
13386         (child_create_inferior): Allow invocation via shell so that command
13387         line redirection, etc.  works ok.
13388         (_initialize_inftarg): Add new command: "set shell" to control whether
13389         a shell is used to start a process.
13390
13391 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13392
13393         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13394         instead of find_register_by_number.
13395         (cannot_store_register): Likewise.
13396
13397 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13398
13399         * dwarf2read.c: Replace fprintf (stderr, ...) by
13400         fprintf_unfiltered (gdb_stderr, ...).
13401
13402 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13403
13404         * gdbserver/gdbserver.1: Document --attach.
13405
13406 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13407
13408         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13409         descriptions.
13410         * arm-tdep.c (arm_default_arm_le_breakpoint)
13411         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13412         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13413         traditional breakpoint defines.
13414         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13415         (arm_gdbarch_init): Initialize new breakpoint variables.
13416         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13417         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13418         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13419         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13420         code out to ...
13421         (arm_netbsd_init_abi_common): ... here; new function.
13422         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13423         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13424         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13425         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13426
13427 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13428
13429         * arm-tdep.h (enum arm_abi): New enum.
13430         (struct gdbarch_tdep): New structure.
13431         (LOWEST_PC): Provide a default.
13432         (arm_gdbarch_register_os_abi): Declare new function.
13433         * arm-tdep.c (arm_abi_names): New array.
13434         (process_note_abi_tag_sections): New function.
13435         (get_elfosabi): New function.
13436         (arm_gdbarch_register_os_abi): New function.
13437         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13438         support for that ABI has been built in, then call the appropriate
13439         configuration routine.  Use gdbarch_num_regs() to get the number
13440         of registers.
13441         (arm_dump_tdep): New function.
13442         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13443         place-holder functions.
13444         (_initialize_arm_tdep): Register them.
13445         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13446
13447         * armnbsd-tdep.c: New file.
13448         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13449         * config/arm/nbsd.mt (TDEPFILES): Add it.
13450         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13451
13452         * armnbsd-nat.c: Include regcache.h.
13453         * Makefile.in (armnbsd-nat.o): Update dependency list.
13454
13455         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13456
13457 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13458
13459         * gdbserver/Makefile.in: Fix typos in target rules.
13460
13461 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13462
13463         Fix part of PR gdb/267.
13464         * linespec.c (find_methods): Handle constructors specially for now.
13465
13466 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13467
13468         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13469         handling.
13470         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13471         standard_coerce_float_to_double().
13472
13473 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13474
13475         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13476         GDBINIT_FILENAME.
13477
13478 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13479
13480         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13481         find_variant_by_name, because it confuses the multiarch
13482         framework. Return NULL if there isn't an architecture with the
13483         user supplied name, instead of forcing a different one without
13484         recording the change with the multiarch machinery.
13485         (find_variant_by_name): Delete.
13486
13487 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13488
13489         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13490         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13491
13492 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13493
13494         * stack.c (print_frame_info_base): When calling
13495         print_frame_info_listing_hook, set current_source_symtab.
13496
13497 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13498
13499         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13500         and remove unused $(INCLUDE_DIR).
13501         Add regcache.c to OBS.
13502         Add generated register protocol files to clean target.
13503         Update dependencies for new objects, obsolete old target code.
13504
13505         * gdbserver/linux-low.c: Remove all platform-specific code to
13506         new files.  Remove various dead code.  Update to use regcache
13507         functionality.
13508         * gdbserver/remote-utils.c (fromhex): Add return statement
13509         to quiet warning.
13510         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13511         constant.
13512         (input_interrupt): Add integer parameter to match prototype
13513         of a signal handler.
13514         (outreg): Use register_data ().
13515         (prepare_resume_reply): Use gdbserver_expedite_regs.
13516         * gdbserver/server.c (main): Dynamically allocate own_buf because
13517         PBUFSIZ is no longer constant.  Use registers_to_string () and
13518         registers_from_string ().
13519         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13520         for error (), fatal (), and warning ().  Update definition of
13521         PBUFSIZ to use regcache functionality.  Add include guard.
13522         * gdbserver/utils.c (fatal): Add missing ``const''.
13523         (warning): New function.
13524
13525         * regformats/regdat.sh: Include "regcache.h" in generated files.
13526         Provide init_registers () function.
13527         * regformats/regdef.h: Add prototype for set_register_cache ().
13528         Add include guard.
13529
13530         * gdbserver/linux-arm-low.c: New file.
13531         * gdbserver/linux-i386-low.c: New file.
13532         * gdbserver/linux-ia64-low.c: New file.
13533         * gdbserver/linux-m68k-low.c: New file.
13534         * gdbserver/linux-mips-low.c: New file.
13535         * gdbserver/linux-ppc-low.c: New file.
13536         * gdbserver/linux-sh-low.c: New file.
13537
13538         * gdbserver/regcache.c: New file.
13539         * gdbserver/regcache.h: New file.
13540
13541         * gdbserver/low-linux.c: Removed obsolete file.
13542
13543 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13544
13545         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13546         * config/i386/linux.mt: Likewise.
13547         * config/ia64/linux.mt: Likewise.
13548         * config/m68k/linux.mh: Likewise.
13549         * config/powerpc/linux.mh: Likewise.
13550         * config/mips/linux.mt: Likewise.
13551
13552         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13553
13554         * config/i386/i386lynx.mh: Mark gdbserver variables
13555         as (currently) obsolete for this target.
13556         * config/i386/nbsd.mt: Likewise.
13557         * config/i386/nbsdelf.mt: Likewise.
13558         * config/m32r/m32r.mt: Likewise.
13559         * config/m68k/m68klynx.mh: Likewise.
13560         * config/m68k/nbsd.mt: Likewise.
13561         * config/m68k/sun3os4.mh: Likewise.
13562         * config/mips/vr5000.mt: Likewise.
13563         * config/ns32k/nbsd.mt: Likewise.
13564         * config/pa/hppabsd.mh: Likewise.
13565         * config/pa/hppaosf.mh: Likewise.
13566         * config/powerpc/nbsd.mt: Likewise.
13567         * config/rs6000/rs6000lynx.mh: Likewise.
13568         * config/s390/s390.mt: Likewise.
13569         * config/s390/s390x.mt: Likewise.
13570         * config/sparc/sparclynx.mh: Likewise.
13571         * config/sparc/sun4os4.mh: Likewise.
13572         * config/i386/x86-64linux.mt: Likewise.
13573         * config/sparc/linux.mh: Likewise.
13574
13575 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13576
13577         * configure.tgt: Configure gdbserver only for known working
13578         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13579         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13580         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13581         * configure: Regenerated.
13582
13583 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13584
13585         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13586
13587         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13588         (default_gcore_mach): Just return 0, work around a problem in bfd.
13589         (default_gcore_target): OK to return NULL if exec_bfd is null.
13590         (make_mem_sec): Use a cast, avoid a warning.
13591
13592         * procfs.c (find_memory_regions_callback): Use a cast instead of
13593         calling host_pointer_to_address (which complains if
13594         sizeof (host pointer) != sizeof (target pointer)).
13595         (procfs_make_note_section): Avoid overflow in psargs string.
13596
13597         * procfs.c (procfs_make_note_section): Make the default
13598         implementation return an error.
13599
13600 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13601
13602         * procfs.c (procfs_make_note_section): Provide a default definition
13603         (for alpha-dec-osf4.0f). Fix typos.
13604
13605 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13606
13607         * linux-proc.c: Add include of regcache.h.
13608         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13609
13610 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13611
13612         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13613         * memattr.c (create_mem_region): Disallow useless empty region.
13614         Regions are half-open intervals, so allow [A..B) [B..C) as
13615         non-overlapping.
13616
13617 2002-02-13  Michael Chastain <mec@shout.net>
13618
13619         * defs.h: Kill CONST_PTR.
13620         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13621         * c-lang.c (c_builtin_types): Likewise.
13622         * ch-lang.c (ch_builtin_types): Likewise.
13623         * f-lang.c (f_builtin_types): Likewise.
13624         * language.c (unknown_builtin_types): Likewise.
13625         * m2-lang.c (m2_builtin_types): Likewise.
13626         * p-lang.c (pascal_builtin_types): Likewise.
13627         * scm-lang.c (c_builtin_types): Likewise.
13628
13629 2002-02-13  Keith Seitz  <keiths@redhat.com>
13630
13631         * arm-tdep.h (arm_get_next_pc): Add declaration.
13632
13633 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13634
13635         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13636         with other related struct-returning functions.
13637         (arm_extract_struct_value_address): New function.
13638         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13639         initialize float_format, double_format and long_double_format as
13640         appropriate to the endianness of the target.
13641         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13642         (arm_use_struct_convention): Delete declaration.
13643         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13644
13645 2002-02-13  Keith Seitz  <keiths@redhat.com>
13646
13647         * defs.h (core_addr_to_string_nz): New function.
13648
13649 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13650
13651         Apply missing bits of 2002-01-15 patch.
13652         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13653         (fill_fpregset): Use i387_fill_fsave.
13654
13655 2002-02-12  Keith Seitz  <keiths@redhat.com>
13656
13657         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13658         (core_addr_to_string_nz): New function.
13659
13660 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13661
13662         * arm-linux-nat.c: Really include arm-tdep.h.
13663         * config/arm/tm-linux.h (struct type, struct value): Declare.
13664
13665 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13666
13667         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13668         (gcore section): Ifdef for Solaris and Unixware only.
13669         (procfs_do_thread_registers): Unixware needs one lwpstatus
13670         per thread (not one prstatus or pstatus).
13671         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13672         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13673         once before iterating over threads.
13674
13675 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13676
13677         * arm-tdep.h: New file.
13678         * arm-tdep.c: Include arm-tdep.h.
13679         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13680         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13681         (arm_print_float_info, arm_register_type, convert_to_extended)
13682         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13683         (arm_extract_return_value, arm_register_name): Make static.
13684         (arm_software_single_step): Similarly.  Fix types in declaration.
13685         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13686         (arm_store_return_value, arm_store_struct_return): New functions.
13687         (arm_gdbarch_init): Register the above functions.  Also register
13688         call_dummy_start_offset, sizeof_call_dummy_words,
13689         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13690         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13691         max_register_virtual_size, register_size.  Set up
13692         prologue_cache.saved_regs here, rather than ...
13693         (_initialize_arm_tdep): ... here.
13694         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13695         declarations.
13696         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13697         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13698         (arm_print_float_info, arm_register_type, convert_to_extended)
13699         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13700         (arm_extract_return_value, arm_register_name): Delete declarations.
13701         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13702         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13703         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13704         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13705         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13706         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13707         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13708         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13709         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13710         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13711         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13712         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13713         interface.
13714         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13715         * remote-rdi.c remote-rdp.c: Likewise.
13716         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13717         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13718         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13719         definition.
13720
13721         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13722         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13723         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13724         from non-ARM_ prefixed definitions.
13725         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13726         all uses of above.
13727         * remote-rdi.c remote-rdp.c: Likewise.
13728         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13729
13730 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13731
13732         * arm-tdep.c (arm_frameless_function_invocation)
13733         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13734         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13735         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13736         (arm_pop_frame, arm_get_next_pc): Make static.
13737         (arm_gdbarch_init): Register above in gdbarch structure.
13738         (arm_read_fp): Renamed from arm_target_read_fp.
13739         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13740         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13741         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13742         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13743         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13744         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13745         (arm_pc_is_thumb_dummy): Delete declarations.
13746         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13747         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13748         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13749         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13750
13751 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13752
13753         * symtab.c (compare_search_syms): New function.
13754         (sort_search_symbols): New function.
13755         (search_symbols): Sort symbols after searching rather than
13756         before.
13757
13758 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13759
13760         * NEWS: Linux -> GNU/Linux.
13761
13762 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13763
13764         * gdbarch.sh: For for level one methods, disallow a definition
13765         when partially multi-arched.  Add comments explaining rationale.
13766         * gdbarch.h: Re-generate.
13767
13768 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13769
13770         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13771         multi-arch partial.
13772
13773 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13774
13775         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13776         field.  Use diff -u.
13777         * gdbarch.c: Re-generate.
13778
13779 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13780
13781         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13782         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13783         partial.
13784
13785 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13786
13787         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13788         multi-arch partial.
13789         (PUSH_ARGUMENTS): Switch to using predefault.
13790         * gdbarch.c: Regenerate.
13791
13792 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13793
13794         * valops.c (PUSH_ARGUMENTS): Delete definition.
13795         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13796         partial.  Default to default_push_arguments.
13797         * gdbarch.h, gdbarch.c: Regenerate.
13798
13799 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13800
13801         * defs.h (throw_exception): Rename return_to_top_level.  Update
13802         comments.
13803         * utils.c (error_stream, internal_verror, quit): Ditto.
13804         * top.c (throw_exception, catcher): Ditto.
13805         * sparclet-rom.c (sparclet_load): Ditto.
13806         * remote.c (interrupt_query, minitelnet): Ditto.
13807         * remote-sds.c (interrupt_query): Ditto.
13808         * remote-mips.c (mips_error, mips_kill): Ditto.
13809         * ocd.c (interrupt_query): Ditto.
13810         * monitor.c (monitor_interrupt_query): Ditto.
13811         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13812         * target.h: Update comment.
13813
13814         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13815
13816 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13817
13818         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13819         default_double_format.
13820         * gdbarch.h, gdbarch.c: Re-generate.
13821         * findvar.c (floatformat_unknown): Delete variable definition.
13822         * doublest.h (floatformat_unknown): Delete variable declaration.
13823
13824 2002-02-09  Jim Blandy  <jimb@redhat.com>
13825
13826         * stabsread.c (read_type): Add code to parse Sun's syntax for
13827         prototyped function types.
13828
13829 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13830
13831         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13832         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13833
13834 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13835
13836         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13837         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13838         now _initialize_xcoffsolib gets called again and overrides the
13839         commands from solib.c in a native configuration.
13840
13841 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13842
13843         * doublest.c (store_typed_floating): Don't try to return a value.
13844         Fixes PR gdb/290.
13845
13846 2002-02-08  Jim Blandy  <jimb@redhat.com>
13847
13848         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13849         is prototyped and has no arguments, print its argument list as
13850         `(void)'.
13851
13852 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13853
13854         * MAINTAINERS (write-after-approval): Add myself.
13855         (paper-trail): I've escaped!
13856
13857 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13858
13859         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13860         changes.
13861         (_initialize_check_for_gdb_ini): Ditto.
13862
13863 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13864
13865         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13866         xaprintf -> xasprintf.
13867
13868 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13869
13870         * win32-nat.c: Remove use of printf and sprintf functions.
13871
13872 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13873
13874         * arm-tdep.c (arm_frame_chain_valid): Make static.
13875         (arm_push_arguments): Likewise.
13876         (arm_gdbarch_init): New function.
13877         (_initialize_arm_tdep): Call it.
13878         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13879         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13880         (FRAME_CHAIN_VALID): Delete.
13881         (arm_frame_chain_valid): Delete declaration.
13882         (PUSH_ARGUMENTS): Delete.
13883         (arm_push_arguments): Delete declaration.
13884         (CALL_DUMMY_P): Delete.
13885
13886 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13887             Corinna Vinschen  <vinschen@redhat.com>
13888
13889         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13890         on builtin float types.
13891
13892 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13893
13894         * utils.c: Include <curses.h> before "bfd.h".
13895         * tui/tui-hooks.c: Likewise.
13896         * tui/tui.c: Likewise.
13897         * tui/tuiCommand.c: Likewise.
13898         * tui/tuiData.c: Likewise.
13899         * tui/tuiDataWin.c: Likewise.
13900         * tui/tuiDisassem.c: Likewise.
13901         * tui/tuiGeneralWin.c: Likewise.
13902         * tui/tuiIO.c: Likewise.
13903         * tui/tuiLayout.c: Likewise.
13904         * tui/tuiRegs.c: Likewise.
13905         * tui/tuiSource.c: Likewise.
13906         * tui/tuiSourceWin.c: Likewise.
13907         * tui/tuiStack.c: Likewise.
13908         * tui/tuiWin.c: Likewise.
13909
13910 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13911
13912         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13913         to include space for pseudoregs as well. Update loops accordingly.
13914         (sh_fp_frame_init_saved_regs): Ditto.
13915         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13916
13917 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13918
13919         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13920         Add Richard Earnshaw to Arm maintainers.
13921
13922 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13923
13924         * defs.h (warning_begin): Delete declaration.
13925
13926         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13927         Delete macro.
13928
13929 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13930
13931         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13932         Logic bug, remove misplaced else.
13933
13934 2002-02-07  Klee Dienes  <klee@apple.com>
13935
13936         * fork-inferior.c (fork_inferior): Add '!' to the list of
13937         characters that need to be quoted when building a string for the
13938         shell.  Quote '!' specifically with a backslash, since CSH chokes
13939         when trying to evaluate "str!str".
13940
13941 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13942
13943         * rdi-share/host.h: Only provide a typedef for bool if it is not
13944         defined.
13945
13946 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13947
13948         * breakpoint.h (enum bptype): Add new overlay event bp type.
13949         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13950
13951         * breakpoint.c (create_internal_breakpoint): New function.
13952         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13953         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13954         (create_thread_event_breakpoint): Ditto.
13955         (create_solib_event_breakpoint): Ditto.
13956         (create_overlay_event_breakpoint): New function.
13957         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13958         (update_breakpoints_after_exec): Delete and re-initialize
13959         overlay event breakpoints after an exec.  Add FIXME comment
13960         about longjmp breakpoint.
13961         (print_it_typical): Ignore overlay event breakpoints.
13962         (print_one_breakpoint): Ditto.
13963         (mention): Ditto.
13964         (bpstat_what): Do not stop for overlay event breakpoints.
13965         (delete_breakpoint): Don't delete overlay event breakpoints.
13966         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13967         (breakpoint_re_set): Re-create overlay event breakpoint.
13968
13969         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13970         (overlay_manual_command): Disable overlay breakpoints.
13971         (overlay_off_command): Disable overlay breakpoints.
13972
13973 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13974
13975         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13976         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13977         to here from config/tm-arm.h.
13978         (coff_sym_is_thumb): Make static.
13979         (arm_elf_make_msymbol_special): New function.
13980         (arm_coff_make_msymbol_special): New function.
13981         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13982         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13983         (coff_sym_is_thumb): Delete declaration.
13984         (arm_elf_make_msymbol_special): Declare.
13985         (arm_coff_make_msymbol_special): Declare.
13986         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13987         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13988
13989 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13990
13991         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13992
13993 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13994
13995         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13996         * gdbarch.c gdbarch.h: Regenerate.
13997         * arch-utils.c (default_print_float_info): New function.
13998         * arch-utils.h (default_print_float_info): Prototype it.
13999         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14000         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14001         (PRINT_FLOAT_INFO): Document it.
14002
14003         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14004         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14005         (PRINT_FLOAT_INFO): Define.
14006
14007 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14008
14009         * win32-nat.c (_initialize_check_for_gdb_ini):
14010         Add typecast to sprintf argument to suppress a warning.
14011
14012 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14013
14014         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14015         to allow easier handling of pass state.
14016         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14017         that gives exception name and address.
14018         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14019         and set last_sig value to ourstatus->value.sig. Some missing
14020         exceptions added.
14021         (child_continue): Correctly report continue_status.
14022         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14023         TARGET_SIGNAL_0 (new default value).
14024         (child_resume): consider sig argument passed to decide if
14025         the exception should be passed to debuggee or not.
14026
14027 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14028
14029         * regcache.c (fetch_register): Call target_fetch_register
14030         only if we don't call FETCH_PSEUDO_REGISTER.
14031         (store_register): Call target_store_register only if we
14032         don't call STORE_PSEUDO_REGISTER.
14033
14034 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14035
14036         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14037         ELF_MAKE_MSYMBOL_SPECIAL.
14038         * gdbarch.c, gdbarch.h: Regenerate.
14039         * arch-utils.c (default_make_msymbol_special): New function.
14040         * arch-utils.h (default_make_msymbol_special): Export.
14041         * elfread.c (elf_symtab_read): Compile use of
14042         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14043         multiarched.
14044         * coffread.c (coff_symtab_read): Ditto, for
14045         COFF_MAKE_MSYMBOL_SPECIAL.
14046
14047 2002-02-05  Jim Blandy  <jimb@redhat.com>
14048
14049         * solib-svr4.c (svr4_truncate_ptr): New function.
14050         (svr4_relocate_section_addresses): Do the address arithmetic with
14051         the appropriate truncation for target addresses, even when
14052         CORE_ADDR is larger than a target address.
14053
14054 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14055
14056         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14057         to (int *).
14058
14059 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14060
14061         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14062         code.
14063
14064 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14065
14066         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14067
14068 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14069
14070         * gdbserver/linux-low.c: Remove unused include files.
14071
14072 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14073
14074         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14075         (read_inferior_memory): Use it.
14076         (write_inferior_memory): Likewise.
14077
14078 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14079
14080         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14081         grubbing through sys_errlist.
14082
14083 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14084
14085         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14086
14087 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14088         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14089
14090 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14091
14092         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14093         (do_sfunc, set_cmd_sfunc): New functions.
14094
14095         * command.h (struct cmd_list_element): Add field func.
14096         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14097         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14098         * cli/cli-decode.h: Ditto.
14099
14100         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14101         (help_all, help_cmd_list): Ditto.
14102         (find_cmd, complete_on_cmdlist): Ditto.
14103         * top.c (execute_command): Ditto.
14104
14105         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14106         function.sfunc.
14107
14108         * infcmd.c (notice_args_read): Fix function signature.
14109
14110         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14111         * cli/cli-decode.c (add_set_cmd): Ditto.
14112         * utils.c (initialize_utils): Ditto.
14113         * maint.c (_initialize_maint_cmds): Ditto.
14114         * infrun.c (_initialize_infrun): Ditto.
14115         * demangle.c (_initialize_demangler): Ditto.
14116         * remote.c (add_packet_config_cmd): Ditto.
14117         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14118         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14119         * proc-api.c (_initialize_proc_api): Ditto.
14120         * kod.c (_initialize_kod): Ditto.
14121         * valprint.c (_initialize_valprint): Ditto.
14122         * top.c (init_main): Ditto.
14123         * infcmd.c (_initialize_infcmd): Ditto.
14124         * corefile.c (_initialize_core): Ditto.
14125         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14126         * arch-utils.c (initialize_current_architecture): Ditto.
14127         (_initialize_gdbarch_utils): Ditto.
14128         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14129
14130         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14131         * wince.c (_initialize_inftarg): Ditto.
14132         * symfile.c (_initialize_symfile): Ditto.
14133         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14134         * language.c (_initialize_language): Ditto.
14135         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14136
14137 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14138
14139         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14140
14141 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14142
14143         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14144         Add rules for building the register data files.
14145
14146 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14147
14148         * regformats/regdat.sh: Add braces to the definition of
14149         expedite_regs_${arch}.
14150
14151 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14152
14153         * regformats/regdef.h (struct reg): Add comment describing the
14154         requirements for offset and size fields.
14155
14156 2002-02-04  Andreas Schwab  <schwab@suse.de>
14157
14158         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14159         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14160
14161 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14162
14163         * gdbarch.sh (copyright): Update years in generated header.
14164         (SMASH_TEXT_ADDRESS): Add rule.
14165         * gdbarch.h, gdbarch.c: Re-generate.
14166         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14167         * dbxread.c: Likewise.
14168         * dwarfread.c: Likewise.
14169         * elfread.c: Likewise.
14170         * somread.c: Likewise.
14171
14172         * arm-tdep.c (arm_smash_text_address): New function.
14173         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14174
14175 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14176
14177         Add support for hardware watchpoints on win32 native.
14178         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14179         CONTEXT_DEBUG_REGISTERS.
14180         (dr variable): New variable. Static array containing a local copy
14181         of debug registers.
14182         (debug_registers_changed): New variable.  Reflects when debug registers
14183         are changed and need to be written to inferior.
14184         (debug_registers_used): New variable. Reflects when any debug register
14185         was set, used when new threads are created.
14186         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14187         i386-nat code.
14188         (thread_rec): Set dr array if id is the thread of current_event .
14189         (child_continue, child_resume): Change the debug registers for all
14190         threads if debug_registers_changed.
14191         (child_add_thread): Change the debug registers if debug_registers_used.
14192         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14193         Link nm.h to new nm-cygwin.h file.
14194         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14195         of hardware registers.
14196
14197 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14198
14199         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14200         Restore behavour broken by 2002-01-20 Andrew Cagney
14201         <ac131313@redhat.com> IEEE_FLOAT removal.
14202
14203 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14204
14205         * c-valprint.c (c_val_print): Pass a proper valaddr to
14206         cp_print_class_method.
14207         * valops.c (search_struct_method): If there is only one method
14208         and args is NULL, return that method.
14209
14210 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14211
14212         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14213         accessing tag_name directly.
14214
14215 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14216
14217         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14218         of accessing tag_name directly.
14219
14220 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14221
14222         PR gdb/280
14223         * gdbtypes.c (replace_type): New function.
14224         * gdbtypes.h (replace_type): Add prototype.
14225         * stabsread.c (read_type): Use replace_type.
14226
14227 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14228
14229         * Makefile.in (memattr.o): Add missing dependencies rule.
14230
14231 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14232
14233         * breakpoint.c (break_at_finish_command): Really export.
14234         (break_at_finish_at_depth_command): Ditto.
14235         (tbreak_at_finish_command): Ditto.
14236         * hppa-tdep.c: Include completer.h.
14237         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14238         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14239
14240 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14241
14242         * utils.c (do_write): New function.
14243         (error_stream): Rewrite combining the code from error_begin and
14244         verror.
14245         (verror): Rewrite using error_stream.
14246         (error_begin): Delete function.
14247
14248 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14249
14250         * utils.c (error_begin): Make static.
14251         * defs.h (error_begin): Delete declaration.
14252
14253         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14254         (decode_line_1): Use cplusplus_error instead of error_begin,
14255         cplusplus_hint and return_to_top_level.
14256         * coffread.c (coff_symfile_read): Use error instead of error_begin
14257         and return_to_top_level.
14258         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14259
14260 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14261
14262         * language.h (type_error, range_error): Make string parameter
14263         constant.
14264         * language.c (warning_pre_print): Delete extern declaration.
14265         * dwarfread.c (warning_pre_print): Ditto.
14266         * language.c (type_error, range_error): Rewrite to use verror and
14267         vwarning instead of warning_begin.
14268
14269 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14270
14271         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14272         (set_ignore_count): Move misplaced comment back where it belongs.
14273
14274 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14275
14276         * command.h (NO_FUNCTION): Delete macro.
14277         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14278         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14279         * tracepoint.c (_initialize_tracepoint): Ditto.
14280         * cli/cli-decode.c (add_set_cmd): Ditto.
14281         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14282
14283 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14284
14285         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14286         Update ``this'' pointer when calling virtual functions.
14287
14288 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14289
14290         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14291         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14292
14293 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14294
14295         * regformats/reg-arm.dat: New file.
14296         * regformats/reg-i386.dat: New file.
14297         * regformats/reg-ia64.dat: New file.
14298         * regformats/reg-m68k.dat: New file.
14299         * regformats/reg-mips.dat: New file.
14300         * regformats/reg-ppc.dat: New file.
14301         * regformats/reg-sh.dat: New file.
14302         * regformats/regdef.h: New file.
14303         * regformats/regdat.sh: New file.
14304
14305 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14306
14307         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14308         (arm_frame_args_address, arm_frame_locals_address): New functions.
14309         (arm_frame_num_args): New function.
14310         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14311         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14312         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14313
14314 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14315
14316         * breakpoint.c (break_at_finish_command): Export.
14317         (break_at_finish_at_depth_command): Export.
14318         (tbreak_at_finish_command): Export.
14319         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14320         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14321         "txbreak" commands, which are HPPA specific.
14322
14323         * printcmd.c (disassemble_command): Remove an ancient
14324         artifact of an old merge.
14325
14326         * symfile.h (enum overlay_debugging_state):
14327         Define enum constant values for overlay mode.
14328         * symfile.c (overlay_debugging): Use enums instead of literals.
14329         (overlay_is_mapped, overlay_auto_command,
14330         overlay_manual_command): Ditto.
14331
14332         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14333         breakpoint_here_p, breakpoint_inserted_here_p,
14334         breakpoint_thread_match, bpstat_stop_status,
14335         describe_other_breakpoints, check_duplicates, clear_command):
14336         Coding standard fixes.
14337
14338         * target.c (target_xfer_memory): Add spaces, coding standard.
14339         (do_xfer_memory): Add missing line to trust-readonly
14340         code: check bfd SEC_READONLY flag for section.
14341
14342 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14343
14344         * PROBLEMS: Fix typo, 5.1->5.1.1.
14345
14346 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14347
14348         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14349         data symbols, since we search based on textlow and texthigh.
14350         (find_pc_sect_symtab): Likewise.
14351
14352 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14353
14354         * defs.h (vwarning): Declare.
14355         * utils.c (vwarning): New function.
14356         (warning): Call vwarning.
14357         (warning_begin): Delete function.
14358
14359         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14360         the warning message.
14361         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14362         warning_begin.
14363
14364 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14365
14366         * NEWS: Mention "set trust-readonly-sections" command.
14367         Mention generate-core-file command.
14368
14369 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14370
14371         * target.c: New command, "set trust-readonly-sections on".
14372         (do_xfer_memory): Honor the suggestion to trust readonly sections
14373         by reading them from the object file instead of from the target.
14374         (initialize_targets): Register command "set trust-readonly-sections".
14375
14376 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14377
14378         * parse.c (target_map_name_to_register): Simplify, search regs and
14379         pseudo-regs using a single loop.
14380
14381 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14382
14383         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14384
14385 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14386
14387         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14388         * config/i386/i386v42mp.mh: Add i387-nat.o .
14389         * i386v4-nat.c: Include i387-nat.h.
14390         (supply_fpregset): Use i387_supply_fsave.
14391         (fill_fpregset): Use i387_fill_fsave.
14392
14393 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14394
14395         * arm-tdep.c (arm_call_dummy_words): Define.
14396         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14397         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14398         (CALL_DUMMY_WORDS): Define.
14399         (arm_call_dummy_words): Declare.
14400         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14401         (arm_linux_call_dummy_words): Declare.
14402
14403 2002-01-30  Andreas Schwab  <schwab@suse.de>
14404
14405         * m68klinux-nat.c: Fix last change to use regcache_collect
14406         instead of referencing registers[] directly.
14407
14408 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14409
14410         * parse.c (target_map_name_to_register): Delete code wrapped in
14411         #ifdef REGISTER_NAME_ALIAS_HOOK.
14412
14413 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14414
14415         * regcache.c (legacy_read_register_gen): Need to be able to
14416         read pseudo-register as well as real register.
14417         (legacy_write_register_gen): Ditto.
14418
14419 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14420
14421         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14422         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14423         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14424         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14425         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14426         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14427         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14428         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14429         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14430         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14431         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14432         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14433         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14434         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14435         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14436         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14437         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14438         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14439         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14440         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14441
14442 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14443
14444         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14445         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14446         (initialize_current_architecture): Update target_byte_order using
14447         information from BFD.
14448         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14449         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14450
14451 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14452
14453         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14454         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14455
14456         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14457         #ifdef INVALID_FLOAT.
14458         * infcmd.c (do_registers_info): Ditto.
14459         * values.c (unpack_double): Ditto.  Add comment.
14460
14461         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14462         already commented out.
14463
14464 2002-01-26  Andreas Schwab  <schwab@suse.de>
14465
14466         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14467         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14468         registers and add support for PTRACE_GETREGS.
14469
14470 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14471
14472         GDB 5.1.1 released from 5.1 branch.
14473         * NEWS: Add 5.1.1 news.
14474         * README: Sync with 5.1 branch.
14475
14476 2002-01-23  Fred Fish  <fnf@redhat.com>
14477
14478         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14479         stabstring on initial malloc.  Reallocing will copy it for us,
14480         if necessary.
14481
14482 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14483
14484         * Makefile.in (hpread_h): Delete.
14485         (HFILES_NO_SRCDIR): Remove hpread.h.
14486         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14487         (hpread.o): Update dependencies.
14488         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14489
14490         * hp-psymtab-read.c: Remove file.
14491         * hp-symtab-read.c: Remove file.
14492         * hpread.h: Remove file.
14493
14494         * hpread.c: Merge all contents of hp-psymtab-read.c,
14495         hp-symtab-read.c and hpread.h into this file, as it was prior to
14496         January 1999.
14497
14498         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14499         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14500         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14501         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14502
14503 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14504
14505         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14506         fill_gregset): Call gdbarch_tdep() just once, assign result to
14507         variable and use that, instead of calling the function several
14508         times.
14509
14510 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14511
14512         * configure.host: Accept sparcv9 as alias for sparc64.
14513         * configure.tgt: Likewise.
14514
14515 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14516
14517         * solib-aix5.c (build_so_list_from_mapfile)
14518         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14519         arguments is not reversed.
14520         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14521         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14522
14523 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14524
14525         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14526         modified version of obsolete sh_fetch_pseudo_register.
14527         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14528         (sh4_register_read): New function.
14529         (sh_pseudo_register_write): New function. Renamed and modified
14530         version of obsolete sh_store_pseudo_register.
14531         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14532         (sh4_register_write): New function.
14533         (sh_gdbarch_init): Remove setting of gdbarch function
14534         fetch_pseudo_register and store_pseudo_register. Remove setting of
14535         register_convert_to_raw, register_convert_to_virtual,
14536         register_convertible.
14537         (sh_sh4_register_convertible): Delete. No longer needed. All is
14538         taken care by architecture specific functions
14539         register_read/register_write.
14540         (sh_sh4_register_convert_to_virtual): Make static.
14541         (sh_sh4_register_convert_to_raw): Ditto.
14542
14543 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14544
14545         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14546         (floatformat_is_nan, floatformat_mantissa): Ditto.
14547
14548         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14549         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14550         builtin_type_ieee_double_little,
14551         builtin_type_ieee_double_littlebyte_bigword,
14552         builtin_type_m68881_ext, builtin_type_i960_ext,
14553         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14554         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14555         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14556         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14557
14558 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14559
14560         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14561         parameter.  Set frameless flag if it exists and depended of
14562         whether the scanned function is frameless or not.
14563         (xstormy16_skip_prologue): If function is frameless, return
14564         result of xstormy16_scan_prologue().
14565         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14566         call.
14567
14568 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14569
14570         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14571         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14572         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14573         sh_sh4_register_byte, sh_sh4_register_raw_size,
14574         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14575         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14576         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14577         sh_store_pseudo_register, sh_do_pseudo_register): Call
14578         gdbarch_tdep() just once, assign result to variable and use that,
14579         instead of calling the function several times.
14580
14581 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14582
14583         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14584         macros instead of LAST_FPU_CTRL_REGNUM.
14585         (store_register): Likewise.
14586
14587 2002-01-21  Jim Blandy  <jimb@redhat.com>
14588
14589         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14590         is up-to-date before running the program, not just when a program
14591         exits.
14592
14593 2002-01-21  Fred Fish  <fnf@redhat.com>
14594
14595         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14596         when we have found all instructions we are looking for.
14597
14598 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14599
14600         * arm-tdep.c (arm_register_name): New function.
14601         (arm_registers_names): Make static.
14602         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14603         (arm_register_name): Declare.
14604         (REGISTER_NAME): Use it.
14605
14606 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14607             Kevin Buettner  <kevinb@redhat.com>
14608
14609         Convert arm targets to new FRAME interface.
14610         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14611         (arm_frame_find_save_regs): Delete.
14612         (arm_frame_init_saved_regs): New.
14613         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14614         Allocate extra_info as required.  Convert all uses of fsr.regs
14615         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14616         to use extra_info.
14617         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14618         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14619         (check_prologue_cache, save_prologue_cache): Likewise.
14620         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14621         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14622         (FRAME_FIND_SAVED_REGS): Delete.
14623         (arm_frame_find_saved_regs): Delete prototype.
14624         (arm_frame_init_saved_regs): New prototype.
14625         (FRAME_INIT_SAVED_REGS): Define.
14626
14627 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14628
14629         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14630
14631 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14632
14633         From Jeff Law <law@redhat.com>:
14634         * infttrace.c: Include <sys/pstat.h>.
14635         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14636         exec file if the ttrace equivalent fails.
14637
14638 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14639
14640         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14641         (closeLogFile): Ditto.
14642
14643 2002-01-20  Michael Chastain  <mec@shout.net>
14644
14645         * top.c (print_gdb_version): Bump copyright year to 2002.
14646
14647 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14648
14649         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14650         Zannoni and Eli Zaretskii.
14651
14652 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14653
14654         * buildsym.c: Update copyright years.
14655         * c-typeprint.c: Likewise.
14656         * dwarf2read.c: Likewise.
14657         * f-typeprint.c: Likewise.
14658         * gdbtypes.c: Likewise.
14659         * gdbtypes.h: Likewise.
14660         * hp-symtab-read.c: Likewise.
14661         * hpread.c: Likewise.
14662         * mdebugread.c: Likewise.
14663         * p-typeprint.c: Likewise.
14664
14665 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14666
14667         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14668         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14669         byte-order selectable.
14670         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14671         * arch-utils.c: Ditto.
14672         (set_endian): Ditto.
14673         (set_endian_from_file): Ditto.
14674         * gdbserver/low-sim.c (create_inferior): Ditto.
14675         * gdbarch.sh: Ditto.
14676         * gdbarch.h: Re-generate.
14677         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14678         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14679         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14680         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14681         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14682         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14683         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14684         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14685         macro definition.
14686         * config/mips/tm-wince.h: Remove #undef of macro
14687         TARGET_BYTE_ORDER_SELECTABLE.
14688         * config/sh/tm-wince.h: Ditto.
14689
14690 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14691
14692         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14693         member function fields.  Add accessor macro
14694         TYPE_FN_FIELD_ARTIFICIAL.
14695         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14696         * c-typeprint.c (c_type_print_base): Skip artificial member
14697         functions.
14698
14699 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14700
14701         * f-typeprint.c: Delete unused function f_type_print_args.
14702         * p-typeprint.c: Delete unused function pascal_type_print_args.
14703
14704 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14705
14706         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14707         comment.  Add ``artificial'' to ``union field_location''.
14708
14709         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14710
14711         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14712         * mdebugread.c (parse_symbol): Likewise.
14713         * stabsread.c (define_symbol): Likewise.
14714         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14715         initializing TYPE_FIELD_BITPOS to n (obsolete).
14716         (hpread_doc_function_type): Likewise.
14717         * hpread.c (hpread_function_type): Likewise.
14718
14719 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14720
14721         * configure.in (host_makefile_frag): Only require a host makefile
14722         fragment when a native build.
14723         * configure: Re-generate.
14724
14725 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14726
14727         * doublest.h (floatformat_from_type): Declare.
14728         * doublest.c (floatformat_from_type): New function.
14729         (convert_typed_floating): Use.
14730
14731         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14732         call to function floatformat_from_type.
14733
14734         * gdbarch.sh (IEEE_FLOAT): Delete.
14735         * gdbarch.h, gdbarch.c: Re-generate.
14736         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14737         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14738         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14739         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14740         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14741         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14742         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14743         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14744         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14745         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14746         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14747         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14748
14749         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14750         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14751         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14752         * sh-tdep.c (sh_gdbarch_init): Ditto.
14753         * mips-tdep.c (mips_gdbarch_init): Ditto.
14754         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14755         * cris-tdep.c (cris_gdbarch_init): Ditto.
14756
14757 2002-01-20  Jiri Smid  <smid@suse.cz>
14758
14759         * configure.host, configure.tgt: Support x86-64.
14760         * NEWS: Note new target x86-64.
14761
14762         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14763         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14764         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14765         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14766         x86-64-linux-nat.o): Fix dependencies.
14767
14768 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14769
14770         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14771         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14772         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14773         * config/sparc/xm-sun4os4.h: Delete file.
14774         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14775
14776 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14777
14778         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14779         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14780         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14781         * config/i386/i386lynx.mh (XM_FILE): Delete.
14782         * config/rs6000/xm-rs6000ly.h: Delete file.
14783         * config/sparc/xm-sparclynx.h: Delete file.
14784         * config/m68k/xm-m68klynx.h: Delete file.
14785         * config/i386/xm-i386lynx.h: Delete file.
14786         * config/xm-lynx.h: Delete file.
14787         * config/djgpp/fnchange.lst: Update.
14788
14789 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14790
14791         * alpha-tdep.c (alpha_register_byte): New function.
14792         (alpha_register_raw_size): Ditto.
14793         (alpha_register_virtual_size): Ditto.
14794         (alpha_skip_prologue_internal): Renamed from
14795         alpha_skip_prologue.
14796         (alpha_skip_prologue): New version that calls
14797         alpha_skip_prologue_internal.
14798         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14799         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14800         second argument from alpha_skip_prologue.
14801         (REGISTER_BYTE): Use alpha_register_byte.
14802         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14803         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14804         (FRAMELESS_FUNCTION_INVOCATION): Use
14805         generic_frameless_function_invocation_not.
14806         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14807         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14808
14809 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14810
14811         * config/mips/xm-news-mips.h: Delete file.
14812         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14813
14814         * config/m88k/xm-m88k.h: Delete file.
14815         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14816         * config/m88k/xm-delta88v4.h: Ditto.
14817         * config/m88k/xm-delta88.h: Ditto.
14818
14819         * config/alpha/xm-fbsd.h: Delete file.
14820         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14821
14822         * config/sparc/xm-sparc.h: Delete file.
14823         * Makefile.in (xm-sun4os4.h): Delete dependency.
14824         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14825         * config/sparc/xm-sun4os4.h: Ditto.
14826         * config/sparc/xm-linux.h: Ditto.
14827
14828         * config/i386/xm-windows.h: Delete file.
14829
14830 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14831
14832         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14833         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14834
14835 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14836
14837         * alpha-tdep.c (alpha_call_dummy_words): New.
14838         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14839         (CALL_DUMMY_P): Define.
14840         (CALL_DUMMY_WORDS): Define.
14841         (SIZEOF_CALL_DUMMY_WORDS): Define.
14842
14843 2002-01-19  Per Bothner  <per@bothner.com>
14844
14845         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14846         isn't NULL, which can happen with some gcj-3.x-produced code.
14847
14848 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14849
14850         * alpha-tdep.c (alpha_register_virtual_type): New function.
14851         (alpha_init_frame_pc_first): Ditto.
14852         (alpha_fix_call_dummy): Ditto.
14853         (alpha_store_struct_return): Ditto.
14854         (alpha_extract_struct_value_address): Ditto.
14855         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14856         alpha_register_virtual_type.
14857         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14858         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14859         alpha_extract_struct_value_address.
14860         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14861         (INIT_FRAME_PC): Use init_frame_pc_noop.
14862         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14863
14864 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14865
14866         * i386gnu-nat.c: Include "i386-tdep.h".
14867         (fetch_fpregs): Simplify code dealing with uninitialized floating
14868         point states such that it doesn't require FP7_REGNUM.
14869
14870 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14871
14872         * alpha-tdep.c (frame_extra_info): New.
14873         (alpha_find_saved_regs): Make static.  Use
14874         frame->extra_info.
14875         (alpha_frame_init_saved_regs): New function.
14876         (alpha_frame_saved_pc): Use frame->extra_info.
14877         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14878         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14879         (init_extra_frame_info): Rename to...
14880         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14881         (alpha_print_extra_frame_info): New function.
14882         (alpha_frame_locals_address): Ditto.
14883         (alpha_frame_args_address): Ditto.
14884         (alpha_pop_frame): Use frame->extra_info.
14885         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14886         alpha_frame_args_address.
14887         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14888         (alpha_find_saved_regs): Remove prototype.
14889         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14890         (EXTRA_FRAME_INFO): Remove.
14891         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14892         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14893
14894 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14895
14896         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14897         (alpha_cannot_fetch_register): Ditto.
14898         (alpha_cannot_store_register): Ditto.
14899         (alpha_register_convertible): Ditto.
14900         (alpha_use_struct_convention): Ditto.
14901         * config/alpha/tm-alpha.h: Update copyright years.
14902         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14903         (INNER_THAN): Use core_addr_lessthan.
14904         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14905         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14906         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14907         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14908         (FRAME_CHAIN): Remove unnecessary cast.
14909
14910 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14911
14912         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14913         obsolete.
14914
14915 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14916
14917         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14918         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14919         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14920         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14921         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14922         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14923         * x86-64-linux-nat.c: Ditto.
14924
14925 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14926
14927         * alpha-tdep.c (alpha_register_name): New function.
14928         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14929         (REGISTER_NAME): Define.
14930
14931 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14932
14933         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14934
14935 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14936
14937         * alpha-tdep.c: Update copyright years.
14938         (alpha_next_pc): New function.
14939         (alpha_software_single_step): Ditto.
14940         * config/alpha/tm-alpha.h: Add prototype for
14941         alpha_software_single_step.
14942
14943 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14944
14945         * alphabsd-nat.c: Update copyright years.
14946         (fill_gregset): Use regcache_collect.
14947         (fill_fpregset): Likewise.
14948         (fetch_inferior_registers): Only fetch integer registers
14949         if requested to do so.
14950         (store_inferior_registers): Only store integer registers
14951         if requested to do so.
14952
14953 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14954
14955         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14956         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14957         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14958         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14959         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14960         * config/arm/linux.mh (XDEPFILES): Delete.
14961         * config/arm/nbsd.mh (XDEPFILES): Delete.
14962         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14963         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14964         * config/i386/i386m3.mh (XDEPFILES): Delete.
14965         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14966         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14967         * config/i386/fbsd.mh (XDEPFILES): Delete.
14968         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14969         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14970         * config/i386/i386v4.mh (XDEPFILES): Delete.
14971         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14972         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14973         * config/i386/i386aix.mh (XDEPFILES): Delete.
14974         * config/i386/go32.mh (XDEPFILES): Delete.
14975         * config/i386/cygwin.mh (XDEPFILES): Delete.
14976         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14977         * config/i386/i386mach.mh (XDEPFILES): Delete.
14978         * config/i386/i386v32.mh (XDEPFILES): Delete.
14979         * config/i386/linux.mh (XDEPFILES): Delete.
14980         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14981         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14982         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14983         * config/i386/i386sco.mh (XDEPFILES): Delete.
14984         * config/i386/i386v.mh (XDEPFILES): Delete.
14985         * config/i386/nbsd.mh (XDEPFILES): Delete.
14986         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14987         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14988         * config/i386/symmetry.mh (XDEPFILES): Delete.
14989         * config/i386/obsd.mh (XDEPFILES): Delete.
14990         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14991         * config/ia64/linux.mh (XDEPFILES): Delete.
14992         * config/ia64/aix.mh (XDEPFILES): Delete.
14993         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14994         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14995         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14996         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14997         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14998         * config/m68k/linux.mh (XDEPFILES): Delete.
14999         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15000         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15001         * config/m68k/nbsd.mh (XDEPFILES): Delete.
15002         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15003         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15004         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15005         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15006         * config/m88k/delta88.mh (XDEPFILES): Delete.
15007         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15008         * config/m88k/m88k.mh (XDEPFILES): Delete.
15009         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15010         * config/mips/linux.mh (XDEPFILES): Delete.
15011         * config/mips/irix6.mh (XDEPFILES): Delete.
15012         * config/mips/irix5.mh (XDEPFILES): Delete.
15013         * config/mips/irix4.mh (XDEPFILES): Delete.
15014         * config/mips/irix3.mh (XDEPFILES): Delete.
15015         * config/mips/decstation.mh (XDEPFILES): Delete.
15016         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15017         (NATDEPFILES): Move core-aout.o to here.
15018         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15019         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15020         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15021         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15022         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15023         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15024         * config/pa/hpux11.mh (XDEPFILES): Delete.
15025         * config/powerpc/aix.mh (XDEPFILES): Delete.
15026         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15027         * config/powerpc/linux.mh (XDEPFILES): Delete.
15028         * config/romp/rtbsd.mh: Rename XDEPFILES.
15029         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15030         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15031         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15032         * config/s390/s390.mh (XDEPFILES): Delete.
15033         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15034         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15035         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15036         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15037         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15038         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15039         * config/sparc/linux.mh (XDEPFILES): Delete.
15040         * config/vax/vaxult.mh (XDEPFILES): Delete.
15041         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15042         * Makefile.in (DEPFILES): Remove XDEPFILES.
15043
15044 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15045
15046         * utils.c (internal_verror): Fix comments, default is yes not no.
15047         Update queries to match.  Default to quit and dump core.
15048
15049 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15050
15051         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15052         copyright.
15053         * defs.h, event-top.c, gdbcmd.h: Ditto.
15054         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15055         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15056         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15057         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15058         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15059         * mi/mi-main.c:Ditto.
15060
15061         * stack.c, symfile.c: Update copyright.
15062
15063 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15064
15065         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15066         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15067         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15068         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15069
15070 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15071
15072         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15073         * gdbserver/low-lynx.c (myattach): Likewise.
15074         * gdbserver/low-nbsd.c (myattach): Likewise.
15075         * gdbserver/low-sim.c (myattach): Likewise.
15076         * gdbserver/low-sparc.c (myattach): Likewise.
15077         * gdbserver/low-sun3.c (myattach): Likewise.
15078
15079         * gdbserver/low-linux.c (myattach): New function.
15080
15081         * gdbserver/server.c (attach_inferior): New function.
15082         (main): Handle "--attach".
15083
15084 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15085
15086         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15087         maintainer.
15088
15089 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15090
15091         * c-typeprint.c (is_type_conversion_operator): Add additional
15092         check for non-conversion operators.
15093
15094 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15095
15096         * linux-proc.c: Add "info proc" command, a la procfs.c.
15097         (read_mapping): New function, abstract and re-use code.
15098         (linux_find_memory_regions): Use new func read_mapping.
15099         (linux_info_proc_cmd): New function, implement "info proc".
15100         (_initialize_linux_proc): Add new command "info proc".
15101
15102 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15103
15104         * symfile.c (generic_load): Use bfd_map_over_sections method
15105         instead of manipulating bfd structure members directly.
15106         (add_section_size_callback): New function, bfd sections callback
15107         used by generic_load.
15108         (load_sections_callback): New function, bfd sections callback
15109         used by generic_load.
15110
15111 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15112
15113         [Based on work by Jim Blandy]
15114         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15115         (builtin_type_vec128): Export.
15116         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15117         types.
15118         (builtin_type_vec128): New builtin type for 128 bit vector
15119         registers.
15120         (build_gdbtypes): Initialize builtin_type_v16qi and
15121         builtin_type_v8hi. Create the vec128 register builtin type
15122         structure.
15123         (build_builtin_type_vec128): New function.
15124         (_initialize_gdbtypes): Register builtin_type_v16qi and
15125         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15126         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15127         AltiVec register to new builtin type.
15128
15129 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15130
15131         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15132         to make_cv_type.
15133
15134 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15135
15136         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15137         CLEAN_UP_REGISTER_VALUE.
15138         * regcache.c (supply_register): Update only call.
15139
15140 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15141
15142         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15143         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15144         a29k-*-vxworks* targets as obsolete.
15145
15146 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15147
15148         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15149         until we can resolve portability issues.
15150         * gregset.h: Remove references to fpxregs.
15151         * gcore.c (gcore_command): Initialize note_sec to NULL.
15152
15153 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15154
15155         * signals.c (target_signal_to_name): Rewrite.  Only use
15156         signals[].name when in bounds and non-NULL.
15157
15158 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15159
15160         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15161         * signals.c (target_signal_to_name): Verify that SIG is within the
15162         bounds of the signals array.
15163
15164 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15165
15166         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15167
15168 2002-01-13  Keith Seitz  <keiths@redhat.com>
15169
15170         * stack.c (print_frame_info_base): Print the frame's pc
15171         only if when print_frame_info_listing_hook is not defined.
15172
15173 2002-01-13  Keith Seitz  <keiths@redhat.com>
15174
15175         * varobj.c (varobj_set_value): Make sure that there were no
15176         errors evaluating the object before attempting to set its
15177         value.
15178         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15179         so this offset adjustment is no longer necessary.
15180         (create_child): Don't set the error flag if the child is
15181         a CPLUS_FAKE_CHILD.
15182         (value_of_child): If value_fetch_lazy fails, return NULL
15183         so that callers will be notified that an error occurred.
15184         (c_value_of_variable): Delay check of variable's validity
15185         until later. We actually want all structs and unions to have
15186         the value "{...}".
15187         Do not return "???" for variables which could not be evaluated.
15188         This error condition must be returned to the caller so that it
15189         can get the error condition from gdb.
15190         (cplus_name_of_child): Adjust index for vptr before figuring
15191         out the name of the child.
15192         (cplus_value_of_child): If a child's (real) parent is not valid,
15193         don't even bother trying to give a value for it. Just return
15194         an error. Change all instances in this function.
15195         (cplus_type_of_child): If our parent is one of the "fake"
15196         parents, we need to get at the type of the real parent, and
15197         derive the child's true type using this information.
15198
15199 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15200
15201         From 2002-01-09 John Marshall <johnm@falch.net>:
15202         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15203         sources.redhat.com, and tweak some related URLs which had
15204         suffered from linkrot.
15205
15206 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15207
15208         From Jeff law:
15209         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15210         structures passed in registers.
15211
15212 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15213
15214         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15215         white space which prevented compilation.  Reported by DSK
15216         <dsk@student.unsw.edu.au>.
15217
15218 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15219
15220         * symfile.c (build_section_addr_info_from_section_tab):
15221         Use bfd access method instead of manipulating bfd directly.
15222         (syms_from_objfile): Ditto.
15223         (simple_overlay_update_1): Ditto.
15224         (simple_overlay_update): Ditto.
15225         (generic_load): Ditto.
15226         (overlay_unmapped_address): FIXME comment, bfd access methods.
15227         (sections_overlap): FIXME comment, bfd access methods.
15228         (pc_in_mapped_range): FIXME comment, bfd access methods.
15229         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15230         (section_is_mapped): FIXME comment, bfd access methods.
15231         (section_is_overlay): FIXME comment, bfd access methods.
15232
15233         * symfile.c (generic_load): Whitespace and long line cleanups.
15234         Remove duplicate variable, change several local variables to
15235         more appropriate data types.
15236         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15237
15238 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15239
15240         From Peter Schauer:
15241         * language.c (longest_local_hex_string_custom): Use phex_nz to
15242         convert NUM to a hex string.
15243
15244 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15245
15246         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15247         the function.
15248         Update Copyright year.
15249
15250 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15251
15252         * language.c (longest_raw_hex_string): Delete unused function.
15253
15254 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15255
15256         * MAINTAINERS (write-after-approval): Add myself.
15257         * dwarf2read.c (read_tag_string_type): Handling of
15258         DW_AT_byte_size.
15259         (read_tag_string_type): FORTRAN fix to prevent propagation of
15260         first string size.
15261         (set_cu_language): Handling of DW_LANG_Fortran95
15262
15263 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15264
15265         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15266         GETPID(inferior_ptid).
15267         (store_inferior_registers): Likewise.
15268
15269 2002-01-10  Jason Merrill  <jason@redhat.com>
15270
15271         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15272         Fix DW_OP_minus.
15273
15274 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15275
15276         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15277         and bfd/elf32-sh-nbsd.c.
15278
15279 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15280
15281         * NEWS: Mention --pid and corefile/proc-id behavior change.
15282
15283         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15284         * gcore.c: Include cli/cli-decode.h instead of command.h.
15285
15286         * main.c (captured_main): Add new command line option "--pid".
15287         If the second command line argument (following the symbol-file)
15288         begins with a digit, try to attach to it before trying to open
15289         it as a corefile.
15290         (print_gdb_help): Document the "--pid" argument.
15291
15292 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15293
15294         * completer.c (command_completer): New function.
15295
15296         * completer.h <command_completer>: Add prototype.
15297
15298         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15299         completer for the "help" command.
15300
15301 2002-01-09  Jason Merrill  <jason@redhat.com>
15302
15303         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15304
15305 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15306
15307         * i386-linux-nat.c (fill_fpxregset): Make global.
15308         (store_fpxregset): Ditto.
15309
15310         * gregset.h (gdb_fpxregset_t): Define.
15311         (supply_fpxregset): Prototype.
15312         (fill_fpxregset): Prototype.
15313
15314         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15315
15316 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15317
15318         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15319         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15320         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15321
15322 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15323
15324         * MAINTAINERS: Update target maintainer rules so that any
15325         Maintainer can approve a tested patch for a maintenance-only
15326         target.
15327
15328 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15329
15330         * MAINTAINERS (write-after-approval): Add myself.
15331
15332         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15333         IN_SIGTRAMP.
15334
15335 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15336
15337         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15338         real name of the executable, rather than the /proc name.
15339
15340 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15341
15342         Implement a "generate-core-file" command in gdb, save target state.
15343         * gcore.c: New file.  Implement new command 'generate-core-file'.
15344         Save a corefile image of the current state of the inferior.
15345         * linux-proc.c: Add linux-specific code for saving corefiles.
15346         * target.h (struct target_ops): Add new target vectors for saving
15347         corefiles; to_find_memory_regions and to_make_corefile_notes.
15348         (target_find_memory_regions): New macro.
15349         (target_make_corefile_notes): New macro.
15350         * target.c (update_current_target): Inherit new target methods.
15351         (dummy_find_memory_regions): New place-holder method.
15352         (dummy_make_corefile_notes): New place-holder method.
15353         (init_dummy_target): Initialize new dummy target vectors.
15354         * exec.c (exec_set_find_memory_regions): New function.
15355         Allow the exec_ops vector for memory regions to be taken over.
15356         (exec_make_note_section): New function, target vector method.
15357         * defs.h (exec_set_find_memory_regions): Export prototype.
15358         * procfs.c (proc_find_memory_regions): New function, corefile method.
15359         (procfs_make_note_section): New function, corefile method.
15360         (init_procfs_ops): Set new target vector pointers.
15361         (find_memory_regions_callback): New function.
15362         (procfs_do_thread_registers): New function.
15363         (procfs_corefile_thread_callback): New function.
15364         * sol-thread.c (sol_find_memory_regions): New function.
15365         (sol_make_note_section): New function.
15366         (init_sol_thread_ops): Initialize new target vectors.
15367         * inftarg.c (inftarg_set_find_memory_regions): New function.
15368         Allow to_find_memory_regions vector to be taken over.
15369         (inftarg_set_make_corefile_notes): New function.
15370         Allow to_make_corefile_notes vector to be taken over.
15371         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15372         interface layer if not target_has_execution (may be a corefile).
15373         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15374         * config/sparc/sun4sol2.mh: Ditto.
15375         * config/alpha/alpha-linux.mh: Ditto.
15376         * config/arm/linux.mh: Ditto.
15377         * config/i386/x86-64linux.mh: Ditto.
15378         * config/ia64/linux.mh: Ditto.
15379         * config/m68k/linux.mh: Ditto.
15380         * config/mips/linux.mh: Ditto.
15381         * config/powerpc/linux.mh: Ditto.
15382         * config/sparc/linux.mh: Ditto.
15383
15384 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15385
15386         * arm-linux-nat.c: Remove references to regcache.c internal data
15387         (registers[] and register_valid[]).
15388
15389 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15390
15391         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15392         so that attaching to a pid will automatically read the process's
15393         symbol file and shlibs.
15394         * Makefile.in: Add rule for linux-proc.o.
15395         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15396         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15397         * config/arm/linux.mh: Ditto.
15398         * config/i386/linux.mh: Ditto.
15399         * config/i386/x86-64linux.mh: Ditto.
15400         * config/ia64/linux.mh: Ditto.
15401         * config/m68k/linux.mh: Ditto.
15402         * config/mips/linux.mh: Ditto.
15403         * config/powerpc/linux.mh: Ditto.
15404         * config/sparc/linux.mh: Ditto.
15405
15406 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15407
15408         * win32-nat.c: Add i386-tdep.h dependency.
15409
15410 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15411
15412         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15413         instead of bfd_get_arch_size.  Don't bail out just because
15414         there's no exec_bfd.
15415
15416         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15417         * p-valprint.c (pascal_object_print_value): Ditto.
15418         * somread.c (som_symtab_read): Ditto.
15419         * symfile.c (simple_free_overlay_region_table): Ditto.
15420         * valops.c (value_assign): Ditto.
15421
15422         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15423         use tilde_expand and strerror for opening save-tracepoints file.
15424
15425         * thread-db.c (thread_db_new_objfile): Indendation fix.
15426
15427         * infptrace.c (GDB_MAX_ALLOCA): New define.
15428         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15429         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15430         can be overridden with whatever value is appropriate to the host).
15431         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15432         alloca to allocate potentially large buffer.
15433         * rs6000-nat.c (child_xfer_memory): Ditto.
15434         * symm-nat.c (child_xfer_memory): Ditto.
15435         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15436
15437 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15438
15439         From Nick Clifton  <nickc@redhat.com>
15440         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15441
15442 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15443
15444         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15445         Don't use exec_bfd if it's NULL.
15446
15447 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15448
15449         * valops.c (value_arg_coerce): Fix formatting.
15450
15451 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15452
15453         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15454         * gnu-nat.c: Ditto.
15455
15456 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15457
15458         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15459         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15460         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15461         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15462         z8k-coff have not been multi-arched.  Update z8k-coff build
15463         status.
15464
15465 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15466
15467         * MAINTAINERS: Mark a29k target as obsolete.
15468         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15469         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15470         comments.
15471         * NEWS: Note that a29k targets are obsolete.
15472         * a29k-tdep.c: Mark as obsolete.
15473         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15474         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15475         a29k-*-vxworks* targets as obsolete.
15476         * remote-adapt.c: Obsolete.
15477         * remote-eb.c: Obsolete.
15478         * remote-mm.c: Obsolete.
15479         * remote-udi.c: Obsolete.
15480         * config/a29k/a29k-udi.mt: Obsolete.
15481         * config/a29k/a29k.mt: Obsolete.
15482         * config/a29k/tm-a29k.h: Obsolete.
15483         * config/a29k/tm-vx29k.h: Obsolete.
15484         * config/a29k/vx29k.mt: Obsolete.
15485
15486 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15487
15488         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15489         with BFD_ENDIAN_BIG.
15490
15491 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15492
15493         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15494         * configure, config.in: Re-generate.
15495         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15496         * defs.h: Do not include <endian.h>.
15497
15498 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15499
15500         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15501         * config.in: Regenerate.
15502         * configure.in: Update copyright years.
15503         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15504         * configure: Regenerate.
15505         * i386bsd-nat.c: Update copyright years.
15506         (fill_gregset): Use regcache_collect.
15507         (fetch_inferior_registers): Only fetch integer registers
15508         if requested to do so.  Add support for XMM registers
15509         using PT_GETXMMREGS.
15510         (store_inferior_registers): Only store integer registers
15511         if requested to do so.  Add support for XMM registers
15512         using PT_SETXMMREGS.
15513         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15514         (store_inferior_registers): Remove.
15515         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15516         (fetch_elfcore_registers): New function.
15517         (i386nbsd_elfcore_fns): New.
15518         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15519         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15520         i386bsd-nat.o.
15521         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15522         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15523         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15524         * config/i386/tm-nbsd.h: Update copyright years.
15525         (HAVE_SSE_REGS): Define.
15526         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15527         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15528         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15529         (SIGCONTEXT_PC_OFFSET): Remove.
15530         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15531
15532 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15533
15534         * configure.tgt: Remove powerpc-*-macos* target.
15535         * config/m68k/xm-mpw.h: Delete file.
15536         * config/xm-mpw.h: Delete file.
15537         * ser-mac.c: Delete file.
15538         * mpw-make.sed: Delete file.
15539         * mpw-config.in: Delete file.
15540         * mac-xdep.c: Delete file.
15541         * mac-gdb.r: Delete file.
15542         * mac-defs.h: Delete file.
15543         * mac-nat.c: Delete file.
15544         * config/powerpc/macos.mh: Delete file.
15545         * config/powerpc/macos.mt: Delete file.
15546         * config/powerpc/nm-macos.h: Delete file.
15547         * config/powerpc/tm-macos.h: Delete file.
15548         * source.c (openp, open_source_file): Remove obsolete code.
15549         * top.c (gdb_readline): Ditto.
15550         * utils.c (query): Ditto.
15551         * event-top.c (display_gdb_prompt): Ditto.
15552         * Makefile.in (ser-mac.o): Delete obsolete target.
15553         * NEWS: Update.
15554
15555 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15556
15557         * defs.h (BIG_ENDIAN): Delete macro definition.
15558         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15559         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15560         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15561         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15562         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15563         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15564         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15565         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15566         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15567         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15568         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15569         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15570         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15571         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15572         * gdbarch.c: Re-generate.
15573
15574 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15575
15576         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15577         for core files.
15578
15579 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15580
15581         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15582
15583 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15584
15585         * value.h (value_ptr): Delete typedef.
15586
15587 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15588
15589         * i386nbsd-nat.c: Update copyright years.
15590         Include i386-tdep.h.
15591
15592 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15593
15594         * stabsread.c: Update copyright years.
15595
15596         From Debashis Mahata <debashis.mahata@wipro.com>:
15597         (read_struct_fields): Deal with Sun C compiler erroneous stab
15598         output for structs and unions.
15599         Fix PR gdb/269.
15600
15601 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15602
15603         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15604         prototype.
15605
15606 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15607
15608         * cp-abi.c: Fix whitespace.
15609         (baseclass_offset): New wrapper function.
15610         * cp-abi.h (baseclass_offset): Add prototype.
15611         (struct cp_abi_ops): Add baseclass_offset pointer.
15612
15613         * valops.c (vb_match): Move to...
15614         * gnu-v2-abi.c (vb_match): here.
15615         * valops.c (baseclass_offset): Move to...
15616         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15617
15618         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15619
15620         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15621         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15622         * hpacc-abi.c (init_hpacc_ops): Likewise.
15623
15624 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15625
15626         * valops.c (find_overload_match): Accept obj as a
15627         reference parameter.  Update it before returning.
15628         * value.h (find_overload_match): Update prototype.
15629         * eval.c (evaluate_subexp_standard): Pass object to
15630         find_overload_match by reference.
15631
15632 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15633
15634         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15635         register attribute from value declarations.
15636         * valops.c: Ditto.
15637         * value.h: Ditto.
15638         * scm-lang.c (scm_lookup_name): Ditto.
15639
15640 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15641
15642         Abstract the functionality of iterating over mapped memory
15643         regions into a general purpose iterator function.
15644         * procfs.c (iterate_over_mappings): New function, general purpose
15645         iterator for memory sections.
15646         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15647         (solib_mappings_callback): New function, callback for above.
15648         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15649         (info_mappings_callback): New function, callback for above.
15650
15651         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15652
15653 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15654
15655         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15656         * i386-tdep.c: Include "elf-bfd.h".
15657         (process_note_abi_tag_sections): New function.
15658         (i386_gdbarch_init): Add code to recognize various OS/ABI
15659         combinations.
15660
15661         * maint.c (_initialize_maint_cmds): Add missing \ in
15662         string-literal.
15663
15664 For older changes see ChangeLog-2001
15665 \f
15666 Local Variables:
15667 mode: change-log
15668 left-margin: 8
15669 fill-column: 74
15670 version-control: never
15671 End: