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         * cris-tdep.c (cris_frame_init_saved_regs): Use
4         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5         saved_regs buffer.
6         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7         (sh64_nofp_frame_init_saved_regs): Ditto.
8         (sh_fp_frame_init_saved_regs): Ditto.
9         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11         * mcore-tdep.c (analyze_dummy_frame): Ditto.
12         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13
14 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
15
16         * minsyms.c (lookup_minimal_symbol): Update comment.
17         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
18         (lookup_minimal_symbol_solib_trampoline): Likewise.
19
20 2003-01-08  Andrew Cagney  <cagney@redhat.com>
21
22         * d10v-tdep.c (d10v_init_extra_frame_info): Use
23         frame_relative_level.
24
25         * alpha-tdep.c: Use get_frame_extra_info.
26         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
27         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
28         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
29         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
30
31         * alpha-tdep.c: Use get_next_frame.
32         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
33         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
34         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
35         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
36         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
37         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
38         * xstormy16-tdep.c: Ditto.
39         
40 2003-01-07  Andrew Cagney  <cagney@redhat.com>
41
42         * alpha-tdep.c: Use get_frame_base.
43         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
44         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
45         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
46         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
47         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
48         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
49         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
50         * config/sparc/tm-sparc.h: Ditto.
51         
52 2003-01-07  Andrew Cagney  <cagney@redhat.com>
53
54         * frame.c (deprecated_get_frame_context): New function.
55         (deprecated_set_frame_context): New function.
56         * frame.h (deprecated_get_frame_context): Declare.
57         (deprecated_set_frame_context): Declare.
58         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
59         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
60         
61 2003-01-07  Andrew Cagney  <cagney@redhat.com>
62
63         * frame.c (deprecated_set_frame_next_hack): New function.
64         (deprecated_set_frame_prev_hack): New function.
65         * frame.h (deprecated_set_frame_next_hack): Declare.
66         (deprecated_set_frame_prev_hack): Declare.
67         * mcore-tdep.c (analyze_dummy_frame): Use
68         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
69         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
70
71 2003-01-07  David Carlton  <carlton@math.stanford.edu>
72
73         * linespec.c (decode_line_1): Move code into decode_dollar.
74         (decode_dollar): New function.
75
76 2003-01-07  Andrew Cagney  <cagney@redhat.com>
77
78         * arm-tdep.c (arm_init_extra_frame_info): Use
79         deprecated_update_frame_base_hack.
80         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
81         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
82         (fix_frame_pointer): Ditto.
83         (mn10300_analyze_prologue): Ditto.
84
85 2003-01-07  Andrew Cagney  <cagney@redhat.com>
86
87         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
88         extra_info using frame_extra_info_zalloc.
89         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
90         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
91         (sh64_init_extra_frame_info): Ditto.
92         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
93         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
94         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
95         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
96         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
97         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
98         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
99         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
100         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
101         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
102         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
103         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
104
105         * mn10300-tdep.c (analyze_dummy_frame): Use
106         deprecated_set_frame_extra_info_hack.
107         * mcore-tdep.c (analyze_dummy_frame): Ditto.
108
109 2003-01-07  J. Brobecker  <brobecker@gnat.com>
110
111         * mdebugread.c (parse_symbol): Skip stProc entries which storage
112         class is not scText. These do not define "real" procedures.
113         (parse_partial_symbols): Likewise.
114
115 2003-01-06  Michael Snyder  <msnyder@redhat.com>
116
117         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
118
119 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
120
121         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
122         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
123         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
124         deprecated_frame_xmalloc_with_cleanup.
125         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
126         deprecated_frame_xmalloc.
127         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
128         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
129
130 2003-01-06  Andrew Cagney  <cagney@redhat.com>
131
132         * x86-64-linux-tdep.c: Include "osabi.h".
133         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
134
135         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
136
137 2003-01-06  Andrew Cagney  <cagney@redhat.com>
138
139         * MAINTAINERS (Target Instruction Set Architectures): Update
140         arm-elf.  Can be built with -Werror, has been multiarched.
141
142         * value.h (unpack_long): Make buffer parameter constant.
143         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
144         * scm-lang.h (scm_parse): Ditto.
145         * defs.h (extract_typed_address, extract_address): Ditto.
146         (extract_long_unsigned_integer): Ditto.
147         * inferior.h (unsigned_pointer_to_address): Ditto.
148         (signed_pointer_to_address): Ditto.
149         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
150         * gdbarch.h, gdbarch.c: Regenerate.
151         * findvar.c (extract_long_unsigned_integer): Update.
152         (extract_address): Update.
153         (extract_typed_address): Update.
154         (unsigned_pointer_to_address): Update.
155         * values.c (unpack_long): Update.
156         (unpack_double): Update.
157         (unpack_pointer): Update.
158         (unpack_field_as_long): Update.
159         * d10v-tdep.c (d10v_pointer_to_address): Update.
160         * avr-tdep.c (avr_pointer_to_address): Update.
161         * scm-lang.c (scm_unpack): Update.
162         * findvar.c (signed_pointer_to_address): Update.
163
164 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
165
166         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
167         since it is in i386-tdep.c.
168
169 2003-01-06  J. Brobecker  <brobecker@gnat.com>
170
171         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
172         failure introduced in the previous change.
173
174 2003-01-05  Michael Chastain  <mec@shout.net>
175
176         * README: Remove references to deleted remote-*.c files:
177         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
178         remote-nrom.c, remote-os9k.c, remote-udi.c.
179
180 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
181
182         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
183         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
184         i386_get_longjmp_target.
185
186 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
187
188         * arm-tdep.c (prologue_cache): Change to a pointer.
189         (_initialize_arm_tdep): Allocate prologue_cache.
190         (check_prologue_cache): Update.
191         (save_prologue_cache): Update.
192         (arm_gdbarch_init): Update.
193
194 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
195
196         * stabsread.c (update_method_name_from_physname): Call complaint()
197         instead of error.
198
199 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
200
201         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
202         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
203         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
204
205         * blockframe.c: Include "gdbcmd.h" and "command.h".
206         (backtrace_below_main): New variable.
207         (file_frame_chain_valid, func_frame_chain_valid)
208         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
209         (generic_func_frame_chain_valid): Remove functions.
210         (frame_chain_valid, do_flush_frames_sfunc): New functions.
211         (_initialize_blockframe): New function.
212         * Makefile.in (blockframe.o): Update dependencies.
213         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
214         comment.  Call frame_chain_valid ().
215         * frame.h: Remove old prototypes.  Add prototype for
216         frame_chain_valid and update comments to match.
217         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
218         Remove old comment.
219         * gdbarch.h: Regenerated.
220         * gdbarch.c: Regenerated.
221
222         * alpha-tdep.c (alpha_gdbarch_init): Don't call
223         set_gdbarch_frame_chain_valid.
224         * avr-tdep.c (avr_gdbarch_init): Likewise.
225         * cris-tdep.c (cris_gdbarch_init): Likewise.
226         * frv-tdep.c (frv_gdbarch_init): Likewise.
227         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
228         * i386-tdep.c (i386_svr4_init_abi): Likewise.
229         (i386_nw_init_abi): Likewise.
230         (i386_gdbarch_init): Likewise.
231         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
232         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
233         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
234         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
235         * mips-tdep.c (mips_gdbarch_init): Likewise.
236         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
237         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
238         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
239         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
240         * s390-tdep.c (s390_gdbarch_init): Likewise.
241         * sh-tdep.c (sh_gdbarch_init): Likewise.
242         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
243         * v850-tdep.c (v850_gdbarch_init): Likewise.
244         * vax-tdep.c (vax_gdbarch_init): Likewise.
245         * x86-64-tdep.c (x86_64_init_abi): Likewise.
246
247         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
248         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
249         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
250         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
251         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
252         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
253         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
254         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
255
256 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
257
258         * Makefile.in (acconfig_h): Remove incorrect macro.
259         (config_h): Define.
260         (osabi.o): Update dependencies.
261         * configure.tgt: Set gdb_osabi based on target triplet.
262         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
263         * configure: Regenerated.
264         * config.in: Regenerated.
265         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
266         (GDB_OSABI_DEFAULT): Define if not already defined.
267         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
268         (set_osabi_string): New variables.
269         (gdbarch_register_osabi): Add new OS ABI to
270         gdb_osabi_available_names.
271         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
272         (set_osabi, show_osabi): New functions.
273         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
274
275 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
276
277         * arch-utils.c (gdbarch_info_init): Set osabi to
278         GDB_OSABI_UNINITIALIZED.
279         * gdbarch.sh: Add osabi to struct gdbarch and to struct
280         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
281         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
282         * gdbarch.c: Regenerated.
283         * gdbarch.h: Regenerated.
284         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
285         there's no BFD.
286         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
287         * osabi.h (enum gdb_osabi): Move to defs.h.
288         (gdbarch_init_osabi): Update prototype.
289         * defs.h (enum gdb_osabi): Moved here.
290         * Makefile.in: Update dependencies.
291
292         * alpha-tdep.h: Don't include "osabi.h".
293         (struct gdbarch_tdep): Remove osabi member.
294         * alpha-tdep.c: Include "osabi.h".
295         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
296         iterate over arches.  Update call to gdbarch_init_osabi.
297         (alpha_dump_tdep): Don't dump osabi.
298         * alpha-linux-tdep.c: Include "osabi.h".
299         * alpha-osf1-tdep.c: Include "osabi.h".
300         * alphafbsd-tdep.c: Include "osabi.h".
301         * alphanbsd-tdep.c: Include "osabi.h".
302
303         * arm-tdep.h: Don't include "osabi.h".
304         (struct gdbarch_tdep): Remove osabi member.
305         * arm-tdep.c: Include "osabi.h".
306         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
307         iterate over arches.  Update call to gdbarch_init_osabi.
308         (arm_dump_tdep): Don't dump osabi.
309         * arm-linux-tdep.c: Include "osabi.h".
310         * armnbsd-tdep.c: Include "osabi.h".
311
312         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
313         Update call to gdbarch_init_osabi.
314
315         * i386-tdep.h: Don't include "osabi.h".
316         (struct gdbarch_tdep): Remove osabi member.
317         * i386-tdep.c: Include "osabi.h".
318         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
319         iterate over arches.  Update call to gdbarch_init_osabi.
320         (i386_dump_tdep): Don't dump osabi.
321         * i386-linux-tdep.c: Include "osabi.h".
322         * i386-sol2-tdep.c: Include "osabi.h".
323         * i386bsd-tdep.c: Include "osabi.h".
324         * i386gnu-tdep.c: Include "osabi.h".
325         * i386ly-tdep.c: Include "osabi.h".
326         * i386nbsd-tdep.c: Include "osabi.h".
327         * i386obsd-tdep.c: Include "osabi.h".
328
329         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
330         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
331         check osabi when iterating over arches.  Update call to
332         gdbarch_init_osabi.
333         (mips_dump_tdep): Don't dump osabi.
334
335         * ns32k-tdep.h: Don't include "osabi.h".
336         (struct gdbarch_tdep): Remove.
337         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
338         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
339         allocate tdep.  Update call to gdbarch_init_osabi.
340         (ns32k_dump_tdep): Remove.
341         (_initialize_ns32k_tdep): Update call to gdbarch_register.
342         * ns32knbsd-tdep.c: Include "osabi.h".
343
344         * ppc-tdep.h: Don't include "osabi.h".
345         (struct gdbarch_tdep): Remove osabi member.
346         * rs6000-tdep.c: Include "osabi.h".
347         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
348         osabi when iterating over arches.  Update call to
349         gdbarch_init_osabi.
350         (rs6000_dump_tdep): Don't dump osabi.
351         * ppc-linux-tdep.c: Include "osabi.h".
352         * ppcnbsd-tdep.c: Include "osabi.h".
353
354         * sh-tdep.h: Don't include "osabi.h".
355         (struct gdbarch_tdep): Remove osabi member.
356         * sh-tdep.c: Include "osabi.h".
357         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
358         iterate over arches.  Update call to gdbarch_init_osabi.
359         (sh_dump_tdep): Don't dump osabi.
360         * shnbsd-tdep.c: Include "osabi.h".
361
362         * sparc-tdep.c: Include "osabi.h".
363         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
364         iterate over arches.  Update call to gdbarch_init_osabi.
365         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
366         tdep structure.
367
368         * vax-tdep.h: Don't include "osabi.h".
369         (struct gdbarch_tdep): Remove.
370         * vax-tdep.c: Include "osabi.h".
371         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
372         iterate over arches.  Don't allocate tdep.  Update call
373         to gdbarch_init_osabi.
374         (vax_dump_tdep): Remove.
375         (_initialize_vax_tdep): Update call to gdbarch_register.
376
377 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
378
379         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
380         entirely.
381         (breakpoint_re_set_one): Don't fetch the value for a disabled
382         watchpoint.
383
384 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
385
386         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
387         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
388         (COERCE_FLOAT_TO_DOUBLE): Remove.
389         * gdbarch.c: Regenerate.
390         * gdbarch.h: Regenerate.
391         * Makefile.in: Remove value_h from gdbarch_h.
392         * valops.c (coerce_float_to_double): New variable.
393         (default_coerce_float_to_double): Remove.
394         (standard_coerce_float_to_double): Remove.
395         (value_arg_coerce): Use coerce_float_to_double.
396         (_initialize_valops): Add "set coerce-float-to-double".
397         * value.h (default_coerce_float_to_double): Remove prototype.
398         (standard_coerce_float_to_double): Remove prototype.
399
400         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
401         prototyped.
402         * mdebugread.c (parse_symbol): Likewise.
403         * stabsread.c (define_symbol): Mark all functions as prototyped.
404
405         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
406         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
407         set_gdbarch_coerce_float_to_double.
408         * arm-tdep.c (arm_gdbarch_init): Likewise.
409         * frv-tdep.c (frv_gdbarch_init): Likewise.
410         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
411         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
412         * mips-tdep.c (mips_gdbarch_init): Likewise.
413         (mips_coerce_float_to_double): Remove.
414         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
415         (rs6000_coerce_float_to_double): Remove.
416         * s390-tdep.c (s390_gdbarch_init): Likewise.
417         * sh-tdep.c (sh_gdbarch_init): Likewise.
418         (sh_coerce_float_to_double): Remove.
419         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
420         (sparc_coerce_float_to_double): Remove.
421         * v850-tdep.c (v850_gdbarch_init): Likewise.
422         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
423         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
424         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
425         (hppa_coerce_float_to_double): Remove prototype.
426         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
427
428 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
429
430         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
431
432 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
433
434         Suggested by Stewart Brown <sb24@avaya.com>:
435         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
436         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
437         (c_type_print_varspec_suffix): Likewise.
438
439 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
440
441         * configure.in: Don't set and AC_SUBST SUBDIRS.
442         * configure: Regenerated.
443
444         * configure.in: Remove code dealing with shared libraries.
445         * Makefile.in: Remove HLDFLAGS and HLDENV.
446         * configure: Regenerated.
447
448 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
449
450         * frame.c (deprecated_frame_xmalloc): New function.
451         (deprecated_set_frame_saved_regs_hack): New function.
452         (deprecated_set_frame_extra_info_hack): New function.
453         * frame.h (deprecated_frame_xmalloc): Declare.
454         (deprecated_set_frame_saved_regs_hack): Declare.
455         (deprecated_set_frame_extra_info_hack): Declare.
456
457 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
458
459         * configure.in: Move code that provides the --enable-gdbtk option
460         right after the code that handles the --enable-tui option, and
461         polish it somewhat.
462         * configure: Regenerated.
463
464         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
465         AC_CHECK_FUNCS and remove the old check for pread64.
466         * acinclude.m4 (AC_GNU_SOURCE): New macro.
467         * acconfig.h (_GNU_SOURCE): Add.
468         (HAVE_PREAD64): Remove.
469         * configure, aclocal.m4, config.in: Regenerated.
470
471 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
472
473         * alpha-tdep.c: Use get_frame_saved_regs.
474         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
475         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
476         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
477         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
478         * vax-tdep.c, xstormy16-tdep.c: Ditto.
479
480 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
481
482         * configure.in: Remove all use of the SUBDIRS variable; add
483         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
484         code providing the --enable-multi-ice option, and move it right in
485         front of the code that checks whether gdbserver is supported.
486         Polish that too.
487         * configure: Regenerated.
488         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
489         @SUBDIRS@.
490
491 2003-01-03  Andrew Cagney  <cagney@redhat.com>
492
493         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
494         * avr-tdep.c, cris-tdep.c: Ditto.
495         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
496         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
497         
498 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
499
500         * configure.in: Remove --enable-netrom option.
501         * configure: Regenerated.
502
503 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
504
505         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
506         declaration for `struct re_pattern_buffer' instead.
507         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
508
509 2003-01-03  J. Brobecker  <brobecker@gnat.com>
510
511         * mdebugread.c (parse_symbol): Count until the stEnd matching
512         the structure name.
513
514 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
515
516         * configure.in: Remove --with-cpu option.
517         subscripts.  Remove evil changequotes here.
518         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
519         * config.in, configure: Regenerated.
520         
521         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
522         * configure.in: Cleanup section that sources GDB and BFD configure
523         subscripts.  Remove evil changequotes here.
524         * config.in, configure: Regenerated.
525
526 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
527
528         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
529         frame accessor methods.
530         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
531         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
532         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
533         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
534         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
535         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
536         * z8k-tdep.c: Ditto.
537         
538 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
539
540         * configure.in: Remove UI_OUT configuration code.
541         * ada-lang.c: Update assuming UI_OUT is always true.
542         * Makefile.in (UIOUT_CFLAGS): Remove.
543         * configure: Regenerated.
544         * TODO: Remove blurb about elimination of -DUI_OUT.
545
546         * configure.in: Move code that provides the --enable-gdbcli,
547         --enable-gdbmi options right before the code that handles the
548         --enable-tui option.  Polish a bit.
549         * configure: Regenerated.
550
551         * configure.in: Rewrite check for GNU regex and the
552         --without-included regex option, and move it into the "Checks for
553         library functions" section.  This makes us use the system regex
554         again by default on systems with version 2 of the GNU C library.
555         This was apparently broken.
556         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
557         * acconfig.h (USE_INCLUDED_REGEX): Remove.
558         * config.in, configure: Regenerated.
559
560         * configure.in: Move code that provides the --enable-tui option
561         before the "Checks for libraries" section.  Polish the code
562         somewhat and set need_curses to yes if we build the TUI.  Rewrite
563         code that looks for a library providing termcap functionality to
564         match more closely what's done in the Readline library, and move
565         it into to the "Checks for libraries" section.
566         * configure: Regenerated.
567         * Makefile.in (TERMCAP): Remove variable.
568         * config/i386/go32.mh (TERMCAP): Remove variable.
569
570 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
571
572         * MAINTAINERS: Mention gdb_mbuild.sh.
573         * gdb_mbuild.sh: Rewrite.
574
575 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
576
577         * configure.in: Fix typo in last change.
578         * config.in, configure: Regenerated.
579
580 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
581
582         * valarith.c (value_binop): Delete obsolete code and comments.
583         * configure.host: Ditto.
584         * buildsym.h (make_blockvector): Ditto.
585         * buildsym.c (make_blockvector): Ditto.
586         * defs.h (enum language): Ditto.
587         (chill_demangle): Ditto.
588         * elfread.c (elf_symtab_read): Ditto.
589         * dwarfread.c (CHILL_PRODUCER): Ditto.
590         (set_cu_language): Ditto.
591         (handle_producer): Ditto.
592         * expprint.c (print_subexp): Ditto.
593         * gdbtypes.c (chill_varying_type): Ditto.
594         * gdbtypes.h (builtin_type_chill_bool): Ditto.
595         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
596         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
597         (chill_varying_type): Ditto.
598         * language.h (_LANG_chill): Ditto.
599         * language.c (binop_result_type, integral_type): Ditto.
600         (character_type, string_type, structured_type): Ditto.
601         (lang_bool_type, binop_type_check): Ditto.
602         * stabsread.h (os9k_stabs): Ditto.
603         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
604         (define_symbol, read_type, read_struct_fields): Ditto.
605         (read_array_type, read_enum_type, read_huge_number): Ditto.
606         (read_range_type, start_stabs): Ditto.
607         * symfile.c (init_filename_language_table): Ditto.
608         (add_psymbol_with_dem_name_to_list): Ditto.
609         * symtab.c (symbol_init_language_specific): Ditto.
610         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
611         * symtab.h (struct general_symbol_info): Ditto.
612         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
613         * typeprint.c (typedef_print): Ditto.
614         * utils.c (fprintf_symbol_filtered): Ditto.
615         * valops.c (value_cast, search_struct_field, value_slice): Delete
616         obsolete code.
617         (varying_to_slice): Delete function.
618         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
619         (varying_to_slice): Delete declaration.
620         * MAINTAINERS: Update.
621
622 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
623
624         * configure.in: Reorganize "Checks for library functions section"
625         a bit.  Remove check for `btowc' and `isascii' functions.
626         * configure: Regenerated.
627
628         * acconfig.h (_MSE_INT_H): Remove.
629         * configure.in: Create "Checks for header files" section, and move
630         appropriate tests there.  Don't check for objlist.h, wchar.h,
631         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
632         misdetection fix.  Also add "Checks for types", "Checks for
633         compiler characteristics" and "Checks for library functions"
634         sections.
635         * config.in, configure: Regenerated.
636
637         * configure.in: Create "Checks for programs" section, and move
638         appropriate tests there.
639
640 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
641
642         * configure.in: Create "Checks for libraries" section, and move
643         appropriate tests there.  Cleanup check for wctype in libw.  Use
644         AC_SEARCH_LIBS to see whether we need libsocket.
645         * configure: Regenerated.
646
647 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
648
649         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
650         * config.in, configure: Regenerated.
651
652 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
653
654         * gdb_dirent.h: Cleanup and update code to match the example in
655         the Autoconf manual.
656         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
657         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
658         * configure: Regenerated.
659
660 2002-12-30  Adam Fedor  <fedor@gnu.org>
661
662         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
663         (yylex): Initialize c to avoid uninitialized warning.
664
665 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
666
667         * doc/fdl.texi: Revert the last change.
668
669 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
670
671         * tracepoint.c (ISATTY): Removed.
672
673 2002-12-26  J. Brobecker  <brobecker@gnat.com>
674
675         Continuing work to convert the hppa targets to multiarch partil.
676
677         * hppa-tdep.c: Add some missing forward declarations.
678         (frameless_function_invocation): Prefix the function name
679         by "hppa_" to avoid polluting the namespace.  Update all calls
680         to use the new function name.
681         (saved_pc_after_call): Ditto.
682         (init_extra_frame_info): Ditto.
683         (frame_chain): Ditto.
684         (push_dummy_frame): Ditto.
685         (target_read_pc): Ditto.
686         (target_write_pc): Ditto.
687         (in_solib_call_trampoline): Ditto.
688         (in_solib_return_trampoline): Ditto.
689         (skip_trampoline_code): Ditto.
690         (hppa_read_fp): New function, renamed from target_read_fp.
691         (hppa_target_read_fp): New function, using hppa_read_fp.
692         This function conforms to the function profile for the
693         READ_FP gdbarch method.
694         (hppa_extract_struct_value_address): New function, extracted
695         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
696         macro.
697         (hppa_frame_num_args): New function.
698         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
699
700         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
701         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
702         for the switch to multiarch partial.
703         Update some of the macros definitions to match some changes
704         described above in the name of the function they are calling.
705         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
706         not be straightforward to convert. Do now wrap it inside
707         "#if !... #endif" to remember that this macro has still not
708         been taken care of.
709         (FIX_CALL_DUMMY): Likewise.
710
711 2002-12-26  J. Brobecker  <brobecker@gnat.com>
712
713         Continuing work to convert the hppa targets to multiarch partial.
714
715         * hppa-tdep.c (hppa_register_raw_size): New function replacing
716         the body of macro REGISTER_RAW_SIZE.
717         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
718         config/pa/tm-hppah.h. These functions will be used to initialize
719         the gdbarch structure.
720         (hppa_hpux_pc_in_sigtramp): New function.
721         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
722         (hppa_hpux_frame_base_before_sigtramp): New function.
723         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
724         Add gdbcore.h #include.
725         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
726         of this gdbarch-eligible macro to a call to the new associated
727         function.
728         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
729         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
730         into a call to the new associated function.
731         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
732         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
733         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
734
735 2002-12-24  David Carlton  <carlton@math.stanford.edu>
736
737         * config/sparc/tm-sparc.h: Delete duplicate definition of
738         DEPRECATED_PC_IN_CALL_DUMMY.
739
740 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
741
742         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
743         $(gdb_assert_h).
744         * configure.tgt: Recognize mips64*-*-linux*.
745         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
746         (supply_32_bit_reg): New function.
747         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
748         (fill_gregset): Use regcache_collect() instead of
749         deprecated_registers[].
750         (register_addr): Change name to mips_linux_register_addr().
751         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
752         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
753         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
754         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
755         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
756         (MIPS64_LINUX_JB_PC): New defines.
757         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
758         (mips64_elf_fpregset_t): New typedefs.
759         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
760         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
761         (mips64_linux_register_addr, set_mips_linux_register_addr)
762         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
763         (init_register_addr_data)
764         New functions.
765         (fetch_core_registers): Add support for core file formats with 64-bit
766         registers.
767         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
768         (register_addr_data): New static global variable.
769         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
770         gdbarch_register_osabi() for each MIPS machine.
771         * config/mips/linux64.mt: New file.
772         * config/mips/tm-linux64.h: New file.
773
774 2002-12-23  Adam Fedor  <fedor@gnu.org>
775
776         * maint.c (maintenance_demangle): Add switch to demangle
777         ObjC language symbols as well.
778
779 2002-12-23  Adam Fedor  <fedor@gnu.org>
780
781         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
782         last argument from complaint function call.
783
784 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
785
786         * exec.c (print_section_info): Add FIXME comments regarding format
787         string choices.
788
789 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
790
791         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
792         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
793
794 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
795
796         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
797
798 2002-12-23  David Carlton  <carlton@math.stanford.edu>
799
800         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
801         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
802         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
803         information associated to a minsym, not lookup_symbol.
804
805 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
806
807         * x86-64-tdep.h (x86_64_init_abi): New prototype.
808         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
809         (x86_64_init_abi): Make non-static.  Set number of pseudo
810         registers to 0.
811         (x86_64_gdbarch_init): Remove function.
812         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
813         Remove code dealing with dissambly.
814         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
815         (_initialize_x86_64_linux_tdep): New function.
816         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
817         i386-tdep.o.
818
819 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
820
821         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
822         (struct gdb_osabi_handler): Remove member `arch'.  Add member
823         `arch_info'.
824         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
825         construct a `struct bfd_arch_info' and store it in the `struct
826         gdb_osabi_handler' that is created.
827         (gdbarch_init_osabi): Check for compatibility based on machine
828         type and architecture.
829         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
830         comment.
831         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
832         second argument in call to gdbarch_register_osabi.
833         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
834         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
835         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
836         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
837         * arm-tdep.c (_initialize_arm_tdep): Likewise.
838         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
839         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
840         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
841         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
842         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
843         * i386-tdep.c (_initialize_i386_tdep): Likewise.
844         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
845         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
846         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
847         _initialize_i386bsd_tdep and updated likewise.
848         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
849         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
850         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
851         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
852         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
853         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
854         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
855         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
856         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
857         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
858
859 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
860
861         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
862         DT_MIPS_RLD_MAP case for 64-bit targets.
863
864 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
865
866         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
867         ``temp_saved_regs'', not the pointer or other storage contiguous
868         to this pointer.
869
870 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
871
872         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
873         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
874         (mips_linux_get_longjmp_target): Delete declarations.
875         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
876         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
877         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
878         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
879         (mips_linux_get_longjmp_target)
880         (mips_linux_svr4_fetch_link_map_offsets): Make static.
881         (mips_linux_init_abi): New function.
882         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
883
884 2002-12-19  Keith Seitz  <keiths@redhat.com>
885
886         patch committed by Elena Zannoni  <ezannoni@redhat.com>
887         * thread.c (do_captured_list_thread_ids): Call prune_threads and
888         target_find_new_threads. Fix for PR mi/669.
889
890 2002-12-19  David Carlton  <carlton@math.stanford.edu>
891
892         * linespec.c (decode_line_1): Move code into decode_all_digits.
893         (decode_all_digits): New function.
894
895 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
896
897         * exec.c (print_section_info): Select a format string to use with
898         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
899
900 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
901
902         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
903         deprecated_update_current_frame_pc_hack.
904         (deprecated_update_frame_base_hack): New function.
905         * frame.h (deprecated_update_frame_pc_hack): Replace
906         (deprecated_update_frame_base_hack): Declare.
907         * infrun.c (normal_stop): Update.
908
909 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
910
911         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
912         frame_extra_info_zalloc.
913         (rs6000_frame_args_address): Use get_frame_extra_info.
914         (frame_get_saved_regs): Use get_frame_saved_regs.
915         (frame_initial_stack_address): Use get_frame_saved_regs and
916         get_frame_extra_info.
917         (frame_initial_stack_address): Use get_frame_extra_info.
918
919 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
920
921         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
922         array size.
923         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
924         checks for r3900_regnames[].
925
926 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
927
928         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
929         All uses changed
930         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
931
932 2002-12-17  David Carlton  <carlton@math.stanford.edu>
933
934         * symtab.c (lookup_partial_symbol): Don't search past the end of
935         the partial symbols.
936
937 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
938
939         * stack.c (frame_info): Use get_frame_saved_regs.
940         * breakpoint.c (until_break_command): Use get_frame_pc.
941
942 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
943
944         * buildsym.c (block_end_complaint, anon_block_end_complaint)
945         (innerblock_complaint, innerblock_anon_complaint)
946         (blockvector_complaint): Delete deprecated complaint structs.
947         (finish_block, make_blockvector, end_symtab): Replace calls
948         to complain() with calls to complaint().
949         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
950         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
951         (unexpected_type_complaint, bad_sclass_complaint)
952         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
953         Delete deprecated complaint structs.
954         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
955         Replace calls to complain() with calls to complaint().
956         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
957         (unknown_symtype_complaint, unknown_symchar_complaint)
958         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
959         (lbrac_mismatch_complaint, repeated_header_complaint)
960         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
961         Delete deprecated complaint structs.
962         (unknown_symtype_complaint, lbrac_mismatch_complaint)
963         (repeated_header_complaint)
964         (function_outside_compiliation_unit_complaint): New functions.
965         (add_old_header_file, find_corresponding_bincl_psymtab)
966         (set_namestring, find_stab_function_addr, read_dbx_symtab)
967         (process_one_symbol): Replace calls to complain() with, possibly
968         indirect, calls to complaint().
969         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
970         (unknown_attribute_form, unknown_attribute_length)
971         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
972         (const_ignored, botched_modified_type, op_deref2, op_deref4)
973         (basereg_not_handled, dup_user_type_allocation)
974         (dup_user_type_definition, missing_tag, bad_array_element_type)
975         (subscript_data_items, unhandled_array_subscript_format)
976         (unknown_array_subscript_format, not_row_major)
977         (missing_at_name): Delete deprecated complaint structs.
978         (bad_die_ref_complaint, unknown_attribute_form_complaint)
979         (dup_user_type_definition_complaint)
980         (bad_array_element_type_complaint): New functions.
981         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
982         (decode_subscript_data_item, dwarf_read_array_type)
983         (read_tag_string_type, read_subroutine_type, read_func_scope)
984         (locval, scan_partial_symbols, decode_modified_type)
985         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
986         (attribute_size): Replace calls to complain() with, possibly
987         indirect, calls to complaint().
988         * elfread.c (section_info_complaint, section_info_dup_complaint)
989         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
990         Delete deprecated complaint structs.
991         (elf_symtab_read, elfstab_offset_sections): Replace calls to
992         complain() with calls to complaint().
993         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
994         struct.
995         (stub_noname_complaint): New function.
996         (check_typedef, add_mangled_type): Replace calls to complain()
997         with calls to complaint().
998         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
999         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1000         (hpread_unhandled_type_complaint, hpread_struct_complaint)
1001         (hpread_array_complaint, hpread_type_lookup_complaint)
1002         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1003         (hpread_unhandled_common_complaint)
1004         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1005         struct definitions and declarations.
1006         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1007         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1008         Replace calls to complain() with, possibly indirect, calls to
1009         complaint().
1010         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1011         Likewise.
1012         * mdebugread.c (bad_file_number_complaint, index_complaint)
1013         (aux_index_complaint, block_index_complaint)
1014         (unknown_ext_complaint, unknown_sym_complaint)
1015         (unknown_st_complaint, block_overflow_complaint)
1016         (basic_type_complaint, unknown_type_qual_complaint)
1017         (array_index_type_complaint, bad_tag_guess_complaint)
1018         (block_member_complaint, stEnd_complaint)
1019         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1020         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1021         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1022         (bad_continued_complaint, bad_rfd_entry_complaint)
1023         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1024         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1025         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1026         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1027         complaint structs.
1028         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1029         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1030         (unexpected_type_code_complaint)
1031         (function_outside_compilation_unit_complaint): New functions.
1032         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1033         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1034         Replace calls to complain() with, possibly indirect calls to
1035         complaint().
1036         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1037         Delete deprecated complaint structs.
1038         (lookup__objc_class, lookup_child_selector): Replace complain()
1039         with complaint().
1040         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1041         struct.
1042         (vx_lookup_symbol): Replace complain() with complaint().
1043         * stabsread.c (invalid_cpp_abbrev_complaint)
1044         (invalid_cpp_type_complaint, member_fn_complaint)
1045         (const_vol_complaint, error_type_complaint)
1046         (invalid_member_complaint, range_type_base_complaint)
1047         (reg_value_complaint, vtbl_notfound_complaint)
1048         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1049         (unresolved_sym_chain_complaint, stabs_general_complaint)
1050         (lrs_general_complaint, multiply_defined_struct): Delete
1051         deprecated complaint structs.
1052         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1053         (stabs_general_complaint, lrs_general_complaint)
1054         (msg_unknown_complaint): New functions.
1055         (dbx_lookup_type, read_cfront_baseclasses)
1056         (read_cfront_member_functions, resolve_symbol_reference)
1057         (define_symbol, resolve_live_range, add_live_range, read_type)
1058         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1059         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1060         (read_cfront_static_fields, attach_fields_to_type)
1061         (complain_about_struct_wipeout, read_range_type)
1062         (common_block_start, common_block_end, cleanup_undefined_types)
1063         (scan_file_globals): Replace complain() with complaint().
1064         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1065         Delete deprecated complaint struct declarations.
1066         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1067         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1068         (bf_not_found_complaint, ef_complaint, eb_complaint)
1069         (function_outside_compilation_unit_complaint): New functions.
1070         (record_include_begin, record_include_end, enter_line_range)
1071         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1072         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1073         complain() with complaint().
1074
1075 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1076
1077         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1078         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1079         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1080         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1081         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1082         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1083         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1084         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1085         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1086         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1087         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1088         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1089         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1090         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1091         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1092         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1093         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1094         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1095         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1096         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1097         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1098         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1099         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1100         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1101         * config/m88k/xm-dgux.h: Delete.
1102         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1103         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1104         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1105         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1106         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1107         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1108         * ch-valprint.c: Delete.
1109         
1110 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1111
1112         * infrun.c (handle_inferior_event): Rearrange code to resume if
1113         no catchpoint triggers for an event.
1114
1115 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1116
1117         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1118         and TARGET_WAITKIND_VFORKED cases.
1119
1120 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1121
1122         * infrun.c (handle_inferior_event): Assume that catchpoints
1123         are not affected by DECR_PC_AFTER_BREAK.
1124
1125 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1126
1127         * target.c (update_current_target): Don't inherit DONT_USE.
1128         * target.h (struct target_ops): Remove DONT_USE.
1129         (target_next): Remove macro.
1130
1131 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1132
1133         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1134
1135 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1136
1137         * arm-tdep.c (convert_from_extended): New argument to hold the
1138         type of floating point result we want to convert to.  Make input 
1139         argument const.  Fix all callers.
1140         (convert_to_extended): Similarly.
1141         (arm_extract_return_value): Now takes a regcache argument.  Change
1142         code to use regcache accessor functions.  Correctly extract 
1143         smaller-than-word results on big-endian machines.
1144         (arm_store_return_value): Now takes a regcache argument.  Change
1145         code to use regcache accessor functions.  Correctly zero/sign extend
1146         smaller than word results before storing into r0.
1147         (arm_gdbarch_init): Register new-style extract_return_value and
1148         store_return_value functions.
1149
1150 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1151
1152         * thread-db.c (thread_from_lwp): Uniquify error msg.
1153         (lwp_from_thread): Ditto.
1154         (check_event): Ditto.
1155         (find_new_threads_callback): Ditto.
1156         (thread_db_pid_to_str): Ditto.
1157
1158 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1159
1160         * frame.h (get_frame_saved_regs): Declare.
1161         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1162         pointer.
1163         * frame.c (get_frame_saved_regs): New function.
1164         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1165
1166 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1167
1168         * frame.c (deprecated_update_current_frame_pc_hack): New
1169         function.
1170         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1171         * infrun.c (normal_stop): Use said function instead of directly
1172         modifying the frame's PC.
1173         
1174 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1175
1176         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1177
1178 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1179
1180         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1181         config/mips/tm-irix6.h (NUM_REGS): Delete.
1182         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1183         (temp_saved_regs): Declare as a pointer rather than an array.
1184         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1185         that ``temp_saved_regs'' has storage allocated to it and that
1186         it's the correct size.
1187
1188 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1189
1190         * defs.h (init_last_source_visited): New prototype.
1191         (add_path): Ditto.
1192         * source.c (add_path): New function that adds to a specified path.
1193         (mod_path): Change to call add_path.
1194         (init_last_source_visited): New function to allow interfaces to
1195         initialize static variable: last_source_visited.  Part of fix
1196         for PR gdb/741.
1197         * Makefile.in: Add support for mi/mi-cmd-env.c.
1198
1199 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1200
1201         * frame.h (frame_id_unwind): Declare.
1202         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1203         id_unwind_cache.
1204         (frame_id_unwind_ftype): Declare.
1205         * frame.c (frame_id_unwind): New function.
1206         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1207         (create_new_frame, get_prev_frame): Pass id_unwind to
1208         set_unwind_by_pc.
1209         (frame_saved_regs_id_unwind): New function.
1210         (frame_saved_regs_id_unwind): New function.
1211         * dummy-frame.c (dummy_frame_id_unwind): New function.
1212         (struct dummy_frame): Add field id.
1213         (generic_push_dummy_frame): Initialize `id'.
1214         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1215
1216 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1217
1218         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1219         pass that to set_momentary_breakpoint.  Move comments to where they
1220         belong.
1221         * frame.h (set_current_frame): Delete declaration.
1222         * frame.c (set_current_frame): Delete function.
1223
1224 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1225
1226         * frame.c (frame_extra_info_zalloc): New function.
1227         * frame.h (frame_extra_info_zalloc): Declare.
1228
1229 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1230
1231         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1232         in the previous prototype change to set_momentary_breakpoint.
1233
1234 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1235
1236         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1237         and saw_child_exec.
1238         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1239         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1240         (stop_stepping): Remove outdated check for child vfork events.
1241
1242 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1243
1244         * GDB 5.3 released from gdb_5_3-branch.
1245
1246 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1247
1248         * corelow.c (init_core_ops): Delete references to to_require_attach
1249         and to_require_detach.
1250         * exec.c (init_exec_ops): Likewise.
1251         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1252         hppa_require_detach directly.
1253         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1254         * inftarg.c (child_detach): Remove.
1255         (child_detach_from_process): Rename to child_detach, remove
1256         after_fork argument.
1257         (child_attach): Remove.
1258         (child_attach_to_process): Rename to child_attach, remove after_fork
1259         argument.
1260         (init_child_ops): Delete references to to_require_attach
1261         and to_require_detach.
1262         * infttrace.c (hppa_require_attach): Update comment.
1263         * target.c (cleanup_target, update_current_target)
1264         (init_dummy_target, setup_target_debug): Delete references to
1265         to_require_attach and to_require_detach.
1266         (find_default_require_detach, find_default_require_attach)
1267         (debug_to_require_attach, debug_to_require_detach): Remove
1268         functions.
1269         * target.h (struct target_ops): Remove to_require_attach
1270         and to_require_detach.
1271         (target_require_attach, target_require_detach): Delete macros.
1272         (find_default_require_detach, find_default_require_attach): Delete
1273         prototypes.
1274         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1275
1276 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1277
1278         * frame.c (get_frame_extra_info): New function.
1279         * frame.h (get_frame_extra_info): Declare.
1280
1281 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1282
1283         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1284         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1285         with `struct frame_id'.
1286         (set_longjmp_resume_breakpoint): Ditto.
1287         * infrun.c (handle_inferior_event): Update.
1288         * breakpoint.c (watch_command_1, until_break_command): Update.
1289         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1290         (handle_inferior_event, step_over_function): Update.
1291         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1292         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1293         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1294         * infcmd.c (finish_command, run_stack_dummy): Update.
1295
1296 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1297
1298         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1299         (dwarf2_non_const_array_bound_ignored)
1300         (dwarf2_missing_line_number_section)
1301         (dwarf2_statement_list_fits_in_line_number_section)
1302         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1303         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1304         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1305         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1306         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1307         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1308         (dwarf2_missing_member_fn_type_complaint)
1309         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1310         (dwarf2_const_value_length_mismatch)
1311         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1312         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1313         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1314         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1315         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1316         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1317         complaints using deprecated struct..
1318         (dwarf2_non_const_array_bound_ignored_complaint)
1319         (dwarf2_complex_location_expr_complaint)
1320         (dwarf2_unsupported_at_frame_base_complaint)
1321         (dwarf2_const_value_length_mismatch_complaint)
1322         (dwarf2_macros_too_long_complaint)
1323         (dwarf2_macro_malformed_definition_complaint)
1324         (dwarf2_invalid_attrib_class_complaint): New functions.
1325         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1326         (read_structure_scope, read_array_type, read_common_block)
1327         (read_tag_pointer_type, read_base_type, read_partial_die)
1328         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1329         (new_symbol, dwarf2_const_value, read_type_die)
1330         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1331         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1332         complain() with, possibly indirect, calls to complaint().
1333
1334 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1335
1336         * frame.c (deprecated_get_frame_saved_regs): Rename
1337         get_frame_saved_regs.
1338         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1339         * sparc-tdep.c: Update.
1340         * hppa-tdep.c: Update.
1341         * h8500-tdep.c: Update.
1342
1343 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1344
1345         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1346         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1347         ``char *'' for return and parameter types.
1348         * gdbarch.h, gdbarch.c: Regenerate.
1349         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1350         return type from ``char *'' to ``const char *''.
1351         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1352         const.
1353
1354 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1355
1356         * i386-tdep.c: Include "dummy-frame.h".
1357         (i386_frame_chain, i386_frame_saved_pc): Replace
1358         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1359         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1360
1361 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1362
1363         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1364         Change to a function with predicate.
1365         * gdbarch.h, gdbarch.c: Re-generate.
1366         * frame.c (get_prev_frame): Update.  Test
1367         DEPRECATED_INIT_FRAME_PC_P.
1368         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1369         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1370         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1371         * alpha-tdep.c (alpha_gdbarch_init): Update.
1372         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1373         * mips-tdep.c (mips_gdbarch_init): Update.
1374         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1375         * arm-tdep.c: Update comments.
1376         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1377         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1378         * frv-tdep.c (frv_gdbarch_init): Ditto.
1379         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1380         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1381         * s390-tdep.c (s390_gdbarch_init): Ditto.
1382         * v850-tdep.c (v850_gdbarch_init): Ditto.
1383         * vax-tdep.c (vax_gdbarch_init): Ditto.
1384         * sh-tdep.c (sh_gdbarch_init): Ditto.
1385         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1386         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1387         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1388         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1389         * i386-tdep.c (i386_gdbarch_init): Ditto.
1390         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1391         * cris-tdep.c (cris_gdbarch_init): Ditto.
1392         * avr-tdep.c (avr_gdbarch_init): Ditto.
1393         * arm-tdep.c (arm_gdbarch_init): Ditto.
1394         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1395         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1396
1397 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1398
1399         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1400         CHILD_FOLLOW_FORK.
1401         * hppah-nat.c (saved_vfork_pid): Add.
1402         (child_post_follow_vfork): Remove.
1403         (child_follow_fork): New function.
1404         (child_wait): Call detach_breakpoints after receiving the child vfork.
1405         Call child_resume directly instead of going through resume ().
1406         Make sure we have the exec before reporting the vfork.
1407         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1408         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1409         (follow_fork): New function.  Call target_follow_fork.
1410         (follow_inferior_reset_breakpoints): New function broken out from
1411         old follow_inferior_fork.
1412         (resume): Remove hack to follow exec after vfork.
1413         * inftarg.c (child_post_follow_vfork): Remove.
1414         (child_follow_fork): New function.
1415         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1416         * target.c (cleanup_target): Replace to_post_follow_vfork with
1417         to_follow_fork.
1418         (update_current_target): Likewise.
1419         (setup_target_debug): Likewise.
1420         (debug_to_post_follow_vfork): Remove.
1421         (debug_to_follow_fork): New function.
1422         * target.h (struct target_ops): Replace to_post_folow_vfork with
1423         to_follow_fork.
1424         (child_post_follow_vfork): Remove prototype.
1425         (child_follow_fork): Add prototype.
1426         (target_post_follow_vfork): Remove macro.
1427         (target_follow_fork): Add macro.
1428
1429 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1430
1431         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1432         (child_post_follow_vfork): Cancel pending exec event if we follow
1433         the parent.
1434         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1435         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1436         event at the following wait call if necessary.
1437         * infrun.c (follow_vfork): Don't follow_exec here.
1438         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1439         case about HP/UX 10.20.  Remove code pushed down to
1440         hppah-nat.c:child_wait.
1441         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1442         vfork_in_flight is set.
1443
1444 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1445
1446         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1447         for the parent's fork event.
1448         * infrun.c (handle_inferior_event): Only expect one fork event.
1449         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1450         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1451
1452 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1453
1454         * PROBLEMS: Delete reference to PR gdb/725.
1455         
1456         * MAINTAINERS (gdb.c++): Add David Carlton.
1457
1458 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1459
1460         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1461         * cli/cli-cmds.c: Ditto.
1462
1463 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1464
1465         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1466         function address in <>.
1467         * gdbarch.c: Re-generate.
1468
1469 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1470
1471         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1472
1473 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1474
1475         * linespec.c (symtab_from_filename): New function.
1476         (decode_line_1): Move code into symtab_from_filename.
1477
1478 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1479
1480         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1481
1482 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1483
1484         * f-valprint.c (info_common_command): Use get_frame_pc.
1485         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1486         * ax-gdb.c (agent_command): Ditto.
1487         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1488         (rs6000_pop_frame): Ditto.
1489         (rs6000_frameless_function_invocation): Ditto.
1490         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1491         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1492         * macroscope.c (default_macro_scope): Ditto.
1493         * stack.c (print_frame_info_base): Ditto.
1494         (print_frame, frame_info, print_frame_label_vars): Ditto.
1495         (return_command, func_command, get_frame_language): Ditto.
1496         * infcmd.c (finish_command): Ditto.
1497         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1498         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1499         (break_at_finish_at_depth_command_1): Ditto.
1500         (break_at_finish_command_1): Ditto.
1501         (until_break_command, get_catch_sals): Ditto.
1502         * blockframe.c (func_frame_chain_valid): Ditto.
1503         (frameless_look_for_prologue): Ditto.
1504         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1505
1506 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1507
1508         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1509         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1510
1511 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1512
1513         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1514         to pure functions.
1515         * gdbarch.h, gdbarch.c: Re-generate.
1516         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1517         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1518
1519         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1520         declaration to a function returning a CORE_ADDR.
1521         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1522         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1523         (init_frame_pc_default): Ditto.
1524         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1525         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1526         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1527         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1528         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1529         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1530
1531         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1532         to init_frame_pc_noop.
1533         (i386_interix_init_frame_pc): Delete function.
1534         * z8k-tdep.c (init_frame_pc): Delete function.
1535         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1536         (INIT_FRAME_PC_FIRST): Ditto.
1537         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1538         (INIT_FRAME_PC_FIRST): Ditto.
1539         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1540         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1541         init_frame_pc_noop.
1542         (INIT_FRAME_PC_FIRST): Convert to an expression.
1543         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1544
1545 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1546
1547         * blockframe.c: Use get_frame_base instead of directly accessing
1548         the `struct frame_info' member frame.
1549         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1550         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1551
1552 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1553
1554         * Makefile.in (readline_h): Define.
1555         (completer.o): Depend on readline_h.
1556         (corelow.o): Ditto.
1557         (event-top.o): Ditto.
1558         (exec.o): Ditto.
1559         (solib.o): Ditto.
1560         (source.o): Ditto. 
1561         (symfile.o): Ditto. 
1562         (symmisc.o): Ditto. 
1563         (top.o): Ditto.
1564         (tracepoint.o): Ditto. 
1565         (utils.o): Ditto.
1566         (cli-dump.o): Ditto.
1567         (tui-hooks.o): Ditto. 
1568         (tuiWin.o): Ditto. 
1569
1570 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1571
1572         More cleanup from import of readline 4.3.
1573         * completer.h (complete_line, readline_line_completion_function):
1574         Update prototypes.
1575         (line_completion_function): Removed, not used outside of completer.c.
1576         * completer.c (readline_line_completion_function,
1577         complete_function, line_completion_function): Use const for first
1578         parameter.
1579         (line_completion_function): Make static.
1580         (filename_completer): filename_completion_function is now called
1581         rl_filename_completion_function
1582         * corelow.c: Include <readline/readline.h>.
1583         * exec.c: Ditto.
1584         * solib.c: Ditto.
1585         * source.c: Ditto.
1586         * symfile.c: Ditto.
1587         * symmisc.c: Ditto.
1588         * top.c (init_main): No need to coerce
1589         readline_line_completion_function anymore.
1590         * cli/cli-dump.c: Include <readline/readline.h>.
1591
1592 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1593
1594         * stack.c (frame_info): Use get_prev_frame.
1595         * blockframe.c (frame_address_in_block): Ditto.
1596         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1597         (rs6000_frameless_function_invocation): Ditto.
1598         (rs6000_frame_saved_pc): Ditto.
1599         (rs6000_frame_chain): Ditto.
1600         * arch-utils.c (init_frame_pc_default): Ditto.
1601
1602 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1603
1604         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1605         Delete redundant definition.
1606
1607 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1608
1609         Import of readline 4.3:
1610         * cli/cli-cmds.c: Include readline/tilde.h.
1611         * cli/cli-setshow.c: Ditto.
1612         * defs.h: Don't declare tilde_expand anymore, since readline
1613         exports it.
1614
1615 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1616
1617         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1618         -Werror on this file.
1619
1620 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1621
1622         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1623         the format name.
1624         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1625         * gdbarch.c: Regenerate.
1626         
1627 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1628
1629         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1630         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1631         provide a default value.
1632         * gdbarch.h, gdbarch.c: Regenerate.
1633         * frame.c (get_prev_frame): Update.  Check
1634         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1635         * s390-tdep.c (s390_gdbarch_init): Update.
1636         * mips-tdep.c (mips_gdbarch_init): Update.
1637         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1638         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1639         * alpha-tdep.c (alpha_gdbarch_init): Update.
1640         
1641 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1642
1643         * ia64-linux-nat.c: Include gdb_string.h.
1644         * alpha-nat.c: Ditto.
1645         * ppc-linux-nat.c: Ditto.
1646         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1647         Update dependencies.
1648
1649 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1650
1651         * gdbthread.h: Include "frame.h".
1652         (struct thread_info): Replace step_frame_address with
1653         step_frame_id.
1654         * inferior.h: Include "frame.h".
1655         (step_frame_id): Replace external variable step_frame_address.
1656         * gdbthread.h (save_infrun_state): Replace step_frame_address
1657         parameter with step_frame_id parameter.
1658         (load_infrun_state): Ditto.
1659         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1660         * infcmd.c (step_frame_id, step_1, step_once): Update.
1661         * thread.c (load_infrun_state, save_infrun_state): Update.
1662         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1663         (handle_inferior_event, step_over_function): Update.
1664         (normal_stop, context_switch, restore_inferior_status): Update.
1665         (struct inferior_status): Replace step_frame_address with
1666         step_frame_id.
1667
1668 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1669
1670         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1671         DW_TAG_member as well as a declaration as being a C++ static data
1672         member.
1673         (read_structure_scope): Combine tests for DW_TAG_member and
1674         DW_TAG_variable.
1675
1676 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1677
1678         * linespec.c (decode_compound): New function.
1679         (decode_line_1): Move code into decode_compound.
1680
1681 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1682
1683         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1684         argument.
1685         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1686         the static block.  See PR gdb/804.
1687
1688 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1689
1690         * symtab.c (lookup_symbol_aux_block): New function.
1691         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1692
1693 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1694
1695         * gdbarch.sh: Dump the predicate function and macro values.
1696         (read): Print error on standard error.
1697         * gdbarch.c: Regenerate.
1698         
1699 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1700
1701         * Makefile.in (mips_tdep_h): Define.
1702         (mips-tdep.o): Add mips_tdep_h to dependency list.
1703         * mips-tdep.h: New file.
1704         * mips-tdep.c (mips-tdep.h): Include.
1705         (enum mips_abi): Move to mips-tdep.h.
1706         (mips_abi): New function.
1707
1708 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1709
1710         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1711
1712 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1713
1714         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1715         function.
1716         (lookup_symbol_aux_minsyms): New function.
1717
1718 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1719
1720         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1721
1722 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1723
1724         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1725         which is an obsolete macro name.
1726
1727 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1728
1729         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1730         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1731
1732 2002-12-03  H.J. Lu  (hjl@gnu.org)
1733
1734         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1735         (create_breakpoints): Make sure the addr_string field is not
1736         NULL.
1737
1738 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1739
1740         * sparc-nat.c (fetch_inferior_registers)
1741         (store_inferior_registers): Add comment on problem of LWP vs
1742         threads.
1743         
1744         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1745         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1746         (lin_lwp_store_registers): Remove.
1747         (init_lin_lwp_ops): Use fetch_inferior_registers
1748         and store_inferior_registers directly.
1749         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1750         (store_inferior_registers): Likewise.
1751         Fix PR gdb/725.
1752
1753 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1754
1755         * frame.h (get_frame_id): Convert to a function.
1756         (null_frame_id, frame_id_p): Declare.
1757         (frame_id_eq, frame_id_inner): Declare.
1758         (frame_id_build): New function.
1759         * frame.c (get_frame_id): Update.  Use null_frame_id.
1760         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1761         frame_id_inner.
1762         (null_frame_id, frame_id_p): Define.
1763         (frame_id_eq, frame_id_inner): Define.
1764         (frame_id_build): New function.
1765         * varobj.c (varobj_create): Update.
1766         (varobj_update): Update.
1767         * valops.c (value_assign): Update.
1768         (new_root_variable): Update.
1769         * infrun.c (save_inferior_status): Update.
1770         * breakpoint.c (watch_command_1): Update.
1771
1772 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1773
1774         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1775         (SNAP2): Likewise.
1776
1777 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1778
1779         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1780         patch.
1781
1782         * PROBLEMS: Mention PR gdb/725.
1783
1784 2002-12-03  Andreas Schwab  <schwab@suse.de>
1785
1786         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1787
1788 2002-12-02  Adam Fedor  <fedor@gnu.org>
1789             Klee Dienes  <kdienes@apple.com>
1790
1791         * objc-lang.c (objc_printstr): Add width arg to match
1792         printstr prototype.
1793         (compare_selectors): Add 'const' to arg types.
1794         (compare_classes): Likewise.
1795         (find_imps): Cast msym pointer to avoid compiler warning.
1796         (print_object_command): Validate the address before
1797         passing it to the print routine.
1798         (find_objc_msgcall_submethod): Change function argument to
1799         return an int.
1800         * objc-lang.h: Add 'extern' to all function declarations.
1801         (value_nsstring): Add declaration.
1802
1803 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1804
1805         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1806         Fixes a build failure on HP/UX.
1807
1808         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1809         failure on HP/UX. 
1810         (hpread_has_name): Advance declaration to avoid a compilation warning.
1811         (pst_syms_count): Add missing variable type. By change, the compiler
1812         was defaulting to int, which seems a good choice. Fixes a compilation
1813         warning.
1814         (pst_syms_size): Likewise.
1815  
1816 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1817
1818         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1819         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1820         later to set the proper gdbarch methods depending on the osabi.
1821         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1822
1823 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1824
1825         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1826         * osabi.c (gdb_osabi_name): Add strings images for the two new
1827         enum values.
1828         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1829
1830 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1831
1832         * MAINTAINERS (Java): Global maintainers are responible for Java.
1833         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1834         part Java maintainers.
1835
1836 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1837
1838         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1839         Fixes a compilation failure on AiX.
1840
1841 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1842
1843         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1844         why aix-thread.o is not listed.
1845
1846 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1847
1848         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1849         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1850         * gdbarch.h, gdbarch.c: Re-generate.
1851         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1852         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1853         * config/pa/tm-hppa.h, frame.h: Update.
1854         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1855         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1856         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1857         * cris-tdep.c, alpha-tdep.c: Update.
1858         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1859         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1860         (get_prev_frame): Ditto.
1861
1862 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1863
1864         * exec.c (xfer_memory): Replace boolean with int.
1865         * p-exp.y: Use 0 instead of false.
1866         * corelow.c (gdb_check_format): Change return type to int from
1867         boolean.
1868         * utils.c: Don't include <curses.h> or <term.h> first.
1869
1870 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1871
1872         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1873         (m68hc11_register_byte): Remove.
1874         (m68hc11_gdbarch_init): Don't set the above.
1875
1876 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1877
1878         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1879         by calling get_selected_frame.
1880         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1881         set_current_frame, create_new_frame, select_frame and
1882         get_current_frame.
1883         * remote-e7000.c (e7000_start_remote): Ditto.
1884         * remote-mips.c (common_open): Ditto
1885         * remote-rdp.c (remote_rdp_open): Ditto.
1886
1887 2002-11-29  Andreas Schwab  <schwab@suse.de>
1888
1889         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1890         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1891         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1892         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1893         read_memory_unsigned_integer instead of read_memory_integer when
1894         dealing with addresses and instruction opcodes.
1895         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1896         (m68k_linux_frame_saved_pc): Likewise.
1897
1898 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1899
1900         * stack.c (selected_frame, select_frame): Move from here ...
1901         * frame.c (selected_frame, select_frame): ... to here.  Include
1902         "language.h".
1903         * Makefile.in (frame.o): Update dependencies.
1904         * frame.c (get_selected_frame): New function.
1905         * frame.h (get_selected_frame): Declare.
1906         (deprecated_selected_frame): Rename selected_frame.
1907         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1908         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1909         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1910         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1911         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1912         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1913         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1914         * z8k-tdep.c, cli/cli-cmds.c: Update.
1915         
1916 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1917
1918         * frame.h (get_selected_block): Add comments.
1919
1920 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1921
1922         * frame.c (pc_notcurrent): New function.
1923         (find_frame_sal): New function.
1924         * frame.h (find_frame_sal): Declare.
1925         (struct symtab_and_line): Add opaque declaration.
1926         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1927         find_pc_line.
1928         (frame_info): Ditto.
1929         * ada-lang.c (find_printable_frame): Ditto.
1930
1931 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1932
1933         * configure.in: Check that the pthdebug library is recent enough
1934         before enabling thread support on native AiX.
1935         * configure: Regenerate.
1936
1937         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1938         from the list of object files as it is now appended by configure
1939         if thread support is enabled.
1940         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1941         if thread support is enabled.
1942
1943 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1944
1945         * stack.c (get_selected_block): In-line get_current_block.
1946         * frame.h (get_current_block): Delete declaration.
1947         * blockframe.c (get_current_block): Delete function.
1948
1949 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1950
1951         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1952         USE_GENERIC_DUMMY_FRAMES.
1953         * gdbarch.h, gdbarch.c: Regenerate.
1954         * valops.c, frame.c: Update.
1955         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1956         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1957         * config/pa/tm-hppa.h, blockframe.c: Update.
1958         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1959         * m68k-tdep.c, alpha-tdep.c: Ditto.
1960
1961         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1962         * mips-tdep.c: Ditto.
1963
1964 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1965
1966         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1967         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1968         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1969         * gdbarch.c, gdbarch.h: Re-generate.
1970         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1971         (CALL_DUMMY_LOCATION): Delete macro definition.
1972         (PC_IN_CALL_DUMMY): Delete macro definitions.
1973         
1974         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1975         default is already generic_pc_in_call_dummy.
1976         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1977         * v850-tdep.c (v850_gdbarch_init): Ditto.
1978         * sh-tdep.c (sh_gdbarch_init): Ditto.
1979         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1980         * mips-tdep.c (mips_gdbarch_init): Ditto.
1981         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1982         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1983         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1984         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1985         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1986         * avr-tdep.c (avr_gdbarch_init): Ditto.
1987         
1988         * arm-tdep.c (arm_gdbarch_init): Do not set
1989         use_generic_dummy_frames, default is already 1.
1990         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1991         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1992         * v850-tdep.c (v850_gdbarch_init): Ditto.
1993         * sh-tdep.c (sh_gdbarch_init): Ditto.
1994         * s390-tdep.c (s390_gdbarch_init): Ditto.
1995         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1996         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1997         * mips-tdep.c (mips_gdbarch_init): Ditto.
1998         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1999         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2000         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2001         * i386-tdep.c (i386_gdbarch_init): Ditto.
2002         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2003         * frv-tdep.c (frv_gdbarch_init): Ditto.
2004         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2005         * cris-tdep.c (cris_gdbarch_init): Ditto.
2006         * avr-tdep.c (avr_gdbarch_init): Ditto.
2007
2008         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2009         call_dummy_location, default is already AT_ENTRY_POINT.
2010         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2011         * v850-tdep.c (v850_gdbarch_init): Ditto.
2012         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2013         * sh-tdep.c (sh_gdbarch_init): Ditto.
2014         * s390-tdep.c (s390_gdbarch_init): Ditto.
2015         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2016         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2017         * mips-tdep.c (mips_gdbarch_init): Ditto.
2018         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2019         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2020         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2021         * i386-tdep.c (i386_gdbarch_init): Ditto.
2022         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2023         * frv-tdep.c (frv_gdbarch_init): Ditto.
2024         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2025         * cris-tdep.c (cris_gdbarch_init): Ditto.
2026         * avr-tdep.c (avr_gdbarch_init): Ditto.
2027         * arm-tdep.c (arm_gdbarch_init): Ditto.
2028         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2029
2030 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2031
2032         * frame.h: Update comments on set_current_frame, create_new_frame,
2033         flush_cached_frames, reinit_frame_cache, select_frame and
2034         selected_frame.
2035         
2036 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2037
2038         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2039         deprecated pc_in_call_dummy function.
2040         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2041         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2042         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2043         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2044         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2045
2046 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2047
2048         * Makefile.in: Remove Tix dependencies.
2049         * acinclude.m4: Ditto.
2050         * aclocal.m4: Ditto.
2051         * configure.in: Ditto.
2052         * configure: Regenerated.
2053         
2054 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2055
2056         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2057         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2058         * gdbarch.c: Re-generate.
2059         
2060 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2061
2062         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2063         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2064         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2065         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2066         pc_in_call_dummy_at_entry_point.
2067         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2068         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2069         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2070         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2071         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2072         pc_in_call_dummy_on_stack.
2073         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2074         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2075         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2076         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2077         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2078         
2079 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2080
2081         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2082         pc_in_call_dummy_before_text_end
2083         (deprecated_pc_in_call_dummy_after_text_end): Rename
2084         pc_in_call_dummy_after_text_end.
2085         (deprecated_pc_in_call_dummy_on_stack): Rename
2086         pc_in_call_dummy_on_stack.
2087         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2088         pc_in_call_dummy_at_entry_point.
2089         * m68k-tdep.c (m68k_gdbarch_init): Update.
2090         * s390-tdep.c (s390_gdbarch_init): Update.
2091         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2092         * vax-tdep.c (vax_gdbarch_init): Update.
2093         * sparc-tdep.c (sparc_gdbarch_init): Update.
2094         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2095         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2096         * i386-tdep.c (i386_gdbarch_init): Update.
2097         * frv-tdep.c (frv_gdbarch_init): Update.
2098         * cris-tdep.c (cris_gdbarch_init): Update.
2099         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2100         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2101         (deprecated_pc_in_call_dummy_after_text_end)
2102         (deprecated_pc_in_call_dummy_on_stack)
2103         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2104         * alpha-tdep.c (alpha_gdbarch_init): Update.
2105
2106 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2107
2108         * acconfig.h (HAVE_PREAD64): Add.
2109         * configure.in: Check for pread64.
2110         * config.in: Regenerated.
2111         * configure: Regenerated.
2112         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2113         * linux-proc.c (linux_proc_xfer_memory): New function.
2114         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2115
2116 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2117
2118         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2119         pdi's with no name.
2120
2121 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2122
2123         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2124         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2125
2126 2002-11-25  Jim Blandy  <jimb@redhat.com>
2127
2128         * symfile.c (init_objfile_sect_indices): New function.
2129         (default_symfile_offsets): Move the section-index-initializing
2130         stuff into init_objfile_sect_indices, and call that.
2131
2132         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2133         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2134
2135         * symfile.c (syms_from_objfile): Adjust indentation.
2136
2137         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2138         || info_verbose isn't true.
2139
2140 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2141
2142         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2143         default to get_frame_base.
2144         * gdbarch.h, gdbarch.c: Regenerate.
2145         * arch-utils.c (default_frame_address): Delete function.
2146         * arch-utils.h (default_frame_address): Delete declaration
2147
2148 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2149
2150         * varobj.c (find_frame_addr_in_frame_chain):
2151         Use get_frame_base instead of FRAME_FP,
2152         obvious fix.
2153
2154 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2155
2156         * frame.h (FRAME_FP): Delete macro.
2157         (get_frame_base): New function declaration.
2158         * frame.c (get_frame_base): New function.
2159         (get_frame_id): Use ->frame.
2160         (frame_find_by_id): Rewrite to use get_frame_id.
2161         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2162         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2163         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2164         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2165         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2166         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2167         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2168
2169 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2170
2171         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2172
2173 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2174
2175         * frame.c (set_unwind_by_pc): Revert change below, use
2176         PC_IN_CALL_DUMMY.
2177         (get_prev_frame): Ditto.
2178
2179 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2180
2181         * dummy-frame.c (pc_in_dummy_frame): New function.
2182         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2183         (find_dummy_frame): Update comment.
2184         (generic_pop_current_frame): Use get_frame_type.
2185         * dummy-frame.h (pc_in_dummy_frame): Declare.
2186         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2187         (create_new_frame): Use pc_in_dummy_frame.
2188         (get_prev_frame): Use pc_in_dummy_frame.
2189         (frame_saved_regs_register_unwind): Use get_prev_frame.
2190         (deprecated_generic_get_saved_register): Use get_prev_frame.
2191
2192 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2193
2194         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2195         from here ...
2196         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2197         (varobj_create): Note that frame ID should be used.
2198         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2199
2200 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2201
2202         * breakpoint.c: Include "gdb_assert.h".
2203         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2204         not being used.
2205         * Makefile.in (breakpoint.o): Update dependencies.
2206         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2207         deprecated_frame_in_dummy.
2208         * stack.c (print_frame_info_base): Ditto.
2209         (frame_info): Ditto.
2210         (print_frame_info_base): Ditto.  Delete dead code.
2211         
2212 2002-11-23  Andreas Schwab  <schwab@suse.de>
2213
2214         * Makefile.in (m68k_tdep_h): Define.
2215         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2216         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2217         * m68k-tdep.c: Move register number enum ...
2218         * m68k-tdep.h: ... to this new file and rename the constants from
2219         E_* to M68K_*.  All uses changed.
2220         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2221         * abug-rom.c: Include "m68k-tdep.h".  Use
2222         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2223         * cpu32bug-rom.c: Likewise.
2224         * dbug-rom.c: Likewise.
2225         * m68k-tdep.c: Likewise.
2226         * m68klinux-nat.c: Likewise.
2227         * remote-est.c: Likewise.
2228         * rom68k-rom.c: Likewise.
2229         * config/m68k/tm-linux.h: Likewise.
2230
2231 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2232
2233         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2234         dummy frame initialization code.
2235         * mips-tdep.c (mips_gdbarch_init): Ditto.
2236
2237 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2238
2239         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2240         attach will hang.
2241
2242 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2243
2244         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2245         to default_frame_address.
2246         * gdbarch.h, gdbarch.c: Re-generate.
2247
2248         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2249         or frame_locals_address to default_frame_address.
2250         * m68k-tdep.c (m68k_gdbarch_init): Update.
2251         * i386-tdep.c (i386_gdbarch_init): Update.
2252         * frv-tdep.c (frv_gdbarch_init): Update.
2253         * sh-tdep.c (sh_gdbarch_init): Update.
2254         * v850-tdep.c (v850_gdbarch_init): Update.
2255         * sparc-tdep.c (sparc_gdbarch_init): Update.
2256         * mips-tdep.c (mips_gdbarch_init): Update.
2257         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2258         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2259         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2260
2261         * cris-tdep.c (cris_frame_args_address): Delete function.
2262         (cris_frame_locals_address): Delete function.
2263         (cris_gdbarch_init): Do not set frame_args_address or
2264         frame_locals_address.
2265
2266 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2267
2268         * thread-db.c (thread_db_load): Tell the user what's going on
2269         if dlopen fails on libthread_db.
2270
2271 2002-11-23  Andreas Schwab  <schwab@suse.de>
2272
2273         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2274         invariant return values.
2275
2276 2002-11-22  Andreas Schwab  <schwab@suse.de>
2277
2278         * valops.c (value_slice): Move declaration of `offset' to avoid
2279         warning.
2280
2281 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2282
2283         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2284         (struct so_stuff): Add end_addr field.
2285         (register_loaded_dll): Calculate and store end address of loaded dll.
2286         (solib_address): New function.
2287         (child_solib_loaded_library_pathname): Pass carefully constructed
2288         section info to safe_symbol_file_add rather than ignoring it.
2289         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2290         DLL is loaded.
2291         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2292         (child_create_inferior): Fix a compiler warning.
2293         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2294         (solib_address): Declare new function.
2295
2296 2002-11-22  Andreas Schwab  <schwab@suse.de>
2297
2298         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2299         and FPS registers.
2300
2301 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2302
2303         * maint.c (_initialize_maint_cmds): Fix typo.  From
2304         Francesco Potorti` <pot@gnu.org>.
2305
2306 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2307
2308         * mips-tdep.c (mips_dump_tdep): Delete references to
2309         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2310         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2311         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2312         * printcmd.c (build_address_symbolic): Delete calls to
2313         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2314         (address_info): Ditto.
2315         Fix PR gdb/773.
2316         
2317 2002-11-19  Klee Dienes  <kdienes@apple.com>
2318             Adam Fedor  <fedor@gnu.org>
2319
2320         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2321         the ability to explicitly specify the quote characters and word
2322         break characters; if NULL is specified for either, use the old
2323         behavior of using the characters used by the completer.
2324         (skip_chars): New function.  Convenience wrapper around
2325         skip_quoted_chars to provide the original skip_chars behavior.
2326         * completer.h (skip_quoted_chars): Add prototype.
2327
2328 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2329
2330         Problems reported by Paul Eggert.
2331         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2332
2333 2002-11-19  Andreas Schwab  <schwab@suse.de>
2334
2335         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2336         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2337         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2338         (m68k_linux_frame_saved_pc): Move to ...
2339         * m68klinux-tdep.c: ... here.  New file.
2340         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2341         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2342
2343 2002-11-19  Adam Fedor  <fedor@gnu.org>
2344
2345         * objc-exp.y: Revert to old skip_quoted usage.
2346
2347 2002-11-19  Adam Fedor  <fedor@gnu.org>
2348
2349         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2350         (objc_lang_h): Define.
2351         (YYFILES): Add objc-exp.tab.c.
2352         (local-maintainer-clean): Remove objc-exp.tab.c.
2353         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2354         
2355 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2356
2357         * p-exp.y (typecast rule): Add automatic dereference of
2358         pascal classes if needed.
2359         (THIS): Set current_type.
2360         Automatically dereference pascal classes. 
2361         (typebase rule): Add ^typebase recognition.
2362
2363 2002-11-18  Adam Fedor  <fedor@gnu.org>
2364
2365         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2366         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2367         (op_name): Handle OP_OBJC_SELF.
2368         * Makefile.in (expprint.o): Add additional depends.
2369
2370 2002-11-18  Adam Fedor  <fedor@gnu.org>
2371
2372         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2373         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2374         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2375         * objc-exp.y: Likewise. 
2376
2377 2002-11-18  Adam Fedor  <fedor@gnu.org>
2378
2379         * gdb/parser-defs.h: (struct objc_class_str): New structure
2380         for parsing ObjC classes.
2381
2382 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2383
2384         * stack.c (frame_relative_level): Copy function from here ...
2385         * frame.c (frame_relative_level): ...to here.
2386
2387 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2388
2389         * frame.h (enum frame_type): Define.
2390         (get_frame_type): Declare.
2391         (struct frame_info): Add field `type'.  Delete field
2392         signal_handler_caller.
2393         (deprecated_set_frame_signal_handler_caller): Declare.
2394         * frame.c (get_frame_type): New function.
2395         (deprecated_set_frame_type): New function.
2396         (create_new_frame): Set the frame's type.
2397         (get_prev_frame): Similar.
2398         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2399         * s390-tdep.c: Ditto.
2400         * m68klinux-nat.c: Ditto.
2401         * ns32k-tdep.c: Ditto.
2402         * x86-64-linux-tdep.c: Ditto.
2403         * vax-tdep.c: Ditto.
2404         * rs6000-tdep.c: Ditto.
2405         * ppc-linux-tdep.c: Ditto.
2406         * i386-interix-tdep.c: Ditto.
2407         * mips-tdep.c: Ditto.
2408         * m68k-tdep.c: Ditto.
2409         * hppa-tdep.c: Ditto.
2410         * ia64-tdep.c: Ditto.
2411         * cris-tdep.c: Ditto.
2412         * arm-tdep.c: Ditto.
2413         * alpha-tdep.c: Ditto.
2414         * i386-tdep.c: Ditto.
2415         * stack.c: Ditto.
2416         * ada-lang.c: Ditto.
2417         * blockframe.c: Update.
2418         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2419         deprecated_set_frame_type instead of signal_handler_caller.
2420         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2421         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2422         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2423
2424 2002-11-18   Klee Dienes  <kdienes@apple.com>
2425
2426         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2427
2428 2002-11-18  Klee Dienes  <kdienes@apple.com>
2429
2430         * buildsym.c (pop_context): Add comment.
2431         
2432 2002-11-18  Klee Dienes  <kdienes@apple.com>
2433
2434         * buildsym.h (pop_context): Convert to function, defined in
2435         buildsym.c.
2436         * buildsym.c: Include gdb_assert.h.
2437         (pop_context): Implement as C function.  Add check for stack
2438         underflow.
2439         * dbxread.c (process_one_symbol): Complain and stop processing
2440         that symbol if we are already at the top of the context stack for
2441         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2442         when processing N_RBRAC.
2443
2444 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2445
2446         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2447         define.
2448         (struct target_waitstatus): Add opaque definition.
2449         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2450         * exec.c (init_exec_ops): Likewise.
2451         * fork-child.c (clone_and_follow_inferior): Remove.
2452         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2453         * inferior.h (clone_and_follow_inferior): Remove prototype.
2454         * infrun.c (follow_fork_mode_both): Remove.
2455         (follow_fork_mode_kind_names): Remove commented out "both".
2456         (follow_inferior_fork): Remove follow_fork_mode_both support.
2457         * inftarg.c (child_clone_and_follow_inferior): Remove.
2458         (child_post_follow_inferior_by_clone): Remove.
2459         (init_child_ops): Don't set to_clone_and_follow_inferior
2460         or to_post_follow_inferior_by_clone.
2461         * target.c (default_clone_and_follow_inferior): Remove.
2462         (cleanup_target): Don't set to_clone_and_follow_inferior
2463         or to_post_follow_inferior_by_clone.
2464         (find_default_clone_and_follow_inferior): Remove.
2465         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2466         (debug_to_clone_and_follow_inferior): Remove.
2467         (debug_to_post_follow_inferior_by_clone): Remove.
2468         (setup_target_debug): Don't set to_clone_and_follow_inferior
2469         or to_post_follow_inferior_by_clone.
2470         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2471         and to_post_follow_inferior_by_clone.
2472         (child_clone_and_follow_inferior): Remove prototype.
2473         (child_post_follow_inferior_by_clone): Remove prototype.
2474         (target_clone_and_follow_inferior): Remove macro.
2475         (target_post_follow_inferior_by_clone): Remove macro.
2476         (find_default_clone_and_follow_inferior): Remove prototype.
2477
2478 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2479
2480         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2481         inferior_has_vforked, and inferior_has_execd instead of
2482         target_has_forked, target_has_vforked, and target_has_execd.
2483         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2484         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2485         (CHILD_WAIT): Define.
2486         (child_wait): Add prototype.
2487         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2488         Add prototype.
2489         (hpux_has_vforked): Likewise, from child_has_vforked.
2490         (hpux_has_execd): Likewise, from child_has_execd.
2491         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2492         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2493         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2494         and hpux_has_syscall_event instead of the target hooks.
2495         * infrun.c (inferior_has_forked, inferior_has_vforked)
2496         (inferior_has_execd): New functions.
2497         * inftarg.c (not_same_real_pid): Remove.
2498         (child_wait): Remove references to not_same_real_pid,
2499         target_has_forked, target_has_vforked, target_has_execd,
2500         and target_has_syscall_event.
2501         (child_has_forked, child_has_vforked, child_has_execd)
2502         (child_has_syscall_event): Remove.
2503         (init_child_ops): Remove references to child_has_forked,
2504         child_has_vforked, child_has_execd, and child_has_syscall_event.
2505         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2506         (hpux_has_vforked): Likewise, from child_has_vforked.
2507         (hpux_has_execd): Likewise, from child_has_execd.
2508         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2509         * target.c (cleanup_target): Remove references to
2510         to_has_forked, to_has_vforked, to_has_execd, and
2511         to_has_syscall_event.
2512         (update_current_target): Likewise.
2513         (setup_target_debug): Likewise.
2514         (debug_to_has_forked): Remove.
2515         (debug_to_has_vforked): Remove.
2516         (debug_to_has_execd): Remove.
2517         (debug_to_has_syscall_event): Remove.
2518         * target.h (struct target_ops): Remove to_has_forked.
2519         to_has_vforked, to_has_execd, and to_has_syscall_event.
2520         (child_has_forked, child_has_vforked, child_has_execd)
2521         (child_has_syscall_event): Remove prototypes.
2522         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2523         prototypes.
2524         (target_has_forked, target_has_vforked, target_has_execd)
2525         (target_has_syscall_event): Remove macros.
2526
2527 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2528
2529         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2530         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2531         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2532         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2533         * target.c (cleanup_target): Remove reference to
2534         to_can_follow_vfork_prior_to_exec.
2535         (update_current_target): Likewise.
2536         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2537         (setup_target_debug): Remove reference to
2538         to_can_follow_vfork_prior_to_exec.
2539         * target.h (struct target_ops): Remove
2540         to_can_follow_vfork_prior_to_exec.
2541         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2542         (target_can_follow_vfork_prior_to_exec): Remove definition.
2543         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2544         define.
2545         * infrun.c (follow_vfork_when_exec): Remove.
2546         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2547         (follow_exec): Likewise.
2548         (handle_inferior_event): Likewise.
2549         (keep_going): Likewise.
2550
2551 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2552
2553         * frame.c (generic_unwind_get_saved_register): Make static.
2554         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2555         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2556         defaults to generic_unwind_get_saved_register.
2557         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2558         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2559         * frv-tdep.c (frv_gdbarch_init): Ditto.
2560         * i386-tdep.c (i386_gdbarch_init): Ditto.
2561         * s390-tdep.c (s390_gdbarch_init): Ditto.
2562         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2563         * v850-tdep.c (v850_gdbarch_init): Ditto.
2564         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2565         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2566         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2567
2568 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2569
2570         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2571         i386-tdep.c.
2572
2573 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2574
2575         * frame.h (sigtramp_saved_pc): Delete declaration.
2576         * blockframe.c (sigtramp_saved_pc): Delete function.
2577         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2578         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2579         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2580         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2581
2582 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2583
2584         * frame.c (frame_pc_unwind): New function.
2585         (frame_saved_regs_pc_unwind): New function.
2586         (frame_register_unwind): Pass unwind_cache instead of
2587         register_unwind_cache.
2588         (set_unwind_by_pc): Add unwind_pc parameter, set.
2589         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2590         (get_prev_frame): Ditto.
2591         * frame.h (frame_pc_unwind_ftype): Declare.
2592         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2593         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2594         (frame_pc_unwind): Declare.
2595         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2596         (struct dummy_frame): Add comment mentioning that values are for
2597         previous frame.
2598         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2599         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2600         (generic_file_frame_chain_valid): Ditto.
2601         * stack.c (frame_info): Ditto.
2602
2603 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2604
2605         * linespec.c (locate_first_half): New function.
2606         (decode_line_1): Move code into locate_first_half.
2607
2608 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2609
2610         * complaints.h: Add comment explaining how to eliminate a
2611         deprecated_complain call.
2612         * complaints.h: Fix spelling errors.
2613
2614 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2615
2616         * printcmd.c: Remove #include "disasm.h".
2617
2618 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2619
2620         * frame.h: Move the most relevant interface functions to the start
2621         of the file.
2622
2623 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2624
2625         * regcache.h (deprecated_registers): Rename registers.
2626         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2627         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2628         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2629         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2630         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2631         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2632         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2633         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2634         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2635         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2636         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2637         * v850ice.c: Update.
2638
2639 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2640
2641         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2642         NULL buffer.
2643
2644 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2645
2646         * regcache.h (deprecated_read_register_bytes): Rename
2647         read_register_bytes.
2648         (deprecated_write_register_bytes): Rename write_register_bytes.
2649         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2650         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2651         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2652         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2653         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2654         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2655         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2656         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2657         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2658         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2659         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2660         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2661         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2662         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2663
2664 2002-11-13  Jim Blandy  <jimb@redhat.com>
2665
2666         * findvar.c (read_var_value): Doc fix.
2667
2668 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2669
2670         * regcache.c (struct regcache): Replace passthough_p with
2671         readonly_p.
2672         (regcache_xmalloc): Initialize readonly_p.
2673         (build_regcache): Initialize readonly_p.
2674         (regcache_save): New function.
2675         (regcache_restore): New function.
2676         (regcache_cpy): Re-implement using regcache_save and
2677         regcache_restore.
2678         (regcache_raw_read): Update.
2679         (regcache_cooked_read): When a read-only cache, checked for cached
2680         pseudo register values.
2681         (regcache_raw_write): Assert that the cache is not read-only.
2682         Remove code handling a non-passthrough cache.
2683         * regcache.h (regcache_save): Declare.
2684         (regcache_restore): Declare.
2685
2686 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2687
2688         * regcache.c (struct regcache_descr): Add fields
2689         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2690         (init_legacy_regcache_descr): Compute the size of a cooked
2691         register cache and then assign that to sizeof_raw_registers.  Set
2692         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2693         (init_legacy_regcache_descr): Ditto.
2694
2695 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2696
2697         * regcache.c (register_buffer): Move to near start of file, update
2698         description.
2699         (regcache_raw_read): Use.
2700         (regcache_raw_write): Use.
2701         (struct regcache): Rename raw_registers to registers and
2702         raw_register_valid_p to register_valid_p.
2703         (regcache_xmalloc): Update.
2704         (regcache_xfree): Update.
2705         (register_buffer): Update.
2706         (regcache_cpy): Update.
2707         (regcache_cpy_no_passthrough): Update.
2708         (regcache_valid_p): Update.
2709         (deprecated_grub_regcache_for_registers): Update.
2710         (deprecated_grub_regcache_for_register_valid): Update.
2711         (set_register_cached): Update.
2712         (regcache_raw_write): Update.
2713
2714 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2715
2716         * p-exp.y (name_not_typename): Use copy_name to
2717         set current_type variable for fields of THIS.
2718
2719 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2720
2721         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2722         * monitor.c (init_base_monitor_ops): Likewise.
2723         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2724         * remote-array.c (init_array_ops): Likewise.
2725         * remote-e7000.c (init_e7000_ops): Likewise.
2726         * remote-es.c (init_es1800_ops): Likewise.
2727         (init_es1800_child_ops): Likewise.
2728         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2729         * remote-sim.c (init_gdbsim_ops): Likewise.
2730         * remote-st.c (init_st2000_ops): Likewise.
2731         * sol-thread.c (init_sol_core_ops): Likewise.
2732         (init_sol_thread_ops): Likewise.
2733         * v850ice.c (init_850ice_ops): Likewise.
2734         * win32-nat.c (init_child_ops): Likewise.
2735         * wince.c (init_child_ops): Likewise.
2736
2737 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2738
2739         * utils.c (gdb_realpath): Make rp a constant pointer.
2740
2741 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2742
2743         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2744         a constant buffer; cannonicalize_file_name(); realpath() with a
2745         pathconf() defined buffer, xstrdup().
2746
2747 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2748
2749         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2750         to hang2.C; hang3.c to hang3.C.
2751
2752 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2753
2754         * findvar.c (read_var_value): Reenable TLS code.
2755
2756 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2757             Jim Blandy  <jimb@redhat.com>
2758         
2759         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2760         * target.c (update_current_target): Add
2761         to_get_thread_local_address.
2762         * target.h (to_get_thread_local_address): Export.
2763         (target_get_thread_local_address): Define.
2764         (target_get_thread_local_address_p): Define.
2765         * thread-db.c: Include solib-svr4.h.
2766         (td_thr_tls_get_addr_p): Define.
2767         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2768         (thread_db_get_thread_local_address): New function.
2769         (init_thread_db_ops): Initialize to_get_thread_local_address.
2770         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2771         * configure: Regenerate.
2772         * config.in: Regenerate.
2773
2774 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2775
2776         * linespec.c (set_flags): New function.
2777         (decode_line_1): Move code into set_flags.
2778
2779 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2780
2781         * linespec.c (decode_line_1): Move chunks of code to separate
2782         functions.
2783         (initialize_defaults): New function.
2784         (decode_indirect): New function.
2785
2786 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2787
2788         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2789         instead of void_code_ptr.
2790         (sigtramp_saved_pc): Ditto.
2791
2792         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2793         i386_fp_regnum_p.
2794
2795 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2796
2797         * gdbtypes.h (struct main_type): Move artificial flag out of
2798         loc.  New member of ``struct field'' named static_kind.  Reduce
2799         overloaded meaning of bitsize.
2800         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2801         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2802         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2803
2804         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2805         new fields.
2806         (template_to_fixed_record_type, template_to_static_fixed_type)
2807         (to_record_with_fixed_variant_part): Likewise.
2808         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2809         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2810         * dwarfread.c (struct_type, enum_type): Likewise.
2811         * hpread.c (hpread_read_enum_type)
2812         (hpread_read_function_type, hpread_read_doc_function_type)
2813         (hpread_read_struct_type): Likewise.
2814         * mdebugread.c (parse_symbol): Likewise.
2815
2816 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2817
2818         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2819         * stack.c (print_frame_info_base): Update.
2820         (print_frame_info_base, frame_info): Update.
2821         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2822         (sparc_frame_saved_pc): Update.
2823         * ada-lang.c (find_printable_frame): Update.
2824         * breakpoint.c (deprecated_frame_in_dummy): Update.
2825         
2826 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2827
2828         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2829         defined.
2830         (regmap): Extend to cover all registers.
2831         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2832         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2833         definitions.
2834         (fetch_register, sore_register): Simplify.
2835         (old_fetch_inferior_registers, old_store_inferior_registers):
2836         Remove functions.
2837         (cannot_fetch_register, cannot_store_register): Change
2838         implementation to use regmap array to decide which registers
2839         cannot be fetched/stored.  This removes $orig_eax from the
2840         registers that cannot be fetched/stored.
2841         (fetch_inferior_registers): Call fetch_register directly instead
2842         of calling old_fetch_inferior_registers.
2843         (store_inferior_registers): Call store_register directly instead
2844         of calling old_store_inferior_registers.
2845         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2846         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2847         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2848
2849 2002-11-09  Klee Dienes  <kdienes@apple.com>
2850
2851         * i387-tdep.c (i387_supply_register): When called with NULL as a
2852         buffer, mark the register as not provided (to mirror the behavior
2853         of supply_register).
2854         (i387_supply_fxsave): Ditto.
2855         (i387_supply_fsave): Ditto (inherits the behavior from
2856         i387_supply_register).
2857
2858 2002-11-09  Klee Dienes  <kdienes@apple.com>
2859
2860         * blockframe.c (sigtramp_saved_pc): Use
2861         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2862         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2863         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2864         
2865 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2866
2867         * frame.c (get_prev_frame): Test prev_p to identify a previously
2868         unwound frame.  Initialize prev_p.
2869         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2870         comment.
2871
2872 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2873
2874         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2875         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2876         more comments.  Zap dead code.
2877
2878 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2879
2880         * infcmd.c (print_vector_info, print_float_info): Move code that
2881         checks whether the target has any registers and whether there is a
2882         selected frame up, such that it is also used if a target provides
2883         multi-arch definitions of these functions.
2884
2885 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2886
2887         * Makefile.in (DESTDIR): Define.
2888         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2889         prefix.
2890
2891         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2892         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2893
2894 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2895
2896         * i386-linux-tdep.c: Include "reggroups.h".
2897         (i386_linux_register_reggroup_p): New function.
2898         (i386_linux_init_abi): Set register_reggroup_p to
2899         i386_linux_register_reggroup_p.
2900         * i386-tdep.h (i386_register_reggroup_p): Declare.
2901         * i386-tdep.c: Include "reggroups.h".
2902         (i386_init_reggroups): New function.
2903         (i386_add_reggroups): New function.
2904         (i386_register_reggroup_p): New function.
2905         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2906         (_initialize_i386_tdep): Call i386_init_reggroups.
2907         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2908         specific reggroups.
2909
2910 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2911
2912         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2913         request that's available in *BSD.
2914
2915         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2916
2917         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2918         FDOFF_REGNUM.
2919
2920 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2921
2922         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2923         * dummy-frame.c (find_dummy_frame): Rename
2924         generic_find_dummy_frame, make static.  Return the dummy frame
2925         instead of the regcache.
2926         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2927         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2928         (dummy_frame_register_unwind): Rename
2929         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2930         * dummy-frame.h (dummy_frame_register_unwind): Rename
2931         generic_call_dummy_register_unwind.
2932
2933 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2934
2935         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2936         except the inclusion of "i386/tm-i386.h", to...
2937         * config/i386/nm-i386v42mp.h: ...here.
2938         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2939
2940 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2941
2942         * Makefile.in (frame.o): Update dependencies.
2943         * blockframe.c (current_frame, frame_obstack_alloc)
2944         (frame_saved_regs_zalloc, get_current_frame)
2945         (set_current_frame, create_new_frame)
2946         (set_unwind_by_pc, get_next_frame)
2947         (flush_cached_frames, reinit_frame_cache)
2948         (frame_saved_regs_register_unwind)
2949         (deprecated_generic_get_saved_register)
2950         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2951         (_initialize_blockframe): Move frame code from here...
2952         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2953         "annotate.h" and "dummy-frame.h".
2954         (_initialize_frame): New function.
2955
2956 2002-11-08  Jim Blandy  <jimb@redhat.com>
2957
2958         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2959         when we finish a function a context.
2960         * buildsym.h (outermost_context_p): New macro.
2961         (Bug analyzed by David Edelsohn.)
2962
2963 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2964
2965         * blockframe.c: Include "dummy-frame.h".
2966         (struct dummy_frame, dummy_frame_stack)
2967         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2968         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2969         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2970         (generic_save_call_dummy_addr, generic_pop_current_frame)
2971         (generic_pop_dummy_frame, generic_fix_call_dummy)
2972         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2973         dummy frame code from here...
2974         * dummy-frame.c: ...to here.  New file.
2975         * dummy-frame.h: New file.
2976         (generic_call_dummy_register_unwind): Declare.
2977         (generic_find_dummy_frame): Declare.
2978         * Makefile.in (SFILES): Add dummy-frame.c.
2979         (dummy-frame.o): Specify dependencies.
2980         (dummy_frame_h): Define.
2981         (COMMON_OBS): Add dummy-frame.o.
2982         (blockframe.o): Update dependencies.
2983
2984 2002-11-08  Jim Blandy  <jimb@redhat.com>
2985
2986         * dwarf2read.c (read_func_scope): Restore local_symbols and
2987         param_symbols after we finish the function context.  (Based on a
2988         patch from David Edelsohn.)
2989
2990 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2991
2992         * linespec.c (symbol_found): New function.
2993         (minsym_found): New function.
2994         (decode_line_1): Separate out some code into separate functions.
2995
2996 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2997
2998         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2999         the benefit of the interix target.
3000         * i386-tdep.h (i386_frameless_signal_p): Declare.
3001
3002 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
3003
3004         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3005         declaration that snuck in from change below.
3006
3007 2002-11-06  Andrew Cagney  <cagney@redhat.com>
3008
3009         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
3010         all callers.
3011         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
3012         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
3013         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
3014         (i386_mxcsr_regnum_p): new function.  Use instead of
3015         MXCSR_REGNUM_P.
3016         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3017         (i386_sse_regnum_p): Declare.
3018         (i386_mxcsr_regnum_p): Declare.
3019         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3020         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3021         (IS_FP_REGNUM): Update definition.
3022         (IS_FPU_CTRL_REGNUM): Update definition..
3023         (IS_SSE_REGNUM): Update definition..
3024         * i386v-nat.c (register_u_addr): Update.
3025         * go32-nat.c (fetch_register): Update.
3026         (store_register): Update.
3027
3028 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3029
3030         Preparation work to convert the hppa targets to multiarch partial.
3031
3032         * hppa-tdep.c: Add new functions replacing macro bodies from
3033         config/pa/tm-hppa.h. These function will be used to initialize
3034         the gdbarch structure. Import some comments from tm-hppa.h,
3035         and place them where appropriate, to avoid loosing them when
3036         we cleanup this file.
3037         (hppa_reg_struct_has_addr): New function.
3038         (hppa_inner_than): New function.
3039         (hppa_stack_align): New function.
3040         (hppa_pc_requires_run_before_use): New function.
3041         (hppa_instruction_nullified): New function.
3042         (hppa_register_byte): New function.
3043         (hppa_register_virtual_type): New function.
3044         (hppa_store_struct_return): New function.
3045         (hppa_cannot_store_register): New function.
3046         (hppa_frame_args_address): New function.
3047         (hppa_frame_locals_address): New function.
3048         (hppa_smash_text_address): New function.
3049         (hppa_coerce_float_to_double): New function. Requires the inclusion
3050         of "language.h".
3051
3052         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3053
3054         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3055         gdbarch-eligible macro to a call to the new associated function
3056         created in hppa-tdep.c.
3057         (INNER_THAN): Likewise.
3058         (STACK_ALIGN): Likewise.
3059         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3060         (INSTRUCTION_NULLIFIED): Likewise.
3061         (REGISTER_BYTE): Likewise.
3062         (REGISTER_VIRTUAL_TYPE): Likewise.
3063         (STORE_STRUCT_RETURN): Likewise.
3064         (CANNOT_STORE_REGISTER): Likewise.
3065         (FRAME_ARGS_ADDRESS): Likewise.
3066         (FRAME_LOCALS_ADDRESS): Likewise.
3067         (SMASH_TEXT_ADDRESS): Likewise.
3068         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3069         (ABOUT_TO_RETURN): Delete, as no longer used.
3070
3071 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3072
3073         * printcmd.c (disassemble_command): Remove obsolete function.
3074         (_initialize_printcmd): Do not create disassemble command here.
3075         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3076         disassemble command.
3077         (init_cli_cmds): Create disassemble command here instead.
3078
3079 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3080
3081         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3082
3083 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3084
3085         * regcache.h (regcache_cooked_read_using_offset_hack)
3086         (regcache_cooked_write_using_offset_hack): Delete declarations.
3087         (register_changed): Delete declaration.
3088         * regcache.c (regcache_cooked_read_using_offset_hack)
3089         (regcache_cooked_write_using_offset_hack): Delete functions.
3090         (cooked_xfer_using_offset_hack): Delete function.
3091         (register_changed): Delete function.
3092
3093 2002-11-07  Jim Blandy  <jimb@redhat.com>
3094
3095         * macroscope.c: #include "complaints.h".
3096         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3097         but not in the macro table.
3098         * Makefile.in (macroscope.o): Record dependency.
3099
3100 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3101
3102         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3103
3104 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3105
3106         * regcache.c (deprecated_registers_fetched): Update.
3107         * regcache.h (deprecated_registers_fetched): Rename
3108         registers_fetched.
3109         * remote-vxsparc.c (vx_read_register): Update.
3110         * remote-vxmips.c (vx_read_register): Update.
3111         * remote-vx68.c (vx_read_register): Update.
3112         * irix5-nat.c (fetch_core_registers): Update.
3113         * mipsm3-nat.c (fetch_inferior_registers): Update.
3114         * sun3-nat.c (fetch_inferior_registers): Update.
3115         * symm-nat.c (fetch_inferior_registers): Update.
3116         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3117         (fetch_core_registers): Update.
3118         (fetch_kcore_registers): Update.
3119         * mips-nat.c (fetch_inferior_registers): Update.
3120         * corelow.c (get_core_registers): Update.
3121         * a68v-nat.c (fetch_inferior_registers): Update.
3122
3123 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3124
3125         Put in place the framework necessary for multiarching the hppa targets.
3126         * hppa-tdep.c (hppa_gdbarch_init): New function.
3127         (hppa_dump_tdep): New function.
3128         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3129         tdep structure dumper.
3130         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3131         until the multi-arching conversion has partially been completed.
3132
3133 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3134
3135         * valops.c (value_assign): Merge lval_register case into
3136         lval_reg_frame_relative.  Use frame_register and
3137         regcache_cooked_write instead of get_saved_register and
3138         write_register_bytes.  After flushing the register cache, try to
3139         re-select the selected frame.
3140
3141 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3142
3143         * regcache.h (deprecated_register_valid): Rename register_valid.
3144         * regcache.c: Update.
3145         * ia64-aix-nat.c: Update.
3146         * i386gnu-nat.c: Update.
3147         * alpha-nat.c: Update.
3148         * sparc-nat.c: Update.
3149         * lynx-nat.c: Update.
3150         * remote-mips.c: Update.
3151
3152 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3153
3154         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3155         to end of file, to be more consistent with the pratice followed
3156         by other targets.
3157
3158 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3159
3160         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3161         (print_float_info): Print registers in float_reggroup.
3162         (print_vector_info): Print registers in vector_reggroup.
3163         (default_print_registers_info): When all, print registers in
3164         all_reggroup.  Otherwize, print registers in general_reggroup.
3165         (registers_info): Rewrite.  Add support for register groups.
3166         Eliminate a goto.
3167
3168 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3169
3170         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3171         ages.
3172         (symtab_symbol_info): Remove eons old ifdeffed out code.
3173         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3174         command.
3175
3176 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3177
3178         * c-exp.y: Add missing semi-colons.
3179         * f-exp.y: Add missing semi-colons.
3180         * m2-exp.y: Add missing semi-colons.
3181         * p-exp.y: Add missing semi-colons.
3182         Add empty action to start rule to avoid a type clash error when
3183         building with bison >= 1.50.
3184
3185 2002-11-06  Jim Blandy  <jimb@redhat.com>
3186
3187         * macrotab.h (struct macro_source_file): Doc fix.
3188
3189 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3190
3191         * varobj.c (child_exists, cplus_number_of_children): Change
3192         STREQ macro references to strcmp.
3193         (cplus_name_of_child): Change code to handle the fact that
3194         fields are not necessarily contiguous with regards to their 
3195         access control. This is a fix for PR gdb/792.
3196
3197 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3198
3199         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3200         * gdbarch.h, gdbarch.c: Regnerate.
3201         * frame.h (frame_register): Declare.
3202         * frame.c (frame_register): New function.
3203         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3204         GET_SAVED_REGISTER, otherwize call
3205         generic_unwind_get_saved_register.
3206         (frame_register_read): Use frame_register instead of
3207         get_saved_register.
3208
3209 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3210         
3211         From Jim Ingham  <jingham@apple.com>:
3212         * event-top.c (gdb_disable_readline): New function.
3213         (_initialize_event_loop): Move comment.
3214
3215 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3216
3217         * event-loop.c (start_event_loop): Add comment.
3218         Update copyright.
3219
3220 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3221
3222         * infcmd.c (default_print_registers_info): Do not call
3223         PRINT_REGISTER_HOOK.
3224
3225 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3226
3227         * sparc-tdep.c (sparc_print_register_hook): Make static.
3228         (sparc_print_registers_info): New function.
3229         (sparc_do_registers_info): New function.
3230         (sparclet_print_registers_info): New function.
3231         (sparclet_do_registers_info): New function.
3232         (do_sparc_print_registers_info): New function.
3233         (sparc_print_registers): New static function, clone of infcmd.c's
3234         default_print_registers_info.
3235         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3236         (sparclet_do_registers_info): Declare.
3237         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3238         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3239         Re-define.
3240         (sparc_do_registers_info): Declare.
3241         (PRINT_REGISTER_HOOK): Delete macro.
3242         (sparc_print_register_hook): Delete declaration.
3243
3244 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3245
3246         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3247         functions.
3248         (lookup_symbol_aux_local): New function.
3249         (lookup_symbol_aux_symtabs): New function.
3250         (lookup_symbol_aux_psymtabs): New function.
3251
3252 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3253
3254         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3255         previous values of 'objfile' and 'block'.
3256
3257 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3258
3259         * values.c (value_change_enclosing_type): Set 
3260         enclosing_type field correctly also for the case where 
3261         more memory needs to be allocated.
3262
3263 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3264
3265         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3266         of puts_filtered.
3267
3268         * i387-tdep.c (i387_print_float_info): Replace calls to
3269         register_read and deprecated_read_register_gen with calls to
3270         frame_register_read, and make the necessary adjustments to the
3271         surrounding code.
3272
3273 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3274
3275         * gdbarch.sh (register_reggroup_p): Allow default value.
3276         * gdbarch.h, gdbarch.c: Regenerate.
3277
3278 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3279
3280         * regcache.h: Add coment indicating replacements for deprecated
3281         functions.
3282
3283 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3284
3285         * reggroups.h, reggroups.c: New files.
3286         * regcache.c: Include "reggroups.h".
3287         (enum regcache_dump_what): Add `regcache_dump_groups'.
3288         (regcache_dump): Contract size of the "Type" column.  When
3289         specified, dump the register's groups.
3290         (maintenance_print_register_groups): New function.
3291         (_initialize_regcache): Add command `maint print register-groups'.
3292         * Makefile.in (COMMON_OBS): Add reggroups.o
3293         (SFILES): Add reggroups.c.
3294         (reggroups_h): Define.
3295         (regcache.o, gdbarch.o): Update dependencies.
3296         (reggroups.o): Specify dependencies.
3297         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3298         Add opaque declaration for `struct reggroup' in generated .h file.
3299         Include "reggroups.h" in generated .c file.
3300         gdbarch.h, gdbarch.c: Re-generate.
3301
3302 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3303
3304         * regcache.h (deprecated_read_register_gen): Rename
3305         read_register_gen.
3306         (deprecated_write_register_gen): Rename write_register_gen.
3307         * i387-tdep.c: Update.
3308         * x86-64-linux-nat.c: Update
3309         * wince.c: Update.
3310         * thread-db.c: Update.
3311         * win32-nat.c: Update.
3312         * mips-tdep.c: Update.
3313         * d10v-tdep.c: Update.
3314         * cris-tdep.c: Update.
3315         * remote-sim.c: Update.
3316         * remote-rdi.c: Update.
3317         * remote-rdp.c: Update.
3318         * frame.c: Update.
3319         * target.c: Update.
3320         * blockframe.c: Update.
3321         * x86-64-tdep.c: Update.
3322         * xstormy16-tdep.c: Update.
3323         * sh-tdep.c: Update.
3324         * s390-tdep.c: Update.
3325         * rs6000-tdep.c: Update.
3326         * sparc-tdep.c: Update.
3327         * i386-tdep.c: Update.
3328         * dwarf2cfi.c: Update.
3329         * regcache.c: Update.
3330
3331 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3332
3333         New interix-specific files:
3334         * config/i386/nm-interix.h: New file.
3335         * config/i386/interix.mh: New file.
3336         * config/i386/interix.mt: New file.
3337         * i386-interix-nat.c: New file.
3338         * i386-interix-tdep.c: New file.
3339
3340 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3341
3342         * frame.h (deprecated_generic_get_saved_register): Rename
3343         generic_get_saved_register.
3344         * blockframe.c (deprecated_generic_get_saved_register): Update.
3345         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3346         (xstormy16_frame_saved_register): Update.
3347         * sh-tdep.c (sh_gdbarch_init): Update.
3348         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3349         * ia64-tdep.c (ia64_get_saved_register): Update.
3350         * cris-tdep.c (cris_gdbarch_init): Update.
3351         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3352         * arm-tdep.c (arm_gdbarch_init): Update.
3353
3354 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3355
3356         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3357
3358 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3359
3360         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3361         trampolines in sigaction.
3362
3363 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3364
3365         * h8300-tdep.c: Include "gdb_assert.h".
3366         (h8300_print_register): Add gdbarch, file and frame parameters.
3367         Use frame_read_unsigned_register to read the register's value.
3368         Use fprintf_filtered to display output.
3369         (h8300_print_registers_info): Replace h8300_do_registers_info.
3370         (h8300_gdbarch_init): Set print_registers_info.
3371
3372 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3373
3374         * frame.c (frame_read_unsigned_register): New function.
3375         (frame_read_signed_register): New function.
3376         * frame.h (frame_read_unsigned_register): Declare.
3377         (frame_read_signed_register): Declare.
3378
3379 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3380
3381         * h8500-tdep.c (h8500_print_registers_info): New static function,
3382         clone of infcmd.c's default_print_registers_info.
3383         (h8500_do_registers_info): New funtion.
3384         (h8500_print_register_hook): Rename print_register_hook, make
3385         static.
3386
3387         * config/h8500/tm-h8500.h: Update copyright.
3388         (DEPRECATED_DO_REGISTERS_INFO): Define.
3389         (h8500_do_registers_info: Declare.
3390         (PRINT_REGISTER_HOOK): Delete macro.
3391         (print_register_hook): Delete function.
3392
3393 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3394
3395         * z8k-tdep.c (z8k_print_register_hook): Make static.
3396         (z8k_print_registers_info): New static function, clone of
3397         infcmd.c's default_print_registers_info.
3398         (z8k_do_registers_info): New function.  Wrap
3399         z8k_print_registers_info.
3400         * config/z8k/tm-z8k.h: Update copyright.
3401         (PRINT_REGISTER_HOOK): Delete macro.
3402         (z8k_print_register_hook): Delete declaration.
3403         (DEPRECATED_DO_REGISTERS_INFO): Define.
3404         (z8k_do_registers_info): Declare.
3405
3406 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3407
3408         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3409         as this is already provided by value.h, and was actually causing
3410         a compilation error because of a conflict in parameter type
3411         declaration due to a missing const keyword.
3412         (low_text_segment_addres): Fix a compilation warning.
3413
3414 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3415
3416         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3417         registers without a name.
3418         (mips_linux_cannot_store_register): Don't store registers without
3419         a name.
3420
3421 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3422
3423         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3424         out.)
3425         * symtab.h: Delete prototype for find_addr_symbol.
3426
3427 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3428
3429         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3430         DO_REGISTERS_INFO.
3431         gdbarch.h, gdbarch.c: Re-generate.
3432         * infcmd.c (default_print_registers_info): Update reference.
3433         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3434         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3435         * sh-tdep.c (sh_gdbarch_init): Ditto.
3436         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3437         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3438
3439 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3440
3441         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3442         cfi_init_extra_frame_info.
3443         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3444         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3445
3446         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3447         target where necessary.  Add more comments and remove the ones
3448         that don't provide any useful information.
3449
3450         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3451         deprecated_read_register_dummy with
3452         frame_unwind_unsigned_register.
3453
3454         * i386-tdep.c (i386_extract_struct_value_address): Use
3455         regcache_raw_read_unsigned instead of
3456         regcache_cooked_read_unsigned since we know that the register
3457         we're reading isn't a pseudo register.  Rename variable 'val' into
3458         the more descriptive 'addr'.
3459
3460         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3461         (x86_64_push_return_address): Add comment.
3462         (x86_64_pop_frame): Make static.
3463         (examine_argument): Clarify comment.
3464         (x86_64_skip_prologue): Make prolog_expact variable static.
3465
3466         * dwarf2cfi.c: Fix some formatting problems.
3467         (context_cpy, read_encoded_pointer): Clarify comments.
3468
3469         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3470         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3471         i386 target back into x86_64_gdbarch_init.  Add some comments and
3472         remove meaningless ones.
3473
3474 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3475
3476         * complaints.h (struct deprecated_complaint): Rename `struct
3477         complaint'.
3478         * complaints.c (complain): Update.
3479         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3480         incorrect comment indicating that "symfile.h" was being included
3481         for the `struct complaint' definition.
3482         * remote-vx.c: Update.
3483         * objc-lang.c: Update.
3484         * xcoffread.c: Update.
3485         * hpread.c: Update.
3486         * mdebugread.c: Update.
3487         * stabsread.c: Update.
3488         * dwarf2read.c: Update.
3489         * dwarfread.c: Update.
3490         * elfread.c: Update.
3491         * coffread.c: Update.
3492         * stabsread.h: Update.
3493         * dbxread.c: Update.
3494         * buildsym.c: Update.
3495         * gdbtypes.c: Update.
3496         * macrotab.c: Update.
3497
3498 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3499
3500         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3501         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3502         (x86_64_init_abi): ...new function.
3503
3504         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3505         * i386v-nat.c: Include "i386-tdep.h".
3506
3507 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3508
3509         * gdbtypes.c (address_space_name_to_int): Update.
3510         (address_space_int_to_name): Update.
3511         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3512         multi-arch predicate.
3513         (address_class_name_to_type_flags): Ditto.
3514         * gdbarch.h, gdbarch.c: Re-generate.
3515         
3516         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3517
3518 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3519
3520         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3521
3522 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3523
3524         * symtab.h (INIT_SAL): Delete macro.
3525         (init_sal): Export.
3526         * symtab.c (init_sal): New function.
3527
3528         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3529         to init_sal function call.
3530         (find_sal_from_funcs_and_line): Ditto.
3531         (all_sals_for_line): Ditto. 
3532         * breakpoint.c (create_internal_breakpoint): Ditto. 
3533         (create_fork_vfork_event_catchpoint): Ditto. 
3534         (create_exec_event_catchpoint): Ditto. 
3535         (parse_breakpoint_sals): Ditto. 
3536         (watch_command_1): Ditto. 
3537         (handle_gnu_4_16_catch_command): Ditto.
3538         (clear_command): Ditto. 
3539         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3540         * infcmd.c (run_stack_dummy): Ditto. 
3541         * infrun.c (process_event_stop_test): Ditto.
3542         (check_sigtramp2): Ditto.
3543         (step_over_function): Ditto. 
3544         * linespec.c (decode_line_2): Ditto. 
3545         (decode_line_1): Ditto. 
3546         * source.c (line_info): Ditto. 
3547         * symtab.c (find_pc_sect_line): Ditto.
3548
3549 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3550
3551         * dwarf2cfi.c (struct context)
3552         (struct context_reg): Moved to dwarf2cfi.h
3553         (context_alloc, frame_state_alloc, context_cpy):
3554         Made extern instead of static, removed prototypes.
3555         * dwarf2cfi.h (struct context)
3556         (struct context_reg): New, moved from dwarf2cfi.c
3557         (context_alloc, frame_state_alloc, context_cpy):
3558         New prototypes.
3559         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3560         Changed from static to extern.
3561         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3562         (LINUX_SIGCONTEXT_FP_OFFSET)
3563         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3564         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3565         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3566         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3567         set_gdbarch_*() calls now use x86-64 specific functions 
3568         instead of DWARF2 CFI ones.
3569         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3570         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3571         (x86_64_init_extra_frame_info): New prototypes.
3572         
3573 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3574
3575         * linespec.c: #include "parser-defs.h".
3576         Delete prototype for find_template_name_end.
3577         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3578
3579 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3580
3581         * NEWS: add recent mi fixes.
3582         * varobj.c (struct varobj): Add new "updated" flag.
3583         (new_variable): Default "updated" flag to 0.
3584         (varobj_set_value): Set "updated" flag to 1 if value
3585         changes.
3586         (varobj_update): Check varobj "updated" flag before
3587         comparing old and refreshed values.  Fix for
3588         PR gdb/702.
3589
3590 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3591
3592         * parse.c (parse_exp_1): Use BLOCK_START.
3593         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3594         SYMBOL_BLOCK_VALUE.
3595         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3596
3597 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3598
3599         * symtab.c: Delete cplusplus_hint.
3600         Delete prototype for find_template_name_end.
3601
3602 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3603
3604         * symtab.h: Update comment.
3605
3606 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3607
3608         * printcmd.c (address_info): Restore quotes in output.
3609         * valops.c (value_of_local): Restore quotes in error message.
3610
3611 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3612
3613         * symtab.c (symbol_demangled_name): New function.
3614         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3615         turning most of it into a function.
3616         (symbol_demangled_name): Export.
3617
3618 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3619
3620         * valops.c (value_of_local): Restore quotes in error message.
3621
3622 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3623
3624         * symtab.c (symbol_init_language_specific): New function.
3625         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3626         turning most of it into a function.
3627         (symbol_init_language_specific): Export.
3628
3629 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3630
3631         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3632         (dwarf_attr_name): Ditto.
3633         (dwarf_type_encoding_name): Ditto.
3634         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3635         (process_die): Handle DW_TAG_namespace,
3636         DW_TAG_imported_declaration, DW_TAG_imported_module.
3637         (read_namespace): New function.
3638
3639 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3640
3641         * configure.in: Define NEW_PROC_API on Interix too.
3642         * configure: Regenerate.
3643
3644 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3645
3646         * configure: Regenerate using the proper version of autoconf.
3647
3648 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3649
3650         * findvar.c (read_var_value): Temporarily disable TLS code, until
3651         complete TLS support is added.
3652
3653 2002-10-21  Jim Blandy  <jimb@redhat.com>
3654             Elena Zannoni  <ezannoni@redhat.com>
3655
3656         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3657         for thread local storage locations.
3658         (struct symbol): Add objfile field.
3659         (SYMBOL_OBJFILE): Define.
3660         * dwarf2read.c (is_thread_local): New static variable.
3661         (new_symbol): If variable is in thread local fill in address class
3662         and objfile appropriately.
3663         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3664         stack operation.
3665         * printcmd.c (address_info): Print the information for thread
3666         local storage variable.
3667         * findvar.c (read_var_value): In case of thread local variable,
3668         defer to the target vector code to compute address.
3669
3670 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3671
3672         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3673         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3674
3675 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3676
3677         * symtab.h (address_class):  Rename
3678         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3679         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3680         * printcmd.c (address_info): Ditto.
3681         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3682
3683 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3684
3685         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3686         DBREG_DRX macro to acces debug registers.
3687
3688         * Makefile.in (i386obsd-tdep.o): New target.
3689
3690         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3691         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3692
3693         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3694         * config/i386/obsd.mt: New file.
3695         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3696         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3697         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3698         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3699         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3700         * i386obsd-tdep.c: New file.
3701
3702 2002-10-19  Adam Fedor  <fedor@gnu.org>
3703
3704         * objc-exp.y (name_not_typename): Fix invalid comment.  
3705
3706 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3707
3708         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3709         to allocate partial syms and macro byte caches.
3710
3711 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3712
3713         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3714
3715 2002-10-18  Adam Fedor  <fedor@gnu.org>
3716
3717         * stabsread.c (find_name_end): New function.
3718         (define_symbol): Use it.
3719
3720 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3721
3722         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3723         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3724         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3725         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3726
3727 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3728
3729         * symfile.h: Add opaque declaration for struct obstack.
3730         Declare obsavestring to take a const char *.
3731         * symfile.c (obsavestring): Make first argument a const char *.
3732
3733 2002-10-16  Adam Fedor  <fedor@gnu.org>
3734
3735         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3736         names when matching breakpoints in current file.
3737
3738 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3739
3740         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3741         (read_tag_pointer_type): Add address class support.
3742         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3743         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3744         New methods.
3745         * gdbarch.h, gdbarch.c: Regenerate.
3746         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3747         (make_type_with_address_space, recursive_type_dump): Add address
3748         class support.
3749         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3750         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3751         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3752
3753 2002-10-16  Klee Dienes  <kdienes@apple.com>
3754
3755         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3756         to get the last character of a char[] buffer, not
3757         name[sizeof(vptr_name)-1].
3758
3759 2002-10-14  Adam Fedor  <fedor@gnu.org>
3760
3761         * symtab.h: New objc_specific struct.
3762         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3763         (SYMBOL_DEMANGLED_NAME): Likewise.
3764
3765 2002-10-14  Adam Fedor  <fedor@gnu.org>
3766
3767         * symfile.c (init_filename_language_table): Add ObjC file extension.
3768
3769 2002-10-14  Adam Fedor  <fedor@gnu.org>
3770
3771         * utils.c (puts_filtered_tabular): New function.
3772         (fprintf_symbol_filtered): Get ObjC demangled name.
3773         * defs.h (puts_filtered_tabular): Declared.
3774
3775 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3776
3777         * c-lang.h (c_type_print_varspec_prefix): Delete.
3778         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3779         ``need_post_space'' parameter.  Adjust all callers.
3780
3781 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3782  
3783         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3784         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3785         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3786         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3787
3788 2002-10-13  Adam Fedor  <fedor@gnu.org>
3789
3790         * source.c (print_source_lines): Update comments.
3791
3792 2002-10-13  Adam Fedor  <fedor@gnu.org>
3793
3794         * valops.c (value_of_local): New function.
3795         (value_of_this): Use it.
3796         * value.h (value_of_local): Declared.
3797
3798 2002-10-13  Adam Fedor  <fedor@gnu.org>
3799
3800         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3801         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3802
3803 2002-10-12  Adam Fedor  <fedor@gnu.org>
3804
3805         * language.c (binop_result_type): Add language_objc to case.
3806         (integral_type): Likewise.
3807         (character_type): Likewise.
3808         (string_type): Likewise.
3809         (boolean_type): Likewise.
3810         (structured_type): Likewise.
3811         (binop_type_check): Likewise.
3812
3813 2002-10-11  Adam Fedor  <fedor@gnu.org>
3814
3815         * printcmd.c (address_info): Print 'self' for ObjC.
3816
3817 2002-10-11  Adam Fedor  <fedor@gnu.org>
3818
3819         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3820         OP_SELF.
3821
3822 2002-10-11  Adam Fedor  <fedor@gnu.org>
3823
3824         * language.h (CAST_IS_CONVERSION): Add language_objc.
3825
3826 2002-10-11  Adam Fedor  <fedor@gnu.org>
3827
3828         * defs.h (enum language): Add language_objc.
3829
3830 2002-10-11  Klee Dienes  <kdienes@apple.com>
3831
3832         * corefile.c (read_memory_typed_address): New function.
3833         * gdbcore.h (read_memory_typed_address): Add prototype.
3834         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3835         to read a value destined for a CORE_ADDR, not read_memory_integer.
3836         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3837         (f77_get_dynamic_lowerbound): Ditto.
3838
3839 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3840
3841         * utils.c (string_to_core_addr): After turning string into
3842         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3843         which will do necessary sign-extension, etc.
3844
3845 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3846
3847         * c-exp.y (THIS): Delete token and grammar rule.
3848         (yylex): Don't return THIS.
3849         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3850         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3851         * demangle.c (cplus_markers): Update comment.  Put '$'
3852         first.  Remove CPLUS_MARKER.
3853         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3854         * jv-exp.y (THIS): Delete token and grammar rule.
3855         (yylex): Don't return THIS.
3856         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3857         * objc-exp.y (THIS): Delete token and grammar rule.
3858         (yylex): Don't return THIS.
3859         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3860         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3861         (read_member_functions): Likewise for opname.
3862         (read_tilde_fields): Use is_cplus_marker.
3863
3864         * defs.h (CPLUS_MARKER): Don't define.
3865         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3866         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3867         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3868         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3869         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3870
3871         * config/i386/tm-i386v4.h: Delete file.
3872         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3873         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3874         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3875         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3876         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3877         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3878         * config/i386/i386v4.mt (TM_FILE): Likewise.
3879         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3880
3881 2002-10-10  Marko Mlinar  <markom@opencores.org>
3882
3883         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3884         accidentially not commited 2002-10-09
3885         * gdbarch.h, gdbarch.c: Re-generate.
3886
3887 2002-10-09  Marko Mlinar  <markom@opencores.org>
3888
3889         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3890         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3891         * gdbarch.h, gdbarch.c: Re-generate.
3892
3893 2002-10-08  Petr Sorfa <petrs@caldera.com>
3894
3895         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3896
3897         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3898         so we can work on more than one compilation unit at a time.  This
3899         helps prepare GDB to handle inter-CU die references.
3900         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3901         the code to be defined before struct comp_unit_head.
3902         (comp_unit_head): Added new members - offset, cu_head,
3903         begin_die, next and dwarf2_abbrevs.
3904         (dwarf2_abbrevs): Removed single static var; now member of
3905         struct comp_unit_head.
3906         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3907         members.
3908         (psymtab_to_symtab_1): Changed to work with the new
3909         struct comp_unit_head.
3910         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3911         constructs the dwarf2_abbrevs[] inside the cu_header.
3912         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3913         dwarf2_abbrev table to clean up.
3914         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3915         handling of dwarf2_abbrevs inside the cu_header.
3916         (read_partial_die): Now supports the call to the new
3917         dwarf2_lookup_abbrev.
3918         (read_full_die): Now supports the call to the new
3919         dwarf2_lookup_abbrev.
3920
3921 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3922
3923         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3924         insure that shell variables, such as "transformed_name" are propagated
3925         to later shell statements in rule.
3926
3927 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3928
3929         * config/i386/nm-i386sco.h: Add protection against
3930         multiple-inclusion.  Include "i386/nm-i386v.h".
3931         (REGISTER_U_ADDR): Remove define.
3932         (i386_register_u_addr): Remove prototype.
3933
3934 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3935
3936         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3937         before treating it as a single-step event.
3938
3939 2002-10-03  Adam Fedor  <fedor@gnu.org>
3940
3941         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3942         (objc_demangle): Remove assignment in if statements, Replace
3943         free with xfree.
3944         (add_msglist): Likewise.
3945         (end_msglist): Likewise.
3946         (complare_selectors): Likewise.
3947         (selectors_info): Likewise.
3948         (compare_classes): Likewise.
3949         (classes_info): Likewise.
3950         (print_object_command): Likewise.
3951         (find_objc_msgcall_submethod): Replace PTR with void *.
3952         * objc-lang.h: Remove check for __STDC__.
3953
3954 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3955
3956         * ui-out.h (ui_out_field_fmt_int): New prototype.
3957         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3958         of field width and alignment.
3959         * stack.c (print_frame_info_base): When printing frame level, use
3960         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3961         PR gdb/192
3962
3963 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3964
3965         * MAINTAINERS: Add self to Write After Approval list.
3966
3967 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3968
3969         * infcmd.c (interrupt_target_command_wrapper): Delete.
3970         (interrupt_target_command): Make non static.
3971         (nofp_registers_info): Make static.
3972         * stack.c (return_command_wrapper): Delete.
3973         (return_command): Make non static.
3974
3975 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3976
3977         * event-top.c (gdb_setup_readline): New function. Code moved from
3978         _initialize_event_loop().
3979         (_initialize_event_loop): Call gdb_setup_readline().
3980
3981 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3982
3983         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3984         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3985         * gdbarch.h, gdbarch.c: Re-generate.
3986
3987 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3988
3989         Fix PR gdb/778
3990         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3991         before recursing.
3992         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3993         of fill_in_vptr_fieldno.
3994
3995 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3996
3997         * inferior.h (registers_info, stepi_command, nexti_command,
3998         continue_command, interrupt_target_command): Export from infcmd.c.
3999         * frame.h (args_info, selected_frame_level_changed_hook,
4000         return_command): Export from stack.c.
4001         * v850ice.c (stepi_command, nexti_command, continue_command): use
4002         prototypes from inferior.h.
4003         * tracepoint.c (registers_info, args_info, locals_info): Use
4004         prototypes from frame.h and inferior.h.
4005         * Makefile.in (mi-main.o): Add dependency on frame.h.
4006
4007 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
4008
4009         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4010         value in register 3 adjusted by ppc_gp0_regnum.
4011
4012         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4013
4014 2002-10-02  Marko Mlinar <markom@opencores.org>
4015
4016         * MAINTAINERS: Add myself to the Write After Approval list.
4017
4018 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
4019
4020         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4021         of the section for the N64 ABI, fixed.
4022
4023         * config/mips/tm-irix6.h: Include solib.h.
4024
4025 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
4026
4027         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4028         GNU operators.
4029
4030 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4031
4032         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4033         and that "mi0" syntax has been removed.
4034
4035 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4036
4037         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4038         * ppc-sysv-tdep.c: #include "gdb_string.h".
4039         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4040         pacify GCC.
4041
4042 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4043
4044         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4045         "vrsave"'s register number.
4046
4047 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4048
4049         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4050         use frame_unwind_signed_register to obtain the PC.
4051         (mips_frame_chain): Handle a generic dummy frame.
4052         (mips_init_extra_frame_info): When a generic dummy frame, don't
4053         re-compute the frame base.
4054         (mips_pop_frame): Handle generic dummy frames.
4055         (mips_gdbarch_init): When generic dummy frames, set
4056         use_generic_dummy_frames, push_dummy_frame to
4057         generic_push_dummy_frame, pc_in_call_dummy to
4058         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4059         generic_save_dummy_frame_tos.
4060
4061 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4062
4063         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4064         against TOP when TOP was explictly set.
4065         (generic_push_dummy_frame): Set TOP to zero.
4066
4067 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4068
4069         * event-loop.c (start_event_loop): Rename variable 'result' to
4070         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4071
4072 2002-09-30  Keith Seitz  <keiths@redhat.com>
4073
4074         * gdb-events.sh (selected_thread_changed): New event.
4075         * gdb-events.c: Regenerated.
4076         * gdb-events.h: Regenerated.
4077
4078 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4079
4080         * MAINTAINERS: Add self to Write After Approval list.
4081
4082 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4083
4084         * disasm.c: New file.  
4085         * disasm.h: New file.  
4086         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4087         (compare_lines): Ditto.
4088         (dump_insns): Ditto.
4089         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4090         argument.
4091         (do_assembly_only): Ditto.
4092         (do_disassembly): Renamed to gdb_disassembly and moved to
4093         disasm.c.  Sdded uiout argument.
4094         * Makefile.in: Add new files.  Reorder SFILES list. Update
4095         dependencies.  Include libgdb.a later in the insight executable.
4096
4097 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4098
4099         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4100         bfd/elf64-alpha-fbsd.c.
4101
4102 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4103
4104         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4105         i386gnu-tdep.c.
4106
4107 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4108
4109         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4110         __FUNCTION__.
4111         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4112         function name.
4113         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4114         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4115         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4116         (S_msg_sig_post_reply): Ditto.
4117         
4118 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4119
4120         * sh-tdep.c (sh_use_struct_convention): Use definition according
4121         to ABI.
4122         (sh_push_arguments): Store in register with correct endianess.
4123         (sh_default_store_return_value): Ditto.
4124         (sh_gdbarch_init): Set sizeof long double to 8.
4125
4126 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4127
4128         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4129         Fix some whitespace problems.
4130
4131 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4132
4133         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4134         (mcore-tdep.o): Ditto.
4135         (ns32k-tdep.o): Ditto.
4136         (ns32knbsd-tdep.o): Ditto.
4137         (sh3-rom.o): Ditto.
4138         (vax-tdep.o): Ditto.
4139         * cris-tdep.c: #include "gdb_string.h"
4140         * mcore-tdep.c: Ditto.
4141         * ns32k-tdep.c: Ditto.
4142         * ns32knbsd-tdep.c: Ditto.
4143         * sh3-rom.c: Ditto.
4144         * vax-tdep.c: Ditto.
4145
4146 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4147
4148         * config/djgpp/fnchange.lst: Add entries for
4149         gdb/testsuite/gdb.c++/m-static files.
4150
4151 2002-09-27  Jim Wilson  <wilson@redhat.com>
4152
4153         * MAINTAINERS: Add myself to the Write After Approval list.
4154
4155 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4156
4157         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4158
4159
4160 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4161
4162         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4163         frame.
4164
4165 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4166
4167         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4168         (rs6000_struct_return_address): Delete variable.
4169         (rs6000_store_struct_return): Update.
4170         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4171         deprecated_extract_struct_value_address.
4172         (rs6000_frame_align): New function.
4173         (rs6000_gdbarch_init): Set frame_align.
4174
4175 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4176
4177         From Grace Sainsbury <graces@redhat.com>:
4178         * Makefile.in (gdbtk-main.o): New target.
4179         (gdb.o): New target.
4180         (main_h): Define.
4181         (main.o): Update dependencies.
4182         (gdb$(EXEEXT)): Add gdb.o.
4183         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4184         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4185         (SUBDIR_GDBTK_CLEAN): Set.
4186         (install-gdbtk): Install the insight binary.
4187         (uninstall-gdbtk): New target.
4188         (all-gdbtk, clean-gdbtk): New rule.
4189         * top.c (use_windows): Default to zero.
4190         * main.c: Include "main.h".
4191         (main): Delete.
4192         (struct captured_main_args): Delete.
4193         (gdb_main): New function.
4194         * main.h: New file.
4195         * gdb.c: New File.
4196
4197 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4198
4199         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4200         (frame_map_regnum_to_name): New function.
4201         (frame_map_name_to_regnum): New function.
4202         * frame.h (frame_map_name_to_regnum): Declare.
4203         (frame_map_regnum_to_name): Declare.
4204         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4205         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4206         * parse.c: Do not include "builtin-regs.h".
4207         (target_map_name_to_register): Delete function.
4208         (write_dollar_variable): Use frame_map_name_to_regnum.
4209         * parser-defs.h (target_map_name_to_register): Delete declaration.
4210         * expprint.c: Include "frame.h".
4211         (print_subexp): Use frame_map_regnum_to_name.
4212         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4213         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4214
4215 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4216
4217         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4218         wasn't saved, and the next innermost frame is a dummy, return the
4219         dummy frame's link register.
4220
4221 2002-09-24  Jim Blandy  <jimb@redhat.com>
4222
4223         Fix from Paul Breed:
4224         * main.c (captured_main): Add a `break' after the case for 'b'.
4225
4226 2002-09-24  Keith Seitz  <keiths@redhat.com>
4227
4228         * varobj.c (c_type_of_child): Use get_target_type instead
4229         of TYPE_TARGET_TYPE.
4230
4231 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4232
4233         * source.c (get_current_or_default_source_symtab_and_line): Remove
4234         function.
4235         (set_default_source_symtab_and_line): New function. Attempts to
4236         determine a source file to list lines from if one is not currently
4237         defined.
4238         (get_current_source_symtab_and_line): Initialize sal.pc and
4239         sal.end fields.
4240         (set_current_source_symtab_and_line): Mark argument as const.
4241         * source.h: Update declarations and comments.
4242         * linespec.c (decode_line_1): Replace call to removed routine above.
4243         * stack.c (print_frame_info_base): Ditto.
4244         * cli/cli-cmds.c (edit_command): Ditto.
4245         (list_command): Ditto.
4246
4247 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4248
4249         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4250         sal.pc and sal.end fields.
4251         (get_current_or_default_source_symtab_and_line): Ditto.
4252         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4253         so we do not cause a new source symtab to be searched for (reverting an
4254         unintentional change from the 2002-09-20 patch).
4255         * scm-lang.c (scm_unpac): Ditto.
4256
4257 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4258
4259         * complaints.c (symfile_explanations): Remove new-line from
4260         ``isolated_message''.
4261         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4262         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4263
4264 2002-09-20  Nick Clifton  <nickc@redhat.com>
4265         
4266         * NEWS: Announce that V850EA ISA is no longer supported.
4267         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4268
4269 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4270
4271         * Makefile.in (c-lang.o): Correct dependencies.
4272         (utils.o): Gather dependencies.
4273         (charset.o): Move.
4274         * c-lang.c: #include "gdb_string.h"
4275
4276 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4277
4278         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4279         * cli/cli-cmds.c (list_command): New function.  Implements the new
4280         cli edit command.
4281         (_init_cli_cmds): Add new command definition.
4282         * gdb.1: Document edit command.
4283         * doc/gdb.texinfo: Document edit command.
4284
4285 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4286
4287         * source.c: Make global variables current_source_symtab and
4288         current_source_line static.
4289         (list_command): Moved to cli/cli-cmds.c.
4290         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4291         (get_first_line_listed): New accessor function.
4292         (get_lines_to_list): New accessor function.
4293         (get_current_source_symtab_and_line): New function. Retrieves the
4294         position in the source code that we consider current.
4295         (get_current_or_default_source_symtab_and_line): New function.
4296         Like the above but attempts to determine a default position if one
4297         is not currently defined.
4298         (set_current_source_symtab_and_line): New function. Sets the source
4299         code position considered current and returns the previously set one.
4300         (clear_current_source_symtab_and_line): Reset stored information about
4301         a current source line.
4302         (_initialize_source): Remove registration for the "list" command and
4303         its alias.
4304         * source.h: Add declarations for the new functions above.
4305         * symtab.h: Remove declarations for the global variables mentioned
4306         above.
4307         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4308         obtain current source line.
4309         * linespec.c (decode_line_1): Ditto.
4310         * macroscope.c (default_macro_scope): Ditto.
4311         * scm-lang.c (scm_unpac): Ditto.
4312         * stack.c (print_frame_info_base): Ditto.
4313         * symfile.c (clear_symtab_users): Ditto.
4314         * symtab.c (decode_line_spec): Ditto.
4315         * cli/cli-cmds.c (list_command): Moved here from source.c.
4316         (ambiguous_line_spec): Moved here from source.c.
4317         (_init_cli_cmds): Add definition for "list" and its alias.
4318         * Makefile.in: Update dependencies.
4319
4320 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4321
4322         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4323         with what gcc thinks is correct.
4324
4325 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4326
4327         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4328         multiple register push instruction.
4329
4330 2002-09-19  Jim Blandy  <jimb@redhat.com>
4331
4332         Add support for distinct host and target character sets.
4333         * charset.c, charset.h: New files.
4334         * c-exp.y: #include "charset.h".
4335         (yylex): Convert character and string literals to the target
4336         character set, before returning them as the semantic value of the
4337         token.
4338         * c-lang.c: #include "charset.h".
4339         (c_emit_char): Use charset-specific methods to recognize
4340         characters with backslash escape forms, to decide which characters
4341         to print literally and which to print using numeric escape
4342         sequences, and to convert target characters to host characters
4343         before printing.
4344         * utils.c: #include "charset.h".
4345         (no_control_char_error): New function.
4346         (parse_escape): Use charset-specific methods to recognize
4347         backslash escapes, parse `control character' notation, and convert
4348         characters from the host character set to the target character set.
4349         * configure.in: Set the default host character set.
4350         Check where to find iconv, and what its argument types might be.
4351         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4352         * Makefile.in (SFILES): List charset.c.
4353         (COMMON_OBS): List charset.o.   
4354         (charset.o): New rule.
4355         (charset_h): New header dependency variable.
4356         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4357         (LIBICONV): New variable, set by configure.
4358         (CLIBS): Include $(LIBICONV) here.
4359         * aclocal.m4, config.in, configure: Regenerated.
4360
4361 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4362
4363         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4364         bison 1.35 warning.
4365
4366 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4367
4368         * gdb_mbuild.sh: New file.
4369
4370 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4371
4372         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4373
4374 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4375
4376         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4377         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4378         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4379         valops.c, value.h: Revert previous change.
4380         
4381 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4382
4383         Preliminary support for Objective-C:
4384         * defs.h (language_objc): New enum value.
4385         (puts_filtered_tabular): Declaration only, exported from utils.c.
4386         (skip_quoted): Delete, declared in completer.h.
4387         * c-exp.y: Include completer.h.
4388         * p-exp.y: Ditto.
4389         * jv-exp.y: Ditto.
4390         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4391         New operator enum values.
4392         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4393         * language.c (binop_result_type): Handle language_objc case.
4394         (integral_type, character_type, string_type, boolean_type,
4395         structured_type, binop_type_check): Ditto.
4396         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4397         (struct objc_specific): Add to general_symbol_info.
4398         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4399         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4400         * parser-defs.h (struct objc_class_str): New struct type.
4401         (start_msglist, end_msglist, add_msglist): Declaration only,
4402         exported from objc-lang.c.
4403         * value.h (value_of_local, value_nsstring, 
4404         call_function_by_hand_expecting_type): Exported from valops.c.
4405         * valops.c (find_function_addr): Export.
4406         (call_function_by_hand_expecting_type): New function.
4407         (value_of_local): New function.
4408         * symfile.c (init_filename_language_table): Add ".m" extension
4409         for Objective-C.
4410         * utils.c (puts_filtered_tabular): New function.
4411         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4412         (set/show demangle): Extend help-string to refer to ObjC.
4413         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4414         * stabsread.c (symbol_reference_defined): Objective-C symbols
4415         may contain colons: make allowances when scanning stabs strings
4416         for colons.
4417         (objc_find_colon): New function.
4418         * printcmd.c (address_info): If language == objc then print
4419         "self" instead of "this".
4420         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4421         OP_NSSTRING, and OP_SELF.
4422         (prefixify_subexp): Ditto.
4423         * source.c (print_source_lines): Mention objc in comment.
4424         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4425         method names.
4426
4427 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4428
4429         * complaints.h: Update copyright.
4430         (struct complaints): Declare.
4431         (struct complaint): Make `message' constant.
4432         (internal_complaint): Declare.
4433         (complaint): Declare.
4434         (complaint_root): Delete declaration.
4435         (symfile_complaints): Delete declaration.
4436         (struct complaints): Add opaque declaration.
4437         (clear_complaints): Add a complaints parameter.
4438         * complaints.c: Update copyright.
4439         (enum complaint_series): Define.
4440         (complaint_root): Delete.
4441         (struct complaints): Define.
4442         (complaint_sentinel, symfile_complaint_book): New variables.
4443         (symfile_explanations, symfile_complaints): New variables.
4444         New variables.
4445         (get_complaints): New function.
4446         (vcomplaint): New function.
4447         (complaint): New function.
4448         (internal_complaint): New function.
4449         (complain): Call vcomplain with symfile_complaint.
4450         (clear_complaints): Rewrite.
4451         (_initialize_complaints): Use add_setshow_command.
4452         * Makefile.in (complaints.o): Update dependencies.
4453         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4454         to call to clear_complaints.
4455         (new_symfile_objfile, reread_symbols): Ditto.
4456         (oldsyms_complaint): Delete.
4457         (empty_symtab_complaint, unknown_option_complaint): Delete.
4458         (free_named_symtabs): Use complaint instead of complain.
4459
4460 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4461
4462         Contributed by Apple Computer, Inc.  Merged with current sources
4463         by Adam Fedor <fedor@doc.com> [cagney].
4464         
4465         * objc-lang.c: First clean-up round: comments, indentation.
4466         * objc-lang.h: Ditto.
4467         * objc-lang.y: Ditto.
4468
4469 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4470
4471         * maint.c (maintenance_internal_error): Print the parameter as the
4472         error message.
4473         (maintenance_internal_warning): New function.
4474         (_initialize_maint_cmds): Add command `maint internal-warning'.
4475
4476         * defs.h (internal_warning, internal_vwarning): Declare.
4477         * utils.c (struct internal_problem): Define.
4478         (internal_vproblem): New function.
4479         (internal_warning): New function.
4480         (internal_vwarning): New function.
4481         (internal_warning_problem, internal_error_problem): New variables.
4482         (internal_verror): Just call internal_vproblem.
4483
4484 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4485
4486         * objc-lang.c: New file, support for Objective-C.
4487         Preliminary check-in, not yet integrated into gdb.
4488         * objc-lang.h: New file.
4489         * objc-exp.y:  New file.
4490
4491 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4492
4493         * infrun.c (signal_stop_update): Convert definition to ISO C.
4494         (signal_print_update): Ditto.
4495         (signal_pass_update): Ditto.
4496         * inflow.c (terminal_save_ours): Ditto.
4497
4498         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4499         comments.
4500         
4501         * config/djgpp/fnchange.lst: Handle name clashes between
4502         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4503         bfd/coff-tic80.c.
4504
4505         * i386-linux-tdep.h: Fix tipo.
4506
4507 2002-09-18  Adam Fedor  <fedor@gnu.org>
4508
4509         * MAINTAINERS: Add myself to the Write After Approval list.
4510
4511 2002-09-18  Jim Blandy  <jimb@redhat.com>
4512
4513         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4514         texthigh and textlow to reader-specific structs caused
4515         objfile_relocate to miss them.  This is fixable, but the work that
4516         the change was supposed to prepare GDB for never got done anyway.
4517
4518 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4519
4520         * MAINTAINERS: Alphabetize Write After Approval list.
4521
4522 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4523
4524         Fix PR gdb/709
4525         * values.c (value_static_field): Call read_var_value.
4526
4527 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4528
4529         * valops.c (hand_function_call): Align the initial stack pointer
4530         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4531         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4532         return value.
4533         * mips-tdep.c (mips_frame_align): New function.
4534         (mips_gdbarch_init): Set frame_align.
4535         * gdbarch.sh (FRAME_ALIGN): New method.
4536         * gdbarch.h, gdbarch.c: Re-generate.
4537
4538 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4539
4540         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4541         registers.
4542
4543 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4544
4545         * NEWS: Mention that MIPS $fp behavior changed.
4546         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4547         reference to FP_REGNUM.
4548         (mipsnbsd_cannot_store_register): Ditto.
4549         * mips-linux-nat.c: Update copyright.
4550         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4551         (mips_linux_cannot_store_register): Ditto.
4552         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4553         * config/mips/tm-mips.h: Update copyright.
4554         (FP_REGNUM): Delete macro.
4555         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4556         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4557         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4558         (mips_r3041_reg_names, mips_r3051_reg_names)
4559         (mips_r3081_reg_names): Replace "fp" with "".
4560         Fix PR gdb/480.
4561
4562 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4563
4564         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4565         generic_read_register_dummy() (PR gdb/703).
4566         (avr_push_return_address): #if 0 out unused vars.
4567         (avr_gdbarch_init): Enable use of avr_push_return_address().
4568
4569 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4570
4571         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4572         RTE will take care of it.
4573
4574 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4575
4576         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4577         invalid, return SP_REGNUM.
4578
4579 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4580
4581         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4582         point registers without sign extension.
4583
4584 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4585
4586         * blockframe.c (deprecated_read_register_dummy): Rename
4587         generic_read_register_dummy.
4588         * frame.c (frame_unwind_signed_register): New function.
4589         (frame_unwind_unsigned_register): New function.
4590         * frame.h (frame_unwind_signed_register): Declare.
4591         (frame_unwind_unsigned_register): Declare.
4592         (deprecated_read_register_dummy): Rename
4593         generic_read_register_dummy.
4594
4595         * h8300-tdep.c (h8300_frame_chain): Update.
4596         (h8300_frame_saved_pc): Update.
4597         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4598         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4599         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4600         (s390_frame_chain): Update.
4601         * v850-tdep.c (v850_find_callers_reg): Update.
4602         (v850_frame_saved_pc): Update.
4603         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4604         (m32r_find_callers_reg): Update.
4605         (m32r_frame_saved_pc): Update.
4606         * sh-tdep.c (sh_find_callers_reg): Update.
4607         (sh64_get_saved_pr): Update.
4608         (sh_init_extra_frame_info): Update.
4609         (sh_init_extra_frame_info): Update.
4610         (sh64_init_extra_frame_info): Update.
4611         (sh64_init_extra_frame_info): Update.
4612         * mcore-tdep.c (mcore_find_callers_reg): Update.
4613         (mcore_frame_saved_pc): Update.
4614         (mcore_init_extra_frame_info): Update.
4615         * i386-tdep.c (i386_frame_saved_pc): Update.
4616         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4617         (ia64_init_extra_frame_info): Update.
4618         (ia64_init_extra_frame_info): Update.
4619         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4620         * cris-tdep.c (cris_init_extra_frame_info): Update.
4621         * avr-tdep.c (avr_frame_chain): Update.
4622         (avr_init_extra_frame_info): Update.
4623         (avr_frame_saved_pc): Update.
4624         * arm-tdep.c (arm_find_callers_reg): Update.
4625         (arm_init_extra_frame_info): Update.
4626         (arm_frame_saved_pc): Update.
4627
4628 2002-09-17  Tom Tromey  <tromey@redhat.com>
4629
4630         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4631         is "'".
4632
4633 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4634
4635         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4636         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4637         NEXT_PROLOGUE_INSN.
4638         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4639         NEXT_PROLOGUE_INSN.
4640
4641 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4642
4643         * osfsolib.c: Remove file, replaced by solib-osf.c.
4644         * Makefile.in: Remove compilation rules for osfsolib.c.
4645
4646 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4647
4648         * cp-valprint.c (cp_print_class_method): Correct args to
4649         check_stub_method_group.
4650
4651 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4652
4653         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4654         `set architecture'.  Unify naming convention of functions.
4655         (h8300_skip_prologue): Improve prologue analysis.
4656         (h8300_push_arguments): Rewritten to more closely match GCC's
4657         bizarre argument-passing behavior, along with the comment describing
4658         said behavior.
4659         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4660         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4661         sim, remote-e7000.c, remote-hms.c and remote.c
4662
4663 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4664
4665         * i386-tdep.c (gdb_print_insn_i386): Removed.
4666         (i386_print_insn): New function.
4667         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4668         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4669         tm_print_insn_info.
4670
4671 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4672
4673         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4674         zero.
4675
4676 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4677
4678         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4679         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4680         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4681
4682 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4683
4684         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4685
4686 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4687
4688         * gdbtypes.c (check_stub_method): Make static.
4689         (check_stub_method_group): New function.
4690         * gdbtypes.h: Update prototypes.
4691         * cp-support.c: New file.
4692         * cp-support.h: New file.
4693
4694         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4695         (update_method_name_from_physname): New function.
4696         (read_member_functions): Correct method names for operators
4697         and v3 constructors/destructors.  Separate v2 constructors and
4698         destructors.
4699         * Makefile.in (stabsread.o): Update dependencies.
4700         (SFILES): Add cp-support.c.
4701         (COMMON_OBS): Add cp-support.o.
4702         (cp_support_h, cp-support.o): Add.
4703
4704         * cp-valprint.c (cp_print_class_method): Call
4705         check_stub_method_group instead of check_stub_method.  Remove
4706         extraneous QUITs.
4707         * p-valprint.c (pascal_object_print_class_method): Likewise.
4708         * valops.c (search_struct_method): Likewise.
4709         (find_method_list, value_struct_elt_for_reference): Likewise.
4710
4711 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4712
4713         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4714         * gdbarch.h, gdbarch.c: Regenerate.
4715
4716 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4717
4718         * frame.c (find_saved_register): Delete function.
4719         * frame.h (find_saved_register): Delete declaration.
4720         Fix PR gdb/631.
4721
4722 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4723
4724         * mips-tdep.c (read_next_frame_reg): Re-hack using
4725         frame_register_unwind.
4726
4727 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4728
4729         * mips-tdep.c (mips_get_saved_register): Re-hack using
4730         frame_register_unwind.
4731
4732 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4733
4734         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4735         vector. Will be useful for Interix.  
4736         * gdbarch.h, gdbarch.c: Regenerate.
4737
4738         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4739         name of the malloc function by NAME_OF_MALLOC.
4740
4741 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4742
4743         * value.h (find_function_in_inferior): Add const keyword to
4744         one of the parameters. Allows us to invoke this function with
4745         a const char *.
4746         * valops.c (find_function_in_inferior): Likewise.
4747
4748 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4749
4750         * exec.c (xfer_memory): Fix compilation warning with old versions
4751         of GCC.
4752         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4753
4754 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4755
4756         * symtab.h: Run through gdb_indent.h.
4757         Add 2002 to Copyright year list.
4758
4759 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4760
4761         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4762         mach constants.
4763         * MAINTAINERS: Add myself to write after approval list.
4764
4765 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4766
4767         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4768
4769 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4770
4771         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4772         Interix.
4773
4774 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4775
4776         * procfs.c (do_detach): Clear current signal, not just fault.
4777         Corrects problem with breakpoint trap signal leaking to detached
4778         process on Tru64.
4779
4780 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4781
4782         * buildsym.c (finish_block): Protect against null pointer.
4783
4784 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4785
4786         * infcmd.c (default_print_registers_info): Send all output to
4787         ``file'' instead of ``gdb_stdout''.
4788
4789 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4790
4791         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4792         LONGEST, and use signed register read (addresses are sign-
4793         extended for mips).
4794
4795 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4796
4797         * event-loop.c (gdb_do_one_event): Make public.
4798         * event-loop.h (gdb_do_one_event): Declare.
4799
4800 2002-09-10  Jeff Law  <law@redhat.com>
4801
4802         * infttrace.c (child_resume): Simplify and rework to avoid
4803         TT_PROC_CONTINUE.
4804
4805 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4806
4807         * printcmd.c (print_scalar_formatted): "len" is the number of
4808         target bytes, NOT the number of target bits.
4809
4810 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4811
4812         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4813         * top.c (init_main): Set rl_terminal_name.
4814
4815 2002-09-08  Aidan Skinner <aidan@velvet.net>
4816
4817         * ada-lang.c (ada_array_bound, ada_type_match,
4818         _initialize_ada_language): Fix K&R definitions.
4819         * ada-tasks.c (get_current_task): Fix K&R definitions.
4820         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4821                         
4822 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4823
4824         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4825         Add XP.
4826
4827 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4828
4829         * i386-tdep.c (i386_register_virtual_type,
4830         i386_register_convertible, i386_register_convert_to_virtual,
4831         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4832         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4833         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4834         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4835         Don't set push_arguments twice.
4836
4837         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4838         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4839         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4840         sigtramp_end to NULL.
4841         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4842         defines.
4843         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4844
4845         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4846         whitespace.
4847
4848         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4849         * gdbarch.h, gdbarch.c: Re-generate.
4850         * blockframe.c (find_pc_sect_partial_function): Convert to use
4851         SIGTRAMP_START_P predicate.
4852
4853 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4854
4855         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4856         generic_dummy_frame method and old method.  Also distinguish
4857         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4858         (arm_extract_return_value): Use new regcache method.
4859
4860         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4861         adjustment that doesn't conform to the ABI.
4862         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4863         saved regcache, not from current regcache.
4864
4865 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4866
4867         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4868         * README: Update.
4869
4870 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4871
4872         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4873         if arm_apcs_32 is false.
4874
4875 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4876
4877         GDB 5.3 branch created.
4878
4879 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4880
4881         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4882         generic_unwind_get_saved_register.
4883
4884 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4885
4886         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4887         argument (PR gdb/653).  Update call to smash_to_method_type.
4888         (read_structure_scope): Update call to dwarf2_add_member_fn.
4889
4890 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4891
4892         * x86-64-linux-tdep.c: Include gdb_string.h
4893         * x86-64-linux-nat.c: Ditto.
4894
4895 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4896
4897         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4898         when YYDEBUG is set to 1.  
4899         * c-exp.y: Likewise.
4900         * f-exp.y: Likewise.
4901         * jv-exp.y: Likewise.
4902         * m2-exp.y: Likewise.
4903         * p-exp.y: Likewise.
4904
4905 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4906
4907         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4908         dependency list.
4909         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4910         solib_svr4_fetch_link_map_offsets to
4911         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4912         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4913         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4914         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4915         solib-svr4.o, and solib-legacy.o.
4916         * config/i386/tm-nbsd.h: Include solib.h.
4917
4918 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4919
4920         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4921         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4922         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4923         comment noting that this needs its own target configuration.
4924         * config/i386/nbsd.mt: New file.
4925         * config/i386/nbsdaout.mt: Remove.
4926         * config/i386/nbsdelf.mt: Ditto.
4927         * config/i386/tm-nbsdaout.h: Ditto. 
4928
4929 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4930
4931         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4932         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4933         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4934         tdep->sigtramp_end.
4935         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4936         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4937         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4938
4939 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4940
4941         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4942         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4943         * i386-tdep.h (i386bsd_init_abi): New prototype.
4944         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4945         function declaration.
4946         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4947         for NetBSD-a.out or NetBSD-ELF.
4948         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4949         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4950         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4951         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4952         and nbsd-tdep.h.
4953         (i386nbsd_pc_in_sigtramp): New function.
4954         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4955         i386nbsd_pc_in_sigtramp.
4956         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4957         and i386nbsdelf_init_abi OS ABI handlers.
4958         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4959         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4960
4961 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4962
4963         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4964         registers if the target really has them.
4965
4966 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4967
4968         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4969         than nbsd-tdep.h.
4970
4971 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4972
4973         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4974         list.
4975         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4976         (alphanbsd_skip_sigtramp_frame): New functions. 
4977         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4978         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4979         to alphanbsd_sigcontext_addr. 
4980
4981 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4982
4983         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4984         list.
4985         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4986         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4987         nbsd_pc_in_sigtramp. 
4988         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4989         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4990         * nbsd-tdep.c: Include gdb_string.h.
4991         (nbsd_pc_in_sigtramp): New function. 
4992         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4993         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4994         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4995         ppcnbsd_pc_in_sigtramp. 
4996         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4997         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4998         shnbsd_pc_in_sigtramp. 
4999         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5000         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
5001         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5002
5003 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5004
5005         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5006         watchpoints to NULL.
5007         (insert_breakpoints): set val field of watchpoints if NULL.
5008
5009
5010 2002-08-29  Jim Blandy  <jimb@redhat.com>
5011
5012         * symtab.c (lookup_symbol_aux): In the cases where we find a
5013         minimal symbol of an appropriate name and use its address to
5014         select a symtab to read and search, use `name' (as passed to us)
5015         as the demangled name when searching the symtab's global and
5016         static blocks, not the minsym's name.
5017
5018 2002-08-29  Keith Seitz  <keiths@redhat.com>
5019
5020         * stack.c (print_frame_info_base): Always set current_source_symtab
5021         and current_source_line.
5022
5023 2002-08-29  Donn Terry  <donnte@microsoft.com>
5024
5025         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5026
5027 2002-08-28  Keith Seitz  <keiths@redhat.com>
5028
5029         * stack.c (select_frame): Add FIXME concerning selected-frame
5030         events.
5031         (select_frame_command): Send selected-frame-level-changed
5032         event notification, but only if the level actually changed.
5033         (up_silently_base): Add selected-frame-level-changed event
5034         notification.
5035         (down_silently_base): Likewise.
5036
5037 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5038
5039         * Makefile.in: Update dependencies for all gdb/*.c files.
5040
5041 2002-08-27  Tom Tromey  <tromey@redhat.com>
5042
5043         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5044         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5045         Update dependencies.
5046         * i387-tdep.c: Include gdb_string.h.
5047         * osabi.c: Likewise.
5048         * i386-linux-nat.c: Likewise.
5049         * lin-lwp.c: Likewise.
5050         * ax-gdb.c: Likewise.
5051         * signals/signals.c: Likewise.
5052         * jv-valprint.c: Likewise.
5053         * p-lang.c: Likewise.
5054         * c-valprint.c: Likewise.
5055         * cp-abi.c: Likewise.
5056
5057 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5058
5059         * cli/cli-script.h (copy_command_lines): Export.
5060         * breakpoint.c: Include cli/cli-script.h.
5061         * Makefile.in (breakpoint.o): Update dependencies.
5062
5063 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5064
5065         * breakpoint.c (insert_breakpoints): Protect all references
5066         to 'process_warning'.  Shorten long lines.
5067
5068 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5069
5070         * cli/cli-script.c (copy_command_lines): New function.
5071         * defs.h (copy_command_lines): Export.
5072         * testsuite/gdb.base/commands.exp: New tests for commands
5073         attached to a temporary breakpoint, and for commands that
5074         delete the breakpoint they are attached to.
5075         
5076 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5077
5078         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5079         pointer to the breakpoint commands struct, make a new copy
5080         of the struct and point to that.
5081         (bpstat_clear): Free the commands struct.
5082         (bpstat_clear_actions): Free the commands struct.
5083         (bpstat_do_actions): Free the command actions.  Also execute
5084         the local cleanups, instead of deleting them.
5085         (delete_breakpoint): Leave the commands field of the bpstat
5086         chain alone -- it will be freed later.
5087
5088 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5089
5090         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5091         deleted in 2002-08-20 commit.  This function is still used by
5092         ppc-linux-nat.c.
5093
5094 2002-08-26  Keith Seitz  <keiths@redhat.com>
5095
5096         * gdb-events.sh: Add selected-frame-level-changed event.
5097         * gdb-events.c: Regenerated.
5098         * gdb-events.h: Regenerated.
5099         
5100 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5101
5102         Fix PR gdb/393:
5103         * inflow.c (terminal_save_ours): New function to save terminal
5104         settings.
5105         * inferior.h (terminal_save_ours): Declare.
5106         * target.c (debug_to_terminal_save_ours): New function.
5107         (cleanup_target): Defaults to_terminal_save_ours.
5108         (update_current_target): Inherit to_terminal_save_ours.
5109         (setup_target_debug): Set to_terminal_save_ours.
5110         * target.h (target_terminal_save_ours): New to save terminal settings.
5111         (target_ops): New member to_terminal_save_ours.
5112         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5113         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5114         * inftarg.c (init_child_ops): Likewise.
5115         * m3-nat.c (init_m3_ops): Likewise.
5116         * procfs.c (init_procfs_ops): Likewise.
5117         * wince.c (init_child_ops): Likewise.
5118         * win32-nat.c (init_child_ops): Likewise.
5119         * sol-thread.c (init_sol_thread_ops): Likewise.
5120
5121 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5122
5123         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5124         use regcache_* functions.
5125         (i386_gdbarch_init): Set store_return_value instead of
5126         deprecated_store_return_value.
5127
5128         * regcache.c (regcache_raw_write_signed,
5129         regcache_raw_write_unsigned): New functions.
5130         * regcache.h (regcache_raw_write_signed,
5131         regcache_raw_write_unsigned): New prototypes.
5132
5133 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5134
5135         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5136         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5137         source file dependencies.  Cleanup corresponding generator rules.
5138
5139 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5140
5141         * regcache.h (register_offset_hack): Declare.
5142         (regcache_cooked_read_using_offset_hack): Declare.
5143         (regcache_cooked_write_using_offset_hack): Declare.
5144
5145         * regcache.c (register_offset_hack): New function.
5146         (regcache_cooked_read_using_offset_hack): New function.
5147         (regcache_cooked_write_using_offset_hack): New function.
5148         (regcache_dump): Check that the registers, according to their
5149         offset, are packed hard against each other.
5150         (cooked_xfer_using_offset_hack): New function.
5151
5152 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5153
5154         * regcache.c (struct regcache_descr): Add field register_type.
5155         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5156         in as a parameter
5157         (init_regcache_descr): Initialize register_type.  Pass the descr
5158         to init_legacy_regcache_descr.  Use register_type instead of
5159         REGISTER_VIRTUAL_TYPE.
5160         (register_type): New function.
5161         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5162         * regcache.h (register_type): Declare.
5163
5164 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5165
5166         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5167         instead of deprecated_store_return_value.  Fix fallout from
5168         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5169
5170 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5171
5172         * regcache.c (max_register_size): New function.
5173         (init_legacy_regcache_descr): Ensure that max_register_size is
5174         large enough for REGISTER_VIRTUAL_SIZE.
5175         * regcache.h (max_register_size): Declare.
5176
5177 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5178
5179         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5180         store_return_value.
5181         (e500_extract_return_value): Change type of valbuf pointer to
5182         void.
5183
5184 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5185
5186         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5187         workaround.
5188
5189         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5190         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5191         long long) to prevent compiler warning on 64-bit systems.
5192
5193 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5194
5195         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5196         (DEPRECATED_STORE_RETURN_VALUE): New method.
5197         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5198         * gdbarch.h, gdbarch.c: Re-generate.
5199
5200         * values.c (set_return_value): Pass current_regcache to
5201         STORE_RETURN_VALUE.
5202         * arch-utils.h (legacy_store_return_value): Declare.
5203         * arch-utils.c (legacy_store_return_value): New function.
5204         (legacy_extract_return_value): Update parameters.
5205
5206         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5207         STORE_RETURN_VALUE.
5208         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5209         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5210         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5211         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5212         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5213         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5214         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5215         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5216         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5217         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5218
5219         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5220         * i386-tdep.c (i386_extract_return_value): Update.
5221         * arch-utils.c (legacy_extract_return_value): Update.
5222         * frv-tdep.c (frv_gdbarch_init): Update.
5223         * cris-tdep.c (cris_gdbarch_init): Update.
5224         * d10v-tdep.c (d10v_gdbarch_init): Update.
5225         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5226         * m68k-tdep.c (m68k_gdbarch_init): Update.
5227         * mcore-tdep.c (mcore_gdbarch_init): Update.
5228         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5229         * s390-tdep.c (s390_gdbarch_init): Update.
5230         * sparc-tdep.c (sparc_gdbarch_init): Update.
5231         * sh-tdep.c (sh_gdbarch_init): Update.
5232         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5233         * v850-tdep.c (v850_gdbarch_init): Update.
5234         * avr-tdep.c (avr_gdbarch_init): Update.
5235         * ia64-tdep.c (ia64_gdbarch_init): Update.
5236         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5237         * vax-tdep.c (vax_gdbarch_init): Update.
5238         * alpha-tdep.c (alpha_gdbarch_init): Update.
5239         * arm-tdep.c (arm_gdbarch_init): Update.
5240         * mips-tdep.c (mips_gdbarch_init): Update.
5241         * i386-tdep.c (i386_gdbarch_init): Update.
5242
5243 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5244
5245         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5246         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5247
5248 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5249
5250         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5251         problems.
5252
5253 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5254
5255         * infrun.c (handle_inferior_event): Move a comment outside of a
5256         function call, in order to avoid indent reformatting this part
5257         of the code in an unreadable way.
5258
5259 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5260
5261         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5262         when breakpoints fail. Move general breakpoint error messages to
5263         insert_breakpoints.  
5264         * breakpoint.c (insert_breakpoints): Change warnings when
5265         breakpoints are nto inserted to specify the type. Remove call to
5266         memory_error when hardware breakpoints can't be inserted. Remove
5267         multiple calls to warning so all messages are sent to the user at
5268         once.
5269         (delete_breakpoints): Make insert error messsages more explicit.
5270
5271 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5272
5273         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5274         gdbserver/ChangeLog.
5275
5276 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5277
5278         * i386-tdep.c: Include "objfiles.h".
5279         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5280         skip_trampoline_code.
5281         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5282         (CPLUS_MARKER): Define to '.'.
5283
5284         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5285         member.
5286         (linux_corefile_thread_callback): Increase args->num_notes.
5287         (linux_make_note_section): Initialize thread_args.num_notes, and
5288         use it to determine whether notes for any threads were created.
5289
5290 2002-08-23  Donn Terry  <donnte@microsoft.com>
5291
5292         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5293         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5294         and PCUNKILL.
5295         (write_with_trace): Conditionalize out the switch branch handling
5296         PCSHOLD if the corresponding macro is not defined. Likewise for
5297         PRSABORT and PRSTOP.
5298         This change will be needed by the Interix port.
5299
5300 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5301
5302         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5303         write_register wherever possible instead of manipulating the
5304         register bytes directly.
5305         Assign VALUE_CONTENTS to a variable and use that.
5306         The GPR numbers are now dependent on the architecture.
5307         
5308 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5309
5310         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5311         ev_offset fields.
5312         (skip_prologue): Add support for BookE/e500 instructions.
5313         (e500_extract_return_value): New function.
5314         (frame_get_saved_regs): Add support for saving ev registers and
5315         pseudo gpr's.
5316         (e500_store_return_value): New function.
5317         (rs6000_gdbarch_init): Move up default intializations of
5318         deprecated_extract_return_value and store_return_value.  Overwrite
5319         init of store_return_value with e500 specific version.
5320         Set extract_return_value for e500.
5321         
5322 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5323
5324         * blockframe.c (generic_call_dummy_register_unwind): Use
5325         regcache_cooked_read to catch cases in which the variable is
5326         stored in a pseudo register.
5327
5328 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5329
5330         * NEWS: Mention that the i960 has been made obsolete.
5331         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5332         i960-tdep.c
5333         (remote-nrom.o): Obsolete target.
5334         (remote-nindy.o, i960-tdep.o): Ditto.
5335         * remote-nrom.c: Make file obsolete.
5336         * remote-nindy.c, remote-vx960.c: Ditto.
5337         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5338         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5339         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5340         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5341         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5342         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5343         i960-*-vxworks* obsolete.
5344         * MAINTAINERS: Note that the i960 is obsolete.
5345
5346 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5347
5348         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5349         detach to allow reinitialization.
5350
5351 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5352
5353         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5354         attempt).
5355
5356 2002-08-22  Jim Blandy  <jimb@redhat.com>
5357
5358         * coffread.c (coff_symfile_read): Don't try to read the line
5359         number table from disk if the image file doesn't have a symbol
5360         table; we'll never actually look at the info anyway, and Windows
5361         ships DLL's with bogus file offsets for the line number data.
5362
5363 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5364
5365         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5366         an e500 executable.
5367
5368 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5369
5370         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5371         (MSYMBOL_SIZE): Replace macro with function.
5372         (DEFAULT_MIPS_TYPE): Delete unused macro.
5373         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5374         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5375
5376 2002-08-21  Jim Blandy  <jimb@redhat.com>
5377
5378         * valops.c (value_cast): Simplify and correct logic for doing a
5379         static cast from a pointer to a base class to a pointer to a
5380         derived class.
5381
5382 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5383
5384         * infcmd.c (default_print_registers_info): Replace
5385         do_registers_info.
5386         (registers_info): Use gdbarch_print_registers_info instead of
5387         DO_REGISTERS_INFO.
5388         * inferior.h (default_print_registers_info): Replace
5389         do_registers_info.
5390         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5391         (DO_REGISTERS_INFO): Change to a predicate function.
5392         * gdbarch.h, gdbarch.c: Regenerate.
5393         
5394 2002-08-21  Keith Seitz  <keiths@redhat.com>
5395
5396         * gdb-events.sh: Add target-changed event.
5397         * gdb-events.c: Regenerated.
5398         * gdb-events.c: Regenerated.
5399         * valops.c (value_assign): Add target-changed event notification
5400         to inlval_register, lval_memory, and lval_reg_frame_relative.
5401
5402 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5403
5404         * NEWS: Add an entry regarding the improvement of the next/step
5405         operation on Alpha Tru64 multi-processor machines.
5406
5407 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5408
5409         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5410         directores.
5411         * Makefile.in: Update all _h macro definitions.
5412         * Makefile.in (install-gdbtk): Move to install section.
5413         (rdi-share/libangsd.a): Move to end of file.
5414
5415 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5416
5417         * frame.c (frame_register_unwind): When a register, set addrp to
5418         the register's byte.
5419
5420 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5421
5422         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5423         used locally, so move them from the target machine header to here.
5424         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5425         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5426         Make static.
5427         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5428
5429 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5430
5431         * NEWS: Mention that the Apollo line was made obsolete.
5432         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5433         m68*-hp-hpux* obsolete.
5434         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5435         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5436         * buildsym.c (make_blockvector): Make static.
5437         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5438         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5439         (ALLDEPFILES): Remove dstread.c.
5440         (dstread.o): Obsolete make rule.
5441         * dstread.c: Makefile obsolete.
5442         * dst.h: Ditto.
5443         * config/m68k/hp300hpux.mt: Ditto.
5444         * config/m68k/hp300hpux.mh: Ditto.
5445         * config/m68k/hp300bsd.mt: Ditto.
5446         * config/m68k/hp300bsd.mh: Ditto.
5447         * config/m68k/apollo68b.mt: Ditto.
5448         * config/m68k/apollo68v.mh: Ditto.
5449         * config/m68k/apollo68b.mh: Ditto.
5450
5451 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5452
5453         * mips-tdep.c (mips_in_return_stub): Make static.
5454         (mips_gdbarch_init): Set in_solib_return_trampoline.
5455         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5456
5457 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5458
5459         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5460         * gdbarch.c, gdbarch.h: Regenerate.
5461         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5462         Add.
5463         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5464
5465 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5466
5467         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5468         (mips_gdbarch_init): Set skip_trampoline_code, 
5469         in_solib_call_trampoline.
5470         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5471         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5472
5473 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5474
5475         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5476
5477         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5478         vector type for ev registers.
5479         (e500_pseudo_register_read): New function.
5480         (e500_pseudo_register_write): New function.
5481         (e500_dwarf2_reg_to_regnum): New function.
5482         (PPC_UISA_NOFP_SPRS): New macro.
5483         (PPC_EV_REGS): New macro.
5484         (PPC_GPRS_PSEUDO_REGS): New macro.
5485         (registers_e500): New register set for e500.
5486         (variants): Add e500 variant.
5487         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5488         before setting architectural dependent variations.  Initialize ev
5489         registers numbers.  Add case for e500 architecture.  Set the
5490         number of pseudo registers.
5491
5492 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5493
5494         * rs6000-tdep.c: Clean up comments.
5495
5496 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5497
5498         * h8300-tdep.c: Re-indent file.
5499
5500 2002-08-20  Jim Blandy  <jimb@redhat.com>
5501
5502         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5503         default for this.
5504
5505 2002-08-20  Keith Seitz  <keiths@redhat.com>
5506
5507         * breakpoints.c (watch_command_1): Use internal breakpoint
5508         when setting a watchpoint_scope breakpoint.
5509
5510 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5511
5512         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5513         (build_builtin_type_vec64i): Ditto.
5514         (build_builtin_type_vec128): Ditto.
5515         (build_builtin_type_vec128i): Ditto.
5516
5517 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5518
5519         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5520         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5521         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5522         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5523         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5524         CALL_DUMMY_ADDRESS): Delete.
5525         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5526         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5527         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5528         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5529         push_return_address.
5530         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5531         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5532         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5533         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5534         mips_n32n64_push_arguments, mips_push_return_address,
5535         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5536         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5537
5538 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5539
5540         * mips-tdep.c (mips_frame_num_args): New function.
5541         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5542         frame_saved_pc, frame_args_address, frame_locals_address, 
5543         frame_num_args, and frame_args_skip.
5544         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5545         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5546         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5547         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5548
5549 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5550
5551         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5552         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5553         * mips-tdep.c (mips_store_struct_return): New function.
5554         (mips_extract_struct_value_address): New function.
5555         (mips_gdbarch_init): Set store_struct_return and
5556         extract_struct_value_address.
5557
5558 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5559
5560         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5561         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5562         (read_file_scope): Check that line_header is nonzero before
5563         decoding macro information.
5564
5565 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5566
5567         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5568         flag the general-purpose registers as floating-point on targets
5569         that don't support the floating-point registers.
5570
5571 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5572
5573         * rs6000-tdep.c (altivec_register_p): Delete.
5574         (rs6000_do_altivec_registers): Delete.
5575         (rs6000_altivec_registers_info): Delete.
5576         (rs6000_do_registers_info): Delete.
5577         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5578         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5579
5580 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5581
5582         * infcmd.c (do_registers_info): Print vector registers in hex
5583         format only.
5584         (print_vector_info): Check that printing registers
5585         makes sense.
5586         (print_float_info): Ditto.
5587
5588 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5589
5590         * mips-tdep.c (mips_gdbarch_init): Update.
5591         (mips_o32_extract_return_value): Rewrite.
5592         (mips_o32_store_return_value): Rewrite.
5593         (mips_o32_xfer_return_value): New function.
5594         (mips_xfer_register): Tweak debug print message.  Allow for
5595         buf_offset when dumping the value transfered.
5596
5597 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5598
5599         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5600         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5601         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5602         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5603         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5604
5605 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5606
5607         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5608
5609 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5610
5611         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5612         register.
5613         (P): New macro to define a register as a pseudo register.
5614         (R, R4, R8, R16, FR32, R64, R0): Updated.
5615         (struct variant): Add new fields for number of pseudo registers
5616         and number of total registers.
5617         (tot_num_registers): New macro replacing....
5618         (num_registers): ...deleted macro.
5619         (num_registers): New function.
5620         (num_pseudo_registers): New function.
5621         (variants): Update all variants to intialize new fields correctly.
5622         Postpone initialization of number of pseudo regs and real regs.
5623         (init_variants): New function.
5624         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5625         registers offsets.
5626
5627 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5628
5629         * valops.c (search_struct_field): Change error message to treat
5630         return value of 0 from value_static_field as meaning that field is
5631         optimized out.
5632         (value_struct_elt_for_reference): Ditto.
5633         * values.c (value_static_field): Treat an unresolved location the
5634         same as a nonexistent symbol.  Fix PR gdb/635.
5635         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5636         enclosed.  Fix PR gdb/574.
5637         * MAINTAINERS: Add self to Write After Approval list.
5638
5639 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5640
5641         * mips-tdep.c (mips_xfer_register): New function.
5642         (mips_n32n64_extract_return_value): Rewrite.
5643         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5644         instead of deprecated_extract_return_value.
5645
5646 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5647
5648         * rs6000-tdep.c (TDEP): Delete macro.
5649         (branch_dest): Replace use of TDEP macro with its body.
5650         (rs6000_pop_frame): Ditto.
5651         (rs6000_push_arguments): Ditto.
5652         (rs6000_skip_trampoline_code): Ditto.
5653         (rs6000_frame_saved_pc): Ditto.
5654         (rs6000_frame_chain): Ditto.
5655         (rs6000_register_name): Ditto.
5656         (rs6000_register_byte): Ditto.
5657         (rs6000_register_raw_size): Ditto.
5658         (rs6000_register_virtual_type): Ditto.
5659         (rs6000_register_convertible): Ditto.
5660         (rs6000_convert_from_func_ptr_addr): Ditto.
5661
5662 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5663
5664         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5665         conditionally.
5666         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5667         MIPS_LINUX_JB_ELEMENT_SIZE.
5668         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5669         for MAX_REGISTER_RAW_SIZE arrays.
5670         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5671         MIPS_LINUX_JB_ELEMENT_SIZE.
5672
5673 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5674
5675         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5676
5677 2002-08-19  Aidan Skinner <aidan@velvet.net>
5678
5679         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5680         ada-valprint.c ada-tasks.c.
5681         (YYFILES): Add ada-exp.y.
5682         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5683         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5684         (ada-exp.tab.o): New target.
5685                 
5686 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5687
5688         * regcache.c (regcache_xfer_part): New function.
5689         (regcache_raw_read_part): New function.
5690         (regcache_raw_write_part): New function.
5691         (regcache_cooked_read_part): New function.
5692         (regcache_cooked_write_part): New function.
5693         * regcache.h (regcache_raw_read_part): Declare.
5694         (regcache_raw_write_part): Declare.
5695         (regcache_cooked_read_part): Declare.
5696         (regcache_cooked_write_part): Declare.
5697
5698 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5699
5700         * remote.c (remote_open_1): Add async_p.
5701         (remote_async_open_1): Delete.
5702         (open_remote_target): Delete.
5703         (remote_open, extended_remote_open): Update calls to remote_open_1.
5704         (remote_async_open, extended_remote_async_open): Call
5705         remote_open_1 instead of remote_async_open_1.
5706
5707 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5708
5709         * blockframe.c: Fix a few coding standard violations.
5710
5711 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5712
5713         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5714         here from ...
5715         * config/i386/tm-i386sco5.h: ... here.  File removed.
5716         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5717
5718         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5719         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5720         (TM_FILE): Set to tm-i386.h.
5721         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5722         * config/i386/tm-i386v.h: Remove file.
5723         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5724         instead of "i386/tm-i386v.h".
5725         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5726         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5727         "i386/tm-i386v.h".
5728         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5729         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5730         "i386/tm-i386.h".
5731
5732 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5733
5734         * config/i386/nm-i386v.h: Add protection against
5735         multiple-inclusion.
5736         (i386_register_u_addr): Remove prototype.
5737         (register_u_addr): New prototype.
5738         (REGISTER_U_ADDR): Redefine accordingly.
5739         * i386v-nat.c: Improve several comments.
5740         (i386_register_u_addr): Change signature and rename to
5741         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5742         ubase variable.
5743
5744 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5745
5746         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5747         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5748         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5749         deprecated_extract_return_value.
5750         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5751         rename mips_o32o64_push_arguments.
5752         (mips_gdbarch_init): Update.
5753         (mips_extract_return_value): Delete.
5754         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5755         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5756         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5757         (mips_n32n64_extract_return_value): Clone
5758         mips_extract_return_value.
5759         (mips_store_return_value): Delete.
5760         (mips_o32_store_return_value): Clone mips_store_return_value.
5761         (mips_o64_store_return_value): Clone mips_store_return_value.
5762         (mips_eabi_store_return_value): Clone mips_store_return_value.
5763         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5764
5765 2002-08-18  Aidan Skinner <aidan@velvet.net>
5766
5767         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5768         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5769                 
5770 2002-08-18  Aidan Skinner <aidan@velvet.net>
5771
5772         * ada-lang.c: Run through gdb_indent.sh.
5773         * ada-lang.h: Run through gdb_indent.sh.
5774         * ada-tasks.c: Run through gdb_indent.sh.
5775         * ada-typeprint.c: Run through gdb_indent.sh.
5776         * ada-valprint.c: Run through gdb_indent.sh.
5777
5778 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5779
5780         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5781         ABI.
5782
5783 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5784
5785         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5786
5787         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5788         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5789
5790         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5791         write_register_gen instead of write_register_bytes.
5792
5793         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5794         i[3456]-*-osf1mk* configurations have been made obsolete.
5795         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5796         i[3456]86-*-osf1mk* hosts obsolete.
5797         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5798         targets obsolete.
5799         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5800         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5801         config/i386/i386m3.mt, config/i386/nm-m3.h,
5802         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5803         config/i386/i386mk.mh, config/i386/i386mk.mt,
5804         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5805         obsolete.
5806         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5807         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5808         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5809
5810 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5811
5812         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5813         (hppa_value_returned_from_stack): Declare.
5814         (hppa_extract_return_value): Declare.
5815         * config/pa/hppa.mt: New file.
5816         * configure.tgt: Recognize hppa*-*-*.
5817         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5818
5819 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5820
5821         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5822         comment.
5823
5824 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5825
5826         * top.c (gdb_rl_operate_and_get_next): Make sure
5827         operate-and-get-next functions correctly even when the history
5828         list is completely filled.
5829
5830 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5831
5832         * MAINTAINERS (Target Instruction Set Architectures): Rename
5833         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5834         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5835         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5836         already listed under Host/Native.
5837
5838         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5839         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5840         mips*-*-*.
5841
5842 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5843
5844         * config/ia64/ia64.mt: New file.
5845         * config/alpha/alpha.mt: New file.
5846         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5847         ia64-linux-gnu.  Mention that ia64-elf is broken.
5848         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5849
5850 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5851
5852         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5853         generic_func_frame_valid instead of func_frame_valid.
5854
5855 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5856
5857         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5858         procfs appears to be broken when debugging on multi-processor
5859         machines. So enable software single stepping in order to avoid
5860         using the procfs interface to do next/step operations, using
5861         internal breakpoints instead.
5862
5863         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5864         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5865         make this pc address equal to the value it would have if the
5866         system stepping capability was used. Also set a new flag used
5867         to ensure that we don't readjust the PC one more time later.
5868
5869         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5870         address by DECR_PC_AFTER_BREAK when software single step is
5871         in use for this architecture, as this has already been taken
5872         care of in handle_inferior_event().
5873
5874 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5875
5876         * infrun.c (handle_inferior_event): Minor reformatting, to make
5877         a rather long condition expression easier to read.
5878
5879 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5880
5881         * Makefile.in (gdbtk.o): Move to end of file.
5882         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5883         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5884         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5885         (gdbtk-wrapper.o, gdbres.o): Ditto.
5886
5887 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5888
5889         * Makefile.in (copying.o): Separate out compile rule.
5890         (hpux-thread.o, procfs.o, signals.o): Ditto.
5891         (v850ice.o, z8k-tdep.o): Ditto.
5892         (tui-file.o): Move to TUI section.
5893         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5894         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5895
5896 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5897
5898         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5899         skip_trampoline_code, for better namespace-proofing.   
5900
5901         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5902
5903 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5904
5905         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5906
5907 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5908
5909         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5910         signal, check whether we hit a breakpoint before checking for a
5911         single step breakpoint. Otherwise, GDB fails to notice that a
5912         breakpoint has been hit when stepping onto a breakpoint.
5913
5914 2002-08-16  Keith Seitz  <keiths@redhat.com>
5915
5916         * gdb-events.sh (clear_gdb_event_hooks): New function.
5917         * gdb-events.c: Regenerate.
5918         * gdb-events.h: Regenerate.
5919
5920 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5921
5922         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5923         not_a_sw_breakpoint.
5924         * breakpoint.h (bpstat_stop_status): Add parameter names.
5925
5926 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5927
5928         * remote.c (remote_insert_hw_breakpoint)
5929         (remote_remove_hw_breakpoint): Fix calculation of length field
5930         for Z-packet.
5931
5932 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5933
5934         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5935         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5936         (supply_fpregset): Ditto.
5937         
5938         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5939         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5940         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5941         (TARGET_READ_SP): Delete.
5942         (DO_REGISTERS_INFO): Delete.
5943         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5944         Delete.
5945         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5946         from macros to functions.
5947
5948         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5949         (mips_register_convertible, mips_register_convert_to_virtual,
5950         mips_register_convert_to_raw): Make static.
5951         (mips_read_sp): New function.
5952         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5953         (mips_do_registers_info): Make static.
5954         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5955         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5956         (mips_register_convert_from_type, mips_register_convert_to_type):
5957         New functions.
5958         (mips_gdbarch_init): Set up function_start_offset, 
5959         register_virtual_size, pc_in_sigtramp.
5960
5961 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5962
5963         * infcmd.c (vector_info): New function.
5964         (_initialize_infcmd): Add command "info vector".
5965         (print_vector_info): New function.
5966
5967         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5968         * gdbarch.h, gdbarch.c: Regenerate.
5969
5970 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5971
5972         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5973         ``print_all''.  Only print vector registers when ``print_all''.
5974
5975 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5976
5977         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5978         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5979
5980         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5981         Add `args' parameter.
5982         * gdbarch.h, gdbarch.c: Regenerate.
5983         
5984         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5985         
5986         * infcmd.c (float_info): Call print_float_info.
5987         (print_float_info): New function.  By default, print the
5988         floating-point registers.
5989
5990         * arch-utils.h (default_print_float_info): Delete declaration.
5991         * arch-utils.c (default_print_float_info): Delete function.
5992         
5993 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5994
5995         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5996         out define.
5997
5998         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5999         FRAME.
6000
6001         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6002         * configure.host: Make i[3456]86-*-aix host obsolete.
6003         * configure.tgt: Make i[3456]86-*-aix target obsolete.
6004         * config/i386/i386aix.mh, config/i386/i386aix.mt,
6005         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6006         config/i386/xm-i386aix.h: Make files obsolete.
6007         * i386aix-nat.c: Make file obsolete.
6008         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6009         (i386aix-nat.o): Make target obsolete.
6010
6011         * config/i386/nm-gnu.h: Removed.
6012         * config/i386/nm-i386gnu.h: New file.
6013         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6014         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6015         Moved here from ...
6016         * config/i386/tm-i386gnu.h: ... here.  Removed.
6017         * config/i386/xm-i386gnu.h: Removed.
6018         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6019         (NAT_FILE): Set to nm-i386gnu.h.
6020         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6021         * i386-tdep.c: New file.
6022         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6023         (i386gnu-tdep.o): Specify dependencies.
6024
6025 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
6026
6027         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6028         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6029         Adjust a few comments to reflect reality a bit closer.
6030         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6031         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6032         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6033         target_insert_watchpoint, target_remove_watchpoint):
6034         Move defines to ...
6035         * config/i386/nm-i386sco5.h: ... here.
6036         (kernel_u_size): Add prototype.  Improve a few comments and add
6037         protection against multiple inclusion.
6038         
6039         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6040         out define.
6041
6042         * uw-thread.c (SP_ARG0): Define if not already defined.
6043         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6044
6045         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6046
6047         * config/i386/tm-i386.h: Don't include "regcache.h".
6048
6049         * i387-tdep.h (i387_print_float_info): New prototype.
6050         * i387-tdep.c (print_i387_value, print_i387_ext,
6051         print_i387_status_word, print_i387_control_word): Add `struct
6052         ui_file *' argument and use it for output.
6053         (i387_print_float_info): Renamed from i387_float_info.  Add
6054         `struct gdbarch *' and `struct ui_file *' arguments and use the
6055         latter for output.
6056         * i386-tdep.c: Include "i387-tdep.h".
6057         (i386_gdbarch_init): Set print_float_info.
6058         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6059         (FLOAT_INFO): Remove define.
6060
6061 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6062
6063         * mips-tdep.c (mips_push_arguments): Rename to
6064         mips_eabi_push_arguments, and tune for EABI.
6065         (MIPS_REGS_HAVE_HOME_P): Delete.
6066         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6067         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6068         Delete references to mips_regs_have_home_p.
6069
6070 2002-08-14  Keith Seitz  <keiths@redhat.com>
6071
6072         * Makefile.in (install-gdbtk): Create insight plugin directory.
6073         Install plugins.tcl file.
6074
6075 2002-08-14  Keith Seitz  <keiths@redhat.com>
6076
6077         * configure.in: Move SUBDIRS to near top of the file so that
6078         --enable options may add things to it.
6079         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6080         * configure: Regenerate.
6081
6082 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6083
6084         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6085         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6086         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6087
6088 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6089
6090         * vax-tdep.c (vax_get_saved_register): Delete function.
6091         (vax_gdbarch_init): Update.
6092         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6093         (ns32k_gdbarch_init): Update.
6094         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6095         (alpha_gdbarch_init): Update.
6096
6097 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6098
6099         * regcache.c (init_regcache_descr): Overallocate the
6100         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6101         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6102         nr_raw_registers.
6103         (set_register_cached): Add range checking assertions.  Use
6104         current_regcache.
6105
6106 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6107
6108         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6109         numbers for MMX registers.
6110
6111 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6112
6113         * i386-tdep.c (i386_gdbarch_init): Use
6114         generic_unwind_get_saved_register.
6115
6116 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6117
6118         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6119         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6120         target vector.
6121         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6122         Delete.  Add comment regarding this now-deleted target method.
6123
6124 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6125
6126         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6127         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6128         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6129         real PC and the page number (if it's within the memory bank window).
6130         (m68hc11_pseudo_register_write): Likewise when saving.
6131         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6132         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6133         (m68hc11_register_raw_size): And use 32-bit for it.
6134         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6135         16K memory bank is used by the prog; also use the virtual pc.
6136
6137 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6138
6139         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6140         (m68hc11_gdbarch_init): Install it in gdbarch.
6141         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6142         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6143         (MSYMBOL_SIZE): New for documentation.
6144         (insn_return_kind): Enum to specify how a function returns.
6145         (frame_extra_info): Cleanup and record the return mode.
6146         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6147         register in address computation.
6148         (m68hc11_get_return_insn): New to obtain the return instruction used
6149         by the function.
6150         (m68hc11_frame_init_saved_regs): Take into account the return
6151         instruction used by the function for far and interrupt functions.
6152         (m68hc11_init_extra_frame_info): Take into account page register.
6153         (m68hc11_frame_args_address): Adjust according to the return mode.
6154         (show_regs): Print page register only when it's used.
6155
6156 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6157
6158         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6159         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6160         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6161         registers.
6162         (m68hc11_register_raw_size): Likewise.
6163
6164 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6165
6166         * i386-tdep.c (i386_register_name): Handle mmx registers.
6167         (mmx_regnum_p): New function.
6168         (i386_mmx_names): New array.
6169         (mmx_num_regs): New variable.
6170         (i386_pseudo_register_read): New function.
6171         (i386_pseudo_register_write): New function.
6172         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6173
6174         * regcache.c (regcache_raw_read_unsigned): New function.
6175         (regcache_raw_read_signed): New function.
6176         * regcache.h (regcache_raw_read_unsigned): Declare.
6177         (regcache_raw_read_signed): Declare.
6178
6179 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6180
6181         * regcache.c (regcache_raw_read_as_address): Delete function.
6182         (regcache_cooked_read_signed): New function.
6183         (regcache_cooked_read_unsigned): New function.
6184         * regcache.h (regcache_cooked_read_signed): Declare.
6185         (regcache_cooked_read_unsigned): Declare.
6186         (regcache_raw_read_as_address): Delete declaration.
6187
6188         * blockframe.c (generic_read_register_dummy): Use
6189         regcache_cooked_read_unsigned.
6190         * i386-tdep.c (i386_extract_struct_value_address): Use
6191         regcache_cooked_read_unsigned.
6192
6193 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6194
6195         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6196         double sizes according to ELF ABI flags.
6197         (gdbarch_tdep): Record elf_flags.
6198
6199 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6200
6201         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6202         (m6812_prolog): They can appear in 68HC12 function prologue.
6203         (m68hc11_frame_chain): Cleanup.
6204
6205 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6206
6207         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6208         declarations.
6209         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6210         (i386_linux_register_raw_size): Delete function.
6211         (i386_linux_init_abi): Update.
6212         * i386-tdep.c (i386_register_raw_size): Delete function.
6213         (i386_register_byte): Delete function.
6214         (i386_gdbarch_init): Update.
6215         (i386_register_size): Delete array.
6216         (i386_register_offset): Delete array.
6217
6218         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6219         (REGISTER_RAW_SIZE): Delete macro.
6220         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6221         (REGISTER_BYTE): Delete macro.
6222
6223 2002-08-11  Aidan Skinner <aidan@velvet.net>
6224
6225         * ada-lang.c (ada_lookup_partial_symbol)
6226         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6227         prototype names so that grep ^func works properly.
6228
6229         * ada-lang.c (ada_array_element_type)
6230         (ada_lookup_partial_symbol): Fix typos in parameter list.
6231
6232         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6233         Fix prototype names so that grep ^func works properly.
6234         
6235 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6236             Elena Zannoni  <ezannoni@redhat.com>
6237             Martin M. Hunt  <hunt@redhat.com>
6238
6239         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6240         (build_builtin_type_vec128i): Set the vector bit.
6241         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6242         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6243         (build_builtin_type_vec64): New function.
6244         (build_builtin_type_vec64i): New function.
6245         (build_gdbtypes): Initialize builtin_type_vec64 and
6246         builtin_type_vec64i.
6247
6248 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6249
6250         * regcache.c (regcache_dump): Compare the register offset
6251         with REGISTER_BYTE.
6252         * arch-utils.c (generic_register_byte): New function.
6253         * arch-utils.h (generic_register_byte): Declare.
6254         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6255         * gdbarch.h, gdbarch.c: Regenerate.
6256
6257 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6258
6259         * regcache.c: Include "gdbcmd.h"
6260         (_initialize_regcache): Add commands "maintenance print
6261         registers", "maintenance print raw-registers" and "maintenance
6262         print cooked-registers".
6263         (enum regcache_dump_what): Define.
6264         (dump_endian_bytes): New function.
6265         (regcache_dump): New function.
6266         (regcache_print): New function.
6267         (maintenance_print_registers): New function.
6268         (maintenance_print_raw_registers): New function.
6269         (maintenance_print_cooked_registers): New function.
6270         * Makefile.in (regcache.o): Update dependencies.
6271
6272 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6273
6274         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6275         (mips_push_arguments): Correct some comments.  Use paddr_nz
6276         for printing addresses in debug output.  Replace static
6277         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6278         (mips_n32n64_push_arguments): New function, cloned from
6279         mips_push_arguments and tuned for the n32/n64 ABI.
6280         (mips_push_register): Buffer needs dynamic allocation.
6281         (mips_print_register): Ditto.
6282         (do_gp_register_row): Ditto.
6283         (mips_store_return_value): Ditto.
6284         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6285
6286 2002-08-09  Don Howard  <dhoward@redhat.com>
6287
6288         * memattr.c (mem_info_command): Print special case of upper bound
6289         as max CORE_ADDR + 1.
6290
6291 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6292
6293         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6294         returns structs by ref if they're too big to fit in two registers.
6295
6296 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6297
6298         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6299         saved regs value.
6300         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6301         mips_find_saved_regs().
6302         (mips_pop_frame): Likewise.
6303
6304 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6305
6306         * blockframe.c (frame_saved_regs_register_unwind): Revise
6307         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6308         frames are in use.
6309
6310 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6311         
6312         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6313         T-packets; the 'a' is not taken as a register number.
6314         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6315         (remote_stopped_data_address): New functions; add to target
6316         vector.
6317         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6318         prototypes to match other implementations of this
6319         function. replace integer argument with pointer -- the length
6320         field in the Z-packet is the length of what is pointed to or 1 if
6321         pointer is null. Add to target vector.
6322         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6323         target vector.
6324
6325         From Mark Salter:
6326         * remote.c (remote_wait): Add support to extract optional
6327         watchpoint information from T-packet. Ignore unrecognized
6328         optional info in T-packet.
6329         (remote_async_wait): Ditto.
6330
6331 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6332
6333         * cli/cli-dump.c: Change fopen modes to use binary open modes
6334         as defined in include/fopen-bin.h throughout.
6335
6336 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6337
6338         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6339
6340 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6341
6342         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6343         assertion failure by returning early after a warning.
6344
6345 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6346
6347         * mips-tdep.c (mips_find_saved_regs): Make static.
6348         (mips_frame_init_saved_regs): New function.
6349         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6350         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6351         (mips_find_saved_regs): Delete declaration.
6352
6353 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6354
6355         * remote.c (remote_wait, remote_async_wait): Change
6356         thread_num from int to ULONGEST.
6357         (unpack_varlen_hex): Change result parameter from
6358         int * to ULONGEST *.
6359
6360 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6361
6362         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6363         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6364         powerpc*-*-*.
6365         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6366
6367 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6368
6369         * gcore.c (override_derive_stack_segment): Delete variable.
6370         (preempt_derive_stack_segment): Delete function.
6371         (derive_stack_segment): Delete function.
6372         (default_derive_stack_segment): Renamed to derive_stack_segment.
6373         (override_derive_heap_segment): Delete variable.
6374         (preempt_derive_heap_segment): Delete function.
6375         (derive_heap_segment): Delete function.
6376         (default_derive_heap_segment): Rename to derive_heap_segment.
6377
6378 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6379
6380         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6381         * mips-tdep.c (mips_EABI_use_struct_convention, 
6382         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6383         New functions.  (mips_use_struct_convention): Delete.
6384         (mips_gdbarch_init): set use_gdbarch_convention.
6385
6386 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6387
6388         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6389         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6390         mips_o32_reg_struct_has_addr): New functions.
6391         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6392
6393 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6394
6395         * regcache.c (pseudo_register): Delete function.
6396         (fetch_register): Delete function.
6397         (store_register): Delete function.
6398         (regcache_raw_read, legacy_read_register_gen): Use
6399         target_fetch_registers instead of fetch_register.
6400         (legacy_write_register_gen, regcache_raw_write): Use
6401         target_store_register instead of store_register.
6402         (write_register_bytes): Ditto.
6403
6404         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6405         (STORE_PSEUDO_REGISTER): Delete.
6406         * gdbarch.h, gdbarch.c: Regenerate.
6407
6408 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6409
6410         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6411         write dump file binary.
6412
6413 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6414
6415         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6416         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6417         (mips_gdbarch_init): Set N32 target to be mips64.
6418
6419 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6420
6421         * frame.c (find_saved_register): Break out of loop once saved
6422         register address is found.  Don't mention sparc in loop comment
6423         anymore.
6424
6425 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6426
6427         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6428         mips_default_saved_regsize to 8.
6429
6430 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6431
6432         * gcore.c: Do not include <sys/procfs.h>.
6433         * Makefile.in (gcore.o): Update dependencies.
6434
6435 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6436
6437         * configure.tgt: Make arc-*-* obsolete.
6438         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6439         * MAINTAINERS: Make arc-elf obsolete.
6440         * arc-tdep.c: Make file obsolete.
6441         * config/arc/arc.mt: Ditto.
6442         * config/arc/tm-arc.h: Ditto.
6443
6444 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6445
6446         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6447
6448 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6449
6450         * mcore-tdep.c (mcore_gdbarch_init): Use
6451         generic_unwind_get_saved_register instead of
6452         generic_get_saved_register.
6453         * v850-tdep.c (v850_gdbarch_init): Ditto.
6454         * frv-tdep.c (frv_gdbarch_init): Ditto.
6455         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6456         * s390-tdep.c (s390_gdbarch_init): Ditto.
6457         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6458         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6459         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6460
6461 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6462
6463         * objfiles.h: Add missing #include "symfile.h"
6464
6465         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6466
6467 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6468
6469         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6470         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6471         of FIELD_BITSIZE.
6472
6473 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6474
6475         * NEWS: Cleanup and nitpick.
6476
6477 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6478
6479         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6480
6481 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6482
6483         * Makefile.in (gdbtk-bp.o): Update dependencies.
6484         (gdbtk-register.o): Ditto.
6485         (gdbtk-varobj.o): Ditto.
6486
6487 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6488
6489         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6490         m68hc11_fetch_pseudo_register.
6491         (m68hc11_pseudo_register_write): Replace
6492         m68hc11_store_pseudo_register.
6493         (m68hc11_gdbarch_init): Update.
6494
6495 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6496
6497         * gdbarch.sh: Include "gdb_string.h".
6498         * gdbarch.c: Regenerate.
6499
6500         * regcache.c: Include "gdb_string.h".
6501         * ax-general.c: Ditto.
6502         * varobj.c: Ditto.
6503         * std-regs.c: Ditto.
6504         * fbsd-proc.c: Ditto.
6505         * thread.c: Ditto.
6506
6507         * Makefile.in (regcache.o): Update dependencies.
6508         (thread.o, gdbarch.o): Ditto.
6509         (ax-general.o, gdbarch.o): Ditto.
6510         (varobj.o, std-regs.o): Ditto.
6511         (fbsd-proc.o): Specify dependencies.
6512
6513 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6514
6515         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6516         regnum.
6517         (regcache_cooked_write): Ditto.
6518
6519 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6520
6521         * regcache.c (regcache_cooked_read): New function.
6522         (regcache_cooked_write): New function.
6523         (read_register_gen): Rewrite using regcache_cooked_read.
6524         (write_register_gen): Rewrite using regcache_cooked_write.
6525
6526         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6527         Declare.
6528
6529 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6530
6531         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6532         Replace the architecture methods register_read and register_write.
6533         * gdbarch.h, gdbarch.c: Regenerate.
6534         * regcache.c (init_regcache_descr): Update.
6535         (read_register_gen): Update.
6536         (write_register_gen): Update.
6537         (supply_register): Update comment.
6538
6539         * sh-tdep.c (sh_gdbarch_init): Update.
6540         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6541         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6542         pointer.  Update code.
6543         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6544         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6545         void pointer.  Update code.
6546         (sh64_register_write): Delete.
6547         (sh4_register_read): Delete.
6548         (sh64_register_read): Delete.
6549         (sh4_register_write): Delete.
6550         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6551         void pointer, `to' parameter a void pointer.
6552         (sh_sh64_register_convert_to_raw): Ditto.
6553
6554 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6555
6556         * mips-tdep.c (mips_register_virtual_type): Use architecture
6557         invariant return values.
6558
6559 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6560
6561         * linux-proc.c: Include "gdb_string.h".
6562         * Makefile.in (linux-proc.o): Update dependency list.
6563
6564 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6565
6566         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6567         comment.
6568
6569 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6570
6571         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6572         to_insert_watchpoint, to_remove_watchpoint,
6573         to_stopped_by_watchpoint, to_stopped_data_address,
6574         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6575         target vecctor. Define their corresponding macros so they call
6576         them.
6577         
6578         * target.c: Add default and debug versions of for
6579         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6580         to_insert_watchpoint, to_remove_watchpoint,
6581         to_stopped_by_watchpoint, to_stopped_data_address,
6582         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6583
6584 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6585
6586         * mips-tdep.c (mips_register_virtual_type): New function.
6587         (mips_gdbarch_init): Register mips_register_virtual_type()
6588         with gdbarch machinery.
6589         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6590         this file instead of tm-bigmips.h.
6591         (MIPS_REGSIZE): Delete this macro.
6592         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6593         multiarch version in mips-tdep.c will be found.
6594
6595 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6596
6597         * NEWS: Menion that CHILL has been made obsolete.
6598
6599         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6600         * stabsread.c (read_range_type): Ditto.
6601         * gdbtypes.h: Ditto.
6602         * language.c (binop_type_check): Ditto.
6603         (binop_result_type): Ditto.
6604         (integral_type): Ditto.
6605         (character_type): Ditto.
6606         (string_type): Ditto.
6607         (boolean_type): Ditto.
6608         (structured_type): Ditto.
6609         (lang_bool_type): Ditto.
6610         (binop_type_check): Ditto.
6611         * language.h (_LANG_chill): Ditto.
6612         * dwarfread.c (set_cu_language): Ditto.
6613         * dwarfread.c (CHILL_PRODUCER): Ditto.
6614         * dwarfread.c (handle_producer): Ditto.
6615         * expression.h (enum exp_opcode): Ditto.
6616         * eval.c: Ditto for comments.
6617         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6618         * expprint.c (print_subexp): Ditto.
6619         (print_subexp): Ditto.
6620         * valops.c (value_cast): Ditto.
6621         (search_struct_field): Ditto.
6622         * value.h (COERCE_VARYING_ARRAY): Ditto.
6623         * symfile.c (init_filename_language_table): Ditto.
6624         (add_psymbol_with_dem_name_to_list): Ditto.
6625         * valarith.c (value_binop): Ditto.
6626         (value_neg): Ditto.
6627         * valops.c (value_slice): Ditto.
6628         * symtab.h (union language_specific): Ditto.
6629         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6630         (SYMBOL_DEMANGLED_NAME): Ditto.
6631         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6632         * defs.h (enum language): Ditto.
6633         * symtab.c (got_symtab): Ditto.
6634         * utils.c (fprintf_symbol_filtered): Ditto.
6635
6636         * ch-typeprint.c: Make file obsolete.
6637         * ch-valprint.c: Make file obsolete.
6638         * ch-lang.h: Make file obsolete.
6639         * ch-exp.c: Make file obsolete.
6640         * ch-lang.c: Make file obsolete.
6641
6642         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6643         CHILL_LIB.
6644         (TARGET_FLAGS_TO_PASS): Ditto.
6645         (CHILLFLAGS): Obsolete.
6646         (CHILL): Obsolete.
6647         (CHILL_FOR_TARGET): Obsolete.
6648         (CHILL_LIB): Obsolete.
6649         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6650         ch-valprint.c.
6651         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6652         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6653         ch-lang.o.
6654         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6655         targets.
6656
6657 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6658
6659         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6660         This does not change anything at the moment, but will be helpful
6661         later when full Ada support is integrated.
6662
6663 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6664
6665         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6666         help message.
6667
6668 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6669
6670         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6671         and save it in a local variable.  Use variable in later test.
6672
6673 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6674
6675         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6676         test.  (Thanks to Daniel Jacobowitz.)
6677         
6678 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6679
6680         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6681         (mips_abi_strings): Add "n64".
6682         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6683
6684 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6685
6686         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6687         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6688
6689 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6690
6691         * utils.c (host_pointer_to_address, address_to_host_pointer):
6692         Use gdb_assert() instead of explicit call to internal_error().
6693
6694 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6695
6696         * Makefile.in (rs6000-nat.o): Update dependencies.
6697
6698         From Nicholas Duffek:
6699         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6700         (aix-thread.o): New rule.
6701         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6702         * config/powerpc/aix432.mh: New file.
6703
6704 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6705
6706         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6707         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6708         (fetch_core_registers, ppc_linux_supply_gregset)
6709         (ppc_linux_supply_fpregset): New functions.
6710         (ppc_linux_regset_core_fns): New.
6711         (_initialize_ppc_linux_tdep): Call add_core_fns.
6712         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6713         and ppc_linux_supply_gregset.
6714         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6715         (supply_fpregset): Call ppc_linux_supply_fpregset.
6716         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6717         corelow.o.
6718         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6719
6720 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6721
6722         * symtab.c (lookup_symbol): Demangle before lowercasing.
6723
6724 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6725
6726         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6727         declaration.
6728         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6729         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6730         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6731         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6732         "gdb_string.h".
6733         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6734         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6735         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6736         (avr-tdep.o, mon960-rom.o): Ditto.
6737         (aout_stabs_gnu_h): Define.
6738         (symtab_h): Remove $(gdb_obstack_h).
6739
6740 2002-07-30  Jim Blandy  <jimb@redhat.com>
6741
6742         Patch from David Carlton <carlton@math.stanford.edu>:
6743         * gdbinit.in: Move the `dir' commands that add GDB's own source
6744         directory to the search path to the end, so that the `gdb' source
6745         directory will be searched first.
6746
6747 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6748
6749         * gdb_obstack.h: New file.
6750         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6751         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6752         * objfiles.h: Include "gdb_obstack.h".
6753         * Makefile.in (gdb_obstack_h): Define.
6754         (symtab_h): Add $(gdb_obstack_h).
6755         (objfiles_h): Add $(gdb_obstack_h).
6756         
6757         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6758         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6759         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6760         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6761         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6762         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6763         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6764         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6765
6766         * Makefile.in (bcache.o): Update dependencies.
6767         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6768         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6769         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6770         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6771         (stabsread.o, symfile.o, symmisc.o): Ditto.
6772         (symtab.o, typeprint.o, macroexp.o): Ditto.
6773         (macrotab.o, mdebugread.o): Ditto.
6774         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6775         (coff_ecoff_h, aout_aout64_h): Define.
6776         (aout_stabs_gnu_h, libaout_h): Define.
6777
6778 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6779
6780         * regcache.c (struct regcache_descr): Rename nr_registers to
6781         nr_cooked_registers.  Revise comments describing the structure
6782         member fields.
6783         (init_regcache_descr): Update.
6784         (init_legacy_regcache_descr): Update.
6785         (read_register_gen, write_register_gen): When a cooked register in
6786         the raw register range, directly access the value from the raw
6787         register cache.
6788
6789 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6790
6791         * z8k-tdep.c: Do not include "obstack.h".
6792         * h8300-tdep.c, h8500-tdep.c: Ditto.
6793         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6794         * valprint.c, v850-tdep.c: Ditto.
6795         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6796         * mn10200-tdep.c: Ditto.
6797
6798         * Makefile.in (z8k-tdep.o): Update dependencies.
6799         (m68hc11-tdep.o, valprint.o): Ditto.
6800         (v850-tdep.o, d10v-tdep.o): Ditto.
6801         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6802         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6803         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6804         (sh_opc_h, gdb_sim_sh_h): Define.
6805         (elf_sh_h, elf_bfd_h): Define.
6806         (opcode_m68hc11_h): Define.
6807         (OPCODES_SRC, OPCODES_DIR): define.
6808         (OPCODES): Use $(OPCODES_DIR).
6809         (gdb_sim_d10v_h): Rename sim_d10v_h.
6810         (gdb_sim_arm_h): Rename sim_arm_h.
6811
6812 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6813
6814         * utils.c (host_pointer_to_address, address_to_host_pointer):
6815         Change internal_error() message to indicate function responsible
6816         for the error.
6817
6818 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6819
6820         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6821         calls to local_hex_string_custom().
6822
6823 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6824
6825         * irix5-nat.c: Move IRIX shared library support from here...
6826         * solib-irix.c: ...to here.  Revised substantially to work with
6827         generic solib framework.
6828
6829         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6830         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6831         * mips-irix-tdep.c: New file.
6832
6833         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6834         (mips-irix-tdep.o, solib-irix.o): New rules.
6835         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6836         solib-irix.o.
6837         * config/mips/irix6.mt (TDEPFILES): Likewise.
6838         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6839
6840 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6841
6842         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6843         disabled (via ``#if 0'') includes.
6844
6845 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6846
6847         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6848         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6849         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6850         Add support for the fpscr register.
6851         * rs6000-nat.c (regmap, fetch_inferior_registers)
6852         (store_inferior_registers, fetch_core_registers): Likewise.
6853
6854 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6855
6856         * rs6000-nat.c (language.h): Include.
6857         (special_regs): Delete this array.
6858         (regmap): New function.
6859         (fetch_register, store_register):  Use regmap() to map gdb
6860         register numbers to ptrace register numbers.  Also, use
6861         outputs from regmap() to make decisions regarding type of
6862         ptrace() call to make.  In particular, don't compare against
6863         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6864         (fetch_inferior_registers, store_inferior_registers): Where
6865         possible, obtain register numbers from tdep struct.  Don't
6866         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6867         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6868         (LAST_UISA_SP_REGNUM): Delete.
6869         
6870 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6871
6872         * rs6000-nat.c (ppc-tdep.h): Include.
6873         (fetch_registers, store_register, fetch_core_registers): Don't
6874         access registers[] directly.  Instead, use supply_register() or
6875         regcache_collect() as appropriate.
6876         (find_toc_address): Format hex address with local_hex_string().
6877
6878 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6879
6880         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6881         bfd/elf32-frv.c.
6882
6883 2002-07-24  Tom Tromey  <tromey@redhat.com>
6884
6885         * jv-exp.y: Marked all strings with _().
6886         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6887         internal_error.
6888         (MethodInvocation, CastExpression, parse_number, yyerror,
6889         java_type_from_name, push_expression_name, yylex): Typo fixes.
6890
6891 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6892
6893         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6894         (tee_file_flush, tee_file_write, tee_file_fputs)
6895         (tee_file_isatty): New.
6896         * ui-file.h (tee_file_new): Add prototype.
6897
6898 2002-07-24  Aidan Skinner <aidan@velvet.net>
6899
6900         * ada-lang.c: Change k&r style function definitions to prototyped
6901         form.
6902         * ada-typeprint.c: Change k&r style function definitions to prototyped
6903         form.
6904         * ada-valprint.c: Change k&r style function definitions to prototyped
6905         form.
6906         
6907 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6908
6909         * README: Remove reference to remote-bug.
6910         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6911         remote-bug.c.
6912         (m88k-nat.o): Delete rule.
6913         (m88k-tdep.o): Delete rule.
6914         (remote-bug.o): Delete rule.
6915         * MAINTAINERS: Mark as obsolete.
6916         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6917         * m88k-tdep.c: Make file obsolete.
6918         * config/m88k/m88k.mh: Ditto.
6919         * config/m88k/delta88v4.mh: Ditto.
6920         * config/m88k/delta88v4.mt: Ditto.
6921         * config/m88k/delta88.mt: Ditto.
6922         * config/m88k/delta88.mh: Ditto.
6923         * remote-bug.c: Ditto.
6924         * config/m88k/tm-delta88.h: Ditto.
6925         * config/m88k/nm-delta88v4.h: Ditto.
6926         * config/m88k/xm-delta88.h: Ditto.
6927         * config/m88k/xm-dgux.h: Ditto.
6928         * config/m88k/tm-m88k.h: Ditto.
6929         * config/m88k/nm-m88k.h: Ditto.
6930         * config/m88k/tm-delta88v4.h: Ditto.
6931         * m88k-nat.c: Ditto.
6932         * cxux-nat.c: Ditto.
6933         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6934         and m88*-*-* obsolete.
6935         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6936         m88*-*-* obsolete.
6937
6938 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6939
6940         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6941         constant.  Same for local pointer variables.
6942         (extract_signed_integer): Ditto.
6943         * defs.h (extract_unsigned_integer): Update.
6944         (extract_signed_integer): Update.
6945
6946 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6947
6948         * regcache.c (regcache_raw_write): Change buf parameter to a
6949         constant void pointer.
6950         (regcache_raw_read): Change buf parameter to a void pointer.
6951         (legacy_write_register_gen): Change myaddr parameter a constant
6952         void pointer.
6953         (supply_register): Change val parameter to a const void pointer.
6954         * regcache.h (regcache_raw_write): Update declaration.
6955         (regcache_raw_read): Update declaration.
6956         (supply_register): Update declaration.
6957
6958 2002-07-24  Tom Tromey  <tromey@redhat.com>
6959
6960         * defs.h (gdb_readline_wrapper): Declare.
6961         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6962         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6963         * top.c (gdb_readline_wrapper): New function.
6964         (command_line_input): Use it.
6965
6966 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6967
6968         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6969         regcache_read and regcache_write.
6970         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6971         * regcache.c: Update.
6972         * sh-tdep.c (sh64_push_arguments): Update comment.
6973         (sh_pseudo_register_read): Update.
6974         (sh_pseudo_register_write): Update.
6975         (sh4_register_read): Update.
6976         (sh4_register_write): Update.
6977         (sh64_pseudo_register_read): Update.
6978         (sh64_pseudo_register_write): Update.
6979         (sh64_register_read): Update.
6980         (sh64_register_write): Update.
6981         * i386-tdep.c (i386_extract_return_value): Update.
6982         (i386_extract_struct_value_address): Update.
6983         (i386_extract_return_value): Update.
6984         * blockframe.c (generic_read_register_dummy): Update.
6985         (generic_call_dummy_register_unwind): Update
6986         * infrun.c (write_inferior_status_register): Update.
6987
6988 2002-07-23  Jim Blandy  <jimb@redhat.com>
6989
6990         * parser-defs.h (expression_context_pc): Make this extern.
6991         (Thanks to Michael Snyder.)
6992
6993 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6994
6995         GDB 5.2.1 released from 5.2 branch.
6996         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6997         * README: Update to mention 5.2.1.
6998
6999 2002-07-23  Mark Salter  <msalter@redhat.com>
7000
7001         * remote.c (remote_read_bytes): Fix check for error.
7002
7003 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7004
7005         * aix-thread.c (language.h): Include.
7006         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7007         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7008         Print newlines at end of debug messages.
7009         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7010         (pdc_write_data): Use local_hex_string() instead of %llx formats.
7011
7012 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7013
7014         * aix-thread.c (ppc-tdep.h): Include.
7015         (special_register_p): New function.
7016         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7017         (store_regs_user_thread): Use register number information from
7018         gdbarch_tdep struct instead of hardcoded offsets relative to
7019         FIRST_UISA_SP_REGNUM.
7020         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
7021         special_register_p() instead of using FPLAST_REGNUM and
7022         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7023         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
7024         will be MQ's register number.
7025
7026 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7027
7028         * aix-thread.c (ops): Rename to aix_thread_ops.
7029         (base_ops): Rename to base_target.
7030         (ops_attach): Rename to aix_thread_attach.
7031         (ops_detach): Rename to aix_thread_detach.
7032         (ops_resume): Rename to aix_thread_detach.
7033         (ops_wait):   Rename to aix_thread_wait.
7034         (ops_kill):   Rename to aix_thread_kill.
7035         (init_ops):   Rename to init_aix_thread_ops.
7036         (ops_fetch_register): Rename to aix_thread_fetch_register.
7037         (ops_store_register): Rename to aix_thread_store_register.
7038         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7039         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7040         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7041         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7042         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7043         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7044         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7045         (store_regs_lib):  Rename to store_regs_user_thread.
7046         (store_regs_kern): Rename to store_regs_kernel_thread.
7047
7048 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7049
7050         * aix-thread.c (ops_prepare_to_store): Eliminate.
7051         (init_ops): Don't initialize ops.prepare_to_store.
7052         (store_regs_kern): Pre-fetch register buffers from child, 
7053         because some registers may not be in the cache.  Copy
7054         regs from register cache only if they are cached.
7055         (store_regs_lib): Copy regs from register cache only
7056         if they are cached.
7057         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7058         fill_gprs64): Ditto.
7059
7060 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7061
7062         * aix-thread.c (gdb_assert.h): Include.
7063         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7064         register sizes (from register cache) match size of buffer holding
7065         register data.
7066         (fill_sprs32): Change parameter types to match those in the ptrace()
7067         buffer.
7068         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7069         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7070
7071 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7072
7073         * aix-thread.c (supply_sprs64): Cosmetic change.
7074         (supply_sprs32): Cosmetic change.
7075         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7076         (fill_sprs64): Use regcache_collect instead of read_register.
7077         (store_regs_lib): Use regcache_collect instead of 
7078         read_register.  Use fill_sprs32 instead of fill_sprs64,
7079         if debugging a 32-bit architecture.
7080         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7081         out of the register cache, instead of passing a pointer into
7082         the register cache directly to ptrace.  Use regcache_collect
7083         insteaad of read_register.
7084         (ops_prepare_to_store): Use target_read_registers instead
7085         of read_register_bytes.
7086
7087 2002-07-20  Aidan Skinner <aidan@velvet.net>
7088
7089         * MAINTAINERS: Add self under write after approval. 
7090                 
7091 2002-07-20  Aidan Skinner <aidan@velvet.net>
7092
7093         * ada-tasks.c: Change k&r style function definitions to prototyped
7094         form.
7095                 
7096 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7097
7098         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7099         * x86-64-tdep.c: Include "objfiles.h".
7100         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7101         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7102
7103 2002-07-17  Michal Ludvig  <michal@suse.cz>
7104
7105         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7106         (update_context): Initialise cfa variable.
7107
7108 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7109
7110         * aix-thread.c: Shorten some long lines.  
7111         Bring comments into line with code spec.
7112
7113 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7114
7115         * infrun.c: Re-indent using gdb_indent.sh.
7116
7117 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7118
7119         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7120         Leave the indentation temporarily untouched, to minimize the diffs.
7121
7122 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7123
7124         * stabsread.c: Make os9k sections of the code obsolete,
7125         for real this time.
7126         * stabsread.h: Make os9k sections of the code obsolete.
7127
7128 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7129
7130         * linux-low.c (regsets_store_inferior_registers): Add free()
7131         at the end of a loop to prevent memory leak.
7132         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7133         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7134         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7135         line a comment.
7136         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7137
7138 2002-07-17  Jim Blandy  <jimb@redhat.com>
7139
7140         * macrocmd.c (info_macro_command): Remove newline from error
7141         message.
7142
7143 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7144
7145         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7146         (sh_gdbarch_init): Use it for sh-dsp.
7147
7148 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7149
7150         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7151         64-bit DWARF2 format.
7152
7153 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7154
7155         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7156         <sys/proc.h> when not available.
7157
7158 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7159
7160         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7161         * stabsread.c: Make os9k sections of the code obsolete.
7162         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7163         * config/i386/i386os9k.mt: Make file obsolete.
7164         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7165         (COMMON_OBS): Remove os9kread.o
7166         (SFILES): Remove os9kread.c.
7167         (os9kread.o, remote-os9k.o): Make target obsolete.
7168         * remote-os9k.c: Make file obsolete.
7169         * os9kread.c: Make file obsolete.
7170         * Makefile.in
7171
7172 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7173
7174         * NEWS: Mention that the FR30 has been made obsolete.
7175         * fr30-tdep.c: Make file obsolete.
7176         * config/fr30/tm-fr30.h: Ditto.
7177         * config/fr30/fr30.mt: Ditto.
7178         * configure.tgt: Make fr30-*-elf obsolete.
7179         * MAINTAINERS: Make fr30-elf obsolete.
7180
7181 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7182
7183         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7184         found is not inside a section.
7185
7186 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7187
7188         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7189         strerror().
7190         (pdc_realloc): Use xrealloc() instead of realloc().
7191
7192 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7193
7194         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7195         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7196         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7197         macros.
7198
7199 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7200
7201         * aix-thread.c (ptrace_check): Eliminate goto.
7202         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7203         problem.
7204
7205 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7206
7207         * aix-thread.c (gdbcmd.h): Include.
7208         (DEBUG, DBG, DBG2, dbg): Eliminate.
7209         (debug_aix_thread): New static global.
7210         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7211         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7212         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7213         invocations to DBG and DBG2 macros to test against
7214         ``debug_aix_thread'' and call fprintf_unfiltered().
7215         (_initialize_aix_thread): Add new command "set debug aix-thread".
7216
7217 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7218
7219         From Gerhard Tonn <TON@de.ibm.com>:
7220         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7221         instead of supply_register.
7222
7223 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7224
7225         * dwarf2cfi.c: Include "gdb_assert.h".
7226         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7227         non-NULL.
7228         (update_context): Do not use __func__.  Add missing ``break''.
7229         (update_context): Do not use __func__.
7230
7231 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7232
7233         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7234         and its setting.  Set gdbarch instruction printing functions
7235         directly.  For non-rs6000 case use new function
7236         gdb_print_insn_powerpc.
7237         (gdb_print_insn_powerpc): New function.
7238
7239 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7240
7241         * NEWS: Mention that the d30v has been marked obsolete.
7242         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7243         * configure.tgt: Mark d30v-*-* as obsolete.
7244         * d30v-tdep.c: Mark file as obsolete.
7245         * config/d30v/d30v.mt: Ditto.
7246         * config/d30v/tm-d30v.h: Ditto.
7247
7248 2002-07-13  Aidan Skinner <aidan@velvet.net>
7249
7250         * ada-tasks.c (add_task_entry): replace calls to
7251         malloc() with xmalloc
7252         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7253         
7254         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7255         ada_finish_decode_line_1, all_sals_for_line
7256         ada_breakpoint_rewrite): replace calls to free() with xfree()
7257                 
7258 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7259
7260         From Nicholas Duffek (with minor changes by Martin Hunt, 
7261         Louis Hamilton, and Kevin Buettner):
7262         * aix-thread.c: New file.
7263
7264 2002-07-12  Petr Sorfa <petrs@caldera.com>
7265
7266         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7267         complaint for invalid attribute class or form.
7268         (read_func_scope): DW_AT_frame_base
7269         better handling of DW_AT_block*.
7270         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7271         better handling of DW_AT_block*.
7272         (read_common_block): DW_AT_location
7273         better handling of DW_AT_block*.
7274         (read_partial_die): DW_AT_location better handling
7275         of DW_AT_block*.
7276         (new_symbol): DW_AT_external better handling of
7277         DW_AT_block*. Proper initialization of variable
7278         "addr".
7279         (attr_form_is_block): New function that returns true
7280         if the attribute's form is of DW_FORM_block*.
7281
7282 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7283
7284         * valops.c (find_method_list): Remove comment about
7285         removed STATIC_MEMFUNCP argument.
7286         (value_find_oload_method_list): Likewise.
7287
7288 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7289
7290         From Nicholas Duffek:
7291         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7292         target_new_objfile_hook.
7293
7294 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7295
7296         From Nicholas Duffek:
7297         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7298         csect.
7299
7300 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7301
7302         * MAINTAINERS: Mention --enable-sim-build-warnings.
7303         (m68hc11-elf): Disable sim build warnings.
7304         (m32r-elf): Mark as broken obsolete candidate.
7305         (x86_64-linux-gnu): Mark as buildable with -Werror.
7306         (arm-elf): Change -w to ``,'' which enables warnings but not
7307         -Werror.
7308
7309 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7310
7311         * bcache.h: Update copyright.
7312         (struct bstring, struct bcache): Move definition to "bcache.c".
7313         Replaced by opaque declaration.
7314         (bcache_xfree): Replace free_bcache.
7315         (bcache_xmalloc, bcache_memory_used): Declare.
7316         
7317         * bcache.c: Update copyright.
7318         (struct bstring, struct bcache): Moved to here from "bcache.h".
7319         Update comments.
7320         (bcache_xmalloc, bcache_memory_used): New functions.
7321         (bcache_xfree): Replace function free_bcache.
7322         
7323         * Makefile.in (objfiles.o): Add $(bcache_h).
7324         (objfiles_h): Remove $(bcache_h).
7325         (symfile.o): Add $(bcache_h).
7326
7327         * symmisc.c: Update copyright.
7328         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7329         (print_objfile_statistics): Use bcache_memory_used.
7330
7331         * symfile.c: Include "bcache.h".
7332         (reread_symbols): Use bcache_xfree.
7333         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7334         (add_psymbol_to_list): Pass psymbol_cache by value.
7335         (add_psymbol_with_dem_name_to_list): Ditto.
7336
7337         * objfiles.h: Update copyright.
7338         (struct bcache): Declare opaque.  Do not include "bcache.h".
7339         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7340         bcache'' pointers.
7341         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7342
7343         * objfiles.c: Include "bcache.h".  Update copyright.
7344         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7345         macro_cache.
7346         (free_objfile): Use bcache_xfree.
7347
7348 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7349
7350         * monitor.c (monitor_fetch_register): Make name a constant.
7351         (monitor_store_register): Same.
7352
7353 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7354
7355         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7356         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7357         (finish_block) For non-function blocks, hash the symbol table.  For
7358         function blocks, mark the symbol table as unhashed.
7359         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7360         (msymbol_hash_iw): Likewise.
7361         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7362         value.
7363         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7364         (lookup_minimal_symbol): Likewise for both.
7365         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7366         hashtable.
7367         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7368         (ALL_BLOCK_SYMBOLS): Update.
7369         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7370         (struct symbol): Add `hash_next' pointer.
7371         * symtab.c (lookup_block_symbol): Search using the hash table when
7372         possible.
7373         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7374         (search_symbols, find_addr_symbol): Likewise.
7375
7376         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7377         (read_dst_symtab): Likewise.
7378         * jv-lang.c (get_java_class_symtab): Likewise.
7379         * mdebugread.c: Include "gdb_assert.h".
7380         (shrink_block): Assert that the block being modified is not hashed.
7381         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7382         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7383         symbols.
7384         (dump_symtab): Recognize hashed blocks.
7385         * printcmd.c (print_frame_args):  Assert that function blocks do not
7386         have hashed symbol tables.
7387         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7388         (fill_in_ada_prototype, debug_print_block): Likewise.
7389         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7390
7391 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7392
7393         * stack.c (print_frame): Use result of frame_address_in_block()
7394         instead of fi->pc when evaluating symbols.
7395         (backtrace_command_1): Ditto.
7396
7397 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7398
7399         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7400         Make static.
7401
7402         * arm-tdep.c (arm_register_name): Make return type constant.
7403
7404 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7405
7406         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7407         prototype.
7408         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7409         * s390-tdep.c (s390_fp_regnum): Ditto.
7410         (s390_read_fp): Ditto.
7411         (s390_pop_frame): Ditto.
7412         (_initialize_s390_tdep): Ditto.
7413         * remote.c (get_remote_state): Ditto.
7414         * procfs.c (mappingflags): Ditto.
7415         * memattr.c (_initialize_mem): Ditto.
7416         * mcore-tdep.c (mcore_pop_frame): Ditto.
7417         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7418         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7419         * language.c (set_case_str): Ditto.
7420         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7421         * frv-tdep.c (new_variant): Ditto.
7422         (frv_stopped_data_address): Ditto.
7423         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7424         (context_alloc): Ditto.
7425         (frame_state_alloc): Ditto.
7426         (unwind_tmp_obstack_init): Ditto.
7427         (unwind_tmp_obstack_free): Ditto.
7428         (cfi_read_fp): Ditto.
7429         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7430         (cris_pop_frame): Ditto.
7431         * c-lang.c (scanning_macro_expansion): Ditto.
7432         (finished_macro_expansion): Ditto.
7433         (c_preprocess_and_parse): Ditto.
7434         * gdbarch.sh: Ditto.
7435         * gdbarch.h, gdbarch.c: Regenerate.
7436         * config/mn10200/tm-mn10200.h: Adjust indentation.
7437         * target.c: Adjust indentation.
7438         * symtab.h: Adjust indentation.
7439         * stabsread.h: Adjust indentation.
7440         * remote-es.c: Adjust indentation.
7441         * os9kread.c: Adjust indentation.
7442
7443 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7444         
7445         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7446         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7447
7448 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7449         
7450         * NEWS: Mention m68k, mcore multi-arching.  
7451         * MAINTAINERS: Change status of m68k, mcore to reflect
7452         multi-arching.
7453
7454 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7455
7456         * valops.c (find_overload_match): Free oload_syms.
7457
7458 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7459
7460         Define HAVE_SYS_PROC_H if sys/proc.h exists
7461         * configure.in: Add check for sys/proc.h
7462         * config.in: Regenerate.
7463         * configure: Regenerate.
7464
7465 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7466
7467         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7468         #if !GDB_MULTI_ARCH. 
7469
7470 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7471
7472         * config.in, configure: Regenerate.
7473
7474 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7475
7476         * dwarf2cfi.c: Include "gcore.h".
7477         (execute_stack_op): Fix implementation of the
7478         DW_OP_deref and DW_OP_deref_size operators by letting do their
7479         lookup in the target.
7480
7481 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7482
7483         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7484         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7485         tdep->sc_sp_offset.
7486
7487 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7488
7489         Fix PR gdb/595, gdb/602
7490         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7491         Don't call value_cast, just read the vtable pointer; update comments
7492         to match.
7493
7494 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7495
7496         * config/mcore/tm-mcore.h: Remove file.
7497         * config/mcore/mcore.mt: Remove definition of TM_FILE
7498         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7499
7500 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7501
7502         * i386bsd-tdep.c: Include "gdb_string.h".
7503
7504 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7505
7506         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7507         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7508         mcore-tdep.
7509         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7510         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7511         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7512         (RETVAL_REGNUM): Move macros from tm-mcore.h
7513         (mcore_reg_struct_has_addr): New function.
7514         (mcore_gdbarch_init): Added initializations for the macros removed
7515         from tm-mcore.h.
7516
7517 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7518
7519         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7520         traditonal string branding within the ELF header.
7521
7522 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7523
7524         * symtab.c (remove_params): New function.
7525         (make_symbol_overload_list): Use it instead of cplus_demangle.
7526         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7527
7528 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7529
7530         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7531
7532         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7533         New variables.
7534         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7535         and tdep->sigtramp_end.
7536         * i386obsd-nat.c: New file.
7537         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7538
7539         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7540         Don't call get_current_frame().
7541
7542 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7543
7544         * i386-nat.c (child_post_startup_inferior): New function
7545         calling i386_cleanup_dregs if
7546         I386_USE_GENERIC_WATCHPOINTS is defined.
7547         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7548         conditional to acknowledge that i386-nat.c has its
7549         own child_post_startup_inferior function.
7550
7551 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7552
7553         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7554         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7555         instead of MAX_REGISTER_RAW_SIZE.
7556         (i386_extract_return_value, i386_extract_struct_value_address):
7557         Convert to use regcache.
7558         (i386_gdbarch_init): Set max_register_raw_size and
7559         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7560         Set extract_return_value and extract_struct_value_address instead
7561         of their deprecated variants.
7562
7563         Convert i386 target to generic dummy frames.
7564         * i386-tdep.c: Include "symfile.h".
7565         (i386_frameless_signal_p): Consider a function to be frameless if
7566         the pc points at the first instruction of the function.
7567         (i386_frame_chain): Handle (generic) call dummies.
7568         (i386_frame_saved_pc): Likewise.
7569         (i386_frame_init_saved_regs): Remove code dealing with call
7570         dummies on the stack.
7571         (i386_push_dummy_frame): Removed.
7572         (i386_call_dummy_words): Removed.
7573         (i386_fix_call_dummy): Removed.
7574         (i386_push_return_address): New function.
7575         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7576         parameter, and don't call get_current_frame.
7577         (i386_pop_frame): New function.
7578         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7579         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7580         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7581         call_dummy_length to 0, set call_dummy_words to NULL, set
7582         sizeof_call_dummy_words to 0, set fix_call_dummy to
7583         generic_fix_call_dummy, set pc_in_call_dummy to
7584         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7585         generic_push_dummy_frame, set push_return_address to
7586         i386_push_return_address and set frame_chain_valid to
7587         generic_file_frame_chain_valid.
7588
7589 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7590
7591         * gdbarch.sh (struct regcache): Add opaque declaration.
7592         (EXTRACT_RETURN_VALUE): New architecture method.
7593         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7594         * gdbarch.h, gdbarch.c: Regenerate.
7595         * arch-utils.c (legacy_extract_return_value): New function.
7596         * arch-utils.h (legacy_extract_return_value): Declare.
7597         * values.c (value_being_returned): Re-enable code handling
7598         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7599         deprecated_grub_regcache_for_registers call to block handling
7600         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7601         (EXTRACT_RETURN_VALUE): Do not define.
7602
7603 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7604
7605         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7606         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7607         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7608         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7609         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7610         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7611         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7612         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7613         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7614         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7615         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7616         argument so the function fits the prototype in the architecture
7617         vector.
7618         (mcore_pop_frame): Remove argument so the function fits the
7619         prototype. Use get_current_frame instead of the argument.
7620         (mcore_push_arguments): Change type of struct_return so the
7621         function can be used in the architecture vector.
7622         (mcore_store_struct_return): Add.
7623         (mcore_frame_init_saved_regs): Add.
7624         (mcore_gdbarch_init): Add function calls to replace the macros
7625         removed from tm-mcore.h
7626
7627 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7628
7629         * infcmd.c (print_return_value): Remove compatibility code calling
7630         deprecated_grub_regcache_for_registers.
7631         
7632         * values.c: Include "regcache.h".
7633         (value_being_returned): Update.  Use
7634         deprecated_grub_regcache_for_registers to extract the register
7635         buffer address.  
7636         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7637         ``struct regcache''.
7638         * Makefile.in (values.o): Add dependency on $(regcache_h).
7639
7640         * inferior.h (run_stack_dummy): Change type of second parameter to
7641         a ``struct regcache''.
7642         * valops.c (hand_function_call): Change type of retbuf to ``struct
7643         regcache''.  Allocate using regcache_xmalloc, clean using
7644         make_cleanup_regcache_xfree.
7645         * infcmd.c (run_stack_dummy): Update.  Use
7646         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7647
7648         * regcache.c (do_regcache_xfree): New function.
7649         (make_cleanup_regcache_xfree): New function.
7650         * regcache.h (make_cleanup_regcache_xfree): Declare.
7651
7652 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7653
7654         * event-top.c (command_line_handler): Don't read past
7655         beginning of buffer.
7656
7657 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7658         
7659         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7660         struct frame_id. 
7661         (varobj_create): Store frame_id for root.
7662         (varobj_gen_name): Use xasprintf.
7663         (varobj_update): Save and restore frame using get_frame_id() and
7664         frame_find_by_id().
7665         (create_child): Use xasprintf.
7666         (new_root_variable): Initialize frame_id.
7667         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7668         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7669         to prevent memory leak.
7670
7671 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7672
7673         * valops.c (hand_function_call): Move declaration of retbuf to
7674         start of function, allocate using malloc, add a cleanup but before
7675         the inf_status cleanup, cleanup the buffer.  Rename local variable
7676         old_chain to inf_status_cleanup.
7677
7678 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7679
7680         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7681
7682         * cli/cli-decode.c (cmd_func_p): New function.
7683         (cmd_func): New function.
7684
7685         * command.h: Add cmd_func() and cmd_func_p().   
7686         
7687 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7688
7689         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7690         (REGISTER_SIZE): Remove.
7691         (MAX_REGISTER_RAW_SIZE): Remove.
7692         (REGISTER_VIRTUAL_TYPE): Remove.
7693         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7694         (REGISTER_NAME): Remove.
7695         (USE_GENERIC_DUMMY_FRAMES): Remove.
7696         (CALL_DUMMY): Remove.
7697         (CALL_DUMMY_START_OFFSET): Remove.
7698         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7699         (CALL_DUMMY_LOCATION): Remove.
7700         (FIX_CALL_DUMMY): Remove.
7701         (CALL_DUMMY_ADDRESS): Remove.
7702         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7703         (SAVE_DUMMY_FRAME_TOS): Remove.
7704         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7705         (mcore_register_virtual_type): New function.
7706         (mcore_register_byte): New function.
7707         (mcore_register_size): New function.
7708         (mcore_register_name): New function.
7709         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7710         macros removed from tm-mcore.h.
7711         (mcore_dump_tdep): Add.
7712         (_initialize_mcore_tdep): Add gdbarch_register call.
7713
7714 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7715
7716         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7717         frameless_look_for_prologue, such that we actually call this
7718         function.
7719
7720 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7721
7722         * frame.h (frame_address_in_block): New function.
7723
7724         * blockframe.c (frame_address_in_block): New function extracted
7725         from get_frame_block().
7726         (get_frame_block): Use frame_address_in_block().
7727         (block_innermost_frame): Use frame_address_in_block() to match
7728         the frame pc address against the block boundaries rather than
7729         the frame pc directly. This prevents a failure when a frame pc
7730         is actually a return-address pointing immediately after the end
7731         of the given block. 
7732
7733 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7734
7735         * MAINTAINERS: Add self under write after approval. 
7736
7737 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7738
7739         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7740         used in architecture vector. The default is
7741         m68k_local_breakpoint_from_pc.
7742         (m68k_local_breakpoint_from_pc): Add.
7743         (enum): Add register numbers from tm-m68k.h.
7744         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7745         vector.  
7746         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7747         GDB_MULTI_ARCH_PARTIAL.
7748         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7749         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7750         m68k-tdep.c.
7751         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7752         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7753         to enum in m68k-tdep.c
7754
7755 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7756
7757         * solib-osf.c (open_map): Compute the list of shared libraries
7758         loaded by the inferior, rather than the list of libraries loaded
7759         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7760         the wrong shared libraries...
7761
7762 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7763
7764         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7765         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7766         macros.
7767         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7768         Remove functions.
7769         (FRAMELESS_SIGNAL): Remove function.
7770         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7771         i386_linux_saved_pc_after_call): Removed.
7772         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7773         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7774         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7775
7776         * i386-tdep.c (i386_frameless_signal_p): New function.
7777         (i386_frame_chain): Deal with frameless signals.
7778         (i386_sigtramp_saved_sp): New function.
7779         (i386_frame_saved_pc): Deal with frameless signals.
7780         (i386_saved_pc_after_call): Make sure the correct value is
7781         returned just after entry into a sigtramp.
7782         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7783         i386fbsd4_sc_sp_offset): New variables.
7784         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7785         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7786         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7787         similiar to what we already did for sc_pc_offset.
7788         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7789         tdep->sc_sp_offset.
7790
7791         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7792
7793 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7794
7795         * config/i386/tm-x86-64linux.h: New.
7796         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7797         definitions.
7798         * config/i386/nm-x86-64.h: Rename to ...
7799         * config/i386/nm-x86-64linux.h: ... this one.
7800         * config/i386/x86-64linux.mh: Reflect the above change.
7801         
7802 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7803
7804         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7805         with sigcontext_addr.  Add sc_sp_offset.
7806         (i386bsd_sigtramp_saved_pc): Remove prototype.
7807         (i386bsd_sicontext_addr): Add prototype.
7808         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7809         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7810         (i386_svr4_sigtramp_saved_pc): Removed.
7811         (i386_svr4_sigcontext_addr): New function.
7812         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7813         Initialize tdep->sigcontext_addr instead.  Initialize
7814         tdep->sc_pc_offset and tdep->sc_sp_offset.
7815         (i386_gdbarch_init): Likewise.
7816         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7817         any more.
7818         (i386bsd_sigtramp_saved_pc): Remove function.
7819         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7820         Initialize tdep->sigcontext_addr instead.  Initialize
7821         tdep->sc_pc_offset.
7822         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7823         of tdep->sigtramp_saved_pc.
7824         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7825         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7826         instead.
7827
7828         * i386-tdep.c (i386_frameless_function_invocation,
7829         i386_frame_num_args, i386_frame_init_saved_regs,
7830         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7831         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7832         i386_extract_return_value, i386_store_return_value,
7833         i386_extract_struct_value_address, i386_register_virtual_type,
7834         i386_register_convertible, i386_register_convert_to_virtual,
7835         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7836         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7837         static.
7838
7839 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7840
7841         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7842
7843         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7844         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7845         this macro.  Include "value.h".
7846
7847 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7848
7849         * ada-exp.tab.c: remove as it's a generated file
7850         * ada-lex.c: remove as it's a generated file
7851                 
7852 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7853
7854         * config/i386/tm-i386.h (struct frame_info, struct
7855         frame_saved_regs, struct value, struct type): Remove forward
7856         declarations.
7857
7858         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7859         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7860         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7861         (FILL_FPXREGSET): Define.
7862
7863         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7864
7865         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7866         i[3456]86-*-netbsd* case.
7867         * config/i386/tm-obsd.h: Removed.
7868         * config/i386/obsd.mt: Removed.
7869         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7870         core-aout.o.
7871         (MH_CFLAGS): Add -DYYDEBUG=0.
7872
7873         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7874         i386nbsd_sc_pc_offset on OpenBSD too.
7875
7876         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7877         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7878         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7879         define.
7880         * i386bsd-tdep.c: Include "arch-utils.h".
7881         (i386bsd_aout_in_solib_call_trampoline): New function.
7882         (i386bsd_init_abi): Set in_solib_call_trampoline to
7883         i386bsd_aout_in_solib_call_trampoline.
7884         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7885         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7886
7887 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7888
7889         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7890         (struct obstack, struct bcache): Add opaque declarations.
7891         * Makefile.in (macrotab_h): Update
7892
7893 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7894
7895         * blockframe.c (generic_find_dummy_frame): Change return type to
7896         ``struct regcache''.
7897         (struct dummy_frame): Replace field ``registers'' with regcache, a
7898         struct regcache object.
7899         (generic_find_dummy_frame): Update.
7900         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7901         regcache_xmalloc and regcache_cpy.
7902         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7903         regcache_xfree.
7904         (deprecated_generic_find_dummy_frame): Update.
7905         (generic_read_register_dummy): Update.  Use
7906         regcache_read_as_address.
7907         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7908         (generic_get_saved_register): Update.  Use regcache_read.
7909
7910 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7911
7912         * Makefile.in (objfiles_h): Add $(bcache_h).
7913         * objfiles.h: Include "bcache.h".
7914
7915         * Makefile.in (symtab_h): Remove $(bcache_h).
7916         * symtab.h: Do not include "bcache.h".
7917
7918 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7919
7920         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7921         generic_func_frame_chain_valid.
7922
7923 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7924
7925         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7926         * config/i386/tm-fbsd.h: Likewise.
7927
7928 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7929
7930         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7931         generic_unwind_get_saved_register.
7932
7933 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7934
7935         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7936         * regcache.c (supply_register): Add missing argument to
7937         register_buffer call.
7938
7939 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7940
7941         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7942         Solaris /bin/grep does not not like it.  From Peter Schauer.
7943
7944 2002-06-26  Tom Tromey  <tromey@redhat.com>
7945
7946         * command.h (add_setshow_cmd): Declare.
7947         (add_setshow_cmd_full): Declare.
7948         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7949         returns void.  Use add_setshow_cmd_full.
7950         (add_setshow_cmd_full): New function.
7951         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7952         (add_setshow_boolean_cmd): Likewise.
7953
7954 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7955
7956         * config/vax/tm-vax.h: Protect from multiple inclusion.
7957         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7958         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7959         * config/vax/tm-vaxbsd.h: ...here.  New file.
7960         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7961
7962 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7963
7964         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7965         (BELIEVE_PCC_PROMOTION): Remove.
7966         (AP_REGNUM): Move to...
7967         * config/vax/nm-vax.h: ...here.
7968         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7969         (vax_breakpoint_from_pc): New function.
7970         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7971         and gdbarch_believe_pcc_promotion.
7972
7973 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7974
7975         * Makefile.in (vax_tdep_h): Define.  
7976         (vax-tdep.o): Use $(vax_tdep_h).
7977         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7978         (vax_dump_tdep): New function. 
7979         (_initialize_vax_tdep): Register vax_dump_tdep.
7980         * vax-tdep.h: Include osabi.h.     
7981         (struct gdbarch_tdep): New. 
7982
7983 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7984
7985         * frame.h (deprecated_generic_find_dummy_frame): Rename
7986         generic_find_dummy_frame.
7987         * blockframe.c (generic_find_dummy_frame): Make static.
7988         (deprecated_generic_find_dummy_frame): New function.
7989         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7990         generic_find_dummy_frame with deprecated_find_dummy_frame.
7991         (sh64_nofp_frame_init_saved_regs): Ditto.
7992         (sh_fp_frame_init_saved_regs): Ditto.
7993         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7994         (s390_frame_chain): Ditto.
7995         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7996
7997 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7998
7999         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8000         gdbarch vector are at the top.
8001         (NUM_REGS): Remove.
8002         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8003         (FRAME_ARGS_ADDRESS): Remove.
8004         (FRAME_LOCALS_ADDRESS): Remove.
8005         (FRAME_NUM_ARGS): Remove.
8006         (FRAME_ARGS_SKIP): Remove.  
8007         * m68k-tdep.c (enum): Add eumeration of special register numbers.
8008         (m68k_gdbarch_init): Add gdbarch initializations for macros
8009         undefined in tm-m68k.h
8010
8011 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8012
8013         * monitor.h: Add the function regname to monitor_ops
8014         structure. This way NUM_REGS does not have to be a constant.
8015         * monitor.c (monitor_fetch_register): Added support for regname
8016         function. The function is called if the array regnames is NULL.
8017         (monitor_store_register): Same.
8018         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8019         regnames array.
8020         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8021         cpu32bug_cmds.regname to point to new function.
8022         * abug-rom.c (abug_regname): Same as above.
8023         (init_abug_cmds): Same.
8024         * dbug-rom.c (dbug_regname): Same as above.
8025         (init_dbug_cmds): Same.
8026         * remote-est.c (est_regname): Same. 
8027         (init_est_cmds): Same.
8028         * rom68k-rom.c (rom68k_regname): Same. 
8029         (init_rom68k_cmds): Same.
8030
8031 2002-06-25  Tom Tromey  <tromey@redhat.com>
8032
8033         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8034
8035 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8036
8037         * infrun.c (stop_registers): Change variable's type to ``struct
8038         regcache'''.
8039         (xmalloc_inferior_status): Delete function.
8040         (free_inferior_status): Delete function.
8041         (normal_stop): Use regcache_cpy.
8042         (struct inferior_status): Change type of fields ``stop_registers''
8043         and ``registers'' to ``struct regcache''.
8044         (write_inferior_status_register): Use regcache_write.
8045         (save_inferior_status): Instead of calling
8046         xmalloc_inferior_status, allocate the inf_status buffer directly.
8047         Use regcache_dup_no_passthrough and regcache_dup to save the
8048         buffers.
8049         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8050         Replace the stop_registers regcache instead of overriding it.  Use
8051         regcache_xfree.  Instead of calling free_inferior_status, xfree
8052         the buffer directly.
8053         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8054         free_inferior_status, xfree the buffer directly.
8055         (build_infrun): Use regcache_xmalloc.
8056         (_initialize_infrun): Delete redundant call to build_infrun.
8057
8058         * Makefile.in (infcmd.o): Add $(regcache_h).
8059
8060         * infcmd.c: Include "regcache.h".
8061         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8062         obtain the address of `stop_registers' register buffer.
8063         (print_return_value): Ditto.
8064
8065         * inferior.h (struct regcache): Add opaque declaration.
8066         (stop_registers): Change variable's declared type to ``struct
8067         regcache''.
8068
8069 2002-06-24  Tom Tromey  <tromey@redhat.com>
8070
8071         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8072         * target.c (initialize_targets): Fixed typo in
8073         trust-readonly-sections `show' documentation.
8074
8075         * main.c: Marked all strings with _().
8076
8077 2002-06-24  Don Howard  <dhoward@redhat.com>
8078
8079         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8080         that means max CORE_ADDR+1.
8081         (lookup_mem_region): Ditto.
8082         (mem_info_command): Ditto.
8083
8084 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8085
8086         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8087         (REGISTER_BYTES_OK): Remove.
8088         (REGISTER_BYTES): Remove.
8089         (STORE_STRUCT_RETURN): Remove.
8090         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8091         (STORE_RETURN_VALUE): Remove.
8092         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8093         (FRAME_CHAIN): Remove.
8094         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8095         (FRAME_SAVED_PC): Remove.  
8096         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8097         (m68k_store_struct_return): Add.
8098         (m68k_deprecated_extract_return_value): Add.
8099         (m68k_deprecated_extract_struct_value_address): Add.
8100         (m68k_store_return_value): Add.
8101         (m68k_frame_chain): Add.
8102         (m68k_frameless_function_invocation): Add.
8103         (m68k_frame_saved_pc): Add.
8104         (m68k_gdbarch_init): added set_gdbarch calls for new 
8105         functions and deleted macros.
8106
8107 2002-06-23  Tom Tromey  <tromey@redhat.com>
8108
8109         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8110         (ALLDEPFILES): Likewise.
8111         (udiheaders): Removed.
8112         (udip2soc.o): Likewise.
8113         (udi2go32.o): Likewise.
8114         (udr.o): Likewise.
8115         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8116
8117 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8118
8119         * infrun.c (_initialize_infrun): Delete unnecessary call to
8120         build_infrun.
8121
8122         * regcache.h: Update comments describing the regcache_cpy family
8123         of functions.
8124         (regcache_save, regcache_restore): Delete declaration.
8125         (regcache_save_no_passthrough): Delete declaration.
8126         (regcache_restore_no_passthrough): Delete declaration.
8127         * regcache.c (regcache_save): Delete function.
8128         (regcache_save_no_passthrough): Delete function.
8129         (regcache_restore): Delete function.
8130         (regcache_restore_no_passthrough): Delete function.
8131
8132 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8133
8134         * config/m68k/tm-m68k.h: Fix typo.
8135         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8136         (m68k_frame_init_saved_regs): Declare.
8137
8138 2002-06-21  Jim Blandy  <jimb@redhat.com>
8139
8140         Remove some vestiges of Harris 88k support.
8141         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8142         register numbering quirk.
8143         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8144         odd symbols occurring in Harris 88k ELF targets.
8145
8146 2002-06-21  Tom Tromey  <tromey@redhat.com>
8147
8148         * gdb_locale.h: New file.
8149         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8150         (defs_h): Added gdb_locale.h.
8151         * configure, config.in: Rebuilt.
8152         * configure.in (PACKAGE): Define.
8153         * defs.h: Include gdb_locale.h.
8154         * main.c (captured_main): Call setlocale, bindtextdomain,
8155         textdomain.
8156
8157 2002-06-21  Dave Brolley  <brolley@redhat.com>
8158
8159         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8160         * config/frv/frv.mt: New file.
8161         * config/frv/tm-frv.h: New file.
8162         * configure.tgt: Support frv-*-*.
8163         * Makefile.in (frv-tdep.o): New target.
8164         * frv-tdep.c: New file.
8165         * NEWS: Mention frv.
8166
8167 2002-06-21  Dave Brolley  <brolley@redhat.com>
8168
8169         * MAINTAINERS: Add self to "Write After Approval" list.
8170
8171 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8172
8173         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8174         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8175         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8176         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8177         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8178
8179         * m68k-tdep.c: Include arch-utils.h
8180         (m68k_register_raw_size): Add.
8181         (m68k_register_virtual_size): Add.
8182         (m68k_register_virtual_type): Add.
8183         (m68k_register_name): Add.
8184         (m68k_stack_align): Add.
8185         (m68k_register_byte): Add.
8186         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8187         tm-m68k.h.
8188
8189 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8190
8191         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8192         m68k_find_saved_regs.
8193         (m68k_pop_frame): Removed saved_regs structure, and replaced
8194         references to it with frame->saved_regs.
8195         (m68k_gdbarch_init): Added function calls to initialize the
8196         gdbarch structure.
8197         (m68k_fix_call_dummy): Add. 
8198         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8199         (CALL_DUMMY): Remove.
8200         (CALL_DUMMY_LENGTH): Remove.
8201         (CALL_DUMMY_START_OFFSET): Remove.
8202         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8203         (FIX_CALL_DUMMY): Remove.
8204         (PUSH_DUMMY_FRAME): Remove.
8205         (POP_FRAME): Remove.
8206
8207 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8208
8209         * parse.c (parse_fprintf): New function used to avoid calls to
8210         fprintf in bison parser generated debug code.
8211         * parser-defs.h: Declaration of new parse_fprintf function.
8212         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8213         Set YYDEBUG to 1 by default.
8214         Set YYFPRINTF as parse_fprintf.
8215
8216 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8217
8218         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8219         encoding anymore.
8220         (pointer_encoding, enum ptr_encoding): New.
8221         (execute_cfa_program): Take care about pointer encoding.        
8222         (dwarf2_build_frame_info): Only call parse_frame_info for 
8223         .debug_frame and .eh_frame.
8224         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8225         fixed augmentation handling, added relative addressing, 
8226         ignore duplicate FDEs. Added comments.
8227         * dwarf2cfi.c: Reindented.
8228         
8229 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8230
8231         * event-top.c (command_handler): Don't use space_at_cmd_start
8232         unless there is sbrk() on the host. Assign time and space data
8233         to union fields of the appropriate length.
8234
8235 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8236
8237         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8238         x86_64_register_name. Return type changed to 'const char *'.
8239         (x86_64_register_name2nr): Rename to x86_64_register_number.
8240         (x86_64_gdbarch_init): Update to reflect the change.
8241         * x86-64-tdep.h: Ditto.
8242         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8243         (supply_fpregset): Ditto.
8244
8245 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8246
8247         * regcache.h: Update copyright.
8248         (struct regcache, struct gdbarch): Add opaque declarations.
8249         (current_regcache): Declare global variable.
8250         (regcache_read, regcache_write): Add gdbarch parameter.
8251         (regcache_save, regcache_save_no_passthrough)
8252         (regcache_restore, regcache_restore_no_passthrough)
8253         (regcache_dup, regcache_dup_no_passthrough)
8254         (regcache_cpy, regcache_cpy_no_passthrough)
8255         (deprecated_grub_regcache_for_registers)
8256         (deprecated_grub_regcache_for_register_valid)
8257         (regcache_valid_p): Add function declarations.
8258         
8259         * regcache.c: Update copyright.
8260         (regcache_descr_handle): New global variable.
8261         (struct regcache_descr): Define.
8262         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8263         (regcache_descr, xfree_regcache_descr): New functions.
8264         (struct regcache): Define.
8265         (regcache_xmalloc, regcache_xfree): New functions.
8266         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8267         (regcache_dup, regcache_dup_no_passthrough): New functions.
8268         (regcache_valid_p, regcache_read_as_address): New functions.
8269         (deprecated_grub_regcache_for_registers): New function.
8270         (deprecated_grub_regcache_for_register_valid): New function.
8271         (current_regcache): New global variable.
8272         (register_buffer): Add regcache parameter.  Update calls.
8273         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8274         (read_register_gen, write_register_gen): Update register_buffer
8275         call.  Test for legacy_p instead of gdbarch_register_read_p or
8276         gdbarch_register_write_p.
8277         (regcache_collect): Update register_buffer call.
8278         (build_regcache): Rewrite.  Use deprecated grub functions.
8279         (regcache_save, regcache_save_no_passthrough): New functions.
8280         (regcache_restore, regcache_restore_no_passthrough): New
8281         functions.
8282         (_initialize_regcache): Create the regcache_data_handle. Swap
8283         current_regcache global variable.
8284         
8285         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8286         parameter to regcache_read and regcache_write calls.
8287         (sh4_register_read): Ditto.
8288         (sh64_pseudo_register_read): Ditto.
8289         (sh64_register_read): Ditto.
8290         (sh_pseudo_register_write): Ditto.
8291         (sh4_register_write): Ditto.
8292         (sh64_pseudo_register_write): Ditto.
8293         (sh64_register_write): Ditto.
8294
8295         * defs.h (XCALLOC): Define.
8296
8297 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8298
8299         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8300         * m68k-tdep.c (m68k_gdbarch_init): Added.
8301         (m68k_dump_tdep): Added.
8302
8303 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8304
8305         * ada-lang.c (fill_in_ada_prototype): Update comment.
8306
8307 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8308
8309         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8310         MIPS_ABI_LAST.
8311         (mips_abi_string, mips_abi_strings): New.
8312         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8313         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8314         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8315         O32 if no ABI is found.
8316         (mips_dump_tdep): Use mips_abi_strings.
8317         (mips_abi_update): New function.
8318         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8319         ``set mips abi'' and ``show mips abi''.  Check the size of
8320         mips_abi_strings.
8321
8322 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8323
8324         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8325         constant.
8326
8327 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8328
8329         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8330         current frame using only the first stack size adjustment. All
8331         subsequent size adjustments are not considered to be part of
8332         the "static" part of the current frame.
8333         Compute the address of the saved registers relative to the
8334         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8335         in use in this frame.
8336
8337 2002-06-18  Don Howard  <dhoward@redhat.com>
8338  
8339         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8340         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8341         suggesting this solution.
8342
8343 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8344
8345         * config/romp/xm-rtbsd.h: Delete file.
8346         * config/romp/rtbsd.mh: Delete file.
8347
8348 2002-06-18  Keith Seitz  <keiths@redhat.com>
8349
8350         * breakpoint.c (condition_command): Post breakpoint_modify
8351         when a condition is added to an existing breakpoint.
8352         (commands_command): Likewise for commands.
8353         (set_ignore_count): Likewise for ignore counts.
8354         If no tty, do not simply return, still need to send event
8355         notification.
8356         (ignore_command): Only print a newline if the command came
8357         from a tty.
8358         Don't call breakpoints_changed, since this is now properly
8359         handled by set_ignore_count.
8360
8361 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8362
8363         * MAINTAINERS: Note that cris-elf target can be compiled with
8364         -Werror.
8365         * cris-tdep.c (cris_register_name): Make return type constant.
8366         (cris_breakpoint_from_pc): Ditto.
8367
8368 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8369
8370         * frame.h (struct frame_info): Change type of context to 
8371         'struct context'.
8372
8373 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8374
8375         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8376         pointer.
8377         * gdbarch.h, gdbarch.c: Regenerate.
8378         * config/mips/tm-mips.h (mips_register_name): Update.
8379         * i386-tdep.h (i386_register_name): Update.
8380         * mips-tdep.c (mips_register_name): Update
8381         * alpha-tdep.c (alpha_register_name): Update.
8382         * arch-utils.c (legacy_register_name): Update.
8383         * arch-utils.h (legacy_register_name): Update.
8384         * avr-tdep.c (avr_register_name): Update.
8385         * ia64-tdep.c (ia64_register_name): Update.
8386         * i386-tdep.c (i386_register_name): Update.
8387         * sparc-tdep.c (sparc32_register_name): Update.
8388         (sparc64_register_name): Update.
8389         (sparclite_register_name): Update.
8390         (sparclet_register_name): Update.
8391         * sh-tdep.c (sh_generic_register_name): Update.
8392         (sh_sh_register_name): Update.
8393         (sh_sh3_register_name): Update.
8394         (sh_sh3e_register_name): Update.
8395         (sh_sh_dsp_register_name): Update.
8396         (sh_sh3_dsp_register_name): Update.
8397         (sh_sh4_register_name): Update.
8398         (sh_sh64_register_name): Update.
8399         * s390-tdep.c (s390_register_name): Update.
8400         * rs6000-tdep.c (rs6000_register_name): Update.
8401         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8402         (ns32k_register_name_32382): Update.
8403         * d10v-tdep.c (d10v_ts2_register_name): Update.
8404         (d10v_ts3_register_name): Update.
8405         * xstormy16-tdep.c (xstormy16_register_name): Update.
8406         * vax-tdep.c (vax_register_name): Update.
8407         * v850-tdep.c (v850_register_name): Update.
8408         * m68hc11-tdep.c (m68hc11_register_name): Update.
8409         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8410         (am33_register_name): Update.
8411
8412 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8413
8414         * m68k-tdep.c: Reindented.
8415
8416 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8417
8418         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8419         list of predefined types.
8420
8421 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8422
8423         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8424         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8425         REGISTER_CONVERT_TO_RAW): Remove defines.
8426         (i386_register_virtual_type, i386_register_convertible,
8427         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8428         Remove prototypes.
8429         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8430         macros mentioned above.
8431
8432         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8433         (i386lynx_saved_pc_after_call): Remove prototype.
8434         * i386ly-tdep.c: Include "i386-tdep.h".
8435         (i386lynx_saved_pc_after_call): Make static.  Use
8436         read_memory_nobpt instead of read_memory.  Use
8437         read_memory_unsigned_integer instead of read_memory_integer.
8438         (i386lynx_init_abi): New function.
8439         (i386lynx_coff_osabi_sniffer): New function.
8440         (_initialize_i386bsd_tdep): New function.
8441
8442         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8443         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8444         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8445         (i386_fix_call_dummy): Remove prototype.
8446         * i386-tdep.c (i386_call_dummy_words): New variable.
8447         (i386_gdbarch_init): Adjust for removal of the
8448         macros mentioned above.
8449
8450 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8451
8452         * command.h (add_setshow_auto_boolean_cmd): Replace
8453         add_set_auto_boolean_cmd.
8454         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8455         add_set_auto_boolean_cmd.
8456         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8457         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8458         mask-address'' command.
8459         (show_mask_address): Add cmd parameter.
8460         * remote.c (add_packet_config_cmd): Update.  Change type of
8461         set_func and show_func to cmd_sfunc_ftype.
8462         (_initialize_remote): Update `set remote Z-packet'
8463         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8464         (show_remote_protocol_e_packet_cmd): Ditto.
8465         (show_remote_protocol_E_packet_cmd): Ditto.
8466         (show_remote_protocol_P_packet_cmd): Ditto.
8467         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8468         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8469         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8470         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8471         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8472         (show_remote_protocol_Z_packet_cmd): Ditto.
8473         (show_remote_protocol_binary_download_cmd): Ditto.
8474         (show_remote_cmd): Pass NULL to all of above.
8475
8476 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8477
8478         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8479         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8480         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8481         POP_FRAME): Remove defines.
8482         (i386_push_arguments, i386_store_struct_return,
8483         i386_extract_return_value, i386_store_return_value,
8484         i386_extract_struct_value_address, i386_push_dummy_frame,
8485         i386_pop_frame): Renove prototypes.
8486         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8487         macros mentioned above.
8488
8489 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8490
8491         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8492         add_set_boolean_cmd.
8493         (add_setshow_cmd): New function.
8494         * command.h (add_setshow_boolean_cmd): Replace
8495         add_set_boolean_cmd.
8496         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8497         and ``set rdiromatzero''.
8498         * maint.c (_initialize_maint_cmds): Update commented out code.
8499         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8500         * target.c (initialize_targets): Update `set
8501         trust-readonly-sections'.
8502         * remote.c (_initialize_remote): Update `set remotebreak'.
8503
8504 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8505
8506         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8507         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8508         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8509         fit into multi-arch framework.
8510         (i386_breakpoint_from_pc): New function.
8511         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8512         above.
8513
8514         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8515         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8516         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8517         (i386_frameless_function_invocation, i386_frame_num_args,
8518         i386_frame_init_saved_regs): Remove prototypes.
8519         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8520         macros mentioned above.
8521
8522 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8523
8524         * cli/cli-decode.c (set_cmd_cfunc): Update.
8525         (set_cmd_sfunc): Update.
8526         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8527         (set_cmd_sfunc, set_cmd_cfunc): Update.
8528         * cli/cli-decode.h: Update.
8529
8530 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8531
8532         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8533         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8534
8535 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8536
8537         * defs.h (auto_boolean): Declare enum.
8538         * command.h (cmd_auto_boolean): Delete enum.
8539         * mips-tdep.c (mask_address_var): Update.
8540         (mips_mask_address_p): Update.
8541         (show_mask_address): Update.
8542         * remote.c (struct packet_config): Update.
8543         (update_packet_config): Update.
8544         (show_packet_config_cmd): Update.
8545         (packet_ok): Update.
8546         (add_packet_config_cmd): Update.
8547         (_initialize_remote): 
8548         * command.h: Update.
8549         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8550         (do_setshow_command): Update.
8551         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8552         * cli/cli-decode.h: Update.
8553
8554 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8555
8556         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8557         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8558         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8559         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8560         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8561         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8562
8563         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8564         list of DJGPP COFF targets.
8565
8566         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8567         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8568         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8569         (FP0_REGNUM): Remove define.
8570         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8571         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8572         (i386_register_virtual_size): Remove protoype.
8573         * i386-tdep.c (i386_register_virtual_size): Removed.
8574         (i386_extract_return_value, i386_store_return_value): Use
8575         FP0_REGNUM instead of NUM_FREGS to determine whether the
8576         floating-point registers are available.
8577         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8578         Adjust for removal of macros mentioned above.
8579
8580 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8581
8582         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8583         comments.
8584         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8585         Remove prototypes.
8586         (supply_gregset, fill_gregset): Remove use of register keyword and
8587         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8588         NUM_REGS and NUM_FREGS.
8589         (FPREGSET_FSAVE_OFFSET): Remove.
8590         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8591         NUM_FREGS to determine whether the floating-point registers are
8592         available.
8593
8594         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8595         gnu_store_registers): Replace usage of NUM_GREGS with
8596         I386_NUM_GREGS.
8597
8598         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8599         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8600         usage of NUM_GREGS with I386_NUM_GREGS.
8601
8602         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8603
8604         * i386bsd-nat.c: Include "i386-tdep.h".
8605         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8606         I386_NUM_GREGS.
8607
8608         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8609         and associated comment.  They no longer make any sense, since we
8610         don't use this file anymore on Linux.
8611
8612         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8613         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8614         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8615         elements in these arrays.
8616         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8617         MAX_NUM_REGS.
8618
8619 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8620
8621         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8622         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8623
8624 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8625
8626         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8627         EXTRACT_RETURN_VALUE.
8628         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8629         EXTRACT_STRUCT_VALUE_ADDRESS.
8630         * gdbarch.h, gdbarch.c: Regenerate.
8631         
8632         * values.c (value_being_returned): Handle
8633         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8634         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8635
8636         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8637         * arm-tdep.c (arm_gdbarch_init): Update.
8638         * avr-tdep.c (avr_gdbarch_init): Update.
8639         * cris-tdep.c (cris_gdbarch_init): Update.
8640         * d10v-tdep.c (d10v_gdbarch_init): Update.
8641         * ia64-tdep.c (ia64_gdbarch_init): Update.
8642         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8643         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8644         * s390-tdep.c (s390_gdbarch_init): Update.
8645         * sh-tdep.c (sh_gdbarch_init): Update.
8646         * s390-tdep.c (s390_gdbarch_init): Update.
8647         * sparc-tdep.c (sparc_gdbarch_init): Update.
8648         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8649         * v850-tdep.c (v850_gdbarch_init): Update.
8650         * vax-tdep.c (vax_gdbarch_init): Update.
8651         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8652         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8653
8654         * config/arc/tm-arc.h: Update.
8655         * config/d30v/tm-d30v.h: Update.
8656         * config/fr30/tm-fr30.h: Update.
8657         * config/h8300/tm-h8300.h: Update.
8658         * config/h8500/tm-h8500.h: Update.
8659         * config/i386/tm-i386.h: Update.
8660         * config/i386/tm-ptx.h: Update.
8661         * config/i386/tm-symmetry.h: Update.
8662         * config/i960/tm-i960.h: Update.
8663         * config/m32r/tm-m32r.h: Update.
8664         * config/m68k/tm-delta68.h: Update.
8665         * config/m68k/tm-linux.h: Update.
8666         * config/m68k/tm-m68k.h: Update.
8667         * config/m88k/tm-m88k.h: Update.
8668         * config/mcore/tm-mcore.h: Update.
8669         * config/mips/tm-mips.h: Update.
8670         * config/mn10200/tm-mn10200.h: Update.
8671         * config/pa/tm-hppa.h: Update.
8672         * config/pa/tm-hppa64.h: Update.
8673         * config/sparc/tm-sp64.h: Update.
8674         * config/sparc/tm-sparc.h: Update.
8675         * config/sparc/tm-sparclet.h: Update.
8676         * config/z8k/tm-z8k.h: Update.
8677
8678 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8679
8680         * Makefile.in (i386_linux_tdep_h): Define.
8681         (i386_tdep_h, i387_tdep_h): Define.
8682         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8683         $(i386_tdep_h) and $(i387_tdep_h).
8684         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8685
8686 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8687
8688         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8689         Already covered by the default.
8690
8691         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8692         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8693         (i386_gdbarch_init): Initialize long_double_format and long_double
8694         bit.
8695
8696         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8697         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8698         Move these to ...
8699         * config/i386/i386sol2.mh: ... here.
8700         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8701         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8702         (SIGCONTEXT_PC_OFFSET): Remove define.
8703         (IN_SIGTRAMP): Remove define.
8704         * i386-sol2-tdep.c: New file.
8705         
8706         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8707         * config/i386/tm-i386nw.h: Removed.
8708
8709         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8710         USE_STRUCT_CONVENTION): Remove defines.
8711         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8712         (get_longjmp_target): Remove prototype.
8713         (IN_SIGTRAMP): Remove define.
8714         (i386bsd_in_sigtramp): Remove prototype.
8715         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8716         function.  Update comment accordingly
8717         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8718         (FRAME_SAVED_PC): Remove define.
8719         (i386bsd_frame_saved_pc): Remove prototype.
8720         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8721         GET_LONGJMP_TARGET): Remove defines.
8722         (get_longjmp_target): Remove prototype.
8723         (IN_SIGTRAMP): Remove define.
8724         (i386bsd_in_sigtramp): Remove prototype.
8725         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8726         function.  Update comment accordingly
8727         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8728         (FRAME_SAVED_PC): Remove define.
8729         (i386bsd_frame_saved_pc): Remove prototype.
8730         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8731         Remove prototype.
8732         (USE_STRUCT_CONVENTION): Remove prototype.
8733         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8734         declaration.
8735         (_initialize_i386bsd_nat): Revise logic to determine some
8736         constants at compile time when compiling a native GDB.  Warn if
8737         things don't match up with what we expect.
8738         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8739         Remove variables.
8740         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8741         to use date stored in `struct gdbarch_tdep'.
8742         (i386bsd_sigcontext_offset): Remove varaible.
8743         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8744         stored in `struct gdbarch_tdep'.
8745         (i386bsd_frame_saved_pc): Make static.
8746         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8747         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8748         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8749         i386fbsd4_sc_pc_offset): New variables.
8750         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8751         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8752         functions.
8753         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8754         functions.
8755         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8756         Modify the value of i386fbsd_sigtramp_start and
8757         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8758         i386fbsd_sigtramp_end.
8759         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8760         function.
8761
8762         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8763         define to i386-linux-tdep.h.
8764         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8765         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8766         defines.
8767         (i386_linux_register_name, i386_linux_register_byte,
8768         i386_linux_register_raw_size): Remove prototypes.
8769         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8770         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8771         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8772         TARGET_WRITE_PC): Remove defines.
8773         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8774         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8775         i386_linux_write_pc): Remove prototypes.
8776         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8777         (get_longjmp_target): Remove prototype.
8778         * i386-linux-tdep.h: New file.
8779         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8780         * i386-linux-tdep.c: Include "i386-tdep.h" and
8781         "i386-linux-tdep.h".
8782         (i386_linux_register_name, i386_linux_register_byte,
8783         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8784         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8785         Make static.
8786         (i386_linux_init_abi): New function.
8787         (_initialize_i386_linux_tdep): New function.
8788
8789         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8790         (i386_saved_pc_after_call): Remove prototype.
8791         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8792         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8793         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8794         (i386_register_name, i386_stab_reg_to_regnum,
8795         i386_dwarf_reg_to_regnum): Remove prototypes.
8796         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8797         SIZEOF_SSE_REGS): Remove defines.
8798         (REGISTER_BYTES): Remove define.
8799         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8800         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8801         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8802         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8803         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8804         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8805         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8806         (get_longjmp_target): Remove prototype.
8807         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8808         (sigtramp_saved_pc): Remove define.
8809         (i386v4_sigtramp_saved_pc): Remove prototype.
8810         * config/i386/tm-go32.h (FRAME_CHAIN,
8811         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8812         (i386go32_frame_saved_pc): Remove prototype.
8813         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8814         (get_longjmp_target): Remove prototype.
8815         * i386-tdep.h: Include "osabi.h".
8816         (enum i386_abi): Removed.
8817         (enum struct_return): New enum.
8818         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8819         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8820         sc_pc_offset members.
8821         (i386_gdbarch_register_os_abi): Remove prototype.
8822         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8823         I386_SSE_NUM_REGS): New defines.
8824         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8825         I386_SSE_SIZEOF_REGS): New defines.
8826         (i386_register_name, i386_register_byte, i386_register_raw_size):
8827         New prototypes.
8828         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8829         (i386bsd_sigtramp_saved_pc): New prototype.
8830         * i386-tdep.c: Don't include "elf-bfd.h".
8831         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8832         i386_frame_chain, i386_saved_pc_after_call): Make static.
8833         (i386_frame_saved_pc): Rewrite to call architecture dependent
8834         function to deal with signal handlers.  Make static.
8835         (i386go32_frame_saved_pc): Removed.
8836         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8837         Removed.
8838         (i386_get_longjmp_target): New function.
8839         (default_struct_convention, pcc_struct_convention,
8840         reg_struct_convention, valid_conventions, struct_convention): New
8841         variables.
8842         (i386_use_struct_convention): New function.
8843         (i386v4_sigtramp_saved_pc): Renamed to
8844         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8845         (i386_pc_in_sigtramp): New function.
8846         (i386_abi_names): Removed.
8847         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8848         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8849         Removed.
8850         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8851         i386_gdbarch_register_os_abi): Removed.
8852         (struct i386_abi_handler): Removed.
8853         (i386_abi_handler_list): Removed.
8854         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8855         functions.
8856         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8857         i386_nw_init_abi): New functions.
8858         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8859         Use set_gdbarch_xxx() calls instead of relying on macros for a
8860         number of calls.
8861         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8862         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8863         Register the various architecture variants defined in this file.
8864
8865 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8866
8867         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8868         (struct main_type): Remove arg_types member.  Update comments for
8869         struct field.
8870         (TYPE_ARG_TYPES): Remove.
8871         (TYPE_FN_FIELD_ARGS): Update.
8872         (smash_to_method_type): Update prototype.
8873
8874         * c-typeprint.c (cp_type_print_method_args): Take method type
8875         instead of argument list.  Use new argument layout.  Simplify.
8876         (c_type_print_args): Use new argument layout.  Simplify.
8877         (c_type_print_base): Update call to cp_type_print_method_args.
8878         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8879         argument; use die->type instead.  Update call to
8880         smash_to_method_type.
8881         (read_structure_scope): Update call to dwarf2_add_member_fn.
8882         * gdbtypes.c (allocate_stub_method): Update comment.
8883         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8884         Use new argument layout.
8885         (check_stub_method): Use new argument layout.  Don't count
8886         void as an argument.
8887         (print_arg_types): Update comments.  Use new argument layout.
8888         (recursive_dump_type): Don't print arg_types member.
8889         * hpread.c (hpread_read_struct_type): Use new argument layout.
8890         (fixup_class_method_type): Likewise.
8891         (hpread_type_lookup): Likewise.
8892         * stabsread.c (read_type): Update calls to read_args and
8893         smash_to_method_type.
8894         (read_args): Use new argument layout.  Simplify.
8895         * valops.c (typecmp): Use new argument layout.  Update parameters
8896         and comments.  Simplify.
8897         (hand_function_call): Use new argument layout.
8898         (search_struct_method): Update call to typecmp.
8899         (find_overload_match): Use new argument layout.
8900
8901 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8902
8903         * NEWS: Mention multithreaded debug support for gdbserver.
8904
8905 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8906
8907         * MAINTAINERS: Mention NEWS.
8908
8909 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8910
8911         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8912         (struct mips_objfile_private, compare_pdr_entries): New.
8913         (non_heuristic_proc_desc): Read the ".pdr" section if it
8914         is present.
8915
8916 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8917
8918         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8919         (arm_debug): New static variable.
8920         (_initialize_arm_tdep): Add ``set debug arm'' command.
8921
8922 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8923
8924         * Makefile.in (sim_arm_h): Define.
8925         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8926         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8927         (arm_register_sim_regno): New function, map an internal REGNUM
8928         onto a simulator register number.
8929         (arm_gdbarch_init): Set register_sim_regno.
8930
8931 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8932
8933         * MAINTAINERS: Add self.
8934
8935 2002-06-11  Jim Blandy  <jimb@redhat.com>
8936
8937         * source.c (source_info): Mention whether the symtab has
8938         information about preprocessor macros.
8939
8940         Call the command `info macro', not `show macro'.
8941         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8942         Fix error message.
8943         (_initialize_macrocmd): Register `info_macro_command' in
8944         `infolist', not `showlist'.
8945
8946 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8947
8948         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8949         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8950         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8951         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8952         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8953         unconditionally.
8954         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8955         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8956         (_initialize_mips_tdep): Remove dead code.
8957         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8958         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8959         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8960         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8961         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8962         MIPS_LAST_FP_ARG_REGNUM): Remove.
8963
8964 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8965
8966         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8967         (unwind_tmp_obstack_free, parse_frame_info)
8968         (update_context, cfi_read_fp, cfi_write_fp)
8969         (cfi_frame_chain, cfi_init_extra_frame_info)
8970         (cfi_virtual_frame_pointer): Use the above function.
8971         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8972
8973 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8974
8975         * v850-tdep.c (v850_type_is_scalar): New function.
8976         (v850_use_struct_convention): Match current gcc implementation
8977         as close as possible.
8978         (v850_push_arguments): Fix stack_offset handling.  Don't write
8979         struct_addr into register.  This is done by v850_store_struct_return.
8980         (v850_extract_return_value): Care for structs.
8981         (v850_store_return_value): Ditto.
8982         (v850_store_struct_return): Actually write address.
8983
8984 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8985
8986         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8987         without debug information too.
8988
8989 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8990
8991         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8992         Make multi-arch pure.
8993         * gdbarch.h, gdbarch.c: Re-generate.
8994         * arm-tdep.c (arm_print_float_info): Update.
8995         * arch-utils.h (default_print_float_info): Update.
8996         * arch-utils.c (default_print_float_info): Update.
8997         * infcmd.c (float_info): Update call.
8998
8999 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9000
9001         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9002         the front of the initialize list.
9003
9004 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9005
9006         * infrun.c (struct inferior_status): Replace fields
9007         selected_frame_address and selected_level with field
9008         selected_frame_id.
9009         (save_inferior_status): Update.  Use get_frame_id.
9010         (struct restore_selected_frame_args): Delete.
9011         (restore_selected_frame): Update.  Use frame_find_by_id.
9012         (restore_inferior_status): Update.
9013
9014         * breakpoint.h (struct breakpoint): Change type of
9015         watchpoint_frame to frame_id.
9016         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
9017         call to get_current_frame.
9018         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
9019         get_current_frame.
9020         (watchpoint_check): Use frame_find_by_id.
9021
9022         * frame.h (record_selected_frame): Delete declaration.
9023         * stack.c (record_selected_frame): Delete function.
9024         
9025         * frame.h (struct frame_id): Define.
9026         (get_frame_id): Declare.
9027         (frame_find_by_id): Declare.
9028         * frame.c (frame_find_by_id): New function.
9029         (get_frame_id): New function.
9030
9031 2002-06-10  Andrey Volkov <avolkov@transas.com>
9032
9033         * ser-e7kpc.c: Fix duplicated define and call of 
9034         _initialize_ser_e7000pc
9035             
9036 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9037
9038         * signals/signals.c (target_signal_from_host): Fix #ifdef
9039         SIGRTMIN case.
9040         (do_target_signal_to_host): Likewise.
9041
9042 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9043
9044         * mips-tdep.c (mips_find_abi_section): New function.
9045         (mips_gdbarch_init): Call it.
9046
9047 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9048
9049         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9050         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9051         after Andrew's 2002-06-08 gdbarch change.
9052
9053 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9054
9055         * i386-linux-nat.c (suppy_gregset): Don't supply
9056         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9057         register cache.
9058         (fill_gregset): Don't fetch it under the same circumstances.
9059
9060 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9061
9062         * Makefile.in (callback_h): Define.
9063         (remote_sim_h): Update path to remote-sim.h.
9064         (remote-rdp.o): Add $(callback_h).
9065         (remote-sim.o): Use $(callback_h).
9066         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9067         * remote-rdp.c: Include "gdb/callback.h".
9068
9069 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9070
9071         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9072         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9073
9074 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9075
9076         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9077         * rdi-share/serpardr.c: Ditto.
9078         * rdi-share/unixcomm.c: Ditto.
9079         * rdi-share/serdrv.c: Ditto.
9080         * rdi-share/hostchan.h: Ditto.
9081         * rdi-share/hostchan.c: Ditto.
9082         * rdi-share/host.h: Ditto.
9083         * rdi-share/devsw.c: Ditto.
9084
9085         * objfiles.h: Change type of obj_private to void pointer.
9086         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9087         strcmp instead of STREQ, use LONGEST, do not use PTR
9088         * somsolib.c: Ditto.
9089
9090         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9091         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9092         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9093
9094 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9095
9096         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9097         (default_get_saved_register): Delete function.
9098         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9099         generic_unwind_get_saved_register.
9100         * gdbarch.h, gdbarch.c: Re-generate.
9101         
9102 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9103
9104         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9105         generic_func_frame_chain_valid.
9106         * gdbarch.h, gdbarch.c: Re-generate.
9107         * blockframe.c (generic_func_frame_chain_valid): Only check
9108         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9109         passing FP to PC_IN_CALL_DUMMY.
9110         Fix PR gdb/360.
9111
9112 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9113
9114         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9115         (register_gdbarch_data): Initialize init_p.
9116         (gdbarch_data): Initialize data pointer using the init function.
9117         (init_gdbarch_data): Delete function.
9118         (gdbarch_update_p): Update.
9119         (initialize_non_multiarch): Update.
9120         (struct gdbarch): Add field initialized_p.
9121         * gdbarch.h, gdbarch.c: Re-generate.
9122
9123 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9124
9125         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9126         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9127         better do the things actually here.
9128         * x86-64-tdep.c (x86_64_register_name2nr): New.
9129         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9130         (x86_64_gdbarch_init): Respect the above change.
9131         * x86-64-tdep.h (x86_64_register_name2nr)
9132         (x86_64_register_nr2name): Add prototypes.
9133         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9134
9135 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9136
9137         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9138         Delete extra braces and re-indent.
9139         (d10v_store_return_value): Char return values
9140         must be shifted over by one byte in R0.
9141         (d10v_extract_return_value): Delete extra braces, re-indent.
9142
9143 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9144
9145         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9146         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9147         (d10v_integer_to_address): Rewrite.
9148         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9149         the d10v specific functions which take care of converting to the
9150         correct space.
9151
9152 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9153
9154         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9155         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9156
9157 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9158
9159         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9160         includes.
9161         * config/tm-linux.h: Ditto.
9162         * config/alpha/tm-alphalinux.h: Ditto.
9163         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9164         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9165         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9166         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9167         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9168         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9169         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9170         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9171         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9172         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9173         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9174         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9175         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9176         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9177         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9178         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9179         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9180         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9181         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9182         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9183         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9184         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9185         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9186         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9187         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9188         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9189         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9190         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9191         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9192         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9193         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9194         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9195         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9196         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9197         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9198         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9199         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9200
9201 2002-05-04  Aidan Skinner <aidan@velvet.net>
9202
9203         * ada-exp.tab.c: New file
9204         * ada-exp.y: New file
9205         * ada-lang.c: New file
9206         * ada-lang.h: New file
9207         * ada-lex.c: New file
9208         * ada-lex.l: New file
9209         * ada-tasks.c: New file
9210         * ada-typeprint.c: New file
9211         * ada-valprint.c: New file
9212         
9213 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9214
9215         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9216         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9217
9218 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9219
9220         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9221         insetead of ppc-linux-tdep.o.
9222         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9223         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9224
9225 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9226
9227         2002-05-07 Christian Groessler <chris@groessler.org>
9228         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9229         bit register contents for little endian hosts.
9230
9231 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9232
9233         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9234         any maintainer.
9235
9236 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9237
9238         * gdbarch.h: Regenerate.
9239
9240 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9241
9242         * MAINTAINERS: Add everyone to write-after-approval list.
9243
9244 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9245
9246         * stack.c (frame_info): Use frame_register_unwind instead of
9247         saved_regs.  Mention when the SP is on the stack or in a register.
9248
9249         * frame.h (frame_register_unwind_ftype): Define.  Document.
9250         (struct frame_info): Add field register_unwind and
9251         register_unwind_cache.
9252         (frame_register_unwind): Declare.
9253         (generic_unwind_get_saved_register): Declare.
9254
9255         * frame.c (frame_register_unwind): New function.
9256         (generic_unwind_get_saved_register): New function.
9257
9258         * blockframe.c (generic_call_dummy_register_unwind): New function.
9259         (frame_saved_regs_register_unwind): New function.
9260         (set_unwind_by_pc): New function.
9261         (create_new_frame): New function.
9262         (get_prev_frame): New function.
9263
9264 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9265
9266         * a29k-share/: Delete directory.
9267         * remote-vx29k.c: Delete file.
9268
9269 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9270
9271         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9272         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9273
9274 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9275
9276         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9277         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9278         (sparc64nbsd-nat.o)
9279         (sparcnbsd-nat.o)
9280         (sparcnbsd-tdep.o): New dependency lists.
9281         * NEWS: Note new UltraSPARC NetBSD native configuration.
9282         * configure.host (sparc64-*-netbsd*): New host.
9283         * configure.tgt (sparc-*-netbsdelf*)
9284         (sparc-*-netbsd*): Set gdb_target to nbsd.
9285         (sparc64-*-netbsd*): New target.
9286         * sparc64nbsd-nat.c: New file.
9287         * sparcnbsd-nat.c: New file.
9288         * sparcnbsd-tdep.c: New file.
9289         * sparcnbsd-tdep.h: New file.
9290         * config/sparc/nbsd.mt: New file.
9291         * config/sparc/nbsd64.mh: New file.
9292         * config/sparc/nbsd64.mt: New file.
9293         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9294         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9295         (HOST_IPC): Remove.
9296         * config/sparc/nbsdaout.mt: Remove.
9297         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9298         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9299         (HOST_IPC): Remove.
9300         * config/sparc/nbsdelf.mt: Remove.
9301         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9302         sparc-nat.c compatiblity defines.
9303         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9304         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9305         * config/sparc/tm-nbsd64.h: New file.
9306         * config/sparc/tm-nbsdaout.h: Remove.
9307         * config/sparc/xm-nbsd.h: Remove.
9308
9309 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9310
9311         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9312         * sparc-tdep.c: Include osabi.h.
9313         (gdbarch_tdep): Add osabi member.
9314         (_initialize_sparc_tdep): Use gdbarch_register.
9315         (sparc_gdbarch_init): Use generic OS ABI framework.
9316         (sparc_dump_tdep): New function.
9317
9318 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9319
9320         * corefile.c (do_captured_read_memory_integer): Return non-zero
9321         result.
9322         (safe_read_memory_integer): Copy result of memory read when
9323         status is non-zero.  Also, add comments.
9324
9325 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9326
9327         * Makefile.in (ppc_tdep_h): Define.
9328         (ppc-linux-nat.o)
9329         (ppc-linux-tdep.o)
9330         (rs6000-tdep.o): Use $(ppc_tdep_h).
9331         (ppc-sysv-tdep.o)
9332         (ppcnbsd-nat.o)
9333         (ppcnbsd-tdep.o): New dependency lists.
9334         * ppc-tdep.h: Use generic OS ABI framework.
9335         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9336         (ppc_linux_init_abi): New functions.
9337         (ppc_sysv_abi_broken_use_struct_convention)
9338         (ppc_sysv_abi_use_struct_convention)
9339         (ppc_sysv_abi_push_arguments): Move to...
9340         * ppc-sysv-tdep.c: ...here.
9341         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9342         * rs6000-tdep.c (process_note_abi_tag_sections)
9343         (get_elfosabi): Remove.
9344         (rs6000_gdbarch_init): Use generic OS ABI framework.
9345         (rs6000_dump_tdep): New function.
9346         (_initialize_rs6000_tdep): Use gdbarch_register.
9347         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9348         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9349         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9350         of ppc-linux-tdep.o.
9351         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9352         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9353         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9354         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9355         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9356         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9357
9358 2002-05-29  Jim Blandy  <jimb@redhat.com>
9359
9360         * macroscope.c (default_macro_scope): Put `void' in empty argument
9361         list.
9362
9363 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9364
9365         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9366         * arch-utils.c: Include "sim-regno.h".
9367         * gdbarch.sh: Don't include "sim-regno.h".
9368         * gdbarch.h, gdbarch.c: Regenerate.
9369         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9370         here.
9371         * arch-utils.h (legacy_register_sim_regno): To here.
9372         * remote-sim.c (legacy_register_sim_regno): Move function from
9373         here.
9374         * arch-utils.c (legacy_register_sim_regno): To here.
9375
9376 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9377
9378         * sim-regno.h: New file.
9379         * Makefile.in (sim_regno_h): Define.
9380         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9381         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9382         (legacy_register_sim_regno): New function.
9383         (one2one_register_sim_regno): New function.
9384         (gdbsim_fetch_register): Rewrite.
9385         (gdbsim_store_register): Only store a register when
9386         REGISTER_SIM_REGNO is valid.
9387         * d10v-tdep.c: Include "sim-regno.h".
9388         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9389         (d10v_ts3_register_sim_regno): Ditto.
9390         * gdbarch.sh: Include "sim-regno.h".
9391         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9392         * gdbarch.h, gdbarch.c: Regenerate.
9393         * arch-utils.h (default_register_sim_regno): Delete declaration.
9394         * arch-utils.c (default_register_sim_regno): Delete function.
9395
9396 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9397
9398         * ppcnbsd-nat.c: Rewrite.
9399         * ppcnbsd-tdep.c: New file.
9400         * ppcnbsd-tdep.h: New file.
9401         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9402         solib.o, and solib-svr4.o.
9403         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9404         nbsd-tdep.o, and corelow.o.
9405
9406 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9407
9408         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9409         `tr' and `sed'.  Mention that `broken' targets are not expected to
9410         build.
9411
9412 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9413
9414         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9415         Let PC point right after the prologue before looking up symbols.
9416         
9417 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9418
9419         * i386-tdep.c (i386_register_virtual_type): Return 
9420         builtin_type_vec128i for SSE registers.
9421
9422         * gdbtypes.h (builtin_type_vec128i): Declare.
9423
9424         * gdbtypes.c (build_builtin_type_vec128i): New function.
9425         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9426         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9427         (build_gdbtypes): Initialize new builtin vector types.
9428         (_initialize_gdbtypes): Register new vector types with gdbarch.
9429
9430 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9431
9432         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9433         since it has been multi-arch'd.
9434         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9435         Move Alpha and VAX multi-arch news entries to same section
9436         as other multi-arch news.
9437
9438 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9439
9440         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9441         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9442         static.  Rename some register numbers to put them in ns32k-tdep
9443         private namespace.
9444         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9445         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9446         functions.
9447         (_initialize_ns32k_tdep): Use gdbarch_register.
9448         * ns32k-tdep.h: New file.
9449         * ns32knbsd-tdep.c: New file.
9450         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9451         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9452         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9453         REGISTER_BYTES, REGISTER_BYTE): Remove.
9454         * config/ns32k/tm-ns32k.h: New file.
9455         * config/ns32k/tm-umax.h: Remove.
9456
9457 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9458
9459         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9460         ns32k_store_struct_return, ns32k_extract_return_value,
9461         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9462         functions.
9463         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9464         ns32k_saved_pc_after_call.
9465         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9466         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9467         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9468         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9469         ns32k_extract_struct_value_address.
9470
9471 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9472
9473         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9474         ns32k_fix_call_dummy): New.
9475         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9476         ns32k_call_dummy_words.
9477         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9478         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9479         CALL_DUMMY_NARGS): Remove.
9480         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9481
9482 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9483
9484         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9485         ns32k_frame_saved_pc, ns32k_frame_args_address,
9486         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9487         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9488         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9489         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9490         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9491         (BREAKPOINT): Remove..
9492         (FRAME_CHAIN): Define as ns32k_frame_chain.
9493         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9494         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9495         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9496         (FRAME_FIND_SAVED_REGS): Remove.
9497         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9498         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9499         (POP_FRAME): Define as ns32k_pop_frame.
9500
9501 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9502
9503         * ns32k-tdep.c (ns32k_register_byte_32082,
9504         ns32k_register_byte_32382, ns32k_register_raw_size,
9505         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9506         functions.
9507         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9508         ns32k_register_byte_32382.
9509         * config/ns32k/tm-umax.h: Update copyright years.
9510         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9511         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9512         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9513         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9514         (ns32k_get_enter_addr): Fix prototype.
9515
9516 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9517
9518         * ns32k-tdep.c: Update copyright years.
9519         (ns32k_register_name_32082): New function.
9520         (ns32k_register_name_32382): Ditto.
9521         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9522         (REGISTER_NAME): Define as ns32k_register_name_32382.
9523         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9524         (REGISTER_NAME): Define as ns32k_register_name_32082.
9525
9526 2002-05-24  Jim Blandy  <jimb@redhat.com>
9527
9528         * dwarf2read.c (free_line_header): Use xfree, not free.
9529
9530 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9531
9532         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9533         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9534
9535 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9536
9537         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9538
9539 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9540
9541         From Ross Alexander at NEC Europe:
9542         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9543
9544 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9545
9546         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9547         for input, rather than parse_and_eval_address.  
9548
9549 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9550
9551         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9552         * Makefile.in (sim_d10v_h): Update definition.
9553
9554 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9555
9556         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9557         change `2002-05-22 Michael Snyder' below.
9558         (d10v_push_arguments): Ditto.
9559         (d10v_extract_return_value): Ditto.
9560
9561 2002-05-23  Jim Blandy  <jimb@redhat.com>
9562
9563         * macrotab.c (check_for_redefinition): Don't complain if the new
9564         definition is the same as the previous one.  Take more arguments
9565         to allow the comparison.
9566         (macro_define_object, macro_define_function): Pass more arguments
9567         to check_for_redefinition.
9568
9569 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9570
9571         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9572         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9573         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9574         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9575         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9576         Add a temp variable to save a call (and a memory read).
9577         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9578         if possible (so that PC_IN_CALL_DUMMY will work).
9579
9580 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9581
9582         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9583
9584 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9585
9586         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9587         fde->cie_ptr.
9588         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9589         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9590         so that frames of shared libraries are mapped correctly.
9591         (execute_stack_op): Change type of 'result' from ULONGEST to
9592         CORE_ADDR.
9593         
9594 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9595
9596         * config/alpha/tm-nbsd.h: Include solib.h.
9597
9598 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9599
9600         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9601         assumptions about the host's byte order.
9602
9603 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9604
9605         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9606         to dependency list.
9607         * alphanbsd-tdep.c: Include solib-svr4.h.
9608         * shnbsd-tdep.c: Ditto.
9609
9610 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9611
9612         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9613         nbsd-tdep.h to dependency list.
9614         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9615         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9616         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9617         nbsdaout.mh and nbsdelf.mh consistently.
9618         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9619         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9620         nbsdaout.mt and nbsdelf.mh consistently.
9621         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9622         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9623         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9624         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9625         a.out shared library stuff from here...
9626         * config/nm-nbsdaout.h: ...to here.
9627         * config/tm-nbsd.h: Remove.
9628         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9629         * config/arm/nbsd.mh: Remove.
9630         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9631         nbsd-tdep.o.
9632         * config/arm/nbsdaout.mh: New file. 
9633         * config/arm/nbsdelf.mh: New file.
9634         * config/arm/nm-nbsdaout.h: New file.
9635         * config/i386/nbsd.mh: Remove.
9636         * config/i386/nbsd.mt: Remove.
9637         * config/i386/nbsdaout.mh: New file.
9638         * config/i386/nbsdaout.mt: New file.
9639         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9640         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9641         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9642         i386_register_u_addr): Remove.
9643         * config/i386/nm-nbsdaout.h: New file.
9644         * config/i386/nm-nbsdelf.h: Remove.
9645         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9646         (USE_STRUCT_CONVENTION): Remove.
9647         * config/i386/tm-nbsdaout.h: New file.
9648         * config/i386/tm-nbsdelf.h: Remove.
9649         * config/m68k/nbsd.mh: Remove.
9650         * config/m68k/nbsd.mt: Remove.
9651         * config/m68k/nbsdaout.mh: New file.
9652         * config/m68k/nbsdaout.mt: New file. 
9653         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9654         * config/m68k/nm-nbsdaout.h: New file.
9655         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9656         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9657         * config/ns32k/nbsd.mh: Remove.
9658         * config/ns32k/nbsd.mt: Remove. 
9659         * config/ns32k/nbsdaout.mh: New file.
9660         * config/ns32k/nbsdaout.mt: New file.
9661         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9662         * config/ns32k/nm-nbsdaout.h: New file.
9663         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9664         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9665         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9666         (SVR4_SHARED_LIBS): Remove.
9667         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9668         * config/sparc/nbsd.mh: Remove.
9669         * config/sparc/nbsd.mt: Remove.
9670         * config/sparc/nbsdaout.mh: New file.
9671         * config/sparc/nbsdaout.mt: New file.
9672         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9673         * config/sparc/nbsdelf.mt: New file.
9674         * config/sparc/nm-nbsdaout.h: New file.   
9675         * config/sparc/nm-nbsdelf.h: Remove.
9676         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9677         * config/sparc/tm-nbsdaout.h: New file.
9678
9679 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9680
9681         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9682         mipsnbsd-tdep.c
9683         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9684
9685 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9686
9687         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9688         shnbsd-nat.c.
9689         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9690
9691 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9692
9693         * NEWS: Note new MIPS NetBSD native configuration. 
9694         * configure.host (mips*-*-netbsd*): New host. 
9695         * configure.tgt (mips*-*-netbsd*): New target. 
9696         * mipsnbsd-nat.c: New file.
9697         * mipsnbsd-tdep.c: New file.
9698         * mipsnbsd-tdep.h: New file.
9699         * config/mips/nbsd.mh: New file.
9700         * config/mips/nbsd.mt: New file.
9701         * config/mips/nm-nbsd.h: New file.
9702         * config/mips/tm-nbsd.h: New file.
9703
9704 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9705
9706         * Makefile.in (SFILES): Add osabi.c.
9707         (COMMON_OBS): Add osabi.o.
9708         (osabi.o): New dependency list.
9709         * osabi.c: New file.
9710         * osabi.h: New file.
9711         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9712
9713         * Makefile.in (alpha_tdep_h): Define and use instead of
9714         alpha-tdep.h.
9715         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9716         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9717         Remove.
9718         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9719         * alpha-tdep.h: Include osabi.h.
9720         (alpha_abi): Remove.
9721         (gdbarch_tdep): Use generic OS ABI framework.
9722         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9723         gdbarch_register_osabi.
9724         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9725         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9726         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9727
9728         * Makefile.in (sh_tdep_h): Add osabi.h.
9729         * sh-tdep.h (sh_osabi): Remove.
9730         (gdbarch_tdep): Use generic OS ABI framework.
9731         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9732         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9733         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9734         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9735
9736         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9737         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9738         gdbarch_register_osabi.
9739         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9740         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9741         (get_elfosabi): Rename to...
9742         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9743         ABI framework support routines.
9744         (arm_gdbarch_init): Use generic OS ABI framework.
9745         (arm_dump_tdep): Likewise.
9746         (_initialize_arm_tdep): Likewise.
9747         * arm-tdep.h: Include osabi.h.
9748         (arm_abi): Remove.
9749         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9750         osabi member.
9751         (arm_gdbarch_register_os_abi): Remove prototype.
9752         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9753         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9754
9755         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9756         * mips-tdep.c: Include osabi.h.
9757         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9758         OS ABI framework.
9759
9760 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9761
9762         * h8300-tdep.c: Fix formatting.
9763
9764 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9765
9766         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9767         printing vector registers.
9768
9769 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9770
9771         From Fernando Nasser:
9772         * remote.c (remote_async_open_1): Re-throw the exception when the
9773         connection fails.
9774         (remote_cisco_open): Ditto.
9775         (remote_open_1): Ditto.
9776
9777 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9778
9779         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9780         (remote_start_remote): Add uiout parameter.  Pass through to
9781         remote_start_remote_dummy.
9782         (remote_open_1): Use catch_exception instead of catch_errors.
9783         (remote_async_open_1): Ditto.
9784         (remote_cisco_open): Ditto.
9785
9786 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9787
9788         * remote.c (remote_start_remote): Replace PTR with void pointer.
9789         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9790         static.
9791
9792 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9793
9794         * gdb_indent.sh: Allow the script to be run in the sim directory.
9795
9796 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9797
9798         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9799         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9800
9801         * corelow.c (core_open): Only call set_gdbarch_from_file if
9802         exec_bfd is NULL.
9803
9804 2002-05-17  Andrey Volkov <avolkov@transas.com>
9805
9806         * h8300-tdep.c: Add support of EXR register
9807         * config/h8300/tm-h8300.h: Ditto. 
9808         
9809 2002-05-17  Andrey Volkov <avolkov@transas.com>
9810
9811         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9812         
9813 2002-05-17  Andrey Volkov <avolkov@transas.com>
9814
9815         * h8300-tdep.c: Change literal regnums to REGNO.
9816         
9817 2002-05-17  Jim Blandy  <jimb@redhat.com>
9818
9819         * NEWS: Note addition of macro support.
9820
9821         Expand preprocessor macros in C expressions.
9822         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9823         (scan_macro_expansion, scanning_macro_expansion,
9824         finished_macro_expansion): New function declarations.
9825         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9826         variable declarations.
9827         * parser-defs.h (expression_context_pc): New declaration.
9828         * parse.c (expression_context_pc): New variable.
9829         (parse_exp_1): Set expression_context_pc, as well as
9830         expression_context_block.
9831         * c-exp.y (yylex): If we're not already reading the result of a
9832         macro expansion, try to macro-expand the next token.  When we're
9833         done scanning a macro expansion, switch back to the mainline text.
9834         Commas and `if's in a macro's expansion don't terminate the input.
9835         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9836         (macro_original_text, macro_expanded_text,
9837         expression_macro_lookup_func, expression_macro_lookup_baton): New
9838         variables.
9839         (scan_macro_expansion, scanning_macro_expansion,
9840         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9841         c_preprocess_and_parse): New functions.
9842         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9843         c_preprocess_and_parse, instead of c_parse.
9844         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9845         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9846
9847 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9848
9849         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9850         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9851         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9852
9853 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9854
9855         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9856
9857 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9858
9859         * Makefile.in (sh_tdep_h): Define and use.
9860         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9861         register enum): Move to...
9862         * * sh-tdep.h: ...here.
9863         * sh-tdep.c: Include sh-tdep.h.
9864         * sh3-rom.c: Likewise.
9865         * shnbsd-tdep.c: Likewise.
9866
9867 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9868
9869         * arm-tdep.c: Spelling fix in comment.
9870
9871 2002-05-16  Jim Blandy  <jimb@redhat.com>
9872
9873         Add commands for manually expanding macros and showing their
9874         definitions.
9875         * macrocmd.c, macroscope.c, macroscope.h: New files.
9876         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9877         (macroscope_h): New variable.
9878         (HFILES_NO_SRCDIR): Add macroscope.h.
9879         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9880         (macroscope.o, macrocmd.o): New rules.
9881
9882         Teach the Dwarf 2 reader to read macro information.
9883         * dwarf2read.c: #include "macrotab.h".
9884         (dwarf_macinfo_buffer): New variable.
9885         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9886         dwarf_macinfo_size.
9887         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9888         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9889         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9890         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9891         dwarf2_macro_spaces_in_definition): New complaints.
9892         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9893         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9894         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9895         the partial symbol table.
9896         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9897         from what's recorded in the partial symbol table.
9898         (read_file_scope): If the compilation unit has a
9899         `DW_AT_macro_info' attribute, read its macro information.
9900         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9901
9902 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9903
9904         Fix PR gdb/546
9905         * ser-tcp.c: Don't include <netinet/udp.h>.
9906
9907 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9908
9909         * MAINTAINERS: Update my email address.
9910
9911 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9912
9913         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9914         include file of the same name.
9915
9916 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9917
9918         * configure.tgt: Mark v850 as multi-arched.
9919         * config/v850/tm-v850.h: Remove file.
9920         * config/v850/v850.mt: Eliminate TM_FILE.
9921
9922 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9923
9924         * v850-tdep.c: Full multi-arch.
9925         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9926         Define GDB_MULTI_ARCH to 2.
9927
9928 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9929
9930         * p-exp.y (current_type): New static variable.
9931         Carries the type of the expression at the position that is parsed.
9932         (push_current_type, pop_current_type): Two new functions. Used
9933         to store/restore current_type in expression on specific tokens.
9934         (search_field): New static variable. Set to one after parsing a point
9935         as at that point only a FIELDNAME token should be searched.
9936         (FIELDNAME): New token. After a point only a token belonging to 
9937         current_type type definition is allowed.
9938         (all over token rules): reset and change current_type according
9939         to rules.
9940         (exp '[' rule): insert implicit array index field if
9941         exp is a pascal string type.
9942
9943 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9944
9945         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9946         frame info.  Use frame_info's saved_regs instead of matching member
9947         in extra_frame_info throughout.
9948         (v850_frame_init_saved_regs): New function.
9949         (v850_init_extra_frame_info): Move most functionality into
9950         v850_frame_init_saved_regs().
9951         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9952         (v850_frame_find_saved_regs): Remove declaration.
9953         (FRAME_FIND_SAVED_REGS): Remove definition.
9954         (v850_frame_init_saved_regs): Add declaration.
9955         (FRAME_INIT_SAVED_REGS): Add definition.
9956
9957 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9958
9959         * v850-tdep.c: Begin multi-arch'ing v850.
9960         (v850_target_architecture_hook): Remove function.
9961         (v850_gdbarch_init): New function.  Add code previously in
9962         v850_target_architecture_hook().
9963         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9964         Call register_gdbarch_init() instead.
9965
9966 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9967
9968         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9969         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9970         (fixup_class_method_type): Likewise.
9971
9972 2002-05-15  Jim Blandy  <jimb@redhat.com>
9973
9974         Add macro structures to GDB's symbol tables.  Nobody puts anything
9975         in them yet.
9976         * symtab.h (struct symtab): New member: `macro_table'.
9977         * buildsym.h (pending_macros): New global variable.
9978         * buildsym.c: #include "macrotab.h".
9979         (buildsym_init): Initialize `pending_macros'.
9980         (end_symtab): If we found macro information while reading a CU's
9981         debugging info, do build a symtab structure for it.  Make the
9982         symtab point to the macro information, and clear the
9983         `pending_macros' pointer which held it while we were reading the
9984         debug info.
9985         (really_free_pendings): Free any pending macro table.
9986         * objfiles.h (struct objfile): New member: `macro_cache'.
9987         * objfiles.c (allocate_objfile): Set allocate and free functions
9988         for the macro cache's objstack.
9989         (free_objfile): Empty the macro cache's obstack.
9990         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9991         set new allocate and free functions for it.
9992         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9993         free functions for the macro cache's objstack.  (Why is this
9994         function building its own objfile?)
9995         * symmisc.c (print_objfile_statistics): Print statistics on the
9996         macro bcache.
9997         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9998
9999 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10000
10001         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10002         (REGISTER_U_ADDR): Delete definition.
10003         (arm_register_u_addr): Delete declaration.
10004
10005 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10006
10007         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10008         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10009
10010 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
10011
10012         * regcache.c (register_valid): Revise comments refering to "Not
10013         available" and "unavailable".
10014         * frame.c (frame_register_read): Ditto.
10015         * findvar.c (value_of_register): Ditto.
10016
10017 2002-05-15  Andrew Cagney  <cagney@redhat.com>
10018
10019         * Makefile.in (remote_sim_h): Replace remote-sim_h.
10020         (remote-sim.o): Update dependencies.
10021         (d10v-tdep.o): Specify dependencies.
10022         (sim_d10v_h): Define.
10023
10024 2002-05-14  Jim Blandy  <jimb@redhat.com>
10025
10026         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10027         * macrotab.c (macro_lookup_inclusion, find_definition,
10028         new_macro_table): Same.
10029         
10030         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10031         not `! strcmp ()'.  This is a dubious improvement.
10032         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10033
10034         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10035         although it's not necessary, to avoid a warning.
10036
10037 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10038
10039         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10040         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10041         TYPE_INSTANCE_FLAGS.
10042         (struct main_type): New.
10043         (struct type): Move most members to struct main_type.  Change
10044         cv_type and as_type to new type_chain member.  Add instance_flags.
10045         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10046         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10047         (finish_cv_type): Remove prototype.
10048         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10049         Set TYPE_CHAIN.
10050         (alloc_type_instance): New function.
10051         (smash_type): New function.
10052         (make_pointer_type, make_reference_type, make_function_type)
10053         (smash_to_member_type, smash_to_method_type): Call smash_type.
10054         (make_qualified_type): New function.
10055         (make_type_with_address_space): Call make_qualified_type.
10056         (make_cv_type): Likewise.
10057         (finish_cv_type): Remove unnecessary function.
10058         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10059         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10060         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10061         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10062         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10063         * hpread.c (hpread_read_struct_type): Likewise.
10064         * stabsread.c (read_struct_type): Likewise.
10065
10066 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10067
10068         * configure.tgt: Add a catch all sh* target, for cases like
10069         sh[2,3,4]-elf and sh-hms.
10070
10071 2002-05-14  Keith Seitz  <keiths@redhat.com>
10072
10073         * event-loop.c (create_file_handler): Don't do anything but
10074         update data when we are given a fd which we are already
10075         monitoring.
10076
10077 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10078
10079         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10080         (update_context): Use __func__ in warnings.
10081         
10082 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10083
10084         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10085         and tcp_close to net_open and net_close.
10086         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10087         using UDP if requested.  Don't try to disable Nagle on UDP
10088         sockets.
10089         * remote.c (remote_serial_open): New function.  Warn about UDP.
10090         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10091
10092 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10093
10094         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10095
10096 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10097
10098         * configure.tgt: Remove sh-hms target.
10099         * MAINTAINERS: Don't list sh-hms as a separate target.
10100
10101 2002-05-13  Jim Blandy  <jimb@redhat.com>
10102
10103         Add first preprocessor macro-expansion files.
10104         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10105         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10106         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10107         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10108         (COMMON_OBS): Add macrotab.o, macroexp.o.
10109         (macroexp.o, macrotab.o): New rules.
10110
10111 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10112
10113         * config/m88k/tm-m88k.h: Update copyright.
10114         (m88k_target_write_pc): Declare
10115         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10116         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10117         (SHIFT_INST_REGS): Update definition.
10118         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10119         using old definition of TARGET_WRITE_PC.
10120         * regcache.c (generic_target_write_pc): Delete code handling
10121         NNPC_REGNUM.
10122         * gdbarch.sh (NNPC_REGNUM): Delete.
10123         * gdbarch.h, gdbarch.c: Regenerate.
10124
10125 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10126
10127         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10128         builtin reg number.
10129
10130 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10131
10132         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10133         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10134         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10135         access macros.
10136         * c-typeprint.c (cp_type_print_method_args): Likewise.
10137         (c_type_print_args): Likewise.
10138         * d10v-tdep.c (d10v_push_arguments): Likewise.
10139         (d10v_extract_return_value): Likewise.
10140         * expprint.c (print_subexp): Likewise.
10141         * gdbtypes.c (lookup_primitive_typename): Likewise.
10142         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10143         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10144         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10145         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10146         (TYPE_VECTOR): Likewise.
10147         * hpread.c (hpread_read_struct_type)
10148         (fix_static_member_physnames, fixup_class_method_type)
10149         (hpread_type_lookup): Likewise.
10150         * mdebugread.c (parse_symbol, parse_type): Likewise.
10151         * p-lang.c (is_pascal_string_type): Likewise.
10152         * valops.c (hand_function_call): Likewise.
10153         * x86-64-tdep.c (classify_argument): Likewise.
10154
10155         * hpread.c (hpread_read_function_type)
10156         (hpread_read_doc_function_type): Call replace_type.
10157         * dstread.c (create_new_type): Delete.
10158         (decode_dst_structure, process_dst_function): Call alloc_type.
10159         Use type access macros.
10160
10161 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10162
10163         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10164         the're not supported by the current architecture.
10165         (i387_fill_fxsave): Likewise.
10166
10167 2002-05-12  Fred Fish  <fnf@redhat.com>
10168
10169         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10170         sect_index_xxx members to index the first slot in section_offsets
10171         if all of the section_offsets are zero.
10172
10173 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10174
10175         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10176         checked in with last change.
10177
10178 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10179
10180         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10181         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10182         config.sub.
10183
10184 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10185
10186         * Makefile.in: Update dependencies.
10187
10188 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10189
10190         * language.c (local_hex_string_custom): Simplify.  Do not depend
10191         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10192
10193         * memattr.c (mem_info_command): Replace calls to
10194         longest_local_hex_string and longest_local_hex_string_custom.
10195         * buildsym.c (make_blockvector): Ditto.
10196         * solib.c (info_sharedlibrary_command): Ditto.
10197         * tracepoint.c (tracepoints_info): Ditto.
10198         * symtab.c (print_msymbol_info): Ditto.
10199
10200         * language.c (local_hex_string): Delete.
10201         (local_hex_string_custom): Delete.
10202         (longest_local_hex_string): Rename to local_hex_string.
10203         (longest_local_hex_string_custom): Rename to
10204         local_hex_string_custom.
10205         * language.h (local_hex_string): Change parameter type to LONGEST.
10206         (local_hex_string_custom): Ditto.
10207         (longest_local_hex_string): Delete declaration.
10208         (longest_local_hex_string_custom): Ditto.
10209
10210         * solib.c: Update copyright.
10211         * memattr.c: Update copyright.
10212         
10213 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10214
10215         * arch-utils.h (legacy_register_to_value): Declare.
10216         (legacy_value_to_register): Declare.
10217         (legacy_convert_register_p): Declare.
10218         * arch-utils.c (legacy_register_to_value): New function.
10219         (legacy_value_to_register): New function.
10220         (legacy_convert_register_p): New function.
10221
10222         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10223         (VALUE_TO_REGISTER): Define.
10224         (CONVERT_REGISTER_P): Define.
10225         * gdbarch.h, gdbarch.c: Regenerate.
10226
10227         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10228         VALUE_TO_REGISTER.
10229         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10230         CONVERT_REGISTER_P.
10231
10232 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10233             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10234
10235         * Makefile.in: Update dependencies for valops.c.
10236         * valops.c: Include "gdb_assert.h".
10237         (typecmp): Skip THIS parameter to methods.
10238         (find_method_list): Remove static_memfuncp argument,
10239         update callers.  Check for stub methods.
10240         (find_value_oload_method_list): Don't set *static_memfuncp.
10241         (find_overload_match): Don't check for stub methods.  Assert
10242         that methods are not stubbed.  Handle static methods.
10243         (value_find_oload_method_list): Remove static_memfuncp argument.
10244         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10245         to the argument list for static stub methods.
10246         * value.h (value_find_oload_method_list): Update prototype.
10247
10248 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10249
10250         * arch-utils.h (generic_register_size): Declare.
10251         (generic_register_raw_size, generic_register_virtual_size): Delete
10252         declarations.
10253         * arch-utils.c (generic_register_raw_size): Delete.
10254         (generic_register_size): New function.
10255         (generic_register_virtual_size): Delete.
10256
10257         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10258         default generic_register_size.
10259         * gdbarch.h, gdbarch.c: Re-generate.
10260         
10261         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10262         register_virtual_size.
10263         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10264         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10265
10266 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10267
10268         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10269         * gdbarch.h, gdbarch.c: Regenerate.
10270         * gnu-v3-abi.c: Update copyright.
10271         (vtable_address_point_offset): Update.
10272         (gnuv3_rtti_type): Update.
10273         (gnuv3_baseclass_offset): Update.
10274         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10275         (init_fetch_link_map_offsets): Update.
10276         * remote.c (get_remote_state): Update.
10277         
10278 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10279
10280         * TODO: Remove value_headof/value_from_vtable_info comment.
10281         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10282         * values.c (value_headof, value_from_vtable_info): Delete.
10283         * value.h (value_from_vtable_info): Delete prototype.
10284
10285 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10286
10287         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10288         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10289         $(gdb_regex_h).
10290         (gdb_assert_h): Define.
10291         (gdb_wait_h): Define.
10292         (gdb_regex_h): Define.
10293
10294 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10295
10296         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10297         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10298
10299 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10300
10301         * nbsd-tdep.c: Fix comment.
10302
10303 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10304
10305         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10306         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10307         (nbsd-tdep.o): New dependency list.
10308         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10309         nbsd-tdep.h.
10310         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10311         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10312         * nbsd-tdep.c: New file.
10313         * nbsd-tdep.h: New file.
10314         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10315         nbsd-tdep.h.
10316         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10317         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10318         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10319         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10320
10321 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10322
10323         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10324         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10325         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10326         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10327         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10328         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10329
10330 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10331
10332         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10333         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10334         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10335         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10336         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10337         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10338         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10339
10340 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10341
10342         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10343         fetch_elfcore_registers to...
10344         * i386nbsd-tdep.c: ...here.
10345         (i386nbsd_use_struct_convention): Rename to...
10346         (i386nbsd_aout_use_struct_convention): ...this.
10347         (i386nbsd_supply_reg): New function.
10348         (i386nbsd_fill_reg): New function.
10349         (fetch_core_registers): Use i386nbsd_supply_reg.
10350         (fetch_elfcore_registers): Likewise.
10351         (_initialize_i386nbsd_tdep): New function.
10352         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10353         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10354         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10355         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10356         (i386nbsd_aout_use_struct_convention): ...this.
10357
10358 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10359
10360         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10361         (store_inferior_registers): Use shnbsd_fill_reg.
10362         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10363         sh_nbsd_supply_register): Collapse into...
10364         (shnbsd_supply_reg): ...this.
10365         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10366         (shnbsd_fill_reg): ...this.
10367         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10368         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10369         (fetch_core_registers): Use shnbsd_supply_reg.
10370         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10371         (sh_nbsd_core_fns): Rename to...
10372         (shnbsd_core_fns): ...this.
10373         (sh_nbsd_elfcore_fns): Rename to...
10374         (shnbsd_elfcore_fns): ...this.
10375         (sh_nbsd_init_abi): Rename to...
10376         (shnbsd_init_abi): ...this.
10377         (_initialize_sh_nbsd_tdep): Rename to...
10378         (_initialize_shnbsd_tdep): ...this.
10379         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10380         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10381         sh_nbsd_fill_register): Remove prototypes.
10382         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10383
10384 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10385
10386         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10387         (i387-nat.o): Delete dependency list.
10388         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10389         (x86-64-linux-nat.o): Likewise.
10390         * i387-nat.c: Delete file, moving contents to...
10391         * i387-tdep.c: ...here.
10392         * i387-nat.h: Rename...
10393         * i387-tdep.h: ...to this.
10394         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10395         * i386-linux-nat.c: Likewise.
10396         * i386bsd-nat.c: Likewise.
10397         * i386gnu-nat.c: Likewise.
10398         * i386nbsd-nat.c: Likewise.
10399         * i386v4-nat.c: Likewise.
10400         * x86-64-linux-nat.c: Likewise.
10401         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10402         * config/i386/go32.mh (NATDEPFILES): Likewise.
10403         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10404         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10405         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10406         * config/i386/linux.mh (NATDEPFILES): Likewise.
10407         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10408         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10409         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10410         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10411
10412 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10413
10414         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10415         (alphanbsd-nat.o): Remove dependency list.
10416         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10417         * alphanbsd-nat.c: Delete.  Contents moved to...
10418         * alphanbsd-tdep.c: ...here.
10419         (_initialize_alphanbsd_tdep): Register core functions.
10420         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10421
10422 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10423
10424         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10425         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10426         (alphanbsd-nat.o): Likewise.
10427         (alphabsd-tdep.o): New dependency list.
10428         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10429         (fill_gregset): Use alphabsd_fill_reg.
10430         (supply_fpregset): Use alphabsd_supply_fpreg.
10431         (fill_fpregset): Use alphabsd_fill_fpreg.
10432         (fetch_inferior_registers): Use struct reg and struct fpreg
10433         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10434         and alphabsd_supply_fpreg.
10435         (store_inferior_registers): Use struct reg and struct fpreg
10436         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10437         and alphabsd_fill_fpreg.
10438         * alphabsd-tdep.c: New file.
10439         * alphabsd-tdep.h: New file.
10440         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10441         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10442         alphabsd_supply_fpreg.
10443         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10444         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10445
10446 2002-05-11  Eric Christopher  <echristo@redhat.com>
10447
10448         * mips-tdep.c (mips_double_register_type): Fix thinko.
10449         (mips_single_register_type): Ditto.
10450         * MAINTAINERS: Add self.
10451
10452 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10453
10454         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10455         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10456         right thing on architectures with different endianness and/or
10457         integer sizes.
10458
10459 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10460
10461         From Christian Limpach <chris@Pin.LU>
10462         * configure.in: Change sed expression which comments out
10463         NATDEPFILES to also comment out continuation lines.
10464         * configure: Regenerate.
10465
10466 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10467
10468         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10469         big patch.
10470
10471 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10472
10473         * sh-tdep.c: Include correct file.
10474
10475 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10476
10477         New support for sh64-elf (sh5) target.
10478
10479         * configure.tgt: For sh64-elf target, default to sh-elf.
10480
10481         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10482         (struct gdbarch_tdep): Add new fields for new registers and ABI
10483         info.
10484
10485         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10486         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10487         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10488         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10489         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10490         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10491         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10492         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10493         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10494         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10495         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10496         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10497         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10498         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10499         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10500         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10501         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10502         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10503         sign_extend, sh64_nofp_frame_init_saved_regs,
10504         sh64_init_extra_frame_info, sh64_get_saved_register,
10505         sh64_extract_struct_value_address, sh64_pop_frame,
10506         sh64_push_arguments, sh64_extract_return_value,
10507         sh64_store_return_value, sh64_show_media_regs,
10508         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10509         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10510         sh_sh64_register_virtual_type,
10511         sh_sh64_register_convert_to_virtual,
10512         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10513         sh64_register_read, sh64_pseudo_register_write,
10514         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10515         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10516         sh64_do_pseudo_register, sh_compact_do_registers_info,
10517         sh64_do_registers_info, sh_gdbarch_init): New functions.
10518
10519 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10520
10521         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10522
10523 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10524
10525         * linespec.c (decode_line_1): Check for a double quote after
10526         a filename correctly.
10527
10528 2002-05-10  Jim Blandy  <jimb@redhat.com>
10529
10530         Properly track the size of the current objfile's .debug_line section.
10531         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10532         (DWARF_LINE_SIZE): New macro.
10533         (dwarf2_build_psymtabs_hard): Record the line section's size in
10534         the partial symbol table.
10535         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10536         symbol table.
10537
10538 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10539
10540         * ia64-tdep.c: Handle breakpoints on L instruction type
10541         in MLX instruction bundle by moving the breakpoint to
10542         the third slot (X instruction type) as L holds only data.
10543
10544 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10545
10546         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10547         (process_one_symbol): Complain about discarding local symbols
10548         due to a misplaced N_LBRAC entry.
10549
10550 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10551
10552         From Daniel Berlin <dan@cgsoftware.com>
10553         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10554         decrease the depth we are at, in the case of templates.
10555
10556 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10557
10558         * mips-tdep.c (mips_float_register_type): New function.
10559         (mips_double_register_type): New function.
10560         (mips_print_register): Use them.
10561         (do_fp_register_row): Likewise.
10562
10563 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10564
10565         * signals/signals.c (signals): Remove conditional compilation around
10566         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10567         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10568
10569 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10570
10571         * remote-rdp.c (remote_rdp_can_run): Remove.
10572
10573 2002-05-09  Tom Tromey  <tromey@redhat.com>
10574
10575         * jv-valprint.c (java_val_print): Handle `char' as a special case
10576         of TYPE_CODE_INT.
10577
10578 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10579
10580         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10581         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10582         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10583         str r(0123),[sp,#nn].
10584         (arm_skip_prologue): Ditto.  Also make disassembly
10585         order-independent by placing it in a loop.
10586
10587 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10588
10589         * stabsread.c (read_type): Add recognition for new attribute:
10590         "@V;" means that an array type is actually a vector.
10591         This is analogous to the vector flag that's been added to dwarf2.
10592
10593 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10594
10595         * i386-tdep.h (i386_abi): New enum.
10596         (struct gdbarch_tdep): Replace os_ident member with abi.
10597         (i386_gdbarch_register_os_abi): New prototype.
10598         * i386-tdep.c (i386_abi_names): New array.
10599         (process_note_abi_tag_sections): Removed.
10600         (process_note_sections): New function.
10601         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10602         (struct i386_abi_handler): New struct.
10603         (i386_abi_handler_list): New variable.
10604         (i386_gdbarch_register_os_abi): New function.
10605         (i386_gdbarch_init): Adapt for the changes given above.
10606
10607 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10608
10609         * gregset.h: Say "GNU/Linux".
10610
10611 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10612
10613         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10614         (build_gdbtypes): Build builtin_type_v2_float.
10615         (_initialize_gdbtypes): Register new builtin type.
10616
10617 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10618
10619         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10620         (clear_gdbarch_swap): New function.
10621         (initialize_non_multiarch): Call.
10622         (gdbarch_update_p): Before calling init(), swap out and clear the
10623         existing architecture.
10624         * gdbarch.c: Regenerate.
10625
10626 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10627
10628         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10629         alphanbsd-tdep.c.
10630
10631 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10632
10633         * sh-nbsd-nat.c: Rename to...
10634         * shnbsd-nat.c: ...this.
10635         * sh-nbsd-tdep.c: Rename to...
10636         * shnbsd-tdep.c: ...this.
10637         * sh-nbsd-tdep.h: Rename to...
10638         * shnbsd-tdep.h: ...this.
10639         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10640         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10641
10642 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10643
10644         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10645         concatenation for command help messages.
10646
10647 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10648
10649         * NEWS: Note new sh*-*-netbsdelf* configuration.
10650         * configure.host: Set gdb_host_cpu to sh for all sh*.
10651         (sh*-*-netbsdelf*): New host.
10652         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10653         (sh*-*-netbsdelf*): New target.
10654         * sh-nbsd-nat.c: New file.
10655         * sh-nbsd-tdep.c: New file.
10656         * sh-nbsd-tdep.h: New file.
10657         * config/sh/nbsd.mh: New file.
10658         * config/sh/nbsd.mt: New file.
10659         * config/sh/nm-nbsd.h: New file.
10660         * config/sh/tm-nbsd.h: New file.
10661
10662 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10663
10664         * sh-tdep.c (sh_osabi_names): Declare.
10665         (process_note_abi_tag_sections): New function.
10666         (get_elfosabi): Ditto.
10667         (sh_gdbarch_register_os_abi): Ditto.
10668         (sh_dump_tdep): Ditto.
10669         _initialize_sh_tdep): Use gdbarch_register to register
10670         sh_gdbarch_init and sh_dump_tdep.
10671         * config/sh/tm-sh.h (sh_osabi): Declare.
10672         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10673
10674 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10675
10676         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10677         (thumb_scan_prologue): Ditto.
10678         (arm_find_callers_reg): Ditto.
10679         (arm_frame_chain): Ditto.
10680         (arm_init_extra_frame_info): Ditto.
10681         (arm_frame_saved_pc): Ditto.
10682         (arm_pop_frame): Ditto.
10683         (arm_push_return_address): New function.
10684         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10685         call_dummy_location, call_dummy_breakpoint_offset_p,
10686         call_dummy_breakpoint_offset, call_dummy_p,
10687         call_dummy_stack_adjust_p, call_dummy_words,
10688         sizeof_call_dummy_words, call_dummy_start_offset,
10689         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10690         call_dummy_address, push_return_address and push_dummy_frame for
10691         generic dummy frames.
10692
10693 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10694
10695         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10696         size computation for alloca.
10697         (sh_fp_frame_init_saved_regs): Likewise.
10698
10699 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10700
10701         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10702         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10703         * arm-tdep.c (arm_store_return_value): Use them.
10704         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10705         * remote-rdp.c (remote_rdp_fetch_register): Use
10706         ARM_MAX_REGISTER_RAW_SIZE.
10707         (remote_rdp_store_register): Likewise.
10708
10709 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10710
10711         * dwarf2cfi.c: Code cleanup, removed unused variables,
10712         added default labels to switch {} statements.
10713         * x86-64-tdep.c: Ditto.
10714         * x86-64-linux-nat.c: Ditto.
10715
10716 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10717
10718         * solib.h: Protect against multiple inclusion.
10719
10720 2002-05-06  Jim Blandy  <jimb@redhat.com>
10721
10722         Add first preprocessor macro-expansion files.
10723         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10724         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10725         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10726         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10727         (COMMON_OBS): Add macrotab.o, macroexp.o.
10728         (macroexp.o, macrotab.o): New rules.
10729
10730         Separate the job of reading the line number info statement program
10731         header (...expialidocious) out into its own function.
10732         * dwarf2read.c (struct line_head, struct filenames, struct
10733         directories): Replace with...
10734         (struct line_header): New structure, containing the full
10735         contents of the statement program header, including the
10736         include directory and file name tables.
10737         (read_file_scope): If we have line number info, instead of just
10738         calling dwarf_decode_lines to do all the work, call
10739         dwarf_decode_line_header first to get a `struct line_header'
10740         containing the data in the statement program header, and then
10741         pass that to dwarf_decode_lines, which will pick up where that
10742         left off.  Be sure to clean up the `struct line_header' object.
10743         (dwarf_decode_line_header, free_line_header, add_include_dir,
10744         add_file_name): New functions.
10745         (dwarf_decode_lines): Move all the code to read the statement
10746         program header into dwarf_decode_line_header.  Take the line
10747         header it built as the first argument, instead of the offset to
10748         the compilation unit's line number info.  Use the new `struct
10749         line_header' type instead of the old structures.  No need to do
10750         cleanups here now, since we don't allocate anything.
10751         (dwarf2_statement_list_fits_in_line_number_section,
10752         dwarf2_line_header_too_long): New complaints.
10753
10754 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10755
10756         * gdbtypes.c (init_vector_type): New function.
10757         (build_builtin_type_vec128): Simplify the representation of SIMD
10758         registers.
10759         (build_gdbtypes): Initialize new builtin vector types.
10760         (_initialize_gdbtypes): Register new vector types with gdbarch.
10761         (builtin_type_v4_float, builtin_type_v4_int32,
10762         builtin_type_v8_int16, builtin_type_v16_int8,
10763         builtin_type_v2_int32, builtin_type_v4_int16,
10764         builtin_type_v8_int8): New (renamed) SIMD types.
10765
10766 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10767
10768         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10769         (i387_fill_fxsave): Likewise.
10770
10771 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10772
10773         * alpha-tdep.c (alpha_extract_return_value): Don't use
10774         non-constant array size in prototype.
10775
10776 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10777
10778         From Brian Taylor <briant at model dot com>:
10779         * ui-out.c (ui_out_field_core_addr): Use the function
10780         longest_local_hex_string_custom'to format addresses > 32 bits
10781         wide.
10782
10783         * ui-out.c (ui_out_field_core_addr): Update comment.
10784
10785 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10786
10787         * stack.c (select_and_print_frame): Make static.  Delete the
10788         parameter `level'.
10789         (func_command): Update call.
10790         (select_frame_command): Delete code computing the frame level.
10791         * frame.h (select_and_print_frame): Delete declaration.
10792
10793 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10794
10795         * sparc-tdep.c (sparc_get_saved_register): Comment why
10796         get_prev_frame call is safe.
10797
10798 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10799
10800         * frame.h (select_frame): Delete level parameter.
10801         * stack.c (select_frame): Update.  Use frame_relative_level to
10802         obtain the frame's level.
10803         (select_and_print_frame): Update call.
10804         (select_frame_command): Ditto.
10805         (up_silently_base): Ditto.
10806         (down_silently_base): Ditto.
10807         * ocd.c (ocd_start_remote): Ditto.
10808         * remote-rdp.c (remote_rdp_open): Ditto.
10809         * remote-mips.c (mips_initialize): Ditto.
10810         (common_open): Ditto.
10811         * remote-e7000.c (e7000_start_remote): Ditto.
10812         * m3-nat.c (select_thread): Ditto.
10813         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10814         (child_get_current_exception_event): Ditto.
10815         * varobj.c (varobj_create): Ditto.
10816         (varobj_update): Ditto.
10817         (c_value_of_root): Ditto.
10818         * tracepoint.c (finish_tfind_command): Ditto.
10819         * corelow.c (core_open): Ditto.
10820         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10821         * thread.c (info_threads_command): Ditto.
10822         (switch_to_thread): Ditto.
10823         * infrun.c (normal_stop): Ditto.
10824         (restore_selected_frame): Ditto.
10825         (restore_inferior_status): Ditto.
10826         * breakpoint.c (insert_breakpoints): Ditto.
10827         (watchpoint_check): Ditto.
10828         (bpstat_stop_status): Ditto.
10829         (do_enable_breakpoint): Ditto.
10830         * blockframe.c (flush_cached_frames): Ditto.
10831         (reinit_frame_cache): Ditto.
10832
10833 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10834
10835         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10836         maintainer.
10837
10838 2002-05-04  Jim Blandy  <jimb@redhat.com>
10839
10840         * gdbtypes.c (replace_type): Doc fix.
10841
10842 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10843
10844         * valprint.c (strcat_longest): Delete commented out function.
10845         Update copyright.
10846
10847 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10848
10849         * MAINTAINERS: Mark a29k as deleted.
10850         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10851         Move new configurations to the top.
10852         * configure.tgt: Remove a29k.
10853         * config/a29k/tm-vx29k.h: Delete.
10854         * config/a29k/vx29k.mt: Delete.
10855         * config/a29k/tm-a29k.h: Delete.
10856         * config/a29k/a29k-udi.mt: Delete.
10857         * config/a29k/a29k.mt: Delete.
10858         * a29k-tdep.c: Delete.
10859         * remote-udi.c: Delete.
10860         * remote-mm.c: Delete.
10861         * remote-eb.c: Delete.
10862         * remote-adapt.c: Delete.
10863         * Makefile.in: Remove obsolete code.
10864         * config/s390/s390x.mt: Ditto.
10865         * config/s390/s390.mt: Ditto.
10866         * config/sparc/sparclynx.mh: Ditto.
10867         * config/sparc/linux.mh: Ditto.
10868         * config/pa/hppaosf.mh: Ditto.
10869         * config/pa/hppabsd.mh: Ditto.
10870         * config/ns32k/nbsd.mt: Ditto.
10871         * config/mips/vr5000.mt: Ditto.
10872         * config/m68k/sun3os4.mh: Ditto.
10873         * config/m68k/nbsd.mt: Ditto.
10874         * config/m68k/m68klynx.mh: Ditto.
10875         * config/m32r/m32r.mt: Ditto.
10876         * config/i386/x86-64linux.mt: Ditto.
10877         * config/i386/nbsdelf.mt: Ditto.
10878         * config/i386/nbsd.mt: Ditto.
10879         * config/i386/i386lynx.mh: Ditto.
10880
10881 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10882
10883         * target.c (debug_print_register): New function.  Handle oversize
10884         registers.
10885         (debug_to_fetch_registers): Call.
10886         (debug_to_store_registers): Call.
10887
10888 2002-05-03  Jim Blandy  <jimb@redhat.com>
10889
10890         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10891         (read_type): Doc fix.
10892         * gdbtypes.c (replace_type): Doc fix.
10893
10894         * stabsread.c (multiply_defined_struct): New complaint.
10895         (read_struct_type): If the type we were passed isn't empty, or
10896         incomplete, don't read the new struct type into it; complain,
10897         and return the original type unchanged.  Take a new `type_code'
10898         argument, which is the type code for the new type.
10899         (read_type): Rather than storing the type's type code here, pass
10900         it as an argument to read_struct_type, and let that take care of
10901         storing it.  That way, we don't overwrite the original type code,
10902         so read_struct_type can use it to decide whether we're overwriting
10903         something we shouldn't.
10904         (complain_about_struct_wipeout): New function.
10905
10906 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10907
10908         * gdbarch.sh: Assert that gdbarch is non-NULL.
10909         * gdbarch.c: Regenerate.
10910
10911 2002-05-03  Jason Merrill  <jason@redhat.com>
10912
10913         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10914         and return NULL.
10915
10916 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10917
10918         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10919         (x86_64_dwarf2gdb_regno_map_length),
10920         (x86_64_dwarf2_reg_to_regnum): Added.
10921         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10922         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10923         (_initialize_x86_64_tdep): Synced with the change above.
10924         (x86_64_skip_prologue): Reformulated message.
10925
10926 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10927
10928         * f-exp.y: Also use new prev_lexptr variable
10929         to improve error reporting. Based on Michael Snyder
10930         2002-04-24 dated patch to c-exp.y.
10931         * jv-exp.y: Likewise.
10932         * m2-exp.y: Likewise.
10933
10934 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10935
10936         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10937         we are dealing with vectors.
10938
10939 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10940
10941         * config/m68k/tm-nbsd.h: Obvious fix,
10942         correct machine name.
10943
10944 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10945
10946         * p-typeprint.c (pascal_type_print_base): Add support
10947         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10948
10949 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10950
10951         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10952         for fondamental pascal 'char' type.
10953
10954 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10955
10956         * p-lang.h (is_pascal_string_type): Declaration changed,
10957         new sixth argument of type char ** added.
10958         * p-lang.c (is_pascal_string_type): Implementation
10959         changed. Args length_pos, length_size, string_pos, char_size
10960         can now be NULL. New argument arrayname set to the field
10961         name of the char array. Return value set to char array
10962         field index plus one.
10963         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10964         is_pascal_string_type function.
10965
10966 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10967
10968         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10969         <cagney@redhat.com> change.
10970         * gdbarch.c: Regenerate.
10971
10972 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10973
10974         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10975         before probing for a new one.  Detect errorenous gdbarch_init
10976         functions.
10977         * gdbarch.c: Regenerate.
10978
10979 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10980
10981         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10982         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10983         * config/v850/tm-v850.h: Ditto.  Update copyright.
10984
10985 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10986
10987         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10988         current_gdbarch.
10989
10990 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10991
10992         * arm-tdep.c: Whitespace clean-ups.
10993         (arm_skip_prologue): Fix thinko; two lines
10994         should have been removed as part of 4/24 change.
10995
10996 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10997
10998         * rs6000-tdep.c: Added comment describing how fpscr register
10999         numbers were chosen.
11000
11001 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11002
11003         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11004
11005 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11006
11007         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11008         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11009         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11010
11011 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
11012
11013         From Louis Hamilton <hamilton@redhat.com>:
11014         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11015         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11016         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11017         not bfd-private xcoff data, to determine wordsize.
11018         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11019
11020 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
11021
11022         GDB 5.2 released from 5.2 branch.
11023
11024 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
11025
11026         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11027         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11028         (x86_64_register_info_table): Added comments with register numbers.
11029
11030 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11031
11032         * rs6000-tdep.c (rs6000_extract_return_value,
11033         rs6000_store_return_value): Handle returning vectors.
11034         (rs6000_gdbarch_init): Use
11035         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11036         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11037         New function.
11038         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11039         vectors.
11040         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11041         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11042
11043 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11044
11045         * hpread.c (hpread_psymtab_to_symtab_1,
11046         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11047         with fprintf_unfiltered (gdb_stderr,...).
11048
11049 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11050
11051         * remote-array.c (printf_monitor, write_monitor,
11052         array_insert_breakpoint, array_remove_breakpoint ):
11053         Replace fprintf (stderr,...
11054         with fprintf_unfiltered (gdb_stderr,....
11055         * remote-es.c: Likewise.
11056         * remote-os9k.c: Likewise.
11057         * remote-st.c: Likewise.
11058
11059 2002-04-28  Andreas Schwab  <schwab@suse.de>
11060
11061         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11062         linux-proc.o and gcore.o.
11063
11064 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11065
11066         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11067         code without frame pointers.
11068
11069 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11070
11071         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11072         ON_STACK is needed.
11073
11074 2002-04-26  Ben Elliston  <bje@redhat.com>
11075
11076         * target.c (do_xfer_memory): Correct reference to the new option
11077         "trust-readonly-sections".
11078
11079 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11080
11081         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11082         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11083         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11084         vectors.
11085         (read_array_type): Record the fact that this array type is really a
11086         vector (i.e. are passed in by value).
11087
11088 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11089
11090         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11091         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11092         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11093         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11094         * alpha-linux-tdep.c: Include frame.h.
11095         (alpha_linux_sigcontext_addr): New function.
11096         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11097         alpha_linux_sigcontext_addr.
11098         * alpha-osf1-tdep.c: Include gdbcore.h.
11099         (alpha_osf1_sigcontext_addr): New function.
11100         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11101         alpha_osf1_sigcontext_addr.
11102         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11103         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11104
11105 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11106
11107         * stack.c (selected_frame_level):
11108         (select_frame): Do not set selected_frame_level.
11109         * frame.h (selected_frame_level): Delete declaration.
11110
11111 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11112
11113         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11114         convert_from_func_ptr-addr when AIX / PowerOpen.
11115
11116 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11117
11118         * valops.c (hand_function_call): Call
11119         generic_save_call_dummy_addr.
11120         * frame.h (generic_save_call_dummy_addr): Declare.
11121         * blockframe.c (struct dummy_frame): Add fields call_lo and
11122         call_hi.
11123         (generic_find_dummy_frame): Check for PC in range call_lo to
11124         call_hi instead of entry_point_address.
11125         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11126         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11127         (generic_save_call_dummy_addr): New function.
11128
11129 2002-04-24  David S. Miller  <davem@redhat.com>
11130
11131         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11132         sparc_skip_prologue.
11133         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11134         information to find prologue when possible.
11135         (sparc_prologue_frameless_p): Call examine_prologue directly.
11136         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11137         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11138         second argument.
11139         (SKIP_PROLOGUE): Likewise.
11140
11141 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11142
11143         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11144         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11145         indicate that the condition it was testing is always true.
11146         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11147         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11148         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11149
11150 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11151
11152         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11153         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11154         tdep->jb_pc and tdep->jb_elt_size.
11155         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11156         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11157         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11158         * alpha-nat.c (get_longjmp_target): Remove.
11159         (JB_ELEMENT_SIZE): Ditto.
11160         (JB_PC): Ditto.
11161         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11162         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11163         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11164         to alpha_get_longjmp_target.
11165         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11166         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11167         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11168
11169 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11170
11171         * README: Update to GDB 5.2.
11172
11173 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11174
11175         * gdbarch.sh (LC_ALL): Set to `c'.
11176
11177 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11178
11179         * avr-tdep.c: Ran through gdb_indent.sh.
11180
11181 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11182
11183         * MAINTAINERS: Add myself as AVR maintainer.
11184         * NEWS: Note new target avr.
11185
11186 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11187
11188         * Makefile.in: Add support for AVR target.
11189         * configure.tgt: Add support for AVR target.
11190         * avr-tdep.c: New file
11191         * config/avr/avr.mt: New file.
11192
11193 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11194
11195         * MAINTAINERS: Add myself to write-after-approval.
11196
11197 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11198
11199         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11200         with fprintf_unfiltered (gdb_stderr,....
11201
11202 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11203
11204         Fix PR gdb/508.
11205         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11206
11207 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11208
11209         * p-exp.y: Also use new prev_lexptr variable
11210         to improve error reporting. Based on Michael Snyder
11211         2002-04-24 dated patch to c-exp.y.
11212
11213 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11214
11215         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11216         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11217         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11218         to 0.
11219         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11220         and struct value.
11221         (FUNCTION_START_OFFSET): Remove.
11222         (BREAKPOINT): Ditto.
11223
11224 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11225
11226         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11227         * NEWS: Ditto.
11228
11229 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11230
11231         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11232         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11233         alpha_linux_pc_in_sigtramp.
11234         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11235         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11236         alpha_osf1_pc_in_sigtramp.
11237         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11238         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11239         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11240         alphafbsd_pc_in_sigtramp.
11241         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11242         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11243         alphanbsd_pc_in_sigtramp.
11244         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11245         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11246
11247 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11248
11249         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11250
11251 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11252
11253         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11254         alphanbsd-tdep.c.
11255         (alphanbsd-nat.o): New dependency list.
11256         (alphanbsd-tdep.o): Ditto.
11257         * NEWS: Note new native NetBSD/alpha configuration.
11258         * alphanbsd-nat.c: New file.
11259         * alphanbsd-tdep.c: Ditto.
11260         * configure.host (alpha*-*-netbsd*): New host.
11261         * configure.tgt (alpha*-*-netbsd*): New target.
11262         * config/alpha/nbsd.mh: New file.
11263         * config/alpha/nbsd.mt: Ditto.
11264         * config/alpha/nm-nbsd.h: Ditto.
11265         * config/alpha/tm-nbsd.h: Ditto.
11266
11267 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11268
11269         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11270         (alpha-osf1-tdep.o): New dependency list.
11271         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11272         and skip_sigtramp_frame members.
11273         * alpha-linux-tdep.c: Include gdbcore.h.
11274         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11275         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11276         * alpha-osf1-tdep.c: New file.
11277         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11278         alpha-osf1-dep.c.
11279         (alpha_frame_past_sigtramp_frame): New function.
11280         (alpha_dynamic_sigtramp_offset): Ditto.
11281         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11282         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11283         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11284         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11285         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11286         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11287         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11288         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11289         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11290         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11291         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11292         to find_solib_trampoline_target.
11293         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11294         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11295         (SKIP_TRAMPOLINE_CODE): Remove.
11296         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11297         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11298         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11299         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11300         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11301         (PROC_SIGTRAMP_MAGIC): Ditto.
11302         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11303         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11304         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11305         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11306         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11307
11308 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11309
11310         * NEWS: Note that Alpha targets are now multi-arch.
11311
11312 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11313
11314         * parser-defs.h (prev_lexptr): New external variable.
11315         * parse.c (parse_exp_1): Set prev_lexptr to null before
11316         calling the language-specific parser.
11317         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11318         (yyerror): Use prev_lexptr in error reporting.
11319
11320 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11321
11322         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11323         * gregset.h: If FILL_FPXREGSET is defined, provide
11324         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11325         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11326         is defined, call fill_fpxregset.
11327
11328 2002-04-24  Roland McGrath  <roland@frob.com>
11329
11330         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11331         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11332         (supply_gregset, supply_fpregset): New functions.
11333
11334         * gnu-nat.c (gnu_find_memory_regions): New function.
11335         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11336         (gnu_xfer_memory): Add a cast.
11337
11338 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11339
11340         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11341         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11342         of argument regs ("str r(0123), [r11, #-nn"]).
11343         (arm_skip_prologue): Better handling for frameless functions.
11344         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11345         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11346
11347 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11348
11349         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11350         NUM_PSEUDO_REGS can be used.
11351
11352 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11353
11354         * arch-utils.h: Update copyright.
11355
11356         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11357         * gdbarch.h, gdbarch.c: Re-generate.
11358
11359         * inferior.h (IN_SIGTRAMP): Delete definition.
11360         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11361         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11362
11363         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11364         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11365         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11366         (find_proc_framesize): Ditto.
11367         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11368         (alpha_init_extra_frame_info): Ditto.
11369         * infrun.c (handle_inferior_event): Ditto.
11370         (handle_inferior_event): Ditto.
11371         (check_sigtramp2): Ditto.
11372         * blockframe.c (create_new_frame): Ditto.
11373         (get_prev_frame): Ditto.
11374         * ppc-linux-tdep.c: Update comments.
11375         * i386-linux-tdep.c: Update comments.
11376         * breakpoint.c (bpstat_what): Update comment.
11377
11378 2002-04-24  David S. Miller  <davem@redhat.com>
11379
11380         * i960-tdep.c (register_in_window_p): New function.
11381         (i960_find_saved_register): Use it instead of
11382         REGISTER_IN_WINDOW_P.
11383         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11384
11385         * symtab.h (find_stab_function_addr): Kill extern.
11386         * minsyms.c (find_stab_function_addr): Remove from here...
11387         * dbxread.c: ... to here, and mark it static.
11388
11389 2002-04-20  David S. Miller  <davem@redhat.com>
11390
11391         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11392         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11393
11394 2002-04-21  David S. Miller  <davem@redhat.com>
11395
11396         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11397         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11398         (vx_write_register): Likewise.
11399
11400 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11401
11402         * source.c (is_regular_file): New function.
11403         (openp): Check wether file to open is a regular file
11404         to avoid opening directories.
11405
11406 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11407
11408         * findvar.c (extract_signed_integer): Cast printf argument
11409         to suppress format warning.
11410         (extract_unsigned_integer): Likewise.
11411         * infcmd.c (registers_info): Likewise.
11412         * top.c (get_prompt_1): Likewise.
11413         * valops.c (value_assign): Likewise.
11414         * valprint.c (print_decimal): Likewise.
11415
11416 2002-04-22  H.J. Lu  (hjl@gnu.org)
11417
11418         * c-exp.y (typebase): Support
11419
11420         [long|long long|short] [signed|unsigned] [int|]
11421
11422         and
11423
11424         signed [long|long long|short] int
11425
11426 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11427
11428         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11429         and vax-tdep.h.
11430         * vax-tdep.h: New file.
11431         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11432         Make several routines static.
11433         (vax_get_saved_register): New function.
11434         (vax_gdbarch_init): New function.
11435         (_initialize_vax_tdep): Register vax_gdbarch_init.
11436         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11437         Remove macros now under the control of gdbarch.
11438
11439 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11440
11441         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11442         Some whitespace and coding standards tweaks.
11443
11444 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11445
11446         * vax-tdep.c: Include regcache.h.
11447         (vax_call_dummy_words): New.
11448         (sizeof_vax_call_dummy_words): New.
11449         (vax_fix_call_dummy): New function.
11450         (vax_saved_pc_after_call): Ditto.
11451         * config/vax/tm-vax.h: Don't include regcache.h.
11452         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11453         (CALL_DUMMY): Remove.
11454         (CALL_DUMMY_WORDS): Define.
11455         (SIZEOF_CALL_DUMMY_WORDS): Define.
11456         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11457
11458 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11459
11460         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11461
11462 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11463
11464         * vax-tdep.c (vax_frame_chain): New function.
11465         (vax_push_dummy_frame): Ditto.
11466         (vax_pop_frame): Ditto.
11467         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11468         (FRAMELESS_FUNCTION_INVOCATION): Use
11469         generic_frameless_function_invocation_not.
11470         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11471         (POP_FRAME): Use vax_pop_frame.
11472
11473 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11474
11475         * vax-tdep.c (vax_store_struct_return): New function.
11476         (vax_extract_return_value): Ditto.
11477         (vax_store_return_value): Ditto.
11478         (vax_extract_struct_value_address): Ditto.
11479         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11480         vax_store_struct_return.
11481         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11482         (STORE_RETURN_VALUE): Use vax_store_return_value.
11483         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11484
11485 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11486
11487         * vax-tdep.c (vax_frame_saved_pc): New function.
11488         (vax_frame_args_address_correct): Ditto.
11489         (vax_frame_args_address): Ditto.
11490         (vax_frame_locals_address): Ditto.
11491         (vax_frame_num_args): Move code to be in proximity to
11492         other frame-related functions.
11493         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11494         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11495         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11496         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11497         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11498
11499 2002-04-22  H.J. Lu  (hjl@gnu.org)
11500
11501         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11502         includedir.
11503
11504 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11505
11506         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11507         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11508         (FRAME_INIT_SAVED_REGS): New macro.
11509
11510 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11511
11512         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11513
11514 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11515
11516         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11517         where needed.
11518         (fetch_osf_core_registers): Likewise.
11519         (supply_gregset): Likewise.
11520
11521 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11522
11523         * symfile.h (get_section_index): Define.
11524         * symfile.c (get_section_index): New function.
11525         * mdebugread.c (SC_IS_SBSS): New macro.
11526         (SC_IS_BSS): Return true for the scBss storage class only, as
11527         the scSBss storage class refers to the .sbss section.
11528         (parse_partial_symbols): Discard the symbols which associated
11529         section does not exist.
11530         Make sure to use the .sbss section index for symbols which
11531         storage class is scBss, rather than using the .bss section index.
11532
11533 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11534
11535         * vax-tdep.c: Update copyright years.
11536         (vax_register_name): New function.
11537         (vax_register_byte): Ditto.
11538         (vax_register_raw_size): Ditto.
11539         (vax_register_virtual_size): Ditto.
11540         (vax_register_virtual_type): Ditto.
11541         * config/vax/tm-vax.h: Update copyright years.
11542         (REGISTER_NAMES): Remove.
11543         (REGISTER_NAME): Define.
11544         (REGISTER_BYTE): Use vax_register_byte.
11545         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11546         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11547         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11548
11549 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11550
11551         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11552         declaration
11553         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11554
11555 2002-04-21  David S. Miller  <davem@redhat.com>
11556
11557         * arch-utils.c (generic_prologue_frameless_p): Kill
11558         SKIP_PROLOGUE_FRAMELESS_P code.
11559         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11560         references.
11561         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11562         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11563         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11564         references.
11565         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11566         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11567         (sparc_gdbarch_init): Pass it to
11568         set_gdbarch_prologue_frameless_p.
11569
11570 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11571
11572         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11573         (alphabsd-nat.o): New dependency list.
11574
11575 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11576
11577         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11578         alphafbsd-tdep.c.
11579         (alpha-linux-tdep.o): New dependency list.
11580         (alphafbsd-tdep.o): Likewise.
11581
11582 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11583
11584         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11585         to here...
11586         * alpha-tdep.c: ...from here.
11587         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11588
11589 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11590
11591         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11592         prototype from here...
11593         * alpha-tdep.h: ...to here.
11594
11595 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11596
11597         * frame.h (selected_frame_level): Document as deprecated.
11598         (frame_relative_level): Declare.
11599         * stack.c (frame_relative_level): New function.
11600         (selected_frame_level): Document as deprecated.
11601         (select_frame): Do not set the selected_frame_level.
11602
11603         * stack.c (frame_info, record_selected_frame): Update.
11604         (frame_command, current_frame_command): Update.
11605         (up_silently_base, up_command, down_silently_base): Update.
11606         (down_command): Update.
11607         * inflow.c (kill_command): Update.
11608         * tracepoint.c (finish_tfind_command): Update.
11609         * corelow.c (core_open): Update.
11610         * thread.c (info_threads_command): Update.
11611         (do_captured_thread_select): Update.
11612         * infcmd.c (finish_command): Update.
11613         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11614
11615 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11616
11617         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11618
11619 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11620
11621         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11622         type const.
11623
11624 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11625
11626         * alphafbsd-tdep.c: Update copyright years.  Include
11627         alpha-tdep.h.
11628         (alphafbsd_use_struct_convention): Make static.
11629         (alphafbsd_init_abi): New function.
11630         (_initialize_alphafbsd_tdep): New function.
11631         * config/alpha/tm-fbsd.h: Update copyright years.
11632         (USE_STRUCT_CONVENTION): Remove.
11633
11634 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11635
11636         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11637         an Alpha ABI variant.
11638         (alpha_abi_handler_list): Declare.
11639         (alpha_gdbarch_register_os_abi): New function.
11640         (alpha_gdbarch_init): Give registered ABI variant handlers a
11641         chance to tweak the gdbarch once we have set up defaults.
11642         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11643
11644 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11645
11646         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11647         to standard_coerce_float_to_double.
11648         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11649
11650 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11651
11652         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11653         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11654         from gdbarch_tdep rather than a constant.
11655         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11656         the default text address for all Alpha Unix ABIs.
11657         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11658         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11659
11660 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11661
11662         * alpha-tdep.h: New file.  Includes several Alpha target constants
11663         taken from...
11664         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11665         let gdbarch deal with.
11666         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11667         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11668         to dependency list.
11669         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11670         Alpha target register names.
11671         * alphabsd-nat.c: Likewise.
11672         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11673         Alpha target register names.  Make serveral routines static.
11674         (alpha_get_saved_register): New function.
11675         (alpha_abi_names): New.
11676         (process_note_abi_tag_sections): New function.
11677         (get_elfosabi): New function.
11678         (alpha_gdbarch_init): New function.
11679         (alpha_dump_tdep): New function.
11680         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11681
11682 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11683
11684         * frame.c (find_saved_register): Delete #ifdef
11685         HAVE_REGISTER_WINDOWS code.
11686         * config/sparc/tm-sparc.h: Update comments.
11687         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11688
11689 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11690
11691         * i960-tdep.c (i960_find_saved_register): New function.
11692         (i960_get_saved_register): New function.
11693         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11694         (i960_get_saved_register): Declare.
11695         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11696
11697 2002-04-20  David S. Miller  <davem@redhat.com>
11698
11699         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11700
11701 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11702
11703         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11704         instead of NUM_PSEUDO_REGS.
11705
11706 2002-04-20  David S. Miller  <davem@redhat.com>
11707
11708         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11709         GDB_MULTI_ARCH_PARTIAL
11710         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11711         define, let tm-sp64.h do it.
11712
11713 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11714
11715         * frame.c (find_saved_register): Avoid a NULL pointer
11716         dereference and actually walk the frame list.
11717
11718 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11719
11720         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11721         sorted in most most-recent-used order.  Document.
11722         * gdbarch.h, gdbarch.c: Regenerate.
11723
11724 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11725
11726         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11727         instead of ->prev.
11728         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11729         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11730         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11731         instead of ->prev.
11732
11733 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11734
11735         Fix PR gdb/471.
11736         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11737         (build_builtin_type_vec128): Ditto.
11738         (append_composite_type_field): Fix calculation of type length in
11739         union case.
11740
11741 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11742
11743         * config/djgpp/README: Update.
11744
11745         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11746         compiler warnings.
11747
11748 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11749
11750         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11751         (alpha_setup_arbitrary_frame): ...to this.
11752         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11753         for alpha_setup_arbitrary_frame.
11754
11755 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11756
11757         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11758         * gdbarch.h, gdbarch.c: Regenerate.
11759
11760         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11761         * target.h (memory_breakpoint_from_pc): Update declaration.
11762         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11763
11764         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11765         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11766         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11767         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11768         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11769         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11770         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11771         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11772         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11773         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11774         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11775         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11776
11777         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11778         const pointer.
11779         * monitor.c (monitor_insert_breakpoint): Ditto.
11780         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11781
11782         * config/mcore/tm-mcore.h: Update copyright.
11783         * mem-break.c: Ditto.
11784         * xstormy16-tdep.c: Ditto.
11785
11786 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11787
11788         * p-exp.y: Add precedence rule for '^' token.
11789         This removes the shift/reduce conflicts.
11790         Remove the comment concerning these shift/reduce conflicts.
11791
11792 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11793
11794         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11795         (registers_powerpc_nofp): New register set for processors
11796         without floating point unit.
11797
11798 2002-04-18  David S. Miller  <davem@redhat.com>
11799
11800         * MAINTAINERS: Add myself to write-after-approval.
11801
11802 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11803
11804         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11805
11806 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11807
11808         * rs6000-tdep.c (frame_initial_stack_address): Use
11809         frame_register_read to read the alloca_reg.
11810
11811 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11812
11813         * frame.c (find_saved_register): Find saved registers in the next
11814         not prev frame.
11815         Fix PR gdb/365.
11816
11817 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11818
11819         * gdbarch.sh (LANG): Set to ``c''.
11820
11821 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11822
11823         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11824
11825 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11826
11827         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11828         Update copyright.
11829
11830         * hpread.c (hpread_get_lntt): Add declaration.
11831         Also fix PR gdb/391.
11832
11833 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11834
11835         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11836         * aclocal.m4, configure: Re-generate.
11837         Fix PR gdb/391.
11838
11839 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11840
11841         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11842         instead of tm_print_insn.
11843
11844 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11845
11846         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11847
11848 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11849
11850         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11851         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11852         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11853
11854 2002-04-12  Don Howard  <dhoward@redhat.com>
11855
11856         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11857         max_user_call_depth.
11858         (init_cmd_lists): Initialize the new value;
11859         * cli/cli-script.c (execute_user_command): Limit the call depth of
11860         user defined commands.  This avoids a core-dump when user commands
11861         are infinitly recursive.
11862
11863 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11864
11865         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11866         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11867         from tdep struct instead of DEFAULT_LR_SAVE.
11868         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11869         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11870         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11871
11872 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11873
11874         * Remote.c: Spelling fix.
11875         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11876         If no symbol found for "sbrk", try "_sbrk".
11877         (make_output_phdrs): Use bfd_section_name.
11878         (gcore_copy_callback): Use bfd_section_name.
11879         * eval.c: Indentation fix-ups.
11880         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11881         in case it gets applied to an address that is already
11882         in the instruction space.
11883         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11884         * symfile.c: Fix indentation, long lines.
11885         * source.c: White space fix-up.
11886
11887 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11888
11889         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11890         * frame.c (frame_register_read): New function.  Return non-zero on
11891         success.
11892         (read_relative_register_raw_bytes_for_frame): Delete.
11893         (read_relative_register_raw_bytes): Delete.
11894         * frame.h (frame_register_read): Declare.
11895         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11896         * sh-tdep.c: Ditto.
11897         * infcmd.c (do_registers_info): Ditto.
11898         * hppa-tdep.c: Ditto.
11899         * rs6000-tdep.c: Ditto.
11900         * h8500-tdep.c: Ditto.
11901         * mips-tdep.c: Ditto.
11902         * h8300-tdep.c: Ditto.
11903         * z8k-tdep.c: Ditto.
11904
11905 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11906
11907         From Jimi X <jimix@watson.ibm.com>:
11908         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11909         64-bit SysV ABI.
11910
11911 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11912
11913         From Jimi X <jimix@watson.ibm.com>:
11914         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11915         bfd info.
11916
11917 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11918
11919         From Jimi X <jimix@watson.ibm.com>:
11920         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11921         register sets for these processor variants.
11922
11923 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11924
11925         * regformats/reg-ppc.dat: Support FPSCR.
11926
11927 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11928
11929         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11930         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11931         Add fpscr as an invalid/unfetchable register.
11932         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11933         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11934         (fill_fpregset): Add support for register fpscr.
11935         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11936         (fill_gregset): Account for the fact that register ``mq'' might
11937         not exist.
11938         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11939         (registers_power): Add fpscr to register set at slot 71.
11940         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11941         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11942
11943 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11944
11945         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11946         * configure: Regenerate.
11947         * config.in: Regenerate.
11948         * acconfig.h: Add define for _SYSCALL32.
11949         * core-sol2.c: Remove #define _SYSCALL32.
11950         * solib-legacy.c: Remove #define _SYSCALL32.
11951
11952 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11953
11954         * stack.c (select_frame): Cleanup internal error message, do not
11955         use %p.
11956
11957 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11958
11959         * stack.c (select_frame): Check that selected_frame and the
11960         specified level are as expected.
11961         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11962         Update copyright.
11963         * frame.h (struct frame_info): Add field `level'.  Update
11964         copyright.
11965         Work-in-progress PR gdb/464.
11966
11967 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11968
11969         * maint.c (maint_print_section_info): Rename print_section_info.
11970         (print_bfd_section_info, print_objfile_section_info): Update.
11971         * inferior.h (struct gdbarch): Add opaque declaration.
11972         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11973         * gdbarch.h: Regenerate.
11974
11975 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11976
11977         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11978         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11979         (kernel_u_size): Added.
11980         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11981         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11982
11983 2002-04-04  Jim Ingham  <jingham@apple.com>
11984
11985        * valarith.c (find_size_for_pointer_math): New function, either returns
11986        the size for a pointer's target, returns 1 for void *, or errors for
11987        incomplete types.
11988        (value_add, value_sub): use find_size_for_pointer_math.
11989
11990 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11991
11992         * linux-low.c (linux_look_up_symbols): New hook.
11993         (linux_target_ops): Add linux_look_up_symbols.
11994         * remote-utils.c (decode_address): New function.
11995         (look_up_one_symbol): New function.
11996         * server.c (handle_query): Call target look_up_symbols hook.
11997         * server.h (look_up_one_symbol): Add prototype.
11998         * target.h (struct target_ops): Add look_up_symbols hook.
11999
12000 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
12001
12002         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12003         override FP_REGNUM with frame->fp.  Update copyright.
12004         * parse.c (num_std_regs, std_regs): Delete.
12005         (target_map_name_to_register): Do not search std_regs.  Update
12006         function description.
12007         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12008         declarations.  Update copyright.
12009         Fix PR gdb/251.
12010
12011 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12012
12013         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12014         after the last symbol in a block.
12015
12016 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
12017
12018         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12019         is non zero as a found symbol.
12020
12021 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12022
12023         * findvar.c: Include "builtin-regs.h".
12024         (value_of_register): Call value_of_builtin_reg when applicable.
12025         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12026         (target_map_name_to_register): Call
12027         builtin_reg_map_name_to_regnum.
12028         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12029         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12030         (builtin_regs_h): Define.
12031         (builtin-regs.o): New target.
12032         (findvar.o): Add $(builtin_regs_h).
12033         * builtin-regs.c, builtin-regs.h: New files.
12034         * std-regs.c: New file.
12035         Partial fix for PR gdb/251.
12036
12037 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12038
12039         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12040         it's no longer required.
12041
12042 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12043
12044         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12045
12046 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12047
12048         From Jimi X <jimix@watson.ibm.com>:
12049         * rs6000-tdep.c (rs6000_software_single_step): Use
12050         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12051         and size.  Use target_insert_breakpoint() and
12052         target_remove_breakpoint() to insert and remove breakpoints
12053         instead of explicit memory reads and writes.
12054
12055 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12056
12057         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12058         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12059         ELF_OBJECT_FORMAT ifdef.
12060
12061 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12062
12063         From Jimi X <jimix@watson.ibm.com>:
12064         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12065
12066 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12067
12068         From Jimi X <jimix@watson.ibm.com>:
12069         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12070         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12071
12072 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12073
12074         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12075         s/asprintf/xasprintf/.
12076         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12077
12078 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12079
12080         I believe Jeff Law denies responsability for this one:
12081         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12082         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12083         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12084         Work-around for PR gdb/366.
12085
12086 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12087
12088         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12089         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12090         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12091
12092 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12093
12094         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12095         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12096         information.
12097
12098 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12099
12100         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12101         maintainer.
12102
12103 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12104
12105         * README (Reporting Bugs in GDB): Document the bug web page as the
12106         prefered way of submitting bugs.
12107         Fix PR gdb/402.
12108
12109 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12110
12111         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12112         -1.  Update comment.
12113         * gdbarch.h, gdbarch.c: Re-generate.
12114
12115 2002-04-07  Andreas Schwab  <schwab@suse.de>
12116
12117         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12118         buffer to regcache_collect.
12119
12120 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12121
12122         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12123         * gdbarch.c, gdbarch.h: Re-generate.
12124
12125 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12126
12127         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12128         declaration.  Fix -Werror.
12129
12130 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12131
12132         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12133         * gdbarch.c: Regenerate.
12134
12135 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12136
12137         * breakpoint.c (clear_command): Rewrite middle section to
12138         combine two loops with identical control conditions.
12139         Add a cleanup to eliminate a memory leak.
12140         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12141
12142 2002-04-05  H.J. Lu  (hjl@gnu.org)
12143
12144         * solib-svr4.c (bkpt_names): Add "__start".
12145
12146 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12147
12148         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12149         as test for 64 bit target.
12150
12151 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12152
12153         * h8500-tdep.c (h8500_write_fp): Delete function.
12154         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12155         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12156         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12157         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12158         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12159         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12160         (s390_write_fp):
12161         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12162         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12163         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12164         (d10v_write_fp): Delete function.
12165         * inferior.h (write_fp, generic_target_write_fp): Delete
12166         declarations.
12167         * regcache.c (generic_target_write_fp): Delete function.
12168         (write_fp): Delete function.
12169         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12170         * gdbarch.h, gdbarch.c: Regenerate.
12171         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12172         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12173         (sparc64_write_fp): Delete declaration.
12174         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12175         (h8500_write_fp): Delete declaration.
12176
12177 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12178
12179         * sparc-tdep.c (sparc64_write_fp): Delete.
12180         (sparc_push_dummy_frame): Replace write_fp call with code to store
12181         the FP directly.
12182         (sparc_gdbarch_init): Do not initialize write_fp.
12183
12184 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12185
12186         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12187         clause.
12188
12189 2002-03-29  Jim Blandy  <jimb@redhat.com>
12190
12191         * stack.c (get_selected_block): Add new argument `addr_in_block',
12192         used to return the exact code address we used to select the block,
12193         not just the block.
12194         * blockframe.c (get_frame_block, get_current_block): Same.
12195         * frame.h (get_frame_block, get_current_block,
12196         get_selected_block): Update declarations.
12197         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12198         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12199
12200 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12201
12202         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12203         warning message.
12204
12205 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12206
12207         * utils.c (xfullpath): New function.
12208         * defs.h (xfullpath): Add declaration.
12209         * source.c (openp): Use xfullpath in place of gdb_realpath to
12210         avoid resolving the basename part of filenames when the
12211         associated file is a symbolic link. This fixes a potential
12212         inconsistency between the filenames known to GDB and the
12213         filenames it prints in the annotations.
12214         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12215         to be able to match a filename with either the real filename, or
12216         the name of any symbolic link to this file.
12217         (lookup_partial_symtab): Ditto.
12218
12219 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12220
12221         * breakpoint.c: Add support for hardware breakpoints in overlays.
12222         (overlay_events_enabled): New state variable.
12223         (insert_breakpoints): Use overlay_events_enabled to decide
12224         whether to attempt to set a breakpoint at the overlay load addr.
12225         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12226         (remove_breakpoint): Use overlay_events_enabled to decide
12227         whether breakpoints need to be removed from overlay load addr.
12228         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12229         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12230         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12231         disable_overlay_breakpoints): Update overlay_events_enabled.
12232
12233 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12234
12235         * dwarf2read.c (struct function_range): New.
12236         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12237         (check_cu_functions): New.
12238         (read_file_scope): Initialize global function lists.
12239         Call dwarf_decode_line after processing children.
12240         (read_func_scope): Add to global function list.
12241         (dwarf_decode_lines): Call check_cu_functions everywhere
12242         record_line is called.  Call record_line with a linenumber
12243         of 0 to mark sequence ends.
12244
12245 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12246
12247         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12248         change sync with glibc.
12249
12250 2002-04-03  Jim Blandy  <jimb@redhat.com>
12251
12252         * configure.in: Call AC_C_INLINE.
12253         * configure: Regenerated.
12254
12255 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12256
12257         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12258         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12259
12260 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12261
12262         * NEWS: Mention gcore support on FreeBSD/i386.
12263
12264         * fbsd-proc.c: New file.
12265         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12266         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12267
12268         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12269         while statement.
12270
12271 2002-03-29  Jim Blandy  <jimb@redhat.com>
12272
12273         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12274         unescaped newlines in string literals, but newer ones don't.  So
12275         escape them.
12276
12277 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12278             Andrew Cagney <cagney@redhat.com>
12279
12280         * cli/cli-dump.c: New file.  Dump memory to file,
12281         restore file to memory.
12282         * cli/cli-dump.h: New file.
12283         * Makefile.in: Add rules, dependencies for cli-dump.o.
12284         * NEWS: Mention new commands.
12285
12286 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12287
12288         * symfile.c (symbol_file_add): Move test for null symbols to later.
12289
12290 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12291
12292         From veksler at il.ibm.com:
12293         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12294         the xstrduped original path.
12295         Fix PR gdb/417.
12296
12297 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12298
12299         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12300         * infcmd.c (_initialize_infcmd): Ditto.
12301         * language.c (_initialize_language): Ditto.
12302         * symfile.c (_initialize_symfile): Ditto.
12303         * top.c (_init_main): Ditto.
12304         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12305
12306 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12307
12308         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12309         vector registers handling.
12310         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12311         fields of frame data.
12312         (frame_get_saved_regs): Fill in information for AltiVec registers.
12313
12314 2002-03-27  Jim Blandy  <jimb@redhat.com>
12315
12316         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12317         a function; leave this macro here to invoke that function.
12318         (symbol_init_mangled_name): Declaration for that function.
12319         * symtab.c (symbol_init_mangled_name): New function.
12320
12321 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12322
12323         * valarith.c: Replace strerror with safe_strerror.
12324         * tracepoint.c: Ditto.
12325         * lin-lwp.c: Ditto.
12326         * go32-nat.c: Ditto.
12327         * inflow.c: Ditto.
12328         * gnu-nat.c: Ditto.
12329
12330 2002-03-27  Andreas Schwab  <schwab@suse.de>
12331
12332         * event-top.c (command_line_handler): Remove useless if.
12333
12334 2002-03-27  Andreas Jaeger  <aj@suse.de>
12335
12336         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12337         comment.
12338
12339 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12340
12341         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12342         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12343         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12344         (x86_64_linux_dr_get_status, supply_gregset),
12345         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12346         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12347         (x86_64_register_info_table): Add.
12348         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12349         (x86_64_register_raw_size, x86_64_register_virtual_type),
12350         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12351         general x86_64_register_info_table.
12352         (i386_gdbarch_init): gdbarch_register_bytes is now set
12353         dynamicaly during initialization.
12354         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12355         * gdbserver/linux-x86-64-low.c: Ditto.
12356
12357 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12358
12359         * gdbserver/server.c (main): Call target_signal_to_host_p
12360         and target_signal_to_host on signals received from the remote.
12361         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12362         target_signal_from_host on signals sent to the remote.
12363         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12364         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12365
12366 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12367
12368         * signals/signals.c: Include "server.h" in gdbserver build.
12369         (target_signal_from_name): Don't use STREQ.
12370         (_initialize_signals): Likewise.  Don't include function in
12371         gdbserver build.
12372
12373 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12374
12375         * signals.c: Moved to...
12376         * signals/signals.c: Here.
12377         * Makefile (signals.o): Update.
12378
12379 2002-03-26  Jeff Law (law@redhat.com)
12380
12381         * somread.c (som_symtab_read): Remove some commented out code and
12382         updated related comments.  Do not set the minimal symbol table to
12383         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12384         in a dynamic executable.
12385         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12386         where we are unable to find the minimal symbol for the given
12387         PC value.
12388
12389 2002-03-25  Jeff Law (law@redhat.com)
12390
12391         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12392
12393 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12394
12395         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12396
12397 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12398
12399         * command.h: Update copyright.
12400         (struct cmd_list_element): Replace definition with opaque
12401         declaration.
12402         (enum cmd_types): Document that it will eventually be moved to
12403         cli/cli-decode.h
12404         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12405         (MALLOCED_REPLACEMENT): Delete macro.
12406         * Makefile.in (cli_decode_h): Add $(command_h).
12407         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12408         * top.c: Include "cli/cli-decode.h".
12409         * completer.c: Include "cli/cli-decode.h".
12410         * maint.c: Include "cli/cli-decode.h".
12411         * cli/cli-decode.h: Include "command.h".
12412         (enum command_class): Delete.
12413         (enum cmd_types): Comment out.
12414         (enum cmd_auto_boolean): Delete.
12415         (enum var_types): Delete.
12416
12417 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12418
12419         * cli/cli-decode.c: Include "gdb_assert.h".
12420         (add_set_or_show_cmd): New static function.
12421         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12422         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12423         all fields, such as func, from the set command.
12424
12425 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12426
12427         * MAINTAINERS (sh-elf): Change warning flag to -w.
12428
12429 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12430
12431         * defs.h (error): Add printf format attribute.
12432         * thread-db.c (thread_from_lwp): Fix error format string.
12433         * stack.c (parse_frame_specification): Ditto.
12434         * cli/cli-decode.c (undef_cmd_error): Ditto.
12435         * scm-lang.c (scm_lookup_name): Ditto.
12436         * tracepoint.c (trace_error): Ditto.
12437         * remote-utils.c (usage): Ditto.
12438         * remote.c (compare_sections_command): Ditto.
12439         Fix PR gdb/328.
12440
12441 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12442
12443         * gdbtypes.c (append_composite_type_field): New function.
12444         (init_composite_type): New function.
12445         * gdbtypes.h (append_composite_type_field): Declare.
12446         (init_composite_type): Ditto.
12447
12448 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12449
12450         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12451         function.
12452         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12453         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12454         structure returning convention for SYSV ABI case, but not
12455         for GNU/Linux, FreeBSD, or NetBSD.
12456
12457 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12458
12459         * symtab.h (lookup_block_symbol): Add mangled_name argument
12460         to prototype.
12461
12462         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12463         with new mangled_name argument.
12464         * linespec.c (decode_line_1): Likewise.
12465         * valops (value_of_this): Likewise.
12466         * symtab.c (lookup_transparent_type): Likewise.
12467         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12468         (lookup_symbol): If we are given a mangled name, pass it down
12469         to lookup_symbol_aux.
12470         (lookup_block_symbol): If we are given a mangled name to check
12471         against, only return symbols which match it.
12472
12473 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12474
12475         * win32-nat.c (child_create_inferior): Check for proper shell to use
12476         here, in case the user changes it on the fly.
12477         (_initialize_inftarg): Remove shell path considerations.
12478
12479 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12480
12481         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12482         for gdbarch_max_register_raw_size and max_register_virtual_size.
12483         Adjust copyright year.
12484
12485 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12486
12487          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12488          in a function to cover the entire beginning of the function
12489          as well if it does not already.
12490
12491 2002-03-21  Tom Rix  <trix@redhat.com>
12492
12493         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12494         (rs6000_ptrace64): Renamed from ptrace64.
12495
12496 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12497
12498         * gdbserver/remote-utils.c (remote_open): Don't call
12499         getprotobyname, we're all using TCP here so just use
12500         IPPROTO_TCP.
12501         * gdbserver/gdbreplay.c (remote_open): Ditto.
12502
12503 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12504
12505         * regcache.c (_initialize_regcache): No need to call
12506         build_regcache() at this time; it gets called whenever
12507         the gdbarch changes.
12508
12509 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12510
12511         * sparc-nat.c:  Include sys/param.h where possible.
12512
12513 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12514
12515         Fix PR gdb/422.
12516         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12517         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12518         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12519         complex types.
12520         * stabsread.c (rs6000_builtin_type): Likewise.
12521         (read_sun_floating_type): Likewise.
12522
12523 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12524
12525         * stabsread.c (read_member_functions): Remove skip code for duplicate
12526         constructor/destructor methods.  Use standard parsing for these
12527         methods and just do not chain them to the list of methods after
12528         parsing.
12529
12530 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12531
12532         * coffread.c: Remove redundant static declarations.  Replace
12533         occurrences of `PTR' with `void *'.
12534         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12535         * top.h (quit_cover): Likewise.
12536         * defs.h (catch_errors): Likewise.
12537
12538 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12539
12540         * defs.h (XMALLOC): Define.
12541         * gdb-events.sh (XMALLOC): Delete macro.
12542         * gdb-events.c, gdb-events.h: Regenerate.
12543         * gdbarch.sh (XMALLOC): Delete macro.
12544         * gdbarch.c: Regenerate.
12545         * serial.c (XMALLOC): Delete macro.
12546         * ui-file.c (XMALLOC): Ditto.
12547         * ser-unix.h (XMALLOC): Ditto.
12548         * sh-tdep.c (XMALLOC): Ditto.
12549         * ui-out.c (XMALLOC): Ditto.
12550         * utils.c (XMALLOC): Ditto.
12551         * i386-tdep.c (XMALLOC): Ditto.
12552         * gdb-events.c (XMALLOC): Ditto.
12553         * d10v-tdep.c (XMALLOC): Ditto.
12554         * cli-out.c (XMALLOC): Ditto.
12555
12556         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12557         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12558         * ui-file.c, ui-out.c: Ditto.
12559
12560 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12561
12562         * command.h (struct cmd_list_element): Add field context.
12563         (set_cmd_context, get_cmd_context): Declare.
12564         * cli/cli-decode.h: Ditto.
12565         * cli/cli-decode.c (get_cmd_context): New function.
12566         (set_cmd_context): New function.
12567         (add_cmd): Initialize context.
12568         Part of fixing PR gdb/145 and PR gdb/146.
12569
12570 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12571
12572         * cli/cli-decode.c (cmd_type): New function.
12573         * command.h (cmd_type): Declare.
12574         * infrun.c (set_schedlock_func): Call function cmd_type.
12575         * kod.c (kod_set_os): Call cmd_type.
12576         * cris-tdep.c (cris_version_update): Use function cmd_type.
12577         (cris_mode_update, cris_abi_update): Ditto.
12578
12579         * command.h: (execute_cmd_post_hook): Declare.
12580         (execute_cmd_pre_hook): Declare.
12581         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12582         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12583         functions. Execute pre/post hook while ensuring that afterwords
12584         hook_in is cleared.
12585         * top.c (execute_command): Use execute_cmd_post_hook, and
12586         execute_cmd_pre_hook to execute pre/post commands.
12587         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12588         hook_stop_stub.
12589         (hook_stop_stub): Call execute_cmd_pre_hook.
12590
12591 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12592
12593         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12594         set'' and this leads to a core dump.  Move xstrdup of
12595         operating_system to after check that it is not NULL.
12596
12597 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12598
12599         * kod.c (kod_set_os): Remove unnecessary check that
12600         ``command->type'' is set_cmd.
12601
12602         * valprint.c (set_input_radix): Use input_radix.
12603         (set_output_radix): Use output_radix.
12604         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12605         isn't reverted.
12606
12607 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12608
12609         * value.h (struct value): Delete field ``substring_addr''.  Change
12610         aligner fields to force_doublest_align, force_longest_align,
12611         force_core_addr_align and force_pointer_aligh.
12612
12613         * value.h (struct value): Fix typo in above change.
12614
12615 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12616
12617         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12618         to fix internal_error from ``maintenance print architecture''.
12619
12620 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12621
12622         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12623         for gcc versions after gcc-2.8.1.
12624
12625 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12626
12627         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12628         for method resolution.  Restore adjustment of ``this'' pointer after
12629         calling value_struct_elt, which was accidentally removed during the
12630         HP merge.
12631
12632 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12633
12634         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12635         value_of_register.
12636         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12637         get_saved_register.
12638         * value.h (value_of_register): Update.
12639
12640 2002-03-14  Richard Henderson  <rth@redhat.com>
12641
12642         * configure.in: Detect declaration for canonicalize_file_name.
12643         * utils.c (canonicalize_file_name): Declare, if needed.
12644         (gdb_realpath): Prefer realpath if available and usable.
12645         * config.in, configure: Rebuild.
12646
12647 2002-03-14  Richard Henderson  <rth@redhat.com>
12648
12649         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12650         a constant array bound.
12651
12652         * MAINTAINERS: Add myself to write-after-approval.
12653
12654 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12655
12656         * symfile.c (syms_from_objfile): Return immediately if no syms.
12657         (symbol_file_add): Return immediately if no syms.
12658         (find_sym_fns): Return immediately if no syms.
12659
12660 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12661
12662         * gdbserver/remote-util.c (remote_open): Print remote-side's
12663         IP address when remote debugging over the network.
12664
12665 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12666
12667         * config/sparc/fbsd.mh: Fix copyright.
12668         * config/sparc/fbsd.mt: Likewise.
12669
12670 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12671
12672         * MAINTAINERS: Fix typo in name of gdb warnings option.
12673         (x86-64): Fix formating so that this can be parsed by awk.
12674
12675 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12676
12677         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12678         * defs.h: Include "gdb/signals.h".
12679         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12680
12681 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12682
12683         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12684         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12685         from x86-64-tdep.h
12686
12687 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12688             Don Howard <dhoward@redhat.com>
12689
12690         * mips-tdep.c (ST0_FR): Define.
12691         (mips2_fp_compat): New function, temporarily disabled.
12692         (mips_read_fp_register_single): New function.
12693         (mips_read_fp_register_double): New function.
12694         (mips_print_register): Use them.
12695         (do_fp_register_row): Likewise.
12696
12697 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12698
12699         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12700         approval''.
12701
12702 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12703
12704         * stabsread.c (read_member_functions): Fix is_stub test for
12705         static member functions, improve comment.
12706
12707 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12708
12709         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12710         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12711         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12712         commands that set boolean values.
12713         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12714         (arm_rdi_resume): Always initialize PC.
12715         (arm_rdi_open): Don't use rslt as a boolean.
12716         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12717         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12718         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12719         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12720
12721 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12722
12723         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12724         * configure: Rebuilt.
12725
12726 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12727
12728         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12729         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12730
12731 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12732
12733         * cli/cli-decode.c (set_cmd_completer): New function.
12734         * command.h (set_cmd_completer): Declare.
12735         * cli/cli-decode.h (set_cmd_completer): Ditto.
12736
12737         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12738         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12739         * win32-nat.c (_initialize_inftarg): Ditto.
12740         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12741         * proc-api.c (_initialize_proc_api): Ditto.
12742         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12743         * source.c (_initialize_source): Ditto.
12744         * exec.c (_initialize_exec): Ditto.
12745         * solib.c (_initialize_solib): Ditto.
12746         * top.c (init_main): Ditto.
12747         * tracepoint.c (_initialize_tracepoint): Ditto.
12748         * symfile.c (_initialize_symfile): Ditto.
12749         * printcmd.c (_initialize_printcmd): Ditto.
12750         * infcmd.c (_initialize_infcmd): Ditto.
12751         * corefile.c (_initialize_core): Ditto.
12752
12753 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12754
12755         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12756
12757 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12758
12759         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12760
12761 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12762
12763         * NEWS: Update headings, 5.2 has branched.
12764
12765 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12766
12767         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12768         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12769         (register_addr, REGISTER_RAW_SIZE): Likewise.
12770         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12771         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12772
12773 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12774
12775         * MAINTAINERS (x86-64): Add myself.
12776         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12777         changed value_ptr -> struct value *
12778
12779 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12780
12781         * configure.host (sparc64-*-freebsd): Add.
12782         * configure.tgt: Likewise.
12783         * config/sparc/fbsd.mh: New file.
12784         * config/sparc/fbsd.mt: Likewise.
12785         * config/sparc/nm-fbsd.h: Likewise.
12786         * config/sparc/tm-fbsd.h: Likewise.
12787
12788 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12789
12790         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12791         regformats/reg-s390x.dat.
12792
12793 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12794
12795         * utils.c: Add FIXME explaining true/false problem.
12796
12797 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12798
12799         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12800
12801 2002-02-28  Michael Chastain  <mec@shout.net>
12802
12803         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12804
12805 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12806
12807         * gdbserver/linux-s390-low.c: New file.
12808         * regformats/reg-s390.dat: New file.
12809         * regformats/reg-s390x.dat: New file.
12810         * gdbserver/configure.srv: Add S/390.
12811         * gdbserver/Makefile.in: Add S/390.
12812         * configure.tgt: Enable gdbserver for S/390.
12813
12814 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12815
12816         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12817         first line of the doc string for "info dos", except at the end of
12818         the sentence, since the short help stops at the first period.
12819
12820 2002-02-28  Jason Merrill  <jason@redhat.com>
12821
12822         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12823
12824 2002-02-27  Fred Fish  <fnf@redhat.com>
12825
12826         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12827         comment (dumy -> dummy).
12828
12829 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12830
12831         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12832
12833 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12834
12835       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12836
12837 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12838
12839         * gdbserver/acconfig.h: New file.
12840         * gdbserver/i387-fp.c: New file.
12841         * gdbserver/i387-fp.h: New file.
12842         * gdbserver/linux-x86-64.c: New file.
12843         * regformats/reg-x86-64.dat: New file.
12844         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12845         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12846         * gdbserver/configure.in: Add support for regsets.
12847         * gdbserver/config.in: Regenerate.
12848         * gdbserver/configure: Regenerate.
12849         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12850         * gdbserver/linux-low.h: New file.
12851         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12852         for regsets.
12853         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12854         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12855         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12856         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12857         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12858         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12859         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12860         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12861         * gdbserver/regcache.c (supply_register): New function.
12862         (supply_register_by_name): New function.
12863         (collect_register): New function.
12864         (collect_register_by_name): New function.
12865
12866 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12867
12868         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12869         (config.status): Add configure.srv dependency.
12870         (server_h): Add config.h dependency.
12871
12872 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12873
12874         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12875         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12876         * gdbserver/configure.srv: Change i386-*-linux* to use
12877         reg-i386-linux.o.
12878
12879 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12880
12881         * x86-64-tdep.c: Re-indent.  Update copyright date.
12882
12883 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12884
12885         From Michal Ludvig <mludvig@suse.cz>:
12886         * x86-64-tdep.c (value.h): Delete.
12887         (gdb_assert.h): Include.
12888         (x86_64_register_convert_to_virtual,
12889         x86_64_register_convert_to_raw ): Add check which lets only
12890         floating-point values to be converted.
12891         (value_push): Delete.
12892         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12893         (i386_gdbarch_init): Number of register_bytes fixed.
12894
12895 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12896
12897         * MAINTAINERS: Add x86-64 target.
12898
12899 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12900
12901         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12902         * osfsolib.c (solib_map_sections): Ditto.
12903         * irix5-nat.c (solib_map_sections): Ditto.
12904         * corelow.c (gdb_check_format): Ditto.
12905         * symfile.c (symfile_bfd_open): Ditto.
12906         * solib.c (solib_map_sections): Ditto.
12907         Fix PR gdb/354.
12908
12909 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12910
12911         * remote.c (_initialize_remote): By default, disable ``e'' and
12912         ``E'' step out-of-range packets.
12913
12914 2002-02-26  Andreas Schwab  <schwab@suse.de>
12915
12916         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12917         m68k_linux_frame_saved_pc.
12918         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12919         in_sigtramp.
12920         (SIGCONTEXT_PC_OFFSET): Remove.
12921         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12922         m68k_linux_sigtramp_saved_pc): New functions.
12923         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12924         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12925         (UCONTEXT_PC_OFFSET): Define.
12926         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12927         non-RT and RT signal trampolines.
12928
12929 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12930
12931         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12932         (TARGET_NBPG, STACK_END_ADDR): Delete
12933         (VARIABLES_INSIDE_BLOCK): Delete.
12934
12935 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12936
12937         * utils.c (perror_with_name): Make string parameter constant.
12938         (print_sys_errmsg): Ditto.
12939         (query): Ditto.
12940         * defs.h (perror_with_name): Update.
12941         (print_sys_errmsg): Update.
12942         (query): Update.
12943
12944 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12945
12946         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12947         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12948
12949 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12950
12951         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12952         if it already matches the current architecture from the exec file.
12953         Include arch-utils.h for gdbarch_info_init prototype.
12954         * Makefile.in (rs6000-nat.o): Update dependencies.
12955
12956 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12957
12958         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12959          list of exported variables.
12960
12961 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12962
12963         * gdbserver/configure.srv: New file.
12964         * gdbserver/configure.in: Use configure.srv instead
12965         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12966         from it.
12967         * gdbserver/configure: Regenerated.
12968         * gdbserver/terminal.h: New file.
12969         * gdbserver/Makefile.in: Update for configure changes.  Remove
12970         more unneeded include paths.
12971
12972 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12973
12974         From wiz at danbala:
12975         * config/sparc/tm-sp64.h: Fix grammar and typos.
12976         Fix PR gdb/287.
12977
12978 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12979
12980         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12981         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12982         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12983         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12984         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12985         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12986         * s390-tdep.c: Ditto.
12987         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12988         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12989         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12990         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12991         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12992         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12993         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12994         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12995         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12996         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12997         Fix PR gdb/378.
12998
12999 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13000
13001         * lin-thread.c: Delete file.
13002         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13003         to gdb_proc_service.h.
13004         * configure: Re-generate.
13005
13006         * ocd.c (ocd_open): Do not try to open the "ocd" device.
13007         * serial.c (serial_open): Delete check for "ocd".
13008         Fix PR gdb/349.
13009
13010         * Makefile.in (linux-thread.o): Delete target.
13011         * linux-thread.c: Delete file.
13012
13013         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
13014         renamed SH files to be consistent.
13015
13016         * symtab.c (sort_search_symbols): Use xfree.
13017
13018 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13019
13020         * arm-linux-tdep.c (arm_linux_init_abi): Register
13021         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13022         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13023         definition with undef, since we don't want the sysvr4 definition.
13024         (SKIP_TRAMPOLINE_CODE): Likewise.
13025
13026 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13027
13028         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13029
13030         * configure.in: (AC_CHECK_FUNCS) Added test for
13031         canonicalize_file_name Regenerated.
13032         * config.in, configure: Regenerated.
13033         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13034         defined use canonicalize_file_name.
13035
13036 2002-02-23  Michael Chastain  <mec@shout.net>
13037
13038         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13039
13040 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13041
13042         * README: Remove references to cygnus.com.
13043         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13044         dot com'' form.  Remove references to cygnus.com and sourceware.
13045
13046 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13047
13048         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13049         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13050         1003.1-2001 no longer allows "head -1".
13051         * gdb/Makefile.in (version.c): Likewise.
13052         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13053         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13054         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13055
13056 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13057
13058         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13059         * command.h (cmd_cfunc_eq): Declare.
13060         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13061
13062         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13063         ``struct cmd_list_element *''.
13064         * cli/cli-cmds.c (is_complete_command): Update.  Use
13065         cmd_cfunc_eq.
13066         * top.c (execute_command): Pass the command to
13067         is_complete_command.
13068         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13069
13070 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13071
13072         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13073         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13074         architecture defines.
13075         * s390-tdep.c (s390_gdbarch_init): Likewise.
13076
13077 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13078
13079         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13080         (arm_linux_push_arguments): Likewise.
13081         (arm_linux_init_abi): Register them.  Also register linux-specific
13082         call_dummy_words.
13083         (find_minsym_and_objfile): Use strcmp, not STREQ.
13084         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13085         (arm_linux_call_dummy_words): Delete declaration.
13086         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13087         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13088         declarations.
13089         (LOWEST_PC): Delete.
13090
13091 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13092
13093         * maint.c (print_section_info): Do not prepend `0x' to filepos
13094         output, it will be handled by local_hex_string_custom.
13095
13096 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13097
13098         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13099         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13100         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13101
13102 2002-02-22  Jim Blandy  <jimb@redhat.com>
13103
13104         Indicate that the bcache functions don't change the strings
13105         they're passed.
13106         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13107         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13108
13109 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13110
13111         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13112
13113 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13114
13115         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13116         find the complete path to a loaded DLL.
13117
13118 2002-02-21  Fred Fish  <fnf@redhat.com>
13119
13120         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13121         that marks the end of the range of a function, enter a line number
13122         entry that has a line number of zero and a PC offset that matches
13123         the end of the function.  This starts a range of PC's for which no
13124         line number information is known.
13125         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13126         PC's for which no line number info is found (line number is zero)
13127         then we didn't find any valid line information.
13128         * symtab.h: Document use of zero line number entry.
13129
13130 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13131
13132         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13133         (have_ptrace_getvrregs): Define for run time checks.
13134         (gdb_vrregset_t): New type for Altivec register handling.
13135         (fetch_register, store_register): Fetch/store altivec register
13136         when needed.
13137         (fetch_altivec_register, store_altivec_register): New functions.
13138         (supply_vrregset, fill_vrregset): New functions.
13139         (fetch_altivec_registers, store_altivec_registers): New functions.
13140         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13141         registers as well.
13142
13143 2002-02-21  Jiri Smid  <smid@suse.cz>
13144
13145         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13146
13147 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13148
13149         * Makefile.in (armnbsd-nat.o): Update dependencies.
13150         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13151         supply the integer register set.
13152         (supply_fparegset): New function.  Similar for FPA registers.
13153         (fetch_regs, fetch_fp_regs): Use them.
13154         (fetch_core_registers): Likewise.
13155         (fetch_elfcore_registers): New function.
13156         (arm_netbsd_elfcore_fns): New core-file type specification.
13157         (_initialize_arm_netbsd_nat): Register it.
13158
13159 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13160
13161         * armnbsd-nat.c: Include gdbcore.h.
13162         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13163         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13164         'void' to declaration, to shut up ARI.
13165         (fetch_core_registers): Make static.  Rewrite using supply_register.
13166         (arm_netbsd_core_fns): New core-file type specification.
13167         (_initialize_arm_netbsd_nat): New function.
13168
13169 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13170
13171         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13172         value.
13173
13174 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13175
13176         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13177         fails.
13178
13179 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13180
13181         * jv-exp.y (parse_number): Change type of implicit longs
13182         to builtin_type_uint64.
13183
13184 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13185
13186         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13187         to be an integer instead of a `union wait'.
13188
13189 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13190
13191         * mips-linux-nat.c: Call the operating system GNU/Linux.
13192         * mips-linux-tdep.c: Likewise.
13193         * mips-tdep.c: Likewise.
13194
13195 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13196
13197         Fix PR gdb/265.
13198         * jv-exp.y (parse_number): Handle 64-bit integers.
13199
13200 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13201
13202         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13203         AC_STDC_HEADERS to AC_HEADER_STDC.
13204         * gdbserver/configure: Regenerated.
13205
13206 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13207
13208         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13209         is defined.
13210         * sparc-tdep.c (get_longjmp_target): Likewise.
13211
13212 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13213
13214         * News: Add news about ARM and Multi-arch.  Mention the new target
13215         arm*-*-netbsd*.
13216
13217 2002-02-19  Jim Blandy  <jimb@redhat.com>
13218
13219         * stabsread.c (error_type_complaint): Improve error message.
13220
13221 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13222
13223         * gdbserver/README: Update documentation.
13224         * gdbserver/configure.in: Update configury to match documentation.
13225         * gdbserver/Makefile.in: Likewise.
13226         * gdbserver/configure: Regenerated.
13227         * gdbserver/aclocal.m4: New file, generated by aclocal.
13228         * gdbserver/config.in: New file, generated by autoheader.
13229
13230 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13231
13232         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13233         armnbsd-nat.c.
13234
13235 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13236
13237         * arm-tdep.h (enum arm_float_model): New enum.
13238         (struct gdbarch_tdep): Add fp_model.
13239         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13240         up floating-point conversions until we know the floating-point model
13241         in use by the inferior.  Don't complain about being unable to
13242         determine the ABI of the inferior when we don't have one.
13243         (arm_extract_return_value): Support different floating-point models.
13244         (arm_store_return_value): Likewise.
13245         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13246         ARM_FLOAT_SOFT.
13247         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13248
13249 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13250
13251         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13252         of ``current_gdbarch''.
13253
13254 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13255
13256         * armnbsd-nat.c : ANSIfy all function declarations.
13257         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13258         (fetch_inferior_registers): Re-implement in terms of above.
13259         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13260         (store_inferior_registers): Re-implement in terms of above.
13261
13262 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13263
13264         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13265         kernel.
13266         * arm-linux-tdep.c: Likewise.
13267         * config/arm/tm-linux.h: Likewise.
13268
13269 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13270
13271         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13272         * config/arm/nbsd.mt (TM_FILE): Delete.
13273         * config/arm/tm-nbsd.h: Delete.
13274
13275 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13276
13277         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13278         Initialize CALL_DUMMY_LENGTH.
13279
13280 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13281
13282         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13283         function.
13284         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13285         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13286         defines one thing and that is incorrect for this port.
13287         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13288
13289 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13290
13291         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13292
13293 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13294
13295         * win32-nat.c (display_selector): New function. Displays information
13296         about the information returned by GetThreadSelectorEntry API function.
13297         (display_selectors): New function. Displays the infomation of
13298         the selector given as argument, or of CS, DS ans FS selectors
13299         if no argument is given.
13300         ( _initialize_inftarg): Add "w32" as info prefix command.
13301         Add "info w32 selector" as command calling display_selectors.
13302
13303 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13304
13305         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13306         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13307         if not defined.
13308
13309 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13310
13311         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13312
13313 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13314
13315         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13316         (arm_fix_call_dummy): Call it.
13317         (arm_call_dummy_breakpoint_offset): Delete.
13318         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13319         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13320
13321 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13322
13323         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13324         Default to func_frame_chain_valid.
13325         * gdbarch.h, gdbarch.c: Re-generate.
13326         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13327
13328 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13329
13330         * ppc-linux-nat.c: Update copyright.
13331         (fetch_register, store_register): Add tid parameter, don't compute
13332         tid here.
13333         (fetch_ppc_registers, store_ppc_registers): Add tid
13334         parameter. Pass it along to callees.
13335         (fetch_inferior_registers, store_inferior_registers): Compute tid
13336         here, and pass it to calleed functions.
13337         (fill_gregset, supply_fpregset): Clean up formatting.
13338
13339 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13340
13341         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13342         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13343
13344 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13345
13346         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13347         * gdbarch.c gdbarch.h: Regenerate.
13348         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13349         function.
13350         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13351         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13352         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13353
13354         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13355         * arm-tdep.c (arm_get_longjmp_target): New function.
13356         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13357         this to a positive value register arm_get_longjmp_target as the
13358         longjmp handler.
13359         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13360         (arm_linux_init_abi): Set up longjmp description in tdep.
13361         * armnbsd-nat.c (get_longjmp_target): Delete.
13362         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13363         description in tdep.
13364         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13365         (get_longjmp_target): Delete declaration.
13366         (GET_LONGJMP_TARGET): Delete.
13367         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13368         (GET_LONGJMP_TARGET): Delete.
13369
13370 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13371
13372         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13373         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13374         of ``current_gdbarch''.
13375
13376 2002-02-17  Tom Tromey  <tromey@redhat.com>
13377
13378         * cli/cli-cmds.c (compare_strings): New function.
13379         (complete_command): Only print each unique item once.
13380         * completer.h (complete_line): Declare.
13381         * completer.c (complete_line): New function.
13382         (line_completion_function): Use it.
13383
13384 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13385
13386         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13387         * gdbarch.h, gdbarch.c: Re-generate.
13388
13389 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13390
13391         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13392
13393 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13394
13395         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13396         * valops.c (value_arg_coerce): Don't take the address of a reference
13397         to convert an argument to a reference.
13398
13399 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13400
13401         * win32-nat.c (get_image_name): New function.
13402         (handle_load_dll): Use get_image_name function.
13403         (get_child_debug_event): Avoid registering debug events until possibly
13404         execed process is started.
13405         (child_create_inferior): Allow invocation via shell so that command
13406         line redirection, etc.  works ok.
13407         (_initialize_inftarg): Add new command: "set shell" to control whether
13408         a shell is used to start a process.
13409
13410 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13411
13412         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13413         instead of find_register_by_number.
13414         (cannot_store_register): Likewise.
13415
13416 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13417
13418         * dwarf2read.c: Replace fprintf (stderr, ...) by
13419         fprintf_unfiltered (gdb_stderr, ...).
13420
13421 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13422
13423         * gdbserver/gdbserver.1: Document --attach.
13424
13425 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13426
13427         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13428         descriptions.
13429         * arm-tdep.c (arm_default_arm_le_breakpoint)
13430         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13431         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13432         traditional breakpoint defines.
13433         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13434         (arm_gdbarch_init): Initialize new breakpoint variables.
13435         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13436         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13437         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13438         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13439         code out to ...
13440         (arm_netbsd_init_abi_common): ... here; new function.
13441         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13442         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13443         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13444         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13445
13446 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13447
13448         * arm-tdep.h (enum arm_abi): New enum.
13449         (struct gdbarch_tdep): New structure.
13450         (LOWEST_PC): Provide a default.
13451         (arm_gdbarch_register_os_abi): Declare new function.
13452         * arm-tdep.c (arm_abi_names): New array.
13453         (process_note_abi_tag_sections): New function.
13454         (get_elfosabi): New function.
13455         (arm_gdbarch_register_os_abi): New function.
13456         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13457         support for that ABI has been built in, then call the appropriate
13458         configuration routine.  Use gdbarch_num_regs() to get the number
13459         of registers.
13460         (arm_dump_tdep): New function.
13461         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13462         place-holder functions.
13463         (_initialize_arm_tdep): Register them.
13464         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13465
13466         * armnbsd-tdep.c: New file.
13467         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13468         * config/arm/nbsd.mt (TDEPFILES): Add it.
13469         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13470
13471         * armnbsd-nat.c: Include regcache.h.
13472         * Makefile.in (armnbsd-nat.o): Update dependency list.
13473
13474         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13475
13476 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13477
13478         * gdbserver/Makefile.in: Fix typos in target rules.
13479
13480 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13481
13482         Fix part of PR gdb/267.
13483         * linespec.c (find_methods): Handle constructors specially for now.
13484
13485 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13486
13487         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13488         handling.
13489         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13490         standard_coerce_float_to_double().
13491
13492 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13493
13494         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13495         GDBINIT_FILENAME.
13496
13497 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13498
13499         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13500         find_variant_by_name, because it confuses the multiarch
13501         framework. Return NULL if there isn't an architecture with the
13502         user supplied name, instead of forcing a different one without
13503         recording the change with the multiarch machinery.
13504         (find_variant_by_name): Delete.
13505
13506 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13507
13508         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13509         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13510
13511 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13512
13513         * stack.c (print_frame_info_base): When calling
13514         print_frame_info_listing_hook, set current_source_symtab.
13515
13516 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13517
13518         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13519         and remove unused $(INCLUDE_DIR).
13520         Add regcache.c to OBS.
13521         Add generated register protocol files to clean target.
13522         Update dependencies for new objects, obsolete old target code.
13523
13524         * gdbserver/linux-low.c: Remove all platform-specific code to
13525         new files.  Remove various dead code.  Update to use regcache
13526         functionality.
13527         * gdbserver/remote-utils.c (fromhex): Add return statement
13528         to quiet warning.
13529         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13530         constant.
13531         (input_interrupt): Add integer parameter to match prototype
13532         of a signal handler.
13533         (outreg): Use register_data ().
13534         (prepare_resume_reply): Use gdbserver_expedite_regs.
13535         * gdbserver/server.c (main): Dynamically allocate own_buf because
13536         PBUFSIZ is no longer constant.  Use registers_to_string () and
13537         registers_from_string ().
13538         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13539         for error (), fatal (), and warning ().  Update definition of
13540         PBUFSIZ to use regcache functionality.  Add include guard.
13541         * gdbserver/utils.c (fatal): Add missing ``const''.
13542         (warning): New function.
13543
13544         * regformats/regdat.sh: Include "regcache.h" in generated files.
13545         Provide init_registers () function.
13546         * regformats/regdef.h: Add prototype for set_register_cache ().
13547         Add include guard.
13548
13549         * gdbserver/linux-arm-low.c: New file.
13550         * gdbserver/linux-i386-low.c: New file.
13551         * gdbserver/linux-ia64-low.c: New file.
13552         * gdbserver/linux-m68k-low.c: New file.
13553         * gdbserver/linux-mips-low.c: New file.
13554         * gdbserver/linux-ppc-low.c: New file.
13555         * gdbserver/linux-sh-low.c: New file.
13556
13557         * gdbserver/regcache.c: New file.
13558         * gdbserver/regcache.h: New file.
13559
13560         * gdbserver/low-linux.c: Removed obsolete file.
13561
13562 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13563
13564         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13565         * config/i386/linux.mt: Likewise.
13566         * config/ia64/linux.mt: Likewise.
13567         * config/m68k/linux.mh: Likewise.
13568         * config/powerpc/linux.mh: Likewise.
13569         * config/mips/linux.mt: Likewise.
13570
13571         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13572
13573         * config/i386/i386lynx.mh: Mark gdbserver variables
13574         as (currently) obsolete for this target.
13575         * config/i386/nbsd.mt: Likewise.
13576         * config/i386/nbsdelf.mt: Likewise.
13577         * config/m32r/m32r.mt: Likewise.
13578         * config/m68k/m68klynx.mh: Likewise.
13579         * config/m68k/nbsd.mt: Likewise.
13580         * config/m68k/sun3os4.mh: Likewise.
13581         * config/mips/vr5000.mt: Likewise.
13582         * config/ns32k/nbsd.mt: Likewise.
13583         * config/pa/hppabsd.mh: Likewise.
13584         * config/pa/hppaosf.mh: Likewise.
13585         * config/powerpc/nbsd.mt: Likewise.
13586         * config/rs6000/rs6000lynx.mh: Likewise.
13587         * config/s390/s390.mt: Likewise.
13588         * config/s390/s390x.mt: Likewise.
13589         * config/sparc/sparclynx.mh: Likewise.
13590         * config/sparc/sun4os4.mh: Likewise.
13591         * config/i386/x86-64linux.mt: Likewise.
13592         * config/sparc/linux.mh: Likewise.
13593
13594 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13595
13596         * configure.tgt: Configure gdbserver only for known working
13597         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13598         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13599         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13600         * configure: Regenerated.
13601
13602 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13603
13604         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13605
13606         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13607         (default_gcore_mach): Just return 0, work around a problem in bfd.
13608         (default_gcore_target): OK to return NULL if exec_bfd is null.
13609         (make_mem_sec): Use a cast, avoid a warning.
13610
13611         * procfs.c (find_memory_regions_callback): Use a cast instead of
13612         calling host_pointer_to_address (which complains if
13613         sizeof (host pointer) != sizeof (target pointer)).
13614         (procfs_make_note_section): Avoid overflow in psargs string.
13615
13616         * procfs.c (procfs_make_note_section): Make the default
13617         implementation return an error.
13618
13619 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13620
13621         * procfs.c (procfs_make_note_section): Provide a default definition
13622         (for alpha-dec-osf4.0f). Fix typos.
13623
13624 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13625
13626         * linux-proc.c: Add include of regcache.h.
13627         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13628
13629 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13630
13631         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13632         * memattr.c (create_mem_region): Disallow useless empty region.
13633         Regions are half-open intervals, so allow [A..B) [B..C) as
13634         non-overlapping.
13635
13636 2002-02-13  Michael Chastain <mec@shout.net>
13637
13638         * defs.h: Kill CONST_PTR.
13639         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13640         * c-lang.c (c_builtin_types): Likewise.
13641         * ch-lang.c (ch_builtin_types): Likewise.
13642         * f-lang.c (f_builtin_types): Likewise.
13643         * language.c (unknown_builtin_types): Likewise.
13644         * m2-lang.c (m2_builtin_types): Likewise.
13645         * p-lang.c (pascal_builtin_types): Likewise.
13646         * scm-lang.c (c_builtin_types): Likewise.
13647
13648 2002-02-13  Keith Seitz  <keiths@redhat.com>
13649
13650         * arm-tdep.h (arm_get_next_pc): Add declaration.
13651
13652 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13653
13654         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13655         with other related struct-returning functions.
13656         (arm_extract_struct_value_address): New function.
13657         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13658         initialize float_format, double_format and long_double_format as
13659         appropriate to the endianness of the target.
13660         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13661         (arm_use_struct_convention): Delete declaration.
13662         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13663
13664 2002-02-13  Keith Seitz  <keiths@redhat.com>
13665
13666         * defs.h (core_addr_to_string_nz): New function.
13667
13668 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13669
13670         Apply missing bits of 2002-01-15 patch.
13671         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13672         (fill_fpregset): Use i387_fill_fsave.
13673
13674 2002-02-12  Keith Seitz  <keiths@redhat.com>
13675
13676         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13677         (core_addr_to_string_nz): New function.
13678
13679 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13680
13681         * arm-linux-nat.c: Really include arm-tdep.h.
13682         * config/arm/tm-linux.h (struct type, struct value): Declare.
13683
13684 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13685
13686         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13687         (gcore section): Ifdef for Solaris and Unixware only.
13688         (procfs_do_thread_registers): Unixware needs one lwpstatus
13689         per thread (not one prstatus or pstatus).
13690         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13691         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13692         once before iterating over threads.
13693
13694 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13695
13696         * arm-tdep.h: New file.
13697         * arm-tdep.c: Include arm-tdep.h.
13698         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13699         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13700         (arm_print_float_info, arm_register_type, convert_to_extended)
13701         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13702         (arm_extract_return_value, arm_register_name): Make static.
13703         (arm_software_single_step): Similarly.  Fix types in declaration.
13704         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13705         (arm_store_return_value, arm_store_struct_return): New functions.
13706         (arm_gdbarch_init): Register the above functions.  Also register
13707         call_dummy_start_offset, sizeof_call_dummy_words,
13708         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13709         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13710         max_register_virtual_size, register_size.  Set up
13711         prologue_cache.saved_regs here, rather than ...
13712         (_initialize_arm_tdep): ... here.
13713         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13714         declarations.
13715         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13716         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13717         (arm_print_float_info, arm_register_type, convert_to_extended)
13718         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13719         (arm_extract_return_value, arm_register_name): Delete declarations.
13720         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13721         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13722         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13723         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13724         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13725         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13726         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13727         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13728         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13729         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13730         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13731         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13732         interface.
13733         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13734         * remote-rdi.c remote-rdp.c: Likewise.
13735         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13736         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13737         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13738         definition.
13739
13740         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13741         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13742         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13743         from non-ARM_ prefixed definitions.
13744         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13745         all uses of above.
13746         * remote-rdi.c remote-rdp.c: Likewise.
13747         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13748
13749 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13750
13751         * arm-tdep.c (arm_frameless_function_invocation)
13752         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13753         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13754         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13755         (arm_pop_frame, arm_get_next_pc): Make static.
13756         (arm_gdbarch_init): Register above in gdbarch structure.
13757         (arm_read_fp): Renamed from arm_target_read_fp.
13758         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13759         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13760         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13761         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13762         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13763         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13764         (arm_pc_is_thumb_dummy): Delete declarations.
13765         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13766         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13767         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13768         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13769
13770 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13771
13772         * symtab.c (compare_search_syms): New function.
13773         (sort_search_symbols): New function.
13774         (search_symbols): Sort symbols after searching rather than
13775         before.
13776
13777 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13778
13779         * NEWS: Linux -> GNU/Linux.
13780
13781 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13782
13783         * gdbarch.sh: For for level one methods, disallow a definition
13784         when partially multi-arched.  Add comments explaining rationale.
13785         * gdbarch.h: Re-generate.
13786
13787 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13788
13789         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13790         multi-arch partial.
13791
13792 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13793
13794         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13795         field.  Use diff -u.
13796         * gdbarch.c: Re-generate.
13797
13798 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13799
13800         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13801         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13802         partial.
13803
13804 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13805
13806         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13807         multi-arch partial.
13808         (PUSH_ARGUMENTS): Switch to using predefault.
13809         * gdbarch.c: Regenerate.
13810
13811 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13812
13813         * valops.c (PUSH_ARGUMENTS): Delete definition.
13814         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13815         partial.  Default to default_push_arguments.
13816         * gdbarch.h, gdbarch.c: Regenerate.
13817
13818 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13819
13820         * defs.h (throw_exception): Rename return_to_top_level.  Update
13821         comments.
13822         * utils.c (error_stream, internal_verror, quit): Ditto.
13823         * top.c (throw_exception, catcher): Ditto.
13824         * sparclet-rom.c (sparclet_load): Ditto.
13825         * remote.c (interrupt_query, minitelnet): Ditto.
13826         * remote-sds.c (interrupt_query): Ditto.
13827         * remote-mips.c (mips_error, mips_kill): Ditto.
13828         * ocd.c (interrupt_query): Ditto.
13829         * monitor.c (monitor_interrupt_query): Ditto.
13830         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13831         * target.h: Update comment.
13832
13833         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13834
13835 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13836
13837         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13838         default_double_format.
13839         * gdbarch.h, gdbarch.c: Re-generate.
13840         * findvar.c (floatformat_unknown): Delete variable definition.
13841         * doublest.h (floatformat_unknown): Delete variable declaration.
13842
13843 2002-02-09  Jim Blandy  <jimb@redhat.com>
13844
13845         * stabsread.c (read_type): Add code to parse Sun's syntax for
13846         prototyped function types.
13847
13848 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13849
13850         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13851         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13852
13853 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13854
13855         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13856         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13857         now _initialize_xcoffsolib gets called again and overrides the
13858         commands from solib.c in a native configuration.
13859
13860 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13861
13862         * doublest.c (store_typed_floating): Don't try to return a value.
13863         Fixes PR gdb/290.
13864
13865 2002-02-08  Jim Blandy  <jimb@redhat.com>
13866
13867         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13868         is prototyped and has no arguments, print its argument list as
13869         `(void)'.
13870
13871 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13872
13873         * MAINTAINERS (write-after-approval): Add myself.
13874         (paper-trail): I've escaped!
13875
13876 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13877
13878         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13879         changes.
13880         (_initialize_check_for_gdb_ini): Ditto.
13881
13882 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13883
13884         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13885         xaprintf -> xasprintf.
13886
13887 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13888
13889         * win32-nat.c: Remove use of printf and sprintf functions.
13890
13891 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13892
13893         * arm-tdep.c (arm_frame_chain_valid): Make static.
13894         (arm_push_arguments): Likewise.
13895         (arm_gdbarch_init): New function.
13896         (_initialize_arm_tdep): Call it.
13897         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13898         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13899         (FRAME_CHAIN_VALID): Delete.
13900         (arm_frame_chain_valid): Delete declaration.
13901         (PUSH_ARGUMENTS): Delete.
13902         (arm_push_arguments): Delete declaration.
13903         (CALL_DUMMY_P): Delete.
13904
13905 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13906             Corinna Vinschen  <vinschen@redhat.com>
13907
13908         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13909         on builtin float types.
13910
13911 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13912
13913         * utils.c: Include <curses.h> before "bfd.h".
13914         * tui/tui-hooks.c: Likewise.
13915         * tui/tui.c: Likewise.
13916         * tui/tuiCommand.c: Likewise.
13917         * tui/tuiData.c: Likewise.
13918         * tui/tuiDataWin.c: Likewise.
13919         * tui/tuiDisassem.c: Likewise.
13920         * tui/tuiGeneralWin.c: Likewise.
13921         * tui/tuiIO.c: Likewise.
13922         * tui/tuiLayout.c: Likewise.
13923         * tui/tuiRegs.c: Likewise.
13924         * tui/tuiSource.c: Likewise.
13925         * tui/tuiSourceWin.c: Likewise.
13926         * tui/tuiStack.c: Likewise.
13927         * tui/tuiWin.c: Likewise.
13928
13929 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13930
13931         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13932         to include space for pseudoregs as well. Update loops accordingly.
13933         (sh_fp_frame_init_saved_regs): Ditto.
13934         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13935
13936 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13937
13938         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13939         Add Richard Earnshaw to Arm maintainers.
13940
13941 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13942
13943         * defs.h (warning_begin): Delete declaration.
13944
13945         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13946         Delete macro.
13947
13948 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13949
13950         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13951         Logic bug, remove misplaced else.
13952
13953 2002-02-07  Klee Dienes  <klee@apple.com>
13954
13955         * fork-inferior.c (fork_inferior): Add '!' to the list of
13956         characters that need to be quoted when building a string for the
13957         shell.  Quote '!' specifically with a backslash, since CSH chokes
13958         when trying to evaluate "str!str".
13959
13960 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13961
13962         * rdi-share/host.h: Only provide a typedef for bool if it is not
13963         defined.
13964
13965 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13966
13967         * breakpoint.h (enum bptype): Add new overlay event bp type.
13968         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13969
13970         * breakpoint.c (create_internal_breakpoint): New function.
13971         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13972         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13973         (create_thread_event_breakpoint): Ditto.
13974         (create_solib_event_breakpoint): Ditto.
13975         (create_overlay_event_breakpoint): New function.
13976         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13977         (update_breakpoints_after_exec): Delete and re-initialize
13978         overlay event breakpoints after an exec.  Add FIXME comment
13979         about longjmp breakpoint.
13980         (print_it_typical): Ignore overlay event breakpoints.
13981         (print_one_breakpoint): Ditto.
13982         (mention): Ditto.
13983         (bpstat_what): Do not stop for overlay event breakpoints.
13984         (delete_breakpoint): Don't delete overlay event breakpoints.
13985         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13986         (breakpoint_re_set): Re-create overlay event breakpoint.
13987
13988         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13989         (overlay_manual_command): Disable overlay breakpoints.
13990         (overlay_off_command): Disable overlay breakpoints.
13991
13992 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13993
13994         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13995         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13996         to here from config/tm-arm.h.
13997         (coff_sym_is_thumb): Make static.
13998         (arm_elf_make_msymbol_special): New function.
13999         (arm_coff_make_msymbol_special): New function.
14000         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14001         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14002         (coff_sym_is_thumb): Delete declaration.
14003         (arm_elf_make_msymbol_special): Declare.
14004         (arm_coff_make_msymbol_special): Declare.
14005         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14006         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14007
14008 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14009
14010         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14011
14012 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14013
14014         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14015         * gdbarch.c gdbarch.h: Regenerate.
14016         * arch-utils.c (default_print_float_info): New function.
14017         * arch-utils.h (default_print_float_info): Prototype it.
14018         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14019         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14020         (PRINT_FLOAT_INFO): Document it.
14021
14022         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14023         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14024         (PRINT_FLOAT_INFO): Define.
14025
14026 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14027
14028         * win32-nat.c (_initialize_check_for_gdb_ini):
14029         Add typecast to sprintf argument to suppress a warning.
14030
14031 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14032
14033         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14034         to allow easier handling of pass state.
14035         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14036         that gives exception name and address.
14037         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14038         and set last_sig value to ourstatus->value.sig. Some missing
14039         exceptions added.
14040         (child_continue): Correctly report continue_status.
14041         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14042         TARGET_SIGNAL_0 (new default value).
14043         (child_resume): consider sig argument passed to decide if
14044         the exception should be passed to debuggee or not.
14045
14046 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14047
14048         * regcache.c (fetch_register): Call target_fetch_register
14049         only if we don't call FETCH_PSEUDO_REGISTER.
14050         (store_register): Call target_store_register only if we
14051         don't call STORE_PSEUDO_REGISTER.
14052
14053 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14054
14055         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14056         ELF_MAKE_MSYMBOL_SPECIAL.
14057         * gdbarch.c, gdbarch.h: Regenerate.
14058         * arch-utils.c (default_make_msymbol_special): New function.
14059         * arch-utils.h (default_make_msymbol_special): Export.
14060         * elfread.c (elf_symtab_read): Compile use of
14061         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14062         multiarched.
14063         * coffread.c (coff_symtab_read): Ditto, for
14064         COFF_MAKE_MSYMBOL_SPECIAL.
14065
14066 2002-02-05  Jim Blandy  <jimb@redhat.com>
14067
14068         * solib-svr4.c (svr4_truncate_ptr): New function.
14069         (svr4_relocate_section_addresses): Do the address arithmetic with
14070         the appropriate truncation for target addresses, even when
14071         CORE_ADDR is larger than a target address.
14072
14073 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14074
14075         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14076         to (int *).
14077
14078 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14079
14080         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14081         code.
14082
14083 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14084
14085         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14086
14087 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14088
14089         * gdbserver/linux-low.c: Remove unused include files.
14090
14091 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14092
14093         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14094         (read_inferior_memory): Use it.
14095         (write_inferior_memory): Likewise.
14096
14097 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14098
14099         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14100         grubbing through sys_errlist.
14101
14102 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14103
14104         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14105
14106 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14107         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14108
14109 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14110
14111         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14112         (do_sfunc, set_cmd_sfunc): New functions.
14113
14114         * command.h (struct cmd_list_element): Add field func.
14115         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14116         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14117         * cli/cli-decode.h: Ditto.
14118
14119         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14120         (help_all, help_cmd_list): Ditto.
14121         (find_cmd, complete_on_cmdlist): Ditto.
14122         * top.c (execute_command): Ditto.
14123
14124         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14125         function.sfunc.
14126
14127         * infcmd.c (notice_args_read): Fix function signature.
14128
14129         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14130         * cli/cli-decode.c (add_set_cmd): Ditto.
14131         * utils.c (initialize_utils): Ditto.
14132         * maint.c (_initialize_maint_cmds): Ditto.
14133         * infrun.c (_initialize_infrun): Ditto.
14134         * demangle.c (_initialize_demangler): Ditto.
14135         * remote.c (add_packet_config_cmd): Ditto.
14136         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14137         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14138         * proc-api.c (_initialize_proc_api): Ditto.
14139         * kod.c (_initialize_kod): Ditto.
14140         * valprint.c (_initialize_valprint): Ditto.
14141         * top.c (init_main): Ditto.
14142         * infcmd.c (_initialize_infcmd): Ditto.
14143         * corefile.c (_initialize_core): Ditto.
14144         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14145         * arch-utils.c (initialize_current_architecture): Ditto.
14146         (_initialize_gdbarch_utils): Ditto.
14147         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14148
14149         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14150         * wince.c (_initialize_inftarg): Ditto.
14151         * symfile.c (_initialize_symfile): Ditto.
14152         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14153         * language.c (_initialize_language): Ditto.
14154         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14155
14156 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14157
14158         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14159
14160 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14161
14162         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14163         Add rules for building the register data files.
14164
14165 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14166
14167         * regformats/regdat.sh: Add braces to the definition of
14168         expedite_regs_${arch}.
14169
14170 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14171
14172         * regformats/regdef.h (struct reg): Add comment describing the
14173         requirements for offset and size fields.
14174
14175 2002-02-04  Andreas Schwab  <schwab@suse.de>
14176
14177         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14178         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14179
14180 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14181
14182         * gdbarch.sh (copyright): Update years in generated header.
14183         (SMASH_TEXT_ADDRESS): Add rule.
14184         * gdbarch.h, gdbarch.c: Re-generate.
14185         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14186         * dbxread.c: Likewise.
14187         * dwarfread.c: Likewise.
14188         * elfread.c: Likewise.
14189         * somread.c: Likewise.
14190
14191         * arm-tdep.c (arm_smash_text_address): New function.
14192         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14193
14194 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14195
14196         Add support for hardware watchpoints on win32 native.
14197         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14198         CONTEXT_DEBUG_REGISTERS.
14199         (dr variable): New variable. Static array containing a local copy
14200         of debug registers.
14201         (debug_registers_changed): New variable.  Reflects when debug registers
14202         are changed and need to be written to inferior.
14203         (debug_registers_used): New variable. Reflects when any debug register
14204         was set, used when new threads are created.
14205         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14206         i386-nat code.
14207         (thread_rec): Set dr array if id is the thread of current_event .
14208         (child_continue, child_resume): Change the debug registers for all
14209         threads if debug_registers_changed.
14210         (child_add_thread): Change the debug registers if debug_registers_used.
14211         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14212         Link nm.h to new nm-cygwin.h file.
14213         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14214         of hardware registers.
14215
14216 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14217
14218         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14219         Restore behavour broken by 2002-01-20 Andrew Cagney
14220         <ac131313@redhat.com> IEEE_FLOAT removal.
14221
14222 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14223
14224         * c-valprint.c (c_val_print): Pass a proper valaddr to
14225         cp_print_class_method.
14226         * valops.c (search_struct_method): If there is only one method
14227         and args is NULL, return that method.
14228
14229 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14230
14231         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14232         accessing tag_name directly.
14233
14234 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14235
14236         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14237         of accessing tag_name directly.
14238
14239 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14240
14241         PR gdb/280
14242         * gdbtypes.c (replace_type): New function.
14243         * gdbtypes.h (replace_type): Add prototype.
14244         * stabsread.c (read_type): Use replace_type.
14245
14246 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14247
14248         * Makefile.in (memattr.o): Add missing dependencies rule.
14249
14250 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14251
14252         * breakpoint.c (break_at_finish_command): Really export.
14253         (break_at_finish_at_depth_command): Ditto.
14254         (tbreak_at_finish_command): Ditto.
14255         * hppa-tdep.c: Include completer.h.
14256         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14257         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14258
14259 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14260
14261         * utils.c (do_write): New function.
14262         (error_stream): Rewrite combining the code from error_begin and
14263         verror.
14264         (verror): Rewrite using error_stream.
14265         (error_begin): Delete function.
14266
14267 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14268
14269         * utils.c (error_begin): Make static.
14270         * defs.h (error_begin): Delete declaration.
14271
14272         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14273         (decode_line_1): Use cplusplus_error instead of error_begin,
14274         cplusplus_hint and return_to_top_level.
14275         * coffread.c (coff_symfile_read): Use error instead of error_begin
14276         and return_to_top_level.
14277         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14278
14279 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14280
14281         * language.h (type_error, range_error): Make string parameter
14282         constant.
14283         * language.c (warning_pre_print): Delete extern declaration.
14284         * dwarfread.c (warning_pre_print): Ditto.
14285         * language.c (type_error, range_error): Rewrite to use verror and
14286         vwarning instead of warning_begin.
14287
14288 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14289
14290         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14291         (set_ignore_count): Move misplaced comment back where it belongs.
14292
14293 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14294
14295         * command.h (NO_FUNCTION): Delete macro.
14296         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14297         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14298         * tracepoint.c (_initialize_tracepoint): Ditto.
14299         * cli/cli-decode.c (add_set_cmd): Ditto.
14300         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14301
14302 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14303
14304         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14305         Update ``this'' pointer when calling virtual functions.
14306
14307 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14308
14309         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14310         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14311
14312 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14313
14314         * regformats/reg-arm.dat: New file.
14315         * regformats/reg-i386.dat: New file.
14316         * regformats/reg-ia64.dat: New file.
14317         * regformats/reg-m68k.dat: New file.
14318         * regformats/reg-mips.dat: New file.
14319         * regformats/reg-ppc.dat: New file.
14320         * regformats/reg-sh.dat: New file.
14321         * regformats/regdef.h: New file.
14322         * regformats/regdat.sh: New file.
14323
14324 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14325
14326         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14327         (arm_frame_args_address, arm_frame_locals_address): New functions.
14328         (arm_frame_num_args): New function.
14329         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14330         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14331         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14332
14333 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14334
14335         * breakpoint.c (break_at_finish_command): Export.
14336         (break_at_finish_at_depth_command): Export.
14337         (tbreak_at_finish_command): Export.
14338         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14339         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14340         "txbreak" commands, which are HPPA specific.
14341
14342         * printcmd.c (disassemble_command): Remove an ancient
14343         artifact of an old merge.
14344
14345         * symfile.h (enum overlay_debugging_state):
14346         Define enum constant values for overlay mode.
14347         * symfile.c (overlay_debugging): Use enums instead of literals.
14348         (overlay_is_mapped, overlay_auto_command,
14349         overlay_manual_command): Ditto.
14350
14351         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14352         breakpoint_here_p, breakpoint_inserted_here_p,
14353         breakpoint_thread_match, bpstat_stop_status,
14354         describe_other_breakpoints, check_duplicates, clear_command):
14355         Coding standard fixes.
14356
14357         * target.c (target_xfer_memory): Add spaces, coding standard.
14358         (do_xfer_memory): Add missing line to trust-readonly
14359         code: check bfd SEC_READONLY flag for section.
14360
14361 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14362
14363         * PROBLEMS: Fix typo, 5.1->5.1.1.
14364
14365 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14366
14367         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14368         data symbols, since we search based on textlow and texthigh.
14369         (find_pc_sect_symtab): Likewise.
14370
14371 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14372
14373         * defs.h (vwarning): Declare.
14374         * utils.c (vwarning): New function.
14375         (warning): Call vwarning.
14376         (warning_begin): Delete function.
14377
14378         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14379         the warning message.
14380         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14381         warning_begin.
14382
14383 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14384
14385         * NEWS: Mention "set trust-readonly-sections" command.
14386         Mention generate-core-file command.
14387
14388 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14389
14390         * target.c: New command, "set trust-readonly-sections on".
14391         (do_xfer_memory): Honor the suggestion to trust readonly sections
14392         by reading them from the object file instead of from the target.
14393         (initialize_targets): Register command "set trust-readonly-sections".
14394
14395 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14396
14397         * parse.c (target_map_name_to_register): Simplify, search regs and
14398         pseudo-regs using a single loop.
14399
14400 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14401
14402         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14403
14404 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14405
14406         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14407         * config/i386/i386v42mp.mh: Add i387-nat.o .
14408         * i386v4-nat.c: Include i387-nat.h.
14409         (supply_fpregset): Use i387_supply_fsave.
14410         (fill_fpregset): Use i387_fill_fsave.
14411
14412 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14413
14414         * arm-tdep.c (arm_call_dummy_words): Define.
14415         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14416         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14417         (CALL_DUMMY_WORDS): Define.
14418         (arm_call_dummy_words): Declare.
14419         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14420         (arm_linux_call_dummy_words): Declare.
14421
14422 2002-01-30  Andreas Schwab  <schwab@suse.de>
14423
14424         * m68klinux-nat.c: Fix last change to use regcache_collect
14425         instead of referencing registers[] directly.
14426
14427 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14428
14429         * parse.c (target_map_name_to_register): Delete code wrapped in
14430         #ifdef REGISTER_NAME_ALIAS_HOOK.
14431
14432 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14433
14434         * regcache.c (legacy_read_register_gen): Need to be able to
14435         read pseudo-register as well as real register.
14436         (legacy_write_register_gen): Ditto.
14437
14438 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14439
14440         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14441         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14442         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14443         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14444         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14445         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14446         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14447         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14448         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14449         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14450         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14451         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14452         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14453         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14454         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14455         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14456         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14457         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14458         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14459         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14460
14461 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14462
14463         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14464         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14465         (initialize_current_architecture): Update target_byte_order using
14466         information from BFD.
14467         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14468         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14469
14470 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14471
14472         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14473         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14474
14475         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14476         #ifdef INVALID_FLOAT.
14477         * infcmd.c (do_registers_info): Ditto.
14478         * values.c (unpack_double): Ditto.  Add comment.
14479
14480         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14481         already commented out.
14482
14483 2002-01-26  Andreas Schwab  <schwab@suse.de>
14484
14485         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14486         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14487         registers and add support for PTRACE_GETREGS.
14488
14489 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14490
14491         GDB 5.1.1 released from 5.1 branch.
14492         * NEWS: Add 5.1.1 news.
14493         * README: Sync with 5.1 branch.
14494
14495 2002-01-23  Fred Fish  <fnf@redhat.com>
14496
14497         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14498         stabstring on initial malloc.  Reallocing will copy it for us,
14499         if necessary.
14500
14501 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14502
14503         * Makefile.in (hpread_h): Delete.
14504         (HFILES_NO_SRCDIR): Remove hpread.h.
14505         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14506         (hpread.o): Update dependencies.
14507         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14508
14509         * hp-psymtab-read.c: Remove file.
14510         * hp-symtab-read.c: Remove file.
14511         * hpread.h: Remove file.
14512
14513         * hpread.c: Merge all contents of hp-psymtab-read.c,
14514         hp-symtab-read.c and hpread.h into this file, as it was prior to
14515         January 1999.
14516
14517         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14518         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14519         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14520         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14521
14522 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14523
14524         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14525         fill_gregset): Call gdbarch_tdep() just once, assign result to
14526         variable and use that, instead of calling the function several
14527         times.
14528
14529 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14530
14531         * configure.host: Accept sparcv9 as alias for sparc64.
14532         * configure.tgt: Likewise.
14533
14534 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14535
14536         * solib-aix5.c (build_so_list_from_mapfile)
14537         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14538         arguments is not reversed.
14539         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14540         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14541
14542 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14543
14544         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14545         modified version of obsolete sh_fetch_pseudo_register.
14546         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14547         (sh4_register_read): New function.
14548         (sh_pseudo_register_write): New function. Renamed and modified
14549         version of obsolete sh_store_pseudo_register.
14550         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14551         (sh4_register_write): New function.
14552         (sh_gdbarch_init): Remove setting of gdbarch function
14553         fetch_pseudo_register and store_pseudo_register. Remove setting of
14554         register_convert_to_raw, register_convert_to_virtual,
14555         register_convertible.
14556         (sh_sh4_register_convertible): Delete. No longer needed. All is
14557         taken care by architecture specific functions
14558         register_read/register_write.
14559         (sh_sh4_register_convert_to_virtual): Make static.
14560         (sh_sh4_register_convert_to_raw): Ditto.
14561
14562 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14563
14564         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14565         (floatformat_is_nan, floatformat_mantissa): Ditto.
14566
14567         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14568         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14569         builtin_type_ieee_double_little,
14570         builtin_type_ieee_double_littlebyte_bigword,
14571         builtin_type_m68881_ext, builtin_type_i960_ext,
14572         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14573         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14574         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14575         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14576
14577 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14578
14579         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14580         parameter.  Set frameless flag if it exists and depended of
14581         whether the scanned function is frameless or not.
14582         (xstormy16_skip_prologue): If function is frameless, return
14583         result of xstormy16_scan_prologue().
14584         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14585         call.
14586
14587 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14588
14589         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14590         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14591         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14592         sh_sh4_register_byte, sh_sh4_register_raw_size,
14593         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14594         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14595         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14596         sh_store_pseudo_register, sh_do_pseudo_register): Call
14597         gdbarch_tdep() just once, assign result to variable and use that,
14598         instead of calling the function several times.
14599
14600 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14601
14602         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14603         macros instead of LAST_FPU_CTRL_REGNUM.
14604         (store_register): Likewise.
14605
14606 2002-01-21  Jim Blandy  <jimb@redhat.com>
14607
14608         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14609         is up-to-date before running the program, not just when a program
14610         exits.
14611
14612 2002-01-21  Fred Fish  <fnf@redhat.com>
14613
14614         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14615         when we have found all instructions we are looking for.
14616
14617 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14618
14619         * arm-tdep.c (arm_register_name): New function.
14620         (arm_registers_names): Make static.
14621         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14622         (arm_register_name): Declare.
14623         (REGISTER_NAME): Use it.
14624
14625 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14626             Kevin Buettner  <kevinb@redhat.com>
14627
14628         Convert arm targets to new FRAME interface.
14629         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14630         (arm_frame_find_save_regs): Delete.
14631         (arm_frame_init_saved_regs): New.
14632         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14633         Allocate extra_info as required.  Convert all uses of fsr.regs
14634         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14635         to use extra_info.
14636         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14637         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14638         (check_prologue_cache, save_prologue_cache): Likewise.
14639         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14640         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14641         (FRAME_FIND_SAVED_REGS): Delete.
14642         (arm_frame_find_saved_regs): Delete prototype.
14643         (arm_frame_init_saved_regs): New prototype.
14644         (FRAME_INIT_SAVED_REGS): Define.
14645
14646 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14647
14648         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14649
14650 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14651
14652         From Jeff Law <law@redhat.com>:
14653         * infttrace.c: Include <sys/pstat.h>.
14654         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14655         exec file if the ttrace equivalent fails.
14656
14657 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14658
14659         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14660         (closeLogFile): Ditto.
14661
14662 2002-01-20  Michael Chastain  <mec@shout.net>
14663
14664         * top.c (print_gdb_version): Bump copyright year to 2002.
14665
14666 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14667
14668         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14669         Zannoni and Eli Zaretskii.
14670
14671 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14672
14673         * buildsym.c: Update copyright years.
14674         * c-typeprint.c: Likewise.
14675         * dwarf2read.c: Likewise.
14676         * f-typeprint.c: Likewise.
14677         * gdbtypes.c: Likewise.
14678         * gdbtypes.h: Likewise.
14679         * hp-symtab-read.c: Likewise.
14680         * hpread.c: Likewise.
14681         * mdebugread.c: Likewise.
14682         * p-typeprint.c: Likewise.
14683
14684 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14685
14686         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14687         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14688         byte-order selectable.
14689         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14690         * arch-utils.c: Ditto.
14691         (set_endian): Ditto.
14692         (set_endian_from_file): Ditto.
14693         * gdbserver/low-sim.c (create_inferior): Ditto.
14694         * gdbarch.sh: Ditto.
14695         * gdbarch.h: Re-generate.
14696         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14697         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14698         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14699         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14700         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14701         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14702         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14703         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14704         macro definition.
14705         * config/mips/tm-wince.h: Remove #undef of macro
14706         TARGET_BYTE_ORDER_SELECTABLE.
14707         * config/sh/tm-wince.h: Ditto.
14708
14709 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14710
14711         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14712         member function fields.  Add accessor macro
14713         TYPE_FN_FIELD_ARTIFICIAL.
14714         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14715         * c-typeprint.c (c_type_print_base): Skip artificial member
14716         functions.
14717
14718 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14719
14720         * f-typeprint.c: Delete unused function f_type_print_args.
14721         * p-typeprint.c: Delete unused function pascal_type_print_args.
14722
14723 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14724
14725         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14726         comment.  Add ``artificial'' to ``union field_location''.
14727
14728         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14729
14730         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14731         * mdebugread.c (parse_symbol): Likewise.
14732         * stabsread.c (define_symbol): Likewise.
14733         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14734         initializing TYPE_FIELD_BITPOS to n (obsolete).
14735         (hpread_doc_function_type): Likewise.
14736         * hpread.c (hpread_function_type): Likewise.
14737
14738 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14739
14740         * configure.in (host_makefile_frag): Only require a host makefile
14741         fragment when a native build.
14742         * configure: Re-generate.
14743
14744 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14745
14746         * doublest.h (floatformat_from_type): Declare.
14747         * doublest.c (floatformat_from_type): New function.
14748         (convert_typed_floating): Use.
14749
14750         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14751         call to function floatformat_from_type.
14752
14753         * gdbarch.sh (IEEE_FLOAT): Delete.
14754         * gdbarch.h, gdbarch.c: Re-generate.
14755         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14756         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14757         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14758         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14759         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14760         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14761         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14762         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14763         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14764         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14765         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14766         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14767
14768         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14769         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14770         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14771         * sh-tdep.c (sh_gdbarch_init): Ditto.
14772         * mips-tdep.c (mips_gdbarch_init): Ditto.
14773         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14774         * cris-tdep.c (cris_gdbarch_init): Ditto.
14775
14776 2002-01-20  Jiri Smid  <smid@suse.cz>
14777
14778         * configure.host, configure.tgt: Support x86-64.
14779         * NEWS: Note new target x86-64.
14780
14781         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14782         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14783         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14784         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14785         x86-64-linux-nat.o): Fix dependencies.
14786
14787 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14788
14789         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14790         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14791         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14792         * config/sparc/xm-sun4os4.h: Delete file.
14793         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14794
14795 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14796
14797         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14798         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14799         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14800         * config/i386/i386lynx.mh (XM_FILE): Delete.
14801         * config/rs6000/xm-rs6000ly.h: Delete file.
14802         * config/sparc/xm-sparclynx.h: Delete file.
14803         * config/m68k/xm-m68klynx.h: Delete file.
14804         * config/i386/xm-i386lynx.h: Delete file.
14805         * config/xm-lynx.h: Delete file.
14806         * config/djgpp/fnchange.lst: Update.
14807
14808 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14809
14810         * alpha-tdep.c (alpha_register_byte): New function.
14811         (alpha_register_raw_size): Ditto.
14812         (alpha_register_virtual_size): Ditto.
14813         (alpha_skip_prologue_internal): Renamed from
14814         alpha_skip_prologue.
14815         (alpha_skip_prologue): New version that calls
14816         alpha_skip_prologue_internal.
14817         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14818         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14819         second argument from alpha_skip_prologue.
14820         (REGISTER_BYTE): Use alpha_register_byte.
14821         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14822         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14823         (FRAMELESS_FUNCTION_INVOCATION): Use
14824         generic_frameless_function_invocation_not.
14825         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14826         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14827
14828 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14829
14830         * config/mips/xm-news-mips.h: Delete file.
14831         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14832
14833         * config/m88k/xm-m88k.h: Delete file.
14834         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14835         * config/m88k/xm-delta88v4.h: Ditto.
14836         * config/m88k/xm-delta88.h: Ditto.
14837
14838         * config/alpha/xm-fbsd.h: Delete file.
14839         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14840
14841         * config/sparc/xm-sparc.h: Delete file.
14842         * Makefile.in (xm-sun4os4.h): Delete dependency.
14843         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14844         * config/sparc/xm-sun4os4.h: Ditto.
14845         * config/sparc/xm-linux.h: Ditto.
14846
14847         * config/i386/xm-windows.h: Delete file.
14848
14849 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14850
14851         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14852         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14853
14854 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14855
14856         * alpha-tdep.c (alpha_call_dummy_words): New.
14857         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14858         (CALL_DUMMY_P): Define.
14859         (CALL_DUMMY_WORDS): Define.
14860         (SIZEOF_CALL_DUMMY_WORDS): Define.
14861
14862 2002-01-19  Per Bothner  <per@bothner.com>
14863
14864         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14865         isn't NULL, which can happen with some gcj-3.x-produced code.
14866
14867 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14868
14869         * alpha-tdep.c (alpha_register_virtual_type): New function.
14870         (alpha_init_frame_pc_first): Ditto.
14871         (alpha_fix_call_dummy): Ditto.
14872         (alpha_store_struct_return): Ditto.
14873         (alpha_extract_struct_value_address): Ditto.
14874         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14875         alpha_register_virtual_type.
14876         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14877         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14878         alpha_extract_struct_value_address.
14879         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14880         (INIT_FRAME_PC): Use init_frame_pc_noop.
14881         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14882
14883 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14884
14885         * i386gnu-nat.c: Include "i386-tdep.h".
14886         (fetch_fpregs): Simplify code dealing with uninitialized floating
14887         point states such that it doesn't require FP7_REGNUM.
14888
14889 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14890
14891         * alpha-tdep.c (frame_extra_info): New.
14892         (alpha_find_saved_regs): Make static.  Use
14893         frame->extra_info.
14894         (alpha_frame_init_saved_regs): New function.
14895         (alpha_frame_saved_pc): Use frame->extra_info.
14896         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14897         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14898         (init_extra_frame_info): Rename to...
14899         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14900         (alpha_print_extra_frame_info): New function.
14901         (alpha_frame_locals_address): Ditto.
14902         (alpha_frame_args_address): Ditto.
14903         (alpha_pop_frame): Use frame->extra_info.
14904         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14905         alpha_frame_args_address.
14906         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14907         (alpha_find_saved_regs): Remove prototype.
14908         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14909         (EXTRA_FRAME_INFO): Remove.
14910         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14911         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14912
14913 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14914
14915         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14916         (alpha_cannot_fetch_register): Ditto.
14917         (alpha_cannot_store_register): Ditto.
14918         (alpha_register_convertible): Ditto.
14919         (alpha_use_struct_convention): Ditto.
14920         * config/alpha/tm-alpha.h: Update copyright years.
14921         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14922         (INNER_THAN): Use core_addr_lessthan.
14923         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14924         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14925         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14926         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14927         (FRAME_CHAIN): Remove unnecessary cast.
14928
14929 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14930
14931         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14932         obsolete.
14933
14934 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14935
14936         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14937         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14938         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14939         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14940         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14941         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14942         * x86-64-linux-nat.c: Ditto.
14943
14944 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14945
14946         * alpha-tdep.c (alpha_register_name): New function.
14947         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14948         (REGISTER_NAME): Define.
14949
14950 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14951
14952         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14953
14954 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14955
14956         * alpha-tdep.c: Update copyright years.
14957         (alpha_next_pc): New function.
14958         (alpha_software_single_step): Ditto.
14959         * config/alpha/tm-alpha.h: Add prototype for
14960         alpha_software_single_step.
14961
14962 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14963
14964         * alphabsd-nat.c: Update copyright years.
14965         (fill_gregset): Use regcache_collect.
14966         (fill_fpregset): Likewise.
14967         (fetch_inferior_registers): Only fetch integer registers
14968         if requested to do so.
14969         (store_inferior_registers): Only store integer registers
14970         if requested to do so.
14971
14972 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14973
14974         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14975         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14976         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14977         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14978         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14979         * config/arm/linux.mh (XDEPFILES): Delete.
14980         * config/arm/nbsd.mh (XDEPFILES): Delete.
14981         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14982         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14983         * config/i386/i386m3.mh (XDEPFILES): Delete.
14984         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14985         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14986         * config/i386/fbsd.mh (XDEPFILES): Delete.
14987         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14988         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14989         * config/i386/i386v4.mh (XDEPFILES): Delete.
14990         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14991         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14992         * config/i386/i386aix.mh (XDEPFILES): Delete.
14993         * config/i386/go32.mh (XDEPFILES): Delete.
14994         * config/i386/cygwin.mh (XDEPFILES): Delete.
14995         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14996         * config/i386/i386mach.mh (XDEPFILES): Delete.
14997         * config/i386/i386v32.mh (XDEPFILES): Delete.
14998         * config/i386/linux.mh (XDEPFILES): Delete.
14999         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15000         * config/i386/ncr3000.mh (XDEPFILES): Delete.
15001         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15002         * config/i386/i386sco.mh (XDEPFILES): Delete.
15003         * config/i386/i386v.mh (XDEPFILES): Delete.
15004         * config/i386/nbsd.mh (XDEPFILES): Delete.
15005         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15006         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15007         * config/i386/symmetry.mh (XDEPFILES): Delete.
15008         * config/i386/obsd.mh (XDEPFILES): Delete.
15009         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15010         * config/ia64/linux.mh (XDEPFILES): Delete.
15011         * config/ia64/aix.mh (XDEPFILES): Delete.
15012         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15013         * config/m68k/dpx2.mh (XDEPFILES): Delete.
15014         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15015         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15016         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15017         * config/m68k/linux.mh (XDEPFILES): Delete.
15018         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15019         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15020         * config/m68k/nbsd.mh (XDEPFILES): Delete.
15021         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15022         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15023         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15024         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15025         * config/m88k/delta88.mh (XDEPFILES): Delete.
15026         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15027         * config/m88k/m88k.mh (XDEPFILES): Delete.
15028         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15029         * config/mips/linux.mh (XDEPFILES): Delete.
15030         * config/mips/irix6.mh (XDEPFILES): Delete.
15031         * config/mips/irix5.mh (XDEPFILES): Delete.
15032         * config/mips/irix4.mh (XDEPFILES): Delete.
15033         * config/mips/irix3.mh (XDEPFILES): Delete.
15034         * config/mips/decstation.mh (XDEPFILES): Delete.
15035         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15036         (NATDEPFILES): Move core-aout.o to here.
15037         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15038         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15039         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15040         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15041         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15042         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15043         * config/pa/hpux11.mh (XDEPFILES): Delete.
15044         * config/powerpc/aix.mh (XDEPFILES): Delete.
15045         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15046         * config/powerpc/linux.mh (XDEPFILES): Delete.
15047         * config/romp/rtbsd.mh: Rename XDEPFILES.
15048         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15049         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15050         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15051         * config/s390/s390.mh (XDEPFILES): Delete.
15052         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15053         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15054         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15055         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15056         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15057         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15058         * config/sparc/linux.mh (XDEPFILES): Delete.
15059         * config/vax/vaxult.mh (XDEPFILES): Delete.
15060         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15061         * Makefile.in (DEPFILES): Remove XDEPFILES.
15062
15063 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15064
15065         * utils.c (internal_verror): Fix comments, default is yes not no.
15066         Update queries to match.  Default to quit and dump core.
15067
15068 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15069
15070         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15071         copyright.
15072         * defs.h, event-top.c, gdbcmd.h: Ditto.
15073         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15074         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15075         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15076         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15077         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15078         * mi/mi-main.c:Ditto.
15079
15080         * stack.c, symfile.c: Update copyright.
15081
15082 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15083
15084         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15085         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15086         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15087         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15088
15089 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15090
15091         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15092         * gdbserver/low-lynx.c (myattach): Likewise.
15093         * gdbserver/low-nbsd.c (myattach): Likewise.
15094         * gdbserver/low-sim.c (myattach): Likewise.
15095         * gdbserver/low-sparc.c (myattach): Likewise.
15096         * gdbserver/low-sun3.c (myattach): Likewise.
15097
15098         * gdbserver/low-linux.c (myattach): New function.
15099
15100         * gdbserver/server.c (attach_inferior): New function.
15101         (main): Handle "--attach".
15102
15103 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15104
15105         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15106         maintainer.
15107
15108 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15109
15110         * c-typeprint.c (is_type_conversion_operator): Add additional
15111         check for non-conversion operators.
15112
15113 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15114
15115         * linux-proc.c: Add "info proc" command, a la procfs.c.
15116         (read_mapping): New function, abstract and re-use code.
15117         (linux_find_memory_regions): Use new func read_mapping.
15118         (linux_info_proc_cmd): New function, implement "info proc".
15119         (_initialize_linux_proc): Add new command "info proc".
15120
15121 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15122
15123         * symfile.c (generic_load): Use bfd_map_over_sections method
15124         instead of manipulating bfd structure members directly.
15125         (add_section_size_callback): New function, bfd sections callback
15126         used by generic_load.
15127         (load_sections_callback): New function, bfd sections callback
15128         used by generic_load.
15129
15130 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15131
15132         [Based on work by Jim Blandy]
15133         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15134         (builtin_type_vec128): Export.
15135         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15136         types.
15137         (builtin_type_vec128): New builtin type for 128 bit vector
15138         registers.
15139         (build_gdbtypes): Initialize builtin_type_v16qi and
15140         builtin_type_v8hi. Create the vec128 register builtin type
15141         structure.
15142         (build_builtin_type_vec128): New function.
15143         (_initialize_gdbtypes): Register builtin_type_v16qi and
15144         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15145         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15146         AltiVec register to new builtin type.
15147
15148 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15149
15150         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15151         to make_cv_type.
15152
15153 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15154
15155         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15156         CLEAN_UP_REGISTER_VALUE.
15157         * regcache.c (supply_register): Update only call.
15158
15159 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15160
15161         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15162         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15163         a29k-*-vxworks* targets as obsolete.
15164
15165 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15166
15167         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15168         until we can resolve portability issues.
15169         * gregset.h: Remove references to fpxregs.
15170         * gcore.c (gcore_command): Initialize note_sec to NULL.
15171
15172 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15173
15174         * signals.c (target_signal_to_name): Rewrite.  Only use
15175         signals[].name when in bounds and non-NULL.
15176
15177 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15178
15179         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15180         * signals.c (target_signal_to_name): Verify that SIG is within the
15181         bounds of the signals array.
15182
15183 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15184
15185         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15186
15187 2002-01-13  Keith Seitz  <keiths@redhat.com>
15188
15189         * stack.c (print_frame_info_base): Print the frame's pc
15190         only if when print_frame_info_listing_hook is not defined.
15191
15192 2002-01-13  Keith Seitz  <keiths@redhat.com>
15193
15194         * varobj.c (varobj_set_value): Make sure that there were no
15195         errors evaluating the object before attempting to set its
15196         value.
15197         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15198         so this offset adjustment is no longer necessary.
15199         (create_child): Don't set the error flag if the child is
15200         a CPLUS_FAKE_CHILD.
15201         (value_of_child): If value_fetch_lazy fails, return NULL
15202         so that callers will be notified that an error occurred.
15203         (c_value_of_variable): Delay check of variable's validity
15204         until later. We actually want all structs and unions to have
15205         the value "{...}".
15206         Do not return "???" for variables which could not be evaluated.
15207         This error condition must be returned to the caller so that it
15208         can get the error condition from gdb.
15209         (cplus_name_of_child): Adjust index for vptr before figuring
15210         out the name of the child.
15211         (cplus_value_of_child): If a child's (real) parent is not valid,
15212         don't even bother trying to give a value for it. Just return
15213         an error. Change all instances in this function.
15214         (cplus_type_of_child): If our parent is one of the "fake"
15215         parents, we need to get at the type of the real parent, and
15216         derive the child's true type using this information.
15217
15218 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15219
15220         From 2002-01-09 John Marshall <johnm@falch.net>:
15221         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15222         sources.redhat.com, and tweak some related URLs which had
15223         suffered from linkrot.
15224
15225 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15226
15227         From Jeff law:
15228         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15229         structures passed in registers.
15230
15231 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15232
15233         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15234         white space which prevented compilation.  Reported by DSK
15235         <dsk@student.unsw.edu.au>.
15236
15237 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15238
15239         * symfile.c (build_section_addr_info_from_section_tab):
15240         Use bfd access method instead of manipulating bfd directly.
15241         (syms_from_objfile): Ditto.
15242         (simple_overlay_update_1): Ditto.
15243         (simple_overlay_update): Ditto.
15244         (generic_load): Ditto.
15245         (overlay_unmapped_address): FIXME comment, bfd access methods.
15246         (sections_overlap): FIXME comment, bfd access methods.
15247         (pc_in_mapped_range): FIXME comment, bfd access methods.
15248         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15249         (section_is_mapped): FIXME comment, bfd access methods.
15250         (section_is_overlay): FIXME comment, bfd access methods.
15251
15252         * symfile.c (generic_load): Whitespace and long line cleanups.
15253         Remove duplicate variable, change several local variables to
15254         more appropriate data types.
15255         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15256
15257 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15258
15259         From Peter Schauer:
15260         * language.c (longest_local_hex_string_custom): Use phex_nz to
15261         convert NUM to a hex string.
15262
15263 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15264
15265         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15266         the function.
15267         Update Copyright year.
15268
15269 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15270
15271         * language.c (longest_raw_hex_string): Delete unused function.
15272
15273 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15274
15275         * MAINTAINERS (write-after-approval): Add myself.
15276         * dwarf2read.c (read_tag_string_type): Handling of
15277         DW_AT_byte_size.
15278         (read_tag_string_type): FORTRAN fix to prevent propagation of
15279         first string size.
15280         (set_cu_language): Handling of DW_LANG_Fortran95
15281
15282 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15283
15284         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15285         GETPID(inferior_ptid).
15286         (store_inferior_registers): Likewise.
15287
15288 2002-01-10  Jason Merrill  <jason@redhat.com>
15289
15290         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15291         Fix DW_OP_minus.
15292
15293 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15294
15295         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15296         and bfd/elf32-sh-nbsd.c.
15297
15298 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15299
15300         * NEWS: Mention --pid and corefile/proc-id behavior change.
15301
15302         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15303         * gcore.c: Include cli/cli-decode.h instead of command.h.
15304
15305         * main.c (captured_main): Add new command line option "--pid".
15306         If the second command line argument (following the symbol-file)
15307         begins with a digit, try to attach to it before trying to open
15308         it as a corefile.
15309         (print_gdb_help): Document the "--pid" argument.
15310
15311 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15312
15313         * completer.c (command_completer): New function.
15314
15315         * completer.h <command_completer>: Add prototype.
15316
15317         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15318         completer for the "help" command.
15319
15320 2002-01-09  Jason Merrill  <jason@redhat.com>
15321
15322         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15323
15324 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15325
15326         * i386-linux-nat.c (fill_fpxregset): Make global.
15327         (store_fpxregset): Ditto.
15328
15329         * gregset.h (gdb_fpxregset_t): Define.
15330         (supply_fpxregset): Prototype.
15331         (fill_fpxregset): Prototype.
15332
15333         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15334
15335 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15336
15337         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15338         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15339         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15340
15341 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15342
15343         * MAINTAINERS: Update target maintainer rules so that any
15344         Maintainer can approve a tested patch for a maintenance-only
15345         target.
15346
15347 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15348
15349         * MAINTAINERS (write-after-approval): Add myself.
15350
15351         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15352         IN_SIGTRAMP.
15353
15354 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15355
15356         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15357         real name of the executable, rather than the /proc name.
15358
15359 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15360
15361         Implement a "generate-core-file" command in gdb, save target state.
15362         * gcore.c: New file.  Implement new command 'generate-core-file'.
15363         Save a corefile image of the current state of the inferior.
15364         * linux-proc.c: Add linux-specific code for saving corefiles.
15365         * target.h (struct target_ops): Add new target vectors for saving
15366         corefiles; to_find_memory_regions and to_make_corefile_notes.
15367         (target_find_memory_regions): New macro.
15368         (target_make_corefile_notes): New macro.
15369         * target.c (update_current_target): Inherit new target methods.
15370         (dummy_find_memory_regions): New place-holder method.
15371         (dummy_make_corefile_notes): New place-holder method.
15372         (init_dummy_target): Initialize new dummy target vectors.
15373         * exec.c (exec_set_find_memory_regions): New function.
15374         Allow the exec_ops vector for memory regions to be taken over.
15375         (exec_make_note_section): New function, target vector method.
15376         * defs.h (exec_set_find_memory_regions): Export prototype.
15377         * procfs.c (proc_find_memory_regions): New function, corefile method.
15378         (procfs_make_note_section): New function, corefile method.
15379         (init_procfs_ops): Set new target vector pointers.
15380         (find_memory_regions_callback): New function.
15381         (procfs_do_thread_registers): New function.
15382         (procfs_corefile_thread_callback): New function.
15383         * sol-thread.c (sol_find_memory_regions): New function.
15384         (sol_make_note_section): New function.
15385         (init_sol_thread_ops): Initialize new target vectors.
15386         * inftarg.c (inftarg_set_find_memory_regions): New function.
15387         Allow to_find_memory_regions vector to be taken over.
15388         (inftarg_set_make_corefile_notes): New function.
15389         Allow to_make_corefile_notes vector to be taken over.
15390         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15391         interface layer if not target_has_execution (may be a corefile).
15392         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15393         * config/sparc/sun4sol2.mh: Ditto.
15394         * config/alpha/alpha-linux.mh: Ditto.
15395         * config/arm/linux.mh: Ditto.
15396         * config/i386/x86-64linux.mh: Ditto.
15397         * config/ia64/linux.mh: Ditto.
15398         * config/m68k/linux.mh: Ditto.
15399         * config/mips/linux.mh: Ditto.
15400         * config/powerpc/linux.mh: Ditto.
15401         * config/sparc/linux.mh: Ditto.
15402
15403 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15404
15405         * arm-linux-nat.c: Remove references to regcache.c internal data
15406         (registers[] and register_valid[]).
15407
15408 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15409
15410         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15411         so that attaching to a pid will automatically read the process's
15412         symbol file and shlibs.
15413         * Makefile.in: Add rule for linux-proc.o.
15414         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15415         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15416         * config/arm/linux.mh: Ditto.
15417         * config/i386/linux.mh: Ditto.
15418         * config/i386/x86-64linux.mh: Ditto.
15419         * config/ia64/linux.mh: Ditto.
15420         * config/m68k/linux.mh: Ditto.
15421         * config/mips/linux.mh: Ditto.
15422         * config/powerpc/linux.mh: Ditto.
15423         * config/sparc/linux.mh: Ditto.
15424
15425 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15426
15427         * win32-nat.c: Add i386-tdep.h dependency.
15428
15429 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15430
15431         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15432         instead of bfd_get_arch_size.  Don't bail out just because
15433         there's no exec_bfd.
15434
15435         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15436         * p-valprint.c (pascal_object_print_value): Ditto.
15437         * somread.c (som_symtab_read): Ditto.
15438         * symfile.c (simple_free_overlay_region_table): Ditto.
15439         * valops.c (value_assign): Ditto.
15440
15441         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15442         use tilde_expand and strerror for opening save-tracepoints file.
15443
15444         * thread-db.c (thread_db_new_objfile): Indendation fix.
15445
15446         * infptrace.c (GDB_MAX_ALLOCA): New define.
15447         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15448         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15449         can be overridden with whatever value is appropriate to the host).
15450         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15451         alloca to allocate potentially large buffer.
15452         * rs6000-nat.c (child_xfer_memory): Ditto.
15453         * symm-nat.c (child_xfer_memory): Ditto.
15454         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15455
15456 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15457
15458         From Nick Clifton  <nickc@redhat.com>
15459         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15460
15461 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15462
15463         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15464         Don't use exec_bfd if it's NULL.
15465
15466 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15467
15468         * valops.c (value_arg_coerce): Fix formatting.
15469
15470 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15471
15472         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15473         * gnu-nat.c: Ditto.
15474
15475 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15476
15477         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15478         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15479         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15480         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15481         z8k-coff have not been multi-arched.  Update z8k-coff build
15482         status.
15483
15484 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15485
15486         * MAINTAINERS: Mark a29k target as obsolete.
15487         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15488         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15489         comments.
15490         * NEWS: Note that a29k targets are obsolete.
15491         * a29k-tdep.c: Mark as obsolete.
15492         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15493         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15494         a29k-*-vxworks* targets as obsolete.
15495         * remote-adapt.c: Obsolete.
15496         * remote-eb.c: Obsolete.
15497         * remote-mm.c: Obsolete.
15498         * remote-udi.c: Obsolete.
15499         * config/a29k/a29k-udi.mt: Obsolete.
15500         * config/a29k/a29k.mt: Obsolete.
15501         * config/a29k/tm-a29k.h: Obsolete.
15502         * config/a29k/tm-vx29k.h: Obsolete.
15503         * config/a29k/vx29k.mt: Obsolete.
15504
15505 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15506
15507         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15508         with BFD_ENDIAN_BIG.
15509
15510 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15511
15512         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15513         * configure, config.in: Re-generate.
15514         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15515         * defs.h: Do not include <endian.h>.
15516
15517 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15518
15519         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15520         * config.in: Regenerate.
15521         * configure.in: Update copyright years.
15522         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15523         * configure: Regenerate.
15524         * i386bsd-nat.c: Update copyright years.
15525         (fill_gregset): Use regcache_collect.
15526         (fetch_inferior_registers): Only fetch integer registers
15527         if requested to do so.  Add support for XMM registers
15528         using PT_GETXMMREGS.
15529         (store_inferior_registers): Only store integer registers
15530         if requested to do so.  Add support for XMM registers
15531         using PT_SETXMMREGS.
15532         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15533         (store_inferior_registers): Remove.
15534         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15535         (fetch_elfcore_registers): New function.
15536         (i386nbsd_elfcore_fns): New.
15537         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15538         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15539         i386bsd-nat.o.
15540         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15541         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15542         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15543         * config/i386/tm-nbsd.h: Update copyright years.
15544         (HAVE_SSE_REGS): Define.
15545         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15546         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15547         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15548         (SIGCONTEXT_PC_OFFSET): Remove.
15549         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15550
15551 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15552
15553         * configure.tgt: Remove powerpc-*-macos* target.
15554         * config/m68k/xm-mpw.h: Delete file.
15555         * config/xm-mpw.h: Delete file.
15556         * ser-mac.c: Delete file.
15557         * mpw-make.sed: Delete file.
15558         * mpw-config.in: Delete file.
15559         * mac-xdep.c: Delete file.
15560         * mac-gdb.r: Delete file.
15561         * mac-defs.h: Delete file.
15562         * mac-nat.c: Delete file.
15563         * config/powerpc/macos.mh: Delete file.
15564         * config/powerpc/macos.mt: Delete file.
15565         * config/powerpc/nm-macos.h: Delete file.
15566         * config/powerpc/tm-macos.h: Delete file.
15567         * source.c (openp, open_source_file): Remove obsolete code.
15568         * top.c (gdb_readline): Ditto.
15569         * utils.c (query): Ditto.
15570         * event-top.c (display_gdb_prompt): Ditto.
15571         * Makefile.in (ser-mac.o): Delete obsolete target.
15572         * NEWS: Update.
15573
15574 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15575
15576         * defs.h (BIG_ENDIAN): Delete macro definition.
15577         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15578         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15579         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15580         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15581         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15582         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15583         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15584         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15585         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15586         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15587         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15588         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15589         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15590         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15591         * gdbarch.c: Re-generate.
15592
15593 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15594
15595         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15596         for core files.
15597
15598 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15599
15600         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15601
15602 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15603
15604         * value.h (value_ptr): Delete typedef.
15605
15606 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15607
15608         * i386nbsd-nat.c: Update copyright years.
15609         Include i386-tdep.h.
15610
15611 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15612
15613         * stabsread.c: Update copyright years.
15614
15615         From Debashis Mahata <debashis.mahata@wipro.com>:
15616         (read_struct_fields): Deal with Sun C compiler erroneous stab
15617         output for structs and unions.
15618         Fix PR gdb/269.
15619
15620 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15621
15622         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15623         prototype.
15624
15625 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15626
15627         * cp-abi.c: Fix whitespace.
15628         (baseclass_offset): New wrapper function.
15629         * cp-abi.h (baseclass_offset): Add prototype.
15630         (struct cp_abi_ops): Add baseclass_offset pointer.
15631
15632         * valops.c (vb_match): Move to...
15633         * gnu-v2-abi.c (vb_match): here.
15634         * valops.c (baseclass_offset): Move to...
15635         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15636
15637         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15638
15639         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15640         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15641         * hpacc-abi.c (init_hpacc_ops): Likewise.
15642
15643 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15644
15645         * valops.c (find_overload_match): Accept obj as a
15646         reference parameter.  Update it before returning.
15647         * value.h (find_overload_match): Update prototype.
15648         * eval.c (evaluate_subexp_standard): Pass object to
15649         find_overload_match by reference.
15650
15651 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15652
15653         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15654         register attribute from value declarations.
15655         * valops.c: Ditto.
15656         * value.h: Ditto.
15657         * scm-lang.c (scm_lookup_name): Ditto.
15658
15659 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15660
15661         Abstract the functionality of iterating over mapped memory
15662         regions into a general purpose iterator function.
15663         * procfs.c (iterate_over_mappings): New function, general purpose
15664         iterator for memory sections.
15665         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15666         (solib_mappings_callback): New function, callback for above.
15667         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15668         (info_mappings_callback): New function, callback for above.
15669
15670         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15671
15672 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15673
15674         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15675         * i386-tdep.c: Include "elf-bfd.h".
15676         (process_note_abi_tag_sections): New function.
15677         (i386_gdbarch_init): Add code to recognize various OS/ABI
15678         combinations.
15679
15680         * maint.c (_initialize_maint_cmds): Add missing \ in
15681         string-literal.
15682
15683 For older changes see ChangeLog-2001
15684 \f
15685 Local Variables:
15686 mode: change-log
15687 left-margin: 8
15688 fill-column: 74
15689 version-control: never
15690 End: