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         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4         get_frame_base.
5
6 2003-01-08  David Carlton  <carlton@math.stanford.edu>
7
8         * linespec.c (decode_line_1): Move code into decode_variable.
9         (decode_variable): New function.
10
11 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12
13         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14
15 2003-01-08  Andrew Cagney  <cagney@redhat.com>
16
17         * cris-tdep.c (cris_frame_init_saved_regs): Use
18         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
19         saved_regs buffer.
20         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
21         (sh64_nofp_frame_init_saved_regs): Ditto.
22         (sh_fp_frame_init_saved_regs): Ditto.
23         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
24         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
25         * mcore-tdep.c (analyze_dummy_frame): Ditto.
26         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
27
28 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
29
30         * minsyms.c (lookup_minimal_symbol): Update comment.
31         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
32         (lookup_minimal_symbol_solib_trampoline): Likewise.
33
34 2003-01-08  Andrew Cagney  <cagney@redhat.com>
35
36         * d10v-tdep.c (d10v_init_extra_frame_info): Use
37         frame_relative_level.
38
39         * alpha-tdep.c: Use get_frame_extra_info.
40         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
41         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
42         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
43         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
44
45         * alpha-tdep.c: Use get_next_frame.
46         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
47         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
48         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
49         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
50         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
51         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
52         * xstormy16-tdep.c: Ditto.
53         
54 2003-01-07  Andrew Cagney  <cagney@redhat.com>
55
56         * alpha-tdep.c: Use get_frame_base.
57         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
58         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
59         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
60         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
61         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
62         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
63         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
64         * config/sparc/tm-sparc.h: Ditto.
65         
66 2003-01-07  Andrew Cagney  <cagney@redhat.com>
67
68         * frame.c (deprecated_get_frame_context): New function.
69         (deprecated_set_frame_context): New function.
70         * frame.h (deprecated_get_frame_context): Declare.
71         (deprecated_set_frame_context): Declare.
72         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
73         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
74         
75 2003-01-07  Andrew Cagney  <cagney@redhat.com>
76
77         * frame.c (deprecated_set_frame_next_hack): New function.
78         (deprecated_set_frame_prev_hack): New function.
79         * frame.h (deprecated_set_frame_next_hack): Declare.
80         (deprecated_set_frame_prev_hack): Declare.
81         * mcore-tdep.c (analyze_dummy_frame): Use
82         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
83         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
84
85 2003-01-07  David Carlton  <carlton@math.stanford.edu>
86
87         * linespec.c (decode_line_1): Move code into decode_dollar.
88         (decode_dollar): New function.
89
90 2003-01-07  Andrew Cagney  <cagney@redhat.com>
91
92         * arm-tdep.c (arm_init_extra_frame_info): Use
93         deprecated_update_frame_base_hack.
94         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
95         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
96         (fix_frame_pointer): Ditto.
97         (mn10300_analyze_prologue): Ditto.
98
99 2003-01-07  Andrew Cagney  <cagney@redhat.com>
100
101         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
102         extra_info using frame_extra_info_zalloc.
103         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
104         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
105         (sh64_init_extra_frame_info): Ditto.
106         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
107         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
108         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
109         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
110         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
111         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
112         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
113         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
114         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
115         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
116         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
117         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
118
119         * mn10300-tdep.c (analyze_dummy_frame): Use
120         deprecated_set_frame_extra_info_hack.
121         * mcore-tdep.c (analyze_dummy_frame): Ditto.
122
123 2003-01-07  J. Brobecker  <brobecker@gnat.com>
124
125         * mdebugread.c (parse_symbol): Skip stProc entries which storage
126         class is not scText. These do not define "real" procedures.
127         (parse_partial_symbols): Likewise.
128
129 2003-01-06  Michael Snyder  <msnyder@redhat.com>
130
131         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
132
133 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
134
135         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
136         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
137         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
138         deprecated_frame_xmalloc_with_cleanup.
139         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
140         deprecated_frame_xmalloc.
141         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
142         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
143
144 2003-01-06  Andrew Cagney  <cagney@redhat.com>
145
146         * x86-64-linux-tdep.c: Include "osabi.h".
147         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
148
149         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
150
151 2003-01-06  Andrew Cagney  <cagney@redhat.com>
152
153         * MAINTAINERS (Target Instruction Set Architectures): Update
154         arm-elf.  Can be built with -Werror, has been multiarched.
155
156         * value.h (unpack_long): Make buffer parameter constant.
157         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
158         * scm-lang.h (scm_parse): Ditto.
159         * defs.h (extract_typed_address, extract_address): Ditto.
160         (extract_long_unsigned_integer): Ditto.
161         * inferior.h (unsigned_pointer_to_address): Ditto.
162         (signed_pointer_to_address): Ditto.
163         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
164         * gdbarch.h, gdbarch.c: Regenerate.
165         * findvar.c (extract_long_unsigned_integer): Update.
166         (extract_address): Update.
167         (extract_typed_address): Update.
168         (unsigned_pointer_to_address): Update.
169         * values.c (unpack_long): Update.
170         (unpack_double): Update.
171         (unpack_pointer): Update.
172         (unpack_field_as_long): Update.
173         * d10v-tdep.c (d10v_pointer_to_address): Update.
174         * avr-tdep.c (avr_pointer_to_address): Update.
175         * scm-lang.c (scm_unpack): Update.
176         * findvar.c (signed_pointer_to_address): Update.
177
178 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
179
180         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
181         since it is in i386-tdep.c.
182
183 2003-01-06  J. Brobecker  <brobecker@gnat.com>
184
185         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
186         failure introduced in the previous change.
187
188 2003-01-05  Michael Chastain  <mec@shout.net>
189
190         * README: Remove references to deleted remote-*.c files:
191         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
192         remote-nrom.c, remote-os9k.c, remote-udi.c.
193
194 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
195
196         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
197         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
198         i386_get_longjmp_target.
199
200 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
201
202         * arm-tdep.c (prologue_cache): Change to a pointer.
203         (_initialize_arm_tdep): Allocate prologue_cache.
204         (check_prologue_cache): Update.
205         (save_prologue_cache): Update.
206         (arm_gdbarch_init): Update.
207
208 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
209
210         * stabsread.c (update_method_name_from_physname): Call complaint()
211         instead of error.
212
213 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
214
215         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
216         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
217         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
218
219         * blockframe.c: Include "gdbcmd.h" and "command.h".
220         (backtrace_below_main): New variable.
221         (file_frame_chain_valid, func_frame_chain_valid)
222         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
223         (generic_func_frame_chain_valid): Remove functions.
224         (frame_chain_valid, do_flush_frames_sfunc): New functions.
225         (_initialize_blockframe): New function.
226         * Makefile.in (blockframe.o): Update dependencies.
227         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
228         comment.  Call frame_chain_valid ().
229         * frame.h: Remove old prototypes.  Add prototype for
230         frame_chain_valid and update comments to match.
231         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
232         Remove old comment.
233         * gdbarch.h: Regenerated.
234         * gdbarch.c: Regenerated.
235
236         * alpha-tdep.c (alpha_gdbarch_init): Don't call
237         set_gdbarch_frame_chain_valid.
238         * avr-tdep.c (avr_gdbarch_init): Likewise.
239         * cris-tdep.c (cris_gdbarch_init): Likewise.
240         * frv-tdep.c (frv_gdbarch_init): Likewise.
241         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
242         * i386-tdep.c (i386_svr4_init_abi): Likewise.
243         (i386_nw_init_abi): Likewise.
244         (i386_gdbarch_init): Likewise.
245         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
246         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
247         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
248         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
249         * mips-tdep.c (mips_gdbarch_init): Likewise.
250         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
251         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
252         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
253         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
254         * s390-tdep.c (s390_gdbarch_init): Likewise.
255         * sh-tdep.c (sh_gdbarch_init): Likewise.
256         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
257         * v850-tdep.c (v850_gdbarch_init): Likewise.
258         * vax-tdep.c (vax_gdbarch_init): Likewise.
259         * x86-64-tdep.c (x86_64_init_abi): Likewise.
260
261         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
262         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
263         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
264         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
265         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
266         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
267         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
268         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
269
270 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
271
272         * Makefile.in (acconfig_h): Remove incorrect macro.
273         (config_h): Define.
274         (osabi.o): Update dependencies.
275         * configure.tgt: Set gdb_osabi based on target triplet.
276         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
277         * configure: Regenerated.
278         * config.in: Regenerated.
279         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
280         (GDB_OSABI_DEFAULT): Define if not already defined.
281         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
282         (set_osabi_string): New variables.
283         (gdbarch_register_osabi): Add new OS ABI to
284         gdb_osabi_available_names.
285         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
286         (set_osabi, show_osabi): New functions.
287         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
288
289 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
290
291         * arch-utils.c (gdbarch_info_init): Set osabi to
292         GDB_OSABI_UNINITIALIZED.
293         * gdbarch.sh: Add osabi to struct gdbarch and to struct
294         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
295         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
296         * gdbarch.c: Regenerated.
297         * gdbarch.h: Regenerated.
298         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
299         there's no BFD.
300         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
301         * osabi.h (enum gdb_osabi): Move to defs.h.
302         (gdbarch_init_osabi): Update prototype.
303         * defs.h (enum gdb_osabi): Moved here.
304         * Makefile.in: Update dependencies.
305
306         * alpha-tdep.h: Don't include "osabi.h".
307         (struct gdbarch_tdep): Remove osabi member.
308         * alpha-tdep.c: Include "osabi.h".
309         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
310         iterate over arches.  Update call to gdbarch_init_osabi.
311         (alpha_dump_tdep): Don't dump osabi.
312         * alpha-linux-tdep.c: Include "osabi.h".
313         * alpha-osf1-tdep.c: Include "osabi.h".
314         * alphafbsd-tdep.c: Include "osabi.h".
315         * alphanbsd-tdep.c: Include "osabi.h".
316
317         * arm-tdep.h: Don't include "osabi.h".
318         (struct gdbarch_tdep): Remove osabi member.
319         * arm-tdep.c: Include "osabi.h".
320         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
321         iterate over arches.  Update call to gdbarch_init_osabi.
322         (arm_dump_tdep): Don't dump osabi.
323         * arm-linux-tdep.c: Include "osabi.h".
324         * armnbsd-tdep.c: Include "osabi.h".
325
326         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
327         Update call to gdbarch_init_osabi.
328
329         * i386-tdep.h: Don't include "osabi.h".
330         (struct gdbarch_tdep): Remove osabi member.
331         * i386-tdep.c: Include "osabi.h".
332         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
333         iterate over arches.  Update call to gdbarch_init_osabi.
334         (i386_dump_tdep): Don't dump osabi.
335         * i386-linux-tdep.c: Include "osabi.h".
336         * i386-sol2-tdep.c: Include "osabi.h".
337         * i386bsd-tdep.c: Include "osabi.h".
338         * i386gnu-tdep.c: Include "osabi.h".
339         * i386ly-tdep.c: Include "osabi.h".
340         * i386nbsd-tdep.c: Include "osabi.h".
341         * i386obsd-tdep.c: Include "osabi.h".
342
343         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
344         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
345         check osabi when iterating over arches.  Update call to
346         gdbarch_init_osabi.
347         (mips_dump_tdep): Don't dump osabi.
348
349         * ns32k-tdep.h: Don't include "osabi.h".
350         (struct gdbarch_tdep): Remove.
351         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
352         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
353         allocate tdep.  Update call to gdbarch_init_osabi.
354         (ns32k_dump_tdep): Remove.
355         (_initialize_ns32k_tdep): Update call to gdbarch_register.
356         * ns32knbsd-tdep.c: Include "osabi.h".
357
358         * ppc-tdep.h: Don't include "osabi.h".
359         (struct gdbarch_tdep): Remove osabi member.
360         * rs6000-tdep.c: Include "osabi.h".
361         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
362         osabi when iterating over arches.  Update call to
363         gdbarch_init_osabi.
364         (rs6000_dump_tdep): Don't dump osabi.
365         * ppc-linux-tdep.c: Include "osabi.h".
366         * ppcnbsd-tdep.c: Include "osabi.h".
367
368         * sh-tdep.h: Don't include "osabi.h".
369         (struct gdbarch_tdep): Remove osabi member.
370         * sh-tdep.c: Include "osabi.h".
371         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
372         iterate over arches.  Update call to gdbarch_init_osabi.
373         (sh_dump_tdep): Don't dump osabi.
374         * shnbsd-tdep.c: Include "osabi.h".
375
376         * sparc-tdep.c: Include "osabi.h".
377         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
378         iterate over arches.  Update call to gdbarch_init_osabi.
379         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
380         tdep structure.
381
382         * vax-tdep.h: Don't include "osabi.h".
383         (struct gdbarch_tdep): Remove.
384         * vax-tdep.c: Include "osabi.h".
385         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
386         iterate over arches.  Don't allocate tdep.  Update call
387         to gdbarch_init_osabi.
388         (vax_dump_tdep): Remove.
389         (_initialize_vax_tdep): Update call to gdbarch_register.
390
391 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
392
393         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
394         entirely.
395         (breakpoint_re_set_one): Don't fetch the value for a disabled
396         watchpoint.
397
398 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
399
400         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
401         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
402         (COERCE_FLOAT_TO_DOUBLE): Remove.
403         * gdbarch.c: Regenerate.
404         * gdbarch.h: Regenerate.
405         * Makefile.in: Remove value_h from gdbarch_h.
406         * valops.c (coerce_float_to_double): New variable.
407         (default_coerce_float_to_double): Remove.
408         (standard_coerce_float_to_double): Remove.
409         (value_arg_coerce): Use coerce_float_to_double.
410         (_initialize_valops): Add "set coerce-float-to-double".
411         * value.h (default_coerce_float_to_double): Remove prototype.
412         (standard_coerce_float_to_double): Remove prototype.
413
414         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
415         prototyped.
416         * mdebugread.c (parse_symbol): Likewise.
417         * stabsread.c (define_symbol): Mark all functions as prototyped.
418
419         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
420         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
421         set_gdbarch_coerce_float_to_double.
422         * arm-tdep.c (arm_gdbarch_init): Likewise.
423         * frv-tdep.c (frv_gdbarch_init): Likewise.
424         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
425         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
426         * mips-tdep.c (mips_gdbarch_init): Likewise.
427         (mips_coerce_float_to_double): Remove.
428         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
429         (rs6000_coerce_float_to_double): Remove.
430         * s390-tdep.c (s390_gdbarch_init): Likewise.
431         * sh-tdep.c (sh_gdbarch_init): Likewise.
432         (sh_coerce_float_to_double): Remove.
433         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
434         (sparc_coerce_float_to_double): Remove.
435         * v850-tdep.c (v850_gdbarch_init): Likewise.
436         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
437         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
438         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
439         (hppa_coerce_float_to_double): Remove prototype.
440         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
441
442 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
443
444         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
445
446 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
447
448         Suggested by Stewart Brown <sb24@avaya.com>:
449         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
450         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
451         (c_type_print_varspec_suffix): Likewise.
452
453 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
454
455         * configure.in: Don't set and AC_SUBST SUBDIRS.
456         * configure: Regenerated.
457
458         * configure.in: Remove code dealing with shared libraries.
459         * Makefile.in: Remove HLDFLAGS and HLDENV.
460         * configure: Regenerated.
461
462 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
463
464         * frame.c (deprecated_frame_xmalloc): New function.
465         (deprecated_set_frame_saved_regs_hack): New function.
466         (deprecated_set_frame_extra_info_hack): New function.
467         * frame.h (deprecated_frame_xmalloc): Declare.
468         (deprecated_set_frame_saved_regs_hack): Declare.
469         (deprecated_set_frame_extra_info_hack): Declare.
470
471 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
472
473         * configure.in: Move code that provides the --enable-gdbtk option
474         right after the code that handles the --enable-tui option, and
475         polish it somewhat.
476         * configure: Regenerated.
477
478         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
479         AC_CHECK_FUNCS and remove the old check for pread64.
480         * acinclude.m4 (AC_GNU_SOURCE): New macro.
481         * acconfig.h (_GNU_SOURCE): Add.
482         (HAVE_PREAD64): Remove.
483         * configure, aclocal.m4, config.in: Regenerated.
484
485 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
486
487         * alpha-tdep.c: Use get_frame_saved_regs.
488         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
489         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
490         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
491         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
492         * vax-tdep.c, xstormy16-tdep.c: Ditto.
493
494 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
495
496         * configure.in: Remove all use of the SUBDIRS variable; add
497         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
498         code providing the --enable-multi-ice option, and move it right in
499         front of the code that checks whether gdbserver is supported.
500         Polish that too.
501         * configure: Regenerated.
502         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
503         @SUBDIRS@.
504
505 2003-01-03  Andrew Cagney  <cagney@redhat.com>
506
507         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
508         * avr-tdep.c, cris-tdep.c: Ditto.
509         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
510         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
511         
512 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
513
514         * configure.in: Remove --enable-netrom option.
515         * configure: Regenerated.
516
517 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
518
519         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
520         declaration for `struct re_pattern_buffer' instead.
521         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
522
523 2003-01-03  J. Brobecker  <brobecker@gnat.com>
524
525         * mdebugread.c (parse_symbol): Count until the stEnd matching
526         the structure name.
527
528 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
529
530         * configure.in: Remove --with-cpu option.
531         subscripts.  Remove evil changequotes here.
532         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
533         * config.in, configure: Regenerated.
534         
535         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
536         * configure.in: Cleanup section that sources GDB and BFD configure
537         subscripts.  Remove evil changequotes here.
538         * config.in, configure: Regenerated.
539
540 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
541
542         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
543         frame accessor methods.
544         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
545         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
546         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
547         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
548         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
549         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
550         * z8k-tdep.c: Ditto.
551         
552 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
553
554         * configure.in: Remove UI_OUT configuration code.
555         * ada-lang.c: Update assuming UI_OUT is always true.
556         * Makefile.in (UIOUT_CFLAGS): Remove.
557         * configure: Regenerated.
558         * TODO: Remove blurb about elimination of -DUI_OUT.
559
560         * configure.in: Move code that provides the --enable-gdbcli,
561         --enable-gdbmi options right before the code that handles the
562         --enable-tui option.  Polish a bit.
563         * configure: Regenerated.
564
565         * configure.in: Rewrite check for GNU regex and the
566         --without-included regex option, and move it into the "Checks for
567         library functions" section.  This makes us use the system regex
568         again by default on systems with version 2 of the GNU C library.
569         This was apparently broken.
570         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
571         * acconfig.h (USE_INCLUDED_REGEX): Remove.
572         * config.in, configure: Regenerated.
573
574         * configure.in: Move code that provides the --enable-tui option
575         before the "Checks for libraries" section.  Polish the code
576         somewhat and set need_curses to yes if we build the TUI.  Rewrite
577         code that looks for a library providing termcap functionality to
578         match more closely what's done in the Readline library, and move
579         it into to the "Checks for libraries" section.
580         * configure: Regenerated.
581         * Makefile.in (TERMCAP): Remove variable.
582         * config/i386/go32.mh (TERMCAP): Remove variable.
583
584 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
585
586         * MAINTAINERS: Mention gdb_mbuild.sh.
587         * gdb_mbuild.sh: Rewrite.
588
589 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
590
591         * configure.in: Fix typo in last change.
592         * config.in, configure: Regenerated.
593
594 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
595
596         * valarith.c (value_binop): Delete obsolete code and comments.
597         * configure.host: Ditto.
598         * buildsym.h (make_blockvector): Ditto.
599         * buildsym.c (make_blockvector): Ditto.
600         * defs.h (enum language): Ditto.
601         (chill_demangle): Ditto.
602         * elfread.c (elf_symtab_read): Ditto.
603         * dwarfread.c (CHILL_PRODUCER): Ditto.
604         (set_cu_language): Ditto.
605         (handle_producer): Ditto.
606         * expprint.c (print_subexp): Ditto.
607         * gdbtypes.c (chill_varying_type): Ditto.
608         * gdbtypes.h (builtin_type_chill_bool): Ditto.
609         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
610         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
611         (chill_varying_type): Ditto.
612         * language.h (_LANG_chill): Ditto.
613         * language.c (binop_result_type, integral_type): Ditto.
614         (character_type, string_type, structured_type): Ditto.
615         (lang_bool_type, binop_type_check): Ditto.
616         * stabsread.h (os9k_stabs): Ditto.
617         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
618         (define_symbol, read_type, read_struct_fields): Ditto.
619         (read_array_type, read_enum_type, read_huge_number): Ditto.
620         (read_range_type, start_stabs): Ditto.
621         * symfile.c (init_filename_language_table): Ditto.
622         (add_psymbol_with_dem_name_to_list): Ditto.
623         * symtab.c (symbol_init_language_specific): Ditto.
624         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
625         * symtab.h (struct general_symbol_info): Ditto.
626         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
627         * typeprint.c (typedef_print): Ditto.
628         * utils.c (fprintf_symbol_filtered): Ditto.
629         * valops.c (value_cast, search_struct_field, value_slice): Delete
630         obsolete code.
631         (varying_to_slice): Delete function.
632         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
633         (varying_to_slice): Delete declaration.
634         * MAINTAINERS: Update.
635
636 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
637
638         * configure.in: Reorganize "Checks for library functions section"
639         a bit.  Remove check for `btowc' and `isascii' functions.
640         * configure: Regenerated.
641
642         * acconfig.h (_MSE_INT_H): Remove.
643         * configure.in: Create "Checks for header files" section, and move
644         appropriate tests there.  Don't check for objlist.h, wchar.h,
645         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
646         misdetection fix.  Also add "Checks for types", "Checks for
647         compiler characteristics" and "Checks for library functions"
648         sections.
649         * config.in, configure: Regenerated.
650
651         * configure.in: Create "Checks for programs" section, and move
652         appropriate tests there.
653
654 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
655
656         * configure.in: Create "Checks for libraries" section, and move
657         appropriate tests there.  Cleanup check for wctype in libw.  Use
658         AC_SEARCH_LIBS to see whether we need libsocket.
659         * configure: Regenerated.
660
661 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
662
663         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
664         * config.in, configure: Regenerated.
665
666 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
667
668         * gdb_dirent.h: Cleanup and update code to match the example in
669         the Autoconf manual.
670         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
671         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
672         * configure: Regenerated.
673
674 2002-12-30  Adam Fedor  <fedor@gnu.org>
675
676         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
677         (yylex): Initialize c to avoid uninitialized warning.
678
679 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
680
681         * doc/fdl.texi: Revert the last change.
682
683 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
684
685         * tracepoint.c (ISATTY): Removed.
686
687 2002-12-26  J. Brobecker  <brobecker@gnat.com>
688
689         Continuing work to convert the hppa targets to multiarch partil.
690
691         * hppa-tdep.c: Add some missing forward declarations.
692         (frameless_function_invocation): Prefix the function name
693         by "hppa_" to avoid polluting the namespace.  Update all calls
694         to use the new function name.
695         (saved_pc_after_call): Ditto.
696         (init_extra_frame_info): Ditto.
697         (frame_chain): Ditto.
698         (push_dummy_frame): Ditto.
699         (target_read_pc): Ditto.
700         (target_write_pc): Ditto.
701         (in_solib_call_trampoline): Ditto.
702         (in_solib_return_trampoline): Ditto.
703         (skip_trampoline_code): Ditto.
704         (hppa_read_fp): New function, renamed from target_read_fp.
705         (hppa_target_read_fp): New function, using hppa_read_fp.
706         This function conforms to the function profile for the
707         READ_FP gdbarch method.
708         (hppa_extract_struct_value_address): New function, extracted
709         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
710         macro.
711         (hppa_frame_num_args): New function.
712         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
713
714         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
715         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
716         for the switch to multiarch partial.
717         Update some of the macros definitions to match some changes
718         described above in the name of the function they are calling.
719         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
720         not be straightforward to convert. Do now wrap it inside
721         "#if !... #endif" to remember that this macro has still not
722         been taken care of.
723         (FIX_CALL_DUMMY): Likewise.
724
725 2002-12-26  J. Brobecker  <brobecker@gnat.com>
726
727         Continuing work to convert the hppa targets to multiarch partial.
728
729         * hppa-tdep.c (hppa_register_raw_size): New function replacing
730         the body of macro REGISTER_RAW_SIZE.
731         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
732         config/pa/tm-hppah.h. These functions will be used to initialize
733         the gdbarch structure.
734         (hppa_hpux_pc_in_sigtramp): New function.
735         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
736         (hppa_hpux_frame_base_before_sigtramp): New function.
737         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
738         Add gdbcore.h #include.
739         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
740         of this gdbarch-eligible macro to a call to the new associated
741         function.
742         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
743         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
744         into a call to the new associated function.
745         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
746         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
747         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
748
749 2002-12-24  David Carlton  <carlton@math.stanford.edu>
750
751         * config/sparc/tm-sparc.h: Delete duplicate definition of
752         DEPRECATED_PC_IN_CALL_DUMMY.
753
754 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
755
756         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
757         $(gdb_assert_h).
758         * configure.tgt: Recognize mips64*-*-linux*.
759         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
760         (supply_32_bit_reg): New function.
761         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
762         (fill_gregset): Use regcache_collect() instead of
763         deprecated_registers[].
764         (register_addr): Change name to mips_linux_register_addr().
765         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
766         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
767         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
768         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
769         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
770         (MIPS64_LINUX_JB_PC): New defines.
771         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
772         (mips64_elf_fpregset_t): New typedefs.
773         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
774         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
775         (mips64_linux_register_addr, set_mips_linux_register_addr)
776         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
777         (init_register_addr_data)
778         New functions.
779         (fetch_core_registers): Add support for core file formats with 64-bit
780         registers.
781         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
782         (register_addr_data): New static global variable.
783         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
784         gdbarch_register_osabi() for each MIPS machine.
785         * config/mips/linux64.mt: New file.
786         * config/mips/tm-linux64.h: New file.
787
788 2002-12-23  Adam Fedor  <fedor@gnu.org>
789
790         * maint.c (maintenance_demangle): Add switch to demangle
791         ObjC language symbols as well.
792
793 2002-12-23  Adam Fedor  <fedor@gnu.org>
794
795         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
796         last argument from complaint function call.
797
798 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
799
800         * exec.c (print_section_info): Add FIXME comments regarding format
801         string choices.
802
803 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
804
805         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
806         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
807
808 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
809
810         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
811
812 2002-12-23  David Carlton  <carlton@math.stanford.edu>
813
814         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
815         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
816         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
817         information associated to a minsym, not lookup_symbol.
818
819 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
820
821         * x86-64-tdep.h (x86_64_init_abi): New prototype.
822         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
823         (x86_64_init_abi): Make non-static.  Set number of pseudo
824         registers to 0.
825         (x86_64_gdbarch_init): Remove function.
826         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
827         Remove code dealing with dissambly.
828         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
829         (_initialize_x86_64_linux_tdep): New function.
830         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
831         i386-tdep.o.
832
833 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
834
835         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
836         (struct gdb_osabi_handler): Remove member `arch'.  Add member
837         `arch_info'.
838         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
839         construct a `struct bfd_arch_info' and store it in the `struct
840         gdb_osabi_handler' that is created.
841         (gdbarch_init_osabi): Check for compatibility based on machine
842         type and architecture.
843         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
844         comment.
845         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
846         second argument in call to gdbarch_register_osabi.
847         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
848         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
849         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
850         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
851         * arm-tdep.c (_initialize_arm_tdep): Likewise.
852         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
853         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
854         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
855         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
856         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
857         * i386-tdep.c (_initialize_i386_tdep): Likewise.
858         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
859         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
860         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
861         _initialize_i386bsd_tdep and updated likewise.
862         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
863         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
864         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
865         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
866         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
867         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
868         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
869         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
870         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
871         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
872
873 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
874
875         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
876         DT_MIPS_RLD_MAP case for 64-bit targets.
877
878 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
879
880         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
881         ``temp_saved_regs'', not the pointer or other storage contiguous
882         to this pointer.
883
884 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
885
886         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
887         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
888         (mips_linux_get_longjmp_target): Delete declarations.
889         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
890         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
891         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
892         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
893         (mips_linux_get_longjmp_target)
894         (mips_linux_svr4_fetch_link_map_offsets): Make static.
895         (mips_linux_init_abi): New function.
896         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
897
898 2002-12-19  Keith Seitz  <keiths@redhat.com>
899
900         patch committed by Elena Zannoni  <ezannoni@redhat.com>
901         * thread.c (do_captured_list_thread_ids): Call prune_threads and
902         target_find_new_threads. Fix for PR mi/669.
903
904 2002-12-19  David Carlton  <carlton@math.stanford.edu>
905
906         * linespec.c (decode_line_1): Move code into decode_all_digits.
907         (decode_all_digits): New function.
908
909 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
910
911         * exec.c (print_section_info): Select a format string to use with
912         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
913
914 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
915
916         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
917         deprecated_update_current_frame_pc_hack.
918         (deprecated_update_frame_base_hack): New function.
919         * frame.h (deprecated_update_frame_pc_hack): Replace
920         (deprecated_update_frame_base_hack): Declare.
921         * infrun.c (normal_stop): Update.
922
923 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
924
925         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
926         frame_extra_info_zalloc.
927         (rs6000_frame_args_address): Use get_frame_extra_info.
928         (frame_get_saved_regs): Use get_frame_saved_regs.
929         (frame_initial_stack_address): Use get_frame_saved_regs and
930         get_frame_extra_info.
931         (frame_initial_stack_address): Use get_frame_extra_info.
932
933 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
934
935         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
936         array size.
937         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
938         checks for r3900_regnames[].
939
940 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
941
942         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
943         All uses changed
944         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
945
946 2002-12-17  David Carlton  <carlton@math.stanford.edu>
947
948         * symtab.c (lookup_partial_symbol): Don't search past the end of
949         the partial symbols.
950
951 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
952
953         * stack.c (frame_info): Use get_frame_saved_regs.
954         * breakpoint.c (until_break_command): Use get_frame_pc.
955
956 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
957
958         * buildsym.c (block_end_complaint, anon_block_end_complaint)
959         (innerblock_complaint, innerblock_anon_complaint)
960         (blockvector_complaint): Delete deprecated complaint structs.
961         (finish_block, make_blockvector, end_symtab): Replace calls
962         to complain() with calls to complaint().
963         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
964         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
965         (unexpected_type_complaint, bad_sclass_complaint)
966         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
967         Delete deprecated complaint structs.
968         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
969         Replace calls to complain() with calls to complaint().
970         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
971         (unknown_symtype_complaint, unknown_symchar_complaint)
972         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
973         (lbrac_mismatch_complaint, repeated_header_complaint)
974         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
975         Delete deprecated complaint structs.
976         (unknown_symtype_complaint, lbrac_mismatch_complaint)
977         (repeated_header_complaint)
978         (function_outside_compiliation_unit_complaint): New functions.
979         (add_old_header_file, find_corresponding_bincl_psymtab)
980         (set_namestring, find_stab_function_addr, read_dbx_symtab)
981         (process_one_symbol): Replace calls to complain() with, possibly
982         indirect, calls to complaint().
983         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
984         (unknown_attribute_form, unknown_attribute_length)
985         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
986         (const_ignored, botched_modified_type, op_deref2, op_deref4)
987         (basereg_not_handled, dup_user_type_allocation)
988         (dup_user_type_definition, missing_tag, bad_array_element_type)
989         (subscript_data_items, unhandled_array_subscript_format)
990         (unknown_array_subscript_format, not_row_major)
991         (missing_at_name): Delete deprecated complaint structs.
992         (bad_die_ref_complaint, unknown_attribute_form_complaint)
993         (dup_user_type_definition_complaint)
994         (bad_array_element_type_complaint): New functions.
995         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
996         (decode_subscript_data_item, dwarf_read_array_type)
997         (read_tag_string_type, read_subroutine_type, read_func_scope)
998         (locval, scan_partial_symbols, decode_modified_type)
999         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1000         (attribute_size): Replace calls to complain() with, possibly
1001         indirect, calls to complaint().
1002         * elfread.c (section_info_complaint, section_info_dup_complaint)
1003         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1004         Delete deprecated complaint structs.
1005         (elf_symtab_read, elfstab_offset_sections): Replace calls to
1006         complain() with calls to complaint().
1007         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1008         struct.
1009         (stub_noname_complaint): New function.
1010         (check_typedef, add_mangled_type): Replace calls to complain()
1011         with calls to complaint().
1012         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1013         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1014         (hpread_unhandled_type_complaint, hpread_struct_complaint)
1015         (hpread_array_complaint, hpread_type_lookup_complaint)
1016         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1017         (hpread_unhandled_common_complaint)
1018         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1019         struct definitions and declarations.
1020         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1021         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1022         Replace calls to complain() with, possibly indirect, calls to
1023         complaint().
1024         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1025         Likewise.
1026         * mdebugread.c (bad_file_number_complaint, index_complaint)
1027         (aux_index_complaint, block_index_complaint)
1028         (unknown_ext_complaint, unknown_sym_complaint)
1029         (unknown_st_complaint, block_overflow_complaint)
1030         (basic_type_complaint, unknown_type_qual_complaint)
1031         (array_index_type_complaint, bad_tag_guess_complaint)
1032         (block_member_complaint, stEnd_complaint)
1033         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1034         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1035         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1036         (bad_continued_complaint, bad_rfd_entry_complaint)
1037         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1038         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1039         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1040         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1041         complaint structs.
1042         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1043         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1044         (unexpected_type_code_complaint)
1045         (function_outside_compilation_unit_complaint): New functions.
1046         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1047         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1048         Replace calls to complain() with, possibly indirect calls to
1049         complaint().
1050         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1051         Delete deprecated complaint structs.
1052         (lookup__objc_class, lookup_child_selector): Replace complain()
1053         with complaint().
1054         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1055         struct.
1056         (vx_lookup_symbol): Replace complain() with complaint().
1057         * stabsread.c (invalid_cpp_abbrev_complaint)
1058         (invalid_cpp_type_complaint, member_fn_complaint)
1059         (const_vol_complaint, error_type_complaint)
1060         (invalid_member_complaint, range_type_base_complaint)
1061         (reg_value_complaint, vtbl_notfound_complaint)
1062         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1063         (unresolved_sym_chain_complaint, stabs_general_complaint)
1064         (lrs_general_complaint, multiply_defined_struct): Delete
1065         deprecated complaint structs.
1066         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1067         (stabs_general_complaint, lrs_general_complaint)
1068         (msg_unknown_complaint): New functions.
1069         (dbx_lookup_type, read_cfront_baseclasses)
1070         (read_cfront_member_functions, resolve_symbol_reference)
1071         (define_symbol, resolve_live_range, add_live_range, read_type)
1072         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1073         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1074         (read_cfront_static_fields, attach_fields_to_type)
1075         (complain_about_struct_wipeout, read_range_type)
1076         (common_block_start, common_block_end, cleanup_undefined_types)
1077         (scan_file_globals): Replace complain() with complaint().
1078         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1079         Delete deprecated complaint struct declarations.
1080         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1081         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1082         (bf_not_found_complaint, ef_complaint, eb_complaint)
1083         (function_outside_compilation_unit_complaint): New functions.
1084         (record_include_begin, record_include_end, enter_line_range)
1085         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1086         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1087         complain() with complaint().
1088
1089 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1090
1091         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1092         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1093         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1094         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1095         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1096         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1097         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1098         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1099         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1100         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1101         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1102         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1103         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1104         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1105         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1106         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1107         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1108         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1109         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1110         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1111         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1112         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1113         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1114         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1115         * config/m88k/xm-dgux.h: Delete.
1116         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1117         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1118         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1119         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1120         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1121         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1122         * ch-valprint.c: Delete.
1123         
1124 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1125
1126         * infrun.c (handle_inferior_event): Rearrange code to resume if
1127         no catchpoint triggers for an event.
1128
1129 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1130
1131         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1132         and TARGET_WAITKIND_VFORKED cases.
1133
1134 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1135
1136         * infrun.c (handle_inferior_event): Assume that catchpoints
1137         are not affected by DECR_PC_AFTER_BREAK.
1138
1139 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1140
1141         * target.c (update_current_target): Don't inherit DONT_USE.
1142         * target.h (struct target_ops): Remove DONT_USE.
1143         (target_next): Remove macro.
1144
1145 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1146
1147         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1148
1149 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1150
1151         * arm-tdep.c (convert_from_extended): New argument to hold the
1152         type of floating point result we want to convert to.  Make input 
1153         argument const.  Fix all callers.
1154         (convert_to_extended): Similarly.
1155         (arm_extract_return_value): Now takes a regcache argument.  Change
1156         code to use regcache accessor functions.  Correctly extract 
1157         smaller-than-word results on big-endian machines.
1158         (arm_store_return_value): Now takes a regcache argument.  Change
1159         code to use regcache accessor functions.  Correctly zero/sign extend
1160         smaller than word results before storing into r0.
1161         (arm_gdbarch_init): Register new-style extract_return_value and
1162         store_return_value functions.
1163
1164 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1165
1166         * thread-db.c (thread_from_lwp): Uniquify error msg.
1167         (lwp_from_thread): Ditto.
1168         (check_event): Ditto.
1169         (find_new_threads_callback): Ditto.
1170         (thread_db_pid_to_str): Ditto.
1171
1172 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1173
1174         * frame.h (get_frame_saved_regs): Declare.
1175         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1176         pointer.
1177         * frame.c (get_frame_saved_regs): New function.
1178         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1179
1180 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1181
1182         * frame.c (deprecated_update_current_frame_pc_hack): New
1183         function.
1184         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1185         * infrun.c (normal_stop): Use said function instead of directly
1186         modifying the frame's PC.
1187         
1188 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1189
1190         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1191
1192 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1193
1194         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1195         config/mips/tm-irix6.h (NUM_REGS): Delete.
1196         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1197         (temp_saved_regs): Declare as a pointer rather than an array.
1198         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1199         that ``temp_saved_regs'' has storage allocated to it and that
1200         it's the correct size.
1201
1202 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1203
1204         * defs.h (init_last_source_visited): New prototype.
1205         (add_path): Ditto.
1206         * source.c (add_path): New function that adds to a specified path.
1207         (mod_path): Change to call add_path.
1208         (init_last_source_visited): New function to allow interfaces to
1209         initialize static variable: last_source_visited.  Part of fix
1210         for PR gdb/741.
1211         * Makefile.in: Add support for mi/mi-cmd-env.c.
1212
1213 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1214
1215         * frame.h (frame_id_unwind): Declare.
1216         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1217         id_unwind_cache.
1218         (frame_id_unwind_ftype): Declare.
1219         * frame.c (frame_id_unwind): New function.
1220         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1221         (create_new_frame, get_prev_frame): Pass id_unwind to
1222         set_unwind_by_pc.
1223         (frame_saved_regs_id_unwind): New function.
1224         (frame_saved_regs_id_unwind): New function.
1225         * dummy-frame.c (dummy_frame_id_unwind): New function.
1226         (struct dummy_frame): Add field id.
1227         (generic_push_dummy_frame): Initialize `id'.
1228         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1229
1230 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1231
1232         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1233         pass that to set_momentary_breakpoint.  Move comments to where they
1234         belong.
1235         * frame.h (set_current_frame): Delete declaration.
1236         * frame.c (set_current_frame): Delete function.
1237
1238 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1239
1240         * frame.c (frame_extra_info_zalloc): New function.
1241         * frame.h (frame_extra_info_zalloc): Declare.
1242
1243 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1244
1245         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1246         in the previous prototype change to set_momentary_breakpoint.
1247
1248 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1249
1250         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1251         and saw_child_exec.
1252         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1253         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1254         (stop_stepping): Remove outdated check for child vfork events.
1255
1256 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1257
1258         * GDB 5.3 released from gdb_5_3-branch.
1259
1260 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1261
1262         * corelow.c (init_core_ops): Delete references to to_require_attach
1263         and to_require_detach.
1264         * exec.c (init_exec_ops): Likewise.
1265         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1266         hppa_require_detach directly.
1267         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1268         * inftarg.c (child_detach): Remove.
1269         (child_detach_from_process): Rename to child_detach, remove
1270         after_fork argument.
1271         (child_attach): Remove.
1272         (child_attach_to_process): Rename to child_attach, remove after_fork
1273         argument.
1274         (init_child_ops): Delete references to to_require_attach
1275         and to_require_detach.
1276         * infttrace.c (hppa_require_attach): Update comment.
1277         * target.c (cleanup_target, update_current_target)
1278         (init_dummy_target, setup_target_debug): Delete references to
1279         to_require_attach and to_require_detach.
1280         (find_default_require_detach, find_default_require_attach)
1281         (debug_to_require_attach, debug_to_require_detach): Remove
1282         functions.
1283         * target.h (struct target_ops): Remove to_require_attach
1284         and to_require_detach.
1285         (target_require_attach, target_require_detach): Delete macros.
1286         (find_default_require_detach, find_default_require_attach): Delete
1287         prototypes.
1288         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1289
1290 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1291
1292         * frame.c (get_frame_extra_info): New function.
1293         * frame.h (get_frame_extra_info): Declare.
1294
1295 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1296
1297         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1298         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1299         with `struct frame_id'.
1300         (set_longjmp_resume_breakpoint): Ditto.
1301         * infrun.c (handle_inferior_event): Update.
1302         * breakpoint.c (watch_command_1, until_break_command): Update.
1303         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1304         (handle_inferior_event, step_over_function): Update.
1305         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1306         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1307         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1308         * infcmd.c (finish_command, run_stack_dummy): Update.
1309
1310 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1311
1312         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1313         (dwarf2_non_const_array_bound_ignored)
1314         (dwarf2_missing_line_number_section)
1315         (dwarf2_statement_list_fits_in_line_number_section)
1316         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1317         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1318         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1319         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1320         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1321         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1322         (dwarf2_missing_member_fn_type_complaint)
1323         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1324         (dwarf2_const_value_length_mismatch)
1325         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1326         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1327         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1328         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1329         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1330         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1331         complaints using deprecated struct..
1332         (dwarf2_non_const_array_bound_ignored_complaint)
1333         (dwarf2_complex_location_expr_complaint)
1334         (dwarf2_unsupported_at_frame_base_complaint)
1335         (dwarf2_const_value_length_mismatch_complaint)
1336         (dwarf2_macros_too_long_complaint)
1337         (dwarf2_macro_malformed_definition_complaint)
1338         (dwarf2_invalid_attrib_class_complaint): New functions.
1339         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1340         (read_structure_scope, read_array_type, read_common_block)
1341         (read_tag_pointer_type, read_base_type, read_partial_die)
1342         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1343         (new_symbol, dwarf2_const_value, read_type_die)
1344         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1345         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1346         complain() with, possibly indirect, calls to complaint().
1347
1348 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1349
1350         * frame.c (deprecated_get_frame_saved_regs): Rename
1351         get_frame_saved_regs.
1352         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1353         * sparc-tdep.c: Update.
1354         * hppa-tdep.c: Update.
1355         * h8500-tdep.c: Update.
1356
1357 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1358
1359         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1360         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1361         ``char *'' for return and parameter types.
1362         * gdbarch.h, gdbarch.c: Regenerate.
1363         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1364         return type from ``char *'' to ``const char *''.
1365         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1366         const.
1367
1368 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1369
1370         * i386-tdep.c: Include "dummy-frame.h".
1371         (i386_frame_chain, i386_frame_saved_pc): Replace
1372         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1373         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1374
1375 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1376
1377         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1378         Change to a function with predicate.
1379         * gdbarch.h, gdbarch.c: Re-generate.
1380         * frame.c (get_prev_frame): Update.  Test
1381         DEPRECATED_INIT_FRAME_PC_P.
1382         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1383         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1384         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1385         * alpha-tdep.c (alpha_gdbarch_init): Update.
1386         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1387         * mips-tdep.c (mips_gdbarch_init): Update.
1388         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1389         * arm-tdep.c: Update comments.
1390         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1391         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1392         * frv-tdep.c (frv_gdbarch_init): Ditto.
1393         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1394         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1395         * s390-tdep.c (s390_gdbarch_init): Ditto.
1396         * v850-tdep.c (v850_gdbarch_init): Ditto.
1397         * vax-tdep.c (vax_gdbarch_init): Ditto.
1398         * sh-tdep.c (sh_gdbarch_init): Ditto.
1399         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1400         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1401         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1402         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1403         * i386-tdep.c (i386_gdbarch_init): Ditto.
1404         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1405         * cris-tdep.c (cris_gdbarch_init): Ditto.
1406         * avr-tdep.c (avr_gdbarch_init): Ditto.
1407         * arm-tdep.c (arm_gdbarch_init): Ditto.
1408         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1409         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1410
1411 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1412
1413         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1414         CHILD_FOLLOW_FORK.
1415         * hppah-nat.c (saved_vfork_pid): Add.
1416         (child_post_follow_vfork): Remove.
1417         (child_follow_fork): New function.
1418         (child_wait): Call detach_breakpoints after receiving the child vfork.
1419         Call child_resume directly instead of going through resume ().
1420         Make sure we have the exec before reporting the vfork.
1421         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1422         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1423         (follow_fork): New function.  Call target_follow_fork.
1424         (follow_inferior_reset_breakpoints): New function broken out from
1425         old follow_inferior_fork.
1426         (resume): Remove hack to follow exec after vfork.
1427         * inftarg.c (child_post_follow_vfork): Remove.
1428         (child_follow_fork): New function.
1429         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1430         * target.c (cleanup_target): Replace to_post_follow_vfork with
1431         to_follow_fork.
1432         (update_current_target): Likewise.
1433         (setup_target_debug): Likewise.
1434         (debug_to_post_follow_vfork): Remove.
1435         (debug_to_follow_fork): New function.
1436         * target.h (struct target_ops): Replace to_post_folow_vfork with
1437         to_follow_fork.
1438         (child_post_follow_vfork): Remove prototype.
1439         (child_follow_fork): Add prototype.
1440         (target_post_follow_vfork): Remove macro.
1441         (target_follow_fork): Add macro.
1442
1443 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1444
1445         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1446         (child_post_follow_vfork): Cancel pending exec event if we follow
1447         the parent.
1448         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1449         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1450         event at the following wait call if necessary.
1451         * infrun.c (follow_vfork): Don't follow_exec here.
1452         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1453         case about HP/UX 10.20.  Remove code pushed down to
1454         hppah-nat.c:child_wait.
1455         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1456         vfork_in_flight is set.
1457
1458 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1459
1460         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1461         for the parent's fork event.
1462         * infrun.c (handle_inferior_event): Only expect one fork event.
1463         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1464         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1465
1466 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1467
1468         * PROBLEMS: Delete reference to PR gdb/725.
1469         
1470         * MAINTAINERS (gdb.c++): Add David Carlton.
1471
1472 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1473
1474         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1475         * cli/cli-cmds.c: Ditto.
1476
1477 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1478
1479         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1480         function address in <>.
1481         * gdbarch.c: Re-generate.
1482
1483 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1484
1485         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1486
1487 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1488
1489         * linespec.c (symtab_from_filename): New function.
1490         (decode_line_1): Move code into symtab_from_filename.
1491
1492 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1493
1494         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1495
1496 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1497
1498         * f-valprint.c (info_common_command): Use get_frame_pc.
1499         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1500         * ax-gdb.c (agent_command): Ditto.
1501         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1502         (rs6000_pop_frame): Ditto.
1503         (rs6000_frameless_function_invocation): Ditto.
1504         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1505         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1506         * macroscope.c (default_macro_scope): Ditto.
1507         * stack.c (print_frame_info_base): Ditto.
1508         (print_frame, frame_info, print_frame_label_vars): Ditto.
1509         (return_command, func_command, get_frame_language): Ditto.
1510         * infcmd.c (finish_command): Ditto.
1511         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1512         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1513         (break_at_finish_at_depth_command_1): Ditto.
1514         (break_at_finish_command_1): Ditto.
1515         (until_break_command, get_catch_sals): Ditto.
1516         * blockframe.c (func_frame_chain_valid): Ditto.
1517         (frameless_look_for_prologue): Ditto.
1518         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1519
1520 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1521
1522         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1523         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1524
1525 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1526
1527         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1528         to pure functions.
1529         * gdbarch.h, gdbarch.c: Re-generate.
1530         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1531         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1532
1533         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1534         declaration to a function returning a CORE_ADDR.
1535         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1536         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1537         (init_frame_pc_default): Ditto.
1538         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1539         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1540         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1541         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1542         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1543         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1544
1545         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1546         to init_frame_pc_noop.
1547         (i386_interix_init_frame_pc): Delete function.
1548         * z8k-tdep.c (init_frame_pc): Delete function.
1549         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1550         (INIT_FRAME_PC_FIRST): Ditto.
1551         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1552         (INIT_FRAME_PC_FIRST): Ditto.
1553         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1554         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1555         init_frame_pc_noop.
1556         (INIT_FRAME_PC_FIRST): Convert to an expression.
1557         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1558
1559 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1560
1561         * blockframe.c: Use get_frame_base instead of directly accessing
1562         the `struct frame_info' member frame.
1563         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1564         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1565
1566 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1567
1568         * Makefile.in (readline_h): Define.
1569         (completer.o): Depend on readline_h.
1570         (corelow.o): Ditto.
1571         (event-top.o): Ditto.
1572         (exec.o): Ditto.
1573         (solib.o): Ditto.
1574         (source.o): Ditto. 
1575         (symfile.o): Ditto. 
1576         (symmisc.o): Ditto. 
1577         (top.o): Ditto.
1578         (tracepoint.o): Ditto. 
1579         (utils.o): Ditto.
1580         (cli-dump.o): Ditto.
1581         (tui-hooks.o): Ditto. 
1582         (tuiWin.o): Ditto. 
1583
1584 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1585
1586         More cleanup from import of readline 4.3.
1587         * completer.h (complete_line, readline_line_completion_function):
1588         Update prototypes.
1589         (line_completion_function): Removed, not used outside of completer.c.
1590         * completer.c (readline_line_completion_function,
1591         complete_function, line_completion_function): Use const for first
1592         parameter.
1593         (line_completion_function): Make static.
1594         (filename_completer): filename_completion_function is now called
1595         rl_filename_completion_function
1596         * corelow.c: Include <readline/readline.h>.
1597         * exec.c: Ditto.
1598         * solib.c: Ditto.
1599         * source.c: Ditto.
1600         * symfile.c: Ditto.
1601         * symmisc.c: Ditto.
1602         * top.c (init_main): No need to coerce
1603         readline_line_completion_function anymore.
1604         * cli/cli-dump.c: Include <readline/readline.h>.
1605
1606 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1607
1608         * stack.c (frame_info): Use get_prev_frame.
1609         * blockframe.c (frame_address_in_block): Ditto.
1610         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1611         (rs6000_frameless_function_invocation): Ditto.
1612         (rs6000_frame_saved_pc): Ditto.
1613         (rs6000_frame_chain): Ditto.
1614         * arch-utils.c (init_frame_pc_default): Ditto.
1615
1616 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1617
1618         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1619         Delete redundant definition.
1620
1621 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1622
1623         Import of readline 4.3:
1624         * cli/cli-cmds.c: Include readline/tilde.h.
1625         * cli/cli-setshow.c: Ditto.
1626         * defs.h: Don't declare tilde_expand anymore, since readline
1627         exports it.
1628
1629 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1630
1631         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1632         -Werror on this file.
1633
1634 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1635
1636         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1637         the format name.
1638         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1639         * gdbarch.c: Regenerate.
1640         
1641 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1642
1643         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1644         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1645         provide a default value.
1646         * gdbarch.h, gdbarch.c: Regenerate.
1647         * frame.c (get_prev_frame): Update.  Check
1648         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1649         * s390-tdep.c (s390_gdbarch_init): Update.
1650         * mips-tdep.c (mips_gdbarch_init): Update.
1651         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1652         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1653         * alpha-tdep.c (alpha_gdbarch_init): Update.
1654         
1655 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1656
1657         * ia64-linux-nat.c: Include gdb_string.h.
1658         * alpha-nat.c: Ditto.
1659         * ppc-linux-nat.c: Ditto.
1660         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1661         Update dependencies.
1662
1663 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1664
1665         * gdbthread.h: Include "frame.h".
1666         (struct thread_info): Replace step_frame_address with
1667         step_frame_id.
1668         * inferior.h: Include "frame.h".
1669         (step_frame_id): Replace external variable step_frame_address.
1670         * gdbthread.h (save_infrun_state): Replace step_frame_address
1671         parameter with step_frame_id parameter.
1672         (load_infrun_state): Ditto.
1673         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1674         * infcmd.c (step_frame_id, step_1, step_once): Update.
1675         * thread.c (load_infrun_state, save_infrun_state): Update.
1676         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1677         (handle_inferior_event, step_over_function): Update.
1678         (normal_stop, context_switch, restore_inferior_status): Update.
1679         (struct inferior_status): Replace step_frame_address with
1680         step_frame_id.
1681
1682 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1683
1684         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1685         DW_TAG_member as well as a declaration as being a C++ static data
1686         member.
1687         (read_structure_scope): Combine tests for DW_TAG_member and
1688         DW_TAG_variable.
1689
1690 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1691
1692         * linespec.c (decode_compound): New function.
1693         (decode_line_1): Move code into decode_compound.
1694
1695 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1696
1697         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1698         argument.
1699         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1700         the static block.  See PR gdb/804.
1701
1702 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1703
1704         * symtab.c (lookup_symbol_aux_block): New function.
1705         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1706
1707 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1708
1709         * gdbarch.sh: Dump the predicate function and macro values.
1710         (read): Print error on standard error.
1711         * gdbarch.c: Regenerate.
1712         
1713 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1714
1715         * Makefile.in (mips_tdep_h): Define.
1716         (mips-tdep.o): Add mips_tdep_h to dependency list.
1717         * mips-tdep.h: New file.
1718         * mips-tdep.c (mips-tdep.h): Include.
1719         (enum mips_abi): Move to mips-tdep.h.
1720         (mips_abi): New function.
1721
1722 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1723
1724         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1725
1726 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1727
1728         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1729         function.
1730         (lookup_symbol_aux_minsyms): New function.
1731
1732 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1733
1734         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1735
1736 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1737
1738         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1739         which is an obsolete macro name.
1740
1741 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1742
1743         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1744         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1745
1746 2002-12-03  H.J. Lu  (hjl@gnu.org)
1747
1748         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1749         (create_breakpoints): Make sure the addr_string field is not
1750         NULL.
1751
1752 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1753
1754         * sparc-nat.c (fetch_inferior_registers)
1755         (store_inferior_registers): Add comment on problem of LWP vs
1756         threads.
1757         
1758         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1759         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1760         (lin_lwp_store_registers): Remove.
1761         (init_lin_lwp_ops): Use fetch_inferior_registers
1762         and store_inferior_registers directly.
1763         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1764         (store_inferior_registers): Likewise.
1765         Fix PR gdb/725.
1766
1767 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1768
1769         * frame.h (get_frame_id): Convert to a function.
1770         (null_frame_id, frame_id_p): Declare.
1771         (frame_id_eq, frame_id_inner): Declare.
1772         (frame_id_build): New function.
1773         * frame.c (get_frame_id): Update.  Use null_frame_id.
1774         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1775         frame_id_inner.
1776         (null_frame_id, frame_id_p): Define.
1777         (frame_id_eq, frame_id_inner): Define.
1778         (frame_id_build): New function.
1779         * varobj.c (varobj_create): Update.
1780         (varobj_update): Update.
1781         * valops.c (value_assign): Update.
1782         (new_root_variable): Update.
1783         * infrun.c (save_inferior_status): Update.
1784         * breakpoint.c (watch_command_1): Update.
1785
1786 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1787
1788         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1789         (SNAP2): Likewise.
1790
1791 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1792
1793         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1794         patch.
1795
1796         * PROBLEMS: Mention PR gdb/725.
1797
1798 2002-12-03  Andreas Schwab  <schwab@suse.de>
1799
1800         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1801
1802 2002-12-02  Adam Fedor  <fedor@gnu.org>
1803             Klee Dienes  <kdienes@apple.com>
1804
1805         * objc-lang.c (objc_printstr): Add width arg to match
1806         printstr prototype.
1807         (compare_selectors): Add 'const' to arg types.
1808         (compare_classes): Likewise.
1809         (find_imps): Cast msym pointer to avoid compiler warning.
1810         (print_object_command): Validate the address before
1811         passing it to the print routine.
1812         (find_objc_msgcall_submethod): Change function argument to
1813         return an int.
1814         * objc-lang.h: Add 'extern' to all function declarations.
1815         (value_nsstring): Add declaration.
1816
1817 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1818
1819         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1820         Fixes a build failure on HP/UX.
1821
1822         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1823         failure on HP/UX. 
1824         (hpread_has_name): Advance declaration to avoid a compilation warning.
1825         (pst_syms_count): Add missing variable type. By change, the compiler
1826         was defaulting to int, which seems a good choice. Fixes a compilation
1827         warning.
1828         (pst_syms_size): Likewise.
1829  
1830 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1831
1832         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1833         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1834         later to set the proper gdbarch methods depending on the osabi.
1835         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1836
1837 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1838
1839         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1840         * osabi.c (gdb_osabi_name): Add strings images for the two new
1841         enum values.
1842         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1843
1844 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1845
1846         * MAINTAINERS (Java): Global maintainers are responible for Java.
1847         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1848         part Java maintainers.
1849
1850 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1851
1852         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1853         Fixes a compilation failure on AiX.
1854
1855 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1856
1857         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1858         why aix-thread.o is not listed.
1859
1860 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1861
1862         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1863         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1864         * gdbarch.h, gdbarch.c: Re-generate.
1865         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1866         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1867         * config/pa/tm-hppa.h, frame.h: Update.
1868         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1869         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1870         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1871         * cris-tdep.c, alpha-tdep.c: Update.
1872         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1873         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1874         (get_prev_frame): Ditto.
1875
1876 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1877
1878         * exec.c (xfer_memory): Replace boolean with int.
1879         * p-exp.y: Use 0 instead of false.
1880         * corelow.c (gdb_check_format): Change return type to int from
1881         boolean.
1882         * utils.c: Don't include <curses.h> or <term.h> first.
1883
1884 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1885
1886         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1887         (m68hc11_register_byte): Remove.
1888         (m68hc11_gdbarch_init): Don't set the above.
1889
1890 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1891
1892         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1893         by calling get_selected_frame.
1894         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1895         set_current_frame, create_new_frame, select_frame and
1896         get_current_frame.
1897         * remote-e7000.c (e7000_start_remote): Ditto.
1898         * remote-mips.c (common_open): Ditto
1899         * remote-rdp.c (remote_rdp_open): Ditto.
1900
1901 2002-11-29  Andreas Schwab  <schwab@suse.de>
1902
1903         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1904         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1905         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1906         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1907         read_memory_unsigned_integer instead of read_memory_integer when
1908         dealing with addresses and instruction opcodes.
1909         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1910         (m68k_linux_frame_saved_pc): Likewise.
1911
1912 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1913
1914         * stack.c (selected_frame, select_frame): Move from here ...
1915         * frame.c (selected_frame, select_frame): ... to here.  Include
1916         "language.h".
1917         * Makefile.in (frame.o): Update dependencies.
1918         * frame.c (get_selected_frame): New function.
1919         * frame.h (get_selected_frame): Declare.
1920         (deprecated_selected_frame): Rename selected_frame.
1921         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1922         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1923         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1924         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1925         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1926         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1927         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1928         * z8k-tdep.c, cli/cli-cmds.c: Update.
1929         
1930 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1931
1932         * frame.h (get_selected_block): Add comments.
1933
1934 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1935
1936         * frame.c (pc_notcurrent): New function.
1937         (find_frame_sal): New function.
1938         * frame.h (find_frame_sal): Declare.
1939         (struct symtab_and_line): Add opaque declaration.
1940         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1941         find_pc_line.
1942         (frame_info): Ditto.
1943         * ada-lang.c (find_printable_frame): Ditto.
1944
1945 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1946
1947         * configure.in: Check that the pthdebug library is recent enough
1948         before enabling thread support on native AiX.
1949         * configure: Regenerate.
1950
1951         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1952         from the list of object files as it is now appended by configure
1953         if thread support is enabled.
1954         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1955         if thread support is enabled.
1956
1957 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1958
1959         * stack.c (get_selected_block): In-line get_current_block.
1960         * frame.h (get_current_block): Delete declaration.
1961         * blockframe.c (get_current_block): Delete function.
1962
1963 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1964
1965         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1966         USE_GENERIC_DUMMY_FRAMES.
1967         * gdbarch.h, gdbarch.c: Regenerate.
1968         * valops.c, frame.c: Update.
1969         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1970         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1971         * config/pa/tm-hppa.h, blockframe.c: Update.
1972         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1973         * m68k-tdep.c, alpha-tdep.c: Ditto.
1974
1975         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1976         * mips-tdep.c: Ditto.
1977
1978 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1979
1980         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1981         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1982         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1983         * gdbarch.c, gdbarch.h: Re-generate.
1984         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1985         (CALL_DUMMY_LOCATION): Delete macro definition.
1986         (PC_IN_CALL_DUMMY): Delete macro definitions.
1987         
1988         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1989         default is already generic_pc_in_call_dummy.
1990         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1991         * v850-tdep.c (v850_gdbarch_init): Ditto.
1992         * sh-tdep.c (sh_gdbarch_init): Ditto.
1993         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1994         * mips-tdep.c (mips_gdbarch_init): Ditto.
1995         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1996         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1997         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1998         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1999         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2000         * avr-tdep.c (avr_gdbarch_init): Ditto.
2001         
2002         * arm-tdep.c (arm_gdbarch_init): Do not set
2003         use_generic_dummy_frames, default is already 1.
2004         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2005         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2006         * v850-tdep.c (v850_gdbarch_init): Ditto.
2007         * sh-tdep.c (sh_gdbarch_init): Ditto.
2008         * s390-tdep.c (s390_gdbarch_init): Ditto.
2009         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2010         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2011         * mips-tdep.c (mips_gdbarch_init): Ditto.
2012         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2013         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2014         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2015         * i386-tdep.c (i386_gdbarch_init): Ditto.
2016         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2017         * frv-tdep.c (frv_gdbarch_init): Ditto.
2018         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2019         * cris-tdep.c (cris_gdbarch_init): Ditto.
2020         * avr-tdep.c (avr_gdbarch_init): Ditto.
2021
2022         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2023         call_dummy_location, default is already AT_ENTRY_POINT.
2024         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2025         * v850-tdep.c (v850_gdbarch_init): Ditto.
2026         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2027         * sh-tdep.c (sh_gdbarch_init): Ditto.
2028         * s390-tdep.c (s390_gdbarch_init): Ditto.
2029         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2030         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2031         * mips-tdep.c (mips_gdbarch_init): Ditto.
2032         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2033         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2034         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2035         * i386-tdep.c (i386_gdbarch_init): Ditto.
2036         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2037         * frv-tdep.c (frv_gdbarch_init): Ditto.
2038         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2039         * cris-tdep.c (cris_gdbarch_init): Ditto.
2040         * avr-tdep.c (avr_gdbarch_init): Ditto.
2041         * arm-tdep.c (arm_gdbarch_init): Ditto.
2042         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2043
2044 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2045
2046         * frame.h: Update comments on set_current_frame, create_new_frame,
2047         flush_cached_frames, reinit_frame_cache, select_frame and
2048         selected_frame.
2049         
2050 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2051
2052         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2053         deprecated pc_in_call_dummy function.
2054         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2055         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2056         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2057         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2058         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2059
2060 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2061
2062         * Makefile.in: Remove Tix dependencies.
2063         * acinclude.m4: Ditto.
2064         * aclocal.m4: Ditto.
2065         * configure.in: Ditto.
2066         * configure: Regenerated.
2067         
2068 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2069
2070         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2071         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2072         * gdbarch.c: Re-generate.
2073         
2074 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2075
2076         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2077         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2078         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2079         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2080         pc_in_call_dummy_at_entry_point.
2081         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2082         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2083         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2084         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2085         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2086         pc_in_call_dummy_on_stack.
2087         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2088         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2089         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2090         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2091         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2092         
2093 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2094
2095         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2096         pc_in_call_dummy_before_text_end
2097         (deprecated_pc_in_call_dummy_after_text_end): Rename
2098         pc_in_call_dummy_after_text_end.
2099         (deprecated_pc_in_call_dummy_on_stack): Rename
2100         pc_in_call_dummy_on_stack.
2101         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2102         pc_in_call_dummy_at_entry_point.
2103         * m68k-tdep.c (m68k_gdbarch_init): Update.
2104         * s390-tdep.c (s390_gdbarch_init): Update.
2105         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2106         * vax-tdep.c (vax_gdbarch_init): Update.
2107         * sparc-tdep.c (sparc_gdbarch_init): Update.
2108         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2109         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2110         * i386-tdep.c (i386_gdbarch_init): Update.
2111         * frv-tdep.c (frv_gdbarch_init): Update.
2112         * cris-tdep.c (cris_gdbarch_init): Update.
2113         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2114         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2115         (deprecated_pc_in_call_dummy_after_text_end)
2116         (deprecated_pc_in_call_dummy_on_stack)
2117         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2118         * alpha-tdep.c (alpha_gdbarch_init): Update.
2119
2120 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2121
2122         * acconfig.h (HAVE_PREAD64): Add.
2123         * configure.in: Check for pread64.
2124         * config.in: Regenerated.
2125         * configure: Regenerated.
2126         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2127         * linux-proc.c (linux_proc_xfer_memory): New function.
2128         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2129
2130 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2131
2132         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2133         pdi's with no name.
2134
2135 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2136
2137         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2138         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2139
2140 2002-11-25  Jim Blandy  <jimb@redhat.com>
2141
2142         * symfile.c (init_objfile_sect_indices): New function.
2143         (default_symfile_offsets): Move the section-index-initializing
2144         stuff into init_objfile_sect_indices, and call that.
2145
2146         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2147         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2148
2149         * symfile.c (syms_from_objfile): Adjust indentation.
2150
2151         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2152         || info_verbose isn't true.
2153
2154 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2155
2156         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2157         default to get_frame_base.
2158         * gdbarch.h, gdbarch.c: Regenerate.
2159         * arch-utils.c (default_frame_address): Delete function.
2160         * arch-utils.h (default_frame_address): Delete declaration
2161
2162 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2163
2164         * varobj.c (find_frame_addr_in_frame_chain):
2165         Use get_frame_base instead of FRAME_FP,
2166         obvious fix.
2167
2168 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2169
2170         * frame.h (FRAME_FP): Delete macro.
2171         (get_frame_base): New function declaration.
2172         * frame.c (get_frame_base): New function.
2173         (get_frame_id): Use ->frame.
2174         (frame_find_by_id): Rewrite to use get_frame_id.
2175         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2176         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2177         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2178         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2179         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2180         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2181         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2182
2183 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2184
2185         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2186
2187 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2188
2189         * frame.c (set_unwind_by_pc): Revert change below, use
2190         PC_IN_CALL_DUMMY.
2191         (get_prev_frame): Ditto.
2192
2193 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2194
2195         * dummy-frame.c (pc_in_dummy_frame): New function.
2196         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2197         (find_dummy_frame): Update comment.
2198         (generic_pop_current_frame): Use get_frame_type.
2199         * dummy-frame.h (pc_in_dummy_frame): Declare.
2200         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2201         (create_new_frame): Use pc_in_dummy_frame.
2202         (get_prev_frame): Use pc_in_dummy_frame.
2203         (frame_saved_regs_register_unwind): Use get_prev_frame.
2204         (deprecated_generic_get_saved_register): Use get_prev_frame.
2205
2206 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2207
2208         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2209         from here ...
2210         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2211         (varobj_create): Note that frame ID should be used.
2212         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2213
2214 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2215
2216         * breakpoint.c: Include "gdb_assert.h".
2217         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2218         not being used.
2219         * Makefile.in (breakpoint.o): Update dependencies.
2220         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2221         deprecated_frame_in_dummy.
2222         * stack.c (print_frame_info_base): Ditto.
2223         (frame_info): Ditto.
2224         (print_frame_info_base): Ditto.  Delete dead code.
2225         
2226 2002-11-23  Andreas Schwab  <schwab@suse.de>
2227
2228         * Makefile.in (m68k_tdep_h): Define.
2229         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2230         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2231         * m68k-tdep.c: Move register number enum ...
2232         * m68k-tdep.h: ... to this new file and rename the constants from
2233         E_* to M68K_*.  All uses changed.
2234         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2235         * abug-rom.c: Include "m68k-tdep.h".  Use
2236         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2237         * cpu32bug-rom.c: Likewise.
2238         * dbug-rom.c: Likewise.
2239         * m68k-tdep.c: Likewise.
2240         * m68klinux-nat.c: Likewise.
2241         * remote-est.c: Likewise.
2242         * rom68k-rom.c: Likewise.
2243         * config/m68k/tm-linux.h: Likewise.
2244
2245 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2246
2247         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2248         dummy frame initialization code.
2249         * mips-tdep.c (mips_gdbarch_init): Ditto.
2250
2251 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2252
2253         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2254         attach will hang.
2255
2256 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2257
2258         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2259         to default_frame_address.
2260         * gdbarch.h, gdbarch.c: Re-generate.
2261
2262         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2263         or frame_locals_address to default_frame_address.
2264         * m68k-tdep.c (m68k_gdbarch_init): Update.
2265         * i386-tdep.c (i386_gdbarch_init): Update.
2266         * frv-tdep.c (frv_gdbarch_init): Update.
2267         * sh-tdep.c (sh_gdbarch_init): Update.
2268         * v850-tdep.c (v850_gdbarch_init): Update.
2269         * sparc-tdep.c (sparc_gdbarch_init): Update.
2270         * mips-tdep.c (mips_gdbarch_init): Update.
2271         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2272         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2273         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2274
2275         * cris-tdep.c (cris_frame_args_address): Delete function.
2276         (cris_frame_locals_address): Delete function.
2277         (cris_gdbarch_init): Do not set frame_args_address or
2278         frame_locals_address.
2279
2280 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2281
2282         * thread-db.c (thread_db_load): Tell the user what's going on
2283         if dlopen fails on libthread_db.
2284
2285 2002-11-23  Andreas Schwab  <schwab@suse.de>
2286
2287         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2288         invariant return values.
2289
2290 2002-11-22  Andreas Schwab  <schwab@suse.de>
2291
2292         * valops.c (value_slice): Move declaration of `offset' to avoid
2293         warning.
2294
2295 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2296
2297         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2298         (struct so_stuff): Add end_addr field.
2299         (register_loaded_dll): Calculate and store end address of loaded dll.
2300         (solib_address): New function.
2301         (child_solib_loaded_library_pathname): Pass carefully constructed
2302         section info to safe_symbol_file_add rather than ignoring it.
2303         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2304         DLL is loaded.
2305         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2306         (child_create_inferior): Fix a compiler warning.
2307         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2308         (solib_address): Declare new function.
2309
2310 2002-11-22  Andreas Schwab  <schwab@suse.de>
2311
2312         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2313         and FPS registers.
2314
2315 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2316
2317         * maint.c (_initialize_maint_cmds): Fix typo.  From
2318         Francesco Potorti` <pot@gnu.org>.
2319
2320 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2321
2322         * mips-tdep.c (mips_dump_tdep): Delete references to
2323         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2324         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2325         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2326         * printcmd.c (build_address_symbolic): Delete calls to
2327         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2328         (address_info): Ditto.
2329         Fix PR gdb/773.
2330         
2331 2002-11-19  Klee Dienes  <kdienes@apple.com>
2332             Adam Fedor  <fedor@gnu.org>
2333
2334         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2335         the ability to explicitly specify the quote characters and word
2336         break characters; if NULL is specified for either, use the old
2337         behavior of using the characters used by the completer.
2338         (skip_chars): New function.  Convenience wrapper around
2339         skip_quoted_chars to provide the original skip_chars behavior.
2340         * completer.h (skip_quoted_chars): Add prototype.
2341
2342 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2343
2344         Problems reported by Paul Eggert.
2345         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2346
2347 2002-11-19  Andreas Schwab  <schwab@suse.de>
2348
2349         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2350         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2351         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2352         (m68k_linux_frame_saved_pc): Move to ...
2353         * m68klinux-tdep.c: ... here.  New file.
2354         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2355         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2356
2357 2002-11-19  Adam Fedor  <fedor@gnu.org>
2358
2359         * objc-exp.y: Revert to old skip_quoted usage.
2360
2361 2002-11-19  Adam Fedor  <fedor@gnu.org>
2362
2363         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2364         (objc_lang_h): Define.
2365         (YYFILES): Add objc-exp.tab.c.
2366         (local-maintainer-clean): Remove objc-exp.tab.c.
2367         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2368         
2369 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2370
2371         * p-exp.y (typecast rule): Add automatic dereference of
2372         pascal classes if needed.
2373         (THIS): Set current_type.
2374         Automatically dereference pascal classes. 
2375         (typebase rule): Add ^typebase recognition.
2376
2377 2002-11-18  Adam Fedor  <fedor@gnu.org>
2378
2379         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2380         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2381         (op_name): Handle OP_OBJC_SELF.
2382         * Makefile.in (expprint.o): Add additional depends.
2383
2384 2002-11-18  Adam Fedor  <fedor@gnu.org>
2385
2386         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2387         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2388         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2389         * objc-exp.y: Likewise. 
2390
2391 2002-11-18  Adam Fedor  <fedor@gnu.org>
2392
2393         * gdb/parser-defs.h: (struct objc_class_str): New structure
2394         for parsing ObjC classes.
2395
2396 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2397
2398         * stack.c (frame_relative_level): Copy function from here ...
2399         * frame.c (frame_relative_level): ...to here.
2400
2401 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2402
2403         * frame.h (enum frame_type): Define.
2404         (get_frame_type): Declare.
2405         (struct frame_info): Add field `type'.  Delete field
2406         signal_handler_caller.
2407         (deprecated_set_frame_signal_handler_caller): Declare.
2408         * frame.c (get_frame_type): New function.
2409         (deprecated_set_frame_type): New function.
2410         (create_new_frame): Set the frame's type.
2411         (get_prev_frame): Similar.
2412         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2413         * s390-tdep.c: Ditto.
2414         * m68klinux-nat.c: Ditto.
2415         * ns32k-tdep.c: Ditto.
2416         * x86-64-linux-tdep.c: Ditto.
2417         * vax-tdep.c: Ditto.
2418         * rs6000-tdep.c: Ditto.
2419         * ppc-linux-tdep.c: Ditto.
2420         * i386-interix-tdep.c: Ditto.
2421         * mips-tdep.c: Ditto.
2422         * m68k-tdep.c: Ditto.
2423         * hppa-tdep.c: Ditto.
2424         * ia64-tdep.c: Ditto.
2425         * cris-tdep.c: Ditto.
2426         * arm-tdep.c: Ditto.
2427         * alpha-tdep.c: Ditto.
2428         * i386-tdep.c: Ditto.
2429         * stack.c: Ditto.
2430         * ada-lang.c: Ditto.
2431         * blockframe.c: Update.
2432         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2433         deprecated_set_frame_type instead of signal_handler_caller.
2434         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2435         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2436         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2437
2438 2002-11-18   Klee Dienes  <kdienes@apple.com>
2439
2440         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2441
2442 2002-11-18  Klee Dienes  <kdienes@apple.com>
2443
2444         * buildsym.c (pop_context): Add comment.
2445         
2446 2002-11-18  Klee Dienes  <kdienes@apple.com>
2447
2448         * buildsym.h (pop_context): Convert to function, defined in
2449         buildsym.c.
2450         * buildsym.c: Include gdb_assert.h.
2451         (pop_context): Implement as C function.  Add check for stack
2452         underflow.
2453         * dbxread.c (process_one_symbol): Complain and stop processing
2454         that symbol if we are already at the top of the context stack for
2455         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2456         when processing N_RBRAC.
2457
2458 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2459
2460         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2461         define.
2462         (struct target_waitstatus): Add opaque definition.
2463         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2464         * exec.c (init_exec_ops): Likewise.
2465         * fork-child.c (clone_and_follow_inferior): Remove.
2466         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2467         * inferior.h (clone_and_follow_inferior): Remove prototype.
2468         * infrun.c (follow_fork_mode_both): Remove.
2469         (follow_fork_mode_kind_names): Remove commented out "both".
2470         (follow_inferior_fork): Remove follow_fork_mode_both support.
2471         * inftarg.c (child_clone_and_follow_inferior): Remove.
2472         (child_post_follow_inferior_by_clone): Remove.
2473         (init_child_ops): Don't set to_clone_and_follow_inferior
2474         or to_post_follow_inferior_by_clone.
2475         * target.c (default_clone_and_follow_inferior): Remove.
2476         (cleanup_target): Don't set to_clone_and_follow_inferior
2477         or to_post_follow_inferior_by_clone.
2478         (find_default_clone_and_follow_inferior): Remove.
2479         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2480         (debug_to_clone_and_follow_inferior): Remove.
2481         (debug_to_post_follow_inferior_by_clone): Remove.
2482         (setup_target_debug): Don't set to_clone_and_follow_inferior
2483         or to_post_follow_inferior_by_clone.
2484         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2485         and to_post_follow_inferior_by_clone.
2486         (child_clone_and_follow_inferior): Remove prototype.
2487         (child_post_follow_inferior_by_clone): Remove prototype.
2488         (target_clone_and_follow_inferior): Remove macro.
2489         (target_post_follow_inferior_by_clone): Remove macro.
2490         (find_default_clone_and_follow_inferior): Remove prototype.
2491
2492 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2493
2494         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2495         inferior_has_vforked, and inferior_has_execd instead of
2496         target_has_forked, target_has_vforked, and target_has_execd.
2497         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2498         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2499         (CHILD_WAIT): Define.
2500         (child_wait): Add prototype.
2501         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2502         Add prototype.
2503         (hpux_has_vforked): Likewise, from child_has_vforked.
2504         (hpux_has_execd): Likewise, from child_has_execd.
2505         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2506         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2507         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2508         and hpux_has_syscall_event instead of the target hooks.
2509         * infrun.c (inferior_has_forked, inferior_has_vforked)
2510         (inferior_has_execd): New functions.
2511         * inftarg.c (not_same_real_pid): Remove.
2512         (child_wait): Remove references to not_same_real_pid,
2513         target_has_forked, target_has_vforked, target_has_execd,
2514         and target_has_syscall_event.
2515         (child_has_forked, child_has_vforked, child_has_execd)
2516         (child_has_syscall_event): Remove.
2517         (init_child_ops): Remove references to child_has_forked,
2518         child_has_vforked, child_has_execd, and child_has_syscall_event.
2519         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2520         (hpux_has_vforked): Likewise, from child_has_vforked.
2521         (hpux_has_execd): Likewise, from child_has_execd.
2522         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2523         * target.c (cleanup_target): Remove references to
2524         to_has_forked, to_has_vforked, to_has_execd, and
2525         to_has_syscall_event.
2526         (update_current_target): Likewise.
2527         (setup_target_debug): Likewise.
2528         (debug_to_has_forked): Remove.
2529         (debug_to_has_vforked): Remove.
2530         (debug_to_has_execd): Remove.
2531         (debug_to_has_syscall_event): Remove.
2532         * target.h (struct target_ops): Remove to_has_forked.
2533         to_has_vforked, to_has_execd, and to_has_syscall_event.
2534         (child_has_forked, child_has_vforked, child_has_execd)
2535         (child_has_syscall_event): Remove prototypes.
2536         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2537         prototypes.
2538         (target_has_forked, target_has_vforked, target_has_execd)
2539         (target_has_syscall_event): Remove macros.
2540
2541 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2542
2543         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2544         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2545         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2546         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2547         * target.c (cleanup_target): Remove reference to
2548         to_can_follow_vfork_prior_to_exec.
2549         (update_current_target): Likewise.
2550         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2551         (setup_target_debug): Remove reference to
2552         to_can_follow_vfork_prior_to_exec.
2553         * target.h (struct target_ops): Remove
2554         to_can_follow_vfork_prior_to_exec.
2555         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2556         (target_can_follow_vfork_prior_to_exec): Remove definition.
2557         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2558         define.
2559         * infrun.c (follow_vfork_when_exec): Remove.
2560         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2561         (follow_exec): Likewise.
2562         (handle_inferior_event): Likewise.
2563         (keep_going): Likewise.
2564
2565 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2566
2567         * frame.c (generic_unwind_get_saved_register): Make static.
2568         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2569         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2570         defaults to generic_unwind_get_saved_register.
2571         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2572         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2573         * frv-tdep.c (frv_gdbarch_init): Ditto.
2574         * i386-tdep.c (i386_gdbarch_init): Ditto.
2575         * s390-tdep.c (s390_gdbarch_init): Ditto.
2576         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2577         * v850-tdep.c (v850_gdbarch_init): Ditto.
2578         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2579         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2580         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2581
2582 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2583
2584         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2585         i386-tdep.c.
2586
2587 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2588
2589         * frame.h (sigtramp_saved_pc): Delete declaration.
2590         * blockframe.c (sigtramp_saved_pc): Delete function.
2591         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2592         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2593         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2594         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2595
2596 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2597
2598         * frame.c (frame_pc_unwind): New function.
2599         (frame_saved_regs_pc_unwind): New function.
2600         (frame_register_unwind): Pass unwind_cache instead of
2601         register_unwind_cache.
2602         (set_unwind_by_pc): Add unwind_pc parameter, set.
2603         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2604         (get_prev_frame): Ditto.
2605         * frame.h (frame_pc_unwind_ftype): Declare.
2606         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2607         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2608         (frame_pc_unwind): Declare.
2609         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2610         (struct dummy_frame): Add comment mentioning that values are for
2611         previous frame.
2612         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2613         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2614         (generic_file_frame_chain_valid): Ditto.
2615         * stack.c (frame_info): Ditto.
2616
2617 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2618
2619         * linespec.c (locate_first_half): New function.
2620         (decode_line_1): Move code into locate_first_half.
2621
2622 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2623
2624         * complaints.h: Add comment explaining how to eliminate a
2625         deprecated_complain call.
2626         * complaints.h: Fix spelling errors.
2627
2628 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2629
2630         * printcmd.c: Remove #include "disasm.h".
2631
2632 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2633
2634         * frame.h: Move the most relevant interface functions to the start
2635         of the file.
2636
2637 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2638
2639         * regcache.h (deprecated_registers): Rename registers.
2640         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2641         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2642         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2643         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2644         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2645         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2646         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2647         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2648         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2649         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2650         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2651         * v850ice.c: Update.
2652
2653 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2654
2655         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2656         NULL buffer.
2657
2658 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2659
2660         * regcache.h (deprecated_read_register_bytes): Rename
2661         read_register_bytes.
2662         (deprecated_write_register_bytes): Rename write_register_bytes.
2663         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2664         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2665         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2666         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2667         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2668         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2669         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2670         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2671         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2672         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2673         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2674         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2675         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2676         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2677
2678 2002-11-13  Jim Blandy  <jimb@redhat.com>
2679
2680         * findvar.c (read_var_value): Doc fix.
2681
2682 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2683
2684         * regcache.c (struct regcache): Replace passthough_p with
2685         readonly_p.
2686         (regcache_xmalloc): Initialize readonly_p.
2687         (build_regcache): Initialize readonly_p.
2688         (regcache_save): New function.
2689         (regcache_restore): New function.
2690         (regcache_cpy): Re-implement using regcache_save and
2691         regcache_restore.
2692         (regcache_raw_read): Update.
2693         (regcache_cooked_read): When a read-only cache, checked for cached
2694         pseudo register values.
2695         (regcache_raw_write): Assert that the cache is not read-only.
2696         Remove code handling a non-passthrough cache.
2697         * regcache.h (regcache_save): Declare.
2698         (regcache_restore): Declare.
2699
2700 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2701
2702         * regcache.c (struct regcache_descr): Add fields
2703         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2704         (init_legacy_regcache_descr): Compute the size of a cooked
2705         register cache and then assign that to sizeof_raw_registers.  Set
2706         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2707         (init_legacy_regcache_descr): Ditto.
2708
2709 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2710
2711         * regcache.c (register_buffer): Move to near start of file, update
2712         description.
2713         (regcache_raw_read): Use.
2714         (regcache_raw_write): Use.
2715         (struct regcache): Rename raw_registers to registers and
2716         raw_register_valid_p to register_valid_p.
2717         (regcache_xmalloc): Update.
2718         (regcache_xfree): Update.
2719         (register_buffer): Update.
2720         (regcache_cpy): Update.
2721         (regcache_cpy_no_passthrough): Update.
2722         (regcache_valid_p): Update.
2723         (deprecated_grub_regcache_for_registers): Update.
2724         (deprecated_grub_regcache_for_register_valid): Update.
2725         (set_register_cached): Update.
2726         (regcache_raw_write): Update.
2727
2728 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2729
2730         * p-exp.y (name_not_typename): Use copy_name to
2731         set current_type variable for fields of THIS.
2732
2733 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2734
2735         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2736         * monitor.c (init_base_monitor_ops): Likewise.
2737         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2738         * remote-array.c (init_array_ops): Likewise.
2739         * remote-e7000.c (init_e7000_ops): Likewise.
2740         * remote-es.c (init_es1800_ops): Likewise.
2741         (init_es1800_child_ops): Likewise.
2742         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2743         * remote-sim.c (init_gdbsim_ops): Likewise.
2744         * remote-st.c (init_st2000_ops): Likewise.
2745         * sol-thread.c (init_sol_core_ops): Likewise.
2746         (init_sol_thread_ops): Likewise.
2747         * v850ice.c (init_850ice_ops): Likewise.
2748         * win32-nat.c (init_child_ops): Likewise.
2749         * wince.c (init_child_ops): Likewise.
2750
2751 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2752
2753         * utils.c (gdb_realpath): Make rp a constant pointer.
2754
2755 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2756
2757         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2758         a constant buffer; cannonicalize_file_name(); realpath() with a
2759         pathconf() defined buffer, xstrdup().
2760
2761 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2762
2763         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2764         to hang2.C; hang3.c to hang3.C.
2765
2766 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2767
2768         * findvar.c (read_var_value): Reenable TLS code.
2769
2770 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2771             Jim Blandy  <jimb@redhat.com>
2772         
2773         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2774         * target.c (update_current_target): Add
2775         to_get_thread_local_address.
2776         * target.h (to_get_thread_local_address): Export.
2777         (target_get_thread_local_address): Define.
2778         (target_get_thread_local_address_p): Define.
2779         * thread-db.c: Include solib-svr4.h.
2780         (td_thr_tls_get_addr_p): Define.
2781         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2782         (thread_db_get_thread_local_address): New function.
2783         (init_thread_db_ops): Initialize to_get_thread_local_address.
2784         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2785         * configure: Regenerate.
2786         * config.in: Regenerate.
2787
2788 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2789
2790         * linespec.c (set_flags): New function.
2791         (decode_line_1): Move code into set_flags.
2792
2793 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2794
2795         * linespec.c (decode_line_1): Move chunks of code to separate
2796         functions.
2797         (initialize_defaults): New function.
2798         (decode_indirect): New function.
2799
2800 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2801
2802         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2803         instead of void_code_ptr.
2804         (sigtramp_saved_pc): Ditto.
2805
2806         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2807         i386_fp_regnum_p.
2808
2809 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2810
2811         * gdbtypes.h (struct main_type): Move artificial flag out of
2812         loc.  New member of ``struct field'' named static_kind.  Reduce
2813         overloaded meaning of bitsize.
2814         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2815         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2816         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2817
2818         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2819         new fields.
2820         (template_to_fixed_record_type, template_to_static_fixed_type)
2821         (to_record_with_fixed_variant_part): Likewise.
2822         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2823         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2824         * dwarfread.c (struct_type, enum_type): Likewise.
2825         * hpread.c (hpread_read_enum_type)
2826         (hpread_read_function_type, hpread_read_doc_function_type)
2827         (hpread_read_struct_type): Likewise.
2828         * mdebugread.c (parse_symbol): Likewise.
2829
2830 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2831
2832         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2833         * stack.c (print_frame_info_base): Update.
2834         (print_frame_info_base, frame_info): Update.
2835         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2836         (sparc_frame_saved_pc): Update.
2837         * ada-lang.c (find_printable_frame): Update.
2838         * breakpoint.c (deprecated_frame_in_dummy): Update.
2839         
2840 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2841
2842         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2843         defined.
2844         (regmap): Extend to cover all registers.
2845         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2846         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2847         definitions.
2848         (fetch_register, sore_register): Simplify.
2849         (old_fetch_inferior_registers, old_store_inferior_registers):
2850         Remove functions.
2851         (cannot_fetch_register, cannot_store_register): Change
2852         implementation to use regmap array to decide which registers
2853         cannot be fetched/stored.  This removes $orig_eax from the
2854         registers that cannot be fetched/stored.
2855         (fetch_inferior_registers): Call fetch_register directly instead
2856         of calling old_fetch_inferior_registers.
2857         (store_inferior_registers): Call store_register directly instead
2858         of calling old_store_inferior_registers.
2859         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2860         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2861         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2862
2863 2002-11-09  Klee Dienes  <kdienes@apple.com>
2864
2865         * i387-tdep.c (i387_supply_register): When called with NULL as a
2866         buffer, mark the register as not provided (to mirror the behavior
2867         of supply_register).
2868         (i387_supply_fxsave): Ditto.
2869         (i387_supply_fsave): Ditto (inherits the behavior from
2870         i387_supply_register).
2871
2872 2002-11-09  Klee Dienes  <kdienes@apple.com>
2873
2874         * blockframe.c (sigtramp_saved_pc): Use
2875         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2876         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2877         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2878         
2879 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2880
2881         * frame.c (get_prev_frame): Test prev_p to identify a previously
2882         unwound frame.  Initialize prev_p.
2883         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2884         comment.
2885
2886 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2887
2888         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2889         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2890         more comments.  Zap dead code.
2891
2892 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2893
2894         * infcmd.c (print_vector_info, print_float_info): Move code that
2895         checks whether the target has any registers and whether there is a
2896         selected frame up, such that it is also used if a target provides
2897         multi-arch definitions of these functions.
2898
2899 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2900
2901         * Makefile.in (DESTDIR): Define.
2902         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2903         prefix.
2904
2905         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2906         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2907
2908 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2909
2910         * i386-linux-tdep.c: Include "reggroups.h".
2911         (i386_linux_register_reggroup_p): New function.
2912         (i386_linux_init_abi): Set register_reggroup_p to
2913         i386_linux_register_reggroup_p.
2914         * i386-tdep.h (i386_register_reggroup_p): Declare.
2915         * i386-tdep.c: Include "reggroups.h".
2916         (i386_init_reggroups): New function.
2917         (i386_add_reggroups): New function.
2918         (i386_register_reggroup_p): New function.
2919         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2920         (_initialize_i386_tdep): Call i386_init_reggroups.
2921         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2922         specific reggroups.
2923
2924 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2925
2926         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2927         request that's available in *BSD.
2928
2929         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2930
2931         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2932         FDOFF_REGNUM.
2933
2934 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2935
2936         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2937         * dummy-frame.c (find_dummy_frame): Rename
2938         generic_find_dummy_frame, make static.  Return the dummy frame
2939         instead of the regcache.
2940         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2941         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2942         (dummy_frame_register_unwind): Rename
2943         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2944         * dummy-frame.h (dummy_frame_register_unwind): Rename
2945         generic_call_dummy_register_unwind.
2946
2947 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2948
2949         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2950         except the inclusion of "i386/tm-i386.h", to...
2951         * config/i386/nm-i386v42mp.h: ...here.
2952         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2953
2954 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2955
2956         * Makefile.in (frame.o): Update dependencies.
2957         * blockframe.c (current_frame, frame_obstack_alloc)
2958         (frame_saved_regs_zalloc, get_current_frame)
2959         (set_current_frame, create_new_frame)
2960         (set_unwind_by_pc, get_next_frame)
2961         (flush_cached_frames, reinit_frame_cache)
2962         (frame_saved_regs_register_unwind)
2963         (deprecated_generic_get_saved_register)
2964         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2965         (_initialize_blockframe): Move frame code from here...
2966         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2967         "annotate.h" and "dummy-frame.h".
2968         (_initialize_frame): New function.
2969
2970 2002-11-08  Jim Blandy  <jimb@redhat.com>
2971
2972         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2973         when we finish a function a context.
2974         * buildsym.h (outermost_context_p): New macro.
2975         (Bug analyzed by David Edelsohn.)
2976
2977 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2978
2979         * blockframe.c: Include "dummy-frame.h".
2980         (struct dummy_frame, dummy_frame_stack)
2981         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2982         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2983         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2984         (generic_save_call_dummy_addr, generic_pop_current_frame)
2985         (generic_pop_dummy_frame, generic_fix_call_dummy)
2986         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2987         dummy frame code from here...
2988         * dummy-frame.c: ...to here.  New file.
2989         * dummy-frame.h: New file.
2990         (generic_call_dummy_register_unwind): Declare.
2991         (generic_find_dummy_frame): Declare.
2992         * Makefile.in (SFILES): Add dummy-frame.c.
2993         (dummy-frame.o): Specify dependencies.
2994         (dummy_frame_h): Define.
2995         (COMMON_OBS): Add dummy-frame.o.
2996         (blockframe.o): Update dependencies.
2997
2998 2002-11-08  Jim Blandy  <jimb@redhat.com>
2999
3000         * dwarf2read.c (read_func_scope): Restore local_symbols and
3001         param_symbols after we finish the function context.  (Based on a
3002         patch from David Edelsohn.)
3003
3004 2002-11-08  David Carlton  <carlton@math.stanford.edu>
3005
3006         * linespec.c (symbol_found): New function.
3007         (minsym_found): New function.
3008         (decode_line_1): Separate out some code into separate functions.
3009
3010 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
3011
3012         * i386-tdep.c (i386_frameless_signal_p): Make non static for
3013         the benefit of the interix target.
3014         * i386-tdep.h (i386_frameless_signal_p): Declare.
3015
3016 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
3017
3018         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3019         declaration that snuck in from change below.
3020
3021 2002-11-06  Andrew Cagney  <cagney@redhat.com>
3022
3023         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
3024         all callers.
3025         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
3026         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
3027         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
3028         (i386_mxcsr_regnum_p): new function.  Use instead of
3029         MXCSR_REGNUM_P.
3030         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3031         (i386_sse_regnum_p): Declare.
3032         (i386_mxcsr_regnum_p): Declare.
3033         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3034         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3035         (IS_FP_REGNUM): Update definition.
3036         (IS_FPU_CTRL_REGNUM): Update definition..
3037         (IS_SSE_REGNUM): Update definition..
3038         * i386v-nat.c (register_u_addr): Update.
3039         * go32-nat.c (fetch_register): Update.
3040         (store_register): Update.
3041
3042 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3043
3044         Preparation work to convert the hppa targets to multiarch partial.
3045
3046         * hppa-tdep.c: Add new functions replacing macro bodies from
3047         config/pa/tm-hppa.h. These function will be used to initialize
3048         the gdbarch structure. Import some comments from tm-hppa.h,
3049         and place them where appropriate, to avoid loosing them when
3050         we cleanup this file.
3051         (hppa_reg_struct_has_addr): New function.
3052         (hppa_inner_than): New function.
3053         (hppa_stack_align): New function.
3054         (hppa_pc_requires_run_before_use): New function.
3055         (hppa_instruction_nullified): New function.
3056         (hppa_register_byte): New function.
3057         (hppa_register_virtual_type): New function.
3058         (hppa_store_struct_return): New function.
3059         (hppa_cannot_store_register): New function.
3060         (hppa_frame_args_address): New function.
3061         (hppa_frame_locals_address): New function.
3062         (hppa_smash_text_address): New function.
3063         (hppa_coerce_float_to_double): New function. Requires the inclusion
3064         of "language.h".
3065
3066         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3067
3068         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3069         gdbarch-eligible macro to a call to the new associated function
3070         created in hppa-tdep.c.
3071         (INNER_THAN): Likewise.
3072         (STACK_ALIGN): Likewise.
3073         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3074         (INSTRUCTION_NULLIFIED): Likewise.
3075         (REGISTER_BYTE): Likewise.
3076         (REGISTER_VIRTUAL_TYPE): Likewise.
3077         (STORE_STRUCT_RETURN): Likewise.
3078         (CANNOT_STORE_REGISTER): Likewise.
3079         (FRAME_ARGS_ADDRESS): Likewise.
3080         (FRAME_LOCALS_ADDRESS): Likewise.
3081         (SMASH_TEXT_ADDRESS): Likewise.
3082         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3083         (ABOUT_TO_RETURN): Delete, as no longer used.
3084
3085 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3086
3087         * printcmd.c (disassemble_command): Remove obsolete function.
3088         (_initialize_printcmd): Do not create disassemble command here.
3089         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3090         disassemble command.
3091         (init_cli_cmds): Create disassemble command here instead.
3092
3093 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3094
3095         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3096
3097 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3098
3099         * regcache.h (regcache_cooked_read_using_offset_hack)
3100         (regcache_cooked_write_using_offset_hack): Delete declarations.
3101         (register_changed): Delete declaration.
3102         * regcache.c (regcache_cooked_read_using_offset_hack)
3103         (regcache_cooked_write_using_offset_hack): Delete functions.
3104         (cooked_xfer_using_offset_hack): Delete function.
3105         (register_changed): Delete function.
3106
3107 2002-11-07  Jim Blandy  <jimb@redhat.com>
3108
3109         * macroscope.c: #include "complaints.h".
3110         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3111         but not in the macro table.
3112         * Makefile.in (macroscope.o): Record dependency.
3113
3114 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3115
3116         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3117
3118 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3119
3120         * regcache.c (deprecated_registers_fetched): Update.
3121         * regcache.h (deprecated_registers_fetched): Rename
3122         registers_fetched.
3123         * remote-vxsparc.c (vx_read_register): Update.
3124         * remote-vxmips.c (vx_read_register): Update.
3125         * remote-vx68.c (vx_read_register): Update.
3126         * irix5-nat.c (fetch_core_registers): Update.
3127         * mipsm3-nat.c (fetch_inferior_registers): Update.
3128         * sun3-nat.c (fetch_inferior_registers): Update.
3129         * symm-nat.c (fetch_inferior_registers): Update.
3130         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3131         (fetch_core_registers): Update.
3132         (fetch_kcore_registers): Update.
3133         * mips-nat.c (fetch_inferior_registers): Update.
3134         * corelow.c (get_core_registers): Update.
3135         * a68v-nat.c (fetch_inferior_registers): Update.
3136
3137 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3138
3139         Put in place the framework necessary for multiarching the hppa targets.
3140         * hppa-tdep.c (hppa_gdbarch_init): New function.
3141         (hppa_dump_tdep): New function.
3142         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3143         tdep structure dumper.
3144         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3145         until the multi-arching conversion has partially been completed.
3146
3147 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3148
3149         * valops.c (value_assign): Merge lval_register case into
3150         lval_reg_frame_relative.  Use frame_register and
3151         regcache_cooked_write instead of get_saved_register and
3152         write_register_bytes.  After flushing the register cache, try to
3153         re-select the selected frame.
3154
3155 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3156
3157         * regcache.h (deprecated_register_valid): Rename register_valid.
3158         * regcache.c: Update.
3159         * ia64-aix-nat.c: Update.
3160         * i386gnu-nat.c: Update.
3161         * alpha-nat.c: Update.
3162         * sparc-nat.c: Update.
3163         * lynx-nat.c: Update.
3164         * remote-mips.c: Update.
3165
3166 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3167
3168         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3169         to end of file, to be more consistent with the pratice followed
3170         by other targets.
3171
3172 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3173
3174         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3175         (print_float_info): Print registers in float_reggroup.
3176         (print_vector_info): Print registers in vector_reggroup.
3177         (default_print_registers_info): When all, print registers in
3178         all_reggroup.  Otherwize, print registers in general_reggroup.
3179         (registers_info): Rewrite.  Add support for register groups.
3180         Eliminate a goto.
3181
3182 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3183
3184         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3185         ages.
3186         (symtab_symbol_info): Remove eons old ifdeffed out code.
3187         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3188         command.
3189
3190 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3191
3192         * c-exp.y: Add missing semi-colons.
3193         * f-exp.y: Add missing semi-colons.
3194         * m2-exp.y: Add missing semi-colons.
3195         * p-exp.y: Add missing semi-colons.
3196         Add empty action to start rule to avoid a type clash error when
3197         building with bison >= 1.50.
3198
3199 2002-11-06  Jim Blandy  <jimb@redhat.com>
3200
3201         * macrotab.h (struct macro_source_file): Doc fix.
3202
3203 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3204
3205         * varobj.c (child_exists, cplus_number_of_children): Change
3206         STREQ macro references to strcmp.
3207         (cplus_name_of_child): Change code to handle the fact that
3208         fields are not necessarily contiguous with regards to their 
3209         access control. This is a fix for PR gdb/792.
3210
3211 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3212
3213         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3214         * gdbarch.h, gdbarch.c: Regnerate.
3215         * frame.h (frame_register): Declare.
3216         * frame.c (frame_register): New function.
3217         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3218         GET_SAVED_REGISTER, otherwize call
3219         generic_unwind_get_saved_register.
3220         (frame_register_read): Use frame_register instead of
3221         get_saved_register.
3222
3223 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3224         
3225         From Jim Ingham  <jingham@apple.com>:
3226         * event-top.c (gdb_disable_readline): New function.
3227         (_initialize_event_loop): Move comment.
3228
3229 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3230
3231         * event-loop.c (start_event_loop): Add comment.
3232         Update copyright.
3233
3234 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3235
3236         * infcmd.c (default_print_registers_info): Do not call
3237         PRINT_REGISTER_HOOK.
3238
3239 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3240
3241         * sparc-tdep.c (sparc_print_register_hook): Make static.
3242         (sparc_print_registers_info): New function.
3243         (sparc_do_registers_info): New function.
3244         (sparclet_print_registers_info): New function.
3245         (sparclet_do_registers_info): New function.
3246         (do_sparc_print_registers_info): New function.
3247         (sparc_print_registers): New static function, clone of infcmd.c's
3248         default_print_registers_info.
3249         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3250         (sparclet_do_registers_info): Declare.
3251         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3252         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3253         Re-define.
3254         (sparc_do_registers_info): Declare.
3255         (PRINT_REGISTER_HOOK): Delete macro.
3256         (sparc_print_register_hook): Delete declaration.
3257
3258 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3259
3260         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3261         functions.
3262         (lookup_symbol_aux_local): New function.
3263         (lookup_symbol_aux_symtabs): New function.
3264         (lookup_symbol_aux_psymtabs): New function.
3265
3266 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3267
3268         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3269         previous values of 'objfile' and 'block'.
3270
3271 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3272
3273         * values.c (value_change_enclosing_type): Set 
3274         enclosing_type field correctly also for the case where 
3275         more memory needs to be allocated.
3276
3277 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3278
3279         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3280         of puts_filtered.
3281
3282         * i387-tdep.c (i387_print_float_info): Replace calls to
3283         register_read and deprecated_read_register_gen with calls to
3284         frame_register_read, and make the necessary adjustments to the
3285         surrounding code.
3286
3287 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3288
3289         * gdbarch.sh (register_reggroup_p): Allow default value.
3290         * gdbarch.h, gdbarch.c: Regenerate.
3291
3292 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3293
3294         * regcache.h: Add coment indicating replacements for deprecated
3295         functions.
3296
3297 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3298
3299         * reggroups.h, reggroups.c: New files.
3300         * regcache.c: Include "reggroups.h".
3301         (enum regcache_dump_what): Add `regcache_dump_groups'.
3302         (regcache_dump): Contract size of the "Type" column.  When
3303         specified, dump the register's groups.
3304         (maintenance_print_register_groups): New function.
3305         (_initialize_regcache): Add command `maint print register-groups'.
3306         * Makefile.in (COMMON_OBS): Add reggroups.o
3307         (SFILES): Add reggroups.c.
3308         (reggroups_h): Define.
3309         (regcache.o, gdbarch.o): Update dependencies.
3310         (reggroups.o): Specify dependencies.
3311         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3312         Add opaque declaration for `struct reggroup' in generated .h file.
3313         Include "reggroups.h" in generated .c file.
3314         gdbarch.h, gdbarch.c: Re-generate.
3315
3316 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3317
3318         * regcache.h (deprecated_read_register_gen): Rename
3319         read_register_gen.
3320         (deprecated_write_register_gen): Rename write_register_gen.
3321         * i387-tdep.c: Update.
3322         * x86-64-linux-nat.c: Update
3323         * wince.c: Update.
3324         * thread-db.c: Update.
3325         * win32-nat.c: Update.
3326         * mips-tdep.c: Update.
3327         * d10v-tdep.c: Update.
3328         * cris-tdep.c: Update.
3329         * remote-sim.c: Update.
3330         * remote-rdi.c: Update.
3331         * remote-rdp.c: Update.
3332         * frame.c: Update.
3333         * target.c: Update.
3334         * blockframe.c: Update.
3335         * x86-64-tdep.c: Update.
3336         * xstormy16-tdep.c: Update.
3337         * sh-tdep.c: Update.
3338         * s390-tdep.c: Update.
3339         * rs6000-tdep.c: Update.
3340         * sparc-tdep.c: Update.
3341         * i386-tdep.c: Update.
3342         * dwarf2cfi.c: Update.
3343         * regcache.c: Update.
3344
3345 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3346
3347         New interix-specific files:
3348         * config/i386/nm-interix.h: New file.
3349         * config/i386/interix.mh: New file.
3350         * config/i386/interix.mt: New file.
3351         * i386-interix-nat.c: New file.
3352         * i386-interix-tdep.c: New file.
3353
3354 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3355
3356         * frame.h (deprecated_generic_get_saved_register): Rename
3357         generic_get_saved_register.
3358         * blockframe.c (deprecated_generic_get_saved_register): Update.
3359         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3360         (xstormy16_frame_saved_register): Update.
3361         * sh-tdep.c (sh_gdbarch_init): Update.
3362         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3363         * ia64-tdep.c (ia64_get_saved_register): Update.
3364         * cris-tdep.c (cris_gdbarch_init): Update.
3365         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3366         * arm-tdep.c (arm_gdbarch_init): Update.
3367
3368 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3369
3370         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3371
3372 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3373
3374         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3375         trampolines in sigaction.
3376
3377 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3378
3379         * h8300-tdep.c: Include "gdb_assert.h".
3380         (h8300_print_register): Add gdbarch, file and frame parameters.
3381         Use frame_read_unsigned_register to read the register's value.
3382         Use fprintf_filtered to display output.
3383         (h8300_print_registers_info): Replace h8300_do_registers_info.
3384         (h8300_gdbarch_init): Set print_registers_info.
3385
3386 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3387
3388         * frame.c (frame_read_unsigned_register): New function.
3389         (frame_read_signed_register): New function.
3390         * frame.h (frame_read_unsigned_register): Declare.
3391         (frame_read_signed_register): Declare.
3392
3393 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3394
3395         * h8500-tdep.c (h8500_print_registers_info): New static function,
3396         clone of infcmd.c's default_print_registers_info.
3397         (h8500_do_registers_info): New funtion.
3398         (h8500_print_register_hook): Rename print_register_hook, make
3399         static.
3400
3401         * config/h8500/tm-h8500.h: Update copyright.
3402         (DEPRECATED_DO_REGISTERS_INFO): Define.
3403         (h8500_do_registers_info: Declare.
3404         (PRINT_REGISTER_HOOK): Delete macro.
3405         (print_register_hook): Delete function.
3406
3407 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3408
3409         * z8k-tdep.c (z8k_print_register_hook): Make static.
3410         (z8k_print_registers_info): New static function, clone of
3411         infcmd.c's default_print_registers_info.
3412         (z8k_do_registers_info): New function.  Wrap
3413         z8k_print_registers_info.
3414         * config/z8k/tm-z8k.h: Update copyright.
3415         (PRINT_REGISTER_HOOK): Delete macro.
3416         (z8k_print_register_hook): Delete declaration.
3417         (DEPRECATED_DO_REGISTERS_INFO): Define.
3418         (z8k_do_registers_info): Declare.
3419
3420 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3421
3422         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3423         as this is already provided by value.h, and was actually causing
3424         a compilation error because of a conflict in parameter type
3425         declaration due to a missing const keyword.
3426         (low_text_segment_addres): Fix a compilation warning.
3427
3428 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3429
3430         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3431         registers without a name.
3432         (mips_linux_cannot_store_register): Don't store registers without
3433         a name.
3434
3435 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3436
3437         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3438         out.)
3439         * symtab.h: Delete prototype for find_addr_symbol.
3440
3441 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3442
3443         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3444         DO_REGISTERS_INFO.
3445         gdbarch.h, gdbarch.c: Re-generate.
3446         * infcmd.c (default_print_registers_info): Update reference.
3447         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3448         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3449         * sh-tdep.c (sh_gdbarch_init): Ditto.
3450         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3451         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3452
3453 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3454
3455         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3456         cfi_init_extra_frame_info.
3457         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3458         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3459
3460         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3461         target where necessary.  Add more comments and remove the ones
3462         that don't provide any useful information.
3463
3464         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3465         deprecated_read_register_dummy with
3466         frame_unwind_unsigned_register.
3467
3468         * i386-tdep.c (i386_extract_struct_value_address): Use
3469         regcache_raw_read_unsigned instead of
3470         regcache_cooked_read_unsigned since we know that the register
3471         we're reading isn't a pseudo register.  Rename variable 'val' into
3472         the more descriptive 'addr'.
3473
3474         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3475         (x86_64_push_return_address): Add comment.
3476         (x86_64_pop_frame): Make static.
3477         (examine_argument): Clarify comment.
3478         (x86_64_skip_prologue): Make prolog_expact variable static.
3479
3480         * dwarf2cfi.c: Fix some formatting problems.
3481         (context_cpy, read_encoded_pointer): Clarify comments.
3482
3483         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3484         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3485         i386 target back into x86_64_gdbarch_init.  Add some comments and
3486         remove meaningless ones.
3487
3488 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3489
3490         * complaints.h (struct deprecated_complaint): Rename `struct
3491         complaint'.
3492         * complaints.c (complain): Update.
3493         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3494         incorrect comment indicating that "symfile.h" was being included
3495         for the `struct complaint' definition.
3496         * remote-vx.c: Update.
3497         * objc-lang.c: Update.
3498         * xcoffread.c: Update.
3499         * hpread.c: Update.
3500         * mdebugread.c: Update.
3501         * stabsread.c: Update.
3502         * dwarf2read.c: Update.
3503         * dwarfread.c: Update.
3504         * elfread.c: Update.
3505         * coffread.c: Update.
3506         * stabsread.h: Update.
3507         * dbxread.c: Update.
3508         * buildsym.c: Update.
3509         * gdbtypes.c: Update.
3510         * macrotab.c: Update.
3511
3512 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3513
3514         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3515         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3516         (x86_64_init_abi): ...new function.
3517
3518         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3519         * i386v-nat.c: Include "i386-tdep.h".
3520
3521 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3522
3523         * gdbtypes.c (address_space_name_to_int): Update.
3524         (address_space_int_to_name): Update.
3525         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3526         multi-arch predicate.
3527         (address_class_name_to_type_flags): Ditto.
3528         * gdbarch.h, gdbarch.c: Re-generate.
3529         
3530         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3531
3532 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3533
3534         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3535
3536 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3537
3538         * symtab.h (INIT_SAL): Delete macro.
3539         (init_sal): Export.
3540         * symtab.c (init_sal): New function.
3541
3542         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3543         to init_sal function call.
3544         (find_sal_from_funcs_and_line): Ditto.
3545         (all_sals_for_line): Ditto. 
3546         * breakpoint.c (create_internal_breakpoint): Ditto. 
3547         (create_fork_vfork_event_catchpoint): Ditto. 
3548         (create_exec_event_catchpoint): Ditto. 
3549         (parse_breakpoint_sals): Ditto. 
3550         (watch_command_1): Ditto. 
3551         (handle_gnu_4_16_catch_command): Ditto.
3552         (clear_command): Ditto. 
3553         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3554         * infcmd.c (run_stack_dummy): Ditto. 
3555         * infrun.c (process_event_stop_test): Ditto.
3556         (check_sigtramp2): Ditto.
3557         (step_over_function): Ditto. 
3558         * linespec.c (decode_line_2): Ditto. 
3559         (decode_line_1): Ditto. 
3560         * source.c (line_info): Ditto. 
3561         * symtab.c (find_pc_sect_line): Ditto.
3562
3563 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3564
3565         * dwarf2cfi.c (struct context)
3566         (struct context_reg): Moved to dwarf2cfi.h
3567         (context_alloc, frame_state_alloc, context_cpy):
3568         Made extern instead of static, removed prototypes.
3569         * dwarf2cfi.h (struct context)
3570         (struct context_reg): New, moved from dwarf2cfi.c
3571         (context_alloc, frame_state_alloc, context_cpy):
3572         New prototypes.
3573         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3574         Changed from static to extern.
3575         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3576         (LINUX_SIGCONTEXT_FP_OFFSET)
3577         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3578         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3579         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3580         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3581         set_gdbarch_*() calls now use x86-64 specific functions 
3582         instead of DWARF2 CFI ones.
3583         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3584         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3585         (x86_64_init_extra_frame_info): New prototypes.
3586         
3587 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3588
3589         * linespec.c: #include "parser-defs.h".
3590         Delete prototype for find_template_name_end.
3591         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3592
3593 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3594
3595         * NEWS: add recent mi fixes.
3596         * varobj.c (struct varobj): Add new "updated" flag.
3597         (new_variable): Default "updated" flag to 0.
3598         (varobj_set_value): Set "updated" flag to 1 if value
3599         changes.
3600         (varobj_update): Check varobj "updated" flag before
3601         comparing old and refreshed values.  Fix for
3602         PR gdb/702.
3603
3604 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3605
3606         * parse.c (parse_exp_1): Use BLOCK_START.
3607         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3608         SYMBOL_BLOCK_VALUE.
3609         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3610
3611 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3612
3613         * symtab.c: Delete cplusplus_hint.
3614         Delete prototype for find_template_name_end.
3615
3616 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3617
3618         * symtab.h: Update comment.
3619
3620 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3621
3622         * printcmd.c (address_info): Restore quotes in output.
3623         * valops.c (value_of_local): Restore quotes in error message.
3624
3625 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3626
3627         * symtab.c (symbol_demangled_name): New function.
3628         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3629         turning most of it into a function.
3630         (symbol_demangled_name): Export.
3631
3632 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3633
3634         * valops.c (value_of_local): Restore quotes in error message.
3635
3636 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3637
3638         * symtab.c (symbol_init_language_specific): New function.
3639         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3640         turning most of it into a function.
3641         (symbol_init_language_specific): Export.
3642
3643 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3644
3645         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3646         (dwarf_attr_name): Ditto.
3647         (dwarf_type_encoding_name): Ditto.
3648         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3649         (process_die): Handle DW_TAG_namespace,
3650         DW_TAG_imported_declaration, DW_TAG_imported_module.
3651         (read_namespace): New function.
3652
3653 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3654
3655         * configure.in: Define NEW_PROC_API on Interix too.
3656         * configure: Regenerate.
3657
3658 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3659
3660         * configure: Regenerate using the proper version of autoconf.
3661
3662 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3663
3664         * findvar.c (read_var_value): Temporarily disable TLS code, until
3665         complete TLS support is added.
3666
3667 2002-10-21  Jim Blandy  <jimb@redhat.com>
3668             Elena Zannoni  <ezannoni@redhat.com>
3669
3670         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3671         for thread local storage locations.
3672         (struct symbol): Add objfile field.
3673         (SYMBOL_OBJFILE): Define.
3674         * dwarf2read.c (is_thread_local): New static variable.
3675         (new_symbol): If variable is in thread local fill in address class
3676         and objfile appropriately.
3677         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3678         stack operation.
3679         * printcmd.c (address_info): Print the information for thread
3680         local storage variable.
3681         * findvar.c (read_var_value): In case of thread local variable,
3682         defer to the target vector code to compute address.
3683
3684 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3685
3686         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3687         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3688
3689 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3690
3691         * symtab.h (address_class):  Rename
3692         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3693         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3694         * printcmd.c (address_info): Ditto.
3695         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3696
3697 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3698
3699         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3700         DBREG_DRX macro to acces debug registers.
3701
3702         * Makefile.in (i386obsd-tdep.o): New target.
3703
3704         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3705         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3706
3707         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3708         * config/i386/obsd.mt: New file.
3709         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3710         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3711         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3712         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3713         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3714         * i386obsd-tdep.c: New file.
3715
3716 2002-10-19  Adam Fedor  <fedor@gnu.org>
3717
3718         * objc-exp.y (name_not_typename): Fix invalid comment.  
3719
3720 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3721
3722         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3723         to allocate partial syms and macro byte caches.
3724
3725 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3726
3727         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3728
3729 2002-10-18  Adam Fedor  <fedor@gnu.org>
3730
3731         * stabsread.c (find_name_end): New function.
3732         (define_symbol): Use it.
3733
3734 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3735
3736         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3737         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3738         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3739         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3740
3741 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3742
3743         * symfile.h: Add opaque declaration for struct obstack.
3744         Declare obsavestring to take a const char *.
3745         * symfile.c (obsavestring): Make first argument a const char *.
3746
3747 2002-10-16  Adam Fedor  <fedor@gnu.org>
3748
3749         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3750         names when matching breakpoints in current file.
3751
3752 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3753
3754         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3755         (read_tag_pointer_type): Add address class support.
3756         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3757         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3758         New methods.
3759         * gdbarch.h, gdbarch.c: Regenerate.
3760         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3761         (make_type_with_address_space, recursive_type_dump): Add address
3762         class support.
3763         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3764         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3765         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3766
3767 2002-10-16  Klee Dienes  <kdienes@apple.com>
3768
3769         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3770         to get the last character of a char[] buffer, not
3771         name[sizeof(vptr_name)-1].
3772
3773 2002-10-14  Adam Fedor  <fedor@gnu.org>
3774
3775         * symtab.h: New objc_specific struct.
3776         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3777         (SYMBOL_DEMANGLED_NAME): Likewise.
3778
3779 2002-10-14  Adam Fedor  <fedor@gnu.org>
3780
3781         * symfile.c (init_filename_language_table): Add ObjC file extension.
3782
3783 2002-10-14  Adam Fedor  <fedor@gnu.org>
3784
3785         * utils.c (puts_filtered_tabular): New function.
3786         (fprintf_symbol_filtered): Get ObjC demangled name.
3787         * defs.h (puts_filtered_tabular): Declared.
3788
3789 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3790
3791         * c-lang.h (c_type_print_varspec_prefix): Delete.
3792         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3793         ``need_post_space'' parameter.  Adjust all callers.
3794
3795 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3796  
3797         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3798         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3799         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3800         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3801
3802 2002-10-13  Adam Fedor  <fedor@gnu.org>
3803
3804         * source.c (print_source_lines): Update comments.
3805
3806 2002-10-13  Adam Fedor  <fedor@gnu.org>
3807
3808         * valops.c (value_of_local): New function.
3809         (value_of_this): Use it.
3810         * value.h (value_of_local): Declared.
3811
3812 2002-10-13  Adam Fedor  <fedor@gnu.org>
3813
3814         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3815         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3816
3817 2002-10-12  Adam Fedor  <fedor@gnu.org>
3818
3819         * language.c (binop_result_type): Add language_objc to case.
3820         (integral_type): Likewise.
3821         (character_type): Likewise.
3822         (string_type): Likewise.
3823         (boolean_type): Likewise.
3824         (structured_type): Likewise.
3825         (binop_type_check): Likewise.
3826
3827 2002-10-11  Adam Fedor  <fedor@gnu.org>
3828
3829         * printcmd.c (address_info): Print 'self' for ObjC.
3830
3831 2002-10-11  Adam Fedor  <fedor@gnu.org>
3832
3833         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3834         OP_SELF.
3835
3836 2002-10-11  Adam Fedor  <fedor@gnu.org>
3837
3838         * language.h (CAST_IS_CONVERSION): Add language_objc.
3839
3840 2002-10-11  Adam Fedor  <fedor@gnu.org>
3841
3842         * defs.h (enum language): Add language_objc.
3843
3844 2002-10-11  Klee Dienes  <kdienes@apple.com>
3845
3846         * corefile.c (read_memory_typed_address): New function.
3847         * gdbcore.h (read_memory_typed_address): Add prototype.
3848         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3849         to read a value destined for a CORE_ADDR, not read_memory_integer.
3850         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3851         (f77_get_dynamic_lowerbound): Ditto.
3852
3853 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3854
3855         * utils.c (string_to_core_addr): After turning string into
3856         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3857         which will do necessary sign-extension, etc.
3858
3859 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3860
3861         * c-exp.y (THIS): Delete token and grammar rule.
3862         (yylex): Don't return THIS.
3863         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3864         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3865         * demangle.c (cplus_markers): Update comment.  Put '$'
3866         first.  Remove CPLUS_MARKER.
3867         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3868         * jv-exp.y (THIS): Delete token and grammar rule.
3869         (yylex): Don't return THIS.
3870         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3871         * objc-exp.y (THIS): Delete token and grammar rule.
3872         (yylex): Don't return THIS.
3873         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3874         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3875         (read_member_functions): Likewise for opname.
3876         (read_tilde_fields): Use is_cplus_marker.
3877
3878         * defs.h (CPLUS_MARKER): Don't define.
3879         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3880         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3881         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3882         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3883         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3884
3885         * config/i386/tm-i386v4.h: Delete file.
3886         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3887         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3888         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3889         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3890         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3891         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3892         * config/i386/i386v4.mt (TM_FILE): Likewise.
3893         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3894
3895 2002-10-10  Marko Mlinar  <markom@opencores.org>
3896
3897         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3898         accidentially not commited 2002-10-09
3899         * gdbarch.h, gdbarch.c: Re-generate.
3900
3901 2002-10-09  Marko Mlinar  <markom@opencores.org>
3902
3903         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3904         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3905         * gdbarch.h, gdbarch.c: Re-generate.
3906
3907 2002-10-08  Petr Sorfa <petrs@caldera.com>
3908
3909         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3910
3911         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3912         so we can work on more than one compilation unit at a time.  This
3913         helps prepare GDB to handle inter-CU die references.
3914         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3915         the code to be defined before struct comp_unit_head.
3916         (comp_unit_head): Added new members - offset, cu_head,
3917         begin_die, next and dwarf2_abbrevs.
3918         (dwarf2_abbrevs): Removed single static var; now member of
3919         struct comp_unit_head.
3920         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3921         members.
3922         (psymtab_to_symtab_1): Changed to work with the new
3923         struct comp_unit_head.
3924         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3925         constructs the dwarf2_abbrevs[] inside the cu_header.
3926         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3927         dwarf2_abbrev table to clean up.
3928         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3929         handling of dwarf2_abbrevs inside the cu_header.
3930         (read_partial_die): Now supports the call to the new
3931         dwarf2_lookup_abbrev.
3932         (read_full_die): Now supports the call to the new
3933         dwarf2_lookup_abbrev.
3934
3935 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3936
3937         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3938         insure that shell variables, such as "transformed_name" are propagated
3939         to later shell statements in rule.
3940
3941 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3942
3943         * config/i386/nm-i386sco.h: Add protection against
3944         multiple-inclusion.  Include "i386/nm-i386v.h".
3945         (REGISTER_U_ADDR): Remove define.
3946         (i386_register_u_addr): Remove prototype.
3947
3948 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3949
3950         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3951         before treating it as a single-step event.
3952
3953 2002-10-03  Adam Fedor  <fedor@gnu.org>
3954
3955         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3956         (objc_demangle): Remove assignment in if statements, Replace
3957         free with xfree.
3958         (add_msglist): Likewise.
3959         (end_msglist): Likewise.
3960         (complare_selectors): Likewise.
3961         (selectors_info): Likewise.
3962         (compare_classes): Likewise.
3963         (classes_info): Likewise.
3964         (print_object_command): Likewise.
3965         (find_objc_msgcall_submethod): Replace PTR with void *.
3966         * objc-lang.h: Remove check for __STDC__.
3967
3968 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3969
3970         * ui-out.h (ui_out_field_fmt_int): New prototype.
3971         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3972         of field width and alignment.
3973         * stack.c (print_frame_info_base): When printing frame level, use
3974         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3975         PR gdb/192
3976
3977 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3978
3979         * MAINTAINERS: Add self to Write After Approval list.
3980
3981 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3982
3983         * infcmd.c (interrupt_target_command_wrapper): Delete.
3984         (interrupt_target_command): Make non static.
3985         (nofp_registers_info): Make static.
3986         * stack.c (return_command_wrapper): Delete.
3987         (return_command): Make non static.
3988
3989 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3990
3991         * event-top.c (gdb_setup_readline): New function. Code moved from
3992         _initialize_event_loop().
3993         (_initialize_event_loop): Call gdb_setup_readline().
3994
3995 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3996
3997         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3998         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3999         * gdbarch.h, gdbarch.c: Re-generate.
4000
4001 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
4002
4003         Fix PR gdb/778
4004         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4005         before recursing.
4006         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4007         of fill_in_vptr_fieldno.
4008
4009 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
4010
4011         * inferior.h (registers_info, stepi_command, nexti_command,
4012         continue_command, interrupt_target_command): Export from infcmd.c.
4013         * frame.h (args_info, selected_frame_level_changed_hook,
4014         return_command): Export from stack.c.
4015         * v850ice.c (stepi_command, nexti_command, continue_command): use
4016         prototypes from inferior.h.
4017         * tracepoint.c (registers_info, args_info, locals_info): Use
4018         prototypes from frame.h and inferior.h.
4019         * Makefile.in (mi-main.o): Add dependency on frame.h.
4020
4021 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
4022
4023         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4024         value in register 3 adjusted by ppc_gp0_regnum.
4025
4026         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4027
4028 2002-10-02  Marko Mlinar <markom@opencores.org>
4029
4030         * MAINTAINERS: Add myself to the Write After Approval list.
4031
4032 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
4033
4034         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4035         of the section for the N64 ABI, fixed.
4036
4037         * config/mips/tm-irix6.h: Include solib.h.
4038
4039 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
4040
4041         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4042         GNU operators.
4043
4044 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4045
4046         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4047         and that "mi0" syntax has been removed.
4048
4049 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4050
4051         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4052         * ppc-sysv-tdep.c: #include "gdb_string.h".
4053         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4054         pacify GCC.
4055
4056 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4057
4058         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4059         "vrsave"'s register number.
4060
4061 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4062
4063         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4064         use frame_unwind_signed_register to obtain the PC.
4065         (mips_frame_chain): Handle a generic dummy frame.
4066         (mips_init_extra_frame_info): When a generic dummy frame, don't
4067         re-compute the frame base.
4068         (mips_pop_frame): Handle generic dummy frames.
4069         (mips_gdbarch_init): When generic dummy frames, set
4070         use_generic_dummy_frames, push_dummy_frame to
4071         generic_push_dummy_frame, pc_in_call_dummy to
4072         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4073         generic_save_dummy_frame_tos.
4074
4075 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4076
4077         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4078         against TOP when TOP was explictly set.
4079         (generic_push_dummy_frame): Set TOP to zero.
4080
4081 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4082
4083         * event-loop.c (start_event_loop): Rename variable 'result' to
4084         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4085
4086 2002-09-30  Keith Seitz  <keiths@redhat.com>
4087
4088         * gdb-events.sh (selected_thread_changed): New event.
4089         * gdb-events.c: Regenerated.
4090         * gdb-events.h: Regenerated.
4091
4092 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4093
4094         * MAINTAINERS: Add self to Write After Approval list.
4095
4096 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4097
4098         * disasm.c: New file.  
4099         * disasm.h: New file.  
4100         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4101         (compare_lines): Ditto.
4102         (dump_insns): Ditto.
4103         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4104         argument.
4105         (do_assembly_only): Ditto.
4106         (do_disassembly): Renamed to gdb_disassembly and moved to
4107         disasm.c.  Sdded uiout argument.
4108         * Makefile.in: Add new files.  Reorder SFILES list. Update
4109         dependencies.  Include libgdb.a later in the insight executable.
4110
4111 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4112
4113         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4114         bfd/elf64-alpha-fbsd.c.
4115
4116 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4117
4118         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4119         i386gnu-tdep.c.
4120
4121 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4122
4123         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4124         __FUNCTION__.
4125         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4126         function name.
4127         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4128         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4129         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4130         (S_msg_sig_post_reply): Ditto.
4131         
4132 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4133
4134         * sh-tdep.c (sh_use_struct_convention): Use definition according
4135         to ABI.
4136         (sh_push_arguments): Store in register with correct endianess.
4137         (sh_default_store_return_value): Ditto.
4138         (sh_gdbarch_init): Set sizeof long double to 8.
4139
4140 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4141
4142         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4143         Fix some whitespace problems.
4144
4145 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4146
4147         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4148         (mcore-tdep.o): Ditto.
4149         (ns32k-tdep.o): Ditto.
4150         (ns32knbsd-tdep.o): Ditto.
4151         (sh3-rom.o): Ditto.
4152         (vax-tdep.o): Ditto.
4153         * cris-tdep.c: #include "gdb_string.h"
4154         * mcore-tdep.c: Ditto.
4155         * ns32k-tdep.c: Ditto.
4156         * ns32knbsd-tdep.c: Ditto.
4157         * sh3-rom.c: Ditto.
4158         * vax-tdep.c: Ditto.
4159
4160 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4161
4162         * config/djgpp/fnchange.lst: Add entries for
4163         gdb/testsuite/gdb.c++/m-static files.
4164
4165 2002-09-27  Jim Wilson  <wilson@redhat.com>
4166
4167         * MAINTAINERS: Add myself to the Write After Approval list.
4168
4169 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4170
4171         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4172
4173
4174 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4175
4176         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4177         frame.
4178
4179 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4180
4181         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4182         (rs6000_struct_return_address): Delete variable.
4183         (rs6000_store_struct_return): Update.
4184         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4185         deprecated_extract_struct_value_address.
4186         (rs6000_frame_align): New function.
4187         (rs6000_gdbarch_init): Set frame_align.
4188
4189 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4190
4191         From Grace Sainsbury <graces@redhat.com>:
4192         * Makefile.in (gdbtk-main.o): New target.
4193         (gdb.o): New target.
4194         (main_h): Define.
4195         (main.o): Update dependencies.
4196         (gdb$(EXEEXT)): Add gdb.o.
4197         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4198         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4199         (SUBDIR_GDBTK_CLEAN): Set.
4200         (install-gdbtk): Install the insight binary.
4201         (uninstall-gdbtk): New target.
4202         (all-gdbtk, clean-gdbtk): New rule.
4203         * top.c (use_windows): Default to zero.
4204         * main.c: Include "main.h".
4205         (main): Delete.
4206         (struct captured_main_args): Delete.
4207         (gdb_main): New function.
4208         * main.h: New file.
4209         * gdb.c: New File.
4210
4211 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4212
4213         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4214         (frame_map_regnum_to_name): New function.
4215         (frame_map_name_to_regnum): New function.
4216         * frame.h (frame_map_name_to_regnum): Declare.
4217         (frame_map_regnum_to_name): Declare.
4218         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4219         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4220         * parse.c: Do not include "builtin-regs.h".
4221         (target_map_name_to_register): Delete function.
4222         (write_dollar_variable): Use frame_map_name_to_regnum.
4223         * parser-defs.h (target_map_name_to_register): Delete declaration.
4224         * expprint.c: Include "frame.h".
4225         (print_subexp): Use frame_map_regnum_to_name.
4226         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4227         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4228
4229 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4230
4231         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4232         wasn't saved, and the next innermost frame is a dummy, return the
4233         dummy frame's link register.
4234
4235 2002-09-24  Jim Blandy  <jimb@redhat.com>
4236
4237         Fix from Paul Breed:
4238         * main.c (captured_main): Add a `break' after the case for 'b'.
4239
4240 2002-09-24  Keith Seitz  <keiths@redhat.com>
4241
4242         * varobj.c (c_type_of_child): Use get_target_type instead
4243         of TYPE_TARGET_TYPE.
4244
4245 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4246
4247         * source.c (get_current_or_default_source_symtab_and_line): Remove
4248         function.
4249         (set_default_source_symtab_and_line): New function. Attempts to
4250         determine a source file to list lines from if one is not currently
4251         defined.
4252         (get_current_source_symtab_and_line): Initialize sal.pc and
4253         sal.end fields.
4254         (set_current_source_symtab_and_line): Mark argument as const.
4255         * source.h: Update declarations and comments.
4256         * linespec.c (decode_line_1): Replace call to removed routine above.
4257         * stack.c (print_frame_info_base): Ditto.
4258         * cli/cli-cmds.c (edit_command): Ditto.
4259         (list_command): Ditto.
4260
4261 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4262
4263         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4264         sal.pc and sal.end fields.
4265         (get_current_or_default_source_symtab_and_line): Ditto.
4266         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4267         so we do not cause a new source symtab to be searched for (reverting an
4268         unintentional change from the 2002-09-20 patch).
4269         * scm-lang.c (scm_unpac): Ditto.
4270
4271 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4272
4273         * complaints.c (symfile_explanations): Remove new-line from
4274         ``isolated_message''.
4275         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4276         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4277
4278 2002-09-20  Nick Clifton  <nickc@redhat.com>
4279         
4280         * NEWS: Announce that V850EA ISA is no longer supported.
4281         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4282
4283 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4284
4285         * Makefile.in (c-lang.o): Correct dependencies.
4286         (utils.o): Gather dependencies.
4287         (charset.o): Move.
4288         * c-lang.c: #include "gdb_string.h"
4289
4290 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4291
4292         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4293         * cli/cli-cmds.c (list_command): New function.  Implements the new
4294         cli edit command.
4295         (_init_cli_cmds): Add new command definition.
4296         * gdb.1: Document edit command.
4297         * doc/gdb.texinfo: Document edit command.
4298
4299 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4300
4301         * source.c: Make global variables current_source_symtab and
4302         current_source_line static.
4303         (list_command): Moved to cli/cli-cmds.c.
4304         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4305         (get_first_line_listed): New accessor function.
4306         (get_lines_to_list): New accessor function.
4307         (get_current_source_symtab_and_line): New function. Retrieves the
4308         position in the source code that we consider current.
4309         (get_current_or_default_source_symtab_and_line): New function.
4310         Like the above but attempts to determine a default position if one
4311         is not currently defined.
4312         (set_current_source_symtab_and_line): New function. Sets the source
4313         code position considered current and returns the previously set one.
4314         (clear_current_source_symtab_and_line): Reset stored information about
4315         a current source line.
4316         (_initialize_source): Remove registration for the "list" command and
4317         its alias.
4318         * source.h: Add declarations for the new functions above.
4319         * symtab.h: Remove declarations for the global variables mentioned
4320         above.
4321         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4322         obtain current source line.
4323         * linespec.c (decode_line_1): Ditto.
4324         * macroscope.c (default_macro_scope): Ditto.
4325         * scm-lang.c (scm_unpac): Ditto.
4326         * stack.c (print_frame_info_base): Ditto.
4327         * symfile.c (clear_symtab_users): Ditto.
4328         * symtab.c (decode_line_spec): Ditto.
4329         * cli/cli-cmds.c (list_command): Moved here from source.c.
4330         (ambiguous_line_spec): Moved here from source.c.
4331         (_init_cli_cmds): Add definition for "list" and its alias.
4332         * Makefile.in: Update dependencies.
4333
4334 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4335
4336         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4337         with what gcc thinks is correct.
4338
4339 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4340
4341         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4342         multiple register push instruction.
4343
4344 2002-09-19  Jim Blandy  <jimb@redhat.com>
4345
4346         Add support for distinct host and target character sets.
4347         * charset.c, charset.h: New files.
4348         * c-exp.y: #include "charset.h".
4349         (yylex): Convert character and string literals to the target
4350         character set, before returning them as the semantic value of the
4351         token.
4352         * c-lang.c: #include "charset.h".
4353         (c_emit_char): Use charset-specific methods to recognize
4354         characters with backslash escape forms, to decide which characters
4355         to print literally and which to print using numeric escape
4356         sequences, and to convert target characters to host characters
4357         before printing.
4358         * utils.c: #include "charset.h".
4359         (no_control_char_error): New function.
4360         (parse_escape): Use charset-specific methods to recognize
4361         backslash escapes, parse `control character' notation, and convert
4362         characters from the host character set to the target character set.
4363         * configure.in: Set the default host character set.
4364         Check where to find iconv, and what its argument types might be.
4365         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4366         * Makefile.in (SFILES): List charset.c.
4367         (COMMON_OBS): List charset.o.   
4368         (charset.o): New rule.
4369         (charset_h): New header dependency variable.
4370         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4371         (LIBICONV): New variable, set by configure.
4372         (CLIBS): Include $(LIBICONV) here.
4373         * aclocal.m4, config.in, configure: Regenerated.
4374
4375 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4376
4377         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4378         bison 1.35 warning.
4379
4380 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4381
4382         * gdb_mbuild.sh: New file.
4383
4384 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4385
4386         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4387
4388 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4389
4390         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4391         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4392         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4393         valops.c, value.h: Revert previous change.
4394         
4395 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4396
4397         Preliminary support for Objective-C:
4398         * defs.h (language_objc): New enum value.
4399         (puts_filtered_tabular): Declaration only, exported from utils.c.
4400         (skip_quoted): Delete, declared in completer.h.
4401         * c-exp.y: Include completer.h.
4402         * p-exp.y: Ditto.
4403         * jv-exp.y: Ditto.
4404         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4405         New operator enum values.
4406         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4407         * language.c (binop_result_type): Handle language_objc case.
4408         (integral_type, character_type, string_type, boolean_type,
4409         structured_type, binop_type_check): Ditto.
4410         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4411         (struct objc_specific): Add to general_symbol_info.
4412         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4413         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4414         * parser-defs.h (struct objc_class_str): New struct type.
4415         (start_msglist, end_msglist, add_msglist): Declaration only,
4416         exported from objc-lang.c.
4417         * value.h (value_of_local, value_nsstring, 
4418         call_function_by_hand_expecting_type): Exported from valops.c.
4419         * valops.c (find_function_addr): Export.
4420         (call_function_by_hand_expecting_type): New function.
4421         (value_of_local): New function.
4422         * symfile.c (init_filename_language_table): Add ".m" extension
4423         for Objective-C.
4424         * utils.c (puts_filtered_tabular): New function.
4425         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4426         (set/show demangle): Extend help-string to refer to ObjC.
4427         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4428         * stabsread.c (symbol_reference_defined): Objective-C symbols
4429         may contain colons: make allowances when scanning stabs strings
4430         for colons.
4431         (objc_find_colon): New function.
4432         * printcmd.c (address_info): If language == objc then print
4433         "self" instead of "this".
4434         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4435         OP_NSSTRING, and OP_SELF.
4436         (prefixify_subexp): Ditto.
4437         * source.c (print_source_lines): Mention objc in comment.
4438         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4439         method names.
4440
4441 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4442
4443         * complaints.h: Update copyright.
4444         (struct complaints): Declare.
4445         (struct complaint): Make `message' constant.
4446         (internal_complaint): Declare.
4447         (complaint): Declare.
4448         (complaint_root): Delete declaration.
4449         (symfile_complaints): Delete declaration.
4450         (struct complaints): Add opaque declaration.
4451         (clear_complaints): Add a complaints parameter.
4452         * complaints.c: Update copyright.
4453         (enum complaint_series): Define.
4454         (complaint_root): Delete.
4455         (struct complaints): Define.
4456         (complaint_sentinel, symfile_complaint_book): New variables.
4457         (symfile_explanations, symfile_complaints): New variables.
4458         New variables.
4459         (get_complaints): New function.
4460         (vcomplaint): New function.
4461         (complaint): New function.
4462         (internal_complaint): New function.
4463         (complain): Call vcomplain with symfile_complaint.
4464         (clear_complaints): Rewrite.
4465         (_initialize_complaints): Use add_setshow_command.
4466         * Makefile.in (complaints.o): Update dependencies.
4467         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4468         to call to clear_complaints.
4469         (new_symfile_objfile, reread_symbols): Ditto.
4470         (oldsyms_complaint): Delete.
4471         (empty_symtab_complaint, unknown_option_complaint): Delete.
4472         (free_named_symtabs): Use complaint instead of complain.
4473
4474 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4475
4476         Contributed by Apple Computer, Inc.  Merged with current sources
4477         by Adam Fedor <fedor@doc.com> [cagney].
4478         
4479         * objc-lang.c: First clean-up round: comments, indentation.
4480         * objc-lang.h: Ditto.
4481         * objc-lang.y: Ditto.
4482
4483 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4484
4485         * maint.c (maintenance_internal_error): Print the parameter as the
4486         error message.
4487         (maintenance_internal_warning): New function.
4488         (_initialize_maint_cmds): Add command `maint internal-warning'.
4489
4490         * defs.h (internal_warning, internal_vwarning): Declare.
4491         * utils.c (struct internal_problem): Define.
4492         (internal_vproblem): New function.
4493         (internal_warning): New function.
4494         (internal_vwarning): New function.
4495         (internal_warning_problem, internal_error_problem): New variables.
4496         (internal_verror): Just call internal_vproblem.
4497
4498 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4499
4500         * objc-lang.c: New file, support for Objective-C.
4501         Preliminary check-in, not yet integrated into gdb.
4502         * objc-lang.h: New file.
4503         * objc-exp.y:  New file.
4504
4505 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4506
4507         * infrun.c (signal_stop_update): Convert definition to ISO C.
4508         (signal_print_update): Ditto.
4509         (signal_pass_update): Ditto.
4510         * inflow.c (terminal_save_ours): Ditto.
4511
4512         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4513         comments.
4514         
4515         * config/djgpp/fnchange.lst: Handle name clashes between
4516         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4517         bfd/coff-tic80.c.
4518
4519         * i386-linux-tdep.h: Fix tipo.
4520
4521 2002-09-18  Adam Fedor  <fedor@gnu.org>
4522
4523         * MAINTAINERS: Add myself to the Write After Approval list.
4524
4525 2002-09-18  Jim Blandy  <jimb@redhat.com>
4526
4527         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4528         texthigh and textlow to reader-specific structs caused
4529         objfile_relocate to miss them.  This is fixable, but the work that
4530         the change was supposed to prepare GDB for never got done anyway.
4531
4532 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4533
4534         * MAINTAINERS: Alphabetize Write After Approval list.
4535
4536 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4537
4538         Fix PR gdb/709
4539         * values.c (value_static_field): Call read_var_value.
4540
4541 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4542
4543         * valops.c (hand_function_call): Align the initial stack pointer
4544         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4545         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4546         return value.
4547         * mips-tdep.c (mips_frame_align): New function.
4548         (mips_gdbarch_init): Set frame_align.
4549         * gdbarch.sh (FRAME_ALIGN): New method.
4550         * gdbarch.h, gdbarch.c: Re-generate.
4551
4552 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4553
4554         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4555         registers.
4556
4557 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4558
4559         * NEWS: Mention that MIPS $fp behavior changed.
4560         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4561         reference to FP_REGNUM.
4562         (mipsnbsd_cannot_store_register): Ditto.
4563         * mips-linux-nat.c: Update copyright.
4564         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4565         (mips_linux_cannot_store_register): Ditto.
4566         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4567         * config/mips/tm-mips.h: Update copyright.
4568         (FP_REGNUM): Delete macro.
4569         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4570         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4571         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4572         (mips_r3041_reg_names, mips_r3051_reg_names)
4573         (mips_r3081_reg_names): Replace "fp" with "".
4574         Fix PR gdb/480.
4575
4576 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4577
4578         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4579         generic_read_register_dummy() (PR gdb/703).
4580         (avr_push_return_address): #if 0 out unused vars.
4581         (avr_gdbarch_init): Enable use of avr_push_return_address().
4582
4583 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4584
4585         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4586         RTE will take care of it.
4587
4588 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4589
4590         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4591         invalid, return SP_REGNUM.
4592
4593 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4594
4595         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4596         point registers without sign extension.
4597
4598 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4599
4600         * blockframe.c (deprecated_read_register_dummy): Rename
4601         generic_read_register_dummy.
4602         * frame.c (frame_unwind_signed_register): New function.
4603         (frame_unwind_unsigned_register): New function.
4604         * frame.h (frame_unwind_signed_register): Declare.
4605         (frame_unwind_unsigned_register): Declare.
4606         (deprecated_read_register_dummy): Rename
4607         generic_read_register_dummy.
4608
4609         * h8300-tdep.c (h8300_frame_chain): Update.
4610         (h8300_frame_saved_pc): Update.
4611         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4612         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4613         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4614         (s390_frame_chain): Update.
4615         * v850-tdep.c (v850_find_callers_reg): Update.
4616         (v850_frame_saved_pc): Update.
4617         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4618         (m32r_find_callers_reg): Update.
4619         (m32r_frame_saved_pc): Update.
4620         * sh-tdep.c (sh_find_callers_reg): Update.
4621         (sh64_get_saved_pr): Update.
4622         (sh_init_extra_frame_info): Update.
4623         (sh_init_extra_frame_info): Update.
4624         (sh64_init_extra_frame_info): Update.
4625         (sh64_init_extra_frame_info): Update.
4626         * mcore-tdep.c (mcore_find_callers_reg): Update.
4627         (mcore_frame_saved_pc): Update.
4628         (mcore_init_extra_frame_info): Update.
4629         * i386-tdep.c (i386_frame_saved_pc): Update.
4630         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4631         (ia64_init_extra_frame_info): Update.
4632         (ia64_init_extra_frame_info): Update.
4633         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4634         * cris-tdep.c (cris_init_extra_frame_info): Update.
4635         * avr-tdep.c (avr_frame_chain): Update.
4636         (avr_init_extra_frame_info): Update.
4637         (avr_frame_saved_pc): Update.
4638         * arm-tdep.c (arm_find_callers_reg): Update.
4639         (arm_init_extra_frame_info): Update.
4640         (arm_frame_saved_pc): Update.
4641
4642 2002-09-17  Tom Tromey  <tromey@redhat.com>
4643
4644         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4645         is "'".
4646
4647 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4648
4649         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4650         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4651         NEXT_PROLOGUE_INSN.
4652         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4653         NEXT_PROLOGUE_INSN.
4654
4655 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4656
4657         * osfsolib.c: Remove file, replaced by solib-osf.c.
4658         * Makefile.in: Remove compilation rules for osfsolib.c.
4659
4660 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4661
4662         * cp-valprint.c (cp_print_class_method): Correct args to
4663         check_stub_method_group.
4664
4665 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4666
4667         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4668         `set architecture'.  Unify naming convention of functions.
4669         (h8300_skip_prologue): Improve prologue analysis.
4670         (h8300_push_arguments): Rewritten to more closely match GCC's
4671         bizarre argument-passing behavior, along with the comment describing
4672         said behavior.
4673         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4674         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4675         sim, remote-e7000.c, remote-hms.c and remote.c
4676
4677 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4678
4679         * i386-tdep.c (gdb_print_insn_i386): Removed.
4680         (i386_print_insn): New function.
4681         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4682         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4683         tm_print_insn_info.
4684
4685 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4686
4687         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4688         zero.
4689
4690 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4691
4692         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4693         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4694         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4695
4696 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4697
4698         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4699
4700 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4701
4702         * gdbtypes.c (check_stub_method): Make static.
4703         (check_stub_method_group): New function.
4704         * gdbtypes.h: Update prototypes.
4705         * cp-support.c: New file.
4706         * cp-support.h: New file.
4707
4708         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4709         (update_method_name_from_physname): New function.
4710         (read_member_functions): Correct method names for operators
4711         and v3 constructors/destructors.  Separate v2 constructors and
4712         destructors.
4713         * Makefile.in (stabsread.o): Update dependencies.
4714         (SFILES): Add cp-support.c.
4715         (COMMON_OBS): Add cp-support.o.
4716         (cp_support_h, cp-support.o): Add.
4717
4718         * cp-valprint.c (cp_print_class_method): Call
4719         check_stub_method_group instead of check_stub_method.  Remove
4720         extraneous QUITs.
4721         * p-valprint.c (pascal_object_print_class_method): Likewise.
4722         * valops.c (search_struct_method): Likewise.
4723         (find_method_list, value_struct_elt_for_reference): Likewise.
4724
4725 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4726
4727         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4728         * gdbarch.h, gdbarch.c: Regenerate.
4729
4730 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4731
4732         * frame.c (find_saved_register): Delete function.
4733         * frame.h (find_saved_register): Delete declaration.
4734         Fix PR gdb/631.
4735
4736 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4737
4738         * mips-tdep.c (read_next_frame_reg): Re-hack using
4739         frame_register_unwind.
4740
4741 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4742
4743         * mips-tdep.c (mips_get_saved_register): Re-hack using
4744         frame_register_unwind.
4745
4746 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4747
4748         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4749         vector. Will be useful for Interix.  
4750         * gdbarch.h, gdbarch.c: Regenerate.
4751
4752         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4753         name of the malloc function by NAME_OF_MALLOC.
4754
4755 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4756
4757         * value.h (find_function_in_inferior): Add const keyword to
4758         one of the parameters. Allows us to invoke this function with
4759         a const char *.
4760         * valops.c (find_function_in_inferior): Likewise.
4761
4762 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4763
4764         * exec.c (xfer_memory): Fix compilation warning with old versions
4765         of GCC.
4766         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4767
4768 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4769
4770         * symtab.h: Run through gdb_indent.h.
4771         Add 2002 to Copyright year list.
4772
4773 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4774
4775         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4776         mach constants.
4777         * MAINTAINERS: Add myself to write after approval list.
4778
4779 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4780
4781         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4782
4783 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4784
4785         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4786         Interix.
4787
4788 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4789
4790         * procfs.c (do_detach): Clear current signal, not just fault.
4791         Corrects problem with breakpoint trap signal leaking to detached
4792         process on Tru64.
4793
4794 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4795
4796         * buildsym.c (finish_block): Protect against null pointer.
4797
4798 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4799
4800         * infcmd.c (default_print_registers_info): Send all output to
4801         ``file'' instead of ``gdb_stdout''.
4802
4803 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4804
4805         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4806         LONGEST, and use signed register read (addresses are sign-
4807         extended for mips).
4808
4809 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4810
4811         * event-loop.c (gdb_do_one_event): Make public.
4812         * event-loop.h (gdb_do_one_event): Declare.
4813
4814 2002-09-10  Jeff Law  <law@redhat.com>
4815
4816         * infttrace.c (child_resume): Simplify and rework to avoid
4817         TT_PROC_CONTINUE.
4818
4819 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4820
4821         * printcmd.c (print_scalar_formatted): "len" is the number of
4822         target bytes, NOT the number of target bits.
4823
4824 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4825
4826         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4827         * top.c (init_main): Set rl_terminal_name.
4828
4829 2002-09-08  Aidan Skinner <aidan@velvet.net>
4830
4831         * ada-lang.c (ada_array_bound, ada_type_match,
4832         _initialize_ada_language): Fix K&R definitions.
4833         * ada-tasks.c (get_current_task): Fix K&R definitions.
4834         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4835                         
4836 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4837
4838         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4839         Add XP.
4840
4841 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4842
4843         * i386-tdep.c (i386_register_virtual_type,
4844         i386_register_convertible, i386_register_convert_to_virtual,
4845         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4846         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4847         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4848         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4849         Don't set push_arguments twice.
4850
4851         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4852         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4853         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4854         sigtramp_end to NULL.
4855         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4856         defines.
4857         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4858
4859         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4860         whitespace.
4861
4862         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4863         * gdbarch.h, gdbarch.c: Re-generate.
4864         * blockframe.c (find_pc_sect_partial_function): Convert to use
4865         SIGTRAMP_START_P predicate.
4866
4867 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4868
4869         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4870         generic_dummy_frame method and old method.  Also distinguish
4871         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4872         (arm_extract_return_value): Use new regcache method.
4873
4874         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4875         adjustment that doesn't conform to the ABI.
4876         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4877         saved regcache, not from current regcache.
4878
4879 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4880
4881         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4882         * README: Update.
4883
4884 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4885
4886         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4887         if arm_apcs_32 is false.
4888
4889 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4890
4891         GDB 5.3 branch created.
4892
4893 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4894
4895         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4896         generic_unwind_get_saved_register.
4897
4898 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4899
4900         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4901         argument (PR gdb/653).  Update call to smash_to_method_type.
4902         (read_structure_scope): Update call to dwarf2_add_member_fn.
4903
4904 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4905
4906         * x86-64-linux-tdep.c: Include gdb_string.h
4907         * x86-64-linux-nat.c: Ditto.
4908
4909 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4910
4911         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4912         when YYDEBUG is set to 1.  
4913         * c-exp.y: Likewise.
4914         * f-exp.y: Likewise.
4915         * jv-exp.y: Likewise.
4916         * m2-exp.y: Likewise.
4917         * p-exp.y: Likewise.
4918
4919 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4920
4921         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4922         dependency list.
4923         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4924         solib_svr4_fetch_link_map_offsets to
4925         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4926         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4927         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4928         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4929         solib-svr4.o, and solib-legacy.o.
4930         * config/i386/tm-nbsd.h: Include solib.h.
4931
4932 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4933
4934         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4935         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4936         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4937         comment noting that this needs its own target configuration.
4938         * config/i386/nbsd.mt: New file.
4939         * config/i386/nbsdaout.mt: Remove.
4940         * config/i386/nbsdelf.mt: Ditto.
4941         * config/i386/tm-nbsdaout.h: Ditto. 
4942
4943 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4944
4945         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4946         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4947         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4948         tdep->sigtramp_end.
4949         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4950         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4951         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4952
4953 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4954
4955         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4956         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4957         * i386-tdep.h (i386bsd_init_abi): New prototype.
4958         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4959         function declaration.
4960         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4961         for NetBSD-a.out or NetBSD-ELF.
4962         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4963         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4964         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4965         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4966         and nbsd-tdep.h.
4967         (i386nbsd_pc_in_sigtramp): New function.
4968         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4969         i386nbsd_pc_in_sigtramp.
4970         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4971         and i386nbsdelf_init_abi OS ABI handlers.
4972         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4973         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4974
4975 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4976
4977         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4978         registers if the target really has them.
4979
4980 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4981
4982         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4983         than nbsd-tdep.h.
4984
4985 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4986
4987         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4988         list.
4989         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4990         (alphanbsd_skip_sigtramp_frame): New functions. 
4991         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4992         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4993         to alphanbsd_sigcontext_addr. 
4994
4995 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4996
4997         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4998         list.
4999         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
5000         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5001         nbsd_pc_in_sigtramp. 
5002         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5003         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5004         * nbsd-tdep.c: Include gdb_string.h.
5005         (nbsd_pc_in_sigtramp): New function. 
5006         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
5007         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5008         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5009         ppcnbsd_pc_in_sigtramp. 
5010         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5011         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5012         shnbsd_pc_in_sigtramp. 
5013         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5014         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
5015         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5016
5017 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5018
5019         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5020         watchpoints to NULL.
5021         (insert_breakpoints): set val field of watchpoints if NULL.
5022
5023
5024 2002-08-29  Jim Blandy  <jimb@redhat.com>
5025
5026         * symtab.c (lookup_symbol_aux): In the cases where we find a
5027         minimal symbol of an appropriate name and use its address to
5028         select a symtab to read and search, use `name' (as passed to us)
5029         as the demangled name when searching the symtab's global and
5030         static blocks, not the minsym's name.
5031
5032 2002-08-29  Keith Seitz  <keiths@redhat.com>
5033
5034         * stack.c (print_frame_info_base): Always set current_source_symtab
5035         and current_source_line.
5036
5037 2002-08-29  Donn Terry  <donnte@microsoft.com>
5038
5039         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5040
5041 2002-08-28  Keith Seitz  <keiths@redhat.com>
5042
5043         * stack.c (select_frame): Add FIXME concerning selected-frame
5044         events.
5045         (select_frame_command): Send selected-frame-level-changed
5046         event notification, but only if the level actually changed.
5047         (up_silently_base): Add selected-frame-level-changed event
5048         notification.
5049         (down_silently_base): Likewise.
5050
5051 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5052
5053         * Makefile.in: Update dependencies for all gdb/*.c files.
5054
5055 2002-08-27  Tom Tromey  <tromey@redhat.com>
5056
5057         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5058         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5059         Update dependencies.
5060         * i387-tdep.c: Include gdb_string.h.
5061         * osabi.c: Likewise.
5062         * i386-linux-nat.c: Likewise.
5063         * lin-lwp.c: Likewise.
5064         * ax-gdb.c: Likewise.
5065         * signals/signals.c: Likewise.
5066         * jv-valprint.c: Likewise.
5067         * p-lang.c: Likewise.
5068         * c-valprint.c: Likewise.
5069         * cp-abi.c: Likewise.
5070
5071 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5072
5073         * cli/cli-script.h (copy_command_lines): Export.
5074         * breakpoint.c: Include cli/cli-script.h.
5075         * Makefile.in (breakpoint.o): Update dependencies.
5076
5077 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5078
5079         * breakpoint.c (insert_breakpoints): Protect all references
5080         to 'process_warning'.  Shorten long lines.
5081
5082 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5083
5084         * cli/cli-script.c (copy_command_lines): New function.
5085         * defs.h (copy_command_lines): Export.
5086         * testsuite/gdb.base/commands.exp: New tests for commands
5087         attached to a temporary breakpoint, and for commands that
5088         delete the breakpoint they are attached to.
5089         
5090 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5091
5092         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5093         pointer to the breakpoint commands struct, make a new copy
5094         of the struct and point to that.
5095         (bpstat_clear): Free the commands struct.
5096         (bpstat_clear_actions): Free the commands struct.
5097         (bpstat_do_actions): Free the command actions.  Also execute
5098         the local cleanups, instead of deleting them.
5099         (delete_breakpoint): Leave the commands field of the bpstat
5100         chain alone -- it will be freed later.
5101
5102 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5103
5104         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5105         deleted in 2002-08-20 commit.  This function is still used by
5106         ppc-linux-nat.c.
5107
5108 2002-08-26  Keith Seitz  <keiths@redhat.com>
5109
5110         * gdb-events.sh: Add selected-frame-level-changed event.
5111         * gdb-events.c: Regenerated.
5112         * gdb-events.h: Regenerated.
5113         
5114 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5115
5116         Fix PR gdb/393:
5117         * inflow.c (terminal_save_ours): New function to save terminal
5118         settings.
5119         * inferior.h (terminal_save_ours): Declare.
5120         * target.c (debug_to_terminal_save_ours): New function.
5121         (cleanup_target): Defaults to_terminal_save_ours.
5122         (update_current_target): Inherit to_terminal_save_ours.
5123         (setup_target_debug): Set to_terminal_save_ours.
5124         * target.h (target_terminal_save_ours): New to save terminal settings.
5125         (target_ops): New member to_terminal_save_ours.
5126         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5127         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5128         * inftarg.c (init_child_ops): Likewise.
5129         * m3-nat.c (init_m3_ops): Likewise.
5130         * procfs.c (init_procfs_ops): Likewise.
5131         * wince.c (init_child_ops): Likewise.
5132         * win32-nat.c (init_child_ops): Likewise.
5133         * sol-thread.c (init_sol_thread_ops): Likewise.
5134
5135 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5136
5137         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5138         use regcache_* functions.
5139         (i386_gdbarch_init): Set store_return_value instead of
5140         deprecated_store_return_value.
5141
5142         * regcache.c (regcache_raw_write_signed,
5143         regcache_raw_write_unsigned): New functions.
5144         * regcache.h (regcache_raw_write_signed,
5145         regcache_raw_write_unsigned): New prototypes.
5146
5147 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5148
5149         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5150         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5151         source file dependencies.  Cleanup corresponding generator rules.
5152
5153 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5154
5155         * regcache.h (register_offset_hack): Declare.
5156         (regcache_cooked_read_using_offset_hack): Declare.
5157         (regcache_cooked_write_using_offset_hack): Declare.
5158
5159         * regcache.c (register_offset_hack): New function.
5160         (regcache_cooked_read_using_offset_hack): New function.
5161         (regcache_cooked_write_using_offset_hack): New function.
5162         (regcache_dump): Check that the registers, according to their
5163         offset, are packed hard against each other.
5164         (cooked_xfer_using_offset_hack): New function.
5165
5166 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5167
5168         * regcache.c (struct regcache_descr): Add field register_type.
5169         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5170         in as a parameter
5171         (init_regcache_descr): Initialize register_type.  Pass the descr
5172         to init_legacy_regcache_descr.  Use register_type instead of
5173         REGISTER_VIRTUAL_TYPE.
5174         (register_type): New function.
5175         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5176         * regcache.h (register_type): Declare.
5177
5178 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5179
5180         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5181         instead of deprecated_store_return_value.  Fix fallout from
5182         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5183
5184 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5185
5186         * regcache.c (max_register_size): New function.
5187         (init_legacy_regcache_descr): Ensure that max_register_size is
5188         large enough for REGISTER_VIRTUAL_SIZE.
5189         * regcache.h (max_register_size): Declare.
5190
5191 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5192
5193         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5194         store_return_value.
5195         (e500_extract_return_value): Change type of valbuf pointer to
5196         void.
5197
5198 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5199
5200         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5201         workaround.
5202
5203         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5204         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5205         long long) to prevent compiler warning on 64-bit systems.
5206
5207 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5208
5209         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5210         (DEPRECATED_STORE_RETURN_VALUE): New method.
5211         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5212         * gdbarch.h, gdbarch.c: Re-generate.
5213
5214         * values.c (set_return_value): Pass current_regcache to
5215         STORE_RETURN_VALUE.
5216         * arch-utils.h (legacy_store_return_value): Declare.
5217         * arch-utils.c (legacy_store_return_value): New function.
5218         (legacy_extract_return_value): Update parameters.
5219
5220         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5221         STORE_RETURN_VALUE.
5222         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5223         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5224         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5225         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5226         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5227         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5228         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5229         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5230         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5231         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5232
5233         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5234         * i386-tdep.c (i386_extract_return_value): Update.
5235         * arch-utils.c (legacy_extract_return_value): Update.
5236         * frv-tdep.c (frv_gdbarch_init): Update.
5237         * cris-tdep.c (cris_gdbarch_init): Update.
5238         * d10v-tdep.c (d10v_gdbarch_init): Update.
5239         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5240         * m68k-tdep.c (m68k_gdbarch_init): Update.
5241         * mcore-tdep.c (mcore_gdbarch_init): Update.
5242         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5243         * s390-tdep.c (s390_gdbarch_init): Update.
5244         * sparc-tdep.c (sparc_gdbarch_init): Update.
5245         * sh-tdep.c (sh_gdbarch_init): Update.
5246         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5247         * v850-tdep.c (v850_gdbarch_init): Update.
5248         * avr-tdep.c (avr_gdbarch_init): Update.
5249         * ia64-tdep.c (ia64_gdbarch_init): Update.
5250         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5251         * vax-tdep.c (vax_gdbarch_init): Update.
5252         * alpha-tdep.c (alpha_gdbarch_init): Update.
5253         * arm-tdep.c (arm_gdbarch_init): Update.
5254         * mips-tdep.c (mips_gdbarch_init): Update.
5255         * i386-tdep.c (i386_gdbarch_init): Update.
5256
5257 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5258
5259         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5260         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5261
5262 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5263
5264         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5265         problems.
5266
5267 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5268
5269         * infrun.c (handle_inferior_event): Move a comment outside of a
5270         function call, in order to avoid indent reformatting this part
5271         of the code in an unreadable way.
5272
5273 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5274
5275         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5276         when breakpoints fail. Move general breakpoint error messages to
5277         insert_breakpoints.  
5278         * breakpoint.c (insert_breakpoints): Change warnings when
5279         breakpoints are nto inserted to specify the type. Remove call to
5280         memory_error when hardware breakpoints can't be inserted. Remove
5281         multiple calls to warning so all messages are sent to the user at
5282         once.
5283         (delete_breakpoints): Make insert error messsages more explicit.
5284
5285 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5286
5287         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5288         gdbserver/ChangeLog.
5289
5290 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5291
5292         * i386-tdep.c: Include "objfiles.h".
5293         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5294         skip_trampoline_code.
5295         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5296         (CPLUS_MARKER): Define to '.'.
5297
5298         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5299         member.
5300         (linux_corefile_thread_callback): Increase args->num_notes.
5301         (linux_make_note_section): Initialize thread_args.num_notes, and
5302         use it to determine whether notes for any threads were created.
5303
5304 2002-08-23  Donn Terry  <donnte@microsoft.com>
5305
5306         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5307         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5308         and PCUNKILL.
5309         (write_with_trace): Conditionalize out the switch branch handling
5310         PCSHOLD if the corresponding macro is not defined. Likewise for
5311         PRSABORT and PRSTOP.
5312         This change will be needed by the Interix port.
5313
5314 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5315
5316         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5317         write_register wherever possible instead of manipulating the
5318         register bytes directly.
5319         Assign VALUE_CONTENTS to a variable and use that.
5320         The GPR numbers are now dependent on the architecture.
5321         
5322 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5323
5324         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5325         ev_offset fields.
5326         (skip_prologue): Add support for BookE/e500 instructions.
5327         (e500_extract_return_value): New function.
5328         (frame_get_saved_regs): Add support for saving ev registers and
5329         pseudo gpr's.
5330         (e500_store_return_value): New function.
5331         (rs6000_gdbarch_init): Move up default intializations of
5332         deprecated_extract_return_value and store_return_value.  Overwrite
5333         init of store_return_value with e500 specific version.
5334         Set extract_return_value for e500.
5335         
5336 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5337
5338         * blockframe.c (generic_call_dummy_register_unwind): Use
5339         regcache_cooked_read to catch cases in which the variable is
5340         stored in a pseudo register.
5341
5342 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5343
5344         * NEWS: Mention that the i960 has been made obsolete.
5345         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5346         i960-tdep.c
5347         (remote-nrom.o): Obsolete target.
5348         (remote-nindy.o, i960-tdep.o): Ditto.
5349         * remote-nrom.c: Make file obsolete.
5350         * remote-nindy.c, remote-vx960.c: Ditto.
5351         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5352         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5353         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5354         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5355         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5356         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5357         i960-*-vxworks* obsolete.
5358         * MAINTAINERS: Note that the i960 is obsolete.
5359
5360 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5361
5362         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5363         detach to allow reinitialization.
5364
5365 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5366
5367         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5368         attempt).
5369
5370 2002-08-22  Jim Blandy  <jimb@redhat.com>
5371
5372         * coffread.c (coff_symfile_read): Don't try to read the line
5373         number table from disk if the image file doesn't have a symbol
5374         table; we'll never actually look at the info anyway, and Windows
5375         ships DLL's with bogus file offsets for the line number data.
5376
5377 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5378
5379         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5380         an e500 executable.
5381
5382 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5383
5384         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5385         (MSYMBOL_SIZE): Replace macro with function.
5386         (DEFAULT_MIPS_TYPE): Delete unused macro.
5387         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5388         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5389
5390 2002-08-21  Jim Blandy  <jimb@redhat.com>
5391
5392         * valops.c (value_cast): Simplify and correct logic for doing a
5393         static cast from a pointer to a base class to a pointer to a
5394         derived class.
5395
5396 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5397
5398         * infcmd.c (default_print_registers_info): Replace
5399         do_registers_info.
5400         (registers_info): Use gdbarch_print_registers_info instead of
5401         DO_REGISTERS_INFO.
5402         * inferior.h (default_print_registers_info): Replace
5403         do_registers_info.
5404         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5405         (DO_REGISTERS_INFO): Change to a predicate function.
5406         * gdbarch.h, gdbarch.c: Regenerate.
5407         
5408 2002-08-21  Keith Seitz  <keiths@redhat.com>
5409
5410         * gdb-events.sh: Add target-changed event.
5411         * gdb-events.c: Regenerated.
5412         * gdb-events.c: Regenerated.
5413         * valops.c (value_assign): Add target-changed event notification
5414         to inlval_register, lval_memory, and lval_reg_frame_relative.
5415
5416 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5417
5418         * NEWS: Add an entry regarding the improvement of the next/step
5419         operation on Alpha Tru64 multi-processor machines.
5420
5421 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5422
5423         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5424         directores.
5425         * Makefile.in: Update all _h macro definitions.
5426         * Makefile.in (install-gdbtk): Move to install section.
5427         (rdi-share/libangsd.a): Move to end of file.
5428
5429 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5430
5431         * frame.c (frame_register_unwind): When a register, set addrp to
5432         the register's byte.
5433
5434 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5435
5436         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5437         used locally, so move them from the target machine header to here.
5438         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5439         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5440         Make static.
5441         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5442
5443 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5444
5445         * NEWS: Mention that the Apollo line was made obsolete.
5446         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5447         m68*-hp-hpux* obsolete.
5448         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5449         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5450         * buildsym.c (make_blockvector): Make static.
5451         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5452         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5453         (ALLDEPFILES): Remove dstread.c.
5454         (dstread.o): Obsolete make rule.
5455         * dstread.c: Makefile obsolete.
5456         * dst.h: Ditto.
5457         * config/m68k/hp300hpux.mt: Ditto.
5458         * config/m68k/hp300hpux.mh: Ditto.
5459         * config/m68k/hp300bsd.mt: Ditto.
5460         * config/m68k/hp300bsd.mh: Ditto.
5461         * config/m68k/apollo68b.mt: Ditto.
5462         * config/m68k/apollo68v.mh: Ditto.
5463         * config/m68k/apollo68b.mh: Ditto.
5464
5465 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5466
5467         * mips-tdep.c (mips_in_return_stub): Make static.
5468         (mips_gdbarch_init): Set in_solib_return_trampoline.
5469         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5470
5471 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5472
5473         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5474         * gdbarch.c, gdbarch.h: Regenerate.
5475         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5476         Add.
5477         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5478
5479 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5480
5481         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5482         (mips_gdbarch_init): Set skip_trampoline_code, 
5483         in_solib_call_trampoline.
5484         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5485         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5486
5487 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5488
5489         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5490
5491         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5492         vector type for ev registers.
5493         (e500_pseudo_register_read): New function.
5494         (e500_pseudo_register_write): New function.
5495         (e500_dwarf2_reg_to_regnum): New function.
5496         (PPC_UISA_NOFP_SPRS): New macro.
5497         (PPC_EV_REGS): New macro.
5498         (PPC_GPRS_PSEUDO_REGS): New macro.
5499         (registers_e500): New register set for e500.
5500         (variants): Add e500 variant.
5501         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5502         before setting architectural dependent variations.  Initialize ev
5503         registers numbers.  Add case for e500 architecture.  Set the
5504         number of pseudo registers.
5505
5506 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5507
5508         * rs6000-tdep.c: Clean up comments.
5509
5510 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5511
5512         * h8300-tdep.c: Re-indent file.
5513
5514 2002-08-20  Jim Blandy  <jimb@redhat.com>
5515
5516         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5517         default for this.
5518
5519 2002-08-20  Keith Seitz  <keiths@redhat.com>
5520
5521         * breakpoints.c (watch_command_1): Use internal breakpoint
5522         when setting a watchpoint_scope breakpoint.
5523
5524 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5525
5526         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5527         (build_builtin_type_vec64i): Ditto.
5528         (build_builtin_type_vec128): Ditto.
5529         (build_builtin_type_vec128i): Ditto.
5530
5531 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5532
5533         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5534         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5535         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5536         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5537         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5538         CALL_DUMMY_ADDRESS): Delete.
5539         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5540         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5541         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5542         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5543         push_return_address.
5544         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5545         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5546         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5547         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5548         mips_n32n64_push_arguments, mips_push_return_address,
5549         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5550         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5551
5552 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5553
5554         * mips-tdep.c (mips_frame_num_args): New function.
5555         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5556         frame_saved_pc, frame_args_address, frame_locals_address, 
5557         frame_num_args, and frame_args_skip.
5558         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5559         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5560         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5561         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5562
5563 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5564
5565         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5566         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5567         * mips-tdep.c (mips_store_struct_return): New function.
5568         (mips_extract_struct_value_address): New function.
5569         (mips_gdbarch_init): Set store_struct_return and
5570         extract_struct_value_address.
5571
5572 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5573
5574         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5575         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5576         (read_file_scope): Check that line_header is nonzero before
5577         decoding macro information.
5578
5579 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5580
5581         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5582         flag the general-purpose registers as floating-point on targets
5583         that don't support the floating-point registers.
5584
5585 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5586
5587         * rs6000-tdep.c (altivec_register_p): Delete.
5588         (rs6000_do_altivec_registers): Delete.
5589         (rs6000_altivec_registers_info): Delete.
5590         (rs6000_do_registers_info): Delete.
5591         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5592         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5593
5594 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5595
5596         * infcmd.c (do_registers_info): Print vector registers in hex
5597         format only.
5598         (print_vector_info): Check that printing registers
5599         makes sense.
5600         (print_float_info): Ditto.
5601
5602 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5603
5604         * mips-tdep.c (mips_gdbarch_init): Update.
5605         (mips_o32_extract_return_value): Rewrite.
5606         (mips_o32_store_return_value): Rewrite.
5607         (mips_o32_xfer_return_value): New function.
5608         (mips_xfer_register): Tweak debug print message.  Allow for
5609         buf_offset when dumping the value transfered.
5610
5611 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5612
5613         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5614         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5615         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5616         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5617         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5618
5619 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5620
5621         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5622
5623 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5624
5625         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5626         register.
5627         (P): New macro to define a register as a pseudo register.
5628         (R, R4, R8, R16, FR32, R64, R0): Updated.
5629         (struct variant): Add new fields for number of pseudo registers
5630         and number of total registers.
5631         (tot_num_registers): New macro replacing....
5632         (num_registers): ...deleted macro.
5633         (num_registers): New function.
5634         (num_pseudo_registers): New function.
5635         (variants): Update all variants to intialize new fields correctly.
5636         Postpone initialization of number of pseudo regs and real regs.
5637         (init_variants): New function.
5638         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5639         registers offsets.
5640
5641 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5642
5643         * valops.c (search_struct_field): Change error message to treat
5644         return value of 0 from value_static_field as meaning that field is
5645         optimized out.
5646         (value_struct_elt_for_reference): Ditto.
5647         * values.c (value_static_field): Treat an unresolved location the
5648         same as a nonexistent symbol.  Fix PR gdb/635.
5649         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5650         enclosed.  Fix PR gdb/574.
5651         * MAINTAINERS: Add self to Write After Approval list.
5652
5653 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5654
5655         * mips-tdep.c (mips_xfer_register): New function.
5656         (mips_n32n64_extract_return_value): Rewrite.
5657         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5658         instead of deprecated_extract_return_value.
5659
5660 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5661
5662         * rs6000-tdep.c (TDEP): Delete macro.
5663         (branch_dest): Replace use of TDEP macro with its body.
5664         (rs6000_pop_frame): Ditto.
5665         (rs6000_push_arguments): Ditto.
5666         (rs6000_skip_trampoline_code): Ditto.
5667         (rs6000_frame_saved_pc): Ditto.
5668         (rs6000_frame_chain): Ditto.
5669         (rs6000_register_name): Ditto.
5670         (rs6000_register_byte): Ditto.
5671         (rs6000_register_raw_size): Ditto.
5672         (rs6000_register_virtual_type): Ditto.
5673         (rs6000_register_convertible): Ditto.
5674         (rs6000_convert_from_func_ptr_addr): Ditto.
5675
5676 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5677
5678         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5679         conditionally.
5680         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5681         MIPS_LINUX_JB_ELEMENT_SIZE.
5682         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5683         for MAX_REGISTER_RAW_SIZE arrays.
5684         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5685         MIPS_LINUX_JB_ELEMENT_SIZE.
5686
5687 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5688
5689         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5690
5691 2002-08-19  Aidan Skinner <aidan@velvet.net>
5692
5693         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5694         ada-valprint.c ada-tasks.c.
5695         (YYFILES): Add ada-exp.y.
5696         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5697         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5698         (ada-exp.tab.o): New target.
5699                 
5700 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5701
5702         * regcache.c (regcache_xfer_part): New function.
5703         (regcache_raw_read_part): New function.
5704         (regcache_raw_write_part): New function.
5705         (regcache_cooked_read_part): New function.
5706         (regcache_cooked_write_part): New function.
5707         * regcache.h (regcache_raw_read_part): Declare.
5708         (regcache_raw_write_part): Declare.
5709         (regcache_cooked_read_part): Declare.
5710         (regcache_cooked_write_part): Declare.
5711
5712 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5713
5714         * remote.c (remote_open_1): Add async_p.
5715         (remote_async_open_1): Delete.
5716         (open_remote_target): Delete.
5717         (remote_open, extended_remote_open): Update calls to remote_open_1.
5718         (remote_async_open, extended_remote_async_open): Call
5719         remote_open_1 instead of remote_async_open_1.
5720
5721 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5722
5723         * blockframe.c: Fix a few coding standard violations.
5724
5725 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5726
5727         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5728         here from ...
5729         * config/i386/tm-i386sco5.h: ... here.  File removed.
5730         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5731
5732         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5733         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5734         (TM_FILE): Set to tm-i386.h.
5735         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5736         * config/i386/tm-i386v.h: Remove file.
5737         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5738         instead of "i386/tm-i386v.h".
5739         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5740         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5741         "i386/tm-i386v.h".
5742         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5743         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5744         "i386/tm-i386.h".
5745
5746 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5747
5748         * config/i386/nm-i386v.h: Add protection against
5749         multiple-inclusion.
5750         (i386_register_u_addr): Remove prototype.
5751         (register_u_addr): New prototype.
5752         (REGISTER_U_ADDR): Redefine accordingly.
5753         * i386v-nat.c: Improve several comments.
5754         (i386_register_u_addr): Change signature and rename to
5755         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5756         ubase variable.
5757
5758 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5759
5760         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5761         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5762         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5763         deprecated_extract_return_value.
5764         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5765         rename mips_o32o64_push_arguments.
5766         (mips_gdbarch_init): Update.
5767         (mips_extract_return_value): Delete.
5768         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5769         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5770         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5771         (mips_n32n64_extract_return_value): Clone
5772         mips_extract_return_value.
5773         (mips_store_return_value): Delete.
5774         (mips_o32_store_return_value): Clone mips_store_return_value.
5775         (mips_o64_store_return_value): Clone mips_store_return_value.
5776         (mips_eabi_store_return_value): Clone mips_store_return_value.
5777         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5778
5779 2002-08-18  Aidan Skinner <aidan@velvet.net>
5780
5781         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5782         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5783                 
5784 2002-08-18  Aidan Skinner <aidan@velvet.net>
5785
5786         * ada-lang.c: Run through gdb_indent.sh.
5787         * ada-lang.h: Run through gdb_indent.sh.
5788         * ada-tasks.c: Run through gdb_indent.sh.
5789         * ada-typeprint.c: Run through gdb_indent.sh.
5790         * ada-valprint.c: Run through gdb_indent.sh.
5791
5792 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5793
5794         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5795         ABI.
5796
5797 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5798
5799         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5800
5801         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5802         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5803
5804         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5805         write_register_gen instead of write_register_bytes.
5806
5807         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5808         i[3456]-*-osf1mk* configurations have been made obsolete.
5809         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5810         i[3456]86-*-osf1mk* hosts obsolete.
5811         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5812         targets obsolete.
5813         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5814         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5815         config/i386/i386m3.mt, config/i386/nm-m3.h,
5816         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5817         config/i386/i386mk.mh, config/i386/i386mk.mt,
5818         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5819         obsolete.
5820         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5821         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5822         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5823
5824 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5825
5826         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5827         (hppa_value_returned_from_stack): Declare.
5828         (hppa_extract_return_value): Declare.
5829         * config/pa/hppa.mt: New file.
5830         * configure.tgt: Recognize hppa*-*-*.
5831         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5832
5833 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5834
5835         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5836         comment.
5837
5838 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5839
5840         * top.c (gdb_rl_operate_and_get_next): Make sure
5841         operate-and-get-next functions correctly even when the history
5842         list is completely filled.
5843
5844 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5845
5846         * MAINTAINERS (Target Instruction Set Architectures): Rename
5847         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5848         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5849         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5850         already listed under Host/Native.
5851
5852         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5853         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5854         mips*-*-*.
5855
5856 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5857
5858         * config/ia64/ia64.mt: New file.
5859         * config/alpha/alpha.mt: New file.
5860         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5861         ia64-linux-gnu.  Mention that ia64-elf is broken.
5862         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5863
5864 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5865
5866         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5867         generic_func_frame_valid instead of func_frame_valid.
5868
5869 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5870
5871         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5872         procfs appears to be broken when debugging on multi-processor
5873         machines. So enable software single stepping in order to avoid
5874         using the procfs interface to do next/step operations, using
5875         internal breakpoints instead.
5876
5877         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5878         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5879         make this pc address equal to the value it would have if the
5880         system stepping capability was used. Also set a new flag used
5881         to ensure that we don't readjust the PC one more time later.
5882
5883         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5884         address by DECR_PC_AFTER_BREAK when software single step is
5885         in use for this architecture, as this has already been taken
5886         care of in handle_inferior_event().
5887
5888 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5889
5890         * infrun.c (handle_inferior_event): Minor reformatting, to make
5891         a rather long condition expression easier to read.
5892
5893 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5894
5895         * Makefile.in (gdbtk.o): Move to end of file.
5896         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5897         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5898         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5899         (gdbtk-wrapper.o, gdbres.o): Ditto.
5900
5901 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5902
5903         * Makefile.in (copying.o): Separate out compile rule.
5904         (hpux-thread.o, procfs.o, signals.o): Ditto.
5905         (v850ice.o, z8k-tdep.o): Ditto.
5906         (tui-file.o): Move to TUI section.
5907         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5908         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5909
5910 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5911
5912         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5913         skip_trampoline_code, for better namespace-proofing.   
5914
5915         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5916
5917 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5918
5919         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5920
5921 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5922
5923         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5924         signal, check whether we hit a breakpoint before checking for a
5925         single step breakpoint. Otherwise, GDB fails to notice that a
5926         breakpoint has been hit when stepping onto a breakpoint.
5927
5928 2002-08-16  Keith Seitz  <keiths@redhat.com>
5929
5930         * gdb-events.sh (clear_gdb_event_hooks): New function.
5931         * gdb-events.c: Regenerate.
5932         * gdb-events.h: Regenerate.
5933
5934 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5935
5936         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5937         not_a_sw_breakpoint.
5938         * breakpoint.h (bpstat_stop_status): Add parameter names.
5939
5940 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5941
5942         * remote.c (remote_insert_hw_breakpoint)
5943         (remote_remove_hw_breakpoint): Fix calculation of length field
5944         for Z-packet.
5945
5946 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5947
5948         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5949         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5950         (supply_fpregset): Ditto.
5951         
5952         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5953         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5954         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5955         (TARGET_READ_SP): Delete.
5956         (DO_REGISTERS_INFO): Delete.
5957         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5958         Delete.
5959         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5960         from macros to functions.
5961
5962         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5963         (mips_register_convertible, mips_register_convert_to_virtual,
5964         mips_register_convert_to_raw): Make static.
5965         (mips_read_sp): New function.
5966         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5967         (mips_do_registers_info): Make static.
5968         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5969         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5970         (mips_register_convert_from_type, mips_register_convert_to_type):
5971         New functions.
5972         (mips_gdbarch_init): Set up function_start_offset, 
5973         register_virtual_size, pc_in_sigtramp.
5974
5975 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5976
5977         * infcmd.c (vector_info): New function.
5978         (_initialize_infcmd): Add command "info vector".
5979         (print_vector_info): New function.
5980
5981         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5982         * gdbarch.h, gdbarch.c: Regenerate.
5983
5984 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5985
5986         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5987         ``print_all''.  Only print vector registers when ``print_all''.
5988
5989 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5990
5991         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5992         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5993
5994         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5995         Add `args' parameter.
5996         * gdbarch.h, gdbarch.c: Regenerate.
5997         
5998         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5999         
6000         * infcmd.c (float_info): Call print_float_info.
6001         (print_float_info): New function.  By default, print the
6002         floating-point registers.
6003
6004         * arch-utils.h (default_print_float_info): Delete declaration.
6005         * arch-utils.c (default_print_float_info): Delete function.
6006         
6007 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
6008
6009         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6010         out define.
6011
6012         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6013         FRAME.
6014
6015         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6016         * configure.host: Make i[3456]86-*-aix host obsolete.
6017         * configure.tgt: Make i[3456]86-*-aix target obsolete.
6018         * config/i386/i386aix.mh, config/i386/i386aix.mt,
6019         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6020         config/i386/xm-i386aix.h: Make files obsolete.
6021         * i386aix-nat.c: Make file obsolete.
6022         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6023         (i386aix-nat.o): Make target obsolete.
6024
6025         * config/i386/nm-gnu.h: Removed.
6026         * config/i386/nm-i386gnu.h: New file.
6027         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6028         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6029         Moved here from ...
6030         * config/i386/tm-i386gnu.h: ... here.  Removed.
6031         * config/i386/xm-i386gnu.h: Removed.
6032         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6033         (NAT_FILE): Set to nm-i386gnu.h.
6034         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6035         * i386-tdep.c: New file.
6036         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6037         (i386gnu-tdep.o): Specify dependencies.
6038
6039 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
6040
6041         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6042         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6043         Adjust a few comments to reflect reality a bit closer.
6044         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6045         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6046         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6047         target_insert_watchpoint, target_remove_watchpoint):
6048         Move defines to ...
6049         * config/i386/nm-i386sco5.h: ... here.
6050         (kernel_u_size): Add prototype.  Improve a few comments and add
6051         protection against multiple inclusion.
6052         
6053         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6054         out define.
6055
6056         * uw-thread.c (SP_ARG0): Define if not already defined.
6057         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6058
6059         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6060
6061         * config/i386/tm-i386.h: Don't include "regcache.h".
6062
6063         * i387-tdep.h (i387_print_float_info): New prototype.
6064         * i387-tdep.c (print_i387_value, print_i387_ext,
6065         print_i387_status_word, print_i387_control_word): Add `struct
6066         ui_file *' argument and use it for output.
6067         (i387_print_float_info): Renamed from i387_float_info.  Add
6068         `struct gdbarch *' and `struct ui_file *' arguments and use the
6069         latter for output.
6070         * i386-tdep.c: Include "i387-tdep.h".
6071         (i386_gdbarch_init): Set print_float_info.
6072         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6073         (FLOAT_INFO): Remove define.
6074
6075 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6076
6077         * mips-tdep.c (mips_push_arguments): Rename to
6078         mips_eabi_push_arguments, and tune for EABI.
6079         (MIPS_REGS_HAVE_HOME_P): Delete.
6080         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6081         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6082         Delete references to mips_regs_have_home_p.
6083
6084 2002-08-14  Keith Seitz  <keiths@redhat.com>
6085
6086         * Makefile.in (install-gdbtk): Create insight plugin directory.
6087         Install plugins.tcl file.
6088
6089 2002-08-14  Keith Seitz  <keiths@redhat.com>
6090
6091         * configure.in: Move SUBDIRS to near top of the file so that
6092         --enable options may add things to it.
6093         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6094         * configure: Regenerate.
6095
6096 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6097
6098         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6099         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6100         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6101
6102 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6103
6104         * vax-tdep.c (vax_get_saved_register): Delete function.
6105         (vax_gdbarch_init): Update.
6106         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6107         (ns32k_gdbarch_init): Update.
6108         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6109         (alpha_gdbarch_init): Update.
6110
6111 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6112
6113         * regcache.c (init_regcache_descr): Overallocate the
6114         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6115         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6116         nr_raw_registers.
6117         (set_register_cached): Add range checking assertions.  Use
6118         current_regcache.
6119
6120 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6121
6122         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6123         numbers for MMX registers.
6124
6125 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6126
6127         * i386-tdep.c (i386_gdbarch_init): Use
6128         generic_unwind_get_saved_register.
6129
6130 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6131
6132         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6133         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6134         target vector.
6135         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6136         Delete.  Add comment regarding this now-deleted target method.
6137
6138 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6139
6140         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6141         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6142         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6143         real PC and the page number (if it's within the memory bank window).
6144         (m68hc11_pseudo_register_write): Likewise when saving.
6145         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6146         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6147         (m68hc11_register_raw_size): And use 32-bit for it.
6148         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6149         16K memory bank is used by the prog; also use the virtual pc.
6150
6151 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6152
6153         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6154         (m68hc11_gdbarch_init): Install it in gdbarch.
6155         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6156         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6157         (MSYMBOL_SIZE): New for documentation.
6158         (insn_return_kind): Enum to specify how a function returns.
6159         (frame_extra_info): Cleanup and record the return mode.
6160         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6161         register in address computation.
6162         (m68hc11_get_return_insn): New to obtain the return instruction used
6163         by the function.
6164         (m68hc11_frame_init_saved_regs): Take into account the return
6165         instruction used by the function for far and interrupt functions.
6166         (m68hc11_init_extra_frame_info): Take into account page register.
6167         (m68hc11_frame_args_address): Adjust according to the return mode.
6168         (show_regs): Print page register only when it's used.
6169
6170 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6171
6172         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6173         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6174         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6175         registers.
6176         (m68hc11_register_raw_size): Likewise.
6177
6178 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6179
6180         * i386-tdep.c (i386_register_name): Handle mmx registers.
6181         (mmx_regnum_p): New function.
6182         (i386_mmx_names): New array.
6183         (mmx_num_regs): New variable.
6184         (i386_pseudo_register_read): New function.
6185         (i386_pseudo_register_write): New function.
6186         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6187
6188         * regcache.c (regcache_raw_read_unsigned): New function.
6189         (regcache_raw_read_signed): New function.
6190         * regcache.h (regcache_raw_read_unsigned): Declare.
6191         (regcache_raw_read_signed): Declare.
6192
6193 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6194
6195         * regcache.c (regcache_raw_read_as_address): Delete function.
6196         (regcache_cooked_read_signed): New function.
6197         (regcache_cooked_read_unsigned): New function.
6198         * regcache.h (regcache_cooked_read_signed): Declare.
6199         (regcache_cooked_read_unsigned): Declare.
6200         (regcache_raw_read_as_address): Delete declaration.
6201
6202         * blockframe.c (generic_read_register_dummy): Use
6203         regcache_cooked_read_unsigned.
6204         * i386-tdep.c (i386_extract_struct_value_address): Use
6205         regcache_cooked_read_unsigned.
6206
6207 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6208
6209         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6210         double sizes according to ELF ABI flags.
6211         (gdbarch_tdep): Record elf_flags.
6212
6213 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6214
6215         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6216         (m6812_prolog): They can appear in 68HC12 function prologue.
6217         (m68hc11_frame_chain): Cleanup.
6218
6219 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6220
6221         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6222         declarations.
6223         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6224         (i386_linux_register_raw_size): Delete function.
6225         (i386_linux_init_abi): Update.
6226         * i386-tdep.c (i386_register_raw_size): Delete function.
6227         (i386_register_byte): Delete function.
6228         (i386_gdbarch_init): Update.
6229         (i386_register_size): Delete array.
6230         (i386_register_offset): Delete array.
6231
6232         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6233         (REGISTER_RAW_SIZE): Delete macro.
6234         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6235         (REGISTER_BYTE): Delete macro.
6236
6237 2002-08-11  Aidan Skinner <aidan@velvet.net>
6238
6239         * ada-lang.c (ada_lookup_partial_symbol)
6240         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6241         prototype names so that grep ^func works properly.
6242
6243         * ada-lang.c (ada_array_element_type)
6244         (ada_lookup_partial_symbol): Fix typos in parameter list.
6245
6246         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6247         Fix prototype names so that grep ^func works properly.
6248         
6249 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6250             Elena Zannoni  <ezannoni@redhat.com>
6251             Martin M. Hunt  <hunt@redhat.com>
6252
6253         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6254         (build_builtin_type_vec128i): Set the vector bit.
6255         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6256         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6257         (build_builtin_type_vec64): New function.
6258         (build_builtin_type_vec64i): New function.
6259         (build_gdbtypes): Initialize builtin_type_vec64 and
6260         builtin_type_vec64i.
6261
6262 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6263
6264         * regcache.c (regcache_dump): Compare the register offset
6265         with REGISTER_BYTE.
6266         * arch-utils.c (generic_register_byte): New function.
6267         * arch-utils.h (generic_register_byte): Declare.
6268         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6269         * gdbarch.h, gdbarch.c: Regenerate.
6270
6271 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6272
6273         * regcache.c: Include "gdbcmd.h"
6274         (_initialize_regcache): Add commands "maintenance print
6275         registers", "maintenance print raw-registers" and "maintenance
6276         print cooked-registers".
6277         (enum regcache_dump_what): Define.
6278         (dump_endian_bytes): New function.
6279         (regcache_dump): New function.
6280         (regcache_print): New function.
6281         (maintenance_print_registers): New function.
6282         (maintenance_print_raw_registers): New function.
6283         (maintenance_print_cooked_registers): New function.
6284         * Makefile.in (regcache.o): Update dependencies.
6285
6286 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6287
6288         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6289         (mips_push_arguments): Correct some comments.  Use paddr_nz
6290         for printing addresses in debug output.  Replace static
6291         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6292         (mips_n32n64_push_arguments): New function, cloned from
6293         mips_push_arguments and tuned for the n32/n64 ABI.
6294         (mips_push_register): Buffer needs dynamic allocation.
6295         (mips_print_register): Ditto.
6296         (do_gp_register_row): Ditto.
6297         (mips_store_return_value): Ditto.
6298         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6299
6300 2002-08-09  Don Howard  <dhoward@redhat.com>
6301
6302         * memattr.c (mem_info_command): Print special case of upper bound
6303         as max CORE_ADDR + 1.
6304
6305 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6306
6307         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6308         returns structs by ref if they're too big to fit in two registers.
6309
6310 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6311
6312         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6313         saved regs value.
6314         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6315         mips_find_saved_regs().
6316         (mips_pop_frame): Likewise.
6317
6318 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6319
6320         * blockframe.c (frame_saved_regs_register_unwind): Revise
6321         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6322         frames are in use.
6323
6324 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6325         
6326         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6327         T-packets; the 'a' is not taken as a register number.
6328         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6329         (remote_stopped_data_address): New functions; add to target
6330         vector.
6331         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6332         prototypes to match other implementations of this
6333         function. replace integer argument with pointer -- the length
6334         field in the Z-packet is the length of what is pointed to or 1 if
6335         pointer is null. Add to target vector.
6336         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6337         target vector.
6338
6339         From Mark Salter:
6340         * remote.c (remote_wait): Add support to extract optional
6341         watchpoint information from T-packet. Ignore unrecognized
6342         optional info in T-packet.
6343         (remote_async_wait): Ditto.
6344
6345 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6346
6347         * cli/cli-dump.c: Change fopen modes to use binary open modes
6348         as defined in include/fopen-bin.h throughout.
6349
6350 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6351
6352         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6353
6354 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6355
6356         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6357         assertion failure by returning early after a warning.
6358
6359 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6360
6361         * mips-tdep.c (mips_find_saved_regs): Make static.
6362         (mips_frame_init_saved_regs): New function.
6363         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6364         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6365         (mips_find_saved_regs): Delete declaration.
6366
6367 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6368
6369         * remote.c (remote_wait, remote_async_wait): Change
6370         thread_num from int to ULONGEST.
6371         (unpack_varlen_hex): Change result parameter from
6372         int * to ULONGEST *.
6373
6374 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6375
6376         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6377         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6378         powerpc*-*-*.
6379         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6380
6381 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6382
6383         * gcore.c (override_derive_stack_segment): Delete variable.
6384         (preempt_derive_stack_segment): Delete function.
6385         (derive_stack_segment): Delete function.
6386         (default_derive_stack_segment): Renamed to derive_stack_segment.
6387         (override_derive_heap_segment): Delete variable.
6388         (preempt_derive_heap_segment): Delete function.
6389         (derive_heap_segment): Delete function.
6390         (default_derive_heap_segment): Rename to derive_heap_segment.
6391
6392 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6393
6394         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6395         * mips-tdep.c (mips_EABI_use_struct_convention, 
6396         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6397         New functions.  (mips_use_struct_convention): Delete.
6398         (mips_gdbarch_init): set use_gdbarch_convention.
6399
6400 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6401
6402         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6403         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6404         mips_o32_reg_struct_has_addr): New functions.
6405         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6406
6407 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6408
6409         * regcache.c (pseudo_register): Delete function.
6410         (fetch_register): Delete function.
6411         (store_register): Delete function.
6412         (regcache_raw_read, legacy_read_register_gen): Use
6413         target_fetch_registers instead of fetch_register.
6414         (legacy_write_register_gen, regcache_raw_write): Use
6415         target_store_register instead of store_register.
6416         (write_register_bytes): Ditto.
6417
6418         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6419         (STORE_PSEUDO_REGISTER): Delete.
6420         * gdbarch.h, gdbarch.c: Regenerate.
6421
6422 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6423
6424         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6425         write dump file binary.
6426
6427 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6428
6429         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6430         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6431         (mips_gdbarch_init): Set N32 target to be mips64.
6432
6433 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6434
6435         * frame.c (find_saved_register): Break out of loop once saved
6436         register address is found.  Don't mention sparc in loop comment
6437         anymore.
6438
6439 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6440
6441         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6442         mips_default_saved_regsize to 8.
6443
6444 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6445
6446         * gcore.c: Do not include <sys/procfs.h>.
6447         * Makefile.in (gcore.o): Update dependencies.
6448
6449 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6450
6451         * configure.tgt: Make arc-*-* obsolete.
6452         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6453         * MAINTAINERS: Make arc-elf obsolete.
6454         * arc-tdep.c: Make file obsolete.
6455         * config/arc/arc.mt: Ditto.
6456         * config/arc/tm-arc.h: Ditto.
6457
6458 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6459
6460         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6461
6462 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6463
6464         * mcore-tdep.c (mcore_gdbarch_init): Use
6465         generic_unwind_get_saved_register instead of
6466         generic_get_saved_register.
6467         * v850-tdep.c (v850_gdbarch_init): Ditto.
6468         * frv-tdep.c (frv_gdbarch_init): Ditto.
6469         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6470         * s390-tdep.c (s390_gdbarch_init): Ditto.
6471         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6472         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6473         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6474
6475 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6476
6477         * objfiles.h: Add missing #include "symfile.h"
6478
6479         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6480
6481 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6482
6483         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6484         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6485         of FIELD_BITSIZE.
6486
6487 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6488
6489         * NEWS: Cleanup and nitpick.
6490
6491 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6492
6493         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6494
6495 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6496
6497         * Makefile.in (gdbtk-bp.o): Update dependencies.
6498         (gdbtk-register.o): Ditto.
6499         (gdbtk-varobj.o): Ditto.
6500
6501 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6502
6503         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6504         m68hc11_fetch_pseudo_register.
6505         (m68hc11_pseudo_register_write): Replace
6506         m68hc11_store_pseudo_register.
6507         (m68hc11_gdbarch_init): Update.
6508
6509 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6510
6511         * gdbarch.sh: Include "gdb_string.h".
6512         * gdbarch.c: Regenerate.
6513
6514         * regcache.c: Include "gdb_string.h".
6515         * ax-general.c: Ditto.
6516         * varobj.c: Ditto.
6517         * std-regs.c: Ditto.
6518         * fbsd-proc.c: Ditto.
6519         * thread.c: Ditto.
6520
6521         * Makefile.in (regcache.o): Update dependencies.
6522         (thread.o, gdbarch.o): Ditto.
6523         (ax-general.o, gdbarch.o): Ditto.
6524         (varobj.o, std-regs.o): Ditto.
6525         (fbsd-proc.o): Specify dependencies.
6526
6527 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6528
6529         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6530         regnum.
6531         (regcache_cooked_write): Ditto.
6532
6533 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6534
6535         * regcache.c (regcache_cooked_read): New function.
6536         (regcache_cooked_write): New function.
6537         (read_register_gen): Rewrite using regcache_cooked_read.
6538         (write_register_gen): Rewrite using regcache_cooked_write.
6539
6540         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6541         Declare.
6542
6543 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6544
6545         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6546         Replace the architecture methods register_read and register_write.
6547         * gdbarch.h, gdbarch.c: Regenerate.
6548         * regcache.c (init_regcache_descr): Update.
6549         (read_register_gen): Update.
6550         (write_register_gen): Update.
6551         (supply_register): Update comment.
6552
6553         * sh-tdep.c (sh_gdbarch_init): Update.
6554         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6555         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6556         pointer.  Update code.
6557         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6558         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6559         void pointer.  Update code.
6560         (sh64_register_write): Delete.
6561         (sh4_register_read): Delete.
6562         (sh64_register_read): Delete.
6563         (sh4_register_write): Delete.
6564         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6565         void pointer, `to' parameter a void pointer.
6566         (sh_sh64_register_convert_to_raw): Ditto.
6567
6568 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6569
6570         * mips-tdep.c (mips_register_virtual_type): Use architecture
6571         invariant return values.
6572
6573 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6574
6575         * linux-proc.c: Include "gdb_string.h".
6576         * Makefile.in (linux-proc.o): Update dependency list.
6577
6578 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6579
6580         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6581         comment.
6582
6583 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6584
6585         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6586         to_insert_watchpoint, to_remove_watchpoint,
6587         to_stopped_by_watchpoint, to_stopped_data_address,
6588         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6589         target vecctor. Define their corresponding macros so they call
6590         them.
6591         
6592         * target.c: Add default and debug versions of for
6593         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6594         to_insert_watchpoint, to_remove_watchpoint,
6595         to_stopped_by_watchpoint, to_stopped_data_address,
6596         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6597
6598 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6599
6600         * mips-tdep.c (mips_register_virtual_type): New function.
6601         (mips_gdbarch_init): Register mips_register_virtual_type()
6602         with gdbarch machinery.
6603         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6604         this file instead of tm-bigmips.h.
6605         (MIPS_REGSIZE): Delete this macro.
6606         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6607         multiarch version in mips-tdep.c will be found.
6608
6609 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6610
6611         * NEWS: Menion that CHILL has been made obsolete.
6612
6613         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6614         * stabsread.c (read_range_type): Ditto.
6615         * gdbtypes.h: Ditto.
6616         * language.c (binop_type_check): Ditto.
6617         (binop_result_type): Ditto.
6618         (integral_type): Ditto.
6619         (character_type): Ditto.
6620         (string_type): Ditto.
6621         (boolean_type): Ditto.
6622         (structured_type): Ditto.
6623         (lang_bool_type): Ditto.
6624         (binop_type_check): Ditto.
6625         * language.h (_LANG_chill): Ditto.
6626         * dwarfread.c (set_cu_language): Ditto.
6627         * dwarfread.c (CHILL_PRODUCER): Ditto.
6628         * dwarfread.c (handle_producer): Ditto.
6629         * expression.h (enum exp_opcode): Ditto.
6630         * eval.c: Ditto for comments.
6631         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6632         * expprint.c (print_subexp): Ditto.
6633         (print_subexp): Ditto.
6634         * valops.c (value_cast): Ditto.
6635         (search_struct_field): Ditto.
6636         * value.h (COERCE_VARYING_ARRAY): Ditto.
6637         * symfile.c (init_filename_language_table): Ditto.
6638         (add_psymbol_with_dem_name_to_list): Ditto.
6639         * valarith.c (value_binop): Ditto.
6640         (value_neg): Ditto.
6641         * valops.c (value_slice): Ditto.
6642         * symtab.h (union language_specific): Ditto.
6643         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6644         (SYMBOL_DEMANGLED_NAME): Ditto.
6645         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6646         * defs.h (enum language): Ditto.
6647         * symtab.c (got_symtab): Ditto.
6648         * utils.c (fprintf_symbol_filtered): Ditto.
6649
6650         * ch-typeprint.c: Make file obsolete.
6651         * ch-valprint.c: Make file obsolete.
6652         * ch-lang.h: Make file obsolete.
6653         * ch-exp.c: Make file obsolete.
6654         * ch-lang.c: Make file obsolete.
6655
6656         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6657         CHILL_LIB.
6658         (TARGET_FLAGS_TO_PASS): Ditto.
6659         (CHILLFLAGS): Obsolete.
6660         (CHILL): Obsolete.
6661         (CHILL_FOR_TARGET): Obsolete.
6662         (CHILL_LIB): Obsolete.
6663         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6664         ch-valprint.c.
6665         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6666         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6667         ch-lang.o.
6668         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6669         targets.
6670
6671 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6672
6673         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6674         This does not change anything at the moment, but will be helpful
6675         later when full Ada support is integrated.
6676
6677 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6678
6679         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6680         help message.
6681
6682 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6683
6684         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6685         and save it in a local variable.  Use variable in later test.
6686
6687 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6688
6689         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6690         test.  (Thanks to Daniel Jacobowitz.)
6691         
6692 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6693
6694         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6695         (mips_abi_strings): Add "n64".
6696         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6697
6698 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6699
6700         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6701         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6702
6703 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6704
6705         * utils.c (host_pointer_to_address, address_to_host_pointer):
6706         Use gdb_assert() instead of explicit call to internal_error().
6707
6708 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6709
6710         * Makefile.in (rs6000-nat.o): Update dependencies.
6711
6712         From Nicholas Duffek:
6713         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6714         (aix-thread.o): New rule.
6715         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6716         * config/powerpc/aix432.mh: New file.
6717
6718 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6719
6720         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6721         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6722         (fetch_core_registers, ppc_linux_supply_gregset)
6723         (ppc_linux_supply_fpregset): New functions.
6724         (ppc_linux_regset_core_fns): New.
6725         (_initialize_ppc_linux_tdep): Call add_core_fns.
6726         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6727         and ppc_linux_supply_gregset.
6728         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6729         (supply_fpregset): Call ppc_linux_supply_fpregset.
6730         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6731         corelow.o.
6732         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6733
6734 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6735
6736         * symtab.c (lookup_symbol): Demangle before lowercasing.
6737
6738 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6739
6740         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6741         declaration.
6742         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6743         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6744         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6745         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6746         "gdb_string.h".
6747         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6748         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6749         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6750         (avr-tdep.o, mon960-rom.o): Ditto.
6751         (aout_stabs_gnu_h): Define.
6752         (symtab_h): Remove $(gdb_obstack_h).
6753
6754 2002-07-30  Jim Blandy  <jimb@redhat.com>
6755
6756         Patch from David Carlton <carlton@math.stanford.edu>:
6757         * gdbinit.in: Move the `dir' commands that add GDB's own source
6758         directory to the search path to the end, so that the `gdb' source
6759         directory will be searched first.
6760
6761 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6762
6763         * gdb_obstack.h: New file.
6764         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6765         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6766         * objfiles.h: Include "gdb_obstack.h".
6767         * Makefile.in (gdb_obstack_h): Define.
6768         (symtab_h): Add $(gdb_obstack_h).
6769         (objfiles_h): Add $(gdb_obstack_h).
6770         
6771         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6772         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6773         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6774         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6775         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6776         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6777         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6778         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6779
6780         * Makefile.in (bcache.o): Update dependencies.
6781         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6782         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6783         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6784         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6785         (stabsread.o, symfile.o, symmisc.o): Ditto.
6786         (symtab.o, typeprint.o, macroexp.o): Ditto.
6787         (macrotab.o, mdebugread.o): Ditto.
6788         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6789         (coff_ecoff_h, aout_aout64_h): Define.
6790         (aout_stabs_gnu_h, libaout_h): Define.
6791
6792 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6793
6794         * regcache.c (struct regcache_descr): Rename nr_registers to
6795         nr_cooked_registers.  Revise comments describing the structure
6796         member fields.
6797         (init_regcache_descr): Update.
6798         (init_legacy_regcache_descr): Update.
6799         (read_register_gen, write_register_gen): When a cooked register in
6800         the raw register range, directly access the value from the raw
6801         register cache.
6802
6803 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6804
6805         * z8k-tdep.c: Do not include "obstack.h".
6806         * h8300-tdep.c, h8500-tdep.c: Ditto.
6807         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6808         * valprint.c, v850-tdep.c: Ditto.
6809         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6810         * mn10200-tdep.c: Ditto.
6811
6812         * Makefile.in (z8k-tdep.o): Update dependencies.
6813         (m68hc11-tdep.o, valprint.o): Ditto.
6814         (v850-tdep.o, d10v-tdep.o): Ditto.
6815         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6816         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6817         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6818         (sh_opc_h, gdb_sim_sh_h): Define.
6819         (elf_sh_h, elf_bfd_h): Define.
6820         (opcode_m68hc11_h): Define.
6821         (OPCODES_SRC, OPCODES_DIR): define.
6822         (OPCODES): Use $(OPCODES_DIR).
6823         (gdb_sim_d10v_h): Rename sim_d10v_h.
6824         (gdb_sim_arm_h): Rename sim_arm_h.
6825
6826 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6827
6828         * utils.c (host_pointer_to_address, address_to_host_pointer):
6829         Change internal_error() message to indicate function responsible
6830         for the error.
6831
6832 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6833
6834         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6835         calls to local_hex_string_custom().
6836
6837 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6838
6839         * irix5-nat.c: Move IRIX shared library support from here...
6840         * solib-irix.c: ...to here.  Revised substantially to work with
6841         generic solib framework.
6842
6843         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6844         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6845         * mips-irix-tdep.c: New file.
6846
6847         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6848         (mips-irix-tdep.o, solib-irix.o): New rules.
6849         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6850         solib-irix.o.
6851         * config/mips/irix6.mt (TDEPFILES): Likewise.
6852         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6853
6854 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6855
6856         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6857         disabled (via ``#if 0'') includes.
6858
6859 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6860
6861         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6862         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6863         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6864         Add support for the fpscr register.
6865         * rs6000-nat.c (regmap, fetch_inferior_registers)
6866         (store_inferior_registers, fetch_core_registers): Likewise.
6867
6868 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6869
6870         * rs6000-nat.c (language.h): Include.
6871         (special_regs): Delete this array.
6872         (regmap): New function.
6873         (fetch_register, store_register):  Use regmap() to map gdb
6874         register numbers to ptrace register numbers.  Also, use
6875         outputs from regmap() to make decisions regarding type of
6876         ptrace() call to make.  In particular, don't compare against
6877         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6878         (fetch_inferior_registers, store_inferior_registers): Where
6879         possible, obtain register numbers from tdep struct.  Don't
6880         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6881         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6882         (LAST_UISA_SP_REGNUM): Delete.
6883         
6884 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6885
6886         * rs6000-nat.c (ppc-tdep.h): Include.
6887         (fetch_registers, store_register, fetch_core_registers): Don't
6888         access registers[] directly.  Instead, use supply_register() or
6889         regcache_collect() as appropriate.
6890         (find_toc_address): Format hex address with local_hex_string().
6891
6892 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6893
6894         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6895         bfd/elf32-frv.c.
6896
6897 2002-07-24  Tom Tromey  <tromey@redhat.com>
6898
6899         * jv-exp.y: Marked all strings with _().
6900         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6901         internal_error.
6902         (MethodInvocation, CastExpression, parse_number, yyerror,
6903         java_type_from_name, push_expression_name, yylex): Typo fixes.
6904
6905 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6906
6907         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6908         (tee_file_flush, tee_file_write, tee_file_fputs)
6909         (tee_file_isatty): New.
6910         * ui-file.h (tee_file_new): Add prototype.
6911
6912 2002-07-24  Aidan Skinner <aidan@velvet.net>
6913
6914         * ada-lang.c: Change k&r style function definitions to prototyped
6915         form.
6916         * ada-typeprint.c: Change k&r style function definitions to prototyped
6917         form.
6918         * ada-valprint.c: Change k&r style function definitions to prototyped
6919         form.
6920         
6921 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6922
6923         * README: Remove reference to remote-bug.
6924         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6925         remote-bug.c.
6926         (m88k-nat.o): Delete rule.
6927         (m88k-tdep.o): Delete rule.
6928         (remote-bug.o): Delete rule.
6929         * MAINTAINERS: Mark as obsolete.
6930         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6931         * m88k-tdep.c: Make file obsolete.
6932         * config/m88k/m88k.mh: Ditto.
6933         * config/m88k/delta88v4.mh: Ditto.
6934         * config/m88k/delta88v4.mt: Ditto.
6935         * config/m88k/delta88.mt: Ditto.
6936         * config/m88k/delta88.mh: Ditto.
6937         * remote-bug.c: Ditto.
6938         * config/m88k/tm-delta88.h: Ditto.
6939         * config/m88k/nm-delta88v4.h: Ditto.
6940         * config/m88k/xm-delta88.h: Ditto.
6941         * config/m88k/xm-dgux.h: Ditto.
6942         * config/m88k/tm-m88k.h: Ditto.
6943         * config/m88k/nm-m88k.h: Ditto.
6944         * config/m88k/tm-delta88v4.h: Ditto.
6945         * m88k-nat.c: Ditto.
6946         * cxux-nat.c: Ditto.
6947         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6948         and m88*-*-* obsolete.
6949         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6950         m88*-*-* obsolete.
6951
6952 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6953
6954         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6955         constant.  Same for local pointer variables.
6956         (extract_signed_integer): Ditto.
6957         * defs.h (extract_unsigned_integer): Update.
6958         (extract_signed_integer): Update.
6959
6960 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6961
6962         * regcache.c (regcache_raw_write): Change buf parameter to a
6963         constant void pointer.
6964         (regcache_raw_read): Change buf parameter to a void pointer.
6965         (legacy_write_register_gen): Change myaddr parameter a constant
6966         void pointer.
6967         (supply_register): Change val parameter to a const void pointer.
6968         * regcache.h (regcache_raw_write): Update declaration.
6969         (regcache_raw_read): Update declaration.
6970         (supply_register): Update declaration.
6971
6972 2002-07-24  Tom Tromey  <tromey@redhat.com>
6973
6974         * defs.h (gdb_readline_wrapper): Declare.
6975         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6976         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6977         * top.c (gdb_readline_wrapper): New function.
6978         (command_line_input): Use it.
6979
6980 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6981
6982         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6983         regcache_read and regcache_write.
6984         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6985         * regcache.c: Update.
6986         * sh-tdep.c (sh64_push_arguments): Update comment.
6987         (sh_pseudo_register_read): Update.
6988         (sh_pseudo_register_write): Update.
6989         (sh4_register_read): Update.
6990         (sh4_register_write): Update.
6991         (sh64_pseudo_register_read): Update.
6992         (sh64_pseudo_register_write): Update.
6993         (sh64_register_read): Update.
6994         (sh64_register_write): Update.
6995         * i386-tdep.c (i386_extract_return_value): Update.
6996         (i386_extract_struct_value_address): Update.
6997         (i386_extract_return_value): Update.
6998         * blockframe.c (generic_read_register_dummy): Update.
6999         (generic_call_dummy_register_unwind): Update
7000         * infrun.c (write_inferior_status_register): Update.
7001
7002 2002-07-23  Jim Blandy  <jimb@redhat.com>
7003
7004         * parser-defs.h (expression_context_pc): Make this extern.
7005         (Thanks to Michael Snyder.)
7006
7007 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
7008
7009         GDB 5.2.1 released from 5.2 branch.
7010         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7011         * README: Update to mention 5.2.1.
7012
7013 2002-07-23  Mark Salter  <msalter@redhat.com>
7014
7015         * remote.c (remote_read_bytes): Fix check for error.
7016
7017 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7018
7019         * aix-thread.c (language.h): Include.
7020         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7021         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7022         Print newlines at end of debug messages.
7023         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7024         (pdc_write_data): Use local_hex_string() instead of %llx formats.
7025
7026 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7027
7028         * aix-thread.c (ppc-tdep.h): Include.
7029         (special_register_p): New function.
7030         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7031         (store_regs_user_thread): Use register number information from
7032         gdbarch_tdep struct instead of hardcoded offsets relative to
7033         FIRST_UISA_SP_REGNUM.
7034         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
7035         special_register_p() instead of using FPLAST_REGNUM and
7036         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7037         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
7038         will be MQ's register number.
7039
7040 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7041
7042         * aix-thread.c (ops): Rename to aix_thread_ops.
7043         (base_ops): Rename to base_target.
7044         (ops_attach): Rename to aix_thread_attach.
7045         (ops_detach): Rename to aix_thread_detach.
7046         (ops_resume): Rename to aix_thread_detach.
7047         (ops_wait):   Rename to aix_thread_wait.
7048         (ops_kill):   Rename to aix_thread_kill.
7049         (init_ops):   Rename to init_aix_thread_ops.
7050         (ops_fetch_register): Rename to aix_thread_fetch_register.
7051         (ops_store_register): Rename to aix_thread_store_register.
7052         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7053         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7054         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7055         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7056         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7057         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7058         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7059         (store_regs_lib):  Rename to store_regs_user_thread.
7060         (store_regs_kern): Rename to store_regs_kernel_thread.
7061
7062 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7063
7064         * aix-thread.c (ops_prepare_to_store): Eliminate.
7065         (init_ops): Don't initialize ops.prepare_to_store.
7066         (store_regs_kern): Pre-fetch register buffers from child, 
7067         because some registers may not be in the cache.  Copy
7068         regs from register cache only if they are cached.
7069         (store_regs_lib): Copy regs from register cache only
7070         if they are cached.
7071         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7072         fill_gprs64): Ditto.
7073
7074 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7075
7076         * aix-thread.c (gdb_assert.h): Include.
7077         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7078         register sizes (from register cache) match size of buffer holding
7079         register data.
7080         (fill_sprs32): Change parameter types to match those in the ptrace()
7081         buffer.
7082         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7083         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7084
7085 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7086
7087         * aix-thread.c (supply_sprs64): Cosmetic change.
7088         (supply_sprs32): Cosmetic change.
7089         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7090         (fill_sprs64): Use regcache_collect instead of read_register.
7091         (store_regs_lib): Use regcache_collect instead of 
7092         read_register.  Use fill_sprs32 instead of fill_sprs64,
7093         if debugging a 32-bit architecture.
7094         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7095         out of the register cache, instead of passing a pointer into
7096         the register cache directly to ptrace.  Use regcache_collect
7097         insteaad of read_register.
7098         (ops_prepare_to_store): Use target_read_registers instead
7099         of read_register_bytes.
7100
7101 2002-07-20  Aidan Skinner <aidan@velvet.net>
7102
7103         * MAINTAINERS: Add self under write after approval. 
7104                 
7105 2002-07-20  Aidan Skinner <aidan@velvet.net>
7106
7107         * ada-tasks.c: Change k&r style function definitions to prototyped
7108         form.
7109                 
7110 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7111
7112         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7113         * x86-64-tdep.c: Include "objfiles.h".
7114         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7115         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7116
7117 2002-07-17  Michal Ludvig  <michal@suse.cz>
7118
7119         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7120         (update_context): Initialise cfa variable.
7121
7122 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7123
7124         * aix-thread.c: Shorten some long lines.  
7125         Bring comments into line with code spec.
7126
7127 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7128
7129         * infrun.c: Re-indent using gdb_indent.sh.
7130
7131 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7132
7133         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7134         Leave the indentation temporarily untouched, to minimize the diffs.
7135
7136 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7137
7138         * stabsread.c: Make os9k sections of the code obsolete,
7139         for real this time.
7140         * stabsread.h: Make os9k sections of the code obsolete.
7141
7142 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7143
7144         * linux-low.c (regsets_store_inferior_registers): Add free()
7145         at the end of a loop to prevent memory leak.
7146         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7147         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7148         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7149         line a comment.
7150         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7151
7152 2002-07-17  Jim Blandy  <jimb@redhat.com>
7153
7154         * macrocmd.c (info_macro_command): Remove newline from error
7155         message.
7156
7157 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7158
7159         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7160         (sh_gdbarch_init): Use it for sh-dsp.
7161
7162 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7163
7164         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7165         64-bit DWARF2 format.
7166
7167 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7168
7169         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7170         <sys/proc.h> when not available.
7171
7172 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7173
7174         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7175         * stabsread.c: Make os9k sections of the code obsolete.
7176         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7177         * config/i386/i386os9k.mt: Make file obsolete.
7178         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7179         (COMMON_OBS): Remove os9kread.o
7180         (SFILES): Remove os9kread.c.
7181         (os9kread.o, remote-os9k.o): Make target obsolete.
7182         * remote-os9k.c: Make file obsolete.
7183         * os9kread.c: Make file obsolete.
7184         * Makefile.in
7185
7186 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7187
7188         * NEWS: Mention that the FR30 has been made obsolete.
7189         * fr30-tdep.c: Make file obsolete.
7190         * config/fr30/tm-fr30.h: Ditto.
7191         * config/fr30/fr30.mt: Ditto.
7192         * configure.tgt: Make fr30-*-elf obsolete.
7193         * MAINTAINERS: Make fr30-elf obsolete.
7194
7195 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7196
7197         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7198         found is not inside a section.
7199
7200 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7201
7202         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7203         strerror().
7204         (pdc_realloc): Use xrealloc() instead of realloc().
7205
7206 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7207
7208         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7209         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7210         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7211         macros.
7212
7213 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7214
7215         * aix-thread.c (ptrace_check): Eliminate goto.
7216         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7217         problem.
7218
7219 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7220
7221         * aix-thread.c (gdbcmd.h): Include.
7222         (DEBUG, DBG, DBG2, dbg): Eliminate.
7223         (debug_aix_thread): New static global.
7224         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7225         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7226         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7227         invocations to DBG and DBG2 macros to test against
7228         ``debug_aix_thread'' and call fprintf_unfiltered().
7229         (_initialize_aix_thread): Add new command "set debug aix-thread".
7230
7231 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7232
7233         From Gerhard Tonn <TON@de.ibm.com>:
7234         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7235         instead of supply_register.
7236
7237 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7238
7239         * dwarf2cfi.c: Include "gdb_assert.h".
7240         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7241         non-NULL.
7242         (update_context): Do not use __func__.  Add missing ``break''.
7243         (update_context): Do not use __func__.
7244
7245 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7246
7247         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7248         and its setting.  Set gdbarch instruction printing functions
7249         directly.  For non-rs6000 case use new function
7250         gdb_print_insn_powerpc.
7251         (gdb_print_insn_powerpc): New function.
7252
7253 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7254
7255         * NEWS: Mention that the d30v has been marked obsolete.
7256         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7257         * configure.tgt: Mark d30v-*-* as obsolete.
7258         * d30v-tdep.c: Mark file as obsolete.
7259         * config/d30v/d30v.mt: Ditto.
7260         * config/d30v/tm-d30v.h: Ditto.
7261
7262 2002-07-13  Aidan Skinner <aidan@velvet.net>
7263
7264         * ada-tasks.c (add_task_entry): replace calls to
7265         malloc() with xmalloc
7266         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7267         
7268         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7269         ada_finish_decode_line_1, all_sals_for_line
7270         ada_breakpoint_rewrite): replace calls to free() with xfree()
7271                 
7272 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7273
7274         From Nicholas Duffek (with minor changes by Martin Hunt, 
7275         Louis Hamilton, and Kevin Buettner):
7276         * aix-thread.c: New file.
7277
7278 2002-07-12  Petr Sorfa <petrs@caldera.com>
7279
7280         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7281         complaint for invalid attribute class or form.
7282         (read_func_scope): DW_AT_frame_base
7283         better handling of DW_AT_block*.
7284         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7285         better handling of DW_AT_block*.
7286         (read_common_block): DW_AT_location
7287         better handling of DW_AT_block*.
7288         (read_partial_die): DW_AT_location better handling
7289         of DW_AT_block*.
7290         (new_symbol): DW_AT_external better handling of
7291         DW_AT_block*. Proper initialization of variable
7292         "addr".
7293         (attr_form_is_block): New function that returns true
7294         if the attribute's form is of DW_FORM_block*.
7295
7296 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7297
7298         * valops.c (find_method_list): Remove comment about
7299         removed STATIC_MEMFUNCP argument.
7300         (value_find_oload_method_list): Likewise.
7301
7302 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7303
7304         From Nicholas Duffek:
7305         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7306         target_new_objfile_hook.
7307
7308 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7309
7310         From Nicholas Duffek:
7311         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7312         csect.
7313
7314 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7315
7316         * MAINTAINERS: Mention --enable-sim-build-warnings.
7317         (m68hc11-elf): Disable sim build warnings.
7318         (m32r-elf): Mark as broken obsolete candidate.
7319         (x86_64-linux-gnu): Mark as buildable with -Werror.
7320         (arm-elf): Change -w to ``,'' which enables warnings but not
7321         -Werror.
7322
7323 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7324
7325         * bcache.h: Update copyright.
7326         (struct bstring, struct bcache): Move definition to "bcache.c".
7327         Replaced by opaque declaration.
7328         (bcache_xfree): Replace free_bcache.
7329         (bcache_xmalloc, bcache_memory_used): Declare.
7330         
7331         * bcache.c: Update copyright.
7332         (struct bstring, struct bcache): Moved to here from "bcache.h".
7333         Update comments.
7334         (bcache_xmalloc, bcache_memory_used): New functions.
7335         (bcache_xfree): Replace function free_bcache.
7336         
7337         * Makefile.in (objfiles.o): Add $(bcache_h).
7338         (objfiles_h): Remove $(bcache_h).
7339         (symfile.o): Add $(bcache_h).
7340
7341         * symmisc.c: Update copyright.
7342         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7343         (print_objfile_statistics): Use bcache_memory_used.
7344
7345         * symfile.c: Include "bcache.h".
7346         (reread_symbols): Use bcache_xfree.
7347         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7348         (add_psymbol_to_list): Pass psymbol_cache by value.
7349         (add_psymbol_with_dem_name_to_list): Ditto.
7350
7351         * objfiles.h: Update copyright.
7352         (struct bcache): Declare opaque.  Do not include "bcache.h".
7353         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7354         bcache'' pointers.
7355         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7356
7357         * objfiles.c: Include "bcache.h".  Update copyright.
7358         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7359         macro_cache.
7360         (free_objfile): Use bcache_xfree.
7361
7362 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7363
7364         * monitor.c (monitor_fetch_register): Make name a constant.
7365         (monitor_store_register): Same.
7366
7367 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7368
7369         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7370         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7371         (finish_block) For non-function blocks, hash the symbol table.  For
7372         function blocks, mark the symbol table as unhashed.
7373         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7374         (msymbol_hash_iw): Likewise.
7375         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7376         value.
7377         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7378         (lookup_minimal_symbol): Likewise for both.
7379         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7380         hashtable.
7381         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7382         (ALL_BLOCK_SYMBOLS): Update.
7383         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7384         (struct symbol): Add `hash_next' pointer.
7385         * symtab.c (lookup_block_symbol): Search using the hash table when
7386         possible.
7387         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7388         (search_symbols, find_addr_symbol): Likewise.
7389
7390         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7391         (read_dst_symtab): Likewise.
7392         * jv-lang.c (get_java_class_symtab): Likewise.
7393         * mdebugread.c: Include "gdb_assert.h".
7394         (shrink_block): Assert that the block being modified is not hashed.
7395         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7396         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7397         symbols.
7398         (dump_symtab): Recognize hashed blocks.
7399         * printcmd.c (print_frame_args):  Assert that function blocks do not
7400         have hashed symbol tables.
7401         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7402         (fill_in_ada_prototype, debug_print_block): Likewise.
7403         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7404
7405 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7406
7407         * stack.c (print_frame): Use result of frame_address_in_block()
7408         instead of fi->pc when evaluating symbols.
7409         (backtrace_command_1): Ditto.
7410
7411 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7412
7413         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7414         Make static.
7415
7416         * arm-tdep.c (arm_register_name): Make return type constant.
7417
7418 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7419
7420         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7421         prototype.
7422         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7423         * s390-tdep.c (s390_fp_regnum): Ditto.
7424         (s390_read_fp): Ditto.
7425         (s390_pop_frame): Ditto.
7426         (_initialize_s390_tdep): Ditto.
7427         * remote.c (get_remote_state): Ditto.
7428         * procfs.c (mappingflags): Ditto.
7429         * memattr.c (_initialize_mem): Ditto.
7430         * mcore-tdep.c (mcore_pop_frame): Ditto.
7431         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7432         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7433         * language.c (set_case_str): Ditto.
7434         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7435         * frv-tdep.c (new_variant): Ditto.
7436         (frv_stopped_data_address): Ditto.
7437         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7438         (context_alloc): Ditto.
7439         (frame_state_alloc): Ditto.
7440         (unwind_tmp_obstack_init): Ditto.
7441         (unwind_tmp_obstack_free): Ditto.
7442         (cfi_read_fp): Ditto.
7443         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7444         (cris_pop_frame): Ditto.
7445         * c-lang.c (scanning_macro_expansion): Ditto.
7446         (finished_macro_expansion): Ditto.
7447         (c_preprocess_and_parse): Ditto.
7448         * gdbarch.sh: Ditto.
7449         * gdbarch.h, gdbarch.c: Regenerate.
7450         * config/mn10200/tm-mn10200.h: Adjust indentation.
7451         * target.c: Adjust indentation.
7452         * symtab.h: Adjust indentation.
7453         * stabsread.h: Adjust indentation.
7454         * remote-es.c: Adjust indentation.
7455         * os9kread.c: Adjust indentation.
7456
7457 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7458         
7459         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7460         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7461
7462 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7463         
7464         * NEWS: Mention m68k, mcore multi-arching.  
7465         * MAINTAINERS: Change status of m68k, mcore to reflect
7466         multi-arching.
7467
7468 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7469
7470         * valops.c (find_overload_match): Free oload_syms.
7471
7472 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7473
7474         Define HAVE_SYS_PROC_H if sys/proc.h exists
7475         * configure.in: Add check for sys/proc.h
7476         * config.in: Regenerate.
7477         * configure: Regenerate.
7478
7479 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7480
7481         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7482         #if !GDB_MULTI_ARCH. 
7483
7484 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7485
7486         * config.in, configure: Regenerate.
7487
7488 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7489
7490         * dwarf2cfi.c: Include "gcore.h".
7491         (execute_stack_op): Fix implementation of the
7492         DW_OP_deref and DW_OP_deref_size operators by letting do their
7493         lookup in the target.
7494
7495 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7496
7497         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7498         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7499         tdep->sc_sp_offset.
7500
7501 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7502
7503         Fix PR gdb/595, gdb/602
7504         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7505         Don't call value_cast, just read the vtable pointer; update comments
7506         to match.
7507
7508 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7509
7510         * config/mcore/tm-mcore.h: Remove file.
7511         * config/mcore/mcore.mt: Remove definition of TM_FILE
7512         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7513
7514 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7515
7516         * i386bsd-tdep.c: Include "gdb_string.h".
7517
7518 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7519
7520         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7521         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7522         mcore-tdep.
7523         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7524         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7525         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7526         (RETVAL_REGNUM): Move macros from tm-mcore.h
7527         (mcore_reg_struct_has_addr): New function.
7528         (mcore_gdbarch_init): Added initializations for the macros removed
7529         from tm-mcore.h.
7530
7531 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7532
7533         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7534         traditonal string branding within the ELF header.
7535
7536 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7537
7538         * symtab.c (remove_params): New function.
7539         (make_symbol_overload_list): Use it instead of cplus_demangle.
7540         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7541
7542 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7543
7544         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7545
7546         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7547         New variables.
7548         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7549         and tdep->sigtramp_end.
7550         * i386obsd-nat.c: New file.
7551         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7552
7553         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7554         Don't call get_current_frame().
7555
7556 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7557
7558         * i386-nat.c (child_post_startup_inferior): New function
7559         calling i386_cleanup_dregs if
7560         I386_USE_GENERIC_WATCHPOINTS is defined.
7561         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7562         conditional to acknowledge that i386-nat.c has its
7563         own child_post_startup_inferior function.
7564
7565 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7566
7567         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7568         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7569         instead of MAX_REGISTER_RAW_SIZE.
7570         (i386_extract_return_value, i386_extract_struct_value_address):
7571         Convert to use regcache.
7572         (i386_gdbarch_init): Set max_register_raw_size and
7573         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7574         Set extract_return_value and extract_struct_value_address instead
7575         of their deprecated variants.
7576
7577         Convert i386 target to generic dummy frames.
7578         * i386-tdep.c: Include "symfile.h".
7579         (i386_frameless_signal_p): Consider a function to be frameless if
7580         the pc points at the first instruction of the function.
7581         (i386_frame_chain): Handle (generic) call dummies.
7582         (i386_frame_saved_pc): Likewise.
7583         (i386_frame_init_saved_regs): Remove code dealing with call
7584         dummies on the stack.
7585         (i386_push_dummy_frame): Removed.
7586         (i386_call_dummy_words): Removed.
7587         (i386_fix_call_dummy): Removed.
7588         (i386_push_return_address): New function.
7589         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7590         parameter, and don't call get_current_frame.
7591         (i386_pop_frame): New function.
7592         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7593         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7594         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7595         call_dummy_length to 0, set call_dummy_words to NULL, set
7596         sizeof_call_dummy_words to 0, set fix_call_dummy to
7597         generic_fix_call_dummy, set pc_in_call_dummy to
7598         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7599         generic_push_dummy_frame, set push_return_address to
7600         i386_push_return_address and set frame_chain_valid to
7601         generic_file_frame_chain_valid.
7602
7603 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7604
7605         * gdbarch.sh (struct regcache): Add opaque declaration.
7606         (EXTRACT_RETURN_VALUE): New architecture method.
7607         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7608         * gdbarch.h, gdbarch.c: Regenerate.
7609         * arch-utils.c (legacy_extract_return_value): New function.
7610         * arch-utils.h (legacy_extract_return_value): Declare.
7611         * values.c (value_being_returned): Re-enable code handling
7612         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7613         deprecated_grub_regcache_for_registers call to block handling
7614         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7615         (EXTRACT_RETURN_VALUE): Do not define.
7616
7617 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7618
7619         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7620         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7621         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7622         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7623         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7624         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7625         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7626         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7627         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7628         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7629         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7630         argument so the function fits the prototype in the architecture
7631         vector.
7632         (mcore_pop_frame): Remove argument so the function fits the
7633         prototype. Use get_current_frame instead of the argument.
7634         (mcore_push_arguments): Change type of struct_return so the
7635         function can be used in the architecture vector.
7636         (mcore_store_struct_return): Add.
7637         (mcore_frame_init_saved_regs): Add.
7638         (mcore_gdbarch_init): Add function calls to replace the macros
7639         removed from tm-mcore.h
7640
7641 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7642
7643         * infcmd.c (print_return_value): Remove compatibility code calling
7644         deprecated_grub_regcache_for_registers.
7645         
7646         * values.c: Include "regcache.h".
7647         (value_being_returned): Update.  Use
7648         deprecated_grub_regcache_for_registers to extract the register
7649         buffer address.  
7650         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7651         ``struct regcache''.
7652         * Makefile.in (values.o): Add dependency on $(regcache_h).
7653
7654         * inferior.h (run_stack_dummy): Change type of second parameter to
7655         a ``struct regcache''.
7656         * valops.c (hand_function_call): Change type of retbuf to ``struct
7657         regcache''.  Allocate using regcache_xmalloc, clean using
7658         make_cleanup_regcache_xfree.
7659         * infcmd.c (run_stack_dummy): Update.  Use
7660         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7661
7662         * regcache.c (do_regcache_xfree): New function.
7663         (make_cleanup_regcache_xfree): New function.
7664         * regcache.h (make_cleanup_regcache_xfree): Declare.
7665
7666 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7667
7668         * event-top.c (command_line_handler): Don't read past
7669         beginning of buffer.
7670
7671 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7672         
7673         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7674         struct frame_id. 
7675         (varobj_create): Store frame_id for root.
7676         (varobj_gen_name): Use xasprintf.
7677         (varobj_update): Save and restore frame using get_frame_id() and
7678         frame_find_by_id().
7679         (create_child): Use xasprintf.
7680         (new_root_variable): Initialize frame_id.
7681         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7682         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7683         to prevent memory leak.
7684
7685 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7686
7687         * valops.c (hand_function_call): Move declaration of retbuf to
7688         start of function, allocate using malloc, add a cleanup but before
7689         the inf_status cleanup, cleanup the buffer.  Rename local variable
7690         old_chain to inf_status_cleanup.
7691
7692 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7693
7694         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7695
7696         * cli/cli-decode.c (cmd_func_p): New function.
7697         (cmd_func): New function.
7698
7699         * command.h: Add cmd_func() and cmd_func_p().   
7700         
7701 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7702
7703         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7704         (REGISTER_SIZE): Remove.
7705         (MAX_REGISTER_RAW_SIZE): Remove.
7706         (REGISTER_VIRTUAL_TYPE): Remove.
7707         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7708         (REGISTER_NAME): Remove.
7709         (USE_GENERIC_DUMMY_FRAMES): Remove.
7710         (CALL_DUMMY): Remove.
7711         (CALL_DUMMY_START_OFFSET): Remove.
7712         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7713         (CALL_DUMMY_LOCATION): Remove.
7714         (FIX_CALL_DUMMY): Remove.
7715         (CALL_DUMMY_ADDRESS): Remove.
7716         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7717         (SAVE_DUMMY_FRAME_TOS): Remove.
7718         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7719         (mcore_register_virtual_type): New function.
7720         (mcore_register_byte): New function.
7721         (mcore_register_size): New function.
7722         (mcore_register_name): New function.
7723         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7724         macros removed from tm-mcore.h.
7725         (mcore_dump_tdep): Add.
7726         (_initialize_mcore_tdep): Add gdbarch_register call.
7727
7728 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7729
7730         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7731         frameless_look_for_prologue, such that we actually call this
7732         function.
7733
7734 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7735
7736         * frame.h (frame_address_in_block): New function.
7737
7738         * blockframe.c (frame_address_in_block): New function extracted
7739         from get_frame_block().
7740         (get_frame_block): Use frame_address_in_block().
7741         (block_innermost_frame): Use frame_address_in_block() to match
7742         the frame pc address against the block boundaries rather than
7743         the frame pc directly. This prevents a failure when a frame pc
7744         is actually a return-address pointing immediately after the end
7745         of the given block. 
7746
7747 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7748
7749         * MAINTAINERS: Add self under write after approval. 
7750
7751 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7752
7753         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7754         used in architecture vector. The default is
7755         m68k_local_breakpoint_from_pc.
7756         (m68k_local_breakpoint_from_pc): Add.
7757         (enum): Add register numbers from tm-m68k.h.
7758         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7759         vector.  
7760         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7761         GDB_MULTI_ARCH_PARTIAL.
7762         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7763         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7764         m68k-tdep.c.
7765         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7766         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7767         to enum in m68k-tdep.c
7768
7769 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7770
7771         * solib-osf.c (open_map): Compute the list of shared libraries
7772         loaded by the inferior, rather than the list of libraries loaded
7773         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7774         the wrong shared libraries...
7775
7776 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7777
7778         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7779         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7780         macros.
7781         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7782         Remove functions.
7783         (FRAMELESS_SIGNAL): Remove function.
7784         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7785         i386_linux_saved_pc_after_call): Removed.
7786         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7787         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7788         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7789
7790         * i386-tdep.c (i386_frameless_signal_p): New function.
7791         (i386_frame_chain): Deal with frameless signals.
7792         (i386_sigtramp_saved_sp): New function.
7793         (i386_frame_saved_pc): Deal with frameless signals.
7794         (i386_saved_pc_after_call): Make sure the correct value is
7795         returned just after entry into a sigtramp.
7796         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7797         i386fbsd4_sc_sp_offset): New variables.
7798         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7799         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7800         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7801         similiar to what we already did for sc_pc_offset.
7802         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7803         tdep->sc_sp_offset.
7804
7805         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7806
7807 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7808
7809         * config/i386/tm-x86-64linux.h: New.
7810         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7811         definitions.
7812         * config/i386/nm-x86-64.h: Rename to ...
7813         * config/i386/nm-x86-64linux.h: ... this one.
7814         * config/i386/x86-64linux.mh: Reflect the above change.
7815         
7816 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7817
7818         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7819         with sigcontext_addr.  Add sc_sp_offset.
7820         (i386bsd_sigtramp_saved_pc): Remove prototype.
7821         (i386bsd_sicontext_addr): Add prototype.
7822         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7823         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7824         (i386_svr4_sigtramp_saved_pc): Removed.
7825         (i386_svr4_sigcontext_addr): New function.
7826         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7827         Initialize tdep->sigcontext_addr instead.  Initialize
7828         tdep->sc_pc_offset and tdep->sc_sp_offset.
7829         (i386_gdbarch_init): Likewise.
7830         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7831         any more.
7832         (i386bsd_sigtramp_saved_pc): Remove function.
7833         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7834         Initialize tdep->sigcontext_addr instead.  Initialize
7835         tdep->sc_pc_offset.
7836         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7837         of tdep->sigtramp_saved_pc.
7838         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7839         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7840         instead.
7841
7842         * i386-tdep.c (i386_frameless_function_invocation,
7843         i386_frame_num_args, i386_frame_init_saved_regs,
7844         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7845         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7846         i386_extract_return_value, i386_store_return_value,
7847         i386_extract_struct_value_address, i386_register_virtual_type,
7848         i386_register_convertible, i386_register_convert_to_virtual,
7849         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7850         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7851         static.
7852
7853 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7854
7855         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7856
7857         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7858         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7859         this macro.  Include "value.h".
7860
7861 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7862
7863         * ada-exp.tab.c: remove as it's a generated file
7864         * ada-lex.c: remove as it's a generated file
7865                 
7866 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7867
7868         * config/i386/tm-i386.h (struct frame_info, struct
7869         frame_saved_regs, struct value, struct type): Remove forward
7870         declarations.
7871
7872         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7873         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7874         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7875         (FILL_FPXREGSET): Define.
7876
7877         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7878
7879         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7880         i[3456]86-*-netbsd* case.
7881         * config/i386/tm-obsd.h: Removed.
7882         * config/i386/obsd.mt: Removed.
7883         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7884         core-aout.o.
7885         (MH_CFLAGS): Add -DYYDEBUG=0.
7886
7887         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7888         i386nbsd_sc_pc_offset on OpenBSD too.
7889
7890         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7891         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7892         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7893         define.
7894         * i386bsd-tdep.c: Include "arch-utils.h".
7895         (i386bsd_aout_in_solib_call_trampoline): New function.
7896         (i386bsd_init_abi): Set in_solib_call_trampoline to
7897         i386bsd_aout_in_solib_call_trampoline.
7898         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7899         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7900
7901 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7902
7903         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7904         (struct obstack, struct bcache): Add opaque declarations.
7905         * Makefile.in (macrotab_h): Update
7906
7907 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7908
7909         * blockframe.c (generic_find_dummy_frame): Change return type to
7910         ``struct regcache''.
7911         (struct dummy_frame): Replace field ``registers'' with regcache, a
7912         struct regcache object.
7913         (generic_find_dummy_frame): Update.
7914         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7915         regcache_xmalloc and regcache_cpy.
7916         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7917         regcache_xfree.
7918         (deprecated_generic_find_dummy_frame): Update.
7919         (generic_read_register_dummy): Update.  Use
7920         regcache_read_as_address.
7921         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7922         (generic_get_saved_register): Update.  Use regcache_read.
7923
7924 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7925
7926         * Makefile.in (objfiles_h): Add $(bcache_h).
7927         * objfiles.h: Include "bcache.h".
7928
7929         * Makefile.in (symtab_h): Remove $(bcache_h).
7930         * symtab.h: Do not include "bcache.h".
7931
7932 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7933
7934         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7935         generic_func_frame_chain_valid.
7936
7937 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7938
7939         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7940         * config/i386/tm-fbsd.h: Likewise.
7941
7942 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7943
7944         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7945         generic_unwind_get_saved_register.
7946
7947 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7948
7949         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7950         * regcache.c (supply_register): Add missing argument to
7951         register_buffer call.
7952
7953 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7954
7955         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7956         Solaris /bin/grep does not not like it.  From Peter Schauer.
7957
7958 2002-06-26  Tom Tromey  <tromey@redhat.com>
7959
7960         * command.h (add_setshow_cmd): Declare.
7961         (add_setshow_cmd_full): Declare.
7962         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7963         returns void.  Use add_setshow_cmd_full.
7964         (add_setshow_cmd_full): New function.
7965         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7966         (add_setshow_boolean_cmd): Likewise.
7967
7968 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7969
7970         * config/vax/tm-vax.h: Protect from multiple inclusion.
7971         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7972         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7973         * config/vax/tm-vaxbsd.h: ...here.  New file.
7974         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7975
7976 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7977
7978         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7979         (BELIEVE_PCC_PROMOTION): Remove.
7980         (AP_REGNUM): Move to...
7981         * config/vax/nm-vax.h: ...here.
7982         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7983         (vax_breakpoint_from_pc): New function.
7984         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7985         and gdbarch_believe_pcc_promotion.
7986
7987 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7988
7989         * Makefile.in (vax_tdep_h): Define.  
7990         (vax-tdep.o): Use $(vax_tdep_h).
7991         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7992         (vax_dump_tdep): New function. 
7993         (_initialize_vax_tdep): Register vax_dump_tdep.
7994         * vax-tdep.h: Include osabi.h.     
7995         (struct gdbarch_tdep): New. 
7996
7997 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7998
7999         * frame.h (deprecated_generic_find_dummy_frame): Rename
8000         generic_find_dummy_frame.
8001         * blockframe.c (generic_find_dummy_frame): Make static.
8002         (deprecated_generic_find_dummy_frame): New function.
8003         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8004         generic_find_dummy_frame with deprecated_find_dummy_frame.
8005         (sh64_nofp_frame_init_saved_regs): Ditto.
8006         (sh_fp_frame_init_saved_regs): Ditto.
8007         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8008         (s390_frame_chain): Ditto.
8009         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8010
8011 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8012
8013         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8014         gdbarch vector are at the top.
8015         (NUM_REGS): Remove.
8016         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8017         (FRAME_ARGS_ADDRESS): Remove.
8018         (FRAME_LOCALS_ADDRESS): Remove.
8019         (FRAME_NUM_ARGS): Remove.
8020         (FRAME_ARGS_SKIP): Remove.  
8021         * m68k-tdep.c (enum): Add eumeration of special register numbers.
8022         (m68k_gdbarch_init): Add gdbarch initializations for macros
8023         undefined in tm-m68k.h
8024
8025 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8026
8027         * monitor.h: Add the function regname to monitor_ops
8028         structure. This way NUM_REGS does not have to be a constant.
8029         * monitor.c (monitor_fetch_register): Added support for regname
8030         function. The function is called if the array regnames is NULL.
8031         (monitor_store_register): Same.
8032         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8033         regnames array.
8034         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8035         cpu32bug_cmds.regname to point to new function.
8036         * abug-rom.c (abug_regname): Same as above.
8037         (init_abug_cmds): Same.
8038         * dbug-rom.c (dbug_regname): Same as above.
8039         (init_dbug_cmds): Same.
8040         * remote-est.c (est_regname): Same. 
8041         (init_est_cmds): Same.
8042         * rom68k-rom.c (rom68k_regname): Same. 
8043         (init_rom68k_cmds): Same.
8044
8045 2002-06-25  Tom Tromey  <tromey@redhat.com>
8046
8047         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8048
8049 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8050
8051         * infrun.c (stop_registers): Change variable's type to ``struct
8052         regcache'''.
8053         (xmalloc_inferior_status): Delete function.
8054         (free_inferior_status): Delete function.
8055         (normal_stop): Use regcache_cpy.
8056         (struct inferior_status): Change type of fields ``stop_registers''
8057         and ``registers'' to ``struct regcache''.
8058         (write_inferior_status_register): Use regcache_write.
8059         (save_inferior_status): Instead of calling
8060         xmalloc_inferior_status, allocate the inf_status buffer directly.
8061         Use regcache_dup_no_passthrough and regcache_dup to save the
8062         buffers.
8063         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8064         Replace the stop_registers regcache instead of overriding it.  Use
8065         regcache_xfree.  Instead of calling free_inferior_status, xfree
8066         the buffer directly.
8067         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8068         free_inferior_status, xfree the buffer directly.
8069         (build_infrun): Use regcache_xmalloc.
8070         (_initialize_infrun): Delete redundant call to build_infrun.
8071
8072         * Makefile.in (infcmd.o): Add $(regcache_h).
8073
8074         * infcmd.c: Include "regcache.h".
8075         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8076         obtain the address of `stop_registers' register buffer.
8077         (print_return_value): Ditto.
8078
8079         * inferior.h (struct regcache): Add opaque declaration.
8080         (stop_registers): Change variable's declared type to ``struct
8081         regcache''.
8082
8083 2002-06-24  Tom Tromey  <tromey@redhat.com>
8084
8085         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8086         * target.c (initialize_targets): Fixed typo in
8087         trust-readonly-sections `show' documentation.
8088
8089         * main.c: Marked all strings with _().
8090
8091 2002-06-24  Don Howard  <dhoward@redhat.com>
8092
8093         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8094         that means max CORE_ADDR+1.
8095         (lookup_mem_region): Ditto.
8096         (mem_info_command): Ditto.
8097
8098 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8099
8100         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8101         (REGISTER_BYTES_OK): Remove.
8102         (REGISTER_BYTES): Remove.
8103         (STORE_STRUCT_RETURN): Remove.
8104         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8105         (STORE_RETURN_VALUE): Remove.
8106         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8107         (FRAME_CHAIN): Remove.
8108         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8109         (FRAME_SAVED_PC): Remove.  
8110         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8111         (m68k_store_struct_return): Add.
8112         (m68k_deprecated_extract_return_value): Add.
8113         (m68k_deprecated_extract_struct_value_address): Add.
8114         (m68k_store_return_value): Add.
8115         (m68k_frame_chain): Add.
8116         (m68k_frameless_function_invocation): Add.
8117         (m68k_frame_saved_pc): Add.
8118         (m68k_gdbarch_init): added set_gdbarch calls for new 
8119         functions and deleted macros.
8120
8121 2002-06-23  Tom Tromey  <tromey@redhat.com>
8122
8123         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8124         (ALLDEPFILES): Likewise.
8125         (udiheaders): Removed.
8126         (udip2soc.o): Likewise.
8127         (udi2go32.o): Likewise.
8128         (udr.o): Likewise.
8129         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8130
8131 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8132
8133         * infrun.c (_initialize_infrun): Delete unnecessary call to
8134         build_infrun.
8135
8136         * regcache.h: Update comments describing the regcache_cpy family
8137         of functions.
8138         (regcache_save, regcache_restore): Delete declaration.
8139         (regcache_save_no_passthrough): Delete declaration.
8140         (regcache_restore_no_passthrough): Delete declaration.
8141         * regcache.c (regcache_save): Delete function.
8142         (regcache_save_no_passthrough): Delete function.
8143         (regcache_restore): Delete function.
8144         (regcache_restore_no_passthrough): Delete function.
8145
8146 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8147
8148         * config/m68k/tm-m68k.h: Fix typo.
8149         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8150         (m68k_frame_init_saved_regs): Declare.
8151
8152 2002-06-21  Jim Blandy  <jimb@redhat.com>
8153
8154         Remove some vestiges of Harris 88k support.
8155         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8156         register numbering quirk.
8157         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8158         odd symbols occurring in Harris 88k ELF targets.
8159
8160 2002-06-21  Tom Tromey  <tromey@redhat.com>
8161
8162         * gdb_locale.h: New file.
8163         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8164         (defs_h): Added gdb_locale.h.
8165         * configure, config.in: Rebuilt.
8166         * configure.in (PACKAGE): Define.
8167         * defs.h: Include gdb_locale.h.
8168         * main.c (captured_main): Call setlocale, bindtextdomain,
8169         textdomain.
8170
8171 2002-06-21  Dave Brolley  <brolley@redhat.com>
8172
8173         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8174         * config/frv/frv.mt: New file.
8175         * config/frv/tm-frv.h: New file.
8176         * configure.tgt: Support frv-*-*.
8177         * Makefile.in (frv-tdep.o): New target.
8178         * frv-tdep.c: New file.
8179         * NEWS: Mention frv.
8180
8181 2002-06-21  Dave Brolley  <brolley@redhat.com>
8182
8183         * MAINTAINERS: Add self to "Write After Approval" list.
8184
8185 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8186
8187         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8188         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8189         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8190         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8191         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8192
8193         * m68k-tdep.c: Include arch-utils.h
8194         (m68k_register_raw_size): Add.
8195         (m68k_register_virtual_size): Add.
8196         (m68k_register_virtual_type): Add.
8197         (m68k_register_name): Add.
8198         (m68k_stack_align): Add.
8199         (m68k_register_byte): Add.
8200         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8201         tm-m68k.h.
8202
8203 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8204
8205         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8206         m68k_find_saved_regs.
8207         (m68k_pop_frame): Removed saved_regs structure, and replaced
8208         references to it with frame->saved_regs.
8209         (m68k_gdbarch_init): Added function calls to initialize the
8210         gdbarch structure.
8211         (m68k_fix_call_dummy): Add. 
8212         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8213         (CALL_DUMMY): Remove.
8214         (CALL_DUMMY_LENGTH): Remove.
8215         (CALL_DUMMY_START_OFFSET): Remove.
8216         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8217         (FIX_CALL_DUMMY): Remove.
8218         (PUSH_DUMMY_FRAME): Remove.
8219         (POP_FRAME): Remove.
8220
8221 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8222
8223         * parse.c (parse_fprintf): New function used to avoid calls to
8224         fprintf in bison parser generated debug code.
8225         * parser-defs.h: Declaration of new parse_fprintf function.
8226         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8227         Set YYDEBUG to 1 by default.
8228         Set YYFPRINTF as parse_fprintf.
8229
8230 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8231
8232         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8233         encoding anymore.
8234         (pointer_encoding, enum ptr_encoding): New.
8235         (execute_cfa_program): Take care about pointer encoding.        
8236         (dwarf2_build_frame_info): Only call parse_frame_info for 
8237         .debug_frame and .eh_frame.
8238         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8239         fixed augmentation handling, added relative addressing, 
8240         ignore duplicate FDEs. Added comments.
8241         * dwarf2cfi.c: Reindented.
8242         
8243 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8244
8245         * event-top.c (command_handler): Don't use space_at_cmd_start
8246         unless there is sbrk() on the host. Assign time and space data
8247         to union fields of the appropriate length.
8248
8249 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8250
8251         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8252         x86_64_register_name. Return type changed to 'const char *'.
8253         (x86_64_register_name2nr): Rename to x86_64_register_number.
8254         (x86_64_gdbarch_init): Update to reflect the change.
8255         * x86-64-tdep.h: Ditto.
8256         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8257         (supply_fpregset): Ditto.
8258
8259 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8260
8261         * regcache.h: Update copyright.
8262         (struct regcache, struct gdbarch): Add opaque declarations.
8263         (current_regcache): Declare global variable.
8264         (regcache_read, regcache_write): Add gdbarch parameter.
8265         (regcache_save, regcache_save_no_passthrough)
8266         (regcache_restore, regcache_restore_no_passthrough)
8267         (regcache_dup, regcache_dup_no_passthrough)
8268         (regcache_cpy, regcache_cpy_no_passthrough)
8269         (deprecated_grub_regcache_for_registers)
8270         (deprecated_grub_regcache_for_register_valid)
8271         (regcache_valid_p): Add function declarations.
8272         
8273         * regcache.c: Update copyright.
8274         (regcache_descr_handle): New global variable.
8275         (struct regcache_descr): Define.
8276         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8277         (regcache_descr, xfree_regcache_descr): New functions.
8278         (struct regcache): Define.
8279         (regcache_xmalloc, regcache_xfree): New functions.
8280         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8281         (regcache_dup, regcache_dup_no_passthrough): New functions.
8282         (regcache_valid_p, regcache_read_as_address): New functions.
8283         (deprecated_grub_regcache_for_registers): New function.
8284         (deprecated_grub_regcache_for_register_valid): New function.
8285         (current_regcache): New global variable.
8286         (register_buffer): Add regcache parameter.  Update calls.
8287         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8288         (read_register_gen, write_register_gen): Update register_buffer
8289         call.  Test for legacy_p instead of gdbarch_register_read_p or
8290         gdbarch_register_write_p.
8291         (regcache_collect): Update register_buffer call.
8292         (build_regcache): Rewrite.  Use deprecated grub functions.
8293         (regcache_save, regcache_save_no_passthrough): New functions.
8294         (regcache_restore, regcache_restore_no_passthrough): New
8295         functions.
8296         (_initialize_regcache): Create the regcache_data_handle. Swap
8297         current_regcache global variable.
8298         
8299         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8300         parameter to regcache_read and regcache_write calls.
8301         (sh4_register_read): Ditto.
8302         (sh64_pseudo_register_read): Ditto.
8303         (sh64_register_read): Ditto.
8304         (sh_pseudo_register_write): Ditto.
8305         (sh4_register_write): Ditto.
8306         (sh64_pseudo_register_write): Ditto.
8307         (sh64_register_write): Ditto.
8308
8309         * defs.h (XCALLOC): Define.
8310
8311 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8312
8313         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8314         * m68k-tdep.c (m68k_gdbarch_init): Added.
8315         (m68k_dump_tdep): Added.
8316
8317 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8318
8319         * ada-lang.c (fill_in_ada_prototype): Update comment.
8320
8321 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8322
8323         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8324         MIPS_ABI_LAST.
8325         (mips_abi_string, mips_abi_strings): New.
8326         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8327         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8328         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8329         O32 if no ABI is found.
8330         (mips_dump_tdep): Use mips_abi_strings.
8331         (mips_abi_update): New function.
8332         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8333         ``set mips abi'' and ``show mips abi''.  Check the size of
8334         mips_abi_strings.
8335
8336 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8337
8338         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8339         constant.
8340
8341 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8342
8343         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8344         current frame using only the first stack size adjustment. All
8345         subsequent size adjustments are not considered to be part of
8346         the "static" part of the current frame.
8347         Compute the address of the saved registers relative to the
8348         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8349         in use in this frame.
8350
8351 2002-06-18  Don Howard  <dhoward@redhat.com>
8352  
8353         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8354         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8355         suggesting this solution.
8356
8357 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8358
8359         * config/romp/xm-rtbsd.h: Delete file.
8360         * config/romp/rtbsd.mh: Delete file.
8361
8362 2002-06-18  Keith Seitz  <keiths@redhat.com>
8363
8364         * breakpoint.c (condition_command): Post breakpoint_modify
8365         when a condition is added to an existing breakpoint.
8366         (commands_command): Likewise for commands.
8367         (set_ignore_count): Likewise for ignore counts.
8368         If no tty, do not simply return, still need to send event
8369         notification.
8370         (ignore_command): Only print a newline if the command came
8371         from a tty.
8372         Don't call breakpoints_changed, since this is now properly
8373         handled by set_ignore_count.
8374
8375 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8376
8377         * MAINTAINERS: Note that cris-elf target can be compiled with
8378         -Werror.
8379         * cris-tdep.c (cris_register_name): Make return type constant.
8380         (cris_breakpoint_from_pc): Ditto.
8381
8382 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8383
8384         * frame.h (struct frame_info): Change type of context to 
8385         'struct context'.
8386
8387 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8388
8389         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8390         pointer.
8391         * gdbarch.h, gdbarch.c: Regenerate.
8392         * config/mips/tm-mips.h (mips_register_name): Update.
8393         * i386-tdep.h (i386_register_name): Update.
8394         * mips-tdep.c (mips_register_name): Update
8395         * alpha-tdep.c (alpha_register_name): Update.
8396         * arch-utils.c (legacy_register_name): Update.
8397         * arch-utils.h (legacy_register_name): Update.
8398         * avr-tdep.c (avr_register_name): Update.
8399         * ia64-tdep.c (ia64_register_name): Update.
8400         * i386-tdep.c (i386_register_name): Update.
8401         * sparc-tdep.c (sparc32_register_name): Update.
8402         (sparc64_register_name): Update.
8403         (sparclite_register_name): Update.
8404         (sparclet_register_name): Update.
8405         * sh-tdep.c (sh_generic_register_name): Update.
8406         (sh_sh_register_name): Update.
8407         (sh_sh3_register_name): Update.
8408         (sh_sh3e_register_name): Update.
8409         (sh_sh_dsp_register_name): Update.
8410         (sh_sh3_dsp_register_name): Update.
8411         (sh_sh4_register_name): Update.
8412         (sh_sh64_register_name): Update.
8413         * s390-tdep.c (s390_register_name): Update.
8414         * rs6000-tdep.c (rs6000_register_name): Update.
8415         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8416         (ns32k_register_name_32382): Update.
8417         * d10v-tdep.c (d10v_ts2_register_name): Update.
8418         (d10v_ts3_register_name): Update.
8419         * xstormy16-tdep.c (xstormy16_register_name): Update.
8420         * vax-tdep.c (vax_register_name): Update.
8421         * v850-tdep.c (v850_register_name): Update.
8422         * m68hc11-tdep.c (m68hc11_register_name): Update.
8423         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8424         (am33_register_name): Update.
8425
8426 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8427
8428         * m68k-tdep.c: Reindented.
8429
8430 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8431
8432         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8433         list of predefined types.
8434
8435 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8436
8437         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8438         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8439         REGISTER_CONVERT_TO_RAW): Remove defines.
8440         (i386_register_virtual_type, i386_register_convertible,
8441         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8442         Remove prototypes.
8443         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8444         macros mentioned above.
8445
8446         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8447         (i386lynx_saved_pc_after_call): Remove prototype.
8448         * i386ly-tdep.c: Include "i386-tdep.h".
8449         (i386lynx_saved_pc_after_call): Make static.  Use
8450         read_memory_nobpt instead of read_memory.  Use
8451         read_memory_unsigned_integer instead of read_memory_integer.
8452         (i386lynx_init_abi): New function.
8453         (i386lynx_coff_osabi_sniffer): New function.
8454         (_initialize_i386bsd_tdep): New function.
8455
8456         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8457         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8458         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8459         (i386_fix_call_dummy): Remove prototype.
8460         * i386-tdep.c (i386_call_dummy_words): New variable.
8461         (i386_gdbarch_init): Adjust for removal of the
8462         macros mentioned above.
8463
8464 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8465
8466         * command.h (add_setshow_auto_boolean_cmd): Replace
8467         add_set_auto_boolean_cmd.
8468         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8469         add_set_auto_boolean_cmd.
8470         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8471         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8472         mask-address'' command.
8473         (show_mask_address): Add cmd parameter.
8474         * remote.c (add_packet_config_cmd): Update.  Change type of
8475         set_func and show_func to cmd_sfunc_ftype.
8476         (_initialize_remote): Update `set remote Z-packet'
8477         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8478         (show_remote_protocol_e_packet_cmd): Ditto.
8479         (show_remote_protocol_E_packet_cmd): Ditto.
8480         (show_remote_protocol_P_packet_cmd): Ditto.
8481         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8482         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8483         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8484         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8485         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8486         (show_remote_protocol_Z_packet_cmd): Ditto.
8487         (show_remote_protocol_binary_download_cmd): Ditto.
8488         (show_remote_cmd): Pass NULL to all of above.
8489
8490 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8491
8492         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8493         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8494         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8495         POP_FRAME): Remove defines.
8496         (i386_push_arguments, i386_store_struct_return,
8497         i386_extract_return_value, i386_store_return_value,
8498         i386_extract_struct_value_address, i386_push_dummy_frame,
8499         i386_pop_frame): Renove prototypes.
8500         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8501         macros mentioned above.
8502
8503 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8504
8505         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8506         add_set_boolean_cmd.
8507         (add_setshow_cmd): New function.
8508         * command.h (add_setshow_boolean_cmd): Replace
8509         add_set_boolean_cmd.
8510         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8511         and ``set rdiromatzero''.
8512         * maint.c (_initialize_maint_cmds): Update commented out code.
8513         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8514         * target.c (initialize_targets): Update `set
8515         trust-readonly-sections'.
8516         * remote.c (_initialize_remote): Update `set remotebreak'.
8517
8518 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8519
8520         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8521         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8522         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8523         fit into multi-arch framework.
8524         (i386_breakpoint_from_pc): New function.
8525         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8526         above.
8527
8528         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8529         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8530         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8531         (i386_frameless_function_invocation, i386_frame_num_args,
8532         i386_frame_init_saved_regs): Remove prototypes.
8533         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8534         macros mentioned above.
8535
8536 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8537
8538         * cli/cli-decode.c (set_cmd_cfunc): Update.
8539         (set_cmd_sfunc): Update.
8540         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8541         (set_cmd_sfunc, set_cmd_cfunc): Update.
8542         * cli/cli-decode.h: Update.
8543
8544 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8545
8546         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8547         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8548
8549 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8550
8551         * defs.h (auto_boolean): Declare enum.
8552         * command.h (cmd_auto_boolean): Delete enum.
8553         * mips-tdep.c (mask_address_var): Update.
8554         (mips_mask_address_p): Update.
8555         (show_mask_address): Update.
8556         * remote.c (struct packet_config): Update.
8557         (update_packet_config): Update.
8558         (show_packet_config_cmd): Update.
8559         (packet_ok): Update.
8560         (add_packet_config_cmd): Update.
8561         (_initialize_remote): 
8562         * command.h: Update.
8563         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8564         (do_setshow_command): Update.
8565         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8566         * cli/cli-decode.h: Update.
8567
8568 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8569
8570         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8571         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8572         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8573         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8574         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8575         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8576
8577         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8578         list of DJGPP COFF targets.
8579
8580         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8581         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8582         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8583         (FP0_REGNUM): Remove define.
8584         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8585         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8586         (i386_register_virtual_size): Remove protoype.
8587         * i386-tdep.c (i386_register_virtual_size): Removed.
8588         (i386_extract_return_value, i386_store_return_value): Use
8589         FP0_REGNUM instead of NUM_FREGS to determine whether the
8590         floating-point registers are available.
8591         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8592         Adjust for removal of macros mentioned above.
8593
8594 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8595
8596         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8597         comments.
8598         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8599         Remove prototypes.
8600         (supply_gregset, fill_gregset): Remove use of register keyword and
8601         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8602         NUM_REGS and NUM_FREGS.
8603         (FPREGSET_FSAVE_OFFSET): Remove.
8604         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8605         NUM_FREGS to determine whether the floating-point registers are
8606         available.
8607
8608         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8609         gnu_store_registers): Replace usage of NUM_GREGS with
8610         I386_NUM_GREGS.
8611
8612         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8613         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8614         usage of NUM_GREGS with I386_NUM_GREGS.
8615
8616         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8617
8618         * i386bsd-nat.c: Include "i386-tdep.h".
8619         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8620         I386_NUM_GREGS.
8621
8622         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8623         and associated comment.  They no longer make any sense, since we
8624         don't use this file anymore on Linux.
8625
8626         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8627         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8628         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8629         elements in these arrays.
8630         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8631         MAX_NUM_REGS.
8632
8633 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8634
8635         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8636         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8637
8638 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8639
8640         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8641         EXTRACT_RETURN_VALUE.
8642         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8643         EXTRACT_STRUCT_VALUE_ADDRESS.
8644         * gdbarch.h, gdbarch.c: Regenerate.
8645         
8646         * values.c (value_being_returned): Handle
8647         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8648         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8649
8650         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8651         * arm-tdep.c (arm_gdbarch_init): Update.
8652         * avr-tdep.c (avr_gdbarch_init): Update.
8653         * cris-tdep.c (cris_gdbarch_init): Update.
8654         * d10v-tdep.c (d10v_gdbarch_init): Update.
8655         * ia64-tdep.c (ia64_gdbarch_init): Update.
8656         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8657         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8658         * s390-tdep.c (s390_gdbarch_init): Update.
8659         * sh-tdep.c (sh_gdbarch_init): Update.
8660         * s390-tdep.c (s390_gdbarch_init): Update.
8661         * sparc-tdep.c (sparc_gdbarch_init): Update.
8662         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8663         * v850-tdep.c (v850_gdbarch_init): Update.
8664         * vax-tdep.c (vax_gdbarch_init): Update.
8665         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8666         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8667
8668         * config/arc/tm-arc.h: Update.
8669         * config/d30v/tm-d30v.h: Update.
8670         * config/fr30/tm-fr30.h: Update.
8671         * config/h8300/tm-h8300.h: Update.
8672         * config/h8500/tm-h8500.h: Update.
8673         * config/i386/tm-i386.h: Update.
8674         * config/i386/tm-ptx.h: Update.
8675         * config/i386/tm-symmetry.h: Update.
8676         * config/i960/tm-i960.h: Update.
8677         * config/m32r/tm-m32r.h: Update.
8678         * config/m68k/tm-delta68.h: Update.
8679         * config/m68k/tm-linux.h: Update.
8680         * config/m68k/tm-m68k.h: Update.
8681         * config/m88k/tm-m88k.h: Update.
8682         * config/mcore/tm-mcore.h: Update.
8683         * config/mips/tm-mips.h: Update.
8684         * config/mn10200/tm-mn10200.h: Update.
8685         * config/pa/tm-hppa.h: Update.
8686         * config/pa/tm-hppa64.h: Update.
8687         * config/sparc/tm-sp64.h: Update.
8688         * config/sparc/tm-sparc.h: Update.
8689         * config/sparc/tm-sparclet.h: Update.
8690         * config/z8k/tm-z8k.h: Update.
8691
8692 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8693
8694         * Makefile.in (i386_linux_tdep_h): Define.
8695         (i386_tdep_h, i387_tdep_h): Define.
8696         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8697         $(i386_tdep_h) and $(i387_tdep_h).
8698         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8699
8700 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8701
8702         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8703         Already covered by the default.
8704
8705         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8706         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8707         (i386_gdbarch_init): Initialize long_double_format and long_double
8708         bit.
8709
8710         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8711         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8712         Move these to ...
8713         * config/i386/i386sol2.mh: ... here.
8714         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8715         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8716         (SIGCONTEXT_PC_OFFSET): Remove define.
8717         (IN_SIGTRAMP): Remove define.
8718         * i386-sol2-tdep.c: New file.
8719         
8720         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8721         * config/i386/tm-i386nw.h: Removed.
8722
8723         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8724         USE_STRUCT_CONVENTION): Remove defines.
8725         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8726         (get_longjmp_target): Remove prototype.
8727         (IN_SIGTRAMP): Remove define.
8728         (i386bsd_in_sigtramp): Remove prototype.
8729         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8730         function.  Update comment accordingly
8731         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8732         (FRAME_SAVED_PC): Remove define.
8733         (i386bsd_frame_saved_pc): Remove prototype.
8734         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8735         GET_LONGJMP_TARGET): Remove defines.
8736         (get_longjmp_target): Remove prototype.
8737         (IN_SIGTRAMP): Remove define.
8738         (i386bsd_in_sigtramp): Remove prototype.
8739         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8740         function.  Update comment accordingly
8741         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8742         (FRAME_SAVED_PC): Remove define.
8743         (i386bsd_frame_saved_pc): Remove prototype.
8744         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8745         Remove prototype.
8746         (USE_STRUCT_CONVENTION): Remove prototype.
8747         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8748         declaration.
8749         (_initialize_i386bsd_nat): Revise logic to determine some
8750         constants at compile time when compiling a native GDB.  Warn if
8751         things don't match up with what we expect.
8752         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8753         Remove variables.
8754         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8755         to use date stored in `struct gdbarch_tdep'.
8756         (i386bsd_sigcontext_offset): Remove varaible.
8757         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8758         stored in `struct gdbarch_tdep'.
8759         (i386bsd_frame_saved_pc): Make static.
8760         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8761         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8762         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8763         i386fbsd4_sc_pc_offset): New variables.
8764         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8765         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8766         functions.
8767         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8768         functions.
8769         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8770         Modify the value of i386fbsd_sigtramp_start and
8771         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8772         i386fbsd_sigtramp_end.
8773         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8774         function.
8775
8776         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8777         define to i386-linux-tdep.h.
8778         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8779         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8780         defines.
8781         (i386_linux_register_name, i386_linux_register_byte,
8782         i386_linux_register_raw_size): Remove prototypes.
8783         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8784         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8785         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8786         TARGET_WRITE_PC): Remove defines.
8787         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8788         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8789         i386_linux_write_pc): Remove prototypes.
8790         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8791         (get_longjmp_target): Remove prototype.
8792         * i386-linux-tdep.h: New file.
8793         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8794         * i386-linux-tdep.c: Include "i386-tdep.h" and
8795         "i386-linux-tdep.h".
8796         (i386_linux_register_name, i386_linux_register_byte,
8797         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8798         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8799         Make static.
8800         (i386_linux_init_abi): New function.
8801         (_initialize_i386_linux_tdep): New function.
8802
8803         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8804         (i386_saved_pc_after_call): Remove prototype.
8805         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8806         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8807         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8808         (i386_register_name, i386_stab_reg_to_regnum,
8809         i386_dwarf_reg_to_regnum): Remove prototypes.
8810         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8811         SIZEOF_SSE_REGS): Remove defines.
8812         (REGISTER_BYTES): Remove define.
8813         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8814         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8815         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8816         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8817         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8818         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8819         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8820         (get_longjmp_target): Remove prototype.
8821         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8822         (sigtramp_saved_pc): Remove define.
8823         (i386v4_sigtramp_saved_pc): Remove prototype.
8824         * config/i386/tm-go32.h (FRAME_CHAIN,
8825         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8826         (i386go32_frame_saved_pc): Remove prototype.
8827         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8828         (get_longjmp_target): Remove prototype.
8829         * i386-tdep.h: Include "osabi.h".
8830         (enum i386_abi): Removed.
8831         (enum struct_return): New enum.
8832         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8833         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8834         sc_pc_offset members.
8835         (i386_gdbarch_register_os_abi): Remove prototype.
8836         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8837         I386_SSE_NUM_REGS): New defines.
8838         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8839         I386_SSE_SIZEOF_REGS): New defines.
8840         (i386_register_name, i386_register_byte, i386_register_raw_size):
8841         New prototypes.
8842         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8843         (i386bsd_sigtramp_saved_pc): New prototype.
8844         * i386-tdep.c: Don't include "elf-bfd.h".
8845         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8846         i386_frame_chain, i386_saved_pc_after_call): Make static.
8847         (i386_frame_saved_pc): Rewrite to call architecture dependent
8848         function to deal with signal handlers.  Make static.
8849         (i386go32_frame_saved_pc): Removed.
8850         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8851         Removed.
8852         (i386_get_longjmp_target): New function.
8853         (default_struct_convention, pcc_struct_convention,
8854         reg_struct_convention, valid_conventions, struct_convention): New
8855         variables.
8856         (i386_use_struct_convention): New function.
8857         (i386v4_sigtramp_saved_pc): Renamed to
8858         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8859         (i386_pc_in_sigtramp): New function.
8860         (i386_abi_names): Removed.
8861         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8862         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8863         Removed.
8864         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8865         i386_gdbarch_register_os_abi): Removed.
8866         (struct i386_abi_handler): Removed.
8867         (i386_abi_handler_list): Removed.
8868         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8869         functions.
8870         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8871         i386_nw_init_abi): New functions.
8872         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8873         Use set_gdbarch_xxx() calls instead of relying on macros for a
8874         number of calls.
8875         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8876         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8877         Register the various architecture variants defined in this file.
8878
8879 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8880
8881         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8882         (struct main_type): Remove arg_types member.  Update comments for
8883         struct field.
8884         (TYPE_ARG_TYPES): Remove.
8885         (TYPE_FN_FIELD_ARGS): Update.
8886         (smash_to_method_type): Update prototype.
8887
8888         * c-typeprint.c (cp_type_print_method_args): Take method type
8889         instead of argument list.  Use new argument layout.  Simplify.
8890         (c_type_print_args): Use new argument layout.  Simplify.
8891         (c_type_print_base): Update call to cp_type_print_method_args.
8892         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8893         argument; use die->type instead.  Update call to
8894         smash_to_method_type.
8895         (read_structure_scope): Update call to dwarf2_add_member_fn.
8896         * gdbtypes.c (allocate_stub_method): Update comment.
8897         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8898         Use new argument layout.
8899         (check_stub_method): Use new argument layout.  Don't count
8900         void as an argument.
8901         (print_arg_types): Update comments.  Use new argument layout.
8902         (recursive_dump_type): Don't print arg_types member.
8903         * hpread.c (hpread_read_struct_type): Use new argument layout.
8904         (fixup_class_method_type): Likewise.
8905         (hpread_type_lookup): Likewise.
8906         * stabsread.c (read_type): Update calls to read_args and
8907         smash_to_method_type.
8908         (read_args): Use new argument layout.  Simplify.
8909         * valops.c (typecmp): Use new argument layout.  Update parameters
8910         and comments.  Simplify.
8911         (hand_function_call): Use new argument layout.
8912         (search_struct_method): Update call to typecmp.
8913         (find_overload_match): Use new argument layout.
8914
8915 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8916
8917         * NEWS: Mention multithreaded debug support for gdbserver.
8918
8919 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8920
8921         * MAINTAINERS: Mention NEWS.
8922
8923 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8924
8925         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8926         (struct mips_objfile_private, compare_pdr_entries): New.
8927         (non_heuristic_proc_desc): Read the ".pdr" section if it
8928         is present.
8929
8930 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8931
8932         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8933         (arm_debug): New static variable.
8934         (_initialize_arm_tdep): Add ``set debug arm'' command.
8935
8936 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8937
8938         * Makefile.in (sim_arm_h): Define.
8939         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8940         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8941         (arm_register_sim_regno): New function, map an internal REGNUM
8942         onto a simulator register number.
8943         (arm_gdbarch_init): Set register_sim_regno.
8944
8945 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8946
8947         * MAINTAINERS: Add self.
8948
8949 2002-06-11  Jim Blandy  <jimb@redhat.com>
8950
8951         * source.c (source_info): Mention whether the symtab has
8952         information about preprocessor macros.
8953
8954         Call the command `info macro', not `show macro'.
8955         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8956         Fix error message.
8957         (_initialize_macrocmd): Register `info_macro_command' in
8958         `infolist', not `showlist'.
8959
8960 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8961
8962         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8963         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8964         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8965         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8966         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8967         unconditionally.
8968         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8969         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8970         (_initialize_mips_tdep): Remove dead code.
8971         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8972         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8973         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8974         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8975         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8976         MIPS_LAST_FP_ARG_REGNUM): Remove.
8977
8978 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8979
8980         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8981         (unwind_tmp_obstack_free, parse_frame_info)
8982         (update_context, cfi_read_fp, cfi_write_fp)
8983         (cfi_frame_chain, cfi_init_extra_frame_info)
8984         (cfi_virtual_frame_pointer): Use the above function.
8985         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8986
8987 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8988
8989         * v850-tdep.c (v850_type_is_scalar): New function.
8990         (v850_use_struct_convention): Match current gcc implementation
8991         as close as possible.
8992         (v850_push_arguments): Fix stack_offset handling.  Don't write
8993         struct_addr into register.  This is done by v850_store_struct_return.
8994         (v850_extract_return_value): Care for structs.
8995         (v850_store_return_value): Ditto.
8996         (v850_store_struct_return): Actually write address.
8997
8998 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8999
9000         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9001         without debug information too.
9002
9003 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9004
9005         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9006         Make multi-arch pure.
9007         * gdbarch.h, gdbarch.c: Re-generate.
9008         * arm-tdep.c (arm_print_float_info): Update.
9009         * arch-utils.h (default_print_float_info): Update.
9010         * arch-utils.c (default_print_float_info): Update.
9011         * infcmd.c (float_info): Update call.
9012
9013 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9014
9015         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9016         the front of the initialize list.
9017
9018 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9019
9020         * infrun.c (struct inferior_status): Replace fields
9021         selected_frame_address and selected_level with field
9022         selected_frame_id.
9023         (save_inferior_status): Update.  Use get_frame_id.
9024         (struct restore_selected_frame_args): Delete.
9025         (restore_selected_frame): Update.  Use frame_find_by_id.
9026         (restore_inferior_status): Update.
9027
9028         * breakpoint.h (struct breakpoint): Change type of
9029         watchpoint_frame to frame_id.
9030         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
9031         call to get_current_frame.
9032         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
9033         get_current_frame.
9034         (watchpoint_check): Use frame_find_by_id.
9035
9036         * frame.h (record_selected_frame): Delete declaration.
9037         * stack.c (record_selected_frame): Delete function.
9038         
9039         * frame.h (struct frame_id): Define.
9040         (get_frame_id): Declare.
9041         (frame_find_by_id): Declare.
9042         * frame.c (frame_find_by_id): New function.
9043         (get_frame_id): New function.
9044
9045 2002-06-10  Andrey Volkov <avolkov@transas.com>
9046
9047         * ser-e7kpc.c: Fix duplicated define and call of 
9048         _initialize_ser_e7000pc
9049             
9050 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9051
9052         * signals/signals.c (target_signal_from_host): Fix #ifdef
9053         SIGRTMIN case.
9054         (do_target_signal_to_host): Likewise.
9055
9056 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9057
9058         * mips-tdep.c (mips_find_abi_section): New function.
9059         (mips_gdbarch_init): Call it.
9060
9061 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9062
9063         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9064         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9065         after Andrew's 2002-06-08 gdbarch change.
9066
9067 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9068
9069         * i386-linux-nat.c (suppy_gregset): Don't supply
9070         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9071         register cache.
9072         (fill_gregset): Don't fetch it under the same circumstances.
9073
9074 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9075
9076         * Makefile.in (callback_h): Define.
9077         (remote_sim_h): Update path to remote-sim.h.
9078         (remote-rdp.o): Add $(callback_h).
9079         (remote-sim.o): Use $(callback_h).
9080         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9081         * remote-rdp.c: Include "gdb/callback.h".
9082
9083 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9084
9085         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9086         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9087
9088 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9089
9090         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9091         * rdi-share/serpardr.c: Ditto.
9092         * rdi-share/unixcomm.c: Ditto.
9093         * rdi-share/serdrv.c: Ditto.
9094         * rdi-share/hostchan.h: Ditto.
9095         * rdi-share/hostchan.c: Ditto.
9096         * rdi-share/host.h: Ditto.
9097         * rdi-share/devsw.c: Ditto.
9098
9099         * objfiles.h: Change type of obj_private to void pointer.
9100         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9101         strcmp instead of STREQ, use LONGEST, do not use PTR
9102         * somsolib.c: Ditto.
9103
9104         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9105         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9106         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9107
9108 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9109
9110         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9111         (default_get_saved_register): Delete function.
9112         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9113         generic_unwind_get_saved_register.
9114         * gdbarch.h, gdbarch.c: Re-generate.
9115         
9116 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9117
9118         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9119         generic_func_frame_chain_valid.
9120         * gdbarch.h, gdbarch.c: Re-generate.
9121         * blockframe.c (generic_func_frame_chain_valid): Only check
9122         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9123         passing FP to PC_IN_CALL_DUMMY.
9124         Fix PR gdb/360.
9125
9126 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9127
9128         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9129         (register_gdbarch_data): Initialize init_p.
9130         (gdbarch_data): Initialize data pointer using the init function.
9131         (init_gdbarch_data): Delete function.
9132         (gdbarch_update_p): Update.
9133         (initialize_non_multiarch): Update.
9134         (struct gdbarch): Add field initialized_p.
9135         * gdbarch.h, gdbarch.c: Re-generate.
9136
9137 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9138
9139         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9140         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9141         better do the things actually here.
9142         * x86-64-tdep.c (x86_64_register_name2nr): New.
9143         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9144         (x86_64_gdbarch_init): Respect the above change.
9145         * x86-64-tdep.h (x86_64_register_name2nr)
9146         (x86_64_register_nr2name): Add prototypes.
9147         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9148
9149 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9150
9151         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9152         Delete extra braces and re-indent.
9153         (d10v_store_return_value): Char return values
9154         must be shifted over by one byte in R0.
9155         (d10v_extract_return_value): Delete extra braces, re-indent.
9156
9157 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9158
9159         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9160         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9161         (d10v_integer_to_address): Rewrite.
9162         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9163         the d10v specific functions which take care of converting to the
9164         correct space.
9165
9166 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9167
9168         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9169         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9170
9171 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9172
9173         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9174         includes.
9175         * config/tm-linux.h: Ditto.
9176         * config/alpha/tm-alphalinux.h: Ditto.
9177         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9178         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9179         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9180         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9181         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9182         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9183         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9184         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9185         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9186         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9187         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9188         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9189         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9190         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9191         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9192         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9193         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9194         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9195         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9196         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9197         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9198         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9199         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9200         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9201         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9202         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9203         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9204         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9205         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9206         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9207         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9208         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9209         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9210         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9211         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9212         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9213         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9214
9215 2002-05-04  Aidan Skinner <aidan@velvet.net>
9216
9217         * ada-exp.tab.c: New file
9218         * ada-exp.y: New file
9219         * ada-lang.c: New file
9220         * ada-lang.h: New file
9221         * ada-lex.c: New file
9222         * ada-lex.l: New file
9223         * ada-tasks.c: New file
9224         * ada-typeprint.c: New file
9225         * ada-valprint.c: New file
9226         
9227 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9228
9229         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9230         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9231
9232 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9233
9234         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9235         insetead of ppc-linux-tdep.o.
9236         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9237         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9238
9239 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9240
9241         2002-05-07 Christian Groessler <chris@groessler.org>
9242         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9243         bit register contents for little endian hosts.
9244
9245 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9246
9247         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9248         any maintainer.
9249
9250 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9251
9252         * gdbarch.h: Regenerate.
9253
9254 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9255
9256         * MAINTAINERS: Add everyone to write-after-approval list.
9257
9258 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9259
9260         * stack.c (frame_info): Use frame_register_unwind instead of
9261         saved_regs.  Mention when the SP is on the stack or in a register.
9262
9263         * frame.h (frame_register_unwind_ftype): Define.  Document.
9264         (struct frame_info): Add field register_unwind and
9265         register_unwind_cache.
9266         (frame_register_unwind): Declare.
9267         (generic_unwind_get_saved_register): Declare.
9268
9269         * frame.c (frame_register_unwind): New function.
9270         (generic_unwind_get_saved_register): New function.
9271
9272         * blockframe.c (generic_call_dummy_register_unwind): New function.
9273         (frame_saved_regs_register_unwind): New function.
9274         (set_unwind_by_pc): New function.
9275         (create_new_frame): New function.
9276         (get_prev_frame): New function.
9277
9278 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9279
9280         * a29k-share/: Delete directory.
9281         * remote-vx29k.c: Delete file.
9282
9283 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9284
9285         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9286         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9287
9288 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9289
9290         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9291         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9292         (sparc64nbsd-nat.o)
9293         (sparcnbsd-nat.o)
9294         (sparcnbsd-tdep.o): New dependency lists.
9295         * NEWS: Note new UltraSPARC NetBSD native configuration.
9296         * configure.host (sparc64-*-netbsd*): New host.
9297         * configure.tgt (sparc-*-netbsdelf*)
9298         (sparc-*-netbsd*): Set gdb_target to nbsd.
9299         (sparc64-*-netbsd*): New target.
9300         * sparc64nbsd-nat.c: New file.
9301         * sparcnbsd-nat.c: New file.
9302         * sparcnbsd-tdep.c: New file.
9303         * sparcnbsd-tdep.h: New file.
9304         * config/sparc/nbsd.mt: New file.
9305         * config/sparc/nbsd64.mh: New file.
9306         * config/sparc/nbsd64.mt: New file.
9307         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9308         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9309         (HOST_IPC): Remove.
9310         * config/sparc/nbsdaout.mt: Remove.
9311         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9312         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9313         (HOST_IPC): Remove.
9314         * config/sparc/nbsdelf.mt: Remove.
9315         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9316         sparc-nat.c compatiblity defines.
9317         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9318         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9319         * config/sparc/tm-nbsd64.h: New file.
9320         * config/sparc/tm-nbsdaout.h: Remove.
9321         * config/sparc/xm-nbsd.h: Remove.
9322
9323 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9324
9325         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9326         * sparc-tdep.c: Include osabi.h.
9327         (gdbarch_tdep): Add osabi member.
9328         (_initialize_sparc_tdep): Use gdbarch_register.
9329         (sparc_gdbarch_init): Use generic OS ABI framework.
9330         (sparc_dump_tdep): New function.
9331
9332 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9333
9334         * corefile.c (do_captured_read_memory_integer): Return non-zero
9335         result.
9336         (safe_read_memory_integer): Copy result of memory read when
9337         status is non-zero.  Also, add comments.
9338
9339 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9340
9341         * Makefile.in (ppc_tdep_h): Define.
9342         (ppc-linux-nat.o)
9343         (ppc-linux-tdep.o)
9344         (rs6000-tdep.o): Use $(ppc_tdep_h).
9345         (ppc-sysv-tdep.o)
9346         (ppcnbsd-nat.o)
9347         (ppcnbsd-tdep.o): New dependency lists.
9348         * ppc-tdep.h: Use generic OS ABI framework.
9349         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9350         (ppc_linux_init_abi): New functions.
9351         (ppc_sysv_abi_broken_use_struct_convention)
9352         (ppc_sysv_abi_use_struct_convention)
9353         (ppc_sysv_abi_push_arguments): Move to...
9354         * ppc-sysv-tdep.c: ...here.
9355         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9356         * rs6000-tdep.c (process_note_abi_tag_sections)
9357         (get_elfosabi): Remove.
9358         (rs6000_gdbarch_init): Use generic OS ABI framework.
9359         (rs6000_dump_tdep): New function.
9360         (_initialize_rs6000_tdep): Use gdbarch_register.
9361         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9362         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9363         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9364         of ppc-linux-tdep.o.
9365         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9366         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9367         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9368         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9369         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9370         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9371
9372 2002-05-29  Jim Blandy  <jimb@redhat.com>
9373
9374         * macroscope.c (default_macro_scope): Put `void' in empty argument
9375         list.
9376
9377 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9378
9379         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9380         * arch-utils.c: Include "sim-regno.h".
9381         * gdbarch.sh: Don't include "sim-regno.h".
9382         * gdbarch.h, gdbarch.c: Regenerate.
9383         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9384         here.
9385         * arch-utils.h (legacy_register_sim_regno): To here.
9386         * remote-sim.c (legacy_register_sim_regno): Move function from
9387         here.
9388         * arch-utils.c (legacy_register_sim_regno): To here.
9389
9390 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9391
9392         * sim-regno.h: New file.
9393         * Makefile.in (sim_regno_h): Define.
9394         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9395         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9396         (legacy_register_sim_regno): New function.
9397         (one2one_register_sim_regno): New function.
9398         (gdbsim_fetch_register): Rewrite.
9399         (gdbsim_store_register): Only store a register when
9400         REGISTER_SIM_REGNO is valid.
9401         * d10v-tdep.c: Include "sim-regno.h".
9402         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9403         (d10v_ts3_register_sim_regno): Ditto.
9404         * gdbarch.sh: Include "sim-regno.h".
9405         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9406         * gdbarch.h, gdbarch.c: Regenerate.
9407         * arch-utils.h (default_register_sim_regno): Delete declaration.
9408         * arch-utils.c (default_register_sim_regno): Delete function.
9409
9410 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9411
9412         * ppcnbsd-nat.c: Rewrite.
9413         * ppcnbsd-tdep.c: New file.
9414         * ppcnbsd-tdep.h: New file.
9415         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9416         solib.o, and solib-svr4.o.
9417         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9418         nbsd-tdep.o, and corelow.o.
9419
9420 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9421
9422         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9423         `tr' and `sed'.  Mention that `broken' targets are not expected to
9424         build.
9425
9426 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9427
9428         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9429         Let PC point right after the prologue before looking up symbols.
9430         
9431 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9432
9433         * i386-tdep.c (i386_register_virtual_type): Return 
9434         builtin_type_vec128i for SSE registers.
9435
9436         * gdbtypes.h (builtin_type_vec128i): Declare.
9437
9438         * gdbtypes.c (build_builtin_type_vec128i): New function.
9439         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9440         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9441         (build_gdbtypes): Initialize new builtin vector types.
9442         (_initialize_gdbtypes): Register new vector types with gdbarch.
9443
9444 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9445
9446         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9447         since it has been multi-arch'd.
9448         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9449         Move Alpha and VAX multi-arch news entries to same section
9450         as other multi-arch news.
9451
9452 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9453
9454         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9455         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9456         static.  Rename some register numbers to put them in ns32k-tdep
9457         private namespace.
9458         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9459         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9460         functions.
9461         (_initialize_ns32k_tdep): Use gdbarch_register.
9462         * ns32k-tdep.h: New file.
9463         * ns32knbsd-tdep.c: New file.
9464         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9465         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9466         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9467         REGISTER_BYTES, REGISTER_BYTE): Remove.
9468         * config/ns32k/tm-ns32k.h: New file.
9469         * config/ns32k/tm-umax.h: Remove.
9470
9471 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9472
9473         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9474         ns32k_store_struct_return, ns32k_extract_return_value,
9475         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9476         functions.
9477         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9478         ns32k_saved_pc_after_call.
9479         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9480         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9481         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9482         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9483         ns32k_extract_struct_value_address.
9484
9485 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9486
9487         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9488         ns32k_fix_call_dummy): New.
9489         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9490         ns32k_call_dummy_words.
9491         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9492         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9493         CALL_DUMMY_NARGS): Remove.
9494         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9495
9496 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9497
9498         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9499         ns32k_frame_saved_pc, ns32k_frame_args_address,
9500         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9501         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9502         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9503         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9504         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9505         (BREAKPOINT): Remove..
9506         (FRAME_CHAIN): Define as ns32k_frame_chain.
9507         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9508         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9509         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9510         (FRAME_FIND_SAVED_REGS): Remove.
9511         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9512         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9513         (POP_FRAME): Define as ns32k_pop_frame.
9514
9515 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9516
9517         * ns32k-tdep.c (ns32k_register_byte_32082,
9518         ns32k_register_byte_32382, ns32k_register_raw_size,
9519         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9520         functions.
9521         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9522         ns32k_register_byte_32382.
9523         * config/ns32k/tm-umax.h: Update copyright years.
9524         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9525         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9526         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9527         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9528         (ns32k_get_enter_addr): Fix prototype.
9529
9530 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9531
9532         * ns32k-tdep.c: Update copyright years.
9533         (ns32k_register_name_32082): New function.
9534         (ns32k_register_name_32382): Ditto.
9535         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9536         (REGISTER_NAME): Define as ns32k_register_name_32382.
9537         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9538         (REGISTER_NAME): Define as ns32k_register_name_32082.
9539
9540 2002-05-24  Jim Blandy  <jimb@redhat.com>
9541
9542         * dwarf2read.c (free_line_header): Use xfree, not free.
9543
9544 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9545
9546         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9547         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9548
9549 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9550
9551         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9552
9553 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9554
9555         From Ross Alexander at NEC Europe:
9556         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9557
9558 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9559
9560         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9561         for input, rather than parse_and_eval_address.  
9562
9563 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9564
9565         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9566         * Makefile.in (sim_d10v_h): Update definition.
9567
9568 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9569
9570         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9571         change `2002-05-22 Michael Snyder' below.
9572         (d10v_push_arguments): Ditto.
9573         (d10v_extract_return_value): Ditto.
9574
9575 2002-05-23  Jim Blandy  <jimb@redhat.com>
9576
9577         * macrotab.c (check_for_redefinition): Don't complain if the new
9578         definition is the same as the previous one.  Take more arguments
9579         to allow the comparison.
9580         (macro_define_object, macro_define_function): Pass more arguments
9581         to check_for_redefinition.
9582
9583 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9584
9585         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9586         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9587         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9588         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9589         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9590         Add a temp variable to save a call (and a memory read).
9591         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9592         if possible (so that PC_IN_CALL_DUMMY will work).
9593
9594 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9595
9596         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9597
9598 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9599
9600         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9601         fde->cie_ptr.
9602         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9603         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9604         so that frames of shared libraries are mapped correctly.
9605         (execute_stack_op): Change type of 'result' from ULONGEST to
9606         CORE_ADDR.
9607         
9608 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9609
9610         * config/alpha/tm-nbsd.h: Include solib.h.
9611
9612 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9613
9614         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9615         assumptions about the host's byte order.
9616
9617 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9618
9619         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9620         to dependency list.
9621         * alphanbsd-tdep.c: Include solib-svr4.h.
9622         * shnbsd-tdep.c: Ditto.
9623
9624 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9625
9626         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9627         nbsd-tdep.h to dependency list.
9628         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9629         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9630         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9631         nbsdaout.mh and nbsdelf.mh consistently.
9632         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9633         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9634         nbsdaout.mt and nbsdelf.mh consistently.
9635         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9636         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9637         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9638         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9639         a.out shared library stuff from here...
9640         * config/nm-nbsdaout.h: ...to here.
9641         * config/tm-nbsd.h: Remove.
9642         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9643         * config/arm/nbsd.mh: Remove.
9644         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9645         nbsd-tdep.o.
9646         * config/arm/nbsdaout.mh: New file. 
9647         * config/arm/nbsdelf.mh: New file.
9648         * config/arm/nm-nbsdaout.h: New file.
9649         * config/i386/nbsd.mh: Remove.
9650         * config/i386/nbsd.mt: Remove.
9651         * config/i386/nbsdaout.mh: New file.
9652         * config/i386/nbsdaout.mt: New file.
9653         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9654         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9655         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9656         i386_register_u_addr): Remove.
9657         * config/i386/nm-nbsdaout.h: New file.
9658         * config/i386/nm-nbsdelf.h: Remove.
9659         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9660         (USE_STRUCT_CONVENTION): Remove.
9661         * config/i386/tm-nbsdaout.h: New file.
9662         * config/i386/tm-nbsdelf.h: Remove.
9663         * config/m68k/nbsd.mh: Remove.
9664         * config/m68k/nbsd.mt: Remove.
9665         * config/m68k/nbsdaout.mh: New file.
9666         * config/m68k/nbsdaout.mt: New file. 
9667         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9668         * config/m68k/nm-nbsdaout.h: New file.
9669         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9670         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9671         * config/ns32k/nbsd.mh: Remove.
9672         * config/ns32k/nbsd.mt: Remove. 
9673         * config/ns32k/nbsdaout.mh: New file.
9674         * config/ns32k/nbsdaout.mt: New file.
9675         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9676         * config/ns32k/nm-nbsdaout.h: New file.
9677         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9678         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9679         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9680         (SVR4_SHARED_LIBS): Remove.
9681         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9682         * config/sparc/nbsd.mh: Remove.
9683         * config/sparc/nbsd.mt: Remove.
9684         * config/sparc/nbsdaout.mh: New file.
9685         * config/sparc/nbsdaout.mt: New file.
9686         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9687         * config/sparc/nbsdelf.mt: New file.
9688         * config/sparc/nm-nbsdaout.h: New file.   
9689         * config/sparc/nm-nbsdelf.h: Remove.
9690         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9691         * config/sparc/tm-nbsdaout.h: New file.
9692
9693 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9694
9695         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9696         mipsnbsd-tdep.c
9697         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9698
9699 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9700
9701         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9702         shnbsd-nat.c.
9703         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9704
9705 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9706
9707         * NEWS: Note new MIPS NetBSD native configuration. 
9708         * configure.host (mips*-*-netbsd*): New host. 
9709         * configure.tgt (mips*-*-netbsd*): New target. 
9710         * mipsnbsd-nat.c: New file.
9711         * mipsnbsd-tdep.c: New file.
9712         * mipsnbsd-tdep.h: New file.
9713         * config/mips/nbsd.mh: New file.
9714         * config/mips/nbsd.mt: New file.
9715         * config/mips/nm-nbsd.h: New file.
9716         * config/mips/tm-nbsd.h: New file.
9717
9718 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9719
9720         * Makefile.in (SFILES): Add osabi.c.
9721         (COMMON_OBS): Add osabi.o.
9722         (osabi.o): New dependency list.
9723         * osabi.c: New file.
9724         * osabi.h: New file.
9725         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9726
9727         * Makefile.in (alpha_tdep_h): Define and use instead of
9728         alpha-tdep.h.
9729         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9730         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9731         Remove.
9732         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9733         * alpha-tdep.h: Include osabi.h.
9734         (alpha_abi): Remove.
9735         (gdbarch_tdep): Use generic OS ABI framework.
9736         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9737         gdbarch_register_osabi.
9738         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9739         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9740         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9741
9742         * Makefile.in (sh_tdep_h): Add osabi.h.
9743         * sh-tdep.h (sh_osabi): Remove.
9744         (gdbarch_tdep): Use generic OS ABI framework.
9745         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9746         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9747         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9748         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9749
9750         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9751         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9752         gdbarch_register_osabi.
9753         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9754         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9755         (get_elfosabi): Rename to...
9756         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9757         ABI framework support routines.
9758         (arm_gdbarch_init): Use generic OS ABI framework.
9759         (arm_dump_tdep): Likewise.
9760         (_initialize_arm_tdep): Likewise.
9761         * arm-tdep.h: Include osabi.h.
9762         (arm_abi): Remove.
9763         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9764         osabi member.
9765         (arm_gdbarch_register_os_abi): Remove prototype.
9766         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9767         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9768
9769         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9770         * mips-tdep.c: Include osabi.h.
9771         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9772         OS ABI framework.
9773
9774 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9775
9776         * h8300-tdep.c: Fix formatting.
9777
9778 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9779
9780         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9781         printing vector registers.
9782
9783 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9784
9785         From Fernando Nasser:
9786         * remote.c (remote_async_open_1): Re-throw the exception when the
9787         connection fails.
9788         (remote_cisco_open): Ditto.
9789         (remote_open_1): Ditto.
9790
9791 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9792
9793         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9794         (remote_start_remote): Add uiout parameter.  Pass through to
9795         remote_start_remote_dummy.
9796         (remote_open_1): Use catch_exception instead of catch_errors.
9797         (remote_async_open_1): Ditto.
9798         (remote_cisco_open): Ditto.
9799
9800 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9801
9802         * remote.c (remote_start_remote): Replace PTR with void pointer.
9803         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9804         static.
9805
9806 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9807
9808         * gdb_indent.sh: Allow the script to be run in the sim directory.
9809
9810 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9811
9812         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9813         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9814
9815         * corelow.c (core_open): Only call set_gdbarch_from_file if
9816         exec_bfd is NULL.
9817
9818 2002-05-17  Andrey Volkov <avolkov@transas.com>
9819
9820         * h8300-tdep.c: Add support of EXR register
9821         * config/h8300/tm-h8300.h: Ditto. 
9822         
9823 2002-05-17  Andrey Volkov <avolkov@transas.com>
9824
9825         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9826         
9827 2002-05-17  Andrey Volkov <avolkov@transas.com>
9828
9829         * h8300-tdep.c: Change literal regnums to REGNO.
9830         
9831 2002-05-17  Jim Blandy  <jimb@redhat.com>
9832
9833         * NEWS: Note addition of macro support.
9834
9835         Expand preprocessor macros in C expressions.
9836         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9837         (scan_macro_expansion, scanning_macro_expansion,
9838         finished_macro_expansion): New function declarations.
9839         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9840         variable declarations.
9841         * parser-defs.h (expression_context_pc): New declaration.
9842         * parse.c (expression_context_pc): New variable.
9843         (parse_exp_1): Set expression_context_pc, as well as
9844         expression_context_block.
9845         * c-exp.y (yylex): If we're not already reading the result of a
9846         macro expansion, try to macro-expand the next token.  When we're
9847         done scanning a macro expansion, switch back to the mainline text.
9848         Commas and `if's in a macro's expansion don't terminate the input.
9849         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9850         (macro_original_text, macro_expanded_text,
9851         expression_macro_lookup_func, expression_macro_lookup_baton): New
9852         variables.
9853         (scan_macro_expansion, scanning_macro_expansion,
9854         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9855         c_preprocess_and_parse): New functions.
9856         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9857         c_preprocess_and_parse, instead of c_parse.
9858         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9859         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9860
9861 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9862
9863         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9864         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9865         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9866
9867 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9868
9869         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9870
9871 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9872
9873         * Makefile.in (sh_tdep_h): Define and use.
9874         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9875         register enum): Move to...
9876         * * sh-tdep.h: ...here.
9877         * sh-tdep.c: Include sh-tdep.h.
9878         * sh3-rom.c: Likewise.
9879         * shnbsd-tdep.c: Likewise.
9880
9881 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9882
9883         * arm-tdep.c: Spelling fix in comment.
9884
9885 2002-05-16  Jim Blandy  <jimb@redhat.com>
9886
9887         Add commands for manually expanding macros and showing their
9888         definitions.
9889         * macrocmd.c, macroscope.c, macroscope.h: New files.
9890         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9891         (macroscope_h): New variable.
9892         (HFILES_NO_SRCDIR): Add macroscope.h.
9893         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9894         (macroscope.o, macrocmd.o): New rules.
9895
9896         Teach the Dwarf 2 reader to read macro information.
9897         * dwarf2read.c: #include "macrotab.h".
9898         (dwarf_macinfo_buffer): New variable.
9899         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9900         dwarf_macinfo_size.
9901         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9902         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9903         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9904         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9905         dwarf2_macro_spaces_in_definition): New complaints.
9906         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9907         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9908         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9909         the partial symbol table.
9910         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9911         from what's recorded in the partial symbol table.
9912         (read_file_scope): If the compilation unit has a
9913         `DW_AT_macro_info' attribute, read its macro information.
9914         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9915
9916 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9917
9918         Fix PR gdb/546
9919         * ser-tcp.c: Don't include <netinet/udp.h>.
9920
9921 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9922
9923         * MAINTAINERS: Update my email address.
9924
9925 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9926
9927         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9928         include file of the same name.
9929
9930 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9931
9932         * configure.tgt: Mark v850 as multi-arched.
9933         * config/v850/tm-v850.h: Remove file.
9934         * config/v850/v850.mt: Eliminate TM_FILE.
9935
9936 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9937
9938         * v850-tdep.c: Full multi-arch.
9939         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9940         Define GDB_MULTI_ARCH to 2.
9941
9942 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9943
9944         * p-exp.y (current_type): New static variable.
9945         Carries the type of the expression at the position that is parsed.
9946         (push_current_type, pop_current_type): Two new functions. Used
9947         to store/restore current_type in expression on specific tokens.
9948         (search_field): New static variable. Set to one after parsing a point
9949         as at that point only a FIELDNAME token should be searched.
9950         (FIELDNAME): New token. After a point only a token belonging to 
9951         current_type type definition is allowed.
9952         (all over token rules): reset and change current_type according
9953         to rules.
9954         (exp '[' rule): insert implicit array index field if
9955         exp is a pascal string type.
9956
9957 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9958
9959         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9960         frame info.  Use frame_info's saved_regs instead of matching member
9961         in extra_frame_info throughout.
9962         (v850_frame_init_saved_regs): New function.
9963         (v850_init_extra_frame_info): Move most functionality into
9964         v850_frame_init_saved_regs().
9965         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9966         (v850_frame_find_saved_regs): Remove declaration.
9967         (FRAME_FIND_SAVED_REGS): Remove definition.
9968         (v850_frame_init_saved_regs): Add declaration.
9969         (FRAME_INIT_SAVED_REGS): Add definition.
9970
9971 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9972
9973         * v850-tdep.c: Begin multi-arch'ing v850.
9974         (v850_target_architecture_hook): Remove function.
9975         (v850_gdbarch_init): New function.  Add code previously in
9976         v850_target_architecture_hook().
9977         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9978         Call register_gdbarch_init() instead.
9979
9980 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9981
9982         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9983         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9984         (fixup_class_method_type): Likewise.
9985
9986 2002-05-15  Jim Blandy  <jimb@redhat.com>
9987
9988         Add macro structures to GDB's symbol tables.  Nobody puts anything
9989         in them yet.
9990         * symtab.h (struct symtab): New member: `macro_table'.
9991         * buildsym.h (pending_macros): New global variable.
9992         * buildsym.c: #include "macrotab.h".
9993         (buildsym_init): Initialize `pending_macros'.
9994         (end_symtab): If we found macro information while reading a CU's
9995         debugging info, do build a symtab structure for it.  Make the
9996         symtab point to the macro information, and clear the
9997         `pending_macros' pointer which held it while we were reading the
9998         debug info.
9999         (really_free_pendings): Free any pending macro table.
10000         * objfiles.h (struct objfile): New member: `macro_cache'.
10001         * objfiles.c (allocate_objfile): Set allocate and free functions
10002         for the macro cache's objstack.
10003         (free_objfile): Empty the macro cache's obstack.
10004         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10005         set new allocate and free functions for it.
10006         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10007         free functions for the macro cache's objstack.  (Why is this
10008         function building its own objfile?)
10009         * symmisc.c (print_objfile_statistics): Print statistics on the
10010         macro bcache.
10011         * Makefile.in: Note that buildsym.o depends on macrotab.h.
10012
10013 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10014
10015         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10016         (REGISTER_U_ADDR): Delete definition.
10017         (arm_register_u_addr): Delete declaration.
10018
10019 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10020
10021         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10022         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10023
10024 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
10025
10026         * regcache.c (register_valid): Revise comments refering to "Not
10027         available" and "unavailable".
10028         * frame.c (frame_register_read): Ditto.
10029         * findvar.c (value_of_register): Ditto.
10030
10031 2002-05-15  Andrew Cagney  <cagney@redhat.com>
10032
10033         * Makefile.in (remote_sim_h): Replace remote-sim_h.
10034         (remote-sim.o): Update dependencies.
10035         (d10v-tdep.o): Specify dependencies.
10036         (sim_d10v_h): Define.
10037
10038 2002-05-14  Jim Blandy  <jimb@redhat.com>
10039
10040         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10041         * macrotab.c (macro_lookup_inclusion, find_definition,
10042         new_macro_table): Same.
10043         
10044         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10045         not `! strcmp ()'.  This is a dubious improvement.
10046         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10047
10048         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10049         although it's not necessary, to avoid a warning.
10050
10051 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10052
10053         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10054         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10055         TYPE_INSTANCE_FLAGS.
10056         (struct main_type): New.
10057         (struct type): Move most members to struct main_type.  Change
10058         cv_type and as_type to new type_chain member.  Add instance_flags.
10059         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10060         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10061         (finish_cv_type): Remove prototype.
10062         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10063         Set TYPE_CHAIN.
10064         (alloc_type_instance): New function.
10065         (smash_type): New function.
10066         (make_pointer_type, make_reference_type, make_function_type)
10067         (smash_to_member_type, smash_to_method_type): Call smash_type.
10068         (make_qualified_type): New function.
10069         (make_type_with_address_space): Call make_qualified_type.
10070         (make_cv_type): Likewise.
10071         (finish_cv_type): Remove unnecessary function.
10072         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10073         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10074         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10075         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10076         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10077         * hpread.c (hpread_read_struct_type): Likewise.
10078         * stabsread.c (read_struct_type): Likewise.
10079
10080 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10081
10082         * configure.tgt: Add a catch all sh* target, for cases like
10083         sh[2,3,4]-elf and sh-hms.
10084
10085 2002-05-14  Keith Seitz  <keiths@redhat.com>
10086
10087         * event-loop.c (create_file_handler): Don't do anything but
10088         update data when we are given a fd which we are already
10089         monitoring.
10090
10091 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10092
10093         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10094         (update_context): Use __func__ in warnings.
10095         
10096 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10097
10098         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10099         and tcp_close to net_open and net_close.
10100         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10101         using UDP if requested.  Don't try to disable Nagle on UDP
10102         sockets.
10103         * remote.c (remote_serial_open): New function.  Warn about UDP.
10104         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10105
10106 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10107
10108         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10109
10110 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10111
10112         * configure.tgt: Remove sh-hms target.
10113         * MAINTAINERS: Don't list sh-hms as a separate target.
10114
10115 2002-05-13  Jim Blandy  <jimb@redhat.com>
10116
10117         Add first preprocessor macro-expansion files.
10118         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10119         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10120         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10121         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10122         (COMMON_OBS): Add macrotab.o, macroexp.o.
10123         (macroexp.o, macrotab.o): New rules.
10124
10125 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10126
10127         * config/m88k/tm-m88k.h: Update copyright.
10128         (m88k_target_write_pc): Declare
10129         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10130         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10131         (SHIFT_INST_REGS): Update definition.
10132         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10133         using old definition of TARGET_WRITE_PC.
10134         * regcache.c (generic_target_write_pc): Delete code handling
10135         NNPC_REGNUM.
10136         * gdbarch.sh (NNPC_REGNUM): Delete.
10137         * gdbarch.h, gdbarch.c: Regenerate.
10138
10139 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10140
10141         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10142         builtin reg number.
10143
10144 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10145
10146         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10147         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10148         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10149         access macros.
10150         * c-typeprint.c (cp_type_print_method_args): Likewise.
10151         (c_type_print_args): Likewise.
10152         * d10v-tdep.c (d10v_push_arguments): Likewise.
10153         (d10v_extract_return_value): Likewise.
10154         * expprint.c (print_subexp): Likewise.
10155         * gdbtypes.c (lookup_primitive_typename): Likewise.
10156         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10157         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10158         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10159         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10160         (TYPE_VECTOR): Likewise.
10161         * hpread.c (hpread_read_struct_type)
10162         (fix_static_member_physnames, fixup_class_method_type)
10163         (hpread_type_lookup): Likewise.
10164         * mdebugread.c (parse_symbol, parse_type): Likewise.
10165         * p-lang.c (is_pascal_string_type): Likewise.
10166         * valops.c (hand_function_call): Likewise.
10167         * x86-64-tdep.c (classify_argument): Likewise.
10168
10169         * hpread.c (hpread_read_function_type)
10170         (hpread_read_doc_function_type): Call replace_type.
10171         * dstread.c (create_new_type): Delete.
10172         (decode_dst_structure, process_dst_function): Call alloc_type.
10173         Use type access macros.
10174
10175 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10176
10177         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10178         the're not supported by the current architecture.
10179         (i387_fill_fxsave): Likewise.
10180
10181 2002-05-12  Fred Fish  <fnf@redhat.com>
10182
10183         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10184         sect_index_xxx members to index the first slot in section_offsets
10185         if all of the section_offsets are zero.
10186
10187 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10188
10189         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10190         checked in with last change.
10191
10192 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10193
10194         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10195         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10196         config.sub.
10197
10198 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10199
10200         * Makefile.in: Update dependencies.
10201
10202 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10203
10204         * language.c (local_hex_string_custom): Simplify.  Do not depend
10205         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10206
10207         * memattr.c (mem_info_command): Replace calls to
10208         longest_local_hex_string and longest_local_hex_string_custom.
10209         * buildsym.c (make_blockvector): Ditto.
10210         * solib.c (info_sharedlibrary_command): Ditto.
10211         * tracepoint.c (tracepoints_info): Ditto.
10212         * symtab.c (print_msymbol_info): Ditto.
10213
10214         * language.c (local_hex_string): Delete.
10215         (local_hex_string_custom): Delete.
10216         (longest_local_hex_string): Rename to local_hex_string.
10217         (longest_local_hex_string_custom): Rename to
10218         local_hex_string_custom.
10219         * language.h (local_hex_string): Change parameter type to LONGEST.
10220         (local_hex_string_custom): Ditto.
10221         (longest_local_hex_string): Delete declaration.
10222         (longest_local_hex_string_custom): Ditto.
10223
10224         * solib.c: Update copyright.
10225         * memattr.c: Update copyright.
10226         
10227 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10228
10229         * arch-utils.h (legacy_register_to_value): Declare.
10230         (legacy_value_to_register): Declare.
10231         (legacy_convert_register_p): Declare.
10232         * arch-utils.c (legacy_register_to_value): New function.
10233         (legacy_value_to_register): New function.
10234         (legacy_convert_register_p): New function.
10235
10236         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10237         (VALUE_TO_REGISTER): Define.
10238         (CONVERT_REGISTER_P): Define.
10239         * gdbarch.h, gdbarch.c: Regenerate.
10240
10241         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10242         VALUE_TO_REGISTER.
10243         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10244         CONVERT_REGISTER_P.
10245
10246 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10247             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10248
10249         * Makefile.in: Update dependencies for valops.c.
10250         * valops.c: Include "gdb_assert.h".
10251         (typecmp): Skip THIS parameter to methods.
10252         (find_method_list): Remove static_memfuncp argument,
10253         update callers.  Check for stub methods.
10254         (find_value_oload_method_list): Don't set *static_memfuncp.
10255         (find_overload_match): Don't check for stub methods.  Assert
10256         that methods are not stubbed.  Handle static methods.
10257         (value_find_oload_method_list): Remove static_memfuncp argument.
10258         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10259         to the argument list for static stub methods.
10260         * value.h (value_find_oload_method_list): Update prototype.
10261
10262 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10263
10264         * arch-utils.h (generic_register_size): Declare.
10265         (generic_register_raw_size, generic_register_virtual_size): Delete
10266         declarations.
10267         * arch-utils.c (generic_register_raw_size): Delete.
10268         (generic_register_size): New function.
10269         (generic_register_virtual_size): Delete.
10270
10271         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10272         default generic_register_size.
10273         * gdbarch.h, gdbarch.c: Re-generate.
10274         
10275         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10276         register_virtual_size.
10277         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10278         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10279
10280 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10281
10282         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10283         * gdbarch.h, gdbarch.c: Regenerate.
10284         * gnu-v3-abi.c: Update copyright.
10285         (vtable_address_point_offset): Update.
10286         (gnuv3_rtti_type): Update.
10287         (gnuv3_baseclass_offset): Update.
10288         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10289         (init_fetch_link_map_offsets): Update.
10290         * remote.c (get_remote_state): Update.
10291         
10292 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10293
10294         * TODO: Remove value_headof/value_from_vtable_info comment.
10295         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10296         * values.c (value_headof, value_from_vtable_info): Delete.
10297         * value.h (value_from_vtable_info): Delete prototype.
10298
10299 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10300
10301         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10302         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10303         $(gdb_regex_h).
10304         (gdb_assert_h): Define.
10305         (gdb_wait_h): Define.
10306         (gdb_regex_h): Define.
10307
10308 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10309
10310         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10311         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10312
10313 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10314
10315         * nbsd-tdep.c: Fix comment.
10316
10317 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10318
10319         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10320         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10321         (nbsd-tdep.o): New dependency list.
10322         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10323         nbsd-tdep.h.
10324         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10325         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10326         * nbsd-tdep.c: New file.
10327         * nbsd-tdep.h: New file.
10328         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10329         nbsd-tdep.h.
10330         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10331         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10332         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10333         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10334
10335 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10336
10337         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10338         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10339         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10340         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10341         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10342         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10343
10344 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10345
10346         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10347         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10348         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10349         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10350         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10351         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10352         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10353
10354 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10355
10356         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10357         fetch_elfcore_registers to...
10358         * i386nbsd-tdep.c: ...here.
10359         (i386nbsd_use_struct_convention): Rename to...
10360         (i386nbsd_aout_use_struct_convention): ...this.
10361         (i386nbsd_supply_reg): New function.
10362         (i386nbsd_fill_reg): New function.
10363         (fetch_core_registers): Use i386nbsd_supply_reg.
10364         (fetch_elfcore_registers): Likewise.
10365         (_initialize_i386nbsd_tdep): New function.
10366         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10367         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10368         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10369         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10370         (i386nbsd_aout_use_struct_convention): ...this.
10371
10372 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10373
10374         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10375         (store_inferior_registers): Use shnbsd_fill_reg.
10376         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10377         sh_nbsd_supply_register): Collapse into...
10378         (shnbsd_supply_reg): ...this.
10379         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10380         (shnbsd_fill_reg): ...this.
10381         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10382         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10383         (fetch_core_registers): Use shnbsd_supply_reg.
10384         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10385         (sh_nbsd_core_fns): Rename to...
10386         (shnbsd_core_fns): ...this.
10387         (sh_nbsd_elfcore_fns): Rename to...
10388         (shnbsd_elfcore_fns): ...this.
10389         (sh_nbsd_init_abi): Rename to...
10390         (shnbsd_init_abi): ...this.
10391         (_initialize_sh_nbsd_tdep): Rename to...
10392         (_initialize_shnbsd_tdep): ...this.
10393         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10394         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10395         sh_nbsd_fill_register): Remove prototypes.
10396         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10397
10398 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10399
10400         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10401         (i387-nat.o): Delete dependency list.
10402         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10403         (x86-64-linux-nat.o): Likewise.
10404         * i387-nat.c: Delete file, moving contents to...
10405         * i387-tdep.c: ...here.
10406         * i387-nat.h: Rename...
10407         * i387-tdep.h: ...to this.
10408         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10409         * i386-linux-nat.c: Likewise.
10410         * i386bsd-nat.c: Likewise.
10411         * i386gnu-nat.c: Likewise.
10412         * i386nbsd-nat.c: Likewise.
10413         * i386v4-nat.c: Likewise.
10414         * x86-64-linux-nat.c: Likewise.
10415         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10416         * config/i386/go32.mh (NATDEPFILES): Likewise.
10417         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10418         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10419         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10420         * config/i386/linux.mh (NATDEPFILES): Likewise.
10421         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10422         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10423         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10424         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10425
10426 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10427
10428         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10429         (alphanbsd-nat.o): Remove dependency list.
10430         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10431         * alphanbsd-nat.c: Delete.  Contents moved to...
10432         * alphanbsd-tdep.c: ...here.
10433         (_initialize_alphanbsd_tdep): Register core functions.
10434         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10435
10436 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10437
10438         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10439         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10440         (alphanbsd-nat.o): Likewise.
10441         (alphabsd-tdep.o): New dependency list.
10442         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10443         (fill_gregset): Use alphabsd_fill_reg.
10444         (supply_fpregset): Use alphabsd_supply_fpreg.
10445         (fill_fpregset): Use alphabsd_fill_fpreg.
10446         (fetch_inferior_registers): Use struct reg and struct fpreg
10447         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10448         and alphabsd_supply_fpreg.
10449         (store_inferior_registers): Use struct reg and struct fpreg
10450         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10451         and alphabsd_fill_fpreg.
10452         * alphabsd-tdep.c: New file.
10453         * alphabsd-tdep.h: New file.
10454         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10455         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10456         alphabsd_supply_fpreg.
10457         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10458         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10459
10460 2002-05-11  Eric Christopher  <echristo@redhat.com>
10461
10462         * mips-tdep.c (mips_double_register_type): Fix thinko.
10463         (mips_single_register_type): Ditto.
10464         * MAINTAINERS: Add self.
10465
10466 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10467
10468         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10469         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10470         right thing on architectures with different endianness and/or
10471         integer sizes.
10472
10473 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10474
10475         From Christian Limpach <chris@Pin.LU>
10476         * configure.in: Change sed expression which comments out
10477         NATDEPFILES to also comment out continuation lines.
10478         * configure: Regenerate.
10479
10480 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10481
10482         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10483         big patch.
10484
10485 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10486
10487         * sh-tdep.c: Include correct file.
10488
10489 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10490
10491         New support for sh64-elf (sh5) target.
10492
10493         * configure.tgt: For sh64-elf target, default to sh-elf.
10494
10495         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10496         (struct gdbarch_tdep): Add new fields for new registers and ABI
10497         info.
10498
10499         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10500         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10501         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10502         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10503         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10504         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10505         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10506         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10507         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10508         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10509         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10510         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10511         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10512         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10513         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10514         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10515         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10516         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10517         sign_extend, sh64_nofp_frame_init_saved_regs,
10518         sh64_init_extra_frame_info, sh64_get_saved_register,
10519         sh64_extract_struct_value_address, sh64_pop_frame,
10520         sh64_push_arguments, sh64_extract_return_value,
10521         sh64_store_return_value, sh64_show_media_regs,
10522         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10523         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10524         sh_sh64_register_virtual_type,
10525         sh_sh64_register_convert_to_virtual,
10526         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10527         sh64_register_read, sh64_pseudo_register_write,
10528         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10529         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10530         sh64_do_pseudo_register, sh_compact_do_registers_info,
10531         sh64_do_registers_info, sh_gdbarch_init): New functions.
10532
10533 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10534
10535         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10536
10537 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * linespec.c (decode_line_1): Check for a double quote after
10540         a filename correctly.
10541
10542 2002-05-10  Jim Blandy  <jimb@redhat.com>
10543
10544         Properly track the size of the current objfile's .debug_line section.
10545         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10546         (DWARF_LINE_SIZE): New macro.
10547         (dwarf2_build_psymtabs_hard): Record the line section's size in
10548         the partial symbol table.
10549         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10550         symbol table.
10551
10552 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10553
10554         * ia64-tdep.c: Handle breakpoints on L instruction type
10555         in MLX instruction bundle by moving the breakpoint to
10556         the third slot (X instruction type) as L holds only data.
10557
10558 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10559
10560         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10561         (process_one_symbol): Complain about discarding local symbols
10562         due to a misplaced N_LBRAC entry.
10563
10564 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10565
10566         From Daniel Berlin <dan@cgsoftware.com>
10567         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10568         decrease the depth we are at, in the case of templates.
10569
10570 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10571
10572         * mips-tdep.c (mips_float_register_type): New function.
10573         (mips_double_register_type): New function.
10574         (mips_print_register): Use them.
10575         (do_fp_register_row): Likewise.
10576
10577 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10578
10579         * signals/signals.c (signals): Remove conditional compilation around
10580         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10581         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10582
10583 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10584
10585         * remote-rdp.c (remote_rdp_can_run): Remove.
10586
10587 2002-05-09  Tom Tromey  <tromey@redhat.com>
10588
10589         * jv-valprint.c (java_val_print): Handle `char' as a special case
10590         of TYPE_CODE_INT.
10591
10592 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10593
10594         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10595         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10596         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10597         str r(0123),[sp,#nn].
10598         (arm_skip_prologue): Ditto.  Also make disassembly
10599         order-independent by placing it in a loop.
10600
10601 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10602
10603         * stabsread.c (read_type): Add recognition for new attribute:
10604         "@V;" means that an array type is actually a vector.
10605         This is analogous to the vector flag that's been added to dwarf2.
10606
10607 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10608
10609         * i386-tdep.h (i386_abi): New enum.
10610         (struct gdbarch_tdep): Replace os_ident member with abi.
10611         (i386_gdbarch_register_os_abi): New prototype.
10612         * i386-tdep.c (i386_abi_names): New array.
10613         (process_note_abi_tag_sections): Removed.
10614         (process_note_sections): New function.
10615         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10616         (struct i386_abi_handler): New struct.
10617         (i386_abi_handler_list): New variable.
10618         (i386_gdbarch_register_os_abi): New function.
10619         (i386_gdbarch_init): Adapt for the changes given above.
10620
10621 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10622
10623         * gregset.h: Say "GNU/Linux".
10624
10625 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10626
10627         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10628         (build_gdbtypes): Build builtin_type_v2_float.
10629         (_initialize_gdbtypes): Register new builtin type.
10630
10631 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10632
10633         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10634         (clear_gdbarch_swap): New function.
10635         (initialize_non_multiarch): Call.
10636         (gdbarch_update_p): Before calling init(), swap out and clear the
10637         existing architecture.
10638         * gdbarch.c: Regenerate.
10639
10640 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10641
10642         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10643         alphanbsd-tdep.c.
10644
10645 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10646
10647         * sh-nbsd-nat.c: Rename to...
10648         * shnbsd-nat.c: ...this.
10649         * sh-nbsd-tdep.c: Rename to...
10650         * shnbsd-tdep.c: ...this.
10651         * sh-nbsd-tdep.h: Rename to...
10652         * shnbsd-tdep.h: ...this.
10653         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10654         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10655
10656 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10657
10658         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10659         concatenation for command help messages.
10660
10661 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10662
10663         * NEWS: Note new sh*-*-netbsdelf* configuration.
10664         * configure.host: Set gdb_host_cpu to sh for all sh*.
10665         (sh*-*-netbsdelf*): New host.
10666         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10667         (sh*-*-netbsdelf*): New target.
10668         * sh-nbsd-nat.c: New file.
10669         * sh-nbsd-tdep.c: New file.
10670         * sh-nbsd-tdep.h: New file.
10671         * config/sh/nbsd.mh: New file.
10672         * config/sh/nbsd.mt: New file.
10673         * config/sh/nm-nbsd.h: New file.
10674         * config/sh/tm-nbsd.h: New file.
10675
10676 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10677
10678         * sh-tdep.c (sh_osabi_names): Declare.
10679         (process_note_abi_tag_sections): New function.
10680         (get_elfosabi): Ditto.
10681         (sh_gdbarch_register_os_abi): Ditto.
10682         (sh_dump_tdep): Ditto.
10683         _initialize_sh_tdep): Use gdbarch_register to register
10684         sh_gdbarch_init and sh_dump_tdep.
10685         * config/sh/tm-sh.h (sh_osabi): Declare.
10686         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10687
10688 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10689
10690         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10691         (thumb_scan_prologue): Ditto.
10692         (arm_find_callers_reg): Ditto.
10693         (arm_frame_chain): Ditto.
10694         (arm_init_extra_frame_info): Ditto.
10695         (arm_frame_saved_pc): Ditto.
10696         (arm_pop_frame): Ditto.
10697         (arm_push_return_address): New function.
10698         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10699         call_dummy_location, call_dummy_breakpoint_offset_p,
10700         call_dummy_breakpoint_offset, call_dummy_p,
10701         call_dummy_stack_adjust_p, call_dummy_words,
10702         sizeof_call_dummy_words, call_dummy_start_offset,
10703         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10704         call_dummy_address, push_return_address and push_dummy_frame for
10705         generic dummy frames.
10706
10707 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10708
10709         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10710         size computation for alloca.
10711         (sh_fp_frame_init_saved_regs): Likewise.
10712
10713 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10714
10715         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10716         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10717         * arm-tdep.c (arm_store_return_value): Use them.
10718         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10719         * remote-rdp.c (remote_rdp_fetch_register): Use
10720         ARM_MAX_REGISTER_RAW_SIZE.
10721         (remote_rdp_store_register): Likewise.
10722
10723 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10724
10725         * dwarf2cfi.c: Code cleanup, removed unused variables,
10726         added default labels to switch {} statements.
10727         * x86-64-tdep.c: Ditto.
10728         * x86-64-linux-nat.c: Ditto.
10729
10730 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10731
10732         * solib.h: Protect against multiple inclusion.
10733
10734 2002-05-06  Jim Blandy  <jimb@redhat.com>
10735
10736         Add first preprocessor macro-expansion files.
10737         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10738         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10739         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10740         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10741         (COMMON_OBS): Add macrotab.o, macroexp.o.
10742         (macroexp.o, macrotab.o): New rules.
10743
10744         Separate the job of reading the line number info statement program
10745         header (...expialidocious) out into its own function.
10746         * dwarf2read.c (struct line_head, struct filenames, struct
10747         directories): Replace with...
10748         (struct line_header): New structure, containing the full
10749         contents of the statement program header, including the
10750         include directory and file name tables.
10751         (read_file_scope): If we have line number info, instead of just
10752         calling dwarf_decode_lines to do all the work, call
10753         dwarf_decode_line_header first to get a `struct line_header'
10754         containing the data in the statement program header, and then
10755         pass that to dwarf_decode_lines, which will pick up where that
10756         left off.  Be sure to clean up the `struct line_header' object.
10757         (dwarf_decode_line_header, free_line_header, add_include_dir,
10758         add_file_name): New functions.
10759         (dwarf_decode_lines): Move all the code to read the statement
10760         program header into dwarf_decode_line_header.  Take the line
10761         header it built as the first argument, instead of the offset to
10762         the compilation unit's line number info.  Use the new `struct
10763         line_header' type instead of the old structures.  No need to do
10764         cleanups here now, since we don't allocate anything.
10765         (dwarf2_statement_list_fits_in_line_number_section,
10766         dwarf2_line_header_too_long): New complaints.
10767
10768 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10769
10770         * gdbtypes.c (init_vector_type): New function.
10771         (build_builtin_type_vec128): Simplify the representation of SIMD
10772         registers.
10773         (build_gdbtypes): Initialize new builtin vector types.
10774         (_initialize_gdbtypes): Register new vector types with gdbarch.
10775         (builtin_type_v4_float, builtin_type_v4_int32,
10776         builtin_type_v8_int16, builtin_type_v16_int8,
10777         builtin_type_v2_int32, builtin_type_v4_int16,
10778         builtin_type_v8_int8): New (renamed) SIMD types.
10779
10780 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10781
10782         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10783         (i387_fill_fxsave): Likewise.
10784
10785 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10786
10787         * alpha-tdep.c (alpha_extract_return_value): Don't use
10788         non-constant array size in prototype.
10789
10790 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10791
10792         From Brian Taylor <briant at model dot com>:
10793         * ui-out.c (ui_out_field_core_addr): Use the function
10794         longest_local_hex_string_custom'to format addresses > 32 bits
10795         wide.
10796
10797         * ui-out.c (ui_out_field_core_addr): Update comment.
10798
10799 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10800
10801         * stack.c (select_and_print_frame): Make static.  Delete the
10802         parameter `level'.
10803         (func_command): Update call.
10804         (select_frame_command): Delete code computing the frame level.
10805         * frame.h (select_and_print_frame): Delete declaration.
10806
10807 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10808
10809         * sparc-tdep.c (sparc_get_saved_register): Comment why
10810         get_prev_frame call is safe.
10811
10812 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10813
10814         * frame.h (select_frame): Delete level parameter.
10815         * stack.c (select_frame): Update.  Use frame_relative_level to
10816         obtain the frame's level.
10817         (select_and_print_frame): Update call.
10818         (select_frame_command): Ditto.
10819         (up_silently_base): Ditto.
10820         (down_silently_base): Ditto.
10821         * ocd.c (ocd_start_remote): Ditto.
10822         * remote-rdp.c (remote_rdp_open): Ditto.
10823         * remote-mips.c (mips_initialize): Ditto.
10824         (common_open): Ditto.
10825         * remote-e7000.c (e7000_start_remote): Ditto.
10826         * m3-nat.c (select_thread): Ditto.
10827         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10828         (child_get_current_exception_event): Ditto.
10829         * varobj.c (varobj_create): Ditto.
10830         (varobj_update): Ditto.
10831         (c_value_of_root): Ditto.
10832         * tracepoint.c (finish_tfind_command): Ditto.
10833         * corelow.c (core_open): Ditto.
10834         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10835         * thread.c (info_threads_command): Ditto.
10836         (switch_to_thread): Ditto.
10837         * infrun.c (normal_stop): Ditto.
10838         (restore_selected_frame): Ditto.
10839         (restore_inferior_status): Ditto.
10840         * breakpoint.c (insert_breakpoints): Ditto.
10841         (watchpoint_check): Ditto.
10842         (bpstat_stop_status): Ditto.
10843         (do_enable_breakpoint): Ditto.
10844         * blockframe.c (flush_cached_frames): Ditto.
10845         (reinit_frame_cache): Ditto.
10846
10847 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10848
10849         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10850         maintainer.
10851
10852 2002-05-04  Jim Blandy  <jimb@redhat.com>
10853
10854         * gdbtypes.c (replace_type): Doc fix.
10855
10856 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10857
10858         * valprint.c (strcat_longest): Delete commented out function.
10859         Update copyright.
10860
10861 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10862
10863         * MAINTAINERS: Mark a29k as deleted.
10864         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10865         Move new configurations to the top.
10866         * configure.tgt: Remove a29k.
10867         * config/a29k/tm-vx29k.h: Delete.
10868         * config/a29k/vx29k.mt: Delete.
10869         * config/a29k/tm-a29k.h: Delete.
10870         * config/a29k/a29k-udi.mt: Delete.
10871         * config/a29k/a29k.mt: Delete.
10872         * a29k-tdep.c: Delete.
10873         * remote-udi.c: Delete.
10874         * remote-mm.c: Delete.
10875         * remote-eb.c: Delete.
10876         * remote-adapt.c: Delete.
10877         * Makefile.in: Remove obsolete code.
10878         * config/s390/s390x.mt: Ditto.
10879         * config/s390/s390.mt: Ditto.
10880         * config/sparc/sparclynx.mh: Ditto.
10881         * config/sparc/linux.mh: Ditto.
10882         * config/pa/hppaosf.mh: Ditto.
10883         * config/pa/hppabsd.mh: Ditto.
10884         * config/ns32k/nbsd.mt: Ditto.
10885         * config/mips/vr5000.mt: Ditto.
10886         * config/m68k/sun3os4.mh: Ditto.
10887         * config/m68k/nbsd.mt: Ditto.
10888         * config/m68k/m68klynx.mh: Ditto.
10889         * config/m32r/m32r.mt: Ditto.
10890         * config/i386/x86-64linux.mt: Ditto.
10891         * config/i386/nbsdelf.mt: Ditto.
10892         * config/i386/nbsd.mt: Ditto.
10893         * config/i386/i386lynx.mh: Ditto.
10894
10895 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10896
10897         * target.c (debug_print_register): New function.  Handle oversize
10898         registers.
10899         (debug_to_fetch_registers): Call.
10900         (debug_to_store_registers): Call.
10901
10902 2002-05-03  Jim Blandy  <jimb@redhat.com>
10903
10904         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10905         (read_type): Doc fix.
10906         * gdbtypes.c (replace_type): Doc fix.
10907
10908         * stabsread.c (multiply_defined_struct): New complaint.
10909         (read_struct_type): If the type we were passed isn't empty, or
10910         incomplete, don't read the new struct type into it; complain,
10911         and return the original type unchanged.  Take a new `type_code'
10912         argument, which is the type code for the new type.
10913         (read_type): Rather than storing the type's type code here, pass
10914         it as an argument to read_struct_type, and let that take care of
10915         storing it.  That way, we don't overwrite the original type code,
10916         so read_struct_type can use it to decide whether we're overwriting
10917         something we shouldn't.
10918         (complain_about_struct_wipeout): New function.
10919
10920 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10921
10922         * gdbarch.sh: Assert that gdbarch is non-NULL.
10923         * gdbarch.c: Regenerate.
10924
10925 2002-05-03  Jason Merrill  <jason@redhat.com>
10926
10927         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10928         and return NULL.
10929
10930 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10931
10932         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10933         (x86_64_dwarf2gdb_regno_map_length),
10934         (x86_64_dwarf2_reg_to_regnum): Added.
10935         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10936         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10937         (_initialize_x86_64_tdep): Synced with the change above.
10938         (x86_64_skip_prologue): Reformulated message.
10939
10940 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10941
10942         * f-exp.y: Also use new prev_lexptr variable
10943         to improve error reporting. Based on Michael Snyder
10944         2002-04-24 dated patch to c-exp.y.
10945         * jv-exp.y: Likewise.
10946         * m2-exp.y: Likewise.
10947
10948 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10949
10950         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10951         we are dealing with vectors.
10952
10953 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10954
10955         * config/m68k/tm-nbsd.h: Obvious fix,
10956         correct machine name.
10957
10958 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10959
10960         * p-typeprint.c (pascal_type_print_base): Add support
10961         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10962
10963 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10964
10965         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10966         for fondamental pascal 'char' type.
10967
10968 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10969
10970         * p-lang.h (is_pascal_string_type): Declaration changed,
10971         new sixth argument of type char ** added.
10972         * p-lang.c (is_pascal_string_type): Implementation
10973         changed. Args length_pos, length_size, string_pos, char_size
10974         can now be NULL. New argument arrayname set to the field
10975         name of the char array. Return value set to char array
10976         field index plus one.
10977         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10978         is_pascal_string_type function.
10979
10980 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10981
10982         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10983         <cagney@redhat.com> change.
10984         * gdbarch.c: Regenerate.
10985
10986 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10987
10988         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10989         before probing for a new one.  Detect errorenous gdbarch_init
10990         functions.
10991         * gdbarch.c: Regenerate.
10992
10993 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10994
10995         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10996         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10997         * config/v850/tm-v850.h: Ditto.  Update copyright.
10998
10999 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
11000
11001         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11002         current_gdbarch.
11003
11004 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11005
11006         * arm-tdep.c: Whitespace clean-ups.
11007         (arm_skip_prologue): Fix thinko; two lines
11008         should have been removed as part of 4/24 change.
11009
11010 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
11011
11012         * rs6000-tdep.c: Added comment describing how fpscr register
11013         numbers were chosen.
11014
11015 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11016
11017         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11018
11019 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11020
11021         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11022         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11023         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11024
11025 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
11026
11027         From Louis Hamilton <hamilton@redhat.com>:
11028         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11029         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11030         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11031         not bfd-private xcoff data, to determine wordsize.
11032         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11033
11034 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
11035
11036         GDB 5.2 released from 5.2 branch.
11037
11038 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
11039
11040         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11041         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11042         (x86_64_register_info_table): Added comments with register numbers.
11043
11044 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11045
11046         * rs6000-tdep.c (rs6000_extract_return_value,
11047         rs6000_store_return_value): Handle returning vectors.
11048         (rs6000_gdbarch_init): Use
11049         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11050         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11051         New function.
11052         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11053         vectors.
11054         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11055         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11056
11057 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11058
11059         * hpread.c (hpread_psymtab_to_symtab_1,
11060         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11061         with fprintf_unfiltered (gdb_stderr,...).
11062
11063 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11064
11065         * remote-array.c (printf_monitor, write_monitor,
11066         array_insert_breakpoint, array_remove_breakpoint ):
11067         Replace fprintf (stderr,...
11068         with fprintf_unfiltered (gdb_stderr,....
11069         * remote-es.c: Likewise.
11070         * remote-os9k.c: Likewise.
11071         * remote-st.c: Likewise.
11072
11073 2002-04-28  Andreas Schwab  <schwab@suse.de>
11074
11075         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11076         linux-proc.o and gcore.o.
11077
11078 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11079
11080         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11081         code without frame pointers.
11082
11083 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11084
11085         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11086         ON_STACK is needed.
11087
11088 2002-04-26  Ben Elliston  <bje@redhat.com>
11089
11090         * target.c (do_xfer_memory): Correct reference to the new option
11091         "trust-readonly-sections".
11092
11093 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11094
11095         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11096         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11097         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11098         vectors.
11099         (read_array_type): Record the fact that this array type is really a
11100         vector (i.e. are passed in by value).
11101
11102 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11103
11104         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11105         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11106         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11107         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11108         * alpha-linux-tdep.c: Include frame.h.
11109         (alpha_linux_sigcontext_addr): New function.
11110         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11111         alpha_linux_sigcontext_addr.
11112         * alpha-osf1-tdep.c: Include gdbcore.h.
11113         (alpha_osf1_sigcontext_addr): New function.
11114         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11115         alpha_osf1_sigcontext_addr.
11116         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11117         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11118
11119 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11120
11121         * stack.c (selected_frame_level):
11122         (select_frame): Do not set selected_frame_level.
11123         * frame.h (selected_frame_level): Delete declaration.
11124
11125 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11126
11127         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11128         convert_from_func_ptr-addr when AIX / PowerOpen.
11129
11130 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11131
11132         * valops.c (hand_function_call): Call
11133         generic_save_call_dummy_addr.
11134         * frame.h (generic_save_call_dummy_addr): Declare.
11135         * blockframe.c (struct dummy_frame): Add fields call_lo and
11136         call_hi.
11137         (generic_find_dummy_frame): Check for PC in range call_lo to
11138         call_hi instead of entry_point_address.
11139         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11140         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11141         (generic_save_call_dummy_addr): New function.
11142
11143 2002-04-24  David S. Miller  <davem@redhat.com>
11144
11145         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11146         sparc_skip_prologue.
11147         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11148         information to find prologue when possible.
11149         (sparc_prologue_frameless_p): Call examine_prologue directly.
11150         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11151         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11152         second argument.
11153         (SKIP_PROLOGUE): Likewise.
11154
11155 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11156
11157         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11158         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11159         indicate that the condition it was testing is always true.
11160         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11161         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11162         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11163
11164 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11165
11166         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11167         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11168         tdep->jb_pc and tdep->jb_elt_size.
11169         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11170         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11171         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11172         * alpha-nat.c (get_longjmp_target): Remove.
11173         (JB_ELEMENT_SIZE): Ditto.
11174         (JB_PC): Ditto.
11175         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11176         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11177         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11178         to alpha_get_longjmp_target.
11179         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11180         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11181         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11182
11183 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11184
11185         * README: Update to GDB 5.2.
11186
11187 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11188
11189         * gdbarch.sh (LC_ALL): Set to `c'.
11190
11191 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11192
11193         * avr-tdep.c: Ran through gdb_indent.sh.
11194
11195 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11196
11197         * MAINTAINERS: Add myself as AVR maintainer.
11198         * NEWS: Note new target avr.
11199
11200 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11201
11202         * Makefile.in: Add support for AVR target.
11203         * configure.tgt: Add support for AVR target.
11204         * avr-tdep.c: New file
11205         * config/avr/avr.mt: New file.
11206
11207 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11208
11209         * MAINTAINERS: Add myself to write-after-approval.
11210
11211 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11212
11213         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11214         with fprintf_unfiltered (gdb_stderr,....
11215
11216 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11217
11218         Fix PR gdb/508.
11219         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11220
11221 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11222
11223         * p-exp.y: Also use new prev_lexptr variable
11224         to improve error reporting. Based on Michael Snyder
11225         2002-04-24 dated patch to c-exp.y.
11226
11227 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11228
11229         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11230         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11231         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11232         to 0.
11233         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11234         and struct value.
11235         (FUNCTION_START_OFFSET): Remove.
11236         (BREAKPOINT): Ditto.
11237
11238 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11239
11240         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11241         * NEWS: Ditto.
11242
11243 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11244
11245         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11246         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11247         alpha_linux_pc_in_sigtramp.
11248         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11249         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11250         alpha_osf1_pc_in_sigtramp.
11251         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11252         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11253         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11254         alphafbsd_pc_in_sigtramp.
11255         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11256         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11257         alphanbsd_pc_in_sigtramp.
11258         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11259         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11260
11261 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11262
11263         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11264
11265 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11266
11267         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11268         alphanbsd-tdep.c.
11269         (alphanbsd-nat.o): New dependency list.
11270         (alphanbsd-tdep.o): Ditto.
11271         * NEWS: Note new native NetBSD/alpha configuration.
11272         * alphanbsd-nat.c: New file.
11273         * alphanbsd-tdep.c: Ditto.
11274         * configure.host (alpha*-*-netbsd*): New host.
11275         * configure.tgt (alpha*-*-netbsd*): New target.
11276         * config/alpha/nbsd.mh: New file.
11277         * config/alpha/nbsd.mt: Ditto.
11278         * config/alpha/nm-nbsd.h: Ditto.
11279         * config/alpha/tm-nbsd.h: Ditto.
11280
11281 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11282
11283         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11284         (alpha-osf1-tdep.o): New dependency list.
11285         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11286         and skip_sigtramp_frame members.
11287         * alpha-linux-tdep.c: Include gdbcore.h.
11288         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11289         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11290         * alpha-osf1-tdep.c: New file.
11291         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11292         alpha-osf1-dep.c.
11293         (alpha_frame_past_sigtramp_frame): New function.
11294         (alpha_dynamic_sigtramp_offset): Ditto.
11295         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11296         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11297         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11298         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11299         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11300         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11301         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11302         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11303         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11304         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11305         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11306         to find_solib_trampoline_target.
11307         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11308         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11309         (SKIP_TRAMPOLINE_CODE): Remove.
11310         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11311         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11312         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11313         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11314         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11315         (PROC_SIGTRAMP_MAGIC): Ditto.
11316         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11317         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11318         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11319         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11320         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11321
11322 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11323
11324         * NEWS: Note that Alpha targets are now multi-arch.
11325
11326 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11327
11328         * parser-defs.h (prev_lexptr): New external variable.
11329         * parse.c (parse_exp_1): Set prev_lexptr to null before
11330         calling the language-specific parser.
11331         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11332         (yyerror): Use prev_lexptr in error reporting.
11333
11334 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11335
11336         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11337         * gregset.h: If FILL_FPXREGSET is defined, provide
11338         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11339         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11340         is defined, call fill_fpxregset.
11341
11342 2002-04-24  Roland McGrath  <roland@frob.com>
11343
11344         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11345         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11346         (supply_gregset, supply_fpregset): New functions.
11347
11348         * gnu-nat.c (gnu_find_memory_regions): New function.
11349         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11350         (gnu_xfer_memory): Add a cast.
11351
11352 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11353
11354         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11355         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11356         of argument regs ("str r(0123), [r11, #-nn"]).
11357         (arm_skip_prologue): Better handling for frameless functions.
11358         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11359         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11360
11361 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11362
11363         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11364         NUM_PSEUDO_REGS can be used.
11365
11366 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11367
11368         * arch-utils.h: Update copyright.
11369
11370         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11371         * gdbarch.h, gdbarch.c: Re-generate.
11372
11373         * inferior.h (IN_SIGTRAMP): Delete definition.
11374         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11375         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11376
11377         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11378         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11379         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11380         (find_proc_framesize): Ditto.
11381         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11382         (alpha_init_extra_frame_info): Ditto.
11383         * infrun.c (handle_inferior_event): Ditto.
11384         (handle_inferior_event): Ditto.
11385         (check_sigtramp2): Ditto.
11386         * blockframe.c (create_new_frame): Ditto.
11387         (get_prev_frame): Ditto.
11388         * ppc-linux-tdep.c: Update comments.
11389         * i386-linux-tdep.c: Update comments.
11390         * breakpoint.c (bpstat_what): Update comment.
11391
11392 2002-04-24  David S. Miller  <davem@redhat.com>
11393
11394         * i960-tdep.c (register_in_window_p): New function.
11395         (i960_find_saved_register): Use it instead of
11396         REGISTER_IN_WINDOW_P.
11397         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11398
11399         * symtab.h (find_stab_function_addr): Kill extern.
11400         * minsyms.c (find_stab_function_addr): Remove from here...
11401         * dbxread.c: ... to here, and mark it static.
11402
11403 2002-04-20  David S. Miller  <davem@redhat.com>
11404
11405         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11406         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11407
11408 2002-04-21  David S. Miller  <davem@redhat.com>
11409
11410         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11411         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11412         (vx_write_register): Likewise.
11413
11414 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11415
11416         * source.c (is_regular_file): New function.
11417         (openp): Check wether file to open is a regular file
11418         to avoid opening directories.
11419
11420 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11421
11422         * findvar.c (extract_signed_integer): Cast printf argument
11423         to suppress format warning.
11424         (extract_unsigned_integer): Likewise.
11425         * infcmd.c (registers_info): Likewise.
11426         * top.c (get_prompt_1): Likewise.
11427         * valops.c (value_assign): Likewise.
11428         * valprint.c (print_decimal): Likewise.
11429
11430 2002-04-22  H.J. Lu  (hjl@gnu.org)
11431
11432         * c-exp.y (typebase): Support
11433
11434         [long|long long|short] [signed|unsigned] [int|]
11435
11436         and
11437
11438         signed [long|long long|short] int
11439
11440 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11441
11442         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11443         and vax-tdep.h.
11444         * vax-tdep.h: New file.
11445         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11446         Make several routines static.
11447         (vax_get_saved_register): New function.
11448         (vax_gdbarch_init): New function.
11449         (_initialize_vax_tdep): Register vax_gdbarch_init.
11450         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11451         Remove macros now under the control of gdbarch.
11452
11453 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11454
11455         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11456         Some whitespace and coding standards tweaks.
11457
11458 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11459
11460         * vax-tdep.c: Include regcache.h.
11461         (vax_call_dummy_words): New.
11462         (sizeof_vax_call_dummy_words): New.
11463         (vax_fix_call_dummy): New function.
11464         (vax_saved_pc_after_call): Ditto.
11465         * config/vax/tm-vax.h: Don't include regcache.h.
11466         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11467         (CALL_DUMMY): Remove.
11468         (CALL_DUMMY_WORDS): Define.
11469         (SIZEOF_CALL_DUMMY_WORDS): Define.
11470         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11471
11472 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11473
11474         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11475
11476 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11477
11478         * vax-tdep.c (vax_frame_chain): New function.
11479         (vax_push_dummy_frame): Ditto.
11480         (vax_pop_frame): Ditto.
11481         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11482         (FRAMELESS_FUNCTION_INVOCATION): Use
11483         generic_frameless_function_invocation_not.
11484         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11485         (POP_FRAME): Use vax_pop_frame.
11486
11487 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11488
11489         * vax-tdep.c (vax_store_struct_return): New function.
11490         (vax_extract_return_value): Ditto.
11491         (vax_store_return_value): Ditto.
11492         (vax_extract_struct_value_address): Ditto.
11493         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11494         vax_store_struct_return.
11495         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11496         (STORE_RETURN_VALUE): Use vax_store_return_value.
11497         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11498
11499 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11500
11501         * vax-tdep.c (vax_frame_saved_pc): New function.
11502         (vax_frame_args_address_correct): Ditto.
11503         (vax_frame_args_address): Ditto.
11504         (vax_frame_locals_address): Ditto.
11505         (vax_frame_num_args): Move code to be in proximity to
11506         other frame-related functions.
11507         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11508         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11509         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11510         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11511         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11512
11513 2002-04-22  H.J. Lu  (hjl@gnu.org)
11514
11515         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11516         includedir.
11517
11518 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11519
11520         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11521         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11522         (FRAME_INIT_SAVED_REGS): New macro.
11523
11524 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11525
11526         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11527
11528 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11529
11530         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11531         where needed.
11532         (fetch_osf_core_registers): Likewise.
11533         (supply_gregset): Likewise.
11534
11535 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11536
11537         * symfile.h (get_section_index): Define.
11538         * symfile.c (get_section_index): New function.
11539         * mdebugread.c (SC_IS_SBSS): New macro.
11540         (SC_IS_BSS): Return true for the scBss storage class only, as
11541         the scSBss storage class refers to the .sbss section.
11542         (parse_partial_symbols): Discard the symbols which associated
11543         section does not exist.
11544         Make sure to use the .sbss section index for symbols which
11545         storage class is scBss, rather than using the .bss section index.
11546
11547 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11548
11549         * vax-tdep.c: Update copyright years.
11550         (vax_register_name): New function.
11551         (vax_register_byte): Ditto.
11552         (vax_register_raw_size): Ditto.
11553         (vax_register_virtual_size): Ditto.
11554         (vax_register_virtual_type): Ditto.
11555         * config/vax/tm-vax.h: Update copyright years.
11556         (REGISTER_NAMES): Remove.
11557         (REGISTER_NAME): Define.
11558         (REGISTER_BYTE): Use vax_register_byte.
11559         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11560         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11561         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11562
11563 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11564
11565         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11566         declaration
11567         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11568
11569 2002-04-21  David S. Miller  <davem@redhat.com>
11570
11571         * arch-utils.c (generic_prologue_frameless_p): Kill
11572         SKIP_PROLOGUE_FRAMELESS_P code.
11573         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11574         references.
11575         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11576         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11577         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11578         references.
11579         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11580         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11581         (sparc_gdbarch_init): Pass it to
11582         set_gdbarch_prologue_frameless_p.
11583
11584 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11585
11586         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11587         (alphabsd-nat.o): New dependency list.
11588
11589 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11590
11591         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11592         alphafbsd-tdep.c.
11593         (alpha-linux-tdep.o): New dependency list.
11594         (alphafbsd-tdep.o): Likewise.
11595
11596 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11597
11598         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11599         to here...
11600         * alpha-tdep.c: ...from here.
11601         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11602
11603 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11604
11605         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11606         prototype from here...
11607         * alpha-tdep.h: ...to here.
11608
11609 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11610
11611         * frame.h (selected_frame_level): Document as deprecated.
11612         (frame_relative_level): Declare.
11613         * stack.c (frame_relative_level): New function.
11614         (selected_frame_level): Document as deprecated.
11615         (select_frame): Do not set the selected_frame_level.
11616
11617         * stack.c (frame_info, record_selected_frame): Update.
11618         (frame_command, current_frame_command): Update.
11619         (up_silently_base, up_command, down_silently_base): Update.
11620         (down_command): Update.
11621         * inflow.c (kill_command): Update.
11622         * tracepoint.c (finish_tfind_command): Update.
11623         * corelow.c (core_open): Update.
11624         * thread.c (info_threads_command): Update.
11625         (do_captured_thread_select): Update.
11626         * infcmd.c (finish_command): Update.
11627         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11628
11629 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11630
11631         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11632
11633 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11634
11635         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11636         type const.
11637
11638 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11639
11640         * alphafbsd-tdep.c: Update copyright years.  Include
11641         alpha-tdep.h.
11642         (alphafbsd_use_struct_convention): Make static.
11643         (alphafbsd_init_abi): New function.
11644         (_initialize_alphafbsd_tdep): New function.
11645         * config/alpha/tm-fbsd.h: Update copyright years.
11646         (USE_STRUCT_CONVENTION): Remove.
11647
11648 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11649
11650         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11651         an Alpha ABI variant.
11652         (alpha_abi_handler_list): Declare.
11653         (alpha_gdbarch_register_os_abi): New function.
11654         (alpha_gdbarch_init): Give registered ABI variant handlers a
11655         chance to tweak the gdbarch once we have set up defaults.
11656         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11657
11658 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11659
11660         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11661         to standard_coerce_float_to_double.
11662         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11663
11664 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11665
11666         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11667         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11668         from gdbarch_tdep rather than a constant.
11669         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11670         the default text address for all Alpha Unix ABIs.
11671         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11672         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11673
11674 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11675
11676         * alpha-tdep.h: New file.  Includes several Alpha target constants
11677         taken from...
11678         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11679         let gdbarch deal with.
11680         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11681         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11682         to dependency list.
11683         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11684         Alpha target register names.
11685         * alphabsd-nat.c: Likewise.
11686         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11687         Alpha target register names.  Make serveral routines static.
11688         (alpha_get_saved_register): New function.
11689         (alpha_abi_names): New.
11690         (process_note_abi_tag_sections): New function.
11691         (get_elfosabi): New function.
11692         (alpha_gdbarch_init): New function.
11693         (alpha_dump_tdep): New function.
11694         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11695
11696 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11697
11698         * frame.c (find_saved_register): Delete #ifdef
11699         HAVE_REGISTER_WINDOWS code.
11700         * config/sparc/tm-sparc.h: Update comments.
11701         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11702
11703 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11704
11705         * i960-tdep.c (i960_find_saved_register): New function.
11706         (i960_get_saved_register): New function.
11707         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11708         (i960_get_saved_register): Declare.
11709         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11710
11711 2002-04-20  David S. Miller  <davem@redhat.com>
11712
11713         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11714
11715 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11716
11717         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11718         instead of NUM_PSEUDO_REGS.
11719
11720 2002-04-20  David S. Miller  <davem@redhat.com>
11721
11722         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11723         GDB_MULTI_ARCH_PARTIAL
11724         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11725         define, let tm-sp64.h do it.
11726
11727 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11728
11729         * frame.c (find_saved_register): Avoid a NULL pointer
11730         dereference and actually walk the frame list.
11731
11732 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11733
11734         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11735         sorted in most most-recent-used order.  Document.
11736         * gdbarch.h, gdbarch.c: Regenerate.
11737
11738 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11739
11740         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11741         instead of ->prev.
11742         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11743         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11744         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11745         instead of ->prev.
11746
11747 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11748
11749         Fix PR gdb/471.
11750         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11751         (build_builtin_type_vec128): Ditto.
11752         (append_composite_type_field): Fix calculation of type length in
11753         union case.
11754
11755 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11756
11757         * config/djgpp/README: Update.
11758
11759         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11760         compiler warnings.
11761
11762 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11763
11764         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11765         (alpha_setup_arbitrary_frame): ...to this.
11766         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11767         for alpha_setup_arbitrary_frame.
11768
11769 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11770
11771         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11772         * gdbarch.h, gdbarch.c: Regenerate.
11773
11774         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11775         * target.h (memory_breakpoint_from_pc): Update declaration.
11776         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11777
11778         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11779         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11780         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11781         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11782         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11783         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11784         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11785         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11786         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11787         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11788         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11789         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11790
11791         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11792         const pointer.
11793         * monitor.c (monitor_insert_breakpoint): Ditto.
11794         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11795
11796         * config/mcore/tm-mcore.h: Update copyright.
11797         * mem-break.c: Ditto.
11798         * xstormy16-tdep.c: Ditto.
11799
11800 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11801
11802         * p-exp.y: Add precedence rule for '^' token.
11803         This removes the shift/reduce conflicts.
11804         Remove the comment concerning these shift/reduce conflicts.
11805
11806 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11807
11808         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11809         (registers_powerpc_nofp): New register set for processors
11810         without floating point unit.
11811
11812 2002-04-18  David S. Miller  <davem@redhat.com>
11813
11814         * MAINTAINERS: Add myself to write-after-approval.
11815
11816 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11817
11818         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11819
11820 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11821
11822         * rs6000-tdep.c (frame_initial_stack_address): Use
11823         frame_register_read to read the alloca_reg.
11824
11825 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11826
11827         * frame.c (find_saved_register): Find saved registers in the next
11828         not prev frame.
11829         Fix PR gdb/365.
11830
11831 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11832
11833         * gdbarch.sh (LANG): Set to ``c''.
11834
11835 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11836
11837         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11838
11839 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11840
11841         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11842         Update copyright.
11843
11844         * hpread.c (hpread_get_lntt): Add declaration.
11845         Also fix PR gdb/391.
11846
11847 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11848
11849         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11850         * aclocal.m4, configure: Re-generate.
11851         Fix PR gdb/391.
11852
11853 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11854
11855         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11856         instead of tm_print_insn.
11857
11858 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11859
11860         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11861
11862 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11863
11864         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11865         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11866         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11867
11868 2002-04-12  Don Howard  <dhoward@redhat.com>
11869
11870         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11871         max_user_call_depth.
11872         (init_cmd_lists): Initialize the new value;
11873         * cli/cli-script.c (execute_user_command): Limit the call depth of
11874         user defined commands.  This avoids a core-dump when user commands
11875         are infinitly recursive.
11876
11877 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11878
11879         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11880         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11881         from tdep struct instead of DEFAULT_LR_SAVE.
11882         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11883         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11884         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11885
11886 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11887
11888         * Remote.c: Spelling fix.
11889         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11890         If no symbol found for "sbrk", try "_sbrk".
11891         (make_output_phdrs): Use bfd_section_name.
11892         (gcore_copy_callback): Use bfd_section_name.
11893         * eval.c: Indentation fix-ups.
11894         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11895         in case it gets applied to an address that is already
11896         in the instruction space.
11897         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11898         * symfile.c: Fix indentation, long lines.
11899         * source.c: White space fix-up.
11900
11901 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11902
11903         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11904         * frame.c (frame_register_read): New function.  Return non-zero on
11905         success.
11906         (read_relative_register_raw_bytes_for_frame): Delete.
11907         (read_relative_register_raw_bytes): Delete.
11908         * frame.h (frame_register_read): Declare.
11909         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11910         * sh-tdep.c: Ditto.
11911         * infcmd.c (do_registers_info): Ditto.
11912         * hppa-tdep.c: Ditto.
11913         * rs6000-tdep.c: Ditto.
11914         * h8500-tdep.c: Ditto.
11915         * mips-tdep.c: Ditto.
11916         * h8300-tdep.c: Ditto.
11917         * z8k-tdep.c: Ditto.
11918
11919 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11920
11921         From Jimi X <jimix@watson.ibm.com>:
11922         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11923         64-bit SysV ABI.
11924
11925 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11926
11927         From Jimi X <jimix@watson.ibm.com>:
11928         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11929         bfd info.
11930
11931 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11932
11933         From Jimi X <jimix@watson.ibm.com>:
11934         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11935         register sets for these processor variants.
11936
11937 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11938
11939         * regformats/reg-ppc.dat: Support FPSCR.
11940
11941 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11942
11943         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11944         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11945         Add fpscr as an invalid/unfetchable register.
11946         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11947         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11948         (fill_fpregset): Add support for register fpscr.
11949         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11950         (fill_gregset): Account for the fact that register ``mq'' might
11951         not exist.
11952         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11953         (registers_power): Add fpscr to register set at slot 71.
11954         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11955         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11956
11957 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11958
11959         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11960         * configure: Regenerate.
11961         * config.in: Regenerate.
11962         * acconfig.h: Add define for _SYSCALL32.
11963         * core-sol2.c: Remove #define _SYSCALL32.
11964         * solib-legacy.c: Remove #define _SYSCALL32.
11965
11966 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11967
11968         * stack.c (select_frame): Cleanup internal error message, do not
11969         use %p.
11970
11971 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11972
11973         * stack.c (select_frame): Check that selected_frame and the
11974         specified level are as expected.
11975         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11976         Update copyright.
11977         * frame.h (struct frame_info): Add field `level'.  Update
11978         copyright.
11979         Work-in-progress PR gdb/464.
11980
11981 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11982
11983         * maint.c (maint_print_section_info): Rename print_section_info.
11984         (print_bfd_section_info, print_objfile_section_info): Update.
11985         * inferior.h (struct gdbarch): Add opaque declaration.
11986         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11987         * gdbarch.h: Regenerate.
11988
11989 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11990
11991         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11992         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11993         (kernel_u_size): Added.
11994         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11995         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11996
11997 2002-04-04  Jim Ingham  <jingham@apple.com>
11998
11999        * valarith.c (find_size_for_pointer_math): New function, either returns
12000        the size for a pointer's target, returns 1 for void *, or errors for
12001        incomplete types.
12002        (value_add, value_sub): use find_size_for_pointer_math.
12003
12004 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12005
12006         * linux-low.c (linux_look_up_symbols): New hook.
12007         (linux_target_ops): Add linux_look_up_symbols.
12008         * remote-utils.c (decode_address): New function.
12009         (look_up_one_symbol): New function.
12010         * server.c (handle_query): Call target look_up_symbols hook.
12011         * server.h (look_up_one_symbol): Add prototype.
12012         * target.h (struct target_ops): Add look_up_symbols hook.
12013
12014 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
12015
12016         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12017         override FP_REGNUM with frame->fp.  Update copyright.
12018         * parse.c (num_std_regs, std_regs): Delete.
12019         (target_map_name_to_register): Do not search std_regs.  Update
12020         function description.
12021         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12022         declarations.  Update copyright.
12023         Fix PR gdb/251.
12024
12025 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12026
12027         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12028         after the last symbol in a block.
12029
12030 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
12031
12032         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12033         is non zero as a found symbol.
12034
12035 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12036
12037         * findvar.c: Include "builtin-regs.h".
12038         (value_of_register): Call value_of_builtin_reg when applicable.
12039         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12040         (target_map_name_to_register): Call
12041         builtin_reg_map_name_to_regnum.
12042         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12043         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12044         (builtin_regs_h): Define.
12045         (builtin-regs.o): New target.
12046         (findvar.o): Add $(builtin_regs_h).
12047         * builtin-regs.c, builtin-regs.h: New files.
12048         * std-regs.c: New file.
12049         Partial fix for PR gdb/251.
12050
12051 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12052
12053         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12054         it's no longer required.
12055
12056 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12057
12058         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12059
12060 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12061
12062         From Jimi X <jimix@watson.ibm.com>:
12063         * rs6000-tdep.c (rs6000_software_single_step): Use
12064         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12065         and size.  Use target_insert_breakpoint() and
12066         target_remove_breakpoint() to insert and remove breakpoints
12067         instead of explicit memory reads and writes.
12068
12069 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12070
12071         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12072         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12073         ELF_OBJECT_FORMAT ifdef.
12074
12075 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12076
12077         From Jimi X <jimix@watson.ibm.com>:
12078         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12079
12080 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12081
12082         From Jimi X <jimix@watson.ibm.com>:
12083         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12084         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12085
12086 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12087
12088         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12089         s/asprintf/xasprintf/.
12090         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12091
12092 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12093
12094         I believe Jeff Law denies responsability for this one:
12095         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12096         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12097         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12098         Work-around for PR gdb/366.
12099
12100 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12101
12102         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12103         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12104         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12105
12106 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12107
12108         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12109         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12110         information.
12111
12112 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12113
12114         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12115         maintainer.
12116
12117 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12118
12119         * README (Reporting Bugs in GDB): Document the bug web page as the
12120         prefered way of submitting bugs.
12121         Fix PR gdb/402.
12122
12123 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12124
12125         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12126         -1.  Update comment.
12127         * gdbarch.h, gdbarch.c: Re-generate.
12128
12129 2002-04-07  Andreas Schwab  <schwab@suse.de>
12130
12131         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12132         buffer to regcache_collect.
12133
12134 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12135
12136         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12137         * gdbarch.c, gdbarch.h: Re-generate.
12138
12139 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12140
12141         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12142         declaration.  Fix -Werror.
12143
12144 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12145
12146         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12147         * gdbarch.c: Regenerate.
12148
12149 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12150
12151         * breakpoint.c (clear_command): Rewrite middle section to
12152         combine two loops with identical control conditions.
12153         Add a cleanup to eliminate a memory leak.
12154         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12155
12156 2002-04-05  H.J. Lu  (hjl@gnu.org)
12157
12158         * solib-svr4.c (bkpt_names): Add "__start".
12159
12160 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12161
12162         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12163         as test for 64 bit target.
12164
12165 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12166
12167         * h8500-tdep.c (h8500_write_fp): Delete function.
12168         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12169         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12170         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12171         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12172         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12173         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12174         (s390_write_fp):
12175         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12176         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12177         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12178         (d10v_write_fp): Delete function.
12179         * inferior.h (write_fp, generic_target_write_fp): Delete
12180         declarations.
12181         * regcache.c (generic_target_write_fp): Delete function.
12182         (write_fp): Delete function.
12183         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12184         * gdbarch.h, gdbarch.c: Regenerate.
12185         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12186         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12187         (sparc64_write_fp): Delete declaration.
12188         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12189         (h8500_write_fp): Delete declaration.
12190
12191 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12192
12193         * sparc-tdep.c (sparc64_write_fp): Delete.
12194         (sparc_push_dummy_frame): Replace write_fp call with code to store
12195         the FP directly.
12196         (sparc_gdbarch_init): Do not initialize write_fp.
12197
12198 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12199
12200         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12201         clause.
12202
12203 2002-03-29  Jim Blandy  <jimb@redhat.com>
12204
12205         * stack.c (get_selected_block): Add new argument `addr_in_block',
12206         used to return the exact code address we used to select the block,
12207         not just the block.
12208         * blockframe.c (get_frame_block, get_current_block): Same.
12209         * frame.h (get_frame_block, get_current_block,
12210         get_selected_block): Update declarations.
12211         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12212         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12213
12214 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12215
12216         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12217         warning message.
12218
12219 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12220
12221         * utils.c (xfullpath): New function.
12222         * defs.h (xfullpath): Add declaration.
12223         * source.c (openp): Use xfullpath in place of gdb_realpath to
12224         avoid resolving the basename part of filenames when the
12225         associated file is a symbolic link. This fixes a potential
12226         inconsistency between the filenames known to GDB and the
12227         filenames it prints in the annotations.
12228         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12229         to be able to match a filename with either the real filename, or
12230         the name of any symbolic link to this file.
12231         (lookup_partial_symtab): Ditto.
12232
12233 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12234
12235         * breakpoint.c: Add support for hardware breakpoints in overlays.
12236         (overlay_events_enabled): New state variable.
12237         (insert_breakpoints): Use overlay_events_enabled to decide
12238         whether to attempt to set a breakpoint at the overlay load addr.
12239         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12240         (remove_breakpoint): Use overlay_events_enabled to decide
12241         whether breakpoints need to be removed from overlay load addr.
12242         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12243         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12244         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12245         disable_overlay_breakpoints): Update overlay_events_enabled.
12246
12247 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12248
12249         * dwarf2read.c (struct function_range): New.
12250         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12251         (check_cu_functions): New.
12252         (read_file_scope): Initialize global function lists.
12253         Call dwarf_decode_line after processing children.
12254         (read_func_scope): Add to global function list.
12255         (dwarf_decode_lines): Call check_cu_functions everywhere
12256         record_line is called.  Call record_line with a linenumber
12257         of 0 to mark sequence ends.
12258
12259 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12260
12261         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12262         change sync with glibc.
12263
12264 2002-04-03  Jim Blandy  <jimb@redhat.com>
12265
12266         * configure.in: Call AC_C_INLINE.
12267         * configure: Regenerated.
12268
12269 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12270
12271         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12272         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12273
12274 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12275
12276         * NEWS: Mention gcore support on FreeBSD/i386.
12277
12278         * fbsd-proc.c: New file.
12279         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12280         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12281
12282         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12283         while statement.
12284
12285 2002-03-29  Jim Blandy  <jimb@redhat.com>
12286
12287         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12288         unescaped newlines in string literals, but newer ones don't.  So
12289         escape them.
12290
12291 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12292             Andrew Cagney <cagney@redhat.com>
12293
12294         * cli/cli-dump.c: New file.  Dump memory to file,
12295         restore file to memory.
12296         * cli/cli-dump.h: New file.
12297         * Makefile.in: Add rules, dependencies for cli-dump.o.
12298         * NEWS: Mention new commands.
12299
12300 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12301
12302         * symfile.c (symbol_file_add): Move test for null symbols to later.
12303
12304 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12305
12306         From veksler at il.ibm.com:
12307         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12308         the xstrduped original path.
12309         Fix PR gdb/417.
12310
12311 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12312
12313         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12314         * infcmd.c (_initialize_infcmd): Ditto.
12315         * language.c (_initialize_language): Ditto.
12316         * symfile.c (_initialize_symfile): Ditto.
12317         * top.c (_init_main): Ditto.
12318         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12319
12320 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12321
12322         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12323         vector registers handling.
12324         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12325         fields of frame data.
12326         (frame_get_saved_regs): Fill in information for AltiVec registers.
12327
12328 2002-03-27  Jim Blandy  <jimb@redhat.com>
12329
12330         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12331         a function; leave this macro here to invoke that function.
12332         (symbol_init_mangled_name): Declaration for that function.
12333         * symtab.c (symbol_init_mangled_name): New function.
12334
12335 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12336
12337         * valarith.c: Replace strerror with safe_strerror.
12338         * tracepoint.c: Ditto.
12339         * lin-lwp.c: Ditto.
12340         * go32-nat.c: Ditto.
12341         * inflow.c: Ditto.
12342         * gnu-nat.c: Ditto.
12343
12344 2002-03-27  Andreas Schwab  <schwab@suse.de>
12345
12346         * event-top.c (command_line_handler): Remove useless if.
12347
12348 2002-03-27  Andreas Jaeger  <aj@suse.de>
12349
12350         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12351         comment.
12352
12353 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12354
12355         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12356         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12357         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12358         (x86_64_linux_dr_get_status, supply_gregset),
12359         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12360         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12361         (x86_64_register_info_table): Add.
12362         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12363         (x86_64_register_raw_size, x86_64_register_virtual_type),
12364         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12365         general x86_64_register_info_table.
12366         (i386_gdbarch_init): gdbarch_register_bytes is now set
12367         dynamicaly during initialization.
12368         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12369         * gdbserver/linux-x86-64-low.c: Ditto.
12370
12371 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12372
12373         * gdbserver/server.c (main): Call target_signal_to_host_p
12374         and target_signal_to_host on signals received from the remote.
12375         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12376         target_signal_from_host on signals sent to the remote.
12377         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12378         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12379
12380 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12381
12382         * signals/signals.c: Include "server.h" in gdbserver build.
12383         (target_signal_from_name): Don't use STREQ.
12384         (_initialize_signals): Likewise.  Don't include function in
12385         gdbserver build.
12386
12387 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12388
12389         * signals.c: Moved to...
12390         * signals/signals.c: Here.
12391         * Makefile (signals.o): Update.
12392
12393 2002-03-26  Jeff Law (law@redhat.com)
12394
12395         * somread.c (som_symtab_read): Remove some commented out code and
12396         updated related comments.  Do not set the minimal symbol table to
12397         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12398         in a dynamic executable.
12399         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12400         where we are unable to find the minimal symbol for the given
12401         PC value.
12402
12403 2002-03-25  Jeff Law (law@redhat.com)
12404
12405         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12406
12407 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12408
12409         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12410
12411 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12412
12413         * command.h: Update copyright.
12414         (struct cmd_list_element): Replace definition with opaque
12415         declaration.
12416         (enum cmd_types): Document that it will eventually be moved to
12417         cli/cli-decode.h
12418         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12419         (MALLOCED_REPLACEMENT): Delete macro.
12420         * Makefile.in (cli_decode_h): Add $(command_h).
12421         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12422         * top.c: Include "cli/cli-decode.h".
12423         * completer.c: Include "cli/cli-decode.h".
12424         * maint.c: Include "cli/cli-decode.h".
12425         * cli/cli-decode.h: Include "command.h".
12426         (enum command_class): Delete.
12427         (enum cmd_types): Comment out.
12428         (enum cmd_auto_boolean): Delete.
12429         (enum var_types): Delete.
12430
12431 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12432
12433         * cli/cli-decode.c: Include "gdb_assert.h".
12434         (add_set_or_show_cmd): New static function.
12435         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12436         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12437         all fields, such as func, from the set command.
12438
12439 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12440
12441         * MAINTAINERS (sh-elf): Change warning flag to -w.
12442
12443 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12444
12445         * defs.h (error): Add printf format attribute.
12446         * thread-db.c (thread_from_lwp): Fix error format string.
12447         * stack.c (parse_frame_specification): Ditto.
12448         * cli/cli-decode.c (undef_cmd_error): Ditto.
12449         * scm-lang.c (scm_lookup_name): Ditto.
12450         * tracepoint.c (trace_error): Ditto.
12451         * remote-utils.c (usage): Ditto.
12452         * remote.c (compare_sections_command): Ditto.
12453         Fix PR gdb/328.
12454
12455 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12456
12457         * gdbtypes.c (append_composite_type_field): New function.
12458         (init_composite_type): New function.
12459         * gdbtypes.h (append_composite_type_field): Declare.
12460         (init_composite_type): Ditto.
12461
12462 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12463
12464         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12465         function.
12466         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12467         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12468         structure returning convention for SYSV ABI case, but not
12469         for GNU/Linux, FreeBSD, or NetBSD.
12470
12471 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12472
12473         * symtab.h (lookup_block_symbol): Add mangled_name argument
12474         to prototype.
12475
12476         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12477         with new mangled_name argument.
12478         * linespec.c (decode_line_1): Likewise.
12479         * valops (value_of_this): Likewise.
12480         * symtab.c (lookup_transparent_type): Likewise.
12481         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12482         (lookup_symbol): If we are given a mangled name, pass it down
12483         to lookup_symbol_aux.
12484         (lookup_block_symbol): If we are given a mangled name to check
12485         against, only return symbols which match it.
12486
12487 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12488
12489         * win32-nat.c (child_create_inferior): Check for proper shell to use
12490         here, in case the user changes it on the fly.
12491         (_initialize_inftarg): Remove shell path considerations.
12492
12493 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12494
12495         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12496         for gdbarch_max_register_raw_size and max_register_virtual_size.
12497         Adjust copyright year.
12498
12499 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12500
12501          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12502          in a function to cover the entire beginning of the function
12503          as well if it does not already.
12504
12505 2002-03-21  Tom Rix  <trix@redhat.com>
12506
12507         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12508         (rs6000_ptrace64): Renamed from ptrace64.
12509
12510 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12511
12512         * gdbserver/remote-utils.c (remote_open): Don't call
12513         getprotobyname, we're all using TCP here so just use
12514         IPPROTO_TCP.
12515         * gdbserver/gdbreplay.c (remote_open): Ditto.
12516
12517 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12518
12519         * regcache.c (_initialize_regcache): No need to call
12520         build_regcache() at this time; it gets called whenever
12521         the gdbarch changes.
12522
12523 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12524
12525         * sparc-nat.c:  Include sys/param.h where possible.
12526
12527 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12528
12529         Fix PR gdb/422.
12530         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12531         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12532         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12533         complex types.
12534         * stabsread.c (rs6000_builtin_type): Likewise.
12535         (read_sun_floating_type): Likewise.
12536
12537 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12538
12539         * stabsread.c (read_member_functions): Remove skip code for duplicate
12540         constructor/destructor methods.  Use standard parsing for these
12541         methods and just do not chain them to the list of methods after
12542         parsing.
12543
12544 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12545
12546         * coffread.c: Remove redundant static declarations.  Replace
12547         occurrences of `PTR' with `void *'.
12548         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12549         * top.h (quit_cover): Likewise.
12550         * defs.h (catch_errors): Likewise.
12551
12552 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12553
12554         * defs.h (XMALLOC): Define.
12555         * gdb-events.sh (XMALLOC): Delete macro.
12556         * gdb-events.c, gdb-events.h: Regenerate.
12557         * gdbarch.sh (XMALLOC): Delete macro.
12558         * gdbarch.c: Regenerate.
12559         * serial.c (XMALLOC): Delete macro.
12560         * ui-file.c (XMALLOC): Ditto.
12561         * ser-unix.h (XMALLOC): Ditto.
12562         * sh-tdep.c (XMALLOC): Ditto.
12563         * ui-out.c (XMALLOC): Ditto.
12564         * utils.c (XMALLOC): Ditto.
12565         * i386-tdep.c (XMALLOC): Ditto.
12566         * gdb-events.c (XMALLOC): Ditto.
12567         * d10v-tdep.c (XMALLOC): Ditto.
12568         * cli-out.c (XMALLOC): Ditto.
12569
12570         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12571         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12572         * ui-file.c, ui-out.c: Ditto.
12573
12574 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12575
12576         * command.h (struct cmd_list_element): Add field context.
12577         (set_cmd_context, get_cmd_context): Declare.
12578         * cli/cli-decode.h: Ditto.
12579         * cli/cli-decode.c (get_cmd_context): New function.
12580         (set_cmd_context): New function.
12581         (add_cmd): Initialize context.
12582         Part of fixing PR gdb/145 and PR gdb/146.
12583
12584 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12585
12586         * cli/cli-decode.c (cmd_type): New function.
12587         * command.h (cmd_type): Declare.
12588         * infrun.c (set_schedlock_func): Call function cmd_type.
12589         * kod.c (kod_set_os): Call cmd_type.
12590         * cris-tdep.c (cris_version_update): Use function cmd_type.
12591         (cris_mode_update, cris_abi_update): Ditto.
12592
12593         * command.h: (execute_cmd_post_hook): Declare.
12594         (execute_cmd_pre_hook): Declare.
12595         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12596         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12597         functions. Execute pre/post hook while ensuring that afterwords
12598         hook_in is cleared.
12599         * top.c (execute_command): Use execute_cmd_post_hook, and
12600         execute_cmd_pre_hook to execute pre/post commands.
12601         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12602         hook_stop_stub.
12603         (hook_stop_stub): Call execute_cmd_pre_hook.
12604
12605 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12606
12607         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12608         set'' and this leads to a core dump.  Move xstrdup of
12609         operating_system to after check that it is not NULL.
12610
12611 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12612
12613         * kod.c (kod_set_os): Remove unnecessary check that
12614         ``command->type'' is set_cmd.
12615
12616         * valprint.c (set_input_radix): Use input_radix.
12617         (set_output_radix): Use output_radix.
12618         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12619         isn't reverted.
12620
12621 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12622
12623         * value.h (struct value): Delete field ``substring_addr''.  Change
12624         aligner fields to force_doublest_align, force_longest_align,
12625         force_core_addr_align and force_pointer_aligh.
12626
12627         * value.h (struct value): Fix typo in above change.
12628
12629 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12630
12631         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12632         to fix internal_error from ``maintenance print architecture''.
12633
12634 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12635
12636         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12637         for gcc versions after gcc-2.8.1.
12638
12639 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12640
12641         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12642         for method resolution.  Restore adjustment of ``this'' pointer after
12643         calling value_struct_elt, which was accidentally removed during the
12644         HP merge.
12645
12646 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12647
12648         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12649         value_of_register.
12650         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12651         get_saved_register.
12652         * value.h (value_of_register): Update.
12653
12654 2002-03-14  Richard Henderson  <rth@redhat.com>
12655
12656         * configure.in: Detect declaration for canonicalize_file_name.
12657         * utils.c (canonicalize_file_name): Declare, if needed.
12658         (gdb_realpath): Prefer realpath if available and usable.
12659         * config.in, configure: Rebuild.
12660
12661 2002-03-14  Richard Henderson  <rth@redhat.com>
12662
12663         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12664         a constant array bound.
12665
12666         * MAINTAINERS: Add myself to write-after-approval.
12667
12668 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12669
12670         * symfile.c (syms_from_objfile): Return immediately if no syms.
12671         (symbol_file_add): Return immediately if no syms.
12672         (find_sym_fns): Return immediately if no syms.
12673
12674 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12675
12676         * gdbserver/remote-util.c (remote_open): Print remote-side's
12677         IP address when remote debugging over the network.
12678
12679 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12680
12681         * config/sparc/fbsd.mh: Fix copyright.
12682         * config/sparc/fbsd.mt: Likewise.
12683
12684 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12685
12686         * MAINTAINERS: Fix typo in name of gdb warnings option.
12687         (x86-64): Fix formating so that this can be parsed by awk.
12688
12689 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12690
12691         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12692         * defs.h: Include "gdb/signals.h".
12693         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12694
12695 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12696
12697         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12698         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12699         from x86-64-tdep.h
12700
12701 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12702             Don Howard <dhoward@redhat.com>
12703
12704         * mips-tdep.c (ST0_FR): Define.
12705         (mips2_fp_compat): New function, temporarily disabled.
12706         (mips_read_fp_register_single): New function.
12707         (mips_read_fp_register_double): New function.
12708         (mips_print_register): Use them.
12709         (do_fp_register_row): Likewise.
12710
12711 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12712
12713         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12714         approval''.
12715
12716 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12717
12718         * stabsread.c (read_member_functions): Fix is_stub test for
12719         static member functions, improve comment.
12720
12721 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12722
12723         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12724         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12725         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12726         commands that set boolean values.
12727         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12728         (arm_rdi_resume): Always initialize PC.
12729         (arm_rdi_open): Don't use rslt as a boolean.
12730         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12731         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12732         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12733         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12734
12735 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12736
12737         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12738         * configure: Rebuilt.
12739
12740 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12741
12742         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12743         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12744
12745 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12746
12747         * cli/cli-decode.c (set_cmd_completer): New function.
12748         * command.h (set_cmd_completer): Declare.
12749         * cli/cli-decode.h (set_cmd_completer): Ditto.
12750
12751         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12752         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12753         * win32-nat.c (_initialize_inftarg): Ditto.
12754         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12755         * proc-api.c (_initialize_proc_api): Ditto.
12756         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12757         * source.c (_initialize_source): Ditto.
12758         * exec.c (_initialize_exec): Ditto.
12759         * solib.c (_initialize_solib): Ditto.
12760         * top.c (init_main): Ditto.
12761         * tracepoint.c (_initialize_tracepoint): Ditto.
12762         * symfile.c (_initialize_symfile): Ditto.
12763         * printcmd.c (_initialize_printcmd): Ditto.
12764         * infcmd.c (_initialize_infcmd): Ditto.
12765         * corefile.c (_initialize_core): Ditto.
12766
12767 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12768
12769         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12770
12771 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12772
12773         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12774
12775 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12776
12777         * NEWS: Update headings, 5.2 has branched.
12778
12779 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12780
12781         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12782         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12783         (register_addr, REGISTER_RAW_SIZE): Likewise.
12784         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12785         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12786
12787 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12788
12789         * MAINTAINERS (x86-64): Add myself.
12790         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12791         changed value_ptr -> struct value *
12792
12793 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12794
12795         * configure.host (sparc64-*-freebsd): Add.
12796         * configure.tgt: Likewise.
12797         * config/sparc/fbsd.mh: New file.
12798         * config/sparc/fbsd.mt: Likewise.
12799         * config/sparc/nm-fbsd.h: Likewise.
12800         * config/sparc/tm-fbsd.h: Likewise.
12801
12802 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12803
12804         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12805         regformats/reg-s390x.dat.
12806
12807 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12808
12809         * utils.c: Add FIXME explaining true/false problem.
12810
12811 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12812
12813         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12814
12815 2002-02-28  Michael Chastain  <mec@shout.net>
12816
12817         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12818
12819 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12820
12821         * gdbserver/linux-s390-low.c: New file.
12822         * regformats/reg-s390.dat: New file.
12823         * regformats/reg-s390x.dat: New file.
12824         * gdbserver/configure.srv: Add S/390.
12825         * gdbserver/Makefile.in: Add S/390.
12826         * configure.tgt: Enable gdbserver for S/390.
12827
12828 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12829
12830         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12831         first line of the doc string for "info dos", except at the end of
12832         the sentence, since the short help stops at the first period.
12833
12834 2002-02-28  Jason Merrill  <jason@redhat.com>
12835
12836         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12837
12838 2002-02-27  Fred Fish  <fnf@redhat.com>
12839
12840         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12841         comment (dumy -> dummy).
12842
12843 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12844
12845         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12846
12847 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12848
12849       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12850
12851 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12852
12853         * gdbserver/acconfig.h: New file.
12854         * gdbserver/i387-fp.c: New file.
12855         * gdbserver/i387-fp.h: New file.
12856         * gdbserver/linux-x86-64.c: New file.
12857         * regformats/reg-x86-64.dat: New file.
12858         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12859         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12860         * gdbserver/configure.in: Add support for regsets.
12861         * gdbserver/config.in: Regenerate.
12862         * gdbserver/configure: Regenerate.
12863         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12864         * gdbserver/linux-low.h: New file.
12865         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12866         for regsets.
12867         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12868         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12869         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12870         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12871         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12872         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12873         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12874         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12875         * gdbserver/regcache.c (supply_register): New function.
12876         (supply_register_by_name): New function.
12877         (collect_register): New function.
12878         (collect_register_by_name): New function.
12879
12880 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12881
12882         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12883         (config.status): Add configure.srv dependency.
12884         (server_h): Add config.h dependency.
12885
12886 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12887
12888         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12889         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12890         * gdbserver/configure.srv: Change i386-*-linux* to use
12891         reg-i386-linux.o.
12892
12893 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12894
12895         * x86-64-tdep.c: Re-indent.  Update copyright date.
12896
12897 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12898
12899         From Michal Ludvig <mludvig@suse.cz>:
12900         * x86-64-tdep.c (value.h): Delete.
12901         (gdb_assert.h): Include.
12902         (x86_64_register_convert_to_virtual,
12903         x86_64_register_convert_to_raw ): Add check which lets only
12904         floating-point values to be converted.
12905         (value_push): Delete.
12906         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12907         (i386_gdbarch_init): Number of register_bytes fixed.
12908
12909 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12910
12911         * MAINTAINERS: Add x86-64 target.
12912
12913 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12914
12915         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12916         * osfsolib.c (solib_map_sections): Ditto.
12917         * irix5-nat.c (solib_map_sections): Ditto.
12918         * corelow.c (gdb_check_format): Ditto.
12919         * symfile.c (symfile_bfd_open): Ditto.
12920         * solib.c (solib_map_sections): Ditto.
12921         Fix PR gdb/354.
12922
12923 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12924
12925         * remote.c (_initialize_remote): By default, disable ``e'' and
12926         ``E'' step out-of-range packets.
12927
12928 2002-02-26  Andreas Schwab  <schwab@suse.de>
12929
12930         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12931         m68k_linux_frame_saved_pc.
12932         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12933         in_sigtramp.
12934         (SIGCONTEXT_PC_OFFSET): Remove.
12935         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12936         m68k_linux_sigtramp_saved_pc): New functions.
12937         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12938         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12939         (UCONTEXT_PC_OFFSET): Define.
12940         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12941         non-RT and RT signal trampolines.
12942
12943 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12944
12945         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12946         (TARGET_NBPG, STACK_END_ADDR): Delete
12947         (VARIABLES_INSIDE_BLOCK): Delete.
12948
12949 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12950
12951         * utils.c (perror_with_name): Make string parameter constant.
12952         (print_sys_errmsg): Ditto.
12953         (query): Ditto.
12954         * defs.h (perror_with_name): Update.
12955         (print_sys_errmsg): Update.
12956         (query): Update.
12957
12958 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12959
12960         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12961         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12962
12963 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12964
12965         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12966         if it already matches the current architecture from the exec file.
12967         Include arch-utils.h for gdbarch_info_init prototype.
12968         * Makefile.in (rs6000-nat.o): Update dependencies.
12969
12970 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12971
12972         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12973          list of exported variables.
12974
12975 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12976
12977         * gdbserver/configure.srv: New file.
12978         * gdbserver/configure.in: Use configure.srv instead
12979         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12980         from it.
12981         * gdbserver/configure: Regenerated.
12982         * gdbserver/terminal.h: New file.
12983         * gdbserver/Makefile.in: Update for configure changes.  Remove
12984         more unneeded include paths.
12985
12986 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12987
12988         From wiz at danbala:
12989         * config/sparc/tm-sp64.h: Fix grammar and typos.
12990         Fix PR gdb/287.
12991
12992 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12993
12994         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12995         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12996         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12997         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12998         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12999         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13000         * s390-tdep.c: Ditto.
13001         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13002         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13003         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13004         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13005         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13006         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13007         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13008         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13009         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13010         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13011         Fix PR gdb/378.
13012
13013 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13014
13015         * lin-thread.c: Delete file.
13016         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13017         to gdb_proc_service.h.
13018         * configure: Re-generate.
13019
13020         * ocd.c (ocd_open): Do not try to open the "ocd" device.
13021         * serial.c (serial_open): Delete check for "ocd".
13022         Fix PR gdb/349.
13023
13024         * Makefile.in (linux-thread.o): Delete target.
13025         * linux-thread.c: Delete file.
13026
13027         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
13028         renamed SH files to be consistent.
13029
13030         * symtab.c (sort_search_symbols): Use xfree.
13031
13032 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13033
13034         * arm-linux-tdep.c (arm_linux_init_abi): Register
13035         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13036         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13037         definition with undef, since we don't want the sysvr4 definition.
13038         (SKIP_TRAMPOLINE_CODE): Likewise.
13039
13040 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13041
13042         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13043
13044         * configure.in: (AC_CHECK_FUNCS) Added test for
13045         canonicalize_file_name Regenerated.
13046         * config.in, configure: Regenerated.
13047         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13048         defined use canonicalize_file_name.
13049
13050 2002-02-23  Michael Chastain  <mec@shout.net>
13051
13052         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13053
13054 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13055
13056         * README: Remove references to cygnus.com.
13057         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13058         dot com'' form.  Remove references to cygnus.com and sourceware.
13059
13060 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13061
13062         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13063         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13064         1003.1-2001 no longer allows "head -1".
13065         * gdb/Makefile.in (version.c): Likewise.
13066         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13067         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13068         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13069
13070 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13071
13072         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13073         * command.h (cmd_cfunc_eq): Declare.
13074         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13075
13076         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13077         ``struct cmd_list_element *''.
13078         * cli/cli-cmds.c (is_complete_command): Update.  Use
13079         cmd_cfunc_eq.
13080         * top.c (execute_command): Pass the command to
13081         is_complete_command.
13082         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13083
13084 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13085
13086         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13087         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13088         architecture defines.
13089         * s390-tdep.c (s390_gdbarch_init): Likewise.
13090
13091 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13092
13093         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13094         (arm_linux_push_arguments): Likewise.
13095         (arm_linux_init_abi): Register them.  Also register linux-specific
13096         call_dummy_words.
13097         (find_minsym_and_objfile): Use strcmp, not STREQ.
13098         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13099         (arm_linux_call_dummy_words): Delete declaration.
13100         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13101         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13102         declarations.
13103         (LOWEST_PC): Delete.
13104
13105 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13106
13107         * maint.c (print_section_info): Do not prepend `0x' to filepos
13108         output, it will be handled by local_hex_string_custom.
13109
13110 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13111
13112         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13113         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13114         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13115
13116 2002-02-22  Jim Blandy  <jimb@redhat.com>
13117
13118         Indicate that the bcache functions don't change the strings
13119         they're passed.
13120         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13121         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13122
13123 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13124
13125         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13126
13127 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13128
13129         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13130         find the complete path to a loaded DLL.
13131
13132 2002-02-21  Fred Fish  <fnf@redhat.com>
13133
13134         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13135         that marks the end of the range of a function, enter a line number
13136         entry that has a line number of zero and a PC offset that matches
13137         the end of the function.  This starts a range of PC's for which no
13138         line number information is known.
13139         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13140         PC's for which no line number info is found (line number is zero)
13141         then we didn't find any valid line information.
13142         * symtab.h: Document use of zero line number entry.
13143
13144 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13145
13146         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13147         (have_ptrace_getvrregs): Define for run time checks.
13148         (gdb_vrregset_t): New type for Altivec register handling.
13149         (fetch_register, store_register): Fetch/store altivec register
13150         when needed.
13151         (fetch_altivec_register, store_altivec_register): New functions.
13152         (supply_vrregset, fill_vrregset): New functions.
13153         (fetch_altivec_registers, store_altivec_registers): New functions.
13154         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13155         registers as well.
13156
13157 2002-02-21  Jiri Smid  <smid@suse.cz>
13158
13159         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13160
13161 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13162
13163         * Makefile.in (armnbsd-nat.o): Update dependencies.
13164         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13165         supply the integer register set.
13166         (supply_fparegset): New function.  Similar for FPA registers.
13167         (fetch_regs, fetch_fp_regs): Use them.
13168         (fetch_core_registers): Likewise.
13169         (fetch_elfcore_registers): New function.
13170         (arm_netbsd_elfcore_fns): New core-file type specification.
13171         (_initialize_arm_netbsd_nat): Register it.
13172
13173 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13174
13175         * armnbsd-nat.c: Include gdbcore.h.
13176         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13177         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13178         'void' to declaration, to shut up ARI.
13179         (fetch_core_registers): Make static.  Rewrite using supply_register.
13180         (arm_netbsd_core_fns): New core-file type specification.
13181         (_initialize_arm_netbsd_nat): New function.
13182
13183 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13184
13185         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13186         value.
13187
13188 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13189
13190         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13191         fails.
13192
13193 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13194
13195         * jv-exp.y (parse_number): Change type of implicit longs
13196         to builtin_type_uint64.
13197
13198 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13199
13200         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13201         to be an integer instead of a `union wait'.
13202
13203 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13204
13205         * mips-linux-nat.c: Call the operating system GNU/Linux.
13206         * mips-linux-tdep.c: Likewise.
13207         * mips-tdep.c: Likewise.
13208
13209 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13210
13211         Fix PR gdb/265.
13212         * jv-exp.y (parse_number): Handle 64-bit integers.
13213
13214 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13215
13216         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13217         AC_STDC_HEADERS to AC_HEADER_STDC.
13218         * gdbserver/configure: Regenerated.
13219
13220 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13221
13222         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13223         is defined.
13224         * sparc-tdep.c (get_longjmp_target): Likewise.
13225
13226 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13227
13228         * News: Add news about ARM and Multi-arch.  Mention the new target
13229         arm*-*-netbsd*.
13230
13231 2002-02-19  Jim Blandy  <jimb@redhat.com>
13232
13233         * stabsread.c (error_type_complaint): Improve error message.
13234
13235 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13236
13237         * gdbserver/README: Update documentation.
13238         * gdbserver/configure.in: Update configury to match documentation.
13239         * gdbserver/Makefile.in: Likewise.
13240         * gdbserver/configure: Regenerated.
13241         * gdbserver/aclocal.m4: New file, generated by aclocal.
13242         * gdbserver/config.in: New file, generated by autoheader.
13243
13244 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13245
13246         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13247         armnbsd-nat.c.
13248
13249 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13250
13251         * arm-tdep.h (enum arm_float_model): New enum.
13252         (struct gdbarch_tdep): Add fp_model.
13253         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13254         up floating-point conversions until we know the floating-point model
13255         in use by the inferior.  Don't complain about being unable to
13256         determine the ABI of the inferior when we don't have one.
13257         (arm_extract_return_value): Support different floating-point models.
13258         (arm_store_return_value): Likewise.
13259         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13260         ARM_FLOAT_SOFT.
13261         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13262
13263 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13264
13265         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13266         of ``current_gdbarch''.
13267
13268 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13269
13270         * armnbsd-nat.c : ANSIfy all function declarations.
13271         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13272         (fetch_inferior_registers): Re-implement in terms of above.
13273         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13274         (store_inferior_registers): Re-implement in terms of above.
13275
13276 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13277
13278         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13279         kernel.
13280         * arm-linux-tdep.c: Likewise.
13281         * config/arm/tm-linux.h: Likewise.
13282
13283 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13284
13285         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13286         * config/arm/nbsd.mt (TM_FILE): Delete.
13287         * config/arm/tm-nbsd.h: Delete.
13288
13289 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13290
13291         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13292         Initialize CALL_DUMMY_LENGTH.
13293
13294 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13295
13296         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13297         function.
13298         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13299         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13300         defines one thing and that is incorrect for this port.
13301         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13302
13303 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13304
13305         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13306
13307 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13308
13309         * win32-nat.c (display_selector): New function. Displays information
13310         about the information returned by GetThreadSelectorEntry API function.
13311         (display_selectors): New function. Displays the infomation of
13312         the selector given as argument, or of CS, DS ans FS selectors
13313         if no argument is given.
13314         ( _initialize_inftarg): Add "w32" as info prefix command.
13315         Add "info w32 selector" as command calling display_selectors.
13316
13317 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13318
13319         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13320         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13321         if not defined.
13322
13323 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13324
13325         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13326
13327 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13328
13329         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13330         (arm_fix_call_dummy): Call it.
13331         (arm_call_dummy_breakpoint_offset): Delete.
13332         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13333         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13334
13335 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13336
13337         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13338         Default to func_frame_chain_valid.
13339         * gdbarch.h, gdbarch.c: Re-generate.
13340         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13341
13342 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13343
13344         * ppc-linux-nat.c: Update copyright.
13345         (fetch_register, store_register): Add tid parameter, don't compute
13346         tid here.
13347         (fetch_ppc_registers, store_ppc_registers): Add tid
13348         parameter. Pass it along to callees.
13349         (fetch_inferior_registers, store_inferior_registers): Compute tid
13350         here, and pass it to calleed functions.
13351         (fill_gregset, supply_fpregset): Clean up formatting.
13352
13353 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13354
13355         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13356         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13357
13358 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13359
13360         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13361         * gdbarch.c gdbarch.h: Regenerate.
13362         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13363         function.
13364         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13365         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13366         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13367
13368         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13369         * arm-tdep.c (arm_get_longjmp_target): New function.
13370         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13371         this to a positive value register arm_get_longjmp_target as the
13372         longjmp handler.
13373         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13374         (arm_linux_init_abi): Set up longjmp description in tdep.
13375         * armnbsd-nat.c (get_longjmp_target): Delete.
13376         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13377         description in tdep.
13378         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13379         (get_longjmp_target): Delete declaration.
13380         (GET_LONGJMP_TARGET): Delete.
13381         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13382         (GET_LONGJMP_TARGET): Delete.
13383
13384 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13385
13386         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13387         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13388         of ``current_gdbarch''.
13389
13390 2002-02-17  Tom Tromey  <tromey@redhat.com>
13391
13392         * cli/cli-cmds.c (compare_strings): New function.
13393         (complete_command): Only print each unique item once.
13394         * completer.h (complete_line): Declare.
13395         * completer.c (complete_line): New function.
13396         (line_completion_function): Use it.
13397
13398 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13399
13400         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13401         * gdbarch.h, gdbarch.c: Re-generate.
13402
13403 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13404
13405         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13406
13407 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13408
13409         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13410         * valops.c (value_arg_coerce): Don't take the address of a reference
13411         to convert an argument to a reference.
13412
13413 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13414
13415         * win32-nat.c (get_image_name): New function.
13416         (handle_load_dll): Use get_image_name function.
13417         (get_child_debug_event): Avoid registering debug events until possibly
13418         execed process is started.
13419         (child_create_inferior): Allow invocation via shell so that command
13420         line redirection, etc.  works ok.
13421         (_initialize_inftarg): Add new command: "set shell" to control whether
13422         a shell is used to start a process.
13423
13424 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13425
13426         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13427         instead of find_register_by_number.
13428         (cannot_store_register): Likewise.
13429
13430 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13431
13432         * dwarf2read.c: Replace fprintf (stderr, ...) by
13433         fprintf_unfiltered (gdb_stderr, ...).
13434
13435 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13436
13437         * gdbserver/gdbserver.1: Document --attach.
13438
13439 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13440
13441         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13442         descriptions.
13443         * arm-tdep.c (arm_default_arm_le_breakpoint)
13444         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13445         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13446         traditional breakpoint defines.
13447         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13448         (arm_gdbarch_init): Initialize new breakpoint variables.
13449         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13450         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13451         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13452         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13453         code out to ...
13454         (arm_netbsd_init_abi_common): ... here; new function.
13455         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13456         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13457         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13458         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13459
13460 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13461
13462         * arm-tdep.h (enum arm_abi): New enum.
13463         (struct gdbarch_tdep): New structure.
13464         (LOWEST_PC): Provide a default.
13465         (arm_gdbarch_register_os_abi): Declare new function.
13466         * arm-tdep.c (arm_abi_names): New array.
13467         (process_note_abi_tag_sections): New function.
13468         (get_elfosabi): New function.
13469         (arm_gdbarch_register_os_abi): New function.
13470         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13471         support for that ABI has been built in, then call the appropriate
13472         configuration routine.  Use gdbarch_num_regs() to get the number
13473         of registers.
13474         (arm_dump_tdep): New function.
13475         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13476         place-holder functions.
13477         (_initialize_arm_tdep): Register them.
13478         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13479
13480         * armnbsd-tdep.c: New file.
13481         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13482         * config/arm/nbsd.mt (TDEPFILES): Add it.
13483         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13484
13485         * armnbsd-nat.c: Include regcache.h.
13486         * Makefile.in (armnbsd-nat.o): Update dependency list.
13487
13488         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13489
13490 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13491
13492         * gdbserver/Makefile.in: Fix typos in target rules.
13493
13494 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13495
13496         Fix part of PR gdb/267.
13497         * linespec.c (find_methods): Handle constructors specially for now.
13498
13499 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13500
13501         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13502         handling.
13503         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13504         standard_coerce_float_to_double().
13505
13506 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13507
13508         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13509         GDBINIT_FILENAME.
13510
13511 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13512
13513         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13514         find_variant_by_name, because it confuses the multiarch
13515         framework. Return NULL if there isn't an architecture with the
13516         user supplied name, instead of forcing a different one without
13517         recording the change with the multiarch machinery.
13518         (find_variant_by_name): Delete.
13519
13520 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13521
13522         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13523         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13524
13525 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13526
13527         * stack.c (print_frame_info_base): When calling
13528         print_frame_info_listing_hook, set current_source_symtab.
13529
13530 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13531
13532         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13533         and remove unused $(INCLUDE_DIR).
13534         Add regcache.c to OBS.
13535         Add generated register protocol files to clean target.
13536         Update dependencies for new objects, obsolete old target code.
13537
13538         * gdbserver/linux-low.c: Remove all platform-specific code to
13539         new files.  Remove various dead code.  Update to use regcache
13540         functionality.
13541         * gdbserver/remote-utils.c (fromhex): Add return statement
13542         to quiet warning.
13543         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13544         constant.
13545         (input_interrupt): Add integer parameter to match prototype
13546         of a signal handler.
13547         (outreg): Use register_data ().
13548         (prepare_resume_reply): Use gdbserver_expedite_regs.
13549         * gdbserver/server.c (main): Dynamically allocate own_buf because
13550         PBUFSIZ is no longer constant.  Use registers_to_string () and
13551         registers_from_string ().
13552         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13553         for error (), fatal (), and warning ().  Update definition of
13554         PBUFSIZ to use regcache functionality.  Add include guard.
13555         * gdbserver/utils.c (fatal): Add missing ``const''.
13556         (warning): New function.
13557
13558         * regformats/regdat.sh: Include "regcache.h" in generated files.
13559         Provide init_registers () function.
13560         * regformats/regdef.h: Add prototype for set_register_cache ().
13561         Add include guard.
13562
13563         * gdbserver/linux-arm-low.c: New file.
13564         * gdbserver/linux-i386-low.c: New file.
13565         * gdbserver/linux-ia64-low.c: New file.
13566         * gdbserver/linux-m68k-low.c: New file.
13567         * gdbserver/linux-mips-low.c: New file.
13568         * gdbserver/linux-ppc-low.c: New file.
13569         * gdbserver/linux-sh-low.c: New file.
13570
13571         * gdbserver/regcache.c: New file.
13572         * gdbserver/regcache.h: New file.
13573
13574         * gdbserver/low-linux.c: Removed obsolete file.
13575
13576 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13577
13578         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13579         * config/i386/linux.mt: Likewise.
13580         * config/ia64/linux.mt: Likewise.
13581         * config/m68k/linux.mh: Likewise.
13582         * config/powerpc/linux.mh: Likewise.
13583         * config/mips/linux.mt: Likewise.
13584
13585         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13586
13587         * config/i386/i386lynx.mh: Mark gdbserver variables
13588         as (currently) obsolete for this target.
13589         * config/i386/nbsd.mt: Likewise.
13590         * config/i386/nbsdelf.mt: Likewise.
13591         * config/m32r/m32r.mt: Likewise.
13592         * config/m68k/m68klynx.mh: Likewise.
13593         * config/m68k/nbsd.mt: Likewise.
13594         * config/m68k/sun3os4.mh: Likewise.
13595         * config/mips/vr5000.mt: Likewise.
13596         * config/ns32k/nbsd.mt: Likewise.
13597         * config/pa/hppabsd.mh: Likewise.
13598         * config/pa/hppaosf.mh: Likewise.
13599         * config/powerpc/nbsd.mt: Likewise.
13600         * config/rs6000/rs6000lynx.mh: Likewise.
13601         * config/s390/s390.mt: Likewise.
13602         * config/s390/s390x.mt: Likewise.
13603         * config/sparc/sparclynx.mh: Likewise.
13604         * config/sparc/sun4os4.mh: Likewise.
13605         * config/i386/x86-64linux.mt: Likewise.
13606         * config/sparc/linux.mh: Likewise.
13607
13608 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13609
13610         * configure.tgt: Configure gdbserver only for known working
13611         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13612         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13613         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13614         * configure: Regenerated.
13615
13616 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13617
13618         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13619
13620         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13621         (default_gcore_mach): Just return 0, work around a problem in bfd.
13622         (default_gcore_target): OK to return NULL if exec_bfd is null.
13623         (make_mem_sec): Use a cast, avoid a warning.
13624
13625         * procfs.c (find_memory_regions_callback): Use a cast instead of
13626         calling host_pointer_to_address (which complains if
13627         sizeof (host pointer) != sizeof (target pointer)).
13628         (procfs_make_note_section): Avoid overflow in psargs string.
13629
13630         * procfs.c (procfs_make_note_section): Make the default
13631         implementation return an error.
13632
13633 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13634
13635         * procfs.c (procfs_make_note_section): Provide a default definition
13636         (for alpha-dec-osf4.0f). Fix typos.
13637
13638 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13639
13640         * linux-proc.c: Add include of regcache.h.
13641         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13642
13643 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13644
13645         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13646         * memattr.c (create_mem_region): Disallow useless empty region.
13647         Regions are half-open intervals, so allow [A..B) [B..C) as
13648         non-overlapping.
13649
13650 2002-02-13  Michael Chastain <mec@shout.net>
13651
13652         * defs.h: Kill CONST_PTR.
13653         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13654         * c-lang.c (c_builtin_types): Likewise.
13655         * ch-lang.c (ch_builtin_types): Likewise.
13656         * f-lang.c (f_builtin_types): Likewise.
13657         * language.c (unknown_builtin_types): Likewise.
13658         * m2-lang.c (m2_builtin_types): Likewise.
13659         * p-lang.c (pascal_builtin_types): Likewise.
13660         * scm-lang.c (c_builtin_types): Likewise.
13661
13662 2002-02-13  Keith Seitz  <keiths@redhat.com>
13663
13664         * arm-tdep.h (arm_get_next_pc): Add declaration.
13665
13666 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13667
13668         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13669         with other related struct-returning functions.
13670         (arm_extract_struct_value_address): New function.
13671         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13672         initialize float_format, double_format and long_double_format as
13673         appropriate to the endianness of the target.
13674         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13675         (arm_use_struct_convention): Delete declaration.
13676         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13677
13678 2002-02-13  Keith Seitz  <keiths@redhat.com>
13679
13680         * defs.h (core_addr_to_string_nz): New function.
13681
13682 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13683
13684         Apply missing bits of 2002-01-15 patch.
13685         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13686         (fill_fpregset): Use i387_fill_fsave.
13687
13688 2002-02-12  Keith Seitz  <keiths@redhat.com>
13689
13690         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13691         (core_addr_to_string_nz): New function.
13692
13693 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13694
13695         * arm-linux-nat.c: Really include arm-tdep.h.
13696         * config/arm/tm-linux.h (struct type, struct value): Declare.
13697
13698 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13699
13700         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13701         (gcore section): Ifdef for Solaris and Unixware only.
13702         (procfs_do_thread_registers): Unixware needs one lwpstatus
13703         per thread (not one prstatus or pstatus).
13704         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13705         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13706         once before iterating over threads.
13707
13708 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13709
13710         * arm-tdep.h: New file.
13711         * arm-tdep.c: Include arm-tdep.h.
13712         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13713         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13714         (arm_print_float_info, arm_register_type, convert_to_extended)
13715         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13716         (arm_extract_return_value, arm_register_name): Make static.
13717         (arm_software_single_step): Similarly.  Fix types in declaration.
13718         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13719         (arm_store_return_value, arm_store_struct_return): New functions.
13720         (arm_gdbarch_init): Register the above functions.  Also register
13721         call_dummy_start_offset, sizeof_call_dummy_words,
13722         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13723         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13724         max_register_virtual_size, register_size.  Set up
13725         prologue_cache.saved_regs here, rather than ...
13726         (_initialize_arm_tdep): ... here.
13727         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13728         declarations.
13729         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13730         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13731         (arm_print_float_info, arm_register_type, convert_to_extended)
13732         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13733         (arm_extract_return_value, arm_register_name): Delete declarations.
13734         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13735         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13736         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13737         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13738         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13739         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13740         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13741         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13742         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13743         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13744         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13745         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13746         interface.
13747         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13748         * remote-rdi.c remote-rdp.c: Likewise.
13749         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13750         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13751         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13752         definition.
13753
13754         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13755         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13756         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13757         from non-ARM_ prefixed definitions.
13758         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13759         all uses of above.
13760         * remote-rdi.c remote-rdp.c: Likewise.
13761         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13762
13763 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13764
13765         * arm-tdep.c (arm_frameless_function_invocation)
13766         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13767         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13768         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13769         (arm_pop_frame, arm_get_next_pc): Make static.
13770         (arm_gdbarch_init): Register above in gdbarch structure.
13771         (arm_read_fp): Renamed from arm_target_read_fp.
13772         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13773         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13774         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13775         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13776         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13777         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13778         (arm_pc_is_thumb_dummy): Delete declarations.
13779         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13780         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13781         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13782         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13783
13784 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13785
13786         * symtab.c (compare_search_syms): New function.
13787         (sort_search_symbols): New function.
13788         (search_symbols): Sort symbols after searching rather than
13789         before.
13790
13791 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13792
13793         * NEWS: Linux -> GNU/Linux.
13794
13795 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13796
13797         * gdbarch.sh: For for level one methods, disallow a definition
13798         when partially multi-arched.  Add comments explaining rationale.
13799         * gdbarch.h: Re-generate.
13800
13801 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13802
13803         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13804         multi-arch partial.
13805
13806 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13807
13808         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13809         field.  Use diff -u.
13810         * gdbarch.c: Re-generate.
13811
13812 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13813
13814         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13815         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13816         partial.
13817
13818 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13819
13820         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13821         multi-arch partial.
13822         (PUSH_ARGUMENTS): Switch to using predefault.
13823         * gdbarch.c: Regenerate.
13824
13825 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13826
13827         * valops.c (PUSH_ARGUMENTS): Delete definition.
13828         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13829         partial.  Default to default_push_arguments.
13830         * gdbarch.h, gdbarch.c: Regenerate.
13831
13832 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13833
13834         * defs.h (throw_exception): Rename return_to_top_level.  Update
13835         comments.
13836         * utils.c (error_stream, internal_verror, quit): Ditto.
13837         * top.c (throw_exception, catcher): Ditto.
13838         * sparclet-rom.c (sparclet_load): Ditto.
13839         * remote.c (interrupt_query, minitelnet): Ditto.
13840         * remote-sds.c (interrupt_query): Ditto.
13841         * remote-mips.c (mips_error, mips_kill): Ditto.
13842         * ocd.c (interrupt_query): Ditto.
13843         * monitor.c (monitor_interrupt_query): Ditto.
13844         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13845         * target.h: Update comment.
13846
13847         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13848
13849 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13850
13851         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13852         default_double_format.
13853         * gdbarch.h, gdbarch.c: Re-generate.
13854         * findvar.c (floatformat_unknown): Delete variable definition.
13855         * doublest.h (floatformat_unknown): Delete variable declaration.
13856
13857 2002-02-09  Jim Blandy  <jimb@redhat.com>
13858
13859         * stabsread.c (read_type): Add code to parse Sun's syntax for
13860         prototyped function types.
13861
13862 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13863
13864         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13865         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13866
13867 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13868
13869         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13870         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13871         now _initialize_xcoffsolib gets called again and overrides the
13872         commands from solib.c in a native configuration.
13873
13874 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13875
13876         * doublest.c (store_typed_floating): Don't try to return a value.
13877         Fixes PR gdb/290.
13878
13879 2002-02-08  Jim Blandy  <jimb@redhat.com>
13880
13881         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13882         is prototyped and has no arguments, print its argument list as
13883         `(void)'.
13884
13885 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13886
13887         * MAINTAINERS (write-after-approval): Add myself.
13888         (paper-trail): I've escaped!
13889
13890 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13891
13892         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13893         changes.
13894         (_initialize_check_for_gdb_ini): Ditto.
13895
13896 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13897
13898         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13899         xaprintf -> xasprintf.
13900
13901 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13902
13903         * win32-nat.c: Remove use of printf and sprintf functions.
13904
13905 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13906
13907         * arm-tdep.c (arm_frame_chain_valid): Make static.
13908         (arm_push_arguments): Likewise.
13909         (arm_gdbarch_init): New function.
13910         (_initialize_arm_tdep): Call it.
13911         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13912         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13913         (FRAME_CHAIN_VALID): Delete.
13914         (arm_frame_chain_valid): Delete declaration.
13915         (PUSH_ARGUMENTS): Delete.
13916         (arm_push_arguments): Delete declaration.
13917         (CALL_DUMMY_P): Delete.
13918
13919 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13920             Corinna Vinschen  <vinschen@redhat.com>
13921
13922         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13923         on builtin float types.
13924
13925 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13926
13927         * utils.c: Include <curses.h> before "bfd.h".
13928         * tui/tui-hooks.c: Likewise.
13929         * tui/tui.c: Likewise.
13930         * tui/tuiCommand.c: Likewise.
13931         * tui/tuiData.c: Likewise.
13932         * tui/tuiDataWin.c: Likewise.
13933         * tui/tuiDisassem.c: Likewise.
13934         * tui/tuiGeneralWin.c: Likewise.
13935         * tui/tuiIO.c: Likewise.
13936         * tui/tuiLayout.c: Likewise.
13937         * tui/tuiRegs.c: Likewise.
13938         * tui/tuiSource.c: Likewise.
13939         * tui/tuiSourceWin.c: Likewise.
13940         * tui/tuiStack.c: Likewise.
13941         * tui/tuiWin.c: Likewise.
13942
13943 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13944
13945         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13946         to include space for pseudoregs as well. Update loops accordingly.
13947         (sh_fp_frame_init_saved_regs): Ditto.
13948         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13949
13950 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13951
13952         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13953         Add Richard Earnshaw to Arm maintainers.
13954
13955 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13956
13957         * defs.h (warning_begin): Delete declaration.
13958
13959         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13960         Delete macro.
13961
13962 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13963
13964         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13965         Logic bug, remove misplaced else.
13966
13967 2002-02-07  Klee Dienes  <klee@apple.com>
13968
13969         * fork-inferior.c (fork_inferior): Add '!' to the list of
13970         characters that need to be quoted when building a string for the
13971         shell.  Quote '!' specifically with a backslash, since CSH chokes
13972         when trying to evaluate "str!str".
13973
13974 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13975
13976         * rdi-share/host.h: Only provide a typedef for bool if it is not
13977         defined.
13978
13979 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13980
13981         * breakpoint.h (enum bptype): Add new overlay event bp type.
13982         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13983
13984         * breakpoint.c (create_internal_breakpoint): New function.
13985         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13986         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13987         (create_thread_event_breakpoint): Ditto.
13988         (create_solib_event_breakpoint): Ditto.
13989         (create_overlay_event_breakpoint): New function.
13990         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13991         (update_breakpoints_after_exec): Delete and re-initialize
13992         overlay event breakpoints after an exec.  Add FIXME comment
13993         about longjmp breakpoint.
13994         (print_it_typical): Ignore overlay event breakpoints.
13995         (print_one_breakpoint): Ditto.
13996         (mention): Ditto.
13997         (bpstat_what): Do not stop for overlay event breakpoints.
13998         (delete_breakpoint): Don't delete overlay event breakpoints.
13999         (breakpoint_re_set_one): Delete the overlay event breakpoint.
14000         (breakpoint_re_set): Re-create overlay event breakpoint.
14001
14002         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14003         (overlay_manual_command): Disable overlay breakpoints.
14004         (overlay_off_command): Disable overlay breakpoints.
14005
14006 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14007
14008         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14009         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14010         to here from config/tm-arm.h.
14011         (coff_sym_is_thumb): Make static.
14012         (arm_elf_make_msymbol_special): New function.
14013         (arm_coff_make_msymbol_special): New function.
14014         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14015         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14016         (coff_sym_is_thumb): Delete declaration.
14017         (arm_elf_make_msymbol_special): Declare.
14018         (arm_coff_make_msymbol_special): Declare.
14019         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14020         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14021
14022 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14023
14024         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14025
14026 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14027
14028         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14029         * gdbarch.c gdbarch.h: Regenerate.
14030         * arch-utils.c (default_print_float_info): New function.
14031         * arch-utils.h (default_print_float_info): Prototype it.
14032         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14033         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14034         (PRINT_FLOAT_INFO): Document it.
14035
14036         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14037         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14038         (PRINT_FLOAT_INFO): Define.
14039
14040 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14041
14042         * win32-nat.c (_initialize_check_for_gdb_ini):
14043         Add typecast to sprintf argument to suppress a warning.
14044
14045 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14046
14047         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14048         to allow easier handling of pass state.
14049         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14050         that gives exception name and address.
14051         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14052         and set last_sig value to ourstatus->value.sig. Some missing
14053         exceptions added.
14054         (child_continue): Correctly report continue_status.
14055         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14056         TARGET_SIGNAL_0 (new default value).
14057         (child_resume): consider sig argument passed to decide if
14058         the exception should be passed to debuggee or not.
14059
14060 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14061
14062         * regcache.c (fetch_register): Call target_fetch_register
14063         only if we don't call FETCH_PSEUDO_REGISTER.
14064         (store_register): Call target_store_register only if we
14065         don't call STORE_PSEUDO_REGISTER.
14066
14067 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14068
14069         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14070         ELF_MAKE_MSYMBOL_SPECIAL.
14071         * gdbarch.c, gdbarch.h: Regenerate.
14072         * arch-utils.c (default_make_msymbol_special): New function.
14073         * arch-utils.h (default_make_msymbol_special): Export.
14074         * elfread.c (elf_symtab_read): Compile use of
14075         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14076         multiarched.
14077         * coffread.c (coff_symtab_read): Ditto, for
14078         COFF_MAKE_MSYMBOL_SPECIAL.
14079
14080 2002-02-05  Jim Blandy  <jimb@redhat.com>
14081
14082         * solib-svr4.c (svr4_truncate_ptr): New function.
14083         (svr4_relocate_section_addresses): Do the address arithmetic with
14084         the appropriate truncation for target addresses, even when
14085         CORE_ADDR is larger than a target address.
14086
14087 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14088
14089         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14090         to (int *).
14091
14092 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14093
14094         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14095         code.
14096
14097 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14098
14099         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14100
14101 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14102
14103         * gdbserver/linux-low.c: Remove unused include files.
14104
14105 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14106
14107         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14108         (read_inferior_memory): Use it.
14109         (write_inferior_memory): Likewise.
14110
14111 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14112
14113         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14114         grubbing through sys_errlist.
14115
14116 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14117
14118         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14119
14120 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14121         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14122
14123 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14124
14125         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14126         (do_sfunc, set_cmd_sfunc): New functions.
14127
14128         * command.h (struct cmd_list_element): Add field func.
14129         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14130         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14131         * cli/cli-decode.h: Ditto.
14132
14133         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14134         (help_all, help_cmd_list): Ditto.
14135         (find_cmd, complete_on_cmdlist): Ditto.
14136         * top.c (execute_command): Ditto.
14137
14138         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14139         function.sfunc.
14140
14141         * infcmd.c (notice_args_read): Fix function signature.
14142
14143         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14144         * cli/cli-decode.c (add_set_cmd): Ditto.
14145         * utils.c (initialize_utils): Ditto.
14146         * maint.c (_initialize_maint_cmds): Ditto.
14147         * infrun.c (_initialize_infrun): Ditto.
14148         * demangle.c (_initialize_demangler): Ditto.
14149         * remote.c (add_packet_config_cmd): Ditto.
14150         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14151         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14152         * proc-api.c (_initialize_proc_api): Ditto.
14153         * kod.c (_initialize_kod): Ditto.
14154         * valprint.c (_initialize_valprint): Ditto.
14155         * top.c (init_main): Ditto.
14156         * infcmd.c (_initialize_infcmd): Ditto.
14157         * corefile.c (_initialize_core): Ditto.
14158         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14159         * arch-utils.c (initialize_current_architecture): Ditto.
14160         (_initialize_gdbarch_utils): Ditto.
14161         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14162
14163         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14164         * wince.c (_initialize_inftarg): Ditto.
14165         * symfile.c (_initialize_symfile): Ditto.
14166         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14167         * language.c (_initialize_language): Ditto.
14168         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14169
14170 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14171
14172         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14173
14174 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14175
14176         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14177         Add rules for building the register data files.
14178
14179 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14180
14181         * regformats/regdat.sh: Add braces to the definition of
14182         expedite_regs_${arch}.
14183
14184 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14185
14186         * regformats/regdef.h (struct reg): Add comment describing the
14187         requirements for offset and size fields.
14188
14189 2002-02-04  Andreas Schwab  <schwab@suse.de>
14190
14191         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14192         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14193
14194 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14195
14196         * gdbarch.sh (copyright): Update years in generated header.
14197         (SMASH_TEXT_ADDRESS): Add rule.
14198         * gdbarch.h, gdbarch.c: Re-generate.
14199         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14200         * dbxread.c: Likewise.
14201         * dwarfread.c: Likewise.
14202         * elfread.c: Likewise.
14203         * somread.c: Likewise.
14204
14205         * arm-tdep.c (arm_smash_text_address): New function.
14206         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14207
14208 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14209
14210         Add support for hardware watchpoints on win32 native.
14211         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14212         CONTEXT_DEBUG_REGISTERS.
14213         (dr variable): New variable. Static array containing a local copy
14214         of debug registers.
14215         (debug_registers_changed): New variable.  Reflects when debug registers
14216         are changed and need to be written to inferior.
14217         (debug_registers_used): New variable. Reflects when any debug register
14218         was set, used when new threads are created.
14219         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14220         i386-nat code.
14221         (thread_rec): Set dr array if id is the thread of current_event .
14222         (child_continue, child_resume): Change the debug registers for all
14223         threads if debug_registers_changed.
14224         (child_add_thread): Change the debug registers if debug_registers_used.
14225         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14226         Link nm.h to new nm-cygwin.h file.
14227         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14228         of hardware registers.
14229
14230 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14231
14232         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14233         Restore behavour broken by 2002-01-20 Andrew Cagney
14234         <ac131313@redhat.com> IEEE_FLOAT removal.
14235
14236 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14237
14238         * c-valprint.c (c_val_print): Pass a proper valaddr to
14239         cp_print_class_method.
14240         * valops.c (search_struct_method): If there is only one method
14241         and args is NULL, return that method.
14242
14243 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14244
14245         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14246         accessing tag_name directly.
14247
14248 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14249
14250         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14251         of accessing tag_name directly.
14252
14253 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14254
14255         PR gdb/280
14256         * gdbtypes.c (replace_type): New function.
14257         * gdbtypes.h (replace_type): Add prototype.
14258         * stabsread.c (read_type): Use replace_type.
14259
14260 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14261
14262         * Makefile.in (memattr.o): Add missing dependencies rule.
14263
14264 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14265
14266         * breakpoint.c (break_at_finish_command): Really export.
14267         (break_at_finish_at_depth_command): Ditto.
14268         (tbreak_at_finish_command): Ditto.
14269         * hppa-tdep.c: Include completer.h.
14270         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14271         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14272
14273 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14274
14275         * utils.c (do_write): New function.
14276         (error_stream): Rewrite combining the code from error_begin and
14277         verror.
14278         (verror): Rewrite using error_stream.
14279         (error_begin): Delete function.
14280
14281 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14282
14283         * utils.c (error_begin): Make static.
14284         * defs.h (error_begin): Delete declaration.
14285
14286         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14287         (decode_line_1): Use cplusplus_error instead of error_begin,
14288         cplusplus_hint and return_to_top_level.
14289         * coffread.c (coff_symfile_read): Use error instead of error_begin
14290         and return_to_top_level.
14291         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14292
14293 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14294
14295         * language.h (type_error, range_error): Make string parameter
14296         constant.
14297         * language.c (warning_pre_print): Delete extern declaration.
14298         * dwarfread.c (warning_pre_print): Ditto.
14299         * language.c (type_error, range_error): Rewrite to use verror and
14300         vwarning instead of warning_begin.
14301
14302 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14303
14304         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14305         (set_ignore_count): Move misplaced comment back where it belongs.
14306
14307 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14308
14309         * command.h (NO_FUNCTION): Delete macro.
14310         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14311         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14312         * tracepoint.c (_initialize_tracepoint): Ditto.
14313         * cli/cli-decode.c (add_set_cmd): Ditto.
14314         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14315
14316 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14317
14318         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14319         Update ``this'' pointer when calling virtual functions.
14320
14321 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14322
14323         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14324         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14325
14326 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14327
14328         * regformats/reg-arm.dat: New file.
14329         * regformats/reg-i386.dat: New file.
14330         * regformats/reg-ia64.dat: New file.
14331         * regformats/reg-m68k.dat: New file.
14332         * regformats/reg-mips.dat: New file.
14333         * regformats/reg-ppc.dat: New file.
14334         * regformats/reg-sh.dat: New file.
14335         * regformats/regdef.h: New file.
14336         * regformats/regdat.sh: New file.
14337
14338 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14339
14340         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14341         (arm_frame_args_address, arm_frame_locals_address): New functions.
14342         (arm_frame_num_args): New function.
14343         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14344         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14345         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14346
14347 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14348
14349         * breakpoint.c (break_at_finish_command): Export.
14350         (break_at_finish_at_depth_command): Export.
14351         (tbreak_at_finish_command): Export.
14352         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14353         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14354         "txbreak" commands, which are HPPA specific.
14355
14356         * printcmd.c (disassemble_command): Remove an ancient
14357         artifact of an old merge.
14358
14359         * symfile.h (enum overlay_debugging_state):
14360         Define enum constant values for overlay mode.
14361         * symfile.c (overlay_debugging): Use enums instead of literals.
14362         (overlay_is_mapped, overlay_auto_command,
14363         overlay_manual_command): Ditto.
14364
14365         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14366         breakpoint_here_p, breakpoint_inserted_here_p,
14367         breakpoint_thread_match, bpstat_stop_status,
14368         describe_other_breakpoints, check_duplicates, clear_command):
14369         Coding standard fixes.
14370
14371         * target.c (target_xfer_memory): Add spaces, coding standard.
14372         (do_xfer_memory): Add missing line to trust-readonly
14373         code: check bfd SEC_READONLY flag for section.
14374
14375 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14376
14377         * PROBLEMS: Fix typo, 5.1->5.1.1.
14378
14379 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14380
14381         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14382         data symbols, since we search based on textlow and texthigh.
14383         (find_pc_sect_symtab): Likewise.
14384
14385 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14386
14387         * defs.h (vwarning): Declare.
14388         * utils.c (vwarning): New function.
14389         (warning): Call vwarning.
14390         (warning_begin): Delete function.
14391
14392         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14393         the warning message.
14394         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14395         warning_begin.
14396
14397 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14398
14399         * NEWS: Mention "set trust-readonly-sections" command.
14400         Mention generate-core-file command.
14401
14402 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14403
14404         * target.c: New command, "set trust-readonly-sections on".
14405         (do_xfer_memory): Honor the suggestion to trust readonly sections
14406         by reading them from the object file instead of from the target.
14407         (initialize_targets): Register command "set trust-readonly-sections".
14408
14409 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14410
14411         * parse.c (target_map_name_to_register): Simplify, search regs and
14412         pseudo-regs using a single loop.
14413
14414 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14415
14416         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14417
14418 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14419
14420         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14421         * config/i386/i386v42mp.mh: Add i387-nat.o .
14422         * i386v4-nat.c: Include i387-nat.h.
14423         (supply_fpregset): Use i387_supply_fsave.
14424         (fill_fpregset): Use i387_fill_fsave.
14425
14426 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14427
14428         * arm-tdep.c (arm_call_dummy_words): Define.
14429         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14430         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14431         (CALL_DUMMY_WORDS): Define.
14432         (arm_call_dummy_words): Declare.
14433         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14434         (arm_linux_call_dummy_words): Declare.
14435
14436 2002-01-30  Andreas Schwab  <schwab@suse.de>
14437
14438         * m68klinux-nat.c: Fix last change to use regcache_collect
14439         instead of referencing registers[] directly.
14440
14441 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14442
14443         * parse.c (target_map_name_to_register): Delete code wrapped in
14444         #ifdef REGISTER_NAME_ALIAS_HOOK.
14445
14446 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14447
14448         * regcache.c (legacy_read_register_gen): Need to be able to
14449         read pseudo-register as well as real register.
14450         (legacy_write_register_gen): Ditto.
14451
14452 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14453
14454         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14455         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14456         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14457         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14458         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14459         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14460         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14461         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14462         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14463         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14464         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14465         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14466         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14467         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14468         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14469         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14470         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14471         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14472         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14473         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14474
14475 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14476
14477         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14478         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14479         (initialize_current_architecture): Update target_byte_order using
14480         information from BFD.
14481         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14482         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14483
14484 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14485
14486         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14487         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14488
14489         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14490         #ifdef INVALID_FLOAT.
14491         * infcmd.c (do_registers_info): Ditto.
14492         * values.c (unpack_double): Ditto.  Add comment.
14493
14494         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14495         already commented out.
14496
14497 2002-01-26  Andreas Schwab  <schwab@suse.de>
14498
14499         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14500         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14501         registers and add support for PTRACE_GETREGS.
14502
14503 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14504
14505         GDB 5.1.1 released from 5.1 branch.
14506         * NEWS: Add 5.1.1 news.
14507         * README: Sync with 5.1 branch.
14508
14509 2002-01-23  Fred Fish  <fnf@redhat.com>
14510
14511         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14512         stabstring on initial malloc.  Reallocing will copy it for us,
14513         if necessary.
14514
14515 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14516
14517         * Makefile.in (hpread_h): Delete.
14518         (HFILES_NO_SRCDIR): Remove hpread.h.
14519         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14520         (hpread.o): Update dependencies.
14521         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14522
14523         * hp-psymtab-read.c: Remove file.
14524         * hp-symtab-read.c: Remove file.
14525         * hpread.h: Remove file.
14526
14527         * hpread.c: Merge all contents of hp-psymtab-read.c,
14528         hp-symtab-read.c and hpread.h into this file, as it was prior to
14529         January 1999.
14530
14531         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14532         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14533         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14534         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14535
14536 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14537
14538         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14539         fill_gregset): Call gdbarch_tdep() just once, assign result to
14540         variable and use that, instead of calling the function several
14541         times.
14542
14543 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14544
14545         * configure.host: Accept sparcv9 as alias for sparc64.
14546         * configure.tgt: Likewise.
14547
14548 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14549
14550         * solib-aix5.c (build_so_list_from_mapfile)
14551         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14552         arguments is not reversed.
14553         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14554         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14555
14556 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14557
14558         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14559         modified version of obsolete sh_fetch_pseudo_register.
14560         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14561         (sh4_register_read): New function.
14562         (sh_pseudo_register_write): New function. Renamed and modified
14563         version of obsolete sh_store_pseudo_register.
14564         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14565         (sh4_register_write): New function.
14566         (sh_gdbarch_init): Remove setting of gdbarch function
14567         fetch_pseudo_register and store_pseudo_register. Remove setting of
14568         register_convert_to_raw, register_convert_to_virtual,
14569         register_convertible.
14570         (sh_sh4_register_convertible): Delete. No longer needed. All is
14571         taken care by architecture specific functions
14572         register_read/register_write.
14573         (sh_sh4_register_convert_to_virtual): Make static.
14574         (sh_sh4_register_convert_to_raw): Ditto.
14575
14576 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14577
14578         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14579         (floatformat_is_nan, floatformat_mantissa): Ditto.
14580
14581         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14582         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14583         builtin_type_ieee_double_little,
14584         builtin_type_ieee_double_littlebyte_bigword,
14585         builtin_type_m68881_ext, builtin_type_i960_ext,
14586         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14587         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14588         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14589         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14590
14591 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14592
14593         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14594         parameter.  Set frameless flag if it exists and depended of
14595         whether the scanned function is frameless or not.
14596         (xstormy16_skip_prologue): If function is frameless, return
14597         result of xstormy16_scan_prologue().
14598         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14599         call.
14600
14601 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14602
14603         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14604         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14605         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14606         sh_sh4_register_byte, sh_sh4_register_raw_size,
14607         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14608         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14609         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14610         sh_store_pseudo_register, sh_do_pseudo_register): Call
14611         gdbarch_tdep() just once, assign result to variable and use that,
14612         instead of calling the function several times.
14613
14614 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14615
14616         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14617         macros instead of LAST_FPU_CTRL_REGNUM.
14618         (store_register): Likewise.
14619
14620 2002-01-21  Jim Blandy  <jimb@redhat.com>
14621
14622         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14623         is up-to-date before running the program, not just when a program
14624         exits.
14625
14626 2002-01-21  Fred Fish  <fnf@redhat.com>
14627
14628         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14629         when we have found all instructions we are looking for.
14630
14631 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14632
14633         * arm-tdep.c (arm_register_name): New function.
14634         (arm_registers_names): Make static.
14635         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14636         (arm_register_name): Declare.
14637         (REGISTER_NAME): Use it.
14638
14639 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14640             Kevin Buettner  <kevinb@redhat.com>
14641
14642         Convert arm targets to new FRAME interface.
14643         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14644         (arm_frame_find_save_regs): Delete.
14645         (arm_frame_init_saved_regs): New.
14646         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14647         Allocate extra_info as required.  Convert all uses of fsr.regs
14648         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14649         to use extra_info.
14650         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14651         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14652         (check_prologue_cache, save_prologue_cache): Likewise.
14653         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14654         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14655         (FRAME_FIND_SAVED_REGS): Delete.
14656         (arm_frame_find_saved_regs): Delete prototype.
14657         (arm_frame_init_saved_regs): New prototype.
14658         (FRAME_INIT_SAVED_REGS): Define.
14659
14660 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14661
14662         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14663
14664 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14665
14666         From Jeff Law <law@redhat.com>:
14667         * infttrace.c: Include <sys/pstat.h>.
14668         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14669         exec file if the ttrace equivalent fails.
14670
14671 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14672
14673         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14674         (closeLogFile): Ditto.
14675
14676 2002-01-20  Michael Chastain  <mec@shout.net>
14677
14678         * top.c (print_gdb_version): Bump copyright year to 2002.
14679
14680 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14681
14682         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14683         Zannoni and Eli Zaretskii.
14684
14685 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14686
14687         * buildsym.c: Update copyright years.
14688         * c-typeprint.c: Likewise.
14689         * dwarf2read.c: Likewise.
14690         * f-typeprint.c: Likewise.
14691         * gdbtypes.c: Likewise.
14692         * gdbtypes.h: Likewise.
14693         * hp-symtab-read.c: Likewise.
14694         * hpread.c: Likewise.
14695         * mdebugread.c: Likewise.
14696         * p-typeprint.c: Likewise.
14697
14698 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14699
14700         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14701         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14702         byte-order selectable.
14703         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14704         * arch-utils.c: Ditto.
14705         (set_endian): Ditto.
14706         (set_endian_from_file): Ditto.
14707         * gdbserver/low-sim.c (create_inferior): Ditto.
14708         * gdbarch.sh: Ditto.
14709         * gdbarch.h: Re-generate.
14710         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14711         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14712         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14713         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14714         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14715         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14716         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14717         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14718         macro definition.
14719         * config/mips/tm-wince.h: Remove #undef of macro
14720         TARGET_BYTE_ORDER_SELECTABLE.
14721         * config/sh/tm-wince.h: Ditto.
14722
14723 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14724
14725         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14726         member function fields.  Add accessor macro
14727         TYPE_FN_FIELD_ARTIFICIAL.
14728         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14729         * c-typeprint.c (c_type_print_base): Skip artificial member
14730         functions.
14731
14732 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14733
14734         * f-typeprint.c: Delete unused function f_type_print_args.
14735         * p-typeprint.c: Delete unused function pascal_type_print_args.
14736
14737 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14738
14739         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14740         comment.  Add ``artificial'' to ``union field_location''.
14741
14742         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14743
14744         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14745         * mdebugread.c (parse_symbol): Likewise.
14746         * stabsread.c (define_symbol): Likewise.
14747         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14748         initializing TYPE_FIELD_BITPOS to n (obsolete).
14749         (hpread_doc_function_type): Likewise.
14750         * hpread.c (hpread_function_type): Likewise.
14751
14752 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14753
14754         * configure.in (host_makefile_frag): Only require a host makefile
14755         fragment when a native build.
14756         * configure: Re-generate.
14757
14758 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14759
14760         * doublest.h (floatformat_from_type): Declare.
14761         * doublest.c (floatformat_from_type): New function.
14762         (convert_typed_floating): Use.
14763
14764         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14765         call to function floatformat_from_type.
14766
14767         * gdbarch.sh (IEEE_FLOAT): Delete.
14768         * gdbarch.h, gdbarch.c: Re-generate.
14769         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14770         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14771         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14772         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14773         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14774         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14775         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14776         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14777         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14778         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14779         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14780         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14781
14782         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14783         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14784         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14785         * sh-tdep.c (sh_gdbarch_init): Ditto.
14786         * mips-tdep.c (mips_gdbarch_init): Ditto.
14787         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14788         * cris-tdep.c (cris_gdbarch_init): Ditto.
14789
14790 2002-01-20  Jiri Smid  <smid@suse.cz>
14791
14792         * configure.host, configure.tgt: Support x86-64.
14793         * NEWS: Note new target x86-64.
14794
14795         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14796         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14797         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14798         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14799         x86-64-linux-nat.o): Fix dependencies.
14800
14801 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14802
14803         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14804         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14805         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14806         * config/sparc/xm-sun4os4.h: Delete file.
14807         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14808
14809 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14810
14811         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14812         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14813         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14814         * config/i386/i386lynx.mh (XM_FILE): Delete.
14815         * config/rs6000/xm-rs6000ly.h: Delete file.
14816         * config/sparc/xm-sparclynx.h: Delete file.
14817         * config/m68k/xm-m68klynx.h: Delete file.
14818         * config/i386/xm-i386lynx.h: Delete file.
14819         * config/xm-lynx.h: Delete file.
14820         * config/djgpp/fnchange.lst: Update.
14821
14822 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14823
14824         * alpha-tdep.c (alpha_register_byte): New function.
14825         (alpha_register_raw_size): Ditto.
14826         (alpha_register_virtual_size): Ditto.
14827         (alpha_skip_prologue_internal): Renamed from
14828         alpha_skip_prologue.
14829         (alpha_skip_prologue): New version that calls
14830         alpha_skip_prologue_internal.
14831         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14832         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14833         second argument from alpha_skip_prologue.
14834         (REGISTER_BYTE): Use alpha_register_byte.
14835         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14836         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14837         (FRAMELESS_FUNCTION_INVOCATION): Use
14838         generic_frameless_function_invocation_not.
14839         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14840         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14841
14842 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14843
14844         * config/mips/xm-news-mips.h: Delete file.
14845         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14846
14847         * config/m88k/xm-m88k.h: Delete file.
14848         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14849         * config/m88k/xm-delta88v4.h: Ditto.
14850         * config/m88k/xm-delta88.h: Ditto.
14851
14852         * config/alpha/xm-fbsd.h: Delete file.
14853         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14854
14855         * config/sparc/xm-sparc.h: Delete file.
14856         * Makefile.in (xm-sun4os4.h): Delete dependency.
14857         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14858         * config/sparc/xm-sun4os4.h: Ditto.
14859         * config/sparc/xm-linux.h: Ditto.
14860
14861         * config/i386/xm-windows.h: Delete file.
14862
14863 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14864
14865         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14866         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14867
14868 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14869
14870         * alpha-tdep.c (alpha_call_dummy_words): New.
14871         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14872         (CALL_DUMMY_P): Define.
14873         (CALL_DUMMY_WORDS): Define.
14874         (SIZEOF_CALL_DUMMY_WORDS): Define.
14875
14876 2002-01-19  Per Bothner  <per@bothner.com>
14877
14878         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14879         isn't NULL, which can happen with some gcj-3.x-produced code.
14880
14881 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14882
14883         * alpha-tdep.c (alpha_register_virtual_type): New function.
14884         (alpha_init_frame_pc_first): Ditto.
14885         (alpha_fix_call_dummy): Ditto.
14886         (alpha_store_struct_return): Ditto.
14887         (alpha_extract_struct_value_address): Ditto.
14888         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14889         alpha_register_virtual_type.
14890         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14891         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14892         alpha_extract_struct_value_address.
14893         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14894         (INIT_FRAME_PC): Use init_frame_pc_noop.
14895         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14896
14897 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14898
14899         * i386gnu-nat.c: Include "i386-tdep.h".
14900         (fetch_fpregs): Simplify code dealing with uninitialized floating
14901         point states such that it doesn't require FP7_REGNUM.
14902
14903 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14904
14905         * alpha-tdep.c (frame_extra_info): New.
14906         (alpha_find_saved_regs): Make static.  Use
14907         frame->extra_info.
14908         (alpha_frame_init_saved_regs): New function.
14909         (alpha_frame_saved_pc): Use frame->extra_info.
14910         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14911         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14912         (init_extra_frame_info): Rename to...
14913         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14914         (alpha_print_extra_frame_info): New function.
14915         (alpha_frame_locals_address): Ditto.
14916         (alpha_frame_args_address): Ditto.
14917         (alpha_pop_frame): Use frame->extra_info.
14918         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14919         alpha_frame_args_address.
14920         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14921         (alpha_find_saved_regs): Remove prototype.
14922         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14923         (EXTRA_FRAME_INFO): Remove.
14924         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14925         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14926
14927 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14928
14929         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14930         (alpha_cannot_fetch_register): Ditto.
14931         (alpha_cannot_store_register): Ditto.
14932         (alpha_register_convertible): Ditto.
14933         (alpha_use_struct_convention): Ditto.
14934         * config/alpha/tm-alpha.h: Update copyright years.
14935         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14936         (INNER_THAN): Use core_addr_lessthan.
14937         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14938         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14939         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14940         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14941         (FRAME_CHAIN): Remove unnecessary cast.
14942
14943 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14944
14945         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14946         obsolete.
14947
14948 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14949
14950         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14951         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14952         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14953         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14954         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14955         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14956         * x86-64-linux-nat.c: Ditto.
14957
14958 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14959
14960         * alpha-tdep.c (alpha_register_name): New function.
14961         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14962         (REGISTER_NAME): Define.
14963
14964 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14965
14966         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14967
14968 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14969
14970         * alpha-tdep.c: Update copyright years.
14971         (alpha_next_pc): New function.
14972         (alpha_software_single_step): Ditto.
14973         * config/alpha/tm-alpha.h: Add prototype for
14974         alpha_software_single_step.
14975
14976 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14977
14978         * alphabsd-nat.c: Update copyright years.
14979         (fill_gregset): Use regcache_collect.
14980         (fill_fpregset): Likewise.
14981         (fetch_inferior_registers): Only fetch integer registers
14982         if requested to do so.
14983         (store_inferior_registers): Only store integer registers
14984         if requested to do so.
14985
14986 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14987
14988         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14989         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14990         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14991         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14992         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14993         * config/arm/linux.mh (XDEPFILES): Delete.
14994         * config/arm/nbsd.mh (XDEPFILES): Delete.
14995         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14996         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14997         * config/i386/i386m3.mh (XDEPFILES): Delete.
14998         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14999         * config/i386/i386gnu.mh (XDEPFILES): Delete.
15000         * config/i386/fbsd.mh (XDEPFILES): Delete.
15001         * config/i386/i386bsd.mh (XDEPFILES): Delete.
15002         * config/i386/i386sco5.mh (XDEPFILES): Delete.
15003         * config/i386/i386v4.mh (XDEPFILES): Delete.
15004         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15005         * config/i386/i386sco4.mh (XDEPFILES): Delete.
15006         * config/i386/i386aix.mh (XDEPFILES): Delete.
15007         * config/i386/go32.mh (XDEPFILES): Delete.
15008         * config/i386/cygwin.mh (XDEPFILES): Delete.
15009         * config/i386/i386lynx.mh (XDEPFILES): Delete.
15010         * config/i386/i386mach.mh (XDEPFILES): Delete.
15011         * config/i386/i386v32.mh (XDEPFILES): Delete.
15012         * config/i386/linux.mh (XDEPFILES): Delete.
15013         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15014         * config/i386/ncr3000.mh (XDEPFILES): Delete.
15015         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15016         * config/i386/i386sco.mh (XDEPFILES): Delete.
15017         * config/i386/i386v.mh (XDEPFILES): Delete.
15018         * config/i386/nbsd.mh (XDEPFILES): Delete.
15019         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15020         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15021         * config/i386/symmetry.mh (XDEPFILES): Delete.
15022         * config/i386/obsd.mh (XDEPFILES): Delete.
15023         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15024         * config/ia64/linux.mh (XDEPFILES): Delete.
15025         * config/ia64/aix.mh (XDEPFILES): Delete.
15026         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15027         * config/m68k/dpx2.mh (XDEPFILES): Delete.
15028         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15029         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15030         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15031         * config/m68k/linux.mh (XDEPFILES): Delete.
15032         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15033         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15034         * config/m68k/nbsd.mh (XDEPFILES): Delete.
15035         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15036         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15037         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15038         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15039         * config/m88k/delta88.mh (XDEPFILES): Delete.
15040         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15041         * config/m88k/m88k.mh (XDEPFILES): Delete.
15042         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15043         * config/mips/linux.mh (XDEPFILES): Delete.
15044         * config/mips/irix6.mh (XDEPFILES): Delete.
15045         * config/mips/irix5.mh (XDEPFILES): Delete.
15046         * config/mips/irix4.mh (XDEPFILES): Delete.
15047         * config/mips/irix3.mh (XDEPFILES): Delete.
15048         * config/mips/decstation.mh (XDEPFILES): Delete.
15049         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15050         (NATDEPFILES): Move core-aout.o to here.
15051         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15052         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15053         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15054         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15055         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15056         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15057         * config/pa/hpux11.mh (XDEPFILES): Delete.
15058         * config/powerpc/aix.mh (XDEPFILES): Delete.
15059         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15060         * config/powerpc/linux.mh (XDEPFILES): Delete.
15061         * config/romp/rtbsd.mh: Rename XDEPFILES.
15062         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15063         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15064         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15065         * config/s390/s390.mh (XDEPFILES): Delete.
15066         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15067         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15068         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15069         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15070         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15071         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15072         * config/sparc/linux.mh (XDEPFILES): Delete.
15073         * config/vax/vaxult.mh (XDEPFILES): Delete.
15074         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15075         * Makefile.in (DEPFILES): Remove XDEPFILES.
15076
15077 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15078
15079         * utils.c (internal_verror): Fix comments, default is yes not no.
15080         Update queries to match.  Default to quit and dump core.
15081
15082 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15083
15084         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15085         copyright.
15086         * defs.h, event-top.c, gdbcmd.h: Ditto.
15087         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15088         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15089         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15090         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15091         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15092         * mi/mi-main.c:Ditto.
15093
15094         * stack.c, symfile.c: Update copyright.
15095
15096 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15097
15098         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15099         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15100         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15101         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15102
15103 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15104
15105         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15106         * gdbserver/low-lynx.c (myattach): Likewise.
15107         * gdbserver/low-nbsd.c (myattach): Likewise.
15108         * gdbserver/low-sim.c (myattach): Likewise.
15109         * gdbserver/low-sparc.c (myattach): Likewise.
15110         * gdbserver/low-sun3.c (myattach): Likewise.
15111
15112         * gdbserver/low-linux.c (myattach): New function.
15113
15114         * gdbserver/server.c (attach_inferior): New function.
15115         (main): Handle "--attach".
15116
15117 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15118
15119         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15120         maintainer.
15121
15122 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15123
15124         * c-typeprint.c (is_type_conversion_operator): Add additional
15125         check for non-conversion operators.
15126
15127 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15128
15129         * linux-proc.c: Add "info proc" command, a la procfs.c.
15130         (read_mapping): New function, abstract and re-use code.
15131         (linux_find_memory_regions): Use new func read_mapping.
15132         (linux_info_proc_cmd): New function, implement "info proc".
15133         (_initialize_linux_proc): Add new command "info proc".
15134
15135 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15136
15137         * symfile.c (generic_load): Use bfd_map_over_sections method
15138         instead of manipulating bfd structure members directly.
15139         (add_section_size_callback): New function, bfd sections callback
15140         used by generic_load.
15141         (load_sections_callback): New function, bfd sections callback
15142         used by generic_load.
15143
15144 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15145
15146         [Based on work by Jim Blandy]
15147         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15148         (builtin_type_vec128): Export.
15149         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15150         types.
15151         (builtin_type_vec128): New builtin type for 128 bit vector
15152         registers.
15153         (build_gdbtypes): Initialize builtin_type_v16qi and
15154         builtin_type_v8hi. Create the vec128 register builtin type
15155         structure.
15156         (build_builtin_type_vec128): New function.
15157         (_initialize_gdbtypes): Register builtin_type_v16qi and
15158         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15159         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15160         AltiVec register to new builtin type.
15161
15162 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15163
15164         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15165         to make_cv_type.
15166
15167 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15168
15169         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15170         CLEAN_UP_REGISTER_VALUE.
15171         * regcache.c (supply_register): Update only call.
15172
15173 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15174
15175         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15176         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15177         a29k-*-vxworks* targets as obsolete.
15178
15179 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15180
15181         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15182         until we can resolve portability issues.
15183         * gregset.h: Remove references to fpxregs.
15184         * gcore.c (gcore_command): Initialize note_sec to NULL.
15185
15186 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15187
15188         * signals.c (target_signal_to_name): Rewrite.  Only use
15189         signals[].name when in bounds and non-NULL.
15190
15191 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15192
15193         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15194         * signals.c (target_signal_to_name): Verify that SIG is within the
15195         bounds of the signals array.
15196
15197 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15198
15199         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15200
15201 2002-01-13  Keith Seitz  <keiths@redhat.com>
15202
15203         * stack.c (print_frame_info_base): Print the frame's pc
15204         only if when print_frame_info_listing_hook is not defined.
15205
15206 2002-01-13  Keith Seitz  <keiths@redhat.com>
15207
15208         * varobj.c (varobj_set_value): Make sure that there were no
15209         errors evaluating the object before attempting to set its
15210         value.
15211         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15212         so this offset adjustment is no longer necessary.
15213         (create_child): Don't set the error flag if the child is
15214         a CPLUS_FAKE_CHILD.
15215         (value_of_child): If value_fetch_lazy fails, return NULL
15216         so that callers will be notified that an error occurred.
15217         (c_value_of_variable): Delay check of variable's validity
15218         until later. We actually want all structs and unions to have
15219         the value "{...}".
15220         Do not return "???" for variables which could not be evaluated.
15221         This error condition must be returned to the caller so that it
15222         can get the error condition from gdb.
15223         (cplus_name_of_child): Adjust index for vptr before figuring
15224         out the name of the child.
15225         (cplus_value_of_child): If a child's (real) parent is not valid,
15226         don't even bother trying to give a value for it. Just return
15227         an error. Change all instances in this function.
15228         (cplus_type_of_child): If our parent is one of the "fake"
15229         parents, we need to get at the type of the real parent, and
15230         derive the child's true type using this information.
15231
15232 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15233
15234         From 2002-01-09 John Marshall <johnm@falch.net>:
15235         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15236         sources.redhat.com, and tweak some related URLs which had
15237         suffered from linkrot.
15238
15239 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15240
15241         From Jeff law:
15242         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15243         structures passed in registers.
15244
15245 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15246
15247         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15248         white space which prevented compilation.  Reported by DSK
15249         <dsk@student.unsw.edu.au>.
15250
15251 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15252
15253         * symfile.c (build_section_addr_info_from_section_tab):
15254         Use bfd access method instead of manipulating bfd directly.
15255         (syms_from_objfile): Ditto.
15256         (simple_overlay_update_1): Ditto.
15257         (simple_overlay_update): Ditto.
15258         (generic_load): Ditto.
15259         (overlay_unmapped_address): FIXME comment, bfd access methods.
15260         (sections_overlap): FIXME comment, bfd access methods.
15261         (pc_in_mapped_range): FIXME comment, bfd access methods.
15262         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15263         (section_is_mapped): FIXME comment, bfd access methods.
15264         (section_is_overlay): FIXME comment, bfd access methods.
15265
15266         * symfile.c (generic_load): Whitespace and long line cleanups.
15267         Remove duplicate variable, change several local variables to
15268         more appropriate data types.
15269         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15270
15271 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15272
15273         From Peter Schauer:
15274         * language.c (longest_local_hex_string_custom): Use phex_nz to
15275         convert NUM to a hex string.
15276
15277 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15278
15279         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15280         the function.
15281         Update Copyright year.
15282
15283 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15284
15285         * language.c (longest_raw_hex_string): Delete unused function.
15286
15287 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15288
15289         * MAINTAINERS (write-after-approval): Add myself.
15290         * dwarf2read.c (read_tag_string_type): Handling of
15291         DW_AT_byte_size.
15292         (read_tag_string_type): FORTRAN fix to prevent propagation of
15293         first string size.
15294         (set_cu_language): Handling of DW_LANG_Fortran95
15295
15296 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15297
15298         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15299         GETPID(inferior_ptid).
15300         (store_inferior_registers): Likewise.
15301
15302 2002-01-10  Jason Merrill  <jason@redhat.com>
15303
15304         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15305         Fix DW_OP_minus.
15306
15307 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15308
15309         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15310         and bfd/elf32-sh-nbsd.c.
15311
15312 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15313
15314         * NEWS: Mention --pid and corefile/proc-id behavior change.
15315
15316         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15317         * gcore.c: Include cli/cli-decode.h instead of command.h.
15318
15319         * main.c (captured_main): Add new command line option "--pid".
15320         If the second command line argument (following the symbol-file)
15321         begins with a digit, try to attach to it before trying to open
15322         it as a corefile.
15323         (print_gdb_help): Document the "--pid" argument.
15324
15325 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15326
15327         * completer.c (command_completer): New function.
15328
15329         * completer.h <command_completer>: Add prototype.
15330
15331         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15332         completer for the "help" command.
15333
15334 2002-01-09  Jason Merrill  <jason@redhat.com>
15335
15336         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15337
15338 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15339
15340         * i386-linux-nat.c (fill_fpxregset): Make global.
15341         (store_fpxregset): Ditto.
15342
15343         * gregset.h (gdb_fpxregset_t): Define.
15344         (supply_fpxregset): Prototype.
15345         (fill_fpxregset): Prototype.
15346
15347         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15348
15349 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15350
15351         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15352         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15353         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15354
15355 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15356
15357         * MAINTAINERS: Update target maintainer rules so that any
15358         Maintainer can approve a tested patch for a maintenance-only
15359         target.
15360
15361 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15362
15363         * MAINTAINERS (write-after-approval): Add myself.
15364
15365         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15366         IN_SIGTRAMP.
15367
15368 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15369
15370         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15371         real name of the executable, rather than the /proc name.
15372
15373 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15374
15375         Implement a "generate-core-file" command in gdb, save target state.
15376         * gcore.c: New file.  Implement new command 'generate-core-file'.
15377         Save a corefile image of the current state of the inferior.
15378         * linux-proc.c: Add linux-specific code for saving corefiles.
15379         * target.h (struct target_ops): Add new target vectors for saving
15380         corefiles; to_find_memory_regions and to_make_corefile_notes.
15381         (target_find_memory_regions): New macro.
15382         (target_make_corefile_notes): New macro.
15383         * target.c (update_current_target): Inherit new target methods.
15384         (dummy_find_memory_regions): New place-holder method.
15385         (dummy_make_corefile_notes): New place-holder method.
15386         (init_dummy_target): Initialize new dummy target vectors.
15387         * exec.c (exec_set_find_memory_regions): New function.
15388         Allow the exec_ops vector for memory regions to be taken over.
15389         (exec_make_note_section): New function, target vector method.
15390         * defs.h (exec_set_find_memory_regions): Export prototype.
15391         * procfs.c (proc_find_memory_regions): New function, corefile method.
15392         (procfs_make_note_section): New function, corefile method.
15393         (init_procfs_ops): Set new target vector pointers.
15394         (find_memory_regions_callback): New function.
15395         (procfs_do_thread_registers): New function.
15396         (procfs_corefile_thread_callback): New function.
15397         * sol-thread.c (sol_find_memory_regions): New function.
15398         (sol_make_note_section): New function.
15399         (init_sol_thread_ops): Initialize new target vectors.
15400         * inftarg.c (inftarg_set_find_memory_regions): New function.
15401         Allow to_find_memory_regions vector to be taken over.
15402         (inftarg_set_make_corefile_notes): New function.
15403         Allow to_make_corefile_notes vector to be taken over.
15404         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15405         interface layer if not target_has_execution (may be a corefile).
15406         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15407         * config/sparc/sun4sol2.mh: Ditto.
15408         * config/alpha/alpha-linux.mh: Ditto.
15409         * config/arm/linux.mh: Ditto.
15410         * config/i386/x86-64linux.mh: Ditto.
15411         * config/ia64/linux.mh: Ditto.
15412         * config/m68k/linux.mh: Ditto.
15413         * config/mips/linux.mh: Ditto.
15414         * config/powerpc/linux.mh: Ditto.
15415         * config/sparc/linux.mh: Ditto.
15416
15417 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15418
15419         * arm-linux-nat.c: Remove references to regcache.c internal data
15420         (registers[] and register_valid[]).
15421
15422 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15423
15424         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15425         so that attaching to a pid will automatically read the process's
15426         symbol file and shlibs.
15427         * Makefile.in: Add rule for linux-proc.o.
15428         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15429         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15430         * config/arm/linux.mh: Ditto.
15431         * config/i386/linux.mh: Ditto.
15432         * config/i386/x86-64linux.mh: Ditto.
15433         * config/ia64/linux.mh: Ditto.
15434         * config/m68k/linux.mh: Ditto.
15435         * config/mips/linux.mh: Ditto.
15436         * config/powerpc/linux.mh: Ditto.
15437         * config/sparc/linux.mh: Ditto.
15438
15439 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15440
15441         * win32-nat.c: Add i386-tdep.h dependency.
15442
15443 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15444
15445         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15446         instead of bfd_get_arch_size.  Don't bail out just because
15447         there's no exec_bfd.
15448
15449         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15450         * p-valprint.c (pascal_object_print_value): Ditto.
15451         * somread.c (som_symtab_read): Ditto.
15452         * symfile.c (simple_free_overlay_region_table): Ditto.
15453         * valops.c (value_assign): Ditto.
15454
15455         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15456         use tilde_expand and strerror for opening save-tracepoints file.
15457
15458         * thread-db.c (thread_db_new_objfile): Indendation fix.
15459
15460         * infptrace.c (GDB_MAX_ALLOCA): New define.
15461         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15462         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15463         can be overridden with whatever value is appropriate to the host).
15464         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15465         alloca to allocate potentially large buffer.
15466         * rs6000-nat.c (child_xfer_memory): Ditto.
15467         * symm-nat.c (child_xfer_memory): Ditto.
15468         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15469
15470 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15471
15472         From Nick Clifton  <nickc@redhat.com>
15473         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15474
15475 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15476
15477         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15478         Don't use exec_bfd if it's NULL.
15479
15480 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15481
15482         * valops.c (value_arg_coerce): Fix formatting.
15483
15484 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15485
15486         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15487         * gnu-nat.c: Ditto.
15488
15489 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15490
15491         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15492         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15493         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15494         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15495         z8k-coff have not been multi-arched.  Update z8k-coff build
15496         status.
15497
15498 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15499
15500         * MAINTAINERS: Mark a29k target as obsolete.
15501         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15502         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15503         comments.
15504         * NEWS: Note that a29k targets are obsolete.
15505         * a29k-tdep.c: Mark as obsolete.
15506         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15507         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15508         a29k-*-vxworks* targets as obsolete.
15509         * remote-adapt.c: Obsolete.
15510         * remote-eb.c: Obsolete.
15511         * remote-mm.c: Obsolete.
15512         * remote-udi.c: Obsolete.
15513         * config/a29k/a29k-udi.mt: Obsolete.
15514         * config/a29k/a29k.mt: Obsolete.
15515         * config/a29k/tm-a29k.h: Obsolete.
15516         * config/a29k/tm-vx29k.h: Obsolete.
15517         * config/a29k/vx29k.mt: Obsolete.
15518
15519 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15520
15521         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15522         with BFD_ENDIAN_BIG.
15523
15524 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15525
15526         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15527         * configure, config.in: Re-generate.
15528         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15529         * defs.h: Do not include <endian.h>.
15530
15531 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15532
15533         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15534         * config.in: Regenerate.
15535         * configure.in: Update copyright years.
15536         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15537         * configure: Regenerate.
15538         * i386bsd-nat.c: Update copyright years.
15539         (fill_gregset): Use regcache_collect.
15540         (fetch_inferior_registers): Only fetch integer registers
15541         if requested to do so.  Add support for XMM registers
15542         using PT_GETXMMREGS.
15543         (store_inferior_registers): Only store integer registers
15544         if requested to do so.  Add support for XMM registers
15545         using PT_SETXMMREGS.
15546         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15547         (store_inferior_registers): Remove.
15548         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15549         (fetch_elfcore_registers): New function.
15550         (i386nbsd_elfcore_fns): New.
15551         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15552         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15553         i386bsd-nat.o.
15554         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15555         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15556         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15557         * config/i386/tm-nbsd.h: Update copyright years.
15558         (HAVE_SSE_REGS): Define.
15559         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15560         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15561         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15562         (SIGCONTEXT_PC_OFFSET): Remove.
15563         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15564
15565 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15566
15567         * configure.tgt: Remove powerpc-*-macos* target.
15568         * config/m68k/xm-mpw.h: Delete file.
15569         * config/xm-mpw.h: Delete file.
15570         * ser-mac.c: Delete file.
15571         * mpw-make.sed: Delete file.
15572         * mpw-config.in: Delete file.
15573         * mac-xdep.c: Delete file.
15574         * mac-gdb.r: Delete file.
15575         * mac-defs.h: Delete file.
15576         * mac-nat.c: Delete file.
15577         * config/powerpc/macos.mh: Delete file.
15578         * config/powerpc/macos.mt: Delete file.
15579         * config/powerpc/nm-macos.h: Delete file.
15580         * config/powerpc/tm-macos.h: Delete file.
15581         * source.c (openp, open_source_file): Remove obsolete code.
15582         * top.c (gdb_readline): Ditto.
15583         * utils.c (query): Ditto.
15584         * event-top.c (display_gdb_prompt): Ditto.
15585         * Makefile.in (ser-mac.o): Delete obsolete target.
15586         * NEWS: Update.
15587
15588 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15589
15590         * defs.h (BIG_ENDIAN): Delete macro definition.
15591         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15592         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15593         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15594         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15595         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15596         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15597         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15598         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15599         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15600         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15601         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15602         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15603         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15604         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15605         * gdbarch.c: Re-generate.
15606
15607 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15608
15609         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15610         for core files.
15611
15612 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15613
15614         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15615
15616 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15617
15618         * value.h (value_ptr): Delete typedef.
15619
15620 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15621
15622         * i386nbsd-nat.c: Update copyright years.
15623         Include i386-tdep.h.
15624
15625 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15626
15627         * stabsread.c: Update copyright years.
15628
15629         From Debashis Mahata <debashis.mahata@wipro.com>:
15630         (read_struct_fields): Deal with Sun C compiler erroneous stab
15631         output for structs and unions.
15632         Fix PR gdb/269.
15633
15634 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15635
15636         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15637         prototype.
15638
15639 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15640
15641         * cp-abi.c: Fix whitespace.
15642         (baseclass_offset): New wrapper function.
15643         * cp-abi.h (baseclass_offset): Add prototype.
15644         (struct cp_abi_ops): Add baseclass_offset pointer.
15645
15646         * valops.c (vb_match): Move to...
15647         * gnu-v2-abi.c (vb_match): here.
15648         * valops.c (baseclass_offset): Move to...
15649         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15650
15651         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15652
15653         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15654         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15655         * hpacc-abi.c (init_hpacc_ops): Likewise.
15656
15657 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15658
15659         * valops.c (find_overload_match): Accept obj as a
15660         reference parameter.  Update it before returning.
15661         * value.h (find_overload_match): Update prototype.
15662         * eval.c (evaluate_subexp_standard): Pass object to
15663         find_overload_match by reference.
15664
15665 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15666
15667         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15668         register attribute from value declarations.
15669         * valops.c: Ditto.
15670         * value.h: Ditto.
15671         * scm-lang.c (scm_lookup_name): Ditto.
15672
15673 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15674
15675         Abstract the functionality of iterating over mapped memory
15676         regions into a general purpose iterator function.
15677         * procfs.c (iterate_over_mappings): New function, general purpose
15678         iterator for memory sections.
15679         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15680         (solib_mappings_callback): New function, callback for above.
15681         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15682         (info_mappings_callback): New function, callback for above.
15683
15684         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15685
15686 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15687
15688         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15689         * i386-tdep.c: Include "elf-bfd.h".
15690         (process_note_abi_tag_sections): New function.
15691         (i386_gdbarch_init): Add code to recognize various OS/ABI
15692         combinations.
15693
15694         * maint.c (_initialize_maint_cmds): Add missing \ in
15695         string-literal.
15696
15697 For older changes see ChangeLog-2001
15698 \f
15699 Local Variables:
15700 mode: change-log
15701 left-margin: 8
15702 fill-column: 74
15703 version-control: never
15704 End: