2003-01-08 Andrew Cagney <ac131313@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
2
3         * gdb_mbuild.sh: Edit the output of `maint print architecture'
4         replacing hex constants with function names and stripping leading
5         file name directory prefixes.
6
7 2003-01-08  Andrew Cagney  <cagney@redhat.com>
8
9         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10         get_frame_base.
11
12 2003-01-08  David Carlton  <carlton@math.stanford.edu>
13
14         * linespec.c (decode_line_1): Move code into decode_variable.
15         (decode_variable): New function.
16
17 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
18
19         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
20
21 2003-01-08  Andrew Cagney  <cagney@redhat.com>
22
23         * cris-tdep.c (cris_frame_init_saved_regs): Use
24         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
25         saved_regs buffer.
26         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
27         (sh64_nofp_frame_init_saved_regs): Ditto.
28         (sh_fp_frame_init_saved_regs): Ditto.
29         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
30         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
31         * mcore-tdep.c (analyze_dummy_frame): Ditto.
32         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
33
34 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
35
36         * minsyms.c (lookup_minimal_symbol): Update comment.
37         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
38         (lookup_minimal_symbol_solib_trampoline): Likewise.
39
40 2003-01-08  Andrew Cagney  <cagney@redhat.com>
41
42         * d10v-tdep.c (d10v_init_extra_frame_info): Use
43         frame_relative_level.
44
45         * alpha-tdep.c: Use get_frame_extra_info.
46         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
47         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
48         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
49         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
50
51         * alpha-tdep.c: Use get_next_frame.
52         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
53         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
54         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
55         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
56         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
57         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
58         * xstormy16-tdep.c: Ditto.
59         
60 2003-01-07  Andrew Cagney  <cagney@redhat.com>
61
62         * alpha-tdep.c: Use get_frame_base.
63         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
64         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
65         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
66         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
67         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
68         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
69         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
70         * config/sparc/tm-sparc.h: Ditto.
71         
72 2003-01-07  Andrew Cagney  <cagney@redhat.com>
73
74         * frame.c (deprecated_get_frame_context): New function.
75         (deprecated_set_frame_context): New function.
76         * frame.h (deprecated_get_frame_context): Declare.
77         (deprecated_set_frame_context): Declare.
78         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
79         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
80         
81 2003-01-07  Andrew Cagney  <cagney@redhat.com>
82
83         * frame.c (deprecated_set_frame_next_hack): New function.
84         (deprecated_set_frame_prev_hack): New function.
85         * frame.h (deprecated_set_frame_next_hack): Declare.
86         (deprecated_set_frame_prev_hack): Declare.
87         * mcore-tdep.c (analyze_dummy_frame): Use
88         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
89         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
90
91 2003-01-07  David Carlton  <carlton@math.stanford.edu>
92
93         * linespec.c (decode_line_1): Move code into decode_dollar.
94         (decode_dollar): New function.
95
96 2003-01-07  Andrew Cagney  <cagney@redhat.com>
97
98         * arm-tdep.c (arm_init_extra_frame_info): Use
99         deprecated_update_frame_base_hack.
100         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
101         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
102         (fix_frame_pointer): Ditto.
103         (mn10300_analyze_prologue): Ditto.
104
105 2003-01-07  Andrew Cagney  <cagney@redhat.com>
106
107         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
108         extra_info using frame_extra_info_zalloc.
109         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
110         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
111         (sh64_init_extra_frame_info): Ditto.
112         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
113         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
114         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
115         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
116         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
117         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
118         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
119         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
120         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
121         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
122         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
123         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
124
125         * mn10300-tdep.c (analyze_dummy_frame): Use
126         deprecated_set_frame_extra_info_hack.
127         * mcore-tdep.c (analyze_dummy_frame): Ditto.
128
129 2003-01-07  J. Brobecker  <brobecker@gnat.com>
130
131         * mdebugread.c (parse_symbol): Skip stProc entries which storage
132         class is not scText. These do not define "real" procedures.
133         (parse_partial_symbols): Likewise.
134
135 2003-01-06  Michael Snyder  <msnyder@redhat.com>
136
137         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
138
139 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
140
141         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
142         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
143         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
144         deprecated_frame_xmalloc_with_cleanup.
145         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
146         deprecated_frame_xmalloc.
147         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
148         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
149
150 2003-01-06  Andrew Cagney  <cagney@redhat.com>
151
152         * x86-64-linux-tdep.c: Include "osabi.h".
153         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
154
155         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
156
157 2003-01-06  Andrew Cagney  <cagney@redhat.com>
158
159         * MAINTAINERS (Target Instruction Set Architectures): Update
160         arm-elf.  Can be built with -Werror, has been multiarched.
161
162         * value.h (unpack_long): Make buffer parameter constant.
163         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
164         * scm-lang.h (scm_parse): Ditto.
165         * defs.h (extract_typed_address, extract_address): Ditto.
166         (extract_long_unsigned_integer): Ditto.
167         * inferior.h (unsigned_pointer_to_address): Ditto.
168         (signed_pointer_to_address): Ditto.
169         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
170         * gdbarch.h, gdbarch.c: Regenerate.
171         * findvar.c (extract_long_unsigned_integer): Update.
172         (extract_address): Update.
173         (extract_typed_address): Update.
174         (unsigned_pointer_to_address): Update.
175         * values.c (unpack_long): Update.
176         (unpack_double): Update.
177         (unpack_pointer): Update.
178         (unpack_field_as_long): Update.
179         * d10v-tdep.c (d10v_pointer_to_address): Update.
180         * avr-tdep.c (avr_pointer_to_address): Update.
181         * scm-lang.c (scm_unpack): Update.
182         * findvar.c (signed_pointer_to_address): Update.
183
184 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
185
186         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
187         since it is in i386-tdep.c.
188
189 2003-01-06  J. Brobecker  <brobecker@gnat.com>
190
191         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
192         failure introduced in the previous change.
193
194 2003-01-05  Michael Chastain  <mec@shout.net>
195
196         * README: Remove references to deleted remote-*.c files:
197         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
198         remote-nrom.c, remote-os9k.c, remote-udi.c.
199
200 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
201
202         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
203         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
204         i386_get_longjmp_target.
205
206 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
207
208         * arm-tdep.c (prologue_cache): Change to a pointer.
209         (_initialize_arm_tdep): Allocate prologue_cache.
210         (check_prologue_cache): Update.
211         (save_prologue_cache): Update.
212         (arm_gdbarch_init): Update.
213
214 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
215
216         * stabsread.c (update_method_name_from_physname): Call complaint()
217         instead of error.
218
219 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
220
221         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
222         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
223         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
224
225         * blockframe.c: Include "gdbcmd.h" and "command.h".
226         (backtrace_below_main): New variable.
227         (file_frame_chain_valid, func_frame_chain_valid)
228         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
229         (generic_func_frame_chain_valid): Remove functions.
230         (frame_chain_valid, do_flush_frames_sfunc): New functions.
231         (_initialize_blockframe): New function.
232         * Makefile.in (blockframe.o): Update dependencies.
233         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
234         comment.  Call frame_chain_valid ().
235         * frame.h: Remove old prototypes.  Add prototype for
236         frame_chain_valid and update comments to match.
237         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
238         Remove old comment.
239         * gdbarch.h: Regenerated.
240         * gdbarch.c: Regenerated.
241
242         * alpha-tdep.c (alpha_gdbarch_init): Don't call
243         set_gdbarch_frame_chain_valid.
244         * avr-tdep.c (avr_gdbarch_init): Likewise.
245         * cris-tdep.c (cris_gdbarch_init): Likewise.
246         * frv-tdep.c (frv_gdbarch_init): Likewise.
247         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
248         * i386-tdep.c (i386_svr4_init_abi): Likewise.
249         (i386_nw_init_abi): Likewise.
250         (i386_gdbarch_init): Likewise.
251         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
252         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
253         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
254         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
255         * mips-tdep.c (mips_gdbarch_init): Likewise.
256         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
257         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
258         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
259         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
260         * s390-tdep.c (s390_gdbarch_init): Likewise.
261         * sh-tdep.c (sh_gdbarch_init): Likewise.
262         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
263         * v850-tdep.c (v850_gdbarch_init): Likewise.
264         * vax-tdep.c (vax_gdbarch_init): Likewise.
265         * x86-64-tdep.c (x86_64_init_abi): Likewise.
266
267         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
268         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
269         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
270         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
271         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
272         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
273         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
274         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
275
276 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
277
278         * Makefile.in (acconfig_h): Remove incorrect macro.
279         (config_h): Define.
280         (osabi.o): Update dependencies.
281         * configure.tgt: Set gdb_osabi based on target triplet.
282         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
283         * configure: Regenerated.
284         * config.in: Regenerated.
285         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
286         (GDB_OSABI_DEFAULT): Define if not already defined.
287         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
288         (set_osabi_string): New variables.
289         (gdbarch_register_osabi): Add new OS ABI to
290         gdb_osabi_available_names.
291         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
292         (set_osabi, show_osabi): New functions.
293         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
294
295 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
296
297         * arch-utils.c (gdbarch_info_init): Set osabi to
298         GDB_OSABI_UNINITIALIZED.
299         * gdbarch.sh: Add osabi to struct gdbarch and to struct
300         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
301         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
302         * gdbarch.c: Regenerated.
303         * gdbarch.h: Regenerated.
304         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
305         there's no BFD.
306         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
307         * osabi.h (enum gdb_osabi): Move to defs.h.
308         (gdbarch_init_osabi): Update prototype.
309         * defs.h (enum gdb_osabi): Moved here.
310         * Makefile.in: Update dependencies.
311
312         * alpha-tdep.h: Don't include "osabi.h".
313         (struct gdbarch_tdep): Remove osabi member.
314         * alpha-tdep.c: Include "osabi.h".
315         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
316         iterate over arches.  Update call to gdbarch_init_osabi.
317         (alpha_dump_tdep): Don't dump osabi.
318         * alpha-linux-tdep.c: Include "osabi.h".
319         * alpha-osf1-tdep.c: Include "osabi.h".
320         * alphafbsd-tdep.c: Include "osabi.h".
321         * alphanbsd-tdep.c: Include "osabi.h".
322
323         * arm-tdep.h: Don't include "osabi.h".
324         (struct gdbarch_tdep): Remove osabi member.
325         * arm-tdep.c: Include "osabi.h".
326         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
327         iterate over arches.  Update call to gdbarch_init_osabi.
328         (arm_dump_tdep): Don't dump osabi.
329         * arm-linux-tdep.c: Include "osabi.h".
330         * armnbsd-tdep.c: Include "osabi.h".
331
332         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
333         Update call to gdbarch_init_osabi.
334
335         * i386-tdep.h: Don't include "osabi.h".
336         (struct gdbarch_tdep): Remove osabi member.
337         * i386-tdep.c: Include "osabi.h".
338         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
339         iterate over arches.  Update call to gdbarch_init_osabi.
340         (i386_dump_tdep): Don't dump osabi.
341         * i386-linux-tdep.c: Include "osabi.h".
342         * i386-sol2-tdep.c: Include "osabi.h".
343         * i386bsd-tdep.c: Include "osabi.h".
344         * i386gnu-tdep.c: Include "osabi.h".
345         * i386ly-tdep.c: Include "osabi.h".
346         * i386nbsd-tdep.c: Include "osabi.h".
347         * i386obsd-tdep.c: Include "osabi.h".
348
349         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
350         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
351         check osabi when iterating over arches.  Update call to
352         gdbarch_init_osabi.
353         (mips_dump_tdep): Don't dump osabi.
354
355         * ns32k-tdep.h: Don't include "osabi.h".
356         (struct gdbarch_tdep): Remove.
357         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
358         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
359         allocate tdep.  Update call to gdbarch_init_osabi.
360         (ns32k_dump_tdep): Remove.
361         (_initialize_ns32k_tdep): Update call to gdbarch_register.
362         * ns32knbsd-tdep.c: Include "osabi.h".
363
364         * ppc-tdep.h: Don't include "osabi.h".
365         (struct gdbarch_tdep): Remove osabi member.
366         * rs6000-tdep.c: Include "osabi.h".
367         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
368         osabi when iterating over arches.  Update call to
369         gdbarch_init_osabi.
370         (rs6000_dump_tdep): Don't dump osabi.
371         * ppc-linux-tdep.c: Include "osabi.h".
372         * ppcnbsd-tdep.c: Include "osabi.h".
373
374         * sh-tdep.h: Don't include "osabi.h".
375         (struct gdbarch_tdep): Remove osabi member.
376         * sh-tdep.c: Include "osabi.h".
377         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
378         iterate over arches.  Update call to gdbarch_init_osabi.
379         (sh_dump_tdep): Don't dump osabi.
380         * shnbsd-tdep.c: Include "osabi.h".
381
382         * sparc-tdep.c: Include "osabi.h".
383         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
384         iterate over arches.  Update call to gdbarch_init_osabi.
385         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
386         tdep structure.
387
388         * vax-tdep.h: Don't include "osabi.h".
389         (struct gdbarch_tdep): Remove.
390         * vax-tdep.c: Include "osabi.h".
391         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
392         iterate over arches.  Don't allocate tdep.  Update call
393         to gdbarch_init_osabi.
394         (vax_dump_tdep): Remove.
395         (_initialize_vax_tdep): Update call to gdbarch_register.
396
397 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
398
399         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
400         entirely.
401         (breakpoint_re_set_one): Don't fetch the value for a disabled
402         watchpoint.
403
404 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
405
406         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
407         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
408         (COERCE_FLOAT_TO_DOUBLE): Remove.
409         * gdbarch.c: Regenerate.
410         * gdbarch.h: Regenerate.
411         * Makefile.in: Remove value_h from gdbarch_h.
412         * valops.c (coerce_float_to_double): New variable.
413         (default_coerce_float_to_double): Remove.
414         (standard_coerce_float_to_double): Remove.
415         (value_arg_coerce): Use coerce_float_to_double.
416         (_initialize_valops): Add "set coerce-float-to-double".
417         * value.h (default_coerce_float_to_double): Remove prototype.
418         (standard_coerce_float_to_double): Remove prototype.
419
420         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
421         prototyped.
422         * mdebugread.c (parse_symbol): Likewise.
423         * stabsread.c (define_symbol): Mark all functions as prototyped.
424
425         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
426         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
427         set_gdbarch_coerce_float_to_double.
428         * arm-tdep.c (arm_gdbarch_init): Likewise.
429         * frv-tdep.c (frv_gdbarch_init): Likewise.
430         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
431         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
432         * mips-tdep.c (mips_gdbarch_init): Likewise.
433         (mips_coerce_float_to_double): Remove.
434         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
435         (rs6000_coerce_float_to_double): Remove.
436         * s390-tdep.c (s390_gdbarch_init): Likewise.
437         * sh-tdep.c (sh_gdbarch_init): Likewise.
438         (sh_coerce_float_to_double): Remove.
439         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
440         (sparc_coerce_float_to_double): Remove.
441         * v850-tdep.c (v850_gdbarch_init): Likewise.
442         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
443         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
444         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
445         (hppa_coerce_float_to_double): Remove prototype.
446         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
447
448 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
449
450         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
451
452 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
453
454         Suggested by Stewart Brown <sb24@avaya.com>:
455         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
456         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
457         (c_type_print_varspec_suffix): Likewise.
458
459 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
460
461         * configure.in: Don't set and AC_SUBST SUBDIRS.
462         * configure: Regenerated.
463
464         * configure.in: Remove code dealing with shared libraries.
465         * Makefile.in: Remove HLDFLAGS and HLDENV.
466         * configure: Regenerated.
467
468 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
469
470         * frame.c (deprecated_frame_xmalloc): New function.
471         (deprecated_set_frame_saved_regs_hack): New function.
472         (deprecated_set_frame_extra_info_hack): New function.
473         * frame.h (deprecated_frame_xmalloc): Declare.
474         (deprecated_set_frame_saved_regs_hack): Declare.
475         (deprecated_set_frame_extra_info_hack): Declare.
476
477 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
478
479         * configure.in: Move code that provides the --enable-gdbtk option
480         right after the code that handles the --enable-tui option, and
481         polish it somewhat.
482         * configure: Regenerated.
483
484         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
485         AC_CHECK_FUNCS and remove the old check for pread64.
486         * acinclude.m4 (AC_GNU_SOURCE): New macro.
487         * acconfig.h (_GNU_SOURCE): Add.
488         (HAVE_PREAD64): Remove.
489         * configure, aclocal.m4, config.in: Regenerated.
490
491 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
492
493         * alpha-tdep.c: Use get_frame_saved_regs.
494         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
495         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
496         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
497         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
498         * vax-tdep.c, xstormy16-tdep.c: Ditto.
499
500 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
501
502         * configure.in: Remove all use of the SUBDIRS variable; add
503         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
504         code providing the --enable-multi-ice option, and move it right in
505         front of the code that checks whether gdbserver is supported.
506         Polish that too.
507         * configure: Regenerated.
508         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
509         @SUBDIRS@.
510
511 2003-01-03  Andrew Cagney  <cagney@redhat.com>
512
513         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
514         * avr-tdep.c, cris-tdep.c: Ditto.
515         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
516         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
517         
518 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
519
520         * configure.in: Remove --enable-netrom option.
521         * configure: Regenerated.
522
523 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
524
525         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
526         declaration for `struct re_pattern_buffer' instead.
527         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
528
529 2003-01-03  J. Brobecker  <brobecker@gnat.com>
530
531         * mdebugread.c (parse_symbol): Count until the stEnd matching
532         the structure name.
533
534 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
535
536         * configure.in: Remove --with-cpu option.
537         subscripts.  Remove evil changequotes here.
538         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
539         * config.in, configure: Regenerated.
540         
541         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
542         * configure.in: Cleanup section that sources GDB and BFD configure
543         subscripts.  Remove evil changequotes here.
544         * config.in, configure: Regenerated.
545
546 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
547
548         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
549         frame accessor methods.
550         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
551         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
552         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
553         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
554         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
555         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
556         * z8k-tdep.c: Ditto.
557         
558 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
559
560         * configure.in: Remove UI_OUT configuration code.
561         * ada-lang.c: Update assuming UI_OUT is always true.
562         * Makefile.in (UIOUT_CFLAGS): Remove.
563         * configure: Regenerated.
564         * TODO: Remove blurb about elimination of -DUI_OUT.
565
566         * configure.in: Move code that provides the --enable-gdbcli,
567         --enable-gdbmi options right before the code that handles the
568         --enable-tui option.  Polish a bit.
569         * configure: Regenerated.
570
571         * configure.in: Rewrite check for GNU regex and the
572         --without-included regex option, and move it into the "Checks for
573         library functions" section.  This makes us use the system regex
574         again by default on systems with version 2 of the GNU C library.
575         This was apparently broken.
576         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
577         * acconfig.h (USE_INCLUDED_REGEX): Remove.
578         * config.in, configure: Regenerated.
579
580         * configure.in: Move code that provides the --enable-tui option
581         before the "Checks for libraries" section.  Polish the code
582         somewhat and set need_curses to yes if we build the TUI.  Rewrite
583         code that looks for a library providing termcap functionality to
584         match more closely what's done in the Readline library, and move
585         it into to the "Checks for libraries" section.
586         * configure: Regenerated.
587         * Makefile.in (TERMCAP): Remove variable.
588         * config/i386/go32.mh (TERMCAP): Remove variable.
589
590 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
591
592         * MAINTAINERS: Mention gdb_mbuild.sh.
593         * gdb_mbuild.sh: Rewrite.
594
595 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
596
597         * configure.in: Fix typo in last change.
598         * config.in, configure: Regenerated.
599
600 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
601
602         * valarith.c (value_binop): Delete obsolete code and comments.
603         * configure.host: Ditto.
604         * buildsym.h (make_blockvector): Ditto.
605         * buildsym.c (make_blockvector): Ditto.
606         * defs.h (enum language): Ditto.
607         (chill_demangle): Ditto.
608         * elfread.c (elf_symtab_read): Ditto.
609         * dwarfread.c (CHILL_PRODUCER): Ditto.
610         (set_cu_language): Ditto.
611         (handle_producer): Ditto.
612         * expprint.c (print_subexp): Ditto.
613         * gdbtypes.c (chill_varying_type): Ditto.
614         * gdbtypes.h (builtin_type_chill_bool): Ditto.
615         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
616         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
617         (chill_varying_type): Ditto.
618         * language.h (_LANG_chill): Ditto.
619         * language.c (binop_result_type, integral_type): Ditto.
620         (character_type, string_type, structured_type): Ditto.
621         (lang_bool_type, binop_type_check): Ditto.
622         * stabsread.h (os9k_stabs): Ditto.
623         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
624         (define_symbol, read_type, read_struct_fields): Ditto.
625         (read_array_type, read_enum_type, read_huge_number): Ditto.
626         (read_range_type, start_stabs): Ditto.
627         * symfile.c (init_filename_language_table): Ditto.
628         (add_psymbol_with_dem_name_to_list): Ditto.
629         * symtab.c (symbol_init_language_specific): Ditto.
630         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
631         * symtab.h (struct general_symbol_info): Ditto.
632         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
633         * typeprint.c (typedef_print): Ditto.
634         * utils.c (fprintf_symbol_filtered): Ditto.
635         * valops.c (value_cast, search_struct_field, value_slice): Delete
636         obsolete code.
637         (varying_to_slice): Delete function.
638         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
639         (varying_to_slice): Delete declaration.
640         * MAINTAINERS: Update.
641
642 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
643
644         * configure.in: Reorganize "Checks for library functions section"
645         a bit.  Remove check for `btowc' and `isascii' functions.
646         * configure: Regenerated.
647
648         * acconfig.h (_MSE_INT_H): Remove.
649         * configure.in: Create "Checks for header files" section, and move
650         appropriate tests there.  Don't check for objlist.h, wchar.h,
651         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
652         misdetection fix.  Also add "Checks for types", "Checks for
653         compiler characteristics" and "Checks for library functions"
654         sections.
655         * config.in, configure: Regenerated.
656
657         * configure.in: Create "Checks for programs" section, and move
658         appropriate tests there.
659
660 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
661
662         * configure.in: Create "Checks for libraries" section, and move
663         appropriate tests there.  Cleanup check for wctype in libw.  Use
664         AC_SEARCH_LIBS to see whether we need libsocket.
665         * configure: Regenerated.
666
667 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
668
669         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
670         * config.in, configure: Regenerated.
671
672 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
673
674         * gdb_dirent.h: Cleanup and update code to match the example in
675         the Autoconf manual.
676         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
677         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
678         * configure: Regenerated.
679
680 2002-12-30  Adam Fedor  <fedor@gnu.org>
681
682         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
683         (yylex): Initialize c to avoid uninitialized warning.
684
685 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
686
687         * doc/fdl.texi: Revert the last change.
688
689 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
690
691         * tracepoint.c (ISATTY): Removed.
692
693 2002-12-26  J. Brobecker  <brobecker@gnat.com>
694
695         Continuing work to convert the hppa targets to multiarch partil.
696
697         * hppa-tdep.c: Add some missing forward declarations.
698         (frameless_function_invocation): Prefix the function name
699         by "hppa_" to avoid polluting the namespace.  Update all calls
700         to use the new function name.
701         (saved_pc_after_call): Ditto.
702         (init_extra_frame_info): Ditto.
703         (frame_chain): Ditto.
704         (push_dummy_frame): Ditto.
705         (target_read_pc): Ditto.
706         (target_write_pc): Ditto.
707         (in_solib_call_trampoline): Ditto.
708         (in_solib_return_trampoline): Ditto.
709         (skip_trampoline_code): Ditto.
710         (hppa_read_fp): New function, renamed from target_read_fp.
711         (hppa_target_read_fp): New function, using hppa_read_fp.
712         This function conforms to the function profile for the
713         READ_FP gdbarch method.
714         (hppa_extract_struct_value_address): New function, extracted
715         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
716         macro.
717         (hppa_frame_num_args): New function.
718         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
719
720         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
721         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
722         for the switch to multiarch partial.
723         Update some of the macros definitions to match some changes
724         described above in the name of the function they are calling.
725         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
726         not be straightforward to convert. Do now wrap it inside
727         "#if !... #endif" to remember that this macro has still not
728         been taken care of.
729         (FIX_CALL_DUMMY): Likewise.
730
731 2002-12-26  J. Brobecker  <brobecker@gnat.com>
732
733         Continuing work to convert the hppa targets to multiarch partial.
734
735         * hppa-tdep.c (hppa_register_raw_size): New function replacing
736         the body of macro REGISTER_RAW_SIZE.
737         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
738         config/pa/tm-hppah.h. These functions will be used to initialize
739         the gdbarch structure.
740         (hppa_hpux_pc_in_sigtramp): New function.
741         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
742         (hppa_hpux_frame_base_before_sigtramp): New function.
743         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
744         Add gdbcore.h #include.
745         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
746         of this gdbarch-eligible macro to a call to the new associated
747         function.
748         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
749         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
750         into a call to the new associated function.
751         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
752         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
753         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
754
755 2002-12-24  David Carlton  <carlton@math.stanford.edu>
756
757         * config/sparc/tm-sparc.h: Delete duplicate definition of
758         DEPRECATED_PC_IN_CALL_DUMMY.
759
760 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
761
762         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
763         $(gdb_assert_h).
764         * configure.tgt: Recognize mips64*-*-linux*.
765         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
766         (supply_32_bit_reg): New function.
767         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
768         (fill_gregset): Use regcache_collect() instead of
769         deprecated_registers[].
770         (register_addr): Change name to mips_linux_register_addr().
771         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
772         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
773         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
774         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
775         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
776         (MIPS64_LINUX_JB_PC): New defines.
777         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
778         (mips64_elf_fpregset_t): New typedefs.
779         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
780         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
781         (mips64_linux_register_addr, set_mips_linux_register_addr)
782         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
783         (init_register_addr_data)
784         New functions.
785         (fetch_core_registers): Add support for core file formats with 64-bit
786         registers.
787         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
788         (register_addr_data): New static global variable.
789         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
790         gdbarch_register_osabi() for each MIPS machine.
791         * config/mips/linux64.mt: New file.
792         * config/mips/tm-linux64.h: New file.
793
794 2002-12-23  Adam Fedor  <fedor@gnu.org>
795
796         * maint.c (maintenance_demangle): Add switch to demangle
797         ObjC language symbols as well.
798
799 2002-12-23  Adam Fedor  <fedor@gnu.org>
800
801         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
802         last argument from complaint function call.
803
804 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
805
806         * exec.c (print_section_info): Add FIXME comments regarding format
807         string choices.
808
809 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
810
811         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
812         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
813
814 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
815
816         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
817
818 2002-12-23  David Carlton  <carlton@math.stanford.edu>
819
820         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
821         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
822         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
823         information associated to a minsym, not lookup_symbol.
824
825 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
826
827         * x86-64-tdep.h (x86_64_init_abi): New prototype.
828         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
829         (x86_64_init_abi): Make non-static.  Set number of pseudo
830         registers to 0.
831         (x86_64_gdbarch_init): Remove function.
832         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
833         Remove code dealing with dissambly.
834         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
835         (_initialize_x86_64_linux_tdep): New function.
836         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
837         i386-tdep.o.
838
839 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
840
841         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
842         (struct gdb_osabi_handler): Remove member `arch'.  Add member
843         `arch_info'.
844         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
845         construct a `struct bfd_arch_info' and store it in the `struct
846         gdb_osabi_handler' that is created.
847         (gdbarch_init_osabi): Check for compatibility based on machine
848         type and architecture.
849         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
850         comment.
851         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
852         second argument in call to gdbarch_register_osabi.
853         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
854         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
855         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
856         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
857         * arm-tdep.c (_initialize_arm_tdep): Likewise.
858         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
859         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
860         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
861         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
862         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
863         * i386-tdep.c (_initialize_i386_tdep): Likewise.
864         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
865         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
866         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
867         _initialize_i386bsd_tdep and updated likewise.
868         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
869         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
870         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
871         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
872         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
873         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
874         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
875         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
876         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
877         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
878
879 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
880
881         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
882         DT_MIPS_RLD_MAP case for 64-bit targets.
883
884 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
885
886         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
887         ``temp_saved_regs'', not the pointer or other storage contiguous
888         to this pointer.
889
890 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
891
892         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
893         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
894         (mips_linux_get_longjmp_target): Delete declarations.
895         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
896         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
897         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
898         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
899         (mips_linux_get_longjmp_target)
900         (mips_linux_svr4_fetch_link_map_offsets): Make static.
901         (mips_linux_init_abi): New function.
902         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
903
904 2002-12-19  Keith Seitz  <keiths@redhat.com>
905
906         patch committed by Elena Zannoni  <ezannoni@redhat.com>
907         * thread.c (do_captured_list_thread_ids): Call prune_threads and
908         target_find_new_threads. Fix for PR mi/669.
909
910 2002-12-19  David Carlton  <carlton@math.stanford.edu>
911
912         * linespec.c (decode_line_1): Move code into decode_all_digits.
913         (decode_all_digits): New function.
914
915 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
916
917         * exec.c (print_section_info): Select a format string to use with
918         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
919
920 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
921
922         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
923         deprecated_update_current_frame_pc_hack.
924         (deprecated_update_frame_base_hack): New function.
925         * frame.h (deprecated_update_frame_pc_hack): Replace
926         (deprecated_update_frame_base_hack): Declare.
927         * infrun.c (normal_stop): Update.
928
929 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
930
931         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
932         frame_extra_info_zalloc.
933         (rs6000_frame_args_address): Use get_frame_extra_info.
934         (frame_get_saved_regs): Use get_frame_saved_regs.
935         (frame_initial_stack_address): Use get_frame_saved_regs and
936         get_frame_extra_info.
937         (frame_initial_stack_address): Use get_frame_extra_info.
938
939 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
940
941         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
942         array size.
943         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
944         checks for r3900_regnames[].
945
946 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
947
948         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
949         All uses changed
950         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
951
952 2002-12-17  David Carlton  <carlton@math.stanford.edu>
953
954         * symtab.c (lookup_partial_symbol): Don't search past the end of
955         the partial symbols.
956
957 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
958
959         * stack.c (frame_info): Use get_frame_saved_regs.
960         * breakpoint.c (until_break_command): Use get_frame_pc.
961
962 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
963
964         * buildsym.c (block_end_complaint, anon_block_end_complaint)
965         (innerblock_complaint, innerblock_anon_complaint)
966         (blockvector_complaint): Delete deprecated complaint structs.
967         (finish_block, make_blockvector, end_symtab): Replace calls
968         to complain() with calls to complaint().
969         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
970         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
971         (unexpected_type_complaint, bad_sclass_complaint)
972         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
973         Delete deprecated complaint structs.
974         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
975         Replace calls to complain() with calls to complaint().
976         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
977         (unknown_symtype_complaint, unknown_symchar_complaint)
978         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
979         (lbrac_mismatch_complaint, repeated_header_complaint)
980         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
981         Delete deprecated complaint structs.
982         (unknown_symtype_complaint, lbrac_mismatch_complaint)
983         (repeated_header_complaint)
984         (function_outside_compiliation_unit_complaint): New functions.
985         (add_old_header_file, find_corresponding_bincl_psymtab)
986         (set_namestring, find_stab_function_addr, read_dbx_symtab)
987         (process_one_symbol): Replace calls to complain() with, possibly
988         indirect, calls to complaint().
989         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
990         (unknown_attribute_form, unknown_attribute_length)
991         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
992         (const_ignored, botched_modified_type, op_deref2, op_deref4)
993         (basereg_not_handled, dup_user_type_allocation)
994         (dup_user_type_definition, missing_tag, bad_array_element_type)
995         (subscript_data_items, unhandled_array_subscript_format)
996         (unknown_array_subscript_format, not_row_major)
997         (missing_at_name): Delete deprecated complaint structs.
998         (bad_die_ref_complaint, unknown_attribute_form_complaint)
999         (dup_user_type_definition_complaint)
1000         (bad_array_element_type_complaint): New functions.
1001         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
1002         (decode_subscript_data_item, dwarf_read_array_type)
1003         (read_tag_string_type, read_subroutine_type, read_func_scope)
1004         (locval, scan_partial_symbols, decode_modified_type)
1005         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1006         (attribute_size): Replace calls to complain() with, possibly
1007         indirect, calls to complaint().
1008         * elfread.c (section_info_complaint, section_info_dup_complaint)
1009         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1010         Delete deprecated complaint structs.
1011         (elf_symtab_read, elfstab_offset_sections): Replace calls to
1012         complain() with calls to complaint().
1013         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1014         struct.
1015         (stub_noname_complaint): New function.
1016         (check_typedef, add_mangled_type): Replace calls to complain()
1017         with calls to complaint().
1018         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1019         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1020         (hpread_unhandled_type_complaint, hpread_struct_complaint)
1021         (hpread_array_complaint, hpread_type_lookup_complaint)
1022         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1023         (hpread_unhandled_common_complaint)
1024         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1025         struct definitions and declarations.
1026         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1027         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1028         Replace calls to complain() with, possibly indirect, calls to
1029         complaint().
1030         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1031         Likewise.
1032         * mdebugread.c (bad_file_number_complaint, index_complaint)
1033         (aux_index_complaint, block_index_complaint)
1034         (unknown_ext_complaint, unknown_sym_complaint)
1035         (unknown_st_complaint, block_overflow_complaint)
1036         (basic_type_complaint, unknown_type_qual_complaint)
1037         (array_index_type_complaint, bad_tag_guess_complaint)
1038         (block_member_complaint, stEnd_complaint)
1039         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1040         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1041         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1042         (bad_continued_complaint, bad_rfd_entry_complaint)
1043         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1044         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1045         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1046         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1047         complaint structs.
1048         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1049         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1050         (unexpected_type_code_complaint)
1051         (function_outside_compilation_unit_complaint): New functions.
1052         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1053         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1054         Replace calls to complain() with, possibly indirect calls to
1055         complaint().
1056         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1057         Delete deprecated complaint structs.
1058         (lookup__objc_class, lookup_child_selector): Replace complain()
1059         with complaint().
1060         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1061         struct.
1062         (vx_lookup_symbol): Replace complain() with complaint().
1063         * stabsread.c (invalid_cpp_abbrev_complaint)
1064         (invalid_cpp_type_complaint, member_fn_complaint)
1065         (const_vol_complaint, error_type_complaint)
1066         (invalid_member_complaint, range_type_base_complaint)
1067         (reg_value_complaint, vtbl_notfound_complaint)
1068         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1069         (unresolved_sym_chain_complaint, stabs_general_complaint)
1070         (lrs_general_complaint, multiply_defined_struct): Delete
1071         deprecated complaint structs.
1072         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1073         (stabs_general_complaint, lrs_general_complaint)
1074         (msg_unknown_complaint): New functions.
1075         (dbx_lookup_type, read_cfront_baseclasses)
1076         (read_cfront_member_functions, resolve_symbol_reference)
1077         (define_symbol, resolve_live_range, add_live_range, read_type)
1078         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1079         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1080         (read_cfront_static_fields, attach_fields_to_type)
1081         (complain_about_struct_wipeout, read_range_type)
1082         (common_block_start, common_block_end, cleanup_undefined_types)
1083         (scan_file_globals): Replace complain() with complaint().
1084         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1085         Delete deprecated complaint struct declarations.
1086         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1087         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1088         (bf_not_found_complaint, ef_complaint, eb_complaint)
1089         (function_outside_compilation_unit_complaint): New functions.
1090         (record_include_begin, record_include_end, enter_line_range)
1091         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1092         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1093         complain() with complaint().
1094
1095 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1096
1097         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1098         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1099         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1100         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1101         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1102         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1103         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1104         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1105         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1106         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1107         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1108         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1109         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1110         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1111         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1112         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1113         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1114         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1115         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1116         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1117         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1118         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1119         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1120         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1121         * config/m88k/xm-dgux.h: Delete.
1122         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1123         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1124         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1125         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1126         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1127         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1128         * ch-valprint.c: Delete.
1129         
1130 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1131
1132         * infrun.c (handle_inferior_event): Rearrange code to resume if
1133         no catchpoint triggers for an event.
1134
1135 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1136
1137         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1138         and TARGET_WAITKIND_VFORKED cases.
1139
1140 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1141
1142         * infrun.c (handle_inferior_event): Assume that catchpoints
1143         are not affected by DECR_PC_AFTER_BREAK.
1144
1145 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1146
1147         * target.c (update_current_target): Don't inherit DONT_USE.
1148         * target.h (struct target_ops): Remove DONT_USE.
1149         (target_next): Remove macro.
1150
1151 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1152
1153         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1154
1155 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1156
1157         * arm-tdep.c (convert_from_extended): New argument to hold the
1158         type of floating point result we want to convert to.  Make input 
1159         argument const.  Fix all callers.
1160         (convert_to_extended): Similarly.
1161         (arm_extract_return_value): Now takes a regcache argument.  Change
1162         code to use regcache accessor functions.  Correctly extract 
1163         smaller-than-word results on big-endian machines.
1164         (arm_store_return_value): Now takes a regcache argument.  Change
1165         code to use regcache accessor functions.  Correctly zero/sign extend
1166         smaller than word results before storing into r0.
1167         (arm_gdbarch_init): Register new-style extract_return_value and
1168         store_return_value functions.
1169
1170 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1171
1172         * thread-db.c (thread_from_lwp): Uniquify error msg.
1173         (lwp_from_thread): Ditto.
1174         (check_event): Ditto.
1175         (find_new_threads_callback): Ditto.
1176         (thread_db_pid_to_str): Ditto.
1177
1178 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1179
1180         * frame.h (get_frame_saved_regs): Declare.
1181         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1182         pointer.
1183         * frame.c (get_frame_saved_regs): New function.
1184         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1185
1186 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1187
1188         * frame.c (deprecated_update_current_frame_pc_hack): New
1189         function.
1190         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1191         * infrun.c (normal_stop): Use said function instead of directly
1192         modifying the frame's PC.
1193         
1194 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1195
1196         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1197
1198 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1199
1200         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1201         config/mips/tm-irix6.h (NUM_REGS): Delete.
1202         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1203         (temp_saved_regs): Declare as a pointer rather than an array.
1204         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1205         that ``temp_saved_regs'' has storage allocated to it and that
1206         it's the correct size.
1207
1208 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1209
1210         * defs.h (init_last_source_visited): New prototype.
1211         (add_path): Ditto.
1212         * source.c (add_path): New function that adds to a specified path.
1213         (mod_path): Change to call add_path.
1214         (init_last_source_visited): New function to allow interfaces to
1215         initialize static variable: last_source_visited.  Part of fix
1216         for PR gdb/741.
1217         * Makefile.in: Add support for mi/mi-cmd-env.c.
1218
1219 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1220
1221         * frame.h (frame_id_unwind): Declare.
1222         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1223         id_unwind_cache.
1224         (frame_id_unwind_ftype): Declare.
1225         * frame.c (frame_id_unwind): New function.
1226         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1227         (create_new_frame, get_prev_frame): Pass id_unwind to
1228         set_unwind_by_pc.
1229         (frame_saved_regs_id_unwind): New function.
1230         (frame_saved_regs_id_unwind): New function.
1231         * dummy-frame.c (dummy_frame_id_unwind): New function.
1232         (struct dummy_frame): Add field id.
1233         (generic_push_dummy_frame): Initialize `id'.
1234         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1235
1236 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1237
1238         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1239         pass that to set_momentary_breakpoint.  Move comments to where they
1240         belong.
1241         * frame.h (set_current_frame): Delete declaration.
1242         * frame.c (set_current_frame): Delete function.
1243
1244 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1245
1246         * frame.c (frame_extra_info_zalloc): New function.
1247         * frame.h (frame_extra_info_zalloc): Declare.
1248
1249 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1250
1251         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1252         in the previous prototype change to set_momentary_breakpoint.
1253
1254 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1255
1256         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1257         and saw_child_exec.
1258         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1259         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1260         (stop_stepping): Remove outdated check for child vfork events.
1261
1262 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1263
1264         * GDB 5.3 released from gdb_5_3-branch.
1265
1266 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1267
1268         * corelow.c (init_core_ops): Delete references to to_require_attach
1269         and to_require_detach.
1270         * exec.c (init_exec_ops): Likewise.
1271         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1272         hppa_require_detach directly.
1273         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1274         * inftarg.c (child_detach): Remove.
1275         (child_detach_from_process): Rename to child_detach, remove
1276         after_fork argument.
1277         (child_attach): Remove.
1278         (child_attach_to_process): Rename to child_attach, remove after_fork
1279         argument.
1280         (init_child_ops): Delete references to to_require_attach
1281         and to_require_detach.
1282         * infttrace.c (hppa_require_attach): Update comment.
1283         * target.c (cleanup_target, update_current_target)
1284         (init_dummy_target, setup_target_debug): Delete references to
1285         to_require_attach and to_require_detach.
1286         (find_default_require_detach, find_default_require_attach)
1287         (debug_to_require_attach, debug_to_require_detach): Remove
1288         functions.
1289         * target.h (struct target_ops): Remove to_require_attach
1290         and to_require_detach.
1291         (target_require_attach, target_require_detach): Delete macros.
1292         (find_default_require_detach, find_default_require_attach): Delete
1293         prototypes.
1294         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1295
1296 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1297
1298         * frame.c (get_frame_extra_info): New function.
1299         * frame.h (get_frame_extra_info): Declare.
1300
1301 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1302
1303         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1304         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1305         with `struct frame_id'.
1306         (set_longjmp_resume_breakpoint): Ditto.
1307         * infrun.c (handle_inferior_event): Update.
1308         * breakpoint.c (watch_command_1, until_break_command): Update.
1309         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1310         (handle_inferior_event, step_over_function): Update.
1311         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1312         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1313         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1314         * infcmd.c (finish_command, run_stack_dummy): Update.
1315
1316 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1317
1318         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1319         (dwarf2_non_const_array_bound_ignored)
1320         (dwarf2_missing_line_number_section)
1321         (dwarf2_statement_list_fits_in_line_number_section)
1322         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1323         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1324         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1325         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1326         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1327         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1328         (dwarf2_missing_member_fn_type_complaint)
1329         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1330         (dwarf2_const_value_length_mismatch)
1331         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1332         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1333         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1334         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1335         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1336         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1337         complaints using deprecated struct..
1338         (dwarf2_non_const_array_bound_ignored_complaint)
1339         (dwarf2_complex_location_expr_complaint)
1340         (dwarf2_unsupported_at_frame_base_complaint)
1341         (dwarf2_const_value_length_mismatch_complaint)
1342         (dwarf2_macros_too_long_complaint)
1343         (dwarf2_macro_malformed_definition_complaint)
1344         (dwarf2_invalid_attrib_class_complaint): New functions.
1345         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1346         (read_structure_scope, read_array_type, read_common_block)
1347         (read_tag_pointer_type, read_base_type, read_partial_die)
1348         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1349         (new_symbol, dwarf2_const_value, read_type_die)
1350         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1351         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1352         complain() with, possibly indirect, calls to complaint().
1353
1354 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1355
1356         * frame.c (deprecated_get_frame_saved_regs): Rename
1357         get_frame_saved_regs.
1358         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1359         * sparc-tdep.c: Update.
1360         * hppa-tdep.c: Update.
1361         * h8500-tdep.c: Update.
1362
1363 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1364
1365         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1366         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1367         ``char *'' for return and parameter types.
1368         * gdbarch.h, gdbarch.c: Regenerate.
1369         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1370         return type from ``char *'' to ``const char *''.
1371         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1372         const.
1373
1374 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1375
1376         * i386-tdep.c: Include "dummy-frame.h".
1377         (i386_frame_chain, i386_frame_saved_pc): Replace
1378         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1379         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1380
1381 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1382
1383         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1384         Change to a function with predicate.
1385         * gdbarch.h, gdbarch.c: Re-generate.
1386         * frame.c (get_prev_frame): Update.  Test
1387         DEPRECATED_INIT_FRAME_PC_P.
1388         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1389         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1390         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1391         * alpha-tdep.c (alpha_gdbarch_init): Update.
1392         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1393         * mips-tdep.c (mips_gdbarch_init): Update.
1394         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1395         * arm-tdep.c: Update comments.
1396         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1397         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1398         * frv-tdep.c (frv_gdbarch_init): Ditto.
1399         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1400         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1401         * s390-tdep.c (s390_gdbarch_init): Ditto.
1402         * v850-tdep.c (v850_gdbarch_init): Ditto.
1403         * vax-tdep.c (vax_gdbarch_init): Ditto.
1404         * sh-tdep.c (sh_gdbarch_init): Ditto.
1405         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1406         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1407         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1408         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1409         * i386-tdep.c (i386_gdbarch_init): Ditto.
1410         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1411         * cris-tdep.c (cris_gdbarch_init): Ditto.
1412         * avr-tdep.c (avr_gdbarch_init): Ditto.
1413         * arm-tdep.c (arm_gdbarch_init): Ditto.
1414         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1415         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1416
1417 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1418
1419         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1420         CHILD_FOLLOW_FORK.
1421         * hppah-nat.c (saved_vfork_pid): Add.
1422         (child_post_follow_vfork): Remove.
1423         (child_follow_fork): New function.
1424         (child_wait): Call detach_breakpoints after receiving the child vfork.
1425         Call child_resume directly instead of going through resume ().
1426         Make sure we have the exec before reporting the vfork.
1427         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1428         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1429         (follow_fork): New function.  Call target_follow_fork.
1430         (follow_inferior_reset_breakpoints): New function broken out from
1431         old follow_inferior_fork.
1432         (resume): Remove hack to follow exec after vfork.
1433         * inftarg.c (child_post_follow_vfork): Remove.
1434         (child_follow_fork): New function.
1435         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1436         * target.c (cleanup_target): Replace to_post_follow_vfork with
1437         to_follow_fork.
1438         (update_current_target): Likewise.
1439         (setup_target_debug): Likewise.
1440         (debug_to_post_follow_vfork): Remove.
1441         (debug_to_follow_fork): New function.
1442         * target.h (struct target_ops): Replace to_post_folow_vfork with
1443         to_follow_fork.
1444         (child_post_follow_vfork): Remove prototype.
1445         (child_follow_fork): Add prototype.
1446         (target_post_follow_vfork): Remove macro.
1447         (target_follow_fork): Add macro.
1448
1449 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1450
1451         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1452         (child_post_follow_vfork): Cancel pending exec event if we follow
1453         the parent.
1454         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1455         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1456         event at the following wait call if necessary.
1457         * infrun.c (follow_vfork): Don't follow_exec here.
1458         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1459         case about HP/UX 10.20.  Remove code pushed down to
1460         hppah-nat.c:child_wait.
1461         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1462         vfork_in_flight is set.
1463
1464 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1465
1466         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1467         for the parent's fork event.
1468         * infrun.c (handle_inferior_event): Only expect one fork event.
1469         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1470         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1471
1472 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1473
1474         * PROBLEMS: Delete reference to PR gdb/725.
1475         
1476         * MAINTAINERS (gdb.c++): Add David Carlton.
1477
1478 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1479
1480         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1481         * cli/cli-cmds.c: Ditto.
1482
1483 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1484
1485         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1486         function address in <>.
1487         * gdbarch.c: Re-generate.
1488
1489 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1490
1491         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1492
1493 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1494
1495         * linespec.c (symtab_from_filename): New function.
1496         (decode_line_1): Move code into symtab_from_filename.
1497
1498 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1499
1500         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1501
1502 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1503
1504         * f-valprint.c (info_common_command): Use get_frame_pc.
1505         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1506         * ax-gdb.c (agent_command): Ditto.
1507         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1508         (rs6000_pop_frame): Ditto.
1509         (rs6000_frameless_function_invocation): Ditto.
1510         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1511         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1512         * macroscope.c (default_macro_scope): Ditto.
1513         * stack.c (print_frame_info_base): Ditto.
1514         (print_frame, frame_info, print_frame_label_vars): Ditto.
1515         (return_command, func_command, get_frame_language): Ditto.
1516         * infcmd.c (finish_command): Ditto.
1517         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1518         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1519         (break_at_finish_at_depth_command_1): Ditto.
1520         (break_at_finish_command_1): Ditto.
1521         (until_break_command, get_catch_sals): Ditto.
1522         * blockframe.c (func_frame_chain_valid): Ditto.
1523         (frameless_look_for_prologue): Ditto.
1524         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1525
1526 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1527
1528         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1529         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1530
1531 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1532
1533         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1534         to pure functions.
1535         * gdbarch.h, gdbarch.c: Re-generate.
1536         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1537         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1538
1539         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1540         declaration to a function returning a CORE_ADDR.
1541         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1542         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1543         (init_frame_pc_default): Ditto.
1544         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1545         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1546         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1547         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1548         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1549         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1550
1551         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1552         to init_frame_pc_noop.
1553         (i386_interix_init_frame_pc): Delete function.
1554         * z8k-tdep.c (init_frame_pc): Delete function.
1555         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1556         (INIT_FRAME_PC_FIRST): Ditto.
1557         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1558         (INIT_FRAME_PC_FIRST): Ditto.
1559         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1560         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1561         init_frame_pc_noop.
1562         (INIT_FRAME_PC_FIRST): Convert to an expression.
1563         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1564
1565 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1566
1567         * blockframe.c: Use get_frame_base instead of directly accessing
1568         the `struct frame_info' member frame.
1569         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1570         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1571
1572 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1573
1574         * Makefile.in (readline_h): Define.
1575         (completer.o): Depend on readline_h.
1576         (corelow.o): Ditto.
1577         (event-top.o): Ditto.
1578         (exec.o): Ditto.
1579         (solib.o): Ditto.
1580         (source.o): Ditto. 
1581         (symfile.o): Ditto. 
1582         (symmisc.o): Ditto. 
1583         (top.o): Ditto.
1584         (tracepoint.o): Ditto. 
1585         (utils.o): Ditto.
1586         (cli-dump.o): Ditto.
1587         (tui-hooks.o): Ditto. 
1588         (tuiWin.o): Ditto. 
1589
1590 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1591
1592         More cleanup from import of readline 4.3.
1593         * completer.h (complete_line, readline_line_completion_function):
1594         Update prototypes.
1595         (line_completion_function): Removed, not used outside of completer.c.
1596         * completer.c (readline_line_completion_function,
1597         complete_function, line_completion_function): Use const for first
1598         parameter.
1599         (line_completion_function): Make static.
1600         (filename_completer): filename_completion_function is now called
1601         rl_filename_completion_function
1602         * corelow.c: Include <readline/readline.h>.
1603         * exec.c: Ditto.
1604         * solib.c: Ditto.
1605         * source.c: Ditto.
1606         * symfile.c: Ditto.
1607         * symmisc.c: Ditto.
1608         * top.c (init_main): No need to coerce
1609         readline_line_completion_function anymore.
1610         * cli/cli-dump.c: Include <readline/readline.h>.
1611
1612 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1613
1614         * stack.c (frame_info): Use get_prev_frame.
1615         * blockframe.c (frame_address_in_block): Ditto.
1616         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1617         (rs6000_frameless_function_invocation): Ditto.
1618         (rs6000_frame_saved_pc): Ditto.
1619         (rs6000_frame_chain): Ditto.
1620         * arch-utils.c (init_frame_pc_default): Ditto.
1621
1622 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1623
1624         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1625         Delete redundant definition.
1626
1627 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1628
1629         Import of readline 4.3:
1630         * cli/cli-cmds.c: Include readline/tilde.h.
1631         * cli/cli-setshow.c: Ditto.
1632         * defs.h: Don't declare tilde_expand anymore, since readline
1633         exports it.
1634
1635 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1636
1637         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1638         -Werror on this file.
1639
1640 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1641
1642         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1643         the format name.
1644         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1645         * gdbarch.c: Regenerate.
1646         
1647 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1648
1649         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1650         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1651         provide a default value.
1652         * gdbarch.h, gdbarch.c: Regenerate.
1653         * frame.c (get_prev_frame): Update.  Check
1654         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1655         * s390-tdep.c (s390_gdbarch_init): Update.
1656         * mips-tdep.c (mips_gdbarch_init): Update.
1657         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1658         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1659         * alpha-tdep.c (alpha_gdbarch_init): Update.
1660         
1661 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1662
1663         * ia64-linux-nat.c: Include gdb_string.h.
1664         * alpha-nat.c: Ditto.
1665         * ppc-linux-nat.c: Ditto.
1666         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1667         Update dependencies.
1668
1669 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1670
1671         * gdbthread.h: Include "frame.h".
1672         (struct thread_info): Replace step_frame_address with
1673         step_frame_id.
1674         * inferior.h: Include "frame.h".
1675         (step_frame_id): Replace external variable step_frame_address.
1676         * gdbthread.h (save_infrun_state): Replace step_frame_address
1677         parameter with step_frame_id parameter.
1678         (load_infrun_state): Ditto.
1679         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1680         * infcmd.c (step_frame_id, step_1, step_once): Update.
1681         * thread.c (load_infrun_state, save_infrun_state): Update.
1682         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1683         (handle_inferior_event, step_over_function): Update.
1684         (normal_stop, context_switch, restore_inferior_status): Update.
1685         (struct inferior_status): Replace step_frame_address with
1686         step_frame_id.
1687
1688 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1689
1690         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1691         DW_TAG_member as well as a declaration as being a C++ static data
1692         member.
1693         (read_structure_scope): Combine tests for DW_TAG_member and
1694         DW_TAG_variable.
1695
1696 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1697
1698         * linespec.c (decode_compound): New function.
1699         (decode_line_1): Move code into decode_compound.
1700
1701 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1702
1703         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1704         argument.
1705         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1706         the static block.  See PR gdb/804.
1707
1708 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1709
1710         * symtab.c (lookup_symbol_aux_block): New function.
1711         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1712
1713 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1714
1715         * gdbarch.sh: Dump the predicate function and macro values.
1716         (read): Print error on standard error.
1717         * gdbarch.c: Regenerate.
1718         
1719 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1720
1721         * Makefile.in (mips_tdep_h): Define.
1722         (mips-tdep.o): Add mips_tdep_h to dependency list.
1723         * mips-tdep.h: New file.
1724         * mips-tdep.c (mips-tdep.h): Include.
1725         (enum mips_abi): Move to mips-tdep.h.
1726         (mips_abi): New function.
1727
1728 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1729
1730         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1731
1732 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1733
1734         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1735         function.
1736         (lookup_symbol_aux_minsyms): New function.
1737
1738 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1739
1740         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1741
1742 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1743
1744         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1745         which is an obsolete macro name.
1746
1747 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1748
1749         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1750         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1751
1752 2002-12-03  H.J. Lu  (hjl@gnu.org)
1753
1754         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1755         (create_breakpoints): Make sure the addr_string field is not
1756         NULL.
1757
1758 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1759
1760         * sparc-nat.c (fetch_inferior_registers)
1761         (store_inferior_registers): Add comment on problem of LWP vs
1762         threads.
1763         
1764         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1765         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1766         (lin_lwp_store_registers): Remove.
1767         (init_lin_lwp_ops): Use fetch_inferior_registers
1768         and store_inferior_registers directly.
1769         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1770         (store_inferior_registers): Likewise.
1771         Fix PR gdb/725.
1772
1773 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1774
1775         * frame.h (get_frame_id): Convert to a function.
1776         (null_frame_id, frame_id_p): Declare.
1777         (frame_id_eq, frame_id_inner): Declare.
1778         (frame_id_build): New function.
1779         * frame.c (get_frame_id): Update.  Use null_frame_id.
1780         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1781         frame_id_inner.
1782         (null_frame_id, frame_id_p): Define.
1783         (frame_id_eq, frame_id_inner): Define.
1784         (frame_id_build): New function.
1785         * varobj.c (varobj_create): Update.
1786         (varobj_update): Update.
1787         * valops.c (value_assign): Update.
1788         (new_root_variable): Update.
1789         * infrun.c (save_inferior_status): Update.
1790         * breakpoint.c (watch_command_1): Update.
1791
1792 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1793
1794         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1795         (SNAP2): Likewise.
1796
1797 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1798
1799         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1800         patch.
1801
1802         * PROBLEMS: Mention PR gdb/725.
1803
1804 2002-12-03  Andreas Schwab  <schwab@suse.de>
1805
1806         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1807
1808 2002-12-02  Adam Fedor  <fedor@gnu.org>
1809             Klee Dienes  <kdienes@apple.com>
1810
1811         * objc-lang.c (objc_printstr): Add width arg to match
1812         printstr prototype.
1813         (compare_selectors): Add 'const' to arg types.
1814         (compare_classes): Likewise.
1815         (find_imps): Cast msym pointer to avoid compiler warning.
1816         (print_object_command): Validate the address before
1817         passing it to the print routine.
1818         (find_objc_msgcall_submethod): Change function argument to
1819         return an int.
1820         * objc-lang.h: Add 'extern' to all function declarations.
1821         (value_nsstring): Add declaration.
1822
1823 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1824
1825         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1826         Fixes a build failure on HP/UX.
1827
1828         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1829         failure on HP/UX. 
1830         (hpread_has_name): Advance declaration to avoid a compilation warning.
1831         (pst_syms_count): Add missing variable type. By change, the compiler
1832         was defaulting to int, which seems a good choice. Fixes a compilation
1833         warning.
1834         (pst_syms_size): Likewise.
1835  
1836 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1837
1838         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1839         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1840         later to set the proper gdbarch methods depending on the osabi.
1841         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1842
1843 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1844
1845         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1846         * osabi.c (gdb_osabi_name): Add strings images for the two new
1847         enum values.
1848         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1849
1850 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1851
1852         * MAINTAINERS (Java): Global maintainers are responible for Java.
1853         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1854         part Java maintainers.
1855
1856 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1857
1858         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1859         Fixes a compilation failure on AiX.
1860
1861 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1862
1863         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1864         why aix-thread.o is not listed.
1865
1866 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1867
1868         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1869         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1870         * gdbarch.h, gdbarch.c: Re-generate.
1871         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1872         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1873         * config/pa/tm-hppa.h, frame.h: Update.
1874         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1875         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1876         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1877         * cris-tdep.c, alpha-tdep.c: Update.
1878         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1879         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1880         (get_prev_frame): Ditto.
1881
1882 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1883
1884         * exec.c (xfer_memory): Replace boolean with int.
1885         * p-exp.y: Use 0 instead of false.
1886         * corelow.c (gdb_check_format): Change return type to int from
1887         boolean.
1888         * utils.c: Don't include <curses.h> or <term.h> first.
1889
1890 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1891
1892         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1893         (m68hc11_register_byte): Remove.
1894         (m68hc11_gdbarch_init): Don't set the above.
1895
1896 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1897
1898         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1899         by calling get_selected_frame.
1900         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1901         set_current_frame, create_new_frame, select_frame and
1902         get_current_frame.
1903         * remote-e7000.c (e7000_start_remote): Ditto.
1904         * remote-mips.c (common_open): Ditto
1905         * remote-rdp.c (remote_rdp_open): Ditto.
1906
1907 2002-11-29  Andreas Schwab  <schwab@suse.de>
1908
1909         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1910         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1911         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1912         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1913         read_memory_unsigned_integer instead of read_memory_integer when
1914         dealing with addresses and instruction opcodes.
1915         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1916         (m68k_linux_frame_saved_pc): Likewise.
1917
1918 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1919
1920         * stack.c (selected_frame, select_frame): Move from here ...
1921         * frame.c (selected_frame, select_frame): ... to here.  Include
1922         "language.h".
1923         * Makefile.in (frame.o): Update dependencies.
1924         * frame.c (get_selected_frame): New function.
1925         * frame.h (get_selected_frame): Declare.
1926         (deprecated_selected_frame): Rename selected_frame.
1927         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1928         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1929         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1930         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1931         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1932         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1933         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1934         * z8k-tdep.c, cli/cli-cmds.c: Update.
1935         
1936 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1937
1938         * frame.h (get_selected_block): Add comments.
1939
1940 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1941
1942         * frame.c (pc_notcurrent): New function.
1943         (find_frame_sal): New function.
1944         * frame.h (find_frame_sal): Declare.
1945         (struct symtab_and_line): Add opaque declaration.
1946         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1947         find_pc_line.
1948         (frame_info): Ditto.
1949         * ada-lang.c (find_printable_frame): Ditto.
1950
1951 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1952
1953         * configure.in: Check that the pthdebug library is recent enough
1954         before enabling thread support on native AiX.
1955         * configure: Regenerate.
1956
1957         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1958         from the list of object files as it is now appended by configure
1959         if thread support is enabled.
1960         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1961         if thread support is enabled.
1962
1963 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1964
1965         * stack.c (get_selected_block): In-line get_current_block.
1966         * frame.h (get_current_block): Delete declaration.
1967         * blockframe.c (get_current_block): Delete function.
1968
1969 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1970
1971         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1972         USE_GENERIC_DUMMY_FRAMES.
1973         * gdbarch.h, gdbarch.c: Regenerate.
1974         * valops.c, frame.c: Update.
1975         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1976         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1977         * config/pa/tm-hppa.h, blockframe.c: Update.
1978         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1979         * m68k-tdep.c, alpha-tdep.c: Ditto.
1980
1981         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1982         * mips-tdep.c: Ditto.
1983
1984 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1985
1986         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1987         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1988         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1989         * gdbarch.c, gdbarch.h: Re-generate.
1990         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1991         (CALL_DUMMY_LOCATION): Delete macro definition.
1992         (PC_IN_CALL_DUMMY): Delete macro definitions.
1993         
1994         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1995         default is already generic_pc_in_call_dummy.
1996         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1997         * v850-tdep.c (v850_gdbarch_init): Ditto.
1998         * sh-tdep.c (sh_gdbarch_init): Ditto.
1999         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2000         * mips-tdep.c (mips_gdbarch_init): Ditto.
2001         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2002         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2003         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2004         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2005         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2006         * avr-tdep.c (avr_gdbarch_init): Ditto.
2007         
2008         * arm-tdep.c (arm_gdbarch_init): Do not set
2009         use_generic_dummy_frames, default is already 1.
2010         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2011         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2012         * v850-tdep.c (v850_gdbarch_init): Ditto.
2013         * sh-tdep.c (sh_gdbarch_init): Ditto.
2014         * s390-tdep.c (s390_gdbarch_init): Ditto.
2015         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2016         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2017         * mips-tdep.c (mips_gdbarch_init): Ditto.
2018         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2019         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2020         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2021         * i386-tdep.c (i386_gdbarch_init): Ditto.
2022         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2023         * frv-tdep.c (frv_gdbarch_init): Ditto.
2024         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2025         * cris-tdep.c (cris_gdbarch_init): Ditto.
2026         * avr-tdep.c (avr_gdbarch_init): Ditto.
2027
2028         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2029         call_dummy_location, default is already AT_ENTRY_POINT.
2030         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2031         * v850-tdep.c (v850_gdbarch_init): Ditto.
2032         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2033         * sh-tdep.c (sh_gdbarch_init): Ditto.
2034         * s390-tdep.c (s390_gdbarch_init): Ditto.
2035         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2036         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2037         * mips-tdep.c (mips_gdbarch_init): Ditto.
2038         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2039         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2040         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2041         * i386-tdep.c (i386_gdbarch_init): Ditto.
2042         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2043         * frv-tdep.c (frv_gdbarch_init): Ditto.
2044         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2045         * cris-tdep.c (cris_gdbarch_init): Ditto.
2046         * avr-tdep.c (avr_gdbarch_init): Ditto.
2047         * arm-tdep.c (arm_gdbarch_init): Ditto.
2048         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2049
2050 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2051
2052         * frame.h: Update comments on set_current_frame, create_new_frame,
2053         flush_cached_frames, reinit_frame_cache, select_frame and
2054         selected_frame.
2055         
2056 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2057
2058         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2059         deprecated pc_in_call_dummy function.
2060         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2061         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2062         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2063         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2064         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2065
2066 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2067
2068         * Makefile.in: Remove Tix dependencies.
2069         * acinclude.m4: Ditto.
2070         * aclocal.m4: Ditto.
2071         * configure.in: Ditto.
2072         * configure: Regenerated.
2073         
2074 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2075
2076         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2077         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2078         * gdbarch.c: Re-generate.
2079         
2080 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2081
2082         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2083         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2084         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2085         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2086         pc_in_call_dummy_at_entry_point.
2087         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2088         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2089         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2090         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2091         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2092         pc_in_call_dummy_on_stack.
2093         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2094         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2095         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2096         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2097         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2098         
2099 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2100
2101         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2102         pc_in_call_dummy_before_text_end
2103         (deprecated_pc_in_call_dummy_after_text_end): Rename
2104         pc_in_call_dummy_after_text_end.
2105         (deprecated_pc_in_call_dummy_on_stack): Rename
2106         pc_in_call_dummy_on_stack.
2107         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2108         pc_in_call_dummy_at_entry_point.
2109         * m68k-tdep.c (m68k_gdbarch_init): Update.
2110         * s390-tdep.c (s390_gdbarch_init): Update.
2111         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2112         * vax-tdep.c (vax_gdbarch_init): Update.
2113         * sparc-tdep.c (sparc_gdbarch_init): Update.
2114         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2115         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2116         * i386-tdep.c (i386_gdbarch_init): Update.
2117         * frv-tdep.c (frv_gdbarch_init): Update.
2118         * cris-tdep.c (cris_gdbarch_init): Update.
2119         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2120         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2121         (deprecated_pc_in_call_dummy_after_text_end)
2122         (deprecated_pc_in_call_dummy_on_stack)
2123         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2124         * alpha-tdep.c (alpha_gdbarch_init): Update.
2125
2126 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2127
2128         * acconfig.h (HAVE_PREAD64): Add.
2129         * configure.in: Check for pread64.
2130         * config.in: Regenerated.
2131         * configure: Regenerated.
2132         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2133         * linux-proc.c (linux_proc_xfer_memory): New function.
2134         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2135
2136 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2137
2138         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2139         pdi's with no name.
2140
2141 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2142
2143         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2144         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2145
2146 2002-11-25  Jim Blandy  <jimb@redhat.com>
2147
2148         * symfile.c (init_objfile_sect_indices): New function.
2149         (default_symfile_offsets): Move the section-index-initializing
2150         stuff into init_objfile_sect_indices, and call that.
2151
2152         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2153         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2154
2155         * symfile.c (syms_from_objfile): Adjust indentation.
2156
2157         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2158         || info_verbose isn't true.
2159
2160 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2161
2162         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2163         default to get_frame_base.
2164         * gdbarch.h, gdbarch.c: Regenerate.
2165         * arch-utils.c (default_frame_address): Delete function.
2166         * arch-utils.h (default_frame_address): Delete declaration
2167
2168 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2169
2170         * varobj.c (find_frame_addr_in_frame_chain):
2171         Use get_frame_base instead of FRAME_FP,
2172         obvious fix.
2173
2174 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2175
2176         * frame.h (FRAME_FP): Delete macro.
2177         (get_frame_base): New function declaration.
2178         * frame.c (get_frame_base): New function.
2179         (get_frame_id): Use ->frame.
2180         (frame_find_by_id): Rewrite to use get_frame_id.
2181         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2182         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2183         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2184         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2185         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2186         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2187         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2188
2189 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2190
2191         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2192
2193 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2194
2195         * frame.c (set_unwind_by_pc): Revert change below, use
2196         PC_IN_CALL_DUMMY.
2197         (get_prev_frame): Ditto.
2198
2199 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2200
2201         * dummy-frame.c (pc_in_dummy_frame): New function.
2202         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2203         (find_dummy_frame): Update comment.
2204         (generic_pop_current_frame): Use get_frame_type.
2205         * dummy-frame.h (pc_in_dummy_frame): Declare.
2206         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2207         (create_new_frame): Use pc_in_dummy_frame.
2208         (get_prev_frame): Use pc_in_dummy_frame.
2209         (frame_saved_regs_register_unwind): Use get_prev_frame.
2210         (deprecated_generic_get_saved_register): Use get_prev_frame.
2211
2212 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2213
2214         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2215         from here ...
2216         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2217         (varobj_create): Note that frame ID should be used.
2218         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2219
2220 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2221
2222         * breakpoint.c: Include "gdb_assert.h".
2223         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2224         not being used.
2225         * Makefile.in (breakpoint.o): Update dependencies.
2226         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2227         deprecated_frame_in_dummy.
2228         * stack.c (print_frame_info_base): Ditto.
2229         (frame_info): Ditto.
2230         (print_frame_info_base): Ditto.  Delete dead code.
2231         
2232 2002-11-23  Andreas Schwab  <schwab@suse.de>
2233
2234         * Makefile.in (m68k_tdep_h): Define.
2235         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2236         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2237         * m68k-tdep.c: Move register number enum ...
2238         * m68k-tdep.h: ... to this new file and rename the constants from
2239         E_* to M68K_*.  All uses changed.
2240         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2241         * abug-rom.c: Include "m68k-tdep.h".  Use
2242         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2243         * cpu32bug-rom.c: Likewise.
2244         * dbug-rom.c: Likewise.
2245         * m68k-tdep.c: Likewise.
2246         * m68klinux-nat.c: Likewise.
2247         * remote-est.c: Likewise.
2248         * rom68k-rom.c: Likewise.
2249         * config/m68k/tm-linux.h: Likewise.
2250
2251 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2252
2253         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2254         dummy frame initialization code.
2255         * mips-tdep.c (mips_gdbarch_init): Ditto.
2256
2257 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2258
2259         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2260         attach will hang.
2261
2262 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2263
2264         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2265         to default_frame_address.
2266         * gdbarch.h, gdbarch.c: Re-generate.
2267
2268         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2269         or frame_locals_address to default_frame_address.
2270         * m68k-tdep.c (m68k_gdbarch_init): Update.
2271         * i386-tdep.c (i386_gdbarch_init): Update.
2272         * frv-tdep.c (frv_gdbarch_init): Update.
2273         * sh-tdep.c (sh_gdbarch_init): Update.
2274         * v850-tdep.c (v850_gdbarch_init): Update.
2275         * sparc-tdep.c (sparc_gdbarch_init): Update.
2276         * mips-tdep.c (mips_gdbarch_init): Update.
2277         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2278         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2279         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2280
2281         * cris-tdep.c (cris_frame_args_address): Delete function.
2282         (cris_frame_locals_address): Delete function.
2283         (cris_gdbarch_init): Do not set frame_args_address or
2284         frame_locals_address.
2285
2286 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2287
2288         * thread-db.c (thread_db_load): Tell the user what's going on
2289         if dlopen fails on libthread_db.
2290
2291 2002-11-23  Andreas Schwab  <schwab@suse.de>
2292
2293         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2294         invariant return values.
2295
2296 2002-11-22  Andreas Schwab  <schwab@suse.de>
2297
2298         * valops.c (value_slice): Move declaration of `offset' to avoid
2299         warning.
2300
2301 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2302
2303         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2304         (struct so_stuff): Add end_addr field.
2305         (register_loaded_dll): Calculate and store end address of loaded dll.
2306         (solib_address): New function.
2307         (child_solib_loaded_library_pathname): Pass carefully constructed
2308         section info to safe_symbol_file_add rather than ignoring it.
2309         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2310         DLL is loaded.
2311         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2312         (child_create_inferior): Fix a compiler warning.
2313         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2314         (solib_address): Declare new function.
2315
2316 2002-11-22  Andreas Schwab  <schwab@suse.de>
2317
2318         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2319         and FPS registers.
2320
2321 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2322
2323         * maint.c (_initialize_maint_cmds): Fix typo.  From
2324         Francesco Potorti` <pot@gnu.org>.
2325
2326 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2327
2328         * mips-tdep.c (mips_dump_tdep): Delete references to
2329         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2330         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2331         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2332         * printcmd.c (build_address_symbolic): Delete calls to
2333         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2334         (address_info): Ditto.
2335         Fix PR gdb/773.
2336         
2337 2002-11-19  Klee Dienes  <kdienes@apple.com>
2338             Adam Fedor  <fedor@gnu.org>
2339
2340         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2341         the ability to explicitly specify the quote characters and word
2342         break characters; if NULL is specified for either, use the old
2343         behavior of using the characters used by the completer.
2344         (skip_chars): New function.  Convenience wrapper around
2345         skip_quoted_chars to provide the original skip_chars behavior.
2346         * completer.h (skip_quoted_chars): Add prototype.
2347
2348 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2349
2350         Problems reported by Paul Eggert.
2351         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2352
2353 2002-11-19  Andreas Schwab  <schwab@suse.de>
2354
2355         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2356         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2357         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2358         (m68k_linux_frame_saved_pc): Move to ...
2359         * m68klinux-tdep.c: ... here.  New file.
2360         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2361         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2362
2363 2002-11-19  Adam Fedor  <fedor@gnu.org>
2364
2365         * objc-exp.y: Revert to old skip_quoted usage.
2366
2367 2002-11-19  Adam Fedor  <fedor@gnu.org>
2368
2369         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2370         (objc_lang_h): Define.
2371         (YYFILES): Add objc-exp.tab.c.
2372         (local-maintainer-clean): Remove objc-exp.tab.c.
2373         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2374         
2375 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2376
2377         * p-exp.y (typecast rule): Add automatic dereference of
2378         pascal classes if needed.
2379         (THIS): Set current_type.
2380         Automatically dereference pascal classes. 
2381         (typebase rule): Add ^typebase recognition.
2382
2383 2002-11-18  Adam Fedor  <fedor@gnu.org>
2384
2385         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2386         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2387         (op_name): Handle OP_OBJC_SELF.
2388         * Makefile.in (expprint.o): Add additional depends.
2389
2390 2002-11-18  Adam Fedor  <fedor@gnu.org>
2391
2392         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2393         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2394         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2395         * objc-exp.y: Likewise. 
2396
2397 2002-11-18  Adam Fedor  <fedor@gnu.org>
2398
2399         * gdb/parser-defs.h: (struct objc_class_str): New structure
2400         for parsing ObjC classes.
2401
2402 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2403
2404         * stack.c (frame_relative_level): Copy function from here ...
2405         * frame.c (frame_relative_level): ...to here.
2406
2407 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2408
2409         * frame.h (enum frame_type): Define.
2410         (get_frame_type): Declare.
2411         (struct frame_info): Add field `type'.  Delete field
2412         signal_handler_caller.
2413         (deprecated_set_frame_signal_handler_caller): Declare.
2414         * frame.c (get_frame_type): New function.
2415         (deprecated_set_frame_type): New function.
2416         (create_new_frame): Set the frame's type.
2417         (get_prev_frame): Similar.
2418         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2419         * s390-tdep.c: Ditto.
2420         * m68klinux-nat.c: Ditto.
2421         * ns32k-tdep.c: Ditto.
2422         * x86-64-linux-tdep.c: Ditto.
2423         * vax-tdep.c: Ditto.
2424         * rs6000-tdep.c: Ditto.
2425         * ppc-linux-tdep.c: Ditto.
2426         * i386-interix-tdep.c: Ditto.
2427         * mips-tdep.c: Ditto.
2428         * m68k-tdep.c: Ditto.
2429         * hppa-tdep.c: Ditto.
2430         * ia64-tdep.c: Ditto.
2431         * cris-tdep.c: Ditto.
2432         * arm-tdep.c: Ditto.
2433         * alpha-tdep.c: Ditto.
2434         * i386-tdep.c: Ditto.
2435         * stack.c: Ditto.
2436         * ada-lang.c: Ditto.
2437         * blockframe.c: Update.
2438         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2439         deprecated_set_frame_type instead of signal_handler_caller.
2440         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2441         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2442         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2443
2444 2002-11-18   Klee Dienes  <kdienes@apple.com>
2445
2446         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2447
2448 2002-11-18  Klee Dienes  <kdienes@apple.com>
2449
2450         * buildsym.c (pop_context): Add comment.
2451         
2452 2002-11-18  Klee Dienes  <kdienes@apple.com>
2453
2454         * buildsym.h (pop_context): Convert to function, defined in
2455         buildsym.c.
2456         * buildsym.c: Include gdb_assert.h.
2457         (pop_context): Implement as C function.  Add check for stack
2458         underflow.
2459         * dbxread.c (process_one_symbol): Complain and stop processing
2460         that symbol if we are already at the top of the context stack for
2461         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2462         when processing N_RBRAC.
2463
2464 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2465
2466         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2467         define.
2468         (struct target_waitstatus): Add opaque definition.
2469         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2470         * exec.c (init_exec_ops): Likewise.
2471         * fork-child.c (clone_and_follow_inferior): Remove.
2472         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2473         * inferior.h (clone_and_follow_inferior): Remove prototype.
2474         * infrun.c (follow_fork_mode_both): Remove.
2475         (follow_fork_mode_kind_names): Remove commented out "both".
2476         (follow_inferior_fork): Remove follow_fork_mode_both support.
2477         * inftarg.c (child_clone_and_follow_inferior): Remove.
2478         (child_post_follow_inferior_by_clone): Remove.
2479         (init_child_ops): Don't set to_clone_and_follow_inferior
2480         or to_post_follow_inferior_by_clone.
2481         * target.c (default_clone_and_follow_inferior): Remove.
2482         (cleanup_target): Don't set to_clone_and_follow_inferior
2483         or to_post_follow_inferior_by_clone.
2484         (find_default_clone_and_follow_inferior): Remove.
2485         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2486         (debug_to_clone_and_follow_inferior): Remove.
2487         (debug_to_post_follow_inferior_by_clone): Remove.
2488         (setup_target_debug): Don't set to_clone_and_follow_inferior
2489         or to_post_follow_inferior_by_clone.
2490         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2491         and to_post_follow_inferior_by_clone.
2492         (child_clone_and_follow_inferior): Remove prototype.
2493         (child_post_follow_inferior_by_clone): Remove prototype.
2494         (target_clone_and_follow_inferior): Remove macro.
2495         (target_post_follow_inferior_by_clone): Remove macro.
2496         (find_default_clone_and_follow_inferior): Remove prototype.
2497
2498 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2499
2500         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2501         inferior_has_vforked, and inferior_has_execd instead of
2502         target_has_forked, target_has_vforked, and target_has_execd.
2503         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2504         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2505         (CHILD_WAIT): Define.
2506         (child_wait): Add prototype.
2507         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2508         Add prototype.
2509         (hpux_has_vforked): Likewise, from child_has_vforked.
2510         (hpux_has_execd): Likewise, from child_has_execd.
2511         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2512         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2513         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2514         and hpux_has_syscall_event instead of the target hooks.
2515         * infrun.c (inferior_has_forked, inferior_has_vforked)
2516         (inferior_has_execd): New functions.
2517         * inftarg.c (not_same_real_pid): Remove.
2518         (child_wait): Remove references to not_same_real_pid,
2519         target_has_forked, target_has_vforked, target_has_execd,
2520         and target_has_syscall_event.
2521         (child_has_forked, child_has_vforked, child_has_execd)
2522         (child_has_syscall_event): Remove.
2523         (init_child_ops): Remove references to child_has_forked,
2524         child_has_vforked, child_has_execd, and child_has_syscall_event.
2525         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2526         (hpux_has_vforked): Likewise, from child_has_vforked.
2527         (hpux_has_execd): Likewise, from child_has_execd.
2528         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2529         * target.c (cleanup_target): Remove references to
2530         to_has_forked, to_has_vforked, to_has_execd, and
2531         to_has_syscall_event.
2532         (update_current_target): Likewise.
2533         (setup_target_debug): Likewise.
2534         (debug_to_has_forked): Remove.
2535         (debug_to_has_vforked): Remove.
2536         (debug_to_has_execd): Remove.
2537         (debug_to_has_syscall_event): Remove.
2538         * target.h (struct target_ops): Remove to_has_forked.
2539         to_has_vforked, to_has_execd, and to_has_syscall_event.
2540         (child_has_forked, child_has_vforked, child_has_execd)
2541         (child_has_syscall_event): Remove prototypes.
2542         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2543         prototypes.
2544         (target_has_forked, target_has_vforked, target_has_execd)
2545         (target_has_syscall_event): Remove macros.
2546
2547 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2548
2549         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2550         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2551         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2552         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2553         * target.c (cleanup_target): Remove reference to
2554         to_can_follow_vfork_prior_to_exec.
2555         (update_current_target): Likewise.
2556         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2557         (setup_target_debug): Remove reference to
2558         to_can_follow_vfork_prior_to_exec.
2559         * target.h (struct target_ops): Remove
2560         to_can_follow_vfork_prior_to_exec.
2561         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2562         (target_can_follow_vfork_prior_to_exec): Remove definition.
2563         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2564         define.
2565         * infrun.c (follow_vfork_when_exec): Remove.
2566         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2567         (follow_exec): Likewise.
2568         (handle_inferior_event): Likewise.
2569         (keep_going): Likewise.
2570
2571 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2572
2573         * frame.c (generic_unwind_get_saved_register): Make static.
2574         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2575         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2576         defaults to generic_unwind_get_saved_register.
2577         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2578         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2579         * frv-tdep.c (frv_gdbarch_init): Ditto.
2580         * i386-tdep.c (i386_gdbarch_init): Ditto.
2581         * s390-tdep.c (s390_gdbarch_init): Ditto.
2582         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2583         * v850-tdep.c (v850_gdbarch_init): Ditto.
2584         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2585         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2586         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2587
2588 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2589
2590         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2591         i386-tdep.c.
2592
2593 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2594
2595         * frame.h (sigtramp_saved_pc): Delete declaration.
2596         * blockframe.c (sigtramp_saved_pc): Delete function.
2597         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2598         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2599         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2600         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2601
2602 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2603
2604         * frame.c (frame_pc_unwind): New function.
2605         (frame_saved_regs_pc_unwind): New function.
2606         (frame_register_unwind): Pass unwind_cache instead of
2607         register_unwind_cache.
2608         (set_unwind_by_pc): Add unwind_pc parameter, set.
2609         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2610         (get_prev_frame): Ditto.
2611         * frame.h (frame_pc_unwind_ftype): Declare.
2612         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2613         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2614         (frame_pc_unwind): Declare.
2615         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2616         (struct dummy_frame): Add comment mentioning that values are for
2617         previous frame.
2618         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2619         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2620         (generic_file_frame_chain_valid): Ditto.
2621         * stack.c (frame_info): Ditto.
2622
2623 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2624
2625         * linespec.c (locate_first_half): New function.
2626         (decode_line_1): Move code into locate_first_half.
2627
2628 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2629
2630         * complaints.h: Add comment explaining how to eliminate a
2631         deprecated_complain call.
2632         * complaints.h: Fix spelling errors.
2633
2634 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2635
2636         * printcmd.c: Remove #include "disasm.h".
2637
2638 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2639
2640         * frame.h: Move the most relevant interface functions to the start
2641         of the file.
2642
2643 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2644
2645         * regcache.h (deprecated_registers): Rename registers.
2646         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2647         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2648         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2649         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2650         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2651         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2652         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2653         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2654         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2655         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2656         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2657         * v850ice.c: Update.
2658
2659 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2660
2661         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2662         NULL buffer.
2663
2664 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2665
2666         * regcache.h (deprecated_read_register_bytes): Rename
2667         read_register_bytes.
2668         (deprecated_write_register_bytes): Rename write_register_bytes.
2669         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2670         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2671         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2672         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2673         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2674         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2675         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2676         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2677         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2678         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2679         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2680         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2681         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2682         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2683
2684 2002-11-13  Jim Blandy  <jimb@redhat.com>
2685
2686         * findvar.c (read_var_value): Doc fix.
2687
2688 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2689
2690         * regcache.c (struct regcache): Replace passthough_p with
2691         readonly_p.
2692         (regcache_xmalloc): Initialize readonly_p.
2693         (build_regcache): Initialize readonly_p.
2694         (regcache_save): New function.
2695         (regcache_restore): New function.
2696         (regcache_cpy): Re-implement using regcache_save and
2697         regcache_restore.
2698         (regcache_raw_read): Update.
2699         (regcache_cooked_read): When a read-only cache, checked for cached
2700         pseudo register values.
2701         (regcache_raw_write): Assert that the cache is not read-only.
2702         Remove code handling a non-passthrough cache.
2703         * regcache.h (regcache_save): Declare.
2704         (regcache_restore): Declare.
2705
2706 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2707
2708         * regcache.c (struct regcache_descr): Add fields
2709         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2710         (init_legacy_regcache_descr): Compute the size of a cooked
2711         register cache and then assign that to sizeof_raw_registers.  Set
2712         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2713         (init_legacy_regcache_descr): Ditto.
2714
2715 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2716
2717         * regcache.c (register_buffer): Move to near start of file, update
2718         description.
2719         (regcache_raw_read): Use.
2720         (regcache_raw_write): Use.
2721         (struct regcache): Rename raw_registers to registers and
2722         raw_register_valid_p to register_valid_p.
2723         (regcache_xmalloc): Update.
2724         (regcache_xfree): Update.
2725         (register_buffer): Update.
2726         (regcache_cpy): Update.
2727         (regcache_cpy_no_passthrough): Update.
2728         (regcache_valid_p): Update.
2729         (deprecated_grub_regcache_for_registers): Update.
2730         (deprecated_grub_regcache_for_register_valid): Update.
2731         (set_register_cached): Update.
2732         (regcache_raw_write): Update.
2733
2734 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2735
2736         * p-exp.y (name_not_typename): Use copy_name to
2737         set current_type variable for fields of THIS.
2738
2739 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2740
2741         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2742         * monitor.c (init_base_monitor_ops): Likewise.
2743         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2744         * remote-array.c (init_array_ops): Likewise.
2745         * remote-e7000.c (init_e7000_ops): Likewise.
2746         * remote-es.c (init_es1800_ops): Likewise.
2747         (init_es1800_child_ops): Likewise.
2748         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2749         * remote-sim.c (init_gdbsim_ops): Likewise.
2750         * remote-st.c (init_st2000_ops): Likewise.
2751         * sol-thread.c (init_sol_core_ops): Likewise.
2752         (init_sol_thread_ops): Likewise.
2753         * v850ice.c (init_850ice_ops): Likewise.
2754         * win32-nat.c (init_child_ops): Likewise.
2755         * wince.c (init_child_ops): Likewise.
2756
2757 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2758
2759         * utils.c (gdb_realpath): Make rp a constant pointer.
2760
2761 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2762
2763         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2764         a constant buffer; cannonicalize_file_name(); realpath() with a
2765         pathconf() defined buffer, xstrdup().
2766
2767 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2768
2769         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2770         to hang2.C; hang3.c to hang3.C.
2771
2772 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2773
2774         * findvar.c (read_var_value): Reenable TLS code.
2775
2776 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2777             Jim Blandy  <jimb@redhat.com>
2778         
2779         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2780         * target.c (update_current_target): Add
2781         to_get_thread_local_address.
2782         * target.h (to_get_thread_local_address): Export.
2783         (target_get_thread_local_address): Define.
2784         (target_get_thread_local_address_p): Define.
2785         * thread-db.c: Include solib-svr4.h.
2786         (td_thr_tls_get_addr_p): Define.
2787         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2788         (thread_db_get_thread_local_address): New function.
2789         (init_thread_db_ops): Initialize to_get_thread_local_address.
2790         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2791         * configure: Regenerate.
2792         * config.in: Regenerate.
2793
2794 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2795
2796         * linespec.c (set_flags): New function.
2797         (decode_line_1): Move code into set_flags.
2798
2799 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2800
2801         * linespec.c (decode_line_1): Move chunks of code to separate
2802         functions.
2803         (initialize_defaults): New function.
2804         (decode_indirect): New function.
2805
2806 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2807
2808         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2809         instead of void_code_ptr.
2810         (sigtramp_saved_pc): Ditto.
2811
2812         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2813         i386_fp_regnum_p.
2814
2815 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2816
2817         * gdbtypes.h (struct main_type): Move artificial flag out of
2818         loc.  New member of ``struct field'' named static_kind.  Reduce
2819         overloaded meaning of bitsize.
2820         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2821         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2822         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2823
2824         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2825         new fields.
2826         (template_to_fixed_record_type, template_to_static_fixed_type)
2827         (to_record_with_fixed_variant_part): Likewise.
2828         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2829         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2830         * dwarfread.c (struct_type, enum_type): Likewise.
2831         * hpread.c (hpread_read_enum_type)
2832         (hpread_read_function_type, hpread_read_doc_function_type)
2833         (hpread_read_struct_type): Likewise.
2834         * mdebugread.c (parse_symbol): Likewise.
2835
2836 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2837
2838         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2839         * stack.c (print_frame_info_base): Update.
2840         (print_frame_info_base, frame_info): Update.
2841         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2842         (sparc_frame_saved_pc): Update.
2843         * ada-lang.c (find_printable_frame): Update.
2844         * breakpoint.c (deprecated_frame_in_dummy): Update.
2845         
2846 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2847
2848         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2849         defined.
2850         (regmap): Extend to cover all registers.
2851         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2852         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2853         definitions.
2854         (fetch_register, sore_register): Simplify.
2855         (old_fetch_inferior_registers, old_store_inferior_registers):
2856         Remove functions.
2857         (cannot_fetch_register, cannot_store_register): Change
2858         implementation to use regmap array to decide which registers
2859         cannot be fetched/stored.  This removes $orig_eax from the
2860         registers that cannot be fetched/stored.
2861         (fetch_inferior_registers): Call fetch_register directly instead
2862         of calling old_fetch_inferior_registers.
2863         (store_inferior_registers): Call store_register directly instead
2864         of calling old_store_inferior_registers.
2865         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2866         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2867         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2868
2869 2002-11-09  Klee Dienes  <kdienes@apple.com>
2870
2871         * i387-tdep.c (i387_supply_register): When called with NULL as a
2872         buffer, mark the register as not provided (to mirror the behavior
2873         of supply_register).
2874         (i387_supply_fxsave): Ditto.
2875         (i387_supply_fsave): Ditto (inherits the behavior from
2876         i387_supply_register).
2877
2878 2002-11-09  Klee Dienes  <kdienes@apple.com>
2879
2880         * blockframe.c (sigtramp_saved_pc): Use
2881         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2882         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2883         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2884         
2885 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2886
2887         * frame.c (get_prev_frame): Test prev_p to identify a previously
2888         unwound frame.  Initialize prev_p.
2889         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2890         comment.
2891
2892 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2893
2894         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2895         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2896         more comments.  Zap dead code.
2897
2898 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2899
2900         * infcmd.c (print_vector_info, print_float_info): Move code that
2901         checks whether the target has any registers and whether there is a
2902         selected frame up, such that it is also used if a target provides
2903         multi-arch definitions of these functions.
2904
2905 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2906
2907         * Makefile.in (DESTDIR): Define.
2908         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2909         prefix.
2910
2911         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2912         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2913
2914 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2915
2916         * i386-linux-tdep.c: Include "reggroups.h".
2917         (i386_linux_register_reggroup_p): New function.
2918         (i386_linux_init_abi): Set register_reggroup_p to
2919         i386_linux_register_reggroup_p.
2920         * i386-tdep.h (i386_register_reggroup_p): Declare.
2921         * i386-tdep.c: Include "reggroups.h".
2922         (i386_init_reggroups): New function.
2923         (i386_add_reggroups): New function.
2924         (i386_register_reggroup_p): New function.
2925         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2926         (_initialize_i386_tdep): Call i386_init_reggroups.
2927         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2928         specific reggroups.
2929
2930 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2931
2932         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2933         request that's available in *BSD.
2934
2935         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2936
2937         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2938         FDOFF_REGNUM.
2939
2940 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2941
2942         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2943         * dummy-frame.c (find_dummy_frame): Rename
2944         generic_find_dummy_frame, make static.  Return the dummy frame
2945         instead of the regcache.
2946         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2947         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2948         (dummy_frame_register_unwind): Rename
2949         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2950         * dummy-frame.h (dummy_frame_register_unwind): Rename
2951         generic_call_dummy_register_unwind.
2952
2953 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2954
2955         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2956         except the inclusion of "i386/tm-i386.h", to...
2957         * config/i386/nm-i386v42mp.h: ...here.
2958         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2959
2960 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2961
2962         * Makefile.in (frame.o): Update dependencies.
2963         * blockframe.c (current_frame, frame_obstack_alloc)
2964         (frame_saved_regs_zalloc, get_current_frame)
2965         (set_current_frame, create_new_frame)
2966         (set_unwind_by_pc, get_next_frame)
2967         (flush_cached_frames, reinit_frame_cache)
2968         (frame_saved_regs_register_unwind)
2969         (deprecated_generic_get_saved_register)
2970         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2971         (_initialize_blockframe): Move frame code from here...
2972         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2973         "annotate.h" and "dummy-frame.h".
2974         (_initialize_frame): New function.
2975
2976 2002-11-08  Jim Blandy  <jimb@redhat.com>
2977
2978         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2979         when we finish a function a context.
2980         * buildsym.h (outermost_context_p): New macro.
2981         (Bug analyzed by David Edelsohn.)
2982
2983 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2984
2985         * blockframe.c: Include "dummy-frame.h".
2986         (struct dummy_frame, dummy_frame_stack)
2987         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2988         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2989         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2990         (generic_save_call_dummy_addr, generic_pop_current_frame)
2991         (generic_pop_dummy_frame, generic_fix_call_dummy)
2992         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2993         dummy frame code from here...
2994         * dummy-frame.c: ...to here.  New file.
2995         * dummy-frame.h: New file.
2996         (generic_call_dummy_register_unwind): Declare.
2997         (generic_find_dummy_frame): Declare.
2998         * Makefile.in (SFILES): Add dummy-frame.c.
2999         (dummy-frame.o): Specify dependencies.
3000         (dummy_frame_h): Define.
3001         (COMMON_OBS): Add dummy-frame.o.
3002         (blockframe.o): Update dependencies.
3003
3004 2002-11-08  Jim Blandy  <jimb@redhat.com>
3005
3006         * dwarf2read.c (read_func_scope): Restore local_symbols and
3007         param_symbols after we finish the function context.  (Based on a
3008         patch from David Edelsohn.)
3009
3010 2002-11-08  David Carlton  <carlton@math.stanford.edu>
3011
3012         * linespec.c (symbol_found): New function.
3013         (minsym_found): New function.
3014         (decode_line_1): Separate out some code into separate functions.
3015
3016 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
3017
3018         * i386-tdep.c (i386_frameless_signal_p): Make non static for
3019         the benefit of the interix target.
3020         * i386-tdep.h (i386_frameless_signal_p): Declare.
3021
3022 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
3023
3024         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3025         declaration that snuck in from change below.
3026
3027 2002-11-06  Andrew Cagney  <cagney@redhat.com>
3028
3029         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
3030         all callers.
3031         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
3032         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
3033         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
3034         (i386_mxcsr_regnum_p): new function.  Use instead of
3035         MXCSR_REGNUM_P.
3036         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3037         (i386_sse_regnum_p): Declare.
3038         (i386_mxcsr_regnum_p): Declare.
3039         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3040         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3041         (IS_FP_REGNUM): Update definition.
3042         (IS_FPU_CTRL_REGNUM): Update definition..
3043         (IS_SSE_REGNUM): Update definition..
3044         * i386v-nat.c (register_u_addr): Update.
3045         * go32-nat.c (fetch_register): Update.
3046         (store_register): Update.
3047
3048 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3049
3050         Preparation work to convert the hppa targets to multiarch partial.
3051
3052         * hppa-tdep.c: Add new functions replacing macro bodies from
3053         config/pa/tm-hppa.h. These function will be used to initialize
3054         the gdbarch structure. Import some comments from tm-hppa.h,
3055         and place them where appropriate, to avoid loosing them when
3056         we cleanup this file.
3057         (hppa_reg_struct_has_addr): New function.
3058         (hppa_inner_than): New function.
3059         (hppa_stack_align): New function.
3060         (hppa_pc_requires_run_before_use): New function.
3061         (hppa_instruction_nullified): New function.
3062         (hppa_register_byte): New function.
3063         (hppa_register_virtual_type): New function.
3064         (hppa_store_struct_return): New function.
3065         (hppa_cannot_store_register): New function.
3066         (hppa_frame_args_address): New function.
3067         (hppa_frame_locals_address): New function.
3068         (hppa_smash_text_address): New function.
3069         (hppa_coerce_float_to_double): New function. Requires the inclusion
3070         of "language.h".
3071
3072         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3073
3074         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3075         gdbarch-eligible macro to a call to the new associated function
3076         created in hppa-tdep.c.
3077         (INNER_THAN): Likewise.
3078         (STACK_ALIGN): Likewise.
3079         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3080         (INSTRUCTION_NULLIFIED): Likewise.
3081         (REGISTER_BYTE): Likewise.
3082         (REGISTER_VIRTUAL_TYPE): Likewise.
3083         (STORE_STRUCT_RETURN): Likewise.
3084         (CANNOT_STORE_REGISTER): Likewise.
3085         (FRAME_ARGS_ADDRESS): Likewise.
3086         (FRAME_LOCALS_ADDRESS): Likewise.
3087         (SMASH_TEXT_ADDRESS): Likewise.
3088         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3089         (ABOUT_TO_RETURN): Delete, as no longer used.
3090
3091 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3092
3093         * printcmd.c (disassemble_command): Remove obsolete function.
3094         (_initialize_printcmd): Do not create disassemble command here.
3095         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3096         disassemble command.
3097         (init_cli_cmds): Create disassemble command here instead.
3098
3099 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3100
3101         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3102
3103 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3104
3105         * regcache.h (regcache_cooked_read_using_offset_hack)
3106         (regcache_cooked_write_using_offset_hack): Delete declarations.
3107         (register_changed): Delete declaration.
3108         * regcache.c (regcache_cooked_read_using_offset_hack)
3109         (regcache_cooked_write_using_offset_hack): Delete functions.
3110         (cooked_xfer_using_offset_hack): Delete function.
3111         (register_changed): Delete function.
3112
3113 2002-11-07  Jim Blandy  <jimb@redhat.com>
3114
3115         * macroscope.c: #include "complaints.h".
3116         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3117         but not in the macro table.
3118         * Makefile.in (macroscope.o): Record dependency.
3119
3120 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3121
3122         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3123
3124 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3125
3126         * regcache.c (deprecated_registers_fetched): Update.
3127         * regcache.h (deprecated_registers_fetched): Rename
3128         registers_fetched.
3129         * remote-vxsparc.c (vx_read_register): Update.
3130         * remote-vxmips.c (vx_read_register): Update.
3131         * remote-vx68.c (vx_read_register): Update.
3132         * irix5-nat.c (fetch_core_registers): Update.
3133         * mipsm3-nat.c (fetch_inferior_registers): Update.
3134         * sun3-nat.c (fetch_inferior_registers): Update.
3135         * symm-nat.c (fetch_inferior_registers): Update.
3136         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3137         (fetch_core_registers): Update.
3138         (fetch_kcore_registers): Update.
3139         * mips-nat.c (fetch_inferior_registers): Update.
3140         * corelow.c (get_core_registers): Update.
3141         * a68v-nat.c (fetch_inferior_registers): Update.
3142
3143 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3144
3145         Put in place the framework necessary for multiarching the hppa targets.
3146         * hppa-tdep.c (hppa_gdbarch_init): New function.
3147         (hppa_dump_tdep): New function.
3148         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3149         tdep structure dumper.
3150         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3151         until the multi-arching conversion has partially been completed.
3152
3153 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3154
3155         * valops.c (value_assign): Merge lval_register case into
3156         lval_reg_frame_relative.  Use frame_register and
3157         regcache_cooked_write instead of get_saved_register and
3158         write_register_bytes.  After flushing the register cache, try to
3159         re-select the selected frame.
3160
3161 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3162
3163         * regcache.h (deprecated_register_valid): Rename register_valid.
3164         * regcache.c: Update.
3165         * ia64-aix-nat.c: Update.
3166         * i386gnu-nat.c: Update.
3167         * alpha-nat.c: Update.
3168         * sparc-nat.c: Update.
3169         * lynx-nat.c: Update.
3170         * remote-mips.c: Update.
3171
3172 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3173
3174         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3175         to end of file, to be more consistent with the pratice followed
3176         by other targets.
3177
3178 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3179
3180         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3181         (print_float_info): Print registers in float_reggroup.
3182         (print_vector_info): Print registers in vector_reggroup.
3183         (default_print_registers_info): When all, print registers in
3184         all_reggroup.  Otherwize, print registers in general_reggroup.
3185         (registers_info): Rewrite.  Add support for register groups.
3186         Eliminate a goto.
3187
3188 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3189
3190         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3191         ages.
3192         (symtab_symbol_info): Remove eons old ifdeffed out code.
3193         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3194         command.
3195
3196 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3197
3198         * c-exp.y: Add missing semi-colons.
3199         * f-exp.y: Add missing semi-colons.
3200         * m2-exp.y: Add missing semi-colons.
3201         * p-exp.y: Add missing semi-colons.
3202         Add empty action to start rule to avoid a type clash error when
3203         building with bison >= 1.50.
3204
3205 2002-11-06  Jim Blandy  <jimb@redhat.com>
3206
3207         * macrotab.h (struct macro_source_file): Doc fix.
3208
3209 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3210
3211         * varobj.c (child_exists, cplus_number_of_children): Change
3212         STREQ macro references to strcmp.
3213         (cplus_name_of_child): Change code to handle the fact that
3214         fields are not necessarily contiguous with regards to their 
3215         access control. This is a fix for PR gdb/792.
3216
3217 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3218
3219         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3220         * gdbarch.h, gdbarch.c: Regnerate.
3221         * frame.h (frame_register): Declare.
3222         * frame.c (frame_register): New function.
3223         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3224         GET_SAVED_REGISTER, otherwize call
3225         generic_unwind_get_saved_register.
3226         (frame_register_read): Use frame_register instead of
3227         get_saved_register.
3228
3229 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3230         
3231         From Jim Ingham  <jingham@apple.com>:
3232         * event-top.c (gdb_disable_readline): New function.
3233         (_initialize_event_loop): Move comment.
3234
3235 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3236
3237         * event-loop.c (start_event_loop): Add comment.
3238         Update copyright.
3239
3240 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3241
3242         * infcmd.c (default_print_registers_info): Do not call
3243         PRINT_REGISTER_HOOK.
3244
3245 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3246
3247         * sparc-tdep.c (sparc_print_register_hook): Make static.
3248         (sparc_print_registers_info): New function.
3249         (sparc_do_registers_info): New function.
3250         (sparclet_print_registers_info): New function.
3251         (sparclet_do_registers_info): New function.
3252         (do_sparc_print_registers_info): New function.
3253         (sparc_print_registers): New static function, clone of infcmd.c's
3254         default_print_registers_info.
3255         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3256         (sparclet_do_registers_info): Declare.
3257         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3258         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3259         Re-define.
3260         (sparc_do_registers_info): Declare.
3261         (PRINT_REGISTER_HOOK): Delete macro.
3262         (sparc_print_register_hook): Delete declaration.
3263
3264 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3265
3266         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3267         functions.
3268         (lookup_symbol_aux_local): New function.
3269         (lookup_symbol_aux_symtabs): New function.
3270         (lookup_symbol_aux_psymtabs): New function.
3271
3272 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3273
3274         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3275         previous values of 'objfile' and 'block'.
3276
3277 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3278
3279         * values.c (value_change_enclosing_type): Set 
3280         enclosing_type field correctly also for the case where 
3281         more memory needs to be allocated.
3282
3283 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3284
3285         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3286         of puts_filtered.
3287
3288         * i387-tdep.c (i387_print_float_info): Replace calls to
3289         register_read and deprecated_read_register_gen with calls to
3290         frame_register_read, and make the necessary adjustments to the
3291         surrounding code.
3292
3293 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3294
3295         * gdbarch.sh (register_reggroup_p): Allow default value.
3296         * gdbarch.h, gdbarch.c: Regenerate.
3297
3298 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3299
3300         * regcache.h: Add coment indicating replacements for deprecated
3301         functions.
3302
3303 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3304
3305         * reggroups.h, reggroups.c: New files.
3306         * regcache.c: Include "reggroups.h".
3307         (enum regcache_dump_what): Add `regcache_dump_groups'.
3308         (regcache_dump): Contract size of the "Type" column.  When
3309         specified, dump the register's groups.
3310         (maintenance_print_register_groups): New function.
3311         (_initialize_regcache): Add command `maint print register-groups'.
3312         * Makefile.in (COMMON_OBS): Add reggroups.o
3313         (SFILES): Add reggroups.c.
3314         (reggroups_h): Define.
3315         (regcache.o, gdbarch.o): Update dependencies.
3316         (reggroups.o): Specify dependencies.
3317         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3318         Add opaque declaration for `struct reggroup' in generated .h file.
3319         Include "reggroups.h" in generated .c file.
3320         gdbarch.h, gdbarch.c: Re-generate.
3321
3322 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3323
3324         * regcache.h (deprecated_read_register_gen): Rename
3325         read_register_gen.
3326         (deprecated_write_register_gen): Rename write_register_gen.
3327         * i387-tdep.c: Update.
3328         * x86-64-linux-nat.c: Update
3329         * wince.c: Update.
3330         * thread-db.c: Update.
3331         * win32-nat.c: Update.
3332         * mips-tdep.c: Update.
3333         * d10v-tdep.c: Update.
3334         * cris-tdep.c: Update.
3335         * remote-sim.c: Update.
3336         * remote-rdi.c: Update.
3337         * remote-rdp.c: Update.
3338         * frame.c: Update.
3339         * target.c: Update.
3340         * blockframe.c: Update.
3341         * x86-64-tdep.c: Update.
3342         * xstormy16-tdep.c: Update.
3343         * sh-tdep.c: Update.
3344         * s390-tdep.c: Update.
3345         * rs6000-tdep.c: Update.
3346         * sparc-tdep.c: Update.
3347         * i386-tdep.c: Update.
3348         * dwarf2cfi.c: Update.
3349         * regcache.c: Update.
3350
3351 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3352
3353         New interix-specific files:
3354         * config/i386/nm-interix.h: New file.
3355         * config/i386/interix.mh: New file.
3356         * config/i386/interix.mt: New file.
3357         * i386-interix-nat.c: New file.
3358         * i386-interix-tdep.c: New file.
3359
3360 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3361
3362         * frame.h (deprecated_generic_get_saved_register): Rename
3363         generic_get_saved_register.
3364         * blockframe.c (deprecated_generic_get_saved_register): Update.
3365         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3366         (xstormy16_frame_saved_register): Update.
3367         * sh-tdep.c (sh_gdbarch_init): Update.
3368         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3369         * ia64-tdep.c (ia64_get_saved_register): Update.
3370         * cris-tdep.c (cris_gdbarch_init): Update.
3371         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3372         * arm-tdep.c (arm_gdbarch_init): Update.
3373
3374 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3375
3376         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3377
3378 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3379
3380         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3381         trampolines in sigaction.
3382
3383 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3384
3385         * h8300-tdep.c: Include "gdb_assert.h".
3386         (h8300_print_register): Add gdbarch, file and frame parameters.
3387         Use frame_read_unsigned_register to read the register's value.
3388         Use fprintf_filtered to display output.
3389         (h8300_print_registers_info): Replace h8300_do_registers_info.
3390         (h8300_gdbarch_init): Set print_registers_info.
3391
3392 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3393
3394         * frame.c (frame_read_unsigned_register): New function.
3395         (frame_read_signed_register): New function.
3396         * frame.h (frame_read_unsigned_register): Declare.
3397         (frame_read_signed_register): Declare.
3398
3399 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3400
3401         * h8500-tdep.c (h8500_print_registers_info): New static function,
3402         clone of infcmd.c's default_print_registers_info.
3403         (h8500_do_registers_info): New funtion.
3404         (h8500_print_register_hook): Rename print_register_hook, make
3405         static.
3406
3407         * config/h8500/tm-h8500.h: Update copyright.
3408         (DEPRECATED_DO_REGISTERS_INFO): Define.
3409         (h8500_do_registers_info: Declare.
3410         (PRINT_REGISTER_HOOK): Delete macro.
3411         (print_register_hook): Delete function.
3412
3413 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3414
3415         * z8k-tdep.c (z8k_print_register_hook): Make static.
3416         (z8k_print_registers_info): New static function, clone of
3417         infcmd.c's default_print_registers_info.
3418         (z8k_do_registers_info): New function.  Wrap
3419         z8k_print_registers_info.
3420         * config/z8k/tm-z8k.h: Update copyright.
3421         (PRINT_REGISTER_HOOK): Delete macro.
3422         (z8k_print_register_hook): Delete declaration.
3423         (DEPRECATED_DO_REGISTERS_INFO): Define.
3424         (z8k_do_registers_info): Declare.
3425
3426 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3427
3428         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3429         as this is already provided by value.h, and was actually causing
3430         a compilation error because of a conflict in parameter type
3431         declaration due to a missing const keyword.
3432         (low_text_segment_addres): Fix a compilation warning.
3433
3434 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3435
3436         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3437         registers without a name.
3438         (mips_linux_cannot_store_register): Don't store registers without
3439         a name.
3440
3441 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3442
3443         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3444         out.)
3445         * symtab.h: Delete prototype for find_addr_symbol.
3446
3447 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3448
3449         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3450         DO_REGISTERS_INFO.
3451         gdbarch.h, gdbarch.c: Re-generate.
3452         * infcmd.c (default_print_registers_info): Update reference.
3453         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3454         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3455         * sh-tdep.c (sh_gdbarch_init): Ditto.
3456         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3457         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3458
3459 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3460
3461         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3462         cfi_init_extra_frame_info.
3463         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3464         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3465
3466         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3467         target where necessary.  Add more comments and remove the ones
3468         that don't provide any useful information.
3469
3470         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3471         deprecated_read_register_dummy with
3472         frame_unwind_unsigned_register.
3473
3474         * i386-tdep.c (i386_extract_struct_value_address): Use
3475         regcache_raw_read_unsigned instead of
3476         regcache_cooked_read_unsigned since we know that the register
3477         we're reading isn't a pseudo register.  Rename variable 'val' into
3478         the more descriptive 'addr'.
3479
3480         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3481         (x86_64_push_return_address): Add comment.
3482         (x86_64_pop_frame): Make static.
3483         (examine_argument): Clarify comment.
3484         (x86_64_skip_prologue): Make prolog_expact variable static.
3485
3486         * dwarf2cfi.c: Fix some formatting problems.
3487         (context_cpy, read_encoded_pointer): Clarify comments.
3488
3489         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3490         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3491         i386 target back into x86_64_gdbarch_init.  Add some comments and
3492         remove meaningless ones.
3493
3494 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3495
3496         * complaints.h (struct deprecated_complaint): Rename `struct
3497         complaint'.
3498         * complaints.c (complain): Update.
3499         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3500         incorrect comment indicating that "symfile.h" was being included
3501         for the `struct complaint' definition.
3502         * remote-vx.c: Update.
3503         * objc-lang.c: Update.
3504         * xcoffread.c: Update.
3505         * hpread.c: Update.
3506         * mdebugread.c: Update.
3507         * stabsread.c: Update.
3508         * dwarf2read.c: Update.
3509         * dwarfread.c: Update.
3510         * elfread.c: Update.
3511         * coffread.c: Update.
3512         * stabsread.h: Update.
3513         * dbxread.c: Update.
3514         * buildsym.c: Update.
3515         * gdbtypes.c: Update.
3516         * macrotab.c: Update.
3517
3518 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3519
3520         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3521         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3522         (x86_64_init_abi): ...new function.
3523
3524         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3525         * i386v-nat.c: Include "i386-tdep.h".
3526
3527 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3528
3529         * gdbtypes.c (address_space_name_to_int): Update.
3530         (address_space_int_to_name): Update.
3531         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3532         multi-arch predicate.
3533         (address_class_name_to_type_flags): Ditto.
3534         * gdbarch.h, gdbarch.c: Re-generate.
3535         
3536         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3537
3538 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3539
3540         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3541
3542 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3543
3544         * symtab.h (INIT_SAL): Delete macro.
3545         (init_sal): Export.
3546         * symtab.c (init_sal): New function.
3547
3548         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3549         to init_sal function call.
3550         (find_sal_from_funcs_and_line): Ditto.
3551         (all_sals_for_line): Ditto. 
3552         * breakpoint.c (create_internal_breakpoint): Ditto. 
3553         (create_fork_vfork_event_catchpoint): Ditto. 
3554         (create_exec_event_catchpoint): Ditto. 
3555         (parse_breakpoint_sals): Ditto. 
3556         (watch_command_1): Ditto. 
3557         (handle_gnu_4_16_catch_command): Ditto.
3558         (clear_command): Ditto. 
3559         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3560         * infcmd.c (run_stack_dummy): Ditto. 
3561         * infrun.c (process_event_stop_test): Ditto.
3562         (check_sigtramp2): Ditto.
3563         (step_over_function): Ditto. 
3564         * linespec.c (decode_line_2): Ditto. 
3565         (decode_line_1): Ditto. 
3566         * source.c (line_info): Ditto. 
3567         * symtab.c (find_pc_sect_line): Ditto.
3568
3569 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3570
3571         * dwarf2cfi.c (struct context)
3572         (struct context_reg): Moved to dwarf2cfi.h
3573         (context_alloc, frame_state_alloc, context_cpy):
3574         Made extern instead of static, removed prototypes.
3575         * dwarf2cfi.h (struct context)
3576         (struct context_reg): New, moved from dwarf2cfi.c
3577         (context_alloc, frame_state_alloc, context_cpy):
3578         New prototypes.
3579         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3580         Changed from static to extern.
3581         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3582         (LINUX_SIGCONTEXT_FP_OFFSET)
3583         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3584         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3585         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3586         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3587         set_gdbarch_*() calls now use x86-64 specific functions 
3588         instead of DWARF2 CFI ones.
3589         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3590         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3591         (x86_64_init_extra_frame_info): New prototypes.
3592         
3593 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3594
3595         * linespec.c: #include "parser-defs.h".
3596         Delete prototype for find_template_name_end.
3597         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3598
3599 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3600
3601         * NEWS: add recent mi fixes.
3602         * varobj.c (struct varobj): Add new "updated" flag.
3603         (new_variable): Default "updated" flag to 0.
3604         (varobj_set_value): Set "updated" flag to 1 if value
3605         changes.
3606         (varobj_update): Check varobj "updated" flag before
3607         comparing old and refreshed values.  Fix for
3608         PR gdb/702.
3609
3610 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3611
3612         * parse.c (parse_exp_1): Use BLOCK_START.
3613         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3614         SYMBOL_BLOCK_VALUE.
3615         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3616
3617 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3618
3619         * symtab.c: Delete cplusplus_hint.
3620         Delete prototype for find_template_name_end.
3621
3622 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3623
3624         * symtab.h: Update comment.
3625
3626 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3627
3628         * printcmd.c (address_info): Restore quotes in output.
3629         * valops.c (value_of_local): Restore quotes in error message.
3630
3631 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3632
3633         * symtab.c (symbol_demangled_name): New function.
3634         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3635         turning most of it into a function.
3636         (symbol_demangled_name): Export.
3637
3638 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3639
3640         * valops.c (value_of_local): Restore quotes in error message.
3641
3642 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3643
3644         * symtab.c (symbol_init_language_specific): New function.
3645         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3646         turning most of it into a function.
3647         (symbol_init_language_specific): Export.
3648
3649 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3650
3651         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3652         (dwarf_attr_name): Ditto.
3653         (dwarf_type_encoding_name): Ditto.
3654         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3655         (process_die): Handle DW_TAG_namespace,
3656         DW_TAG_imported_declaration, DW_TAG_imported_module.
3657         (read_namespace): New function.
3658
3659 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3660
3661         * configure.in: Define NEW_PROC_API on Interix too.
3662         * configure: Regenerate.
3663
3664 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3665
3666         * configure: Regenerate using the proper version of autoconf.
3667
3668 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3669
3670         * findvar.c (read_var_value): Temporarily disable TLS code, until
3671         complete TLS support is added.
3672
3673 2002-10-21  Jim Blandy  <jimb@redhat.com>
3674             Elena Zannoni  <ezannoni@redhat.com>
3675
3676         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3677         for thread local storage locations.
3678         (struct symbol): Add objfile field.
3679         (SYMBOL_OBJFILE): Define.
3680         * dwarf2read.c (is_thread_local): New static variable.
3681         (new_symbol): If variable is in thread local fill in address class
3682         and objfile appropriately.
3683         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3684         stack operation.
3685         * printcmd.c (address_info): Print the information for thread
3686         local storage variable.
3687         * findvar.c (read_var_value): In case of thread local variable,
3688         defer to the target vector code to compute address.
3689
3690 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3691
3692         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3693         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3694
3695 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3696
3697         * symtab.h (address_class):  Rename
3698         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3699         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3700         * printcmd.c (address_info): Ditto.
3701         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3702
3703 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3704
3705         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3706         DBREG_DRX macro to acces debug registers.
3707
3708         * Makefile.in (i386obsd-tdep.o): New target.
3709
3710         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3711         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3712
3713         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3714         * config/i386/obsd.mt: New file.
3715         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3716         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3717         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3718         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3719         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3720         * i386obsd-tdep.c: New file.
3721
3722 2002-10-19  Adam Fedor  <fedor@gnu.org>
3723
3724         * objc-exp.y (name_not_typename): Fix invalid comment.  
3725
3726 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3727
3728         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3729         to allocate partial syms and macro byte caches.
3730
3731 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3732
3733         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3734
3735 2002-10-18  Adam Fedor  <fedor@gnu.org>
3736
3737         * stabsread.c (find_name_end): New function.
3738         (define_symbol): Use it.
3739
3740 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3741
3742         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3743         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3744         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3745         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3746
3747 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3748
3749         * symfile.h: Add opaque declaration for struct obstack.
3750         Declare obsavestring to take a const char *.
3751         * symfile.c (obsavestring): Make first argument a const char *.
3752
3753 2002-10-16  Adam Fedor  <fedor@gnu.org>
3754
3755         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3756         names when matching breakpoints in current file.
3757
3758 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3759
3760         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3761         (read_tag_pointer_type): Add address class support.
3762         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3763         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3764         New methods.
3765         * gdbarch.h, gdbarch.c: Regenerate.
3766         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3767         (make_type_with_address_space, recursive_type_dump): Add address
3768         class support.
3769         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3770         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3771         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3772
3773 2002-10-16  Klee Dienes  <kdienes@apple.com>
3774
3775         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3776         to get the last character of a char[] buffer, not
3777         name[sizeof(vptr_name)-1].
3778
3779 2002-10-14  Adam Fedor  <fedor@gnu.org>
3780
3781         * symtab.h: New objc_specific struct.
3782         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3783         (SYMBOL_DEMANGLED_NAME): Likewise.
3784
3785 2002-10-14  Adam Fedor  <fedor@gnu.org>
3786
3787         * symfile.c (init_filename_language_table): Add ObjC file extension.
3788
3789 2002-10-14  Adam Fedor  <fedor@gnu.org>
3790
3791         * utils.c (puts_filtered_tabular): New function.
3792         (fprintf_symbol_filtered): Get ObjC demangled name.
3793         * defs.h (puts_filtered_tabular): Declared.
3794
3795 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3796
3797         * c-lang.h (c_type_print_varspec_prefix): Delete.
3798         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3799         ``need_post_space'' parameter.  Adjust all callers.
3800
3801 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3802  
3803         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3804         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3805         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3806         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3807
3808 2002-10-13  Adam Fedor  <fedor@gnu.org>
3809
3810         * source.c (print_source_lines): Update comments.
3811
3812 2002-10-13  Adam Fedor  <fedor@gnu.org>
3813
3814         * valops.c (value_of_local): New function.
3815         (value_of_this): Use it.
3816         * value.h (value_of_local): Declared.
3817
3818 2002-10-13  Adam Fedor  <fedor@gnu.org>
3819
3820         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3821         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3822
3823 2002-10-12  Adam Fedor  <fedor@gnu.org>
3824
3825         * language.c (binop_result_type): Add language_objc to case.
3826         (integral_type): Likewise.
3827         (character_type): Likewise.
3828         (string_type): Likewise.
3829         (boolean_type): Likewise.
3830         (structured_type): Likewise.
3831         (binop_type_check): Likewise.
3832
3833 2002-10-11  Adam Fedor  <fedor@gnu.org>
3834
3835         * printcmd.c (address_info): Print 'self' for ObjC.
3836
3837 2002-10-11  Adam Fedor  <fedor@gnu.org>
3838
3839         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3840         OP_SELF.
3841
3842 2002-10-11  Adam Fedor  <fedor@gnu.org>
3843
3844         * language.h (CAST_IS_CONVERSION): Add language_objc.
3845
3846 2002-10-11  Adam Fedor  <fedor@gnu.org>
3847
3848         * defs.h (enum language): Add language_objc.
3849
3850 2002-10-11  Klee Dienes  <kdienes@apple.com>
3851
3852         * corefile.c (read_memory_typed_address): New function.
3853         * gdbcore.h (read_memory_typed_address): Add prototype.
3854         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3855         to read a value destined for a CORE_ADDR, not read_memory_integer.
3856         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3857         (f77_get_dynamic_lowerbound): Ditto.
3858
3859 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3860
3861         * utils.c (string_to_core_addr): After turning string into
3862         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3863         which will do necessary sign-extension, etc.
3864
3865 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3866
3867         * c-exp.y (THIS): Delete token and grammar rule.
3868         (yylex): Don't return THIS.
3869         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3870         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3871         * demangle.c (cplus_markers): Update comment.  Put '$'
3872         first.  Remove CPLUS_MARKER.
3873         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3874         * jv-exp.y (THIS): Delete token and grammar rule.
3875         (yylex): Don't return THIS.
3876         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3877         * objc-exp.y (THIS): Delete token and grammar rule.
3878         (yylex): Don't return THIS.
3879         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3880         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3881         (read_member_functions): Likewise for opname.
3882         (read_tilde_fields): Use is_cplus_marker.
3883
3884         * defs.h (CPLUS_MARKER): Don't define.
3885         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3886         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3887         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3888         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3889         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3890
3891         * config/i386/tm-i386v4.h: Delete file.
3892         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3893         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3894         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3895         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3896         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3897         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3898         * config/i386/i386v4.mt (TM_FILE): Likewise.
3899         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3900
3901 2002-10-10  Marko Mlinar  <markom@opencores.org>
3902
3903         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3904         accidentially not commited 2002-10-09
3905         * gdbarch.h, gdbarch.c: Re-generate.
3906
3907 2002-10-09  Marko Mlinar  <markom@opencores.org>
3908
3909         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3910         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3911         * gdbarch.h, gdbarch.c: Re-generate.
3912
3913 2002-10-08  Petr Sorfa <petrs@caldera.com>
3914
3915         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3916
3917         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3918         so we can work on more than one compilation unit at a time.  This
3919         helps prepare GDB to handle inter-CU die references.
3920         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3921         the code to be defined before struct comp_unit_head.
3922         (comp_unit_head): Added new members - offset, cu_head,
3923         begin_die, next and dwarf2_abbrevs.
3924         (dwarf2_abbrevs): Removed single static var; now member of
3925         struct comp_unit_head.
3926         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3927         members.
3928         (psymtab_to_symtab_1): Changed to work with the new
3929         struct comp_unit_head.
3930         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3931         constructs the dwarf2_abbrevs[] inside the cu_header.
3932         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3933         dwarf2_abbrev table to clean up.
3934         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3935         handling of dwarf2_abbrevs inside the cu_header.
3936         (read_partial_die): Now supports the call to the new
3937         dwarf2_lookup_abbrev.
3938         (read_full_die): Now supports the call to the new
3939         dwarf2_lookup_abbrev.
3940
3941 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3942
3943         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3944         insure that shell variables, such as "transformed_name" are propagated
3945         to later shell statements in rule.
3946
3947 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3948
3949         * config/i386/nm-i386sco.h: Add protection against
3950         multiple-inclusion.  Include "i386/nm-i386v.h".
3951         (REGISTER_U_ADDR): Remove define.
3952         (i386_register_u_addr): Remove prototype.
3953
3954 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3955
3956         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3957         before treating it as a single-step event.
3958
3959 2002-10-03  Adam Fedor  <fedor@gnu.org>
3960
3961         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3962         (objc_demangle): Remove assignment in if statements, Replace
3963         free with xfree.
3964         (add_msglist): Likewise.
3965         (end_msglist): Likewise.
3966         (complare_selectors): Likewise.
3967         (selectors_info): Likewise.
3968         (compare_classes): Likewise.
3969         (classes_info): Likewise.
3970         (print_object_command): Likewise.
3971         (find_objc_msgcall_submethod): Replace PTR with void *.
3972         * objc-lang.h: Remove check for __STDC__.
3973
3974 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3975
3976         * ui-out.h (ui_out_field_fmt_int): New prototype.
3977         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3978         of field width and alignment.
3979         * stack.c (print_frame_info_base): When printing frame level, use
3980         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3981         PR gdb/192
3982
3983 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3984
3985         * MAINTAINERS: Add self to Write After Approval list.
3986
3987 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3988
3989         * infcmd.c (interrupt_target_command_wrapper): Delete.
3990         (interrupt_target_command): Make non static.
3991         (nofp_registers_info): Make static.
3992         * stack.c (return_command_wrapper): Delete.
3993         (return_command): Make non static.
3994
3995 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3996
3997         * event-top.c (gdb_setup_readline): New function. Code moved from
3998         _initialize_event_loop().
3999         (_initialize_event_loop): Call gdb_setup_readline().
4000
4001 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
4002
4003         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4004         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
4005         * gdbarch.h, gdbarch.c: Re-generate.
4006
4007 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
4008
4009         Fix PR gdb/778
4010         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4011         before recursing.
4012         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4013         of fill_in_vptr_fieldno.
4014
4015 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
4016
4017         * inferior.h (registers_info, stepi_command, nexti_command,
4018         continue_command, interrupt_target_command): Export from infcmd.c.
4019         * frame.h (args_info, selected_frame_level_changed_hook,
4020         return_command): Export from stack.c.
4021         * v850ice.c (stepi_command, nexti_command, continue_command): use
4022         prototypes from inferior.h.
4023         * tracepoint.c (registers_info, args_info, locals_info): Use
4024         prototypes from frame.h and inferior.h.
4025         * Makefile.in (mi-main.o): Add dependency on frame.h.
4026
4027 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
4028
4029         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4030         value in register 3 adjusted by ppc_gp0_regnum.
4031
4032         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4033
4034 2002-10-02  Marko Mlinar <markom@opencores.org>
4035
4036         * MAINTAINERS: Add myself to the Write After Approval list.
4037
4038 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
4039
4040         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4041         of the section for the N64 ABI, fixed.
4042
4043         * config/mips/tm-irix6.h: Include solib.h.
4044
4045 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
4046
4047         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4048         GNU operators.
4049
4050 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4051
4052         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4053         and that "mi0" syntax has been removed.
4054
4055 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4056
4057         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4058         * ppc-sysv-tdep.c: #include "gdb_string.h".
4059         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4060         pacify GCC.
4061
4062 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4063
4064         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4065         "vrsave"'s register number.
4066
4067 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4068
4069         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4070         use frame_unwind_signed_register to obtain the PC.
4071         (mips_frame_chain): Handle a generic dummy frame.
4072         (mips_init_extra_frame_info): When a generic dummy frame, don't
4073         re-compute the frame base.
4074         (mips_pop_frame): Handle generic dummy frames.
4075         (mips_gdbarch_init): When generic dummy frames, set
4076         use_generic_dummy_frames, push_dummy_frame to
4077         generic_push_dummy_frame, pc_in_call_dummy to
4078         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4079         generic_save_dummy_frame_tos.
4080
4081 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4082
4083         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4084         against TOP when TOP was explictly set.
4085         (generic_push_dummy_frame): Set TOP to zero.
4086
4087 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4088
4089         * event-loop.c (start_event_loop): Rename variable 'result' to
4090         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4091
4092 2002-09-30  Keith Seitz  <keiths@redhat.com>
4093
4094         * gdb-events.sh (selected_thread_changed): New event.
4095         * gdb-events.c: Regenerated.
4096         * gdb-events.h: Regenerated.
4097
4098 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4099
4100         * MAINTAINERS: Add self to Write After Approval list.
4101
4102 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4103
4104         * disasm.c: New file.  
4105         * disasm.h: New file.  
4106         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4107         (compare_lines): Ditto.
4108         (dump_insns): Ditto.
4109         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4110         argument.
4111         (do_assembly_only): Ditto.
4112         (do_disassembly): Renamed to gdb_disassembly and moved to
4113         disasm.c.  Sdded uiout argument.
4114         * Makefile.in: Add new files.  Reorder SFILES list. Update
4115         dependencies.  Include libgdb.a later in the insight executable.
4116
4117 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4118
4119         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4120         bfd/elf64-alpha-fbsd.c.
4121
4122 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4123
4124         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4125         i386gnu-tdep.c.
4126
4127 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4128
4129         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4130         __FUNCTION__.
4131         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4132         function name.
4133         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4134         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4135         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4136         (S_msg_sig_post_reply): Ditto.
4137         
4138 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4139
4140         * sh-tdep.c (sh_use_struct_convention): Use definition according
4141         to ABI.
4142         (sh_push_arguments): Store in register with correct endianess.
4143         (sh_default_store_return_value): Ditto.
4144         (sh_gdbarch_init): Set sizeof long double to 8.
4145
4146 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4147
4148         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4149         Fix some whitespace problems.
4150
4151 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4152
4153         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4154         (mcore-tdep.o): Ditto.
4155         (ns32k-tdep.o): Ditto.
4156         (ns32knbsd-tdep.o): Ditto.
4157         (sh3-rom.o): Ditto.
4158         (vax-tdep.o): Ditto.
4159         * cris-tdep.c: #include "gdb_string.h"
4160         * mcore-tdep.c: Ditto.
4161         * ns32k-tdep.c: Ditto.
4162         * ns32knbsd-tdep.c: Ditto.
4163         * sh3-rom.c: Ditto.
4164         * vax-tdep.c: Ditto.
4165
4166 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4167
4168         * config/djgpp/fnchange.lst: Add entries for
4169         gdb/testsuite/gdb.c++/m-static files.
4170
4171 2002-09-27  Jim Wilson  <wilson@redhat.com>
4172
4173         * MAINTAINERS: Add myself to the Write After Approval list.
4174
4175 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4176
4177         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4178
4179
4180 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4181
4182         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4183         frame.
4184
4185 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4186
4187         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4188         (rs6000_struct_return_address): Delete variable.
4189         (rs6000_store_struct_return): Update.
4190         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4191         deprecated_extract_struct_value_address.
4192         (rs6000_frame_align): New function.
4193         (rs6000_gdbarch_init): Set frame_align.
4194
4195 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4196
4197         From Grace Sainsbury <graces@redhat.com>:
4198         * Makefile.in (gdbtk-main.o): New target.
4199         (gdb.o): New target.
4200         (main_h): Define.
4201         (main.o): Update dependencies.
4202         (gdb$(EXEEXT)): Add gdb.o.
4203         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4204         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4205         (SUBDIR_GDBTK_CLEAN): Set.
4206         (install-gdbtk): Install the insight binary.
4207         (uninstall-gdbtk): New target.
4208         (all-gdbtk, clean-gdbtk): New rule.
4209         * top.c (use_windows): Default to zero.
4210         * main.c: Include "main.h".
4211         (main): Delete.
4212         (struct captured_main_args): Delete.
4213         (gdb_main): New function.
4214         * main.h: New file.
4215         * gdb.c: New File.
4216
4217 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4218
4219         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4220         (frame_map_regnum_to_name): New function.
4221         (frame_map_name_to_regnum): New function.
4222         * frame.h (frame_map_name_to_regnum): Declare.
4223         (frame_map_regnum_to_name): Declare.
4224         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4225         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4226         * parse.c: Do not include "builtin-regs.h".
4227         (target_map_name_to_register): Delete function.
4228         (write_dollar_variable): Use frame_map_name_to_regnum.
4229         * parser-defs.h (target_map_name_to_register): Delete declaration.
4230         * expprint.c: Include "frame.h".
4231         (print_subexp): Use frame_map_regnum_to_name.
4232         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4233         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4234
4235 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4236
4237         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4238         wasn't saved, and the next innermost frame is a dummy, return the
4239         dummy frame's link register.
4240
4241 2002-09-24  Jim Blandy  <jimb@redhat.com>
4242
4243         Fix from Paul Breed:
4244         * main.c (captured_main): Add a `break' after the case for 'b'.
4245
4246 2002-09-24  Keith Seitz  <keiths@redhat.com>
4247
4248         * varobj.c (c_type_of_child): Use get_target_type instead
4249         of TYPE_TARGET_TYPE.
4250
4251 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4252
4253         * source.c (get_current_or_default_source_symtab_and_line): Remove
4254         function.
4255         (set_default_source_symtab_and_line): New function. Attempts to
4256         determine a source file to list lines from if one is not currently
4257         defined.
4258         (get_current_source_symtab_and_line): Initialize sal.pc and
4259         sal.end fields.
4260         (set_current_source_symtab_and_line): Mark argument as const.
4261         * source.h: Update declarations and comments.
4262         * linespec.c (decode_line_1): Replace call to removed routine above.
4263         * stack.c (print_frame_info_base): Ditto.
4264         * cli/cli-cmds.c (edit_command): Ditto.
4265         (list_command): Ditto.
4266
4267 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4268
4269         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4270         sal.pc and sal.end fields.
4271         (get_current_or_default_source_symtab_and_line): Ditto.
4272         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4273         so we do not cause a new source symtab to be searched for (reverting an
4274         unintentional change from the 2002-09-20 patch).
4275         * scm-lang.c (scm_unpac): Ditto.
4276
4277 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4278
4279         * complaints.c (symfile_explanations): Remove new-line from
4280         ``isolated_message''.
4281         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4282         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4283
4284 2002-09-20  Nick Clifton  <nickc@redhat.com>
4285         
4286         * NEWS: Announce that V850EA ISA is no longer supported.
4287         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4288
4289 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4290
4291         * Makefile.in (c-lang.o): Correct dependencies.
4292         (utils.o): Gather dependencies.
4293         (charset.o): Move.
4294         * c-lang.c: #include "gdb_string.h"
4295
4296 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4297
4298         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4299         * cli/cli-cmds.c (list_command): New function.  Implements the new
4300         cli edit command.
4301         (_init_cli_cmds): Add new command definition.
4302         * gdb.1: Document edit command.
4303         * doc/gdb.texinfo: Document edit command.
4304
4305 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4306
4307         * source.c: Make global variables current_source_symtab and
4308         current_source_line static.
4309         (list_command): Moved to cli/cli-cmds.c.
4310         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4311         (get_first_line_listed): New accessor function.
4312         (get_lines_to_list): New accessor function.
4313         (get_current_source_symtab_and_line): New function. Retrieves the
4314         position in the source code that we consider current.
4315         (get_current_or_default_source_symtab_and_line): New function.
4316         Like the above but attempts to determine a default position if one
4317         is not currently defined.
4318         (set_current_source_symtab_and_line): New function. Sets the source
4319         code position considered current and returns the previously set one.
4320         (clear_current_source_symtab_and_line): Reset stored information about
4321         a current source line.
4322         (_initialize_source): Remove registration for the "list" command and
4323         its alias.
4324         * source.h: Add declarations for the new functions above.
4325         * symtab.h: Remove declarations for the global variables mentioned
4326         above.
4327         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4328         obtain current source line.
4329         * linespec.c (decode_line_1): Ditto.
4330         * macroscope.c (default_macro_scope): Ditto.
4331         * scm-lang.c (scm_unpac): Ditto.
4332         * stack.c (print_frame_info_base): Ditto.
4333         * symfile.c (clear_symtab_users): Ditto.
4334         * symtab.c (decode_line_spec): Ditto.
4335         * cli/cli-cmds.c (list_command): Moved here from source.c.
4336         (ambiguous_line_spec): Moved here from source.c.
4337         (_init_cli_cmds): Add definition for "list" and its alias.
4338         * Makefile.in: Update dependencies.
4339
4340 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4341
4342         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4343         with what gcc thinks is correct.
4344
4345 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4346
4347         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4348         multiple register push instruction.
4349
4350 2002-09-19  Jim Blandy  <jimb@redhat.com>
4351
4352         Add support for distinct host and target character sets.
4353         * charset.c, charset.h: New files.
4354         * c-exp.y: #include "charset.h".
4355         (yylex): Convert character and string literals to the target
4356         character set, before returning them as the semantic value of the
4357         token.
4358         * c-lang.c: #include "charset.h".
4359         (c_emit_char): Use charset-specific methods to recognize
4360         characters with backslash escape forms, to decide which characters
4361         to print literally and which to print using numeric escape
4362         sequences, and to convert target characters to host characters
4363         before printing.
4364         * utils.c: #include "charset.h".
4365         (no_control_char_error): New function.
4366         (parse_escape): Use charset-specific methods to recognize
4367         backslash escapes, parse `control character' notation, and convert
4368         characters from the host character set to the target character set.
4369         * configure.in: Set the default host character set.
4370         Check where to find iconv, and what its argument types might be.
4371         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4372         * Makefile.in (SFILES): List charset.c.
4373         (COMMON_OBS): List charset.o.   
4374         (charset.o): New rule.
4375         (charset_h): New header dependency variable.
4376         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4377         (LIBICONV): New variable, set by configure.
4378         (CLIBS): Include $(LIBICONV) here.
4379         * aclocal.m4, config.in, configure: Regenerated.
4380
4381 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4382
4383         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4384         bison 1.35 warning.
4385
4386 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4387
4388         * gdb_mbuild.sh: New file.
4389
4390 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4391
4392         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4393
4394 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4395
4396         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4397         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4398         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4399         valops.c, value.h: Revert previous change.
4400         
4401 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4402
4403         Preliminary support for Objective-C:
4404         * defs.h (language_objc): New enum value.
4405         (puts_filtered_tabular): Declaration only, exported from utils.c.
4406         (skip_quoted): Delete, declared in completer.h.
4407         * c-exp.y: Include completer.h.
4408         * p-exp.y: Ditto.
4409         * jv-exp.y: Ditto.
4410         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4411         New operator enum values.
4412         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4413         * language.c (binop_result_type): Handle language_objc case.
4414         (integral_type, character_type, string_type, boolean_type,
4415         structured_type, binop_type_check): Ditto.
4416         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4417         (struct objc_specific): Add to general_symbol_info.
4418         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4419         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4420         * parser-defs.h (struct objc_class_str): New struct type.
4421         (start_msglist, end_msglist, add_msglist): Declaration only,
4422         exported from objc-lang.c.
4423         * value.h (value_of_local, value_nsstring, 
4424         call_function_by_hand_expecting_type): Exported from valops.c.
4425         * valops.c (find_function_addr): Export.
4426         (call_function_by_hand_expecting_type): New function.
4427         (value_of_local): New function.
4428         * symfile.c (init_filename_language_table): Add ".m" extension
4429         for Objective-C.
4430         * utils.c (puts_filtered_tabular): New function.
4431         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4432         (set/show demangle): Extend help-string to refer to ObjC.
4433         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4434         * stabsread.c (symbol_reference_defined): Objective-C symbols
4435         may contain colons: make allowances when scanning stabs strings
4436         for colons.
4437         (objc_find_colon): New function.
4438         * printcmd.c (address_info): If language == objc then print
4439         "self" instead of "this".
4440         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4441         OP_NSSTRING, and OP_SELF.
4442         (prefixify_subexp): Ditto.
4443         * source.c (print_source_lines): Mention objc in comment.
4444         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4445         method names.
4446
4447 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4448
4449         * complaints.h: Update copyright.
4450         (struct complaints): Declare.
4451         (struct complaint): Make `message' constant.
4452         (internal_complaint): Declare.
4453         (complaint): Declare.
4454         (complaint_root): Delete declaration.
4455         (symfile_complaints): Delete declaration.
4456         (struct complaints): Add opaque declaration.
4457         (clear_complaints): Add a complaints parameter.
4458         * complaints.c: Update copyright.
4459         (enum complaint_series): Define.
4460         (complaint_root): Delete.
4461         (struct complaints): Define.
4462         (complaint_sentinel, symfile_complaint_book): New variables.
4463         (symfile_explanations, symfile_complaints): New variables.
4464         New variables.
4465         (get_complaints): New function.
4466         (vcomplaint): New function.
4467         (complaint): New function.
4468         (internal_complaint): New function.
4469         (complain): Call vcomplain with symfile_complaint.
4470         (clear_complaints): Rewrite.
4471         (_initialize_complaints): Use add_setshow_command.
4472         * Makefile.in (complaints.o): Update dependencies.
4473         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4474         to call to clear_complaints.
4475         (new_symfile_objfile, reread_symbols): Ditto.
4476         (oldsyms_complaint): Delete.
4477         (empty_symtab_complaint, unknown_option_complaint): Delete.
4478         (free_named_symtabs): Use complaint instead of complain.
4479
4480 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4481
4482         Contributed by Apple Computer, Inc.  Merged with current sources
4483         by Adam Fedor <fedor@doc.com> [cagney].
4484         
4485         * objc-lang.c: First clean-up round: comments, indentation.
4486         * objc-lang.h: Ditto.
4487         * objc-lang.y: Ditto.
4488
4489 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4490
4491         * maint.c (maintenance_internal_error): Print the parameter as the
4492         error message.
4493         (maintenance_internal_warning): New function.
4494         (_initialize_maint_cmds): Add command `maint internal-warning'.
4495
4496         * defs.h (internal_warning, internal_vwarning): Declare.
4497         * utils.c (struct internal_problem): Define.
4498         (internal_vproblem): New function.
4499         (internal_warning): New function.
4500         (internal_vwarning): New function.
4501         (internal_warning_problem, internal_error_problem): New variables.
4502         (internal_verror): Just call internal_vproblem.
4503
4504 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4505
4506         * objc-lang.c: New file, support for Objective-C.
4507         Preliminary check-in, not yet integrated into gdb.
4508         * objc-lang.h: New file.
4509         * objc-exp.y:  New file.
4510
4511 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4512
4513         * infrun.c (signal_stop_update): Convert definition to ISO C.
4514         (signal_print_update): Ditto.
4515         (signal_pass_update): Ditto.
4516         * inflow.c (terminal_save_ours): Ditto.
4517
4518         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4519         comments.
4520         
4521         * config/djgpp/fnchange.lst: Handle name clashes between
4522         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4523         bfd/coff-tic80.c.
4524
4525         * i386-linux-tdep.h: Fix tipo.
4526
4527 2002-09-18  Adam Fedor  <fedor@gnu.org>
4528
4529         * MAINTAINERS: Add myself to the Write After Approval list.
4530
4531 2002-09-18  Jim Blandy  <jimb@redhat.com>
4532
4533         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4534         texthigh and textlow to reader-specific structs caused
4535         objfile_relocate to miss them.  This is fixable, but the work that
4536         the change was supposed to prepare GDB for never got done anyway.
4537
4538 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4539
4540         * MAINTAINERS: Alphabetize Write After Approval list.
4541
4542 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4543
4544         Fix PR gdb/709
4545         * values.c (value_static_field): Call read_var_value.
4546
4547 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4548
4549         * valops.c (hand_function_call): Align the initial stack pointer
4550         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4551         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4552         return value.
4553         * mips-tdep.c (mips_frame_align): New function.
4554         (mips_gdbarch_init): Set frame_align.
4555         * gdbarch.sh (FRAME_ALIGN): New method.
4556         * gdbarch.h, gdbarch.c: Re-generate.
4557
4558 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4559
4560         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4561         registers.
4562
4563 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4564
4565         * NEWS: Mention that MIPS $fp behavior changed.
4566         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4567         reference to FP_REGNUM.
4568         (mipsnbsd_cannot_store_register): Ditto.
4569         * mips-linux-nat.c: Update copyright.
4570         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4571         (mips_linux_cannot_store_register): Ditto.
4572         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4573         * config/mips/tm-mips.h: Update copyright.
4574         (FP_REGNUM): Delete macro.
4575         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4576         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4577         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4578         (mips_r3041_reg_names, mips_r3051_reg_names)
4579         (mips_r3081_reg_names): Replace "fp" with "".
4580         Fix PR gdb/480.
4581
4582 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4583
4584         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4585         generic_read_register_dummy() (PR gdb/703).
4586         (avr_push_return_address): #if 0 out unused vars.
4587         (avr_gdbarch_init): Enable use of avr_push_return_address().
4588
4589 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4590
4591         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4592         RTE will take care of it.
4593
4594 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4595
4596         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4597         invalid, return SP_REGNUM.
4598
4599 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4600
4601         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4602         point registers without sign extension.
4603
4604 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4605
4606         * blockframe.c (deprecated_read_register_dummy): Rename
4607         generic_read_register_dummy.
4608         * frame.c (frame_unwind_signed_register): New function.
4609         (frame_unwind_unsigned_register): New function.
4610         * frame.h (frame_unwind_signed_register): Declare.
4611         (frame_unwind_unsigned_register): Declare.
4612         (deprecated_read_register_dummy): Rename
4613         generic_read_register_dummy.
4614
4615         * h8300-tdep.c (h8300_frame_chain): Update.
4616         (h8300_frame_saved_pc): Update.
4617         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4618         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4619         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4620         (s390_frame_chain): Update.
4621         * v850-tdep.c (v850_find_callers_reg): Update.
4622         (v850_frame_saved_pc): Update.
4623         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4624         (m32r_find_callers_reg): Update.
4625         (m32r_frame_saved_pc): Update.
4626         * sh-tdep.c (sh_find_callers_reg): Update.
4627         (sh64_get_saved_pr): Update.
4628         (sh_init_extra_frame_info): Update.
4629         (sh_init_extra_frame_info): Update.
4630         (sh64_init_extra_frame_info): Update.
4631         (sh64_init_extra_frame_info): Update.
4632         * mcore-tdep.c (mcore_find_callers_reg): Update.
4633         (mcore_frame_saved_pc): Update.
4634         (mcore_init_extra_frame_info): Update.
4635         * i386-tdep.c (i386_frame_saved_pc): Update.
4636         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4637         (ia64_init_extra_frame_info): Update.
4638         (ia64_init_extra_frame_info): Update.
4639         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4640         * cris-tdep.c (cris_init_extra_frame_info): Update.
4641         * avr-tdep.c (avr_frame_chain): Update.
4642         (avr_init_extra_frame_info): Update.
4643         (avr_frame_saved_pc): Update.
4644         * arm-tdep.c (arm_find_callers_reg): Update.
4645         (arm_init_extra_frame_info): Update.
4646         (arm_frame_saved_pc): Update.
4647
4648 2002-09-17  Tom Tromey  <tromey@redhat.com>
4649
4650         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4651         is "'".
4652
4653 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4654
4655         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4656         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4657         NEXT_PROLOGUE_INSN.
4658         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4659         NEXT_PROLOGUE_INSN.
4660
4661 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4662
4663         * osfsolib.c: Remove file, replaced by solib-osf.c.
4664         * Makefile.in: Remove compilation rules for osfsolib.c.
4665
4666 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4667
4668         * cp-valprint.c (cp_print_class_method): Correct args to
4669         check_stub_method_group.
4670
4671 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4672
4673         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4674         `set architecture'.  Unify naming convention of functions.
4675         (h8300_skip_prologue): Improve prologue analysis.
4676         (h8300_push_arguments): Rewritten to more closely match GCC's
4677         bizarre argument-passing behavior, along with the comment describing
4678         said behavior.
4679         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4680         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4681         sim, remote-e7000.c, remote-hms.c and remote.c
4682
4683 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4684
4685         * i386-tdep.c (gdb_print_insn_i386): Removed.
4686         (i386_print_insn): New function.
4687         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4688         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4689         tm_print_insn_info.
4690
4691 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4692
4693         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4694         zero.
4695
4696 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4697
4698         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4699         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4700         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4701
4702 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4703
4704         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4705
4706 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4707
4708         * gdbtypes.c (check_stub_method): Make static.
4709         (check_stub_method_group): New function.
4710         * gdbtypes.h: Update prototypes.
4711         * cp-support.c: New file.
4712         * cp-support.h: New file.
4713
4714         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4715         (update_method_name_from_physname): New function.
4716         (read_member_functions): Correct method names for operators
4717         and v3 constructors/destructors.  Separate v2 constructors and
4718         destructors.
4719         * Makefile.in (stabsread.o): Update dependencies.
4720         (SFILES): Add cp-support.c.
4721         (COMMON_OBS): Add cp-support.o.
4722         (cp_support_h, cp-support.o): Add.
4723
4724         * cp-valprint.c (cp_print_class_method): Call
4725         check_stub_method_group instead of check_stub_method.  Remove
4726         extraneous QUITs.
4727         * p-valprint.c (pascal_object_print_class_method): Likewise.
4728         * valops.c (search_struct_method): Likewise.
4729         (find_method_list, value_struct_elt_for_reference): Likewise.
4730
4731 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4732
4733         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4734         * gdbarch.h, gdbarch.c: Regenerate.
4735
4736 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4737
4738         * frame.c (find_saved_register): Delete function.
4739         * frame.h (find_saved_register): Delete declaration.
4740         Fix PR gdb/631.
4741
4742 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4743
4744         * mips-tdep.c (read_next_frame_reg): Re-hack using
4745         frame_register_unwind.
4746
4747 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4748
4749         * mips-tdep.c (mips_get_saved_register): Re-hack using
4750         frame_register_unwind.
4751
4752 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4753
4754         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4755         vector. Will be useful for Interix.  
4756         * gdbarch.h, gdbarch.c: Regenerate.
4757
4758         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4759         name of the malloc function by NAME_OF_MALLOC.
4760
4761 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4762
4763         * value.h (find_function_in_inferior): Add const keyword to
4764         one of the parameters. Allows us to invoke this function with
4765         a const char *.
4766         * valops.c (find_function_in_inferior): Likewise.
4767
4768 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4769
4770         * exec.c (xfer_memory): Fix compilation warning with old versions
4771         of GCC.
4772         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4773
4774 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4775
4776         * symtab.h: Run through gdb_indent.h.
4777         Add 2002 to Copyright year list.
4778
4779 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4780
4781         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4782         mach constants.
4783         * MAINTAINERS: Add myself to write after approval list.
4784
4785 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4786
4787         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4788
4789 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4790
4791         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4792         Interix.
4793
4794 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4795
4796         * procfs.c (do_detach): Clear current signal, not just fault.
4797         Corrects problem with breakpoint trap signal leaking to detached
4798         process on Tru64.
4799
4800 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4801
4802         * buildsym.c (finish_block): Protect against null pointer.
4803
4804 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4805
4806         * infcmd.c (default_print_registers_info): Send all output to
4807         ``file'' instead of ``gdb_stdout''.
4808
4809 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4810
4811         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4812         LONGEST, and use signed register read (addresses are sign-
4813         extended for mips).
4814
4815 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4816
4817         * event-loop.c (gdb_do_one_event): Make public.
4818         * event-loop.h (gdb_do_one_event): Declare.
4819
4820 2002-09-10  Jeff Law  <law@redhat.com>
4821
4822         * infttrace.c (child_resume): Simplify and rework to avoid
4823         TT_PROC_CONTINUE.
4824
4825 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4826
4827         * printcmd.c (print_scalar_formatted): "len" is the number of
4828         target bytes, NOT the number of target bits.
4829
4830 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4831
4832         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4833         * top.c (init_main): Set rl_terminal_name.
4834
4835 2002-09-08  Aidan Skinner <aidan@velvet.net>
4836
4837         * ada-lang.c (ada_array_bound, ada_type_match,
4838         _initialize_ada_language): Fix K&R definitions.
4839         * ada-tasks.c (get_current_task): Fix K&R definitions.
4840         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4841                         
4842 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4843
4844         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4845         Add XP.
4846
4847 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4848
4849         * i386-tdep.c (i386_register_virtual_type,
4850         i386_register_convertible, i386_register_convert_to_virtual,
4851         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4852         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4853         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4854         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4855         Don't set push_arguments twice.
4856
4857         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4858         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4859         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4860         sigtramp_end to NULL.
4861         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4862         defines.
4863         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4864
4865         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4866         whitespace.
4867
4868         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4869         * gdbarch.h, gdbarch.c: Re-generate.
4870         * blockframe.c (find_pc_sect_partial_function): Convert to use
4871         SIGTRAMP_START_P predicate.
4872
4873 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4874
4875         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4876         generic_dummy_frame method and old method.  Also distinguish
4877         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4878         (arm_extract_return_value): Use new regcache method.
4879
4880         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4881         adjustment that doesn't conform to the ABI.
4882         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4883         saved regcache, not from current regcache.
4884
4885 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4886
4887         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4888         * README: Update.
4889
4890 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4891
4892         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4893         if arm_apcs_32 is false.
4894
4895 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4896
4897         GDB 5.3 branch created.
4898
4899 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4900
4901         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4902         generic_unwind_get_saved_register.
4903
4904 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4905
4906         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4907         argument (PR gdb/653).  Update call to smash_to_method_type.
4908         (read_structure_scope): Update call to dwarf2_add_member_fn.
4909
4910 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4911
4912         * x86-64-linux-tdep.c: Include gdb_string.h
4913         * x86-64-linux-nat.c: Ditto.
4914
4915 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4916
4917         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4918         when YYDEBUG is set to 1.  
4919         * c-exp.y: Likewise.
4920         * f-exp.y: Likewise.
4921         * jv-exp.y: Likewise.
4922         * m2-exp.y: Likewise.
4923         * p-exp.y: Likewise.
4924
4925 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4926
4927         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4928         dependency list.
4929         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4930         solib_svr4_fetch_link_map_offsets to
4931         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4932         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4933         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4934         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4935         solib-svr4.o, and solib-legacy.o.
4936         * config/i386/tm-nbsd.h: Include solib.h.
4937
4938 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4939
4940         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4941         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4942         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4943         comment noting that this needs its own target configuration.
4944         * config/i386/nbsd.mt: New file.
4945         * config/i386/nbsdaout.mt: Remove.
4946         * config/i386/nbsdelf.mt: Ditto.
4947         * config/i386/tm-nbsdaout.h: Ditto. 
4948
4949 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4950
4951         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4952         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4953         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4954         tdep->sigtramp_end.
4955         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4956         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4957         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4958
4959 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4960
4961         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4962         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4963         * i386-tdep.h (i386bsd_init_abi): New prototype.
4964         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4965         function declaration.
4966         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4967         for NetBSD-a.out or NetBSD-ELF.
4968         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4969         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4970         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4971         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4972         and nbsd-tdep.h.
4973         (i386nbsd_pc_in_sigtramp): New function.
4974         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4975         i386nbsd_pc_in_sigtramp.
4976         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4977         and i386nbsdelf_init_abi OS ABI handlers.
4978         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4979         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4980
4981 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4982
4983         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4984         registers if the target really has them.
4985
4986 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4987
4988         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4989         than nbsd-tdep.h.
4990
4991 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4992
4993         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4994         list.
4995         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4996         (alphanbsd_skip_sigtramp_frame): New functions. 
4997         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4998         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4999         to alphanbsd_sigcontext_addr. 
5000
5001 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
5002
5003         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
5004         list.
5005         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
5006         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5007         nbsd_pc_in_sigtramp. 
5008         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5009         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5010         * nbsd-tdep.c: Include gdb_string.h.
5011         (nbsd_pc_in_sigtramp): New function. 
5012         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
5013         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5014         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5015         ppcnbsd_pc_in_sigtramp. 
5016         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5017         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5018         shnbsd_pc_in_sigtramp. 
5019         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5020         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
5021         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5022
5023 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5024
5025         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5026         watchpoints to NULL.
5027         (insert_breakpoints): set val field of watchpoints if NULL.
5028
5029
5030 2002-08-29  Jim Blandy  <jimb@redhat.com>
5031
5032         * symtab.c (lookup_symbol_aux): In the cases where we find a
5033         minimal symbol of an appropriate name and use its address to
5034         select a symtab to read and search, use `name' (as passed to us)
5035         as the demangled name when searching the symtab's global and
5036         static blocks, not the minsym's name.
5037
5038 2002-08-29  Keith Seitz  <keiths@redhat.com>
5039
5040         * stack.c (print_frame_info_base): Always set current_source_symtab
5041         and current_source_line.
5042
5043 2002-08-29  Donn Terry  <donnte@microsoft.com>
5044
5045         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5046
5047 2002-08-28  Keith Seitz  <keiths@redhat.com>
5048
5049         * stack.c (select_frame): Add FIXME concerning selected-frame
5050         events.
5051         (select_frame_command): Send selected-frame-level-changed
5052         event notification, but only if the level actually changed.
5053         (up_silently_base): Add selected-frame-level-changed event
5054         notification.
5055         (down_silently_base): Likewise.
5056
5057 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5058
5059         * Makefile.in: Update dependencies for all gdb/*.c files.
5060
5061 2002-08-27  Tom Tromey  <tromey@redhat.com>
5062
5063         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5064         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5065         Update dependencies.
5066         * i387-tdep.c: Include gdb_string.h.
5067         * osabi.c: Likewise.
5068         * i386-linux-nat.c: Likewise.
5069         * lin-lwp.c: Likewise.
5070         * ax-gdb.c: Likewise.
5071         * signals/signals.c: Likewise.
5072         * jv-valprint.c: Likewise.
5073         * p-lang.c: Likewise.
5074         * c-valprint.c: Likewise.
5075         * cp-abi.c: Likewise.
5076
5077 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5078
5079         * cli/cli-script.h (copy_command_lines): Export.
5080         * breakpoint.c: Include cli/cli-script.h.
5081         * Makefile.in (breakpoint.o): Update dependencies.
5082
5083 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5084
5085         * breakpoint.c (insert_breakpoints): Protect all references
5086         to 'process_warning'.  Shorten long lines.
5087
5088 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5089
5090         * cli/cli-script.c (copy_command_lines): New function.
5091         * defs.h (copy_command_lines): Export.
5092         * testsuite/gdb.base/commands.exp: New tests for commands
5093         attached to a temporary breakpoint, and for commands that
5094         delete the breakpoint they are attached to.
5095         
5096 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5097
5098         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5099         pointer to the breakpoint commands struct, make a new copy
5100         of the struct and point to that.
5101         (bpstat_clear): Free the commands struct.
5102         (bpstat_clear_actions): Free the commands struct.
5103         (bpstat_do_actions): Free the command actions.  Also execute
5104         the local cleanups, instead of deleting them.
5105         (delete_breakpoint): Leave the commands field of the bpstat
5106         chain alone -- it will be freed later.
5107
5108 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5109
5110         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5111         deleted in 2002-08-20 commit.  This function is still used by
5112         ppc-linux-nat.c.
5113
5114 2002-08-26  Keith Seitz  <keiths@redhat.com>
5115
5116         * gdb-events.sh: Add selected-frame-level-changed event.
5117         * gdb-events.c: Regenerated.
5118         * gdb-events.h: Regenerated.
5119         
5120 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5121
5122         Fix PR gdb/393:
5123         * inflow.c (terminal_save_ours): New function to save terminal
5124         settings.
5125         * inferior.h (terminal_save_ours): Declare.
5126         * target.c (debug_to_terminal_save_ours): New function.
5127         (cleanup_target): Defaults to_terminal_save_ours.
5128         (update_current_target): Inherit to_terminal_save_ours.
5129         (setup_target_debug): Set to_terminal_save_ours.
5130         * target.h (target_terminal_save_ours): New to save terminal settings.
5131         (target_ops): New member to_terminal_save_ours.
5132         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5133         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5134         * inftarg.c (init_child_ops): Likewise.
5135         * m3-nat.c (init_m3_ops): Likewise.
5136         * procfs.c (init_procfs_ops): Likewise.
5137         * wince.c (init_child_ops): Likewise.
5138         * win32-nat.c (init_child_ops): Likewise.
5139         * sol-thread.c (init_sol_thread_ops): Likewise.
5140
5141 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5142
5143         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5144         use regcache_* functions.
5145         (i386_gdbarch_init): Set store_return_value instead of
5146         deprecated_store_return_value.
5147
5148         * regcache.c (regcache_raw_write_signed,
5149         regcache_raw_write_unsigned): New functions.
5150         * regcache.h (regcache_raw_write_signed,
5151         regcache_raw_write_unsigned): New prototypes.
5152
5153 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5154
5155         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5156         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5157         source file dependencies.  Cleanup corresponding generator rules.
5158
5159 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5160
5161         * regcache.h (register_offset_hack): Declare.
5162         (regcache_cooked_read_using_offset_hack): Declare.
5163         (regcache_cooked_write_using_offset_hack): Declare.
5164
5165         * regcache.c (register_offset_hack): New function.
5166         (regcache_cooked_read_using_offset_hack): New function.
5167         (regcache_cooked_write_using_offset_hack): New function.
5168         (regcache_dump): Check that the registers, according to their
5169         offset, are packed hard against each other.
5170         (cooked_xfer_using_offset_hack): New function.
5171
5172 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5173
5174         * regcache.c (struct regcache_descr): Add field register_type.
5175         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5176         in as a parameter
5177         (init_regcache_descr): Initialize register_type.  Pass the descr
5178         to init_legacy_regcache_descr.  Use register_type instead of
5179         REGISTER_VIRTUAL_TYPE.
5180         (register_type): New function.
5181         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5182         * regcache.h (register_type): Declare.
5183
5184 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5185
5186         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5187         instead of deprecated_store_return_value.  Fix fallout from
5188         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5189
5190 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5191
5192         * regcache.c (max_register_size): New function.
5193         (init_legacy_regcache_descr): Ensure that max_register_size is
5194         large enough for REGISTER_VIRTUAL_SIZE.
5195         * regcache.h (max_register_size): Declare.
5196
5197 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5198
5199         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5200         store_return_value.
5201         (e500_extract_return_value): Change type of valbuf pointer to
5202         void.
5203
5204 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5205
5206         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5207         workaround.
5208
5209         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5210         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5211         long long) to prevent compiler warning on 64-bit systems.
5212
5213 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5214
5215         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5216         (DEPRECATED_STORE_RETURN_VALUE): New method.
5217         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5218         * gdbarch.h, gdbarch.c: Re-generate.
5219
5220         * values.c (set_return_value): Pass current_regcache to
5221         STORE_RETURN_VALUE.
5222         * arch-utils.h (legacy_store_return_value): Declare.
5223         * arch-utils.c (legacy_store_return_value): New function.
5224         (legacy_extract_return_value): Update parameters.
5225
5226         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5227         STORE_RETURN_VALUE.
5228         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5229         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5230         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5231         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5232         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5233         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5234         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5235         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5236         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5237         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5238
5239         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5240         * i386-tdep.c (i386_extract_return_value): Update.
5241         * arch-utils.c (legacy_extract_return_value): Update.
5242         * frv-tdep.c (frv_gdbarch_init): Update.
5243         * cris-tdep.c (cris_gdbarch_init): Update.
5244         * d10v-tdep.c (d10v_gdbarch_init): Update.
5245         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5246         * m68k-tdep.c (m68k_gdbarch_init): Update.
5247         * mcore-tdep.c (mcore_gdbarch_init): Update.
5248         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5249         * s390-tdep.c (s390_gdbarch_init): Update.
5250         * sparc-tdep.c (sparc_gdbarch_init): Update.
5251         * sh-tdep.c (sh_gdbarch_init): Update.
5252         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5253         * v850-tdep.c (v850_gdbarch_init): Update.
5254         * avr-tdep.c (avr_gdbarch_init): Update.
5255         * ia64-tdep.c (ia64_gdbarch_init): Update.
5256         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5257         * vax-tdep.c (vax_gdbarch_init): Update.
5258         * alpha-tdep.c (alpha_gdbarch_init): Update.
5259         * arm-tdep.c (arm_gdbarch_init): Update.
5260         * mips-tdep.c (mips_gdbarch_init): Update.
5261         * i386-tdep.c (i386_gdbarch_init): Update.
5262
5263 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5264
5265         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5266         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5267
5268 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5269
5270         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5271         problems.
5272
5273 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5274
5275         * infrun.c (handle_inferior_event): Move a comment outside of a
5276         function call, in order to avoid indent reformatting this part
5277         of the code in an unreadable way.
5278
5279 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5280
5281         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5282         when breakpoints fail. Move general breakpoint error messages to
5283         insert_breakpoints.  
5284         * breakpoint.c (insert_breakpoints): Change warnings when
5285         breakpoints are nto inserted to specify the type. Remove call to
5286         memory_error when hardware breakpoints can't be inserted. Remove
5287         multiple calls to warning so all messages are sent to the user at
5288         once.
5289         (delete_breakpoints): Make insert error messsages more explicit.
5290
5291 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5292
5293         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5294         gdbserver/ChangeLog.
5295
5296 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5297
5298         * i386-tdep.c: Include "objfiles.h".
5299         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5300         skip_trampoline_code.
5301         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5302         (CPLUS_MARKER): Define to '.'.
5303
5304         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5305         member.
5306         (linux_corefile_thread_callback): Increase args->num_notes.
5307         (linux_make_note_section): Initialize thread_args.num_notes, and
5308         use it to determine whether notes for any threads were created.
5309
5310 2002-08-23  Donn Terry  <donnte@microsoft.com>
5311
5312         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5313         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5314         and PCUNKILL.
5315         (write_with_trace): Conditionalize out the switch branch handling
5316         PCSHOLD if the corresponding macro is not defined. Likewise for
5317         PRSABORT and PRSTOP.
5318         This change will be needed by the Interix port.
5319
5320 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5321
5322         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5323         write_register wherever possible instead of manipulating the
5324         register bytes directly.
5325         Assign VALUE_CONTENTS to a variable and use that.
5326         The GPR numbers are now dependent on the architecture.
5327         
5328 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5329
5330         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5331         ev_offset fields.
5332         (skip_prologue): Add support for BookE/e500 instructions.
5333         (e500_extract_return_value): New function.
5334         (frame_get_saved_regs): Add support for saving ev registers and
5335         pseudo gpr's.
5336         (e500_store_return_value): New function.
5337         (rs6000_gdbarch_init): Move up default intializations of
5338         deprecated_extract_return_value and store_return_value.  Overwrite
5339         init of store_return_value with e500 specific version.
5340         Set extract_return_value for e500.
5341         
5342 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5343
5344         * blockframe.c (generic_call_dummy_register_unwind): Use
5345         regcache_cooked_read to catch cases in which the variable is
5346         stored in a pseudo register.
5347
5348 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5349
5350         * NEWS: Mention that the i960 has been made obsolete.
5351         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5352         i960-tdep.c
5353         (remote-nrom.o): Obsolete target.
5354         (remote-nindy.o, i960-tdep.o): Ditto.
5355         * remote-nrom.c: Make file obsolete.
5356         * remote-nindy.c, remote-vx960.c: Ditto.
5357         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5358         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5359         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5360         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5361         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5362         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5363         i960-*-vxworks* obsolete.
5364         * MAINTAINERS: Note that the i960 is obsolete.
5365
5366 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5367
5368         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5369         detach to allow reinitialization.
5370
5371 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5372
5373         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5374         attempt).
5375
5376 2002-08-22  Jim Blandy  <jimb@redhat.com>
5377
5378         * coffread.c (coff_symfile_read): Don't try to read the line
5379         number table from disk if the image file doesn't have a symbol
5380         table; we'll never actually look at the info anyway, and Windows
5381         ships DLL's with bogus file offsets for the line number data.
5382
5383 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5384
5385         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5386         an e500 executable.
5387
5388 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5389
5390         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5391         (MSYMBOL_SIZE): Replace macro with function.
5392         (DEFAULT_MIPS_TYPE): Delete unused macro.
5393         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5394         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5395
5396 2002-08-21  Jim Blandy  <jimb@redhat.com>
5397
5398         * valops.c (value_cast): Simplify and correct logic for doing a
5399         static cast from a pointer to a base class to a pointer to a
5400         derived class.
5401
5402 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5403
5404         * infcmd.c (default_print_registers_info): Replace
5405         do_registers_info.
5406         (registers_info): Use gdbarch_print_registers_info instead of
5407         DO_REGISTERS_INFO.
5408         * inferior.h (default_print_registers_info): Replace
5409         do_registers_info.
5410         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5411         (DO_REGISTERS_INFO): Change to a predicate function.
5412         * gdbarch.h, gdbarch.c: Regenerate.
5413         
5414 2002-08-21  Keith Seitz  <keiths@redhat.com>
5415
5416         * gdb-events.sh: Add target-changed event.
5417         * gdb-events.c: Regenerated.
5418         * gdb-events.c: Regenerated.
5419         * valops.c (value_assign): Add target-changed event notification
5420         to inlval_register, lval_memory, and lval_reg_frame_relative.
5421
5422 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5423
5424         * NEWS: Add an entry regarding the improvement of the next/step
5425         operation on Alpha Tru64 multi-processor machines.
5426
5427 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5428
5429         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5430         directores.
5431         * Makefile.in: Update all _h macro definitions.
5432         * Makefile.in (install-gdbtk): Move to install section.
5433         (rdi-share/libangsd.a): Move to end of file.
5434
5435 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5436
5437         * frame.c (frame_register_unwind): When a register, set addrp to
5438         the register's byte.
5439
5440 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5441
5442         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5443         used locally, so move them from the target machine header to here.
5444         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5445         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5446         Make static.
5447         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5448
5449 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5450
5451         * NEWS: Mention that the Apollo line was made obsolete.
5452         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5453         m68*-hp-hpux* obsolete.
5454         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5455         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5456         * buildsym.c (make_blockvector): Make static.
5457         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5458         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5459         (ALLDEPFILES): Remove dstread.c.
5460         (dstread.o): Obsolete make rule.
5461         * dstread.c: Makefile obsolete.
5462         * dst.h: Ditto.
5463         * config/m68k/hp300hpux.mt: Ditto.
5464         * config/m68k/hp300hpux.mh: Ditto.
5465         * config/m68k/hp300bsd.mt: Ditto.
5466         * config/m68k/hp300bsd.mh: Ditto.
5467         * config/m68k/apollo68b.mt: Ditto.
5468         * config/m68k/apollo68v.mh: Ditto.
5469         * config/m68k/apollo68b.mh: Ditto.
5470
5471 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5472
5473         * mips-tdep.c (mips_in_return_stub): Make static.
5474         (mips_gdbarch_init): Set in_solib_return_trampoline.
5475         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5476
5477 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5478
5479         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5480         * gdbarch.c, gdbarch.h: Regenerate.
5481         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5482         Add.
5483         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5484
5485 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5486
5487         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5488         (mips_gdbarch_init): Set skip_trampoline_code, 
5489         in_solib_call_trampoline.
5490         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5491         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5492
5493 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5494
5495         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5496
5497         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5498         vector type for ev registers.
5499         (e500_pseudo_register_read): New function.
5500         (e500_pseudo_register_write): New function.
5501         (e500_dwarf2_reg_to_regnum): New function.
5502         (PPC_UISA_NOFP_SPRS): New macro.
5503         (PPC_EV_REGS): New macro.
5504         (PPC_GPRS_PSEUDO_REGS): New macro.
5505         (registers_e500): New register set for e500.
5506         (variants): Add e500 variant.
5507         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5508         before setting architectural dependent variations.  Initialize ev
5509         registers numbers.  Add case for e500 architecture.  Set the
5510         number of pseudo registers.
5511
5512 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5513
5514         * rs6000-tdep.c: Clean up comments.
5515
5516 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5517
5518         * h8300-tdep.c: Re-indent file.
5519
5520 2002-08-20  Jim Blandy  <jimb@redhat.com>
5521
5522         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5523         default for this.
5524
5525 2002-08-20  Keith Seitz  <keiths@redhat.com>
5526
5527         * breakpoints.c (watch_command_1): Use internal breakpoint
5528         when setting a watchpoint_scope breakpoint.
5529
5530 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5531
5532         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5533         (build_builtin_type_vec64i): Ditto.
5534         (build_builtin_type_vec128): Ditto.
5535         (build_builtin_type_vec128i): Ditto.
5536
5537 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5538
5539         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5540         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5541         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5542         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5543         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5544         CALL_DUMMY_ADDRESS): Delete.
5545         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5546         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5547         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5548         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5549         push_return_address.
5550         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5551         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5552         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5553         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5554         mips_n32n64_push_arguments, mips_push_return_address,
5555         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5556         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5557
5558 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5559
5560         * mips-tdep.c (mips_frame_num_args): New function.
5561         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5562         frame_saved_pc, frame_args_address, frame_locals_address, 
5563         frame_num_args, and frame_args_skip.
5564         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5565         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5566         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5567         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5568
5569 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5570
5571         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5572         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5573         * mips-tdep.c (mips_store_struct_return): New function.
5574         (mips_extract_struct_value_address): New function.
5575         (mips_gdbarch_init): Set store_struct_return and
5576         extract_struct_value_address.
5577
5578 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5579
5580         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5581         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5582         (read_file_scope): Check that line_header is nonzero before
5583         decoding macro information.
5584
5585 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5586
5587         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5588         flag the general-purpose registers as floating-point on targets
5589         that don't support the floating-point registers.
5590
5591 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5592
5593         * rs6000-tdep.c (altivec_register_p): Delete.
5594         (rs6000_do_altivec_registers): Delete.
5595         (rs6000_altivec_registers_info): Delete.
5596         (rs6000_do_registers_info): Delete.
5597         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5598         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5599
5600 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5601
5602         * infcmd.c (do_registers_info): Print vector registers in hex
5603         format only.
5604         (print_vector_info): Check that printing registers
5605         makes sense.
5606         (print_float_info): Ditto.
5607
5608 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5609
5610         * mips-tdep.c (mips_gdbarch_init): Update.
5611         (mips_o32_extract_return_value): Rewrite.
5612         (mips_o32_store_return_value): Rewrite.
5613         (mips_o32_xfer_return_value): New function.
5614         (mips_xfer_register): Tweak debug print message.  Allow for
5615         buf_offset when dumping the value transfered.
5616
5617 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5618
5619         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5620         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5621         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5622         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5623         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5624
5625 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5626
5627         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5628
5629 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5630
5631         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5632         register.
5633         (P): New macro to define a register as a pseudo register.
5634         (R, R4, R8, R16, FR32, R64, R0): Updated.
5635         (struct variant): Add new fields for number of pseudo registers
5636         and number of total registers.
5637         (tot_num_registers): New macro replacing....
5638         (num_registers): ...deleted macro.
5639         (num_registers): New function.
5640         (num_pseudo_registers): New function.
5641         (variants): Update all variants to intialize new fields correctly.
5642         Postpone initialization of number of pseudo regs and real regs.
5643         (init_variants): New function.
5644         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5645         registers offsets.
5646
5647 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5648
5649         * valops.c (search_struct_field): Change error message to treat
5650         return value of 0 from value_static_field as meaning that field is
5651         optimized out.
5652         (value_struct_elt_for_reference): Ditto.
5653         * values.c (value_static_field): Treat an unresolved location the
5654         same as a nonexistent symbol.  Fix PR gdb/635.
5655         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5656         enclosed.  Fix PR gdb/574.
5657         * MAINTAINERS: Add self to Write After Approval list.
5658
5659 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5660
5661         * mips-tdep.c (mips_xfer_register): New function.
5662         (mips_n32n64_extract_return_value): Rewrite.
5663         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5664         instead of deprecated_extract_return_value.
5665
5666 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5667
5668         * rs6000-tdep.c (TDEP): Delete macro.
5669         (branch_dest): Replace use of TDEP macro with its body.
5670         (rs6000_pop_frame): Ditto.
5671         (rs6000_push_arguments): Ditto.
5672         (rs6000_skip_trampoline_code): Ditto.
5673         (rs6000_frame_saved_pc): Ditto.
5674         (rs6000_frame_chain): Ditto.
5675         (rs6000_register_name): Ditto.
5676         (rs6000_register_byte): Ditto.
5677         (rs6000_register_raw_size): Ditto.
5678         (rs6000_register_virtual_type): Ditto.
5679         (rs6000_register_convertible): Ditto.
5680         (rs6000_convert_from_func_ptr_addr): Ditto.
5681
5682 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5683
5684         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5685         conditionally.
5686         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5687         MIPS_LINUX_JB_ELEMENT_SIZE.
5688         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5689         for MAX_REGISTER_RAW_SIZE arrays.
5690         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5691         MIPS_LINUX_JB_ELEMENT_SIZE.
5692
5693 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5694
5695         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5696
5697 2002-08-19  Aidan Skinner <aidan@velvet.net>
5698
5699         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5700         ada-valprint.c ada-tasks.c.
5701         (YYFILES): Add ada-exp.y.
5702         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5703         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5704         (ada-exp.tab.o): New target.
5705                 
5706 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5707
5708         * regcache.c (regcache_xfer_part): New function.
5709         (regcache_raw_read_part): New function.
5710         (regcache_raw_write_part): New function.
5711         (regcache_cooked_read_part): New function.
5712         (regcache_cooked_write_part): New function.
5713         * regcache.h (regcache_raw_read_part): Declare.
5714         (regcache_raw_write_part): Declare.
5715         (regcache_cooked_read_part): Declare.
5716         (regcache_cooked_write_part): Declare.
5717
5718 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5719
5720         * remote.c (remote_open_1): Add async_p.
5721         (remote_async_open_1): Delete.
5722         (open_remote_target): Delete.
5723         (remote_open, extended_remote_open): Update calls to remote_open_1.
5724         (remote_async_open, extended_remote_async_open): Call
5725         remote_open_1 instead of remote_async_open_1.
5726
5727 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5728
5729         * blockframe.c: Fix a few coding standard violations.
5730
5731 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5732
5733         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5734         here from ...
5735         * config/i386/tm-i386sco5.h: ... here.  File removed.
5736         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5737
5738         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5739         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5740         (TM_FILE): Set to tm-i386.h.
5741         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5742         * config/i386/tm-i386v.h: Remove file.
5743         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5744         instead of "i386/tm-i386v.h".
5745         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5746         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5747         "i386/tm-i386v.h".
5748         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5749         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5750         "i386/tm-i386.h".
5751
5752 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5753
5754         * config/i386/nm-i386v.h: Add protection against
5755         multiple-inclusion.
5756         (i386_register_u_addr): Remove prototype.
5757         (register_u_addr): New prototype.
5758         (REGISTER_U_ADDR): Redefine accordingly.
5759         * i386v-nat.c: Improve several comments.
5760         (i386_register_u_addr): Change signature and rename to
5761         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5762         ubase variable.
5763
5764 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5765
5766         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5767         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5768         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5769         deprecated_extract_return_value.
5770         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5771         rename mips_o32o64_push_arguments.
5772         (mips_gdbarch_init): Update.
5773         (mips_extract_return_value): Delete.
5774         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5775         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5776         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5777         (mips_n32n64_extract_return_value): Clone
5778         mips_extract_return_value.
5779         (mips_store_return_value): Delete.
5780         (mips_o32_store_return_value): Clone mips_store_return_value.
5781         (mips_o64_store_return_value): Clone mips_store_return_value.
5782         (mips_eabi_store_return_value): Clone mips_store_return_value.
5783         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5784
5785 2002-08-18  Aidan Skinner <aidan@velvet.net>
5786
5787         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5788         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5789                 
5790 2002-08-18  Aidan Skinner <aidan@velvet.net>
5791
5792         * ada-lang.c: Run through gdb_indent.sh.
5793         * ada-lang.h: Run through gdb_indent.sh.
5794         * ada-tasks.c: Run through gdb_indent.sh.
5795         * ada-typeprint.c: Run through gdb_indent.sh.
5796         * ada-valprint.c: Run through gdb_indent.sh.
5797
5798 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5799
5800         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5801         ABI.
5802
5803 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5804
5805         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5806
5807         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5808         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5809
5810         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5811         write_register_gen instead of write_register_bytes.
5812
5813         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5814         i[3456]-*-osf1mk* configurations have been made obsolete.
5815         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5816         i[3456]86-*-osf1mk* hosts obsolete.
5817         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5818         targets obsolete.
5819         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5820         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5821         config/i386/i386m3.mt, config/i386/nm-m3.h,
5822         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5823         config/i386/i386mk.mh, config/i386/i386mk.mt,
5824         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5825         obsolete.
5826         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5827         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5828         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5829
5830 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5831
5832         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5833         (hppa_value_returned_from_stack): Declare.
5834         (hppa_extract_return_value): Declare.
5835         * config/pa/hppa.mt: New file.
5836         * configure.tgt: Recognize hppa*-*-*.
5837         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5838
5839 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5840
5841         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5842         comment.
5843
5844 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5845
5846         * top.c (gdb_rl_operate_and_get_next): Make sure
5847         operate-and-get-next functions correctly even when the history
5848         list is completely filled.
5849
5850 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5851
5852         * MAINTAINERS (Target Instruction Set Architectures): Rename
5853         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5854         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5855         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5856         already listed under Host/Native.
5857
5858         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5859         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5860         mips*-*-*.
5861
5862 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5863
5864         * config/ia64/ia64.mt: New file.
5865         * config/alpha/alpha.mt: New file.
5866         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5867         ia64-linux-gnu.  Mention that ia64-elf is broken.
5868         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5869
5870 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5871
5872         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5873         generic_func_frame_valid instead of func_frame_valid.
5874
5875 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5876
5877         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5878         procfs appears to be broken when debugging on multi-processor
5879         machines. So enable software single stepping in order to avoid
5880         using the procfs interface to do next/step operations, using
5881         internal breakpoints instead.
5882
5883         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5884         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5885         make this pc address equal to the value it would have if the
5886         system stepping capability was used. Also set a new flag used
5887         to ensure that we don't readjust the PC one more time later.
5888
5889         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5890         address by DECR_PC_AFTER_BREAK when software single step is
5891         in use for this architecture, as this has already been taken
5892         care of in handle_inferior_event().
5893
5894 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5895
5896         * infrun.c (handle_inferior_event): Minor reformatting, to make
5897         a rather long condition expression easier to read.
5898
5899 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5900
5901         * Makefile.in (gdbtk.o): Move to end of file.
5902         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5903         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5904         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5905         (gdbtk-wrapper.o, gdbres.o): Ditto.
5906
5907 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5908
5909         * Makefile.in (copying.o): Separate out compile rule.
5910         (hpux-thread.o, procfs.o, signals.o): Ditto.
5911         (v850ice.o, z8k-tdep.o): Ditto.
5912         (tui-file.o): Move to TUI section.
5913         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5914         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5915
5916 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5917
5918         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5919         skip_trampoline_code, for better namespace-proofing.   
5920
5921         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5922
5923 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5924
5925         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5926
5927 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5928
5929         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5930         signal, check whether we hit a breakpoint before checking for a
5931         single step breakpoint. Otherwise, GDB fails to notice that a
5932         breakpoint has been hit when stepping onto a breakpoint.
5933
5934 2002-08-16  Keith Seitz  <keiths@redhat.com>
5935
5936         * gdb-events.sh (clear_gdb_event_hooks): New function.
5937         * gdb-events.c: Regenerate.
5938         * gdb-events.h: Regenerate.
5939
5940 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5941
5942         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5943         not_a_sw_breakpoint.
5944         * breakpoint.h (bpstat_stop_status): Add parameter names.
5945
5946 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5947
5948         * remote.c (remote_insert_hw_breakpoint)
5949         (remote_remove_hw_breakpoint): Fix calculation of length field
5950         for Z-packet.
5951
5952 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5953
5954         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5955         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5956         (supply_fpregset): Ditto.
5957         
5958         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5959         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5960         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5961         (TARGET_READ_SP): Delete.
5962         (DO_REGISTERS_INFO): Delete.
5963         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5964         Delete.
5965         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5966         from macros to functions.
5967
5968         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5969         (mips_register_convertible, mips_register_convert_to_virtual,
5970         mips_register_convert_to_raw): Make static.
5971         (mips_read_sp): New function.
5972         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5973         (mips_do_registers_info): Make static.
5974         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5975         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5976         (mips_register_convert_from_type, mips_register_convert_to_type):
5977         New functions.
5978         (mips_gdbarch_init): Set up function_start_offset, 
5979         register_virtual_size, pc_in_sigtramp.
5980
5981 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5982
5983         * infcmd.c (vector_info): New function.
5984         (_initialize_infcmd): Add command "info vector".
5985         (print_vector_info): New function.
5986
5987         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5988         * gdbarch.h, gdbarch.c: Regenerate.
5989
5990 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5991
5992         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5993         ``print_all''.  Only print vector registers when ``print_all''.
5994
5995 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5996
5997         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5998         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5999
6000         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
6001         Add `args' parameter.
6002         * gdbarch.h, gdbarch.c: Regenerate.
6003         
6004         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
6005         
6006         * infcmd.c (float_info): Call print_float_info.
6007         (print_float_info): New function.  By default, print the
6008         floating-point registers.
6009
6010         * arch-utils.h (default_print_float_info): Delete declaration.
6011         * arch-utils.c (default_print_float_info): Delete function.
6012         
6013 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
6014
6015         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6016         out define.
6017
6018         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6019         FRAME.
6020
6021         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6022         * configure.host: Make i[3456]86-*-aix host obsolete.
6023         * configure.tgt: Make i[3456]86-*-aix target obsolete.
6024         * config/i386/i386aix.mh, config/i386/i386aix.mt,
6025         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6026         config/i386/xm-i386aix.h: Make files obsolete.
6027         * i386aix-nat.c: Make file obsolete.
6028         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6029         (i386aix-nat.o): Make target obsolete.
6030
6031         * config/i386/nm-gnu.h: Removed.
6032         * config/i386/nm-i386gnu.h: New file.
6033         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6034         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6035         Moved here from ...
6036         * config/i386/tm-i386gnu.h: ... here.  Removed.
6037         * config/i386/xm-i386gnu.h: Removed.
6038         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6039         (NAT_FILE): Set to nm-i386gnu.h.
6040         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6041         * i386-tdep.c: New file.
6042         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6043         (i386gnu-tdep.o): Specify dependencies.
6044
6045 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
6046
6047         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6048         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6049         Adjust a few comments to reflect reality a bit closer.
6050         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6051         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6052         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6053         target_insert_watchpoint, target_remove_watchpoint):
6054         Move defines to ...
6055         * config/i386/nm-i386sco5.h: ... here.
6056         (kernel_u_size): Add prototype.  Improve a few comments and add
6057         protection against multiple inclusion.
6058         
6059         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6060         out define.
6061
6062         * uw-thread.c (SP_ARG0): Define if not already defined.
6063         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6064
6065         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6066
6067         * config/i386/tm-i386.h: Don't include "regcache.h".
6068
6069         * i387-tdep.h (i387_print_float_info): New prototype.
6070         * i387-tdep.c (print_i387_value, print_i387_ext,
6071         print_i387_status_word, print_i387_control_word): Add `struct
6072         ui_file *' argument and use it for output.
6073         (i387_print_float_info): Renamed from i387_float_info.  Add
6074         `struct gdbarch *' and `struct ui_file *' arguments and use the
6075         latter for output.
6076         * i386-tdep.c: Include "i387-tdep.h".
6077         (i386_gdbarch_init): Set print_float_info.
6078         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6079         (FLOAT_INFO): Remove define.
6080
6081 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6082
6083         * mips-tdep.c (mips_push_arguments): Rename to
6084         mips_eabi_push_arguments, and tune for EABI.
6085         (MIPS_REGS_HAVE_HOME_P): Delete.
6086         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6087         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6088         Delete references to mips_regs_have_home_p.
6089
6090 2002-08-14  Keith Seitz  <keiths@redhat.com>
6091
6092         * Makefile.in (install-gdbtk): Create insight plugin directory.
6093         Install plugins.tcl file.
6094
6095 2002-08-14  Keith Seitz  <keiths@redhat.com>
6096
6097         * configure.in: Move SUBDIRS to near top of the file so that
6098         --enable options may add things to it.
6099         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6100         * configure: Regenerate.
6101
6102 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6103
6104         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6105         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6106         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6107
6108 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6109
6110         * vax-tdep.c (vax_get_saved_register): Delete function.
6111         (vax_gdbarch_init): Update.
6112         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6113         (ns32k_gdbarch_init): Update.
6114         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6115         (alpha_gdbarch_init): Update.
6116
6117 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6118
6119         * regcache.c (init_regcache_descr): Overallocate the
6120         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6121         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6122         nr_raw_registers.
6123         (set_register_cached): Add range checking assertions.  Use
6124         current_regcache.
6125
6126 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6127
6128         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6129         numbers for MMX registers.
6130
6131 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6132
6133         * i386-tdep.c (i386_gdbarch_init): Use
6134         generic_unwind_get_saved_register.
6135
6136 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6137
6138         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6139         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6140         target vector.
6141         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6142         Delete.  Add comment regarding this now-deleted target method.
6143
6144 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6145
6146         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6147         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6148         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6149         real PC and the page number (if it's within the memory bank window).
6150         (m68hc11_pseudo_register_write): Likewise when saving.
6151         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6152         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6153         (m68hc11_register_raw_size): And use 32-bit for it.
6154         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6155         16K memory bank is used by the prog; also use the virtual pc.
6156
6157 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6158
6159         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6160         (m68hc11_gdbarch_init): Install it in gdbarch.
6161         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6162         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6163         (MSYMBOL_SIZE): New for documentation.
6164         (insn_return_kind): Enum to specify how a function returns.
6165         (frame_extra_info): Cleanup and record the return mode.
6166         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6167         register in address computation.
6168         (m68hc11_get_return_insn): New to obtain the return instruction used
6169         by the function.
6170         (m68hc11_frame_init_saved_regs): Take into account the return
6171         instruction used by the function for far and interrupt functions.
6172         (m68hc11_init_extra_frame_info): Take into account page register.
6173         (m68hc11_frame_args_address): Adjust according to the return mode.
6174         (show_regs): Print page register only when it's used.
6175
6176 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6177
6178         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6179         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6180         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6181         registers.
6182         (m68hc11_register_raw_size): Likewise.
6183
6184 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6185
6186         * i386-tdep.c (i386_register_name): Handle mmx registers.
6187         (mmx_regnum_p): New function.
6188         (i386_mmx_names): New array.
6189         (mmx_num_regs): New variable.
6190         (i386_pseudo_register_read): New function.
6191         (i386_pseudo_register_write): New function.
6192         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6193
6194         * regcache.c (regcache_raw_read_unsigned): New function.
6195         (regcache_raw_read_signed): New function.
6196         * regcache.h (regcache_raw_read_unsigned): Declare.
6197         (regcache_raw_read_signed): Declare.
6198
6199 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6200
6201         * regcache.c (regcache_raw_read_as_address): Delete function.
6202         (regcache_cooked_read_signed): New function.
6203         (regcache_cooked_read_unsigned): New function.
6204         * regcache.h (regcache_cooked_read_signed): Declare.
6205         (regcache_cooked_read_unsigned): Declare.
6206         (regcache_raw_read_as_address): Delete declaration.
6207
6208         * blockframe.c (generic_read_register_dummy): Use
6209         regcache_cooked_read_unsigned.
6210         * i386-tdep.c (i386_extract_struct_value_address): Use
6211         regcache_cooked_read_unsigned.
6212
6213 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6214
6215         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6216         double sizes according to ELF ABI flags.
6217         (gdbarch_tdep): Record elf_flags.
6218
6219 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6220
6221         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6222         (m6812_prolog): They can appear in 68HC12 function prologue.
6223         (m68hc11_frame_chain): Cleanup.
6224
6225 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6226
6227         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6228         declarations.
6229         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6230         (i386_linux_register_raw_size): Delete function.
6231         (i386_linux_init_abi): Update.
6232         * i386-tdep.c (i386_register_raw_size): Delete function.
6233         (i386_register_byte): Delete function.
6234         (i386_gdbarch_init): Update.
6235         (i386_register_size): Delete array.
6236         (i386_register_offset): Delete array.
6237
6238         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6239         (REGISTER_RAW_SIZE): Delete macro.
6240         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6241         (REGISTER_BYTE): Delete macro.
6242
6243 2002-08-11  Aidan Skinner <aidan@velvet.net>
6244
6245         * ada-lang.c (ada_lookup_partial_symbol)
6246         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6247         prototype names so that grep ^func works properly.
6248
6249         * ada-lang.c (ada_array_element_type)
6250         (ada_lookup_partial_symbol): Fix typos in parameter list.
6251
6252         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6253         Fix prototype names so that grep ^func works properly.
6254         
6255 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6256             Elena Zannoni  <ezannoni@redhat.com>
6257             Martin M. Hunt  <hunt@redhat.com>
6258
6259         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6260         (build_builtin_type_vec128i): Set the vector bit.
6261         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6262         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6263         (build_builtin_type_vec64): New function.
6264         (build_builtin_type_vec64i): New function.
6265         (build_gdbtypes): Initialize builtin_type_vec64 and
6266         builtin_type_vec64i.
6267
6268 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6269
6270         * regcache.c (regcache_dump): Compare the register offset
6271         with REGISTER_BYTE.
6272         * arch-utils.c (generic_register_byte): New function.
6273         * arch-utils.h (generic_register_byte): Declare.
6274         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6275         * gdbarch.h, gdbarch.c: Regenerate.
6276
6277 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6278
6279         * regcache.c: Include "gdbcmd.h"
6280         (_initialize_regcache): Add commands "maintenance print
6281         registers", "maintenance print raw-registers" and "maintenance
6282         print cooked-registers".
6283         (enum regcache_dump_what): Define.
6284         (dump_endian_bytes): New function.
6285         (regcache_dump): New function.
6286         (regcache_print): New function.
6287         (maintenance_print_registers): New function.
6288         (maintenance_print_raw_registers): New function.
6289         (maintenance_print_cooked_registers): New function.
6290         * Makefile.in (regcache.o): Update dependencies.
6291
6292 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6293
6294         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6295         (mips_push_arguments): Correct some comments.  Use paddr_nz
6296         for printing addresses in debug output.  Replace static
6297         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6298         (mips_n32n64_push_arguments): New function, cloned from
6299         mips_push_arguments and tuned for the n32/n64 ABI.
6300         (mips_push_register): Buffer needs dynamic allocation.
6301         (mips_print_register): Ditto.
6302         (do_gp_register_row): Ditto.
6303         (mips_store_return_value): Ditto.
6304         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6305
6306 2002-08-09  Don Howard  <dhoward@redhat.com>
6307
6308         * memattr.c (mem_info_command): Print special case of upper bound
6309         as max CORE_ADDR + 1.
6310
6311 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6312
6313         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6314         returns structs by ref if they're too big to fit in two registers.
6315
6316 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6317
6318         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6319         saved regs value.
6320         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6321         mips_find_saved_regs().
6322         (mips_pop_frame): Likewise.
6323
6324 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6325
6326         * blockframe.c (frame_saved_regs_register_unwind): Revise
6327         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6328         frames are in use.
6329
6330 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6331         
6332         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6333         T-packets; the 'a' is not taken as a register number.
6334         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6335         (remote_stopped_data_address): New functions; add to target
6336         vector.
6337         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6338         prototypes to match other implementations of this
6339         function. replace integer argument with pointer -- the length
6340         field in the Z-packet is the length of what is pointed to or 1 if
6341         pointer is null. Add to target vector.
6342         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6343         target vector.
6344
6345         From Mark Salter:
6346         * remote.c (remote_wait): Add support to extract optional
6347         watchpoint information from T-packet. Ignore unrecognized
6348         optional info in T-packet.
6349         (remote_async_wait): Ditto.
6350
6351 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6352
6353         * cli/cli-dump.c: Change fopen modes to use binary open modes
6354         as defined in include/fopen-bin.h throughout.
6355
6356 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6357
6358         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6359
6360 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6361
6362         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6363         assertion failure by returning early after a warning.
6364
6365 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6366
6367         * mips-tdep.c (mips_find_saved_regs): Make static.
6368         (mips_frame_init_saved_regs): New function.
6369         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6370         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6371         (mips_find_saved_regs): Delete declaration.
6372
6373 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6374
6375         * remote.c (remote_wait, remote_async_wait): Change
6376         thread_num from int to ULONGEST.
6377         (unpack_varlen_hex): Change result parameter from
6378         int * to ULONGEST *.
6379
6380 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6381
6382         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6383         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6384         powerpc*-*-*.
6385         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6386
6387 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6388
6389         * gcore.c (override_derive_stack_segment): Delete variable.
6390         (preempt_derive_stack_segment): Delete function.
6391         (derive_stack_segment): Delete function.
6392         (default_derive_stack_segment): Renamed to derive_stack_segment.
6393         (override_derive_heap_segment): Delete variable.
6394         (preempt_derive_heap_segment): Delete function.
6395         (derive_heap_segment): Delete function.
6396         (default_derive_heap_segment): Rename to derive_heap_segment.
6397
6398 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6399
6400         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6401         * mips-tdep.c (mips_EABI_use_struct_convention, 
6402         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6403         New functions.  (mips_use_struct_convention): Delete.
6404         (mips_gdbarch_init): set use_gdbarch_convention.
6405
6406 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6407
6408         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6409         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6410         mips_o32_reg_struct_has_addr): New functions.
6411         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6412
6413 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6414
6415         * regcache.c (pseudo_register): Delete function.
6416         (fetch_register): Delete function.
6417         (store_register): Delete function.
6418         (regcache_raw_read, legacy_read_register_gen): Use
6419         target_fetch_registers instead of fetch_register.
6420         (legacy_write_register_gen, regcache_raw_write): Use
6421         target_store_register instead of store_register.
6422         (write_register_bytes): Ditto.
6423
6424         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6425         (STORE_PSEUDO_REGISTER): Delete.
6426         * gdbarch.h, gdbarch.c: Regenerate.
6427
6428 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6429
6430         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6431         write dump file binary.
6432
6433 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6434
6435         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6436         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6437         (mips_gdbarch_init): Set N32 target to be mips64.
6438
6439 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6440
6441         * frame.c (find_saved_register): Break out of loop once saved
6442         register address is found.  Don't mention sparc in loop comment
6443         anymore.
6444
6445 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6446
6447         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6448         mips_default_saved_regsize to 8.
6449
6450 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6451
6452         * gcore.c: Do not include <sys/procfs.h>.
6453         * Makefile.in (gcore.o): Update dependencies.
6454
6455 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6456
6457         * configure.tgt: Make arc-*-* obsolete.
6458         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6459         * MAINTAINERS: Make arc-elf obsolete.
6460         * arc-tdep.c: Make file obsolete.
6461         * config/arc/arc.mt: Ditto.
6462         * config/arc/tm-arc.h: Ditto.
6463
6464 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6465
6466         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6467
6468 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6469
6470         * mcore-tdep.c (mcore_gdbarch_init): Use
6471         generic_unwind_get_saved_register instead of
6472         generic_get_saved_register.
6473         * v850-tdep.c (v850_gdbarch_init): Ditto.
6474         * frv-tdep.c (frv_gdbarch_init): Ditto.
6475         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6476         * s390-tdep.c (s390_gdbarch_init): Ditto.
6477         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6478         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6479         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6480
6481 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6482
6483         * objfiles.h: Add missing #include "symfile.h"
6484
6485         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6486
6487 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6488
6489         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6490         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6491         of FIELD_BITSIZE.
6492
6493 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6494
6495         * NEWS: Cleanup and nitpick.
6496
6497 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6498
6499         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6500
6501 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6502
6503         * Makefile.in (gdbtk-bp.o): Update dependencies.
6504         (gdbtk-register.o): Ditto.
6505         (gdbtk-varobj.o): Ditto.
6506
6507 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6508
6509         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6510         m68hc11_fetch_pseudo_register.
6511         (m68hc11_pseudo_register_write): Replace
6512         m68hc11_store_pseudo_register.
6513         (m68hc11_gdbarch_init): Update.
6514
6515 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6516
6517         * gdbarch.sh: Include "gdb_string.h".
6518         * gdbarch.c: Regenerate.
6519
6520         * regcache.c: Include "gdb_string.h".
6521         * ax-general.c: Ditto.
6522         * varobj.c: Ditto.
6523         * std-regs.c: Ditto.
6524         * fbsd-proc.c: Ditto.
6525         * thread.c: Ditto.
6526
6527         * Makefile.in (regcache.o): Update dependencies.
6528         (thread.o, gdbarch.o): Ditto.
6529         (ax-general.o, gdbarch.o): Ditto.
6530         (varobj.o, std-regs.o): Ditto.
6531         (fbsd-proc.o): Specify dependencies.
6532
6533 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6534
6535         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6536         regnum.
6537         (regcache_cooked_write): Ditto.
6538
6539 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6540
6541         * regcache.c (regcache_cooked_read): New function.
6542         (regcache_cooked_write): New function.
6543         (read_register_gen): Rewrite using regcache_cooked_read.
6544         (write_register_gen): Rewrite using regcache_cooked_write.
6545
6546         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6547         Declare.
6548
6549 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6550
6551         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6552         Replace the architecture methods register_read and register_write.
6553         * gdbarch.h, gdbarch.c: Regenerate.
6554         * regcache.c (init_regcache_descr): Update.
6555         (read_register_gen): Update.
6556         (write_register_gen): Update.
6557         (supply_register): Update comment.
6558
6559         * sh-tdep.c (sh_gdbarch_init): Update.
6560         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6561         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6562         pointer.  Update code.
6563         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6564         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6565         void pointer.  Update code.
6566         (sh64_register_write): Delete.
6567         (sh4_register_read): Delete.
6568         (sh64_register_read): Delete.
6569         (sh4_register_write): Delete.
6570         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6571         void pointer, `to' parameter a void pointer.
6572         (sh_sh64_register_convert_to_raw): Ditto.
6573
6574 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6575
6576         * mips-tdep.c (mips_register_virtual_type): Use architecture
6577         invariant return values.
6578
6579 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6580
6581         * linux-proc.c: Include "gdb_string.h".
6582         * Makefile.in (linux-proc.o): Update dependency list.
6583
6584 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6585
6586         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6587         comment.
6588
6589 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6590
6591         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6592         to_insert_watchpoint, to_remove_watchpoint,
6593         to_stopped_by_watchpoint, to_stopped_data_address,
6594         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6595         target vecctor. Define their corresponding macros so they call
6596         them.
6597         
6598         * target.c: Add default and debug versions of for
6599         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6600         to_insert_watchpoint, to_remove_watchpoint,
6601         to_stopped_by_watchpoint, to_stopped_data_address,
6602         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6603
6604 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6605
6606         * mips-tdep.c (mips_register_virtual_type): New function.
6607         (mips_gdbarch_init): Register mips_register_virtual_type()
6608         with gdbarch machinery.
6609         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6610         this file instead of tm-bigmips.h.
6611         (MIPS_REGSIZE): Delete this macro.
6612         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6613         multiarch version in mips-tdep.c will be found.
6614
6615 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6616
6617         * NEWS: Menion that CHILL has been made obsolete.
6618
6619         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6620         * stabsread.c (read_range_type): Ditto.
6621         * gdbtypes.h: Ditto.
6622         * language.c (binop_type_check): Ditto.
6623         (binop_result_type): Ditto.
6624         (integral_type): Ditto.
6625         (character_type): Ditto.
6626         (string_type): Ditto.
6627         (boolean_type): Ditto.
6628         (structured_type): Ditto.
6629         (lang_bool_type): Ditto.
6630         (binop_type_check): Ditto.
6631         * language.h (_LANG_chill): Ditto.
6632         * dwarfread.c (set_cu_language): Ditto.
6633         * dwarfread.c (CHILL_PRODUCER): Ditto.
6634         * dwarfread.c (handle_producer): Ditto.
6635         * expression.h (enum exp_opcode): Ditto.
6636         * eval.c: Ditto for comments.
6637         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6638         * expprint.c (print_subexp): Ditto.
6639         (print_subexp): Ditto.
6640         * valops.c (value_cast): Ditto.
6641         (search_struct_field): Ditto.
6642         * value.h (COERCE_VARYING_ARRAY): Ditto.
6643         * symfile.c (init_filename_language_table): Ditto.
6644         (add_psymbol_with_dem_name_to_list): Ditto.
6645         * valarith.c (value_binop): Ditto.
6646         (value_neg): Ditto.
6647         * valops.c (value_slice): Ditto.
6648         * symtab.h (union language_specific): Ditto.
6649         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6650         (SYMBOL_DEMANGLED_NAME): Ditto.
6651         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6652         * defs.h (enum language): Ditto.
6653         * symtab.c (got_symtab): Ditto.
6654         * utils.c (fprintf_symbol_filtered): Ditto.
6655
6656         * ch-typeprint.c: Make file obsolete.
6657         * ch-valprint.c: Make file obsolete.
6658         * ch-lang.h: Make file obsolete.
6659         * ch-exp.c: Make file obsolete.
6660         * ch-lang.c: Make file obsolete.
6661
6662         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6663         CHILL_LIB.
6664         (TARGET_FLAGS_TO_PASS): Ditto.
6665         (CHILLFLAGS): Obsolete.
6666         (CHILL): Obsolete.
6667         (CHILL_FOR_TARGET): Obsolete.
6668         (CHILL_LIB): Obsolete.
6669         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6670         ch-valprint.c.
6671         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6672         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6673         ch-lang.o.
6674         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6675         targets.
6676
6677 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6678
6679         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6680         This does not change anything at the moment, but will be helpful
6681         later when full Ada support is integrated.
6682
6683 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6684
6685         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6686         help message.
6687
6688 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6689
6690         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6691         and save it in a local variable.  Use variable in later test.
6692
6693 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6694
6695         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6696         test.  (Thanks to Daniel Jacobowitz.)
6697         
6698 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6699
6700         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6701         (mips_abi_strings): Add "n64".
6702         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6703
6704 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6705
6706         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6707         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6708
6709 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6710
6711         * utils.c (host_pointer_to_address, address_to_host_pointer):
6712         Use gdb_assert() instead of explicit call to internal_error().
6713
6714 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6715
6716         * Makefile.in (rs6000-nat.o): Update dependencies.
6717
6718         From Nicholas Duffek:
6719         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6720         (aix-thread.o): New rule.
6721         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6722         * config/powerpc/aix432.mh: New file.
6723
6724 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6725
6726         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6727         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6728         (fetch_core_registers, ppc_linux_supply_gregset)
6729         (ppc_linux_supply_fpregset): New functions.
6730         (ppc_linux_regset_core_fns): New.
6731         (_initialize_ppc_linux_tdep): Call add_core_fns.
6732         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6733         and ppc_linux_supply_gregset.
6734         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6735         (supply_fpregset): Call ppc_linux_supply_fpregset.
6736         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6737         corelow.o.
6738         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6739
6740 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6741
6742         * symtab.c (lookup_symbol): Demangle before lowercasing.
6743
6744 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6745
6746         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6747         declaration.
6748         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6749         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6750         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6751         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6752         "gdb_string.h".
6753         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6754         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6755         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6756         (avr-tdep.o, mon960-rom.o): Ditto.
6757         (aout_stabs_gnu_h): Define.
6758         (symtab_h): Remove $(gdb_obstack_h).
6759
6760 2002-07-30  Jim Blandy  <jimb@redhat.com>
6761
6762         Patch from David Carlton <carlton@math.stanford.edu>:
6763         * gdbinit.in: Move the `dir' commands that add GDB's own source
6764         directory to the search path to the end, so that the `gdb' source
6765         directory will be searched first.
6766
6767 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6768
6769         * gdb_obstack.h: New file.
6770         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6771         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6772         * objfiles.h: Include "gdb_obstack.h".
6773         * Makefile.in (gdb_obstack_h): Define.
6774         (symtab_h): Add $(gdb_obstack_h).
6775         (objfiles_h): Add $(gdb_obstack_h).
6776         
6777         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6778         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6779         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6780         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6781         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6782         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6783         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6784         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6785
6786         * Makefile.in (bcache.o): Update dependencies.
6787         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6788         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6789         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6790         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6791         (stabsread.o, symfile.o, symmisc.o): Ditto.
6792         (symtab.o, typeprint.o, macroexp.o): Ditto.
6793         (macrotab.o, mdebugread.o): Ditto.
6794         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6795         (coff_ecoff_h, aout_aout64_h): Define.
6796         (aout_stabs_gnu_h, libaout_h): Define.
6797
6798 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6799
6800         * regcache.c (struct regcache_descr): Rename nr_registers to
6801         nr_cooked_registers.  Revise comments describing the structure
6802         member fields.
6803         (init_regcache_descr): Update.
6804         (init_legacy_regcache_descr): Update.
6805         (read_register_gen, write_register_gen): When a cooked register in
6806         the raw register range, directly access the value from the raw
6807         register cache.
6808
6809 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6810
6811         * z8k-tdep.c: Do not include "obstack.h".
6812         * h8300-tdep.c, h8500-tdep.c: Ditto.
6813         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6814         * valprint.c, v850-tdep.c: Ditto.
6815         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6816         * mn10200-tdep.c: Ditto.
6817
6818         * Makefile.in (z8k-tdep.o): Update dependencies.
6819         (m68hc11-tdep.o, valprint.o): Ditto.
6820         (v850-tdep.o, d10v-tdep.o): Ditto.
6821         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6822         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6823         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6824         (sh_opc_h, gdb_sim_sh_h): Define.
6825         (elf_sh_h, elf_bfd_h): Define.
6826         (opcode_m68hc11_h): Define.
6827         (OPCODES_SRC, OPCODES_DIR): define.
6828         (OPCODES): Use $(OPCODES_DIR).
6829         (gdb_sim_d10v_h): Rename sim_d10v_h.
6830         (gdb_sim_arm_h): Rename sim_arm_h.
6831
6832 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6833
6834         * utils.c (host_pointer_to_address, address_to_host_pointer):
6835         Change internal_error() message to indicate function responsible
6836         for the error.
6837
6838 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6839
6840         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6841         calls to local_hex_string_custom().
6842
6843 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6844
6845         * irix5-nat.c: Move IRIX shared library support from here...
6846         * solib-irix.c: ...to here.  Revised substantially to work with
6847         generic solib framework.
6848
6849         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6850         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6851         * mips-irix-tdep.c: New file.
6852
6853         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6854         (mips-irix-tdep.o, solib-irix.o): New rules.
6855         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6856         solib-irix.o.
6857         * config/mips/irix6.mt (TDEPFILES): Likewise.
6858         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6859
6860 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6861
6862         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6863         disabled (via ``#if 0'') includes.
6864
6865 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6866
6867         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6868         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6869         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6870         Add support for the fpscr register.
6871         * rs6000-nat.c (regmap, fetch_inferior_registers)
6872         (store_inferior_registers, fetch_core_registers): Likewise.
6873
6874 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6875
6876         * rs6000-nat.c (language.h): Include.
6877         (special_regs): Delete this array.
6878         (regmap): New function.
6879         (fetch_register, store_register):  Use regmap() to map gdb
6880         register numbers to ptrace register numbers.  Also, use
6881         outputs from regmap() to make decisions regarding type of
6882         ptrace() call to make.  In particular, don't compare against
6883         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6884         (fetch_inferior_registers, store_inferior_registers): Where
6885         possible, obtain register numbers from tdep struct.  Don't
6886         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6887         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6888         (LAST_UISA_SP_REGNUM): Delete.
6889         
6890 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6891
6892         * rs6000-nat.c (ppc-tdep.h): Include.
6893         (fetch_registers, store_register, fetch_core_registers): Don't
6894         access registers[] directly.  Instead, use supply_register() or
6895         regcache_collect() as appropriate.
6896         (find_toc_address): Format hex address with local_hex_string().
6897
6898 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6899
6900         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6901         bfd/elf32-frv.c.
6902
6903 2002-07-24  Tom Tromey  <tromey@redhat.com>
6904
6905         * jv-exp.y: Marked all strings with _().
6906         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6907         internal_error.
6908         (MethodInvocation, CastExpression, parse_number, yyerror,
6909         java_type_from_name, push_expression_name, yylex): Typo fixes.
6910
6911 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6912
6913         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6914         (tee_file_flush, tee_file_write, tee_file_fputs)
6915         (tee_file_isatty): New.
6916         * ui-file.h (tee_file_new): Add prototype.
6917
6918 2002-07-24  Aidan Skinner <aidan@velvet.net>
6919
6920         * ada-lang.c: Change k&r style function definitions to prototyped
6921         form.
6922         * ada-typeprint.c: Change k&r style function definitions to prototyped
6923         form.
6924         * ada-valprint.c: Change k&r style function definitions to prototyped
6925         form.
6926         
6927 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6928
6929         * README: Remove reference to remote-bug.
6930         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6931         remote-bug.c.
6932         (m88k-nat.o): Delete rule.
6933         (m88k-tdep.o): Delete rule.
6934         (remote-bug.o): Delete rule.
6935         * MAINTAINERS: Mark as obsolete.
6936         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6937         * m88k-tdep.c: Make file obsolete.
6938         * config/m88k/m88k.mh: Ditto.
6939         * config/m88k/delta88v4.mh: Ditto.
6940         * config/m88k/delta88v4.mt: Ditto.
6941         * config/m88k/delta88.mt: Ditto.
6942         * config/m88k/delta88.mh: Ditto.
6943         * remote-bug.c: Ditto.
6944         * config/m88k/tm-delta88.h: Ditto.
6945         * config/m88k/nm-delta88v4.h: Ditto.
6946         * config/m88k/xm-delta88.h: Ditto.
6947         * config/m88k/xm-dgux.h: Ditto.
6948         * config/m88k/tm-m88k.h: Ditto.
6949         * config/m88k/nm-m88k.h: Ditto.
6950         * config/m88k/tm-delta88v4.h: Ditto.
6951         * m88k-nat.c: Ditto.
6952         * cxux-nat.c: Ditto.
6953         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6954         and m88*-*-* obsolete.
6955         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6956         m88*-*-* obsolete.
6957
6958 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6959
6960         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6961         constant.  Same for local pointer variables.
6962         (extract_signed_integer): Ditto.
6963         * defs.h (extract_unsigned_integer): Update.
6964         (extract_signed_integer): Update.
6965
6966 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6967
6968         * regcache.c (regcache_raw_write): Change buf parameter to a
6969         constant void pointer.
6970         (regcache_raw_read): Change buf parameter to a void pointer.
6971         (legacy_write_register_gen): Change myaddr parameter a constant
6972         void pointer.
6973         (supply_register): Change val parameter to a const void pointer.
6974         * regcache.h (regcache_raw_write): Update declaration.
6975         (regcache_raw_read): Update declaration.
6976         (supply_register): Update declaration.
6977
6978 2002-07-24  Tom Tromey  <tromey@redhat.com>
6979
6980         * defs.h (gdb_readline_wrapper): Declare.
6981         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6982         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6983         * top.c (gdb_readline_wrapper): New function.
6984         (command_line_input): Use it.
6985
6986 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6987
6988         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6989         regcache_read and regcache_write.
6990         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6991         * regcache.c: Update.
6992         * sh-tdep.c (sh64_push_arguments): Update comment.
6993         (sh_pseudo_register_read): Update.
6994         (sh_pseudo_register_write): Update.
6995         (sh4_register_read): Update.
6996         (sh4_register_write): Update.
6997         (sh64_pseudo_register_read): Update.
6998         (sh64_pseudo_register_write): Update.
6999         (sh64_register_read): Update.
7000         (sh64_register_write): Update.
7001         * i386-tdep.c (i386_extract_return_value): Update.
7002         (i386_extract_struct_value_address): Update.
7003         (i386_extract_return_value): Update.
7004         * blockframe.c (generic_read_register_dummy): Update.
7005         (generic_call_dummy_register_unwind): Update
7006         * infrun.c (write_inferior_status_register): Update.
7007
7008 2002-07-23  Jim Blandy  <jimb@redhat.com>
7009
7010         * parser-defs.h (expression_context_pc): Make this extern.
7011         (Thanks to Michael Snyder.)
7012
7013 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
7014
7015         GDB 5.2.1 released from 5.2 branch.
7016         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7017         * README: Update to mention 5.2.1.
7018
7019 2002-07-23  Mark Salter  <msalter@redhat.com>
7020
7021         * remote.c (remote_read_bytes): Fix check for error.
7022
7023 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7024
7025         * aix-thread.c (language.h): Include.
7026         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7027         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7028         Print newlines at end of debug messages.
7029         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7030         (pdc_write_data): Use local_hex_string() instead of %llx formats.
7031
7032 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7033
7034         * aix-thread.c (ppc-tdep.h): Include.
7035         (special_register_p): New function.
7036         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7037         (store_regs_user_thread): Use register number information from
7038         gdbarch_tdep struct instead of hardcoded offsets relative to
7039         FIRST_UISA_SP_REGNUM.
7040         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
7041         special_register_p() instead of using FPLAST_REGNUM and
7042         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7043         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
7044         will be MQ's register number.
7045
7046 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7047
7048         * aix-thread.c (ops): Rename to aix_thread_ops.
7049         (base_ops): Rename to base_target.
7050         (ops_attach): Rename to aix_thread_attach.
7051         (ops_detach): Rename to aix_thread_detach.
7052         (ops_resume): Rename to aix_thread_detach.
7053         (ops_wait):   Rename to aix_thread_wait.
7054         (ops_kill):   Rename to aix_thread_kill.
7055         (init_ops):   Rename to init_aix_thread_ops.
7056         (ops_fetch_register): Rename to aix_thread_fetch_register.
7057         (ops_store_register): Rename to aix_thread_store_register.
7058         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7059         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7060         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7061         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7062         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7063         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7064         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7065         (store_regs_lib):  Rename to store_regs_user_thread.
7066         (store_regs_kern): Rename to store_regs_kernel_thread.
7067
7068 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7069
7070         * aix-thread.c (ops_prepare_to_store): Eliminate.
7071         (init_ops): Don't initialize ops.prepare_to_store.
7072         (store_regs_kern): Pre-fetch register buffers from child, 
7073         because some registers may not be in the cache.  Copy
7074         regs from register cache only if they are cached.
7075         (store_regs_lib): Copy regs from register cache only
7076         if they are cached.
7077         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7078         fill_gprs64): Ditto.
7079
7080 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7081
7082         * aix-thread.c (gdb_assert.h): Include.
7083         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7084         register sizes (from register cache) match size of buffer holding
7085         register data.
7086         (fill_sprs32): Change parameter types to match those in the ptrace()
7087         buffer.
7088         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7089         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7090
7091 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7092
7093         * aix-thread.c (supply_sprs64): Cosmetic change.
7094         (supply_sprs32): Cosmetic change.
7095         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7096         (fill_sprs64): Use regcache_collect instead of read_register.
7097         (store_regs_lib): Use regcache_collect instead of 
7098         read_register.  Use fill_sprs32 instead of fill_sprs64,
7099         if debugging a 32-bit architecture.
7100         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7101         out of the register cache, instead of passing a pointer into
7102         the register cache directly to ptrace.  Use regcache_collect
7103         insteaad of read_register.
7104         (ops_prepare_to_store): Use target_read_registers instead
7105         of read_register_bytes.
7106
7107 2002-07-20  Aidan Skinner <aidan@velvet.net>
7108
7109         * MAINTAINERS: Add self under write after approval. 
7110                 
7111 2002-07-20  Aidan Skinner <aidan@velvet.net>
7112
7113         * ada-tasks.c: Change k&r style function definitions to prototyped
7114         form.
7115                 
7116 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7117
7118         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7119         * x86-64-tdep.c: Include "objfiles.h".
7120         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7121         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7122
7123 2002-07-17  Michal Ludvig  <michal@suse.cz>
7124
7125         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7126         (update_context): Initialise cfa variable.
7127
7128 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7129
7130         * aix-thread.c: Shorten some long lines.  
7131         Bring comments into line with code spec.
7132
7133 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7134
7135         * infrun.c: Re-indent using gdb_indent.sh.
7136
7137 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7138
7139         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7140         Leave the indentation temporarily untouched, to minimize the diffs.
7141
7142 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7143
7144         * stabsread.c: Make os9k sections of the code obsolete,
7145         for real this time.
7146         * stabsread.h: Make os9k sections of the code obsolete.
7147
7148 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7149
7150         * linux-low.c (regsets_store_inferior_registers): Add free()
7151         at the end of a loop to prevent memory leak.
7152         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7153         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7154         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7155         line a comment.
7156         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7157
7158 2002-07-17  Jim Blandy  <jimb@redhat.com>
7159
7160         * macrocmd.c (info_macro_command): Remove newline from error
7161         message.
7162
7163 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7164
7165         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7166         (sh_gdbarch_init): Use it for sh-dsp.
7167
7168 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7169
7170         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7171         64-bit DWARF2 format.
7172
7173 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7174
7175         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7176         <sys/proc.h> when not available.
7177
7178 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7179
7180         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7181         * stabsread.c: Make os9k sections of the code obsolete.
7182         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7183         * config/i386/i386os9k.mt: Make file obsolete.
7184         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7185         (COMMON_OBS): Remove os9kread.o
7186         (SFILES): Remove os9kread.c.
7187         (os9kread.o, remote-os9k.o): Make target obsolete.
7188         * remote-os9k.c: Make file obsolete.
7189         * os9kread.c: Make file obsolete.
7190         * Makefile.in
7191
7192 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7193
7194         * NEWS: Mention that the FR30 has been made obsolete.
7195         * fr30-tdep.c: Make file obsolete.
7196         * config/fr30/tm-fr30.h: Ditto.
7197         * config/fr30/fr30.mt: Ditto.
7198         * configure.tgt: Make fr30-*-elf obsolete.
7199         * MAINTAINERS: Make fr30-elf obsolete.
7200
7201 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7202
7203         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7204         found is not inside a section.
7205
7206 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7207
7208         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7209         strerror().
7210         (pdc_realloc): Use xrealloc() instead of realloc().
7211
7212 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7213
7214         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7215         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7216         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7217         macros.
7218
7219 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7220
7221         * aix-thread.c (ptrace_check): Eliminate goto.
7222         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7223         problem.
7224
7225 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7226
7227         * aix-thread.c (gdbcmd.h): Include.
7228         (DEBUG, DBG, DBG2, dbg): Eliminate.
7229         (debug_aix_thread): New static global.
7230         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7231         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7232         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7233         invocations to DBG and DBG2 macros to test against
7234         ``debug_aix_thread'' and call fprintf_unfiltered().
7235         (_initialize_aix_thread): Add new command "set debug aix-thread".
7236
7237 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7238
7239         From Gerhard Tonn <TON@de.ibm.com>:
7240         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7241         instead of supply_register.
7242
7243 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7244
7245         * dwarf2cfi.c: Include "gdb_assert.h".
7246         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7247         non-NULL.
7248         (update_context): Do not use __func__.  Add missing ``break''.
7249         (update_context): Do not use __func__.
7250
7251 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7252
7253         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7254         and its setting.  Set gdbarch instruction printing functions
7255         directly.  For non-rs6000 case use new function
7256         gdb_print_insn_powerpc.
7257         (gdb_print_insn_powerpc): New function.
7258
7259 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7260
7261         * NEWS: Mention that the d30v has been marked obsolete.
7262         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7263         * configure.tgt: Mark d30v-*-* as obsolete.
7264         * d30v-tdep.c: Mark file as obsolete.
7265         * config/d30v/d30v.mt: Ditto.
7266         * config/d30v/tm-d30v.h: Ditto.
7267
7268 2002-07-13  Aidan Skinner <aidan@velvet.net>
7269
7270         * ada-tasks.c (add_task_entry): replace calls to
7271         malloc() with xmalloc
7272         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7273         
7274         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7275         ada_finish_decode_line_1, all_sals_for_line
7276         ada_breakpoint_rewrite): replace calls to free() with xfree()
7277                 
7278 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7279
7280         From Nicholas Duffek (with minor changes by Martin Hunt, 
7281         Louis Hamilton, and Kevin Buettner):
7282         * aix-thread.c: New file.
7283
7284 2002-07-12  Petr Sorfa <petrs@caldera.com>
7285
7286         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7287         complaint for invalid attribute class or form.
7288         (read_func_scope): DW_AT_frame_base
7289         better handling of DW_AT_block*.
7290         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7291         better handling of DW_AT_block*.
7292         (read_common_block): DW_AT_location
7293         better handling of DW_AT_block*.
7294         (read_partial_die): DW_AT_location better handling
7295         of DW_AT_block*.
7296         (new_symbol): DW_AT_external better handling of
7297         DW_AT_block*. Proper initialization of variable
7298         "addr".
7299         (attr_form_is_block): New function that returns true
7300         if the attribute's form is of DW_FORM_block*.
7301
7302 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7303
7304         * valops.c (find_method_list): Remove comment about
7305         removed STATIC_MEMFUNCP argument.
7306         (value_find_oload_method_list): Likewise.
7307
7308 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7309
7310         From Nicholas Duffek:
7311         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7312         target_new_objfile_hook.
7313
7314 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7315
7316         From Nicholas Duffek:
7317         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7318         csect.
7319
7320 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7321
7322         * MAINTAINERS: Mention --enable-sim-build-warnings.
7323         (m68hc11-elf): Disable sim build warnings.
7324         (m32r-elf): Mark as broken obsolete candidate.
7325         (x86_64-linux-gnu): Mark as buildable with -Werror.
7326         (arm-elf): Change -w to ``,'' which enables warnings but not
7327         -Werror.
7328
7329 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7330
7331         * bcache.h: Update copyright.
7332         (struct bstring, struct bcache): Move definition to "bcache.c".
7333         Replaced by opaque declaration.
7334         (bcache_xfree): Replace free_bcache.
7335         (bcache_xmalloc, bcache_memory_used): Declare.
7336         
7337         * bcache.c: Update copyright.
7338         (struct bstring, struct bcache): Moved to here from "bcache.h".
7339         Update comments.
7340         (bcache_xmalloc, bcache_memory_used): New functions.
7341         (bcache_xfree): Replace function free_bcache.
7342         
7343         * Makefile.in (objfiles.o): Add $(bcache_h).
7344         (objfiles_h): Remove $(bcache_h).
7345         (symfile.o): Add $(bcache_h).
7346
7347         * symmisc.c: Update copyright.
7348         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7349         (print_objfile_statistics): Use bcache_memory_used.
7350
7351         * symfile.c: Include "bcache.h".
7352         (reread_symbols): Use bcache_xfree.
7353         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7354         (add_psymbol_to_list): Pass psymbol_cache by value.
7355         (add_psymbol_with_dem_name_to_list): Ditto.
7356
7357         * objfiles.h: Update copyright.
7358         (struct bcache): Declare opaque.  Do not include "bcache.h".
7359         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7360         bcache'' pointers.
7361         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7362
7363         * objfiles.c: Include "bcache.h".  Update copyright.
7364         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7365         macro_cache.
7366         (free_objfile): Use bcache_xfree.
7367
7368 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7369
7370         * monitor.c (monitor_fetch_register): Make name a constant.
7371         (monitor_store_register): Same.
7372
7373 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7374
7375         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7376         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7377         (finish_block) For non-function blocks, hash the symbol table.  For
7378         function blocks, mark the symbol table as unhashed.
7379         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7380         (msymbol_hash_iw): Likewise.
7381         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7382         value.
7383         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7384         (lookup_minimal_symbol): Likewise for both.
7385         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7386         hashtable.
7387         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7388         (ALL_BLOCK_SYMBOLS): Update.
7389         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7390         (struct symbol): Add `hash_next' pointer.
7391         * symtab.c (lookup_block_symbol): Search using the hash table when
7392         possible.
7393         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7394         (search_symbols, find_addr_symbol): Likewise.
7395
7396         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7397         (read_dst_symtab): Likewise.
7398         * jv-lang.c (get_java_class_symtab): Likewise.
7399         * mdebugread.c: Include "gdb_assert.h".
7400         (shrink_block): Assert that the block being modified is not hashed.
7401         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7402         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7403         symbols.
7404         (dump_symtab): Recognize hashed blocks.
7405         * printcmd.c (print_frame_args):  Assert that function blocks do not
7406         have hashed symbol tables.
7407         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7408         (fill_in_ada_prototype, debug_print_block): Likewise.
7409         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7410
7411 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7412
7413         * stack.c (print_frame): Use result of frame_address_in_block()
7414         instead of fi->pc when evaluating symbols.
7415         (backtrace_command_1): Ditto.
7416
7417 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7418
7419         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7420         Make static.
7421
7422         * arm-tdep.c (arm_register_name): Make return type constant.
7423
7424 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7425
7426         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7427         prototype.
7428         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7429         * s390-tdep.c (s390_fp_regnum): Ditto.
7430         (s390_read_fp): Ditto.
7431         (s390_pop_frame): Ditto.
7432         (_initialize_s390_tdep): Ditto.
7433         * remote.c (get_remote_state): Ditto.
7434         * procfs.c (mappingflags): Ditto.
7435         * memattr.c (_initialize_mem): Ditto.
7436         * mcore-tdep.c (mcore_pop_frame): Ditto.
7437         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7438         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7439         * language.c (set_case_str): Ditto.
7440         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7441         * frv-tdep.c (new_variant): Ditto.
7442         (frv_stopped_data_address): Ditto.
7443         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7444         (context_alloc): Ditto.
7445         (frame_state_alloc): Ditto.
7446         (unwind_tmp_obstack_init): Ditto.
7447         (unwind_tmp_obstack_free): Ditto.
7448         (cfi_read_fp): Ditto.
7449         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7450         (cris_pop_frame): Ditto.
7451         * c-lang.c (scanning_macro_expansion): Ditto.
7452         (finished_macro_expansion): Ditto.
7453         (c_preprocess_and_parse): Ditto.
7454         * gdbarch.sh: Ditto.
7455         * gdbarch.h, gdbarch.c: Regenerate.
7456         * config/mn10200/tm-mn10200.h: Adjust indentation.
7457         * target.c: Adjust indentation.
7458         * symtab.h: Adjust indentation.
7459         * stabsread.h: Adjust indentation.
7460         * remote-es.c: Adjust indentation.
7461         * os9kread.c: Adjust indentation.
7462
7463 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7464         
7465         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7466         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7467
7468 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7469         
7470         * NEWS: Mention m68k, mcore multi-arching.  
7471         * MAINTAINERS: Change status of m68k, mcore to reflect
7472         multi-arching.
7473
7474 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7475
7476         * valops.c (find_overload_match): Free oload_syms.
7477
7478 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7479
7480         Define HAVE_SYS_PROC_H if sys/proc.h exists
7481         * configure.in: Add check for sys/proc.h
7482         * config.in: Regenerate.
7483         * configure: Regenerate.
7484
7485 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7486
7487         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7488         #if !GDB_MULTI_ARCH. 
7489
7490 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7491
7492         * config.in, configure: Regenerate.
7493
7494 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7495
7496         * dwarf2cfi.c: Include "gcore.h".
7497         (execute_stack_op): Fix implementation of the
7498         DW_OP_deref and DW_OP_deref_size operators by letting do their
7499         lookup in the target.
7500
7501 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7502
7503         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7504         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7505         tdep->sc_sp_offset.
7506
7507 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7508
7509         Fix PR gdb/595, gdb/602
7510         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7511         Don't call value_cast, just read the vtable pointer; update comments
7512         to match.
7513
7514 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7515
7516         * config/mcore/tm-mcore.h: Remove file.
7517         * config/mcore/mcore.mt: Remove definition of TM_FILE
7518         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7519
7520 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7521
7522         * i386bsd-tdep.c: Include "gdb_string.h".
7523
7524 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7525
7526         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7527         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7528         mcore-tdep.
7529         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7530         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7531         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7532         (RETVAL_REGNUM): Move macros from tm-mcore.h
7533         (mcore_reg_struct_has_addr): New function.
7534         (mcore_gdbarch_init): Added initializations for the macros removed
7535         from tm-mcore.h.
7536
7537 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7538
7539         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7540         traditonal string branding within the ELF header.
7541
7542 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7543
7544         * symtab.c (remove_params): New function.
7545         (make_symbol_overload_list): Use it instead of cplus_demangle.
7546         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7547
7548 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7549
7550         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7551
7552         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7553         New variables.
7554         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7555         and tdep->sigtramp_end.
7556         * i386obsd-nat.c: New file.
7557         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7558
7559         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7560         Don't call get_current_frame().
7561
7562 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7563
7564         * i386-nat.c (child_post_startup_inferior): New function
7565         calling i386_cleanup_dregs if
7566         I386_USE_GENERIC_WATCHPOINTS is defined.
7567         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7568         conditional to acknowledge that i386-nat.c has its
7569         own child_post_startup_inferior function.
7570
7571 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7572
7573         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7574         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7575         instead of MAX_REGISTER_RAW_SIZE.
7576         (i386_extract_return_value, i386_extract_struct_value_address):
7577         Convert to use regcache.
7578         (i386_gdbarch_init): Set max_register_raw_size and
7579         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7580         Set extract_return_value and extract_struct_value_address instead
7581         of their deprecated variants.
7582
7583         Convert i386 target to generic dummy frames.
7584         * i386-tdep.c: Include "symfile.h".
7585         (i386_frameless_signal_p): Consider a function to be frameless if
7586         the pc points at the first instruction of the function.
7587         (i386_frame_chain): Handle (generic) call dummies.
7588         (i386_frame_saved_pc): Likewise.
7589         (i386_frame_init_saved_regs): Remove code dealing with call
7590         dummies on the stack.
7591         (i386_push_dummy_frame): Removed.
7592         (i386_call_dummy_words): Removed.
7593         (i386_fix_call_dummy): Removed.
7594         (i386_push_return_address): New function.
7595         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7596         parameter, and don't call get_current_frame.
7597         (i386_pop_frame): New function.
7598         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7599         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7600         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7601         call_dummy_length to 0, set call_dummy_words to NULL, set
7602         sizeof_call_dummy_words to 0, set fix_call_dummy to
7603         generic_fix_call_dummy, set pc_in_call_dummy to
7604         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7605         generic_push_dummy_frame, set push_return_address to
7606         i386_push_return_address and set frame_chain_valid to
7607         generic_file_frame_chain_valid.
7608
7609 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7610
7611         * gdbarch.sh (struct regcache): Add opaque declaration.
7612         (EXTRACT_RETURN_VALUE): New architecture method.
7613         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7614         * gdbarch.h, gdbarch.c: Regenerate.
7615         * arch-utils.c (legacy_extract_return_value): New function.
7616         * arch-utils.h (legacy_extract_return_value): Declare.
7617         * values.c (value_being_returned): Re-enable code handling
7618         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7619         deprecated_grub_regcache_for_registers call to block handling
7620         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7621         (EXTRACT_RETURN_VALUE): Do not define.
7622
7623 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7624
7625         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7626         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7627         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7628         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7629         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7630         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7631         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7632         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7633         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7634         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7635         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7636         argument so the function fits the prototype in the architecture
7637         vector.
7638         (mcore_pop_frame): Remove argument so the function fits the
7639         prototype. Use get_current_frame instead of the argument.
7640         (mcore_push_arguments): Change type of struct_return so the
7641         function can be used in the architecture vector.
7642         (mcore_store_struct_return): Add.
7643         (mcore_frame_init_saved_regs): Add.
7644         (mcore_gdbarch_init): Add function calls to replace the macros
7645         removed from tm-mcore.h
7646
7647 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7648
7649         * infcmd.c (print_return_value): Remove compatibility code calling
7650         deprecated_grub_regcache_for_registers.
7651         
7652         * values.c: Include "regcache.h".
7653         (value_being_returned): Update.  Use
7654         deprecated_grub_regcache_for_registers to extract the register
7655         buffer address.  
7656         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7657         ``struct regcache''.
7658         * Makefile.in (values.o): Add dependency on $(regcache_h).
7659
7660         * inferior.h (run_stack_dummy): Change type of second parameter to
7661         a ``struct regcache''.
7662         * valops.c (hand_function_call): Change type of retbuf to ``struct
7663         regcache''.  Allocate using regcache_xmalloc, clean using
7664         make_cleanup_regcache_xfree.
7665         * infcmd.c (run_stack_dummy): Update.  Use
7666         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7667
7668         * regcache.c (do_regcache_xfree): New function.
7669         (make_cleanup_regcache_xfree): New function.
7670         * regcache.h (make_cleanup_regcache_xfree): Declare.
7671
7672 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7673
7674         * event-top.c (command_line_handler): Don't read past
7675         beginning of buffer.
7676
7677 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7678         
7679         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7680         struct frame_id. 
7681         (varobj_create): Store frame_id for root.
7682         (varobj_gen_name): Use xasprintf.
7683         (varobj_update): Save and restore frame using get_frame_id() and
7684         frame_find_by_id().
7685         (create_child): Use xasprintf.
7686         (new_root_variable): Initialize frame_id.
7687         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7688         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7689         to prevent memory leak.
7690
7691 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7692
7693         * valops.c (hand_function_call): Move declaration of retbuf to
7694         start of function, allocate using malloc, add a cleanup but before
7695         the inf_status cleanup, cleanup the buffer.  Rename local variable
7696         old_chain to inf_status_cleanup.
7697
7698 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7699
7700         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7701
7702         * cli/cli-decode.c (cmd_func_p): New function.
7703         (cmd_func): New function.
7704
7705         * command.h: Add cmd_func() and cmd_func_p().   
7706         
7707 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7708
7709         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7710         (REGISTER_SIZE): Remove.
7711         (MAX_REGISTER_RAW_SIZE): Remove.
7712         (REGISTER_VIRTUAL_TYPE): Remove.
7713         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7714         (REGISTER_NAME): Remove.
7715         (USE_GENERIC_DUMMY_FRAMES): Remove.
7716         (CALL_DUMMY): Remove.
7717         (CALL_DUMMY_START_OFFSET): Remove.
7718         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7719         (CALL_DUMMY_LOCATION): Remove.
7720         (FIX_CALL_DUMMY): Remove.
7721         (CALL_DUMMY_ADDRESS): Remove.
7722         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7723         (SAVE_DUMMY_FRAME_TOS): Remove.
7724         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7725         (mcore_register_virtual_type): New function.
7726         (mcore_register_byte): New function.
7727         (mcore_register_size): New function.
7728         (mcore_register_name): New function.
7729         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7730         macros removed from tm-mcore.h.
7731         (mcore_dump_tdep): Add.
7732         (_initialize_mcore_tdep): Add gdbarch_register call.
7733
7734 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7735
7736         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7737         frameless_look_for_prologue, such that we actually call this
7738         function.
7739
7740 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7741
7742         * frame.h (frame_address_in_block): New function.
7743
7744         * blockframe.c (frame_address_in_block): New function extracted
7745         from get_frame_block().
7746         (get_frame_block): Use frame_address_in_block().
7747         (block_innermost_frame): Use frame_address_in_block() to match
7748         the frame pc address against the block boundaries rather than
7749         the frame pc directly. This prevents a failure when a frame pc
7750         is actually a return-address pointing immediately after the end
7751         of the given block. 
7752
7753 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7754
7755         * MAINTAINERS: Add self under write after approval. 
7756
7757 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7758
7759         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7760         used in architecture vector. The default is
7761         m68k_local_breakpoint_from_pc.
7762         (m68k_local_breakpoint_from_pc): Add.
7763         (enum): Add register numbers from tm-m68k.h.
7764         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7765         vector.  
7766         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7767         GDB_MULTI_ARCH_PARTIAL.
7768         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7769         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7770         m68k-tdep.c.
7771         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7772         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7773         to enum in m68k-tdep.c
7774
7775 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7776
7777         * solib-osf.c (open_map): Compute the list of shared libraries
7778         loaded by the inferior, rather than the list of libraries loaded
7779         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7780         the wrong shared libraries...
7781
7782 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7783
7784         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7785         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7786         macros.
7787         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7788         Remove functions.
7789         (FRAMELESS_SIGNAL): Remove function.
7790         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7791         i386_linux_saved_pc_after_call): Removed.
7792         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7793         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7794         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7795
7796         * i386-tdep.c (i386_frameless_signal_p): New function.
7797         (i386_frame_chain): Deal with frameless signals.
7798         (i386_sigtramp_saved_sp): New function.
7799         (i386_frame_saved_pc): Deal with frameless signals.
7800         (i386_saved_pc_after_call): Make sure the correct value is
7801         returned just after entry into a sigtramp.
7802         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7803         i386fbsd4_sc_sp_offset): New variables.
7804         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7805         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7806         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7807         similiar to what we already did for sc_pc_offset.
7808         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7809         tdep->sc_sp_offset.
7810
7811         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7812
7813 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7814
7815         * config/i386/tm-x86-64linux.h: New.
7816         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7817         definitions.
7818         * config/i386/nm-x86-64.h: Rename to ...
7819         * config/i386/nm-x86-64linux.h: ... this one.
7820         * config/i386/x86-64linux.mh: Reflect the above change.
7821         
7822 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7823
7824         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7825         with sigcontext_addr.  Add sc_sp_offset.
7826         (i386bsd_sigtramp_saved_pc): Remove prototype.
7827         (i386bsd_sicontext_addr): Add prototype.
7828         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7829         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7830         (i386_svr4_sigtramp_saved_pc): Removed.
7831         (i386_svr4_sigcontext_addr): New function.
7832         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7833         Initialize tdep->sigcontext_addr instead.  Initialize
7834         tdep->sc_pc_offset and tdep->sc_sp_offset.
7835         (i386_gdbarch_init): Likewise.
7836         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7837         any more.
7838         (i386bsd_sigtramp_saved_pc): Remove function.
7839         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7840         Initialize tdep->sigcontext_addr instead.  Initialize
7841         tdep->sc_pc_offset.
7842         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7843         of tdep->sigtramp_saved_pc.
7844         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7845         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7846         instead.
7847
7848         * i386-tdep.c (i386_frameless_function_invocation,
7849         i386_frame_num_args, i386_frame_init_saved_regs,
7850         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7851         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7852         i386_extract_return_value, i386_store_return_value,
7853         i386_extract_struct_value_address, i386_register_virtual_type,
7854         i386_register_convertible, i386_register_convert_to_virtual,
7855         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7856         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7857         static.
7858
7859 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7860
7861         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7862
7863         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7864         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7865         this macro.  Include "value.h".
7866
7867 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7868
7869         * ada-exp.tab.c: remove as it's a generated file
7870         * ada-lex.c: remove as it's a generated file
7871                 
7872 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7873
7874         * config/i386/tm-i386.h (struct frame_info, struct
7875         frame_saved_regs, struct value, struct type): Remove forward
7876         declarations.
7877
7878         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7879         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7880         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7881         (FILL_FPXREGSET): Define.
7882
7883         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7884
7885         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7886         i[3456]86-*-netbsd* case.
7887         * config/i386/tm-obsd.h: Removed.
7888         * config/i386/obsd.mt: Removed.
7889         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7890         core-aout.o.
7891         (MH_CFLAGS): Add -DYYDEBUG=0.
7892
7893         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7894         i386nbsd_sc_pc_offset on OpenBSD too.
7895
7896         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7897         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7898         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7899         define.
7900         * i386bsd-tdep.c: Include "arch-utils.h".
7901         (i386bsd_aout_in_solib_call_trampoline): New function.
7902         (i386bsd_init_abi): Set in_solib_call_trampoline to
7903         i386bsd_aout_in_solib_call_trampoline.
7904         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7905         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7906
7907 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7908
7909         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7910         (struct obstack, struct bcache): Add opaque declarations.
7911         * Makefile.in (macrotab_h): Update
7912
7913 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7914
7915         * blockframe.c (generic_find_dummy_frame): Change return type to
7916         ``struct regcache''.
7917         (struct dummy_frame): Replace field ``registers'' with regcache, a
7918         struct regcache object.
7919         (generic_find_dummy_frame): Update.
7920         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7921         regcache_xmalloc and regcache_cpy.
7922         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7923         regcache_xfree.
7924         (deprecated_generic_find_dummy_frame): Update.
7925         (generic_read_register_dummy): Update.  Use
7926         regcache_read_as_address.
7927         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7928         (generic_get_saved_register): Update.  Use regcache_read.
7929
7930 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7931
7932         * Makefile.in (objfiles_h): Add $(bcache_h).
7933         * objfiles.h: Include "bcache.h".
7934
7935         * Makefile.in (symtab_h): Remove $(bcache_h).
7936         * symtab.h: Do not include "bcache.h".
7937
7938 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7939
7940         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7941         generic_func_frame_chain_valid.
7942
7943 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7944
7945         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7946         * config/i386/tm-fbsd.h: Likewise.
7947
7948 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7949
7950         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7951         generic_unwind_get_saved_register.
7952
7953 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7954
7955         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7956         * regcache.c (supply_register): Add missing argument to
7957         register_buffer call.
7958
7959 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7960
7961         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7962         Solaris /bin/grep does not not like it.  From Peter Schauer.
7963
7964 2002-06-26  Tom Tromey  <tromey@redhat.com>
7965
7966         * command.h (add_setshow_cmd): Declare.
7967         (add_setshow_cmd_full): Declare.
7968         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7969         returns void.  Use add_setshow_cmd_full.
7970         (add_setshow_cmd_full): New function.
7971         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7972         (add_setshow_boolean_cmd): Likewise.
7973
7974 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7975
7976         * config/vax/tm-vax.h: Protect from multiple inclusion.
7977         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7978         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7979         * config/vax/tm-vaxbsd.h: ...here.  New file.
7980         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7981
7982 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7983
7984         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7985         (BELIEVE_PCC_PROMOTION): Remove.
7986         (AP_REGNUM): Move to...
7987         * config/vax/nm-vax.h: ...here.
7988         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7989         (vax_breakpoint_from_pc): New function.
7990         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7991         and gdbarch_believe_pcc_promotion.
7992
7993 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7994
7995         * Makefile.in (vax_tdep_h): Define.  
7996         (vax-tdep.o): Use $(vax_tdep_h).
7997         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7998         (vax_dump_tdep): New function. 
7999         (_initialize_vax_tdep): Register vax_dump_tdep.
8000         * vax-tdep.h: Include osabi.h.     
8001         (struct gdbarch_tdep): New. 
8002
8003 2002-06-26  Andrew Cagney  <cagney@redhat.com>
8004
8005         * frame.h (deprecated_generic_find_dummy_frame): Rename
8006         generic_find_dummy_frame.
8007         * blockframe.c (generic_find_dummy_frame): Make static.
8008         (deprecated_generic_find_dummy_frame): New function.
8009         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8010         generic_find_dummy_frame with deprecated_find_dummy_frame.
8011         (sh64_nofp_frame_init_saved_regs): Ditto.
8012         (sh_fp_frame_init_saved_regs): Ditto.
8013         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8014         (s390_frame_chain): Ditto.
8015         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8016
8017 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8018
8019         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8020         gdbarch vector are at the top.
8021         (NUM_REGS): Remove.
8022         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8023         (FRAME_ARGS_ADDRESS): Remove.
8024         (FRAME_LOCALS_ADDRESS): Remove.
8025         (FRAME_NUM_ARGS): Remove.
8026         (FRAME_ARGS_SKIP): Remove.  
8027         * m68k-tdep.c (enum): Add eumeration of special register numbers.
8028         (m68k_gdbarch_init): Add gdbarch initializations for macros
8029         undefined in tm-m68k.h
8030
8031 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8032
8033         * monitor.h: Add the function regname to monitor_ops
8034         structure. This way NUM_REGS does not have to be a constant.
8035         * monitor.c (monitor_fetch_register): Added support for regname
8036         function. The function is called if the array regnames is NULL.
8037         (monitor_store_register): Same.
8038         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8039         regnames array.
8040         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8041         cpu32bug_cmds.regname to point to new function.
8042         * abug-rom.c (abug_regname): Same as above.
8043         (init_abug_cmds): Same.
8044         * dbug-rom.c (dbug_regname): Same as above.
8045         (init_dbug_cmds): Same.
8046         * remote-est.c (est_regname): Same. 
8047         (init_est_cmds): Same.
8048         * rom68k-rom.c (rom68k_regname): Same. 
8049         (init_rom68k_cmds): Same.
8050
8051 2002-06-25  Tom Tromey  <tromey@redhat.com>
8052
8053         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8054
8055 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8056
8057         * infrun.c (stop_registers): Change variable's type to ``struct
8058         regcache'''.
8059         (xmalloc_inferior_status): Delete function.
8060         (free_inferior_status): Delete function.
8061         (normal_stop): Use regcache_cpy.
8062         (struct inferior_status): Change type of fields ``stop_registers''
8063         and ``registers'' to ``struct regcache''.
8064         (write_inferior_status_register): Use regcache_write.
8065         (save_inferior_status): Instead of calling
8066         xmalloc_inferior_status, allocate the inf_status buffer directly.
8067         Use regcache_dup_no_passthrough and regcache_dup to save the
8068         buffers.
8069         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8070         Replace the stop_registers regcache instead of overriding it.  Use
8071         regcache_xfree.  Instead of calling free_inferior_status, xfree
8072         the buffer directly.
8073         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8074         free_inferior_status, xfree the buffer directly.
8075         (build_infrun): Use regcache_xmalloc.
8076         (_initialize_infrun): Delete redundant call to build_infrun.
8077
8078         * Makefile.in (infcmd.o): Add $(regcache_h).
8079
8080         * infcmd.c: Include "regcache.h".
8081         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8082         obtain the address of `stop_registers' register buffer.
8083         (print_return_value): Ditto.
8084
8085         * inferior.h (struct regcache): Add opaque declaration.
8086         (stop_registers): Change variable's declared type to ``struct
8087         regcache''.
8088
8089 2002-06-24  Tom Tromey  <tromey@redhat.com>
8090
8091         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8092         * target.c (initialize_targets): Fixed typo in
8093         trust-readonly-sections `show' documentation.
8094
8095         * main.c: Marked all strings with _().
8096
8097 2002-06-24  Don Howard  <dhoward@redhat.com>
8098
8099         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8100         that means max CORE_ADDR+1.
8101         (lookup_mem_region): Ditto.
8102         (mem_info_command): Ditto.
8103
8104 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8105
8106         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8107         (REGISTER_BYTES_OK): Remove.
8108         (REGISTER_BYTES): Remove.
8109         (STORE_STRUCT_RETURN): Remove.
8110         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8111         (STORE_RETURN_VALUE): Remove.
8112         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8113         (FRAME_CHAIN): Remove.
8114         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8115         (FRAME_SAVED_PC): Remove.  
8116         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8117         (m68k_store_struct_return): Add.
8118         (m68k_deprecated_extract_return_value): Add.
8119         (m68k_deprecated_extract_struct_value_address): Add.
8120         (m68k_store_return_value): Add.
8121         (m68k_frame_chain): Add.
8122         (m68k_frameless_function_invocation): Add.
8123         (m68k_frame_saved_pc): Add.
8124         (m68k_gdbarch_init): added set_gdbarch calls for new 
8125         functions and deleted macros.
8126
8127 2002-06-23  Tom Tromey  <tromey@redhat.com>
8128
8129         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8130         (ALLDEPFILES): Likewise.
8131         (udiheaders): Removed.
8132         (udip2soc.o): Likewise.
8133         (udi2go32.o): Likewise.
8134         (udr.o): Likewise.
8135         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8136
8137 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8138
8139         * infrun.c (_initialize_infrun): Delete unnecessary call to
8140         build_infrun.
8141
8142         * regcache.h: Update comments describing the regcache_cpy family
8143         of functions.
8144         (regcache_save, regcache_restore): Delete declaration.
8145         (regcache_save_no_passthrough): Delete declaration.
8146         (regcache_restore_no_passthrough): Delete declaration.
8147         * regcache.c (regcache_save): Delete function.
8148         (regcache_save_no_passthrough): Delete function.
8149         (regcache_restore): Delete function.
8150         (regcache_restore_no_passthrough): Delete function.
8151
8152 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8153
8154         * config/m68k/tm-m68k.h: Fix typo.
8155         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8156         (m68k_frame_init_saved_regs): Declare.
8157
8158 2002-06-21  Jim Blandy  <jimb@redhat.com>
8159
8160         Remove some vestiges of Harris 88k support.
8161         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8162         register numbering quirk.
8163         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8164         odd symbols occurring in Harris 88k ELF targets.
8165
8166 2002-06-21  Tom Tromey  <tromey@redhat.com>
8167
8168         * gdb_locale.h: New file.
8169         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8170         (defs_h): Added gdb_locale.h.
8171         * configure, config.in: Rebuilt.
8172         * configure.in (PACKAGE): Define.
8173         * defs.h: Include gdb_locale.h.
8174         * main.c (captured_main): Call setlocale, bindtextdomain,
8175         textdomain.
8176
8177 2002-06-21  Dave Brolley  <brolley@redhat.com>
8178
8179         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8180         * config/frv/frv.mt: New file.
8181         * config/frv/tm-frv.h: New file.
8182         * configure.tgt: Support frv-*-*.
8183         * Makefile.in (frv-tdep.o): New target.
8184         * frv-tdep.c: New file.
8185         * NEWS: Mention frv.
8186
8187 2002-06-21  Dave Brolley  <brolley@redhat.com>
8188
8189         * MAINTAINERS: Add self to "Write After Approval" list.
8190
8191 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8192
8193         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8194         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8195         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8196         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8197         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8198
8199         * m68k-tdep.c: Include arch-utils.h
8200         (m68k_register_raw_size): Add.
8201         (m68k_register_virtual_size): Add.
8202         (m68k_register_virtual_type): Add.
8203         (m68k_register_name): Add.
8204         (m68k_stack_align): Add.
8205         (m68k_register_byte): Add.
8206         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8207         tm-m68k.h.
8208
8209 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8210
8211         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8212         m68k_find_saved_regs.
8213         (m68k_pop_frame): Removed saved_regs structure, and replaced
8214         references to it with frame->saved_regs.
8215         (m68k_gdbarch_init): Added function calls to initialize the
8216         gdbarch structure.
8217         (m68k_fix_call_dummy): Add. 
8218         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8219         (CALL_DUMMY): Remove.
8220         (CALL_DUMMY_LENGTH): Remove.
8221         (CALL_DUMMY_START_OFFSET): Remove.
8222         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8223         (FIX_CALL_DUMMY): Remove.
8224         (PUSH_DUMMY_FRAME): Remove.
8225         (POP_FRAME): Remove.
8226
8227 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8228
8229         * parse.c (parse_fprintf): New function used to avoid calls to
8230         fprintf in bison parser generated debug code.
8231         * parser-defs.h: Declaration of new parse_fprintf function.
8232         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8233         Set YYDEBUG to 1 by default.
8234         Set YYFPRINTF as parse_fprintf.
8235
8236 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8237
8238         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8239         encoding anymore.
8240         (pointer_encoding, enum ptr_encoding): New.
8241         (execute_cfa_program): Take care about pointer encoding.        
8242         (dwarf2_build_frame_info): Only call parse_frame_info for 
8243         .debug_frame and .eh_frame.
8244         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8245         fixed augmentation handling, added relative addressing, 
8246         ignore duplicate FDEs. Added comments.
8247         * dwarf2cfi.c: Reindented.
8248         
8249 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8250
8251         * event-top.c (command_handler): Don't use space_at_cmd_start
8252         unless there is sbrk() on the host. Assign time and space data
8253         to union fields of the appropriate length.
8254
8255 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8256
8257         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8258         x86_64_register_name. Return type changed to 'const char *'.
8259         (x86_64_register_name2nr): Rename to x86_64_register_number.
8260         (x86_64_gdbarch_init): Update to reflect the change.
8261         * x86-64-tdep.h: Ditto.
8262         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8263         (supply_fpregset): Ditto.
8264
8265 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8266
8267         * regcache.h: Update copyright.
8268         (struct regcache, struct gdbarch): Add opaque declarations.
8269         (current_regcache): Declare global variable.
8270         (regcache_read, regcache_write): Add gdbarch parameter.
8271         (regcache_save, regcache_save_no_passthrough)
8272         (regcache_restore, regcache_restore_no_passthrough)
8273         (regcache_dup, regcache_dup_no_passthrough)
8274         (regcache_cpy, regcache_cpy_no_passthrough)
8275         (deprecated_grub_regcache_for_registers)
8276         (deprecated_grub_regcache_for_register_valid)
8277         (regcache_valid_p): Add function declarations.
8278         
8279         * regcache.c: Update copyright.
8280         (regcache_descr_handle): New global variable.
8281         (struct regcache_descr): Define.
8282         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8283         (regcache_descr, xfree_regcache_descr): New functions.
8284         (struct regcache): Define.
8285         (regcache_xmalloc, regcache_xfree): New functions.
8286         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8287         (regcache_dup, regcache_dup_no_passthrough): New functions.
8288         (regcache_valid_p, regcache_read_as_address): New functions.
8289         (deprecated_grub_regcache_for_registers): New function.
8290         (deprecated_grub_regcache_for_register_valid): New function.
8291         (current_regcache): New global variable.
8292         (register_buffer): Add regcache parameter.  Update calls.
8293         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8294         (read_register_gen, write_register_gen): Update register_buffer
8295         call.  Test for legacy_p instead of gdbarch_register_read_p or
8296         gdbarch_register_write_p.
8297         (regcache_collect): Update register_buffer call.
8298         (build_regcache): Rewrite.  Use deprecated grub functions.
8299         (regcache_save, regcache_save_no_passthrough): New functions.
8300         (regcache_restore, regcache_restore_no_passthrough): New
8301         functions.
8302         (_initialize_regcache): Create the regcache_data_handle. Swap
8303         current_regcache global variable.
8304         
8305         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8306         parameter to regcache_read and regcache_write calls.
8307         (sh4_register_read): Ditto.
8308         (sh64_pseudo_register_read): Ditto.
8309         (sh64_register_read): Ditto.
8310         (sh_pseudo_register_write): Ditto.
8311         (sh4_register_write): Ditto.
8312         (sh64_pseudo_register_write): Ditto.
8313         (sh64_register_write): Ditto.
8314
8315         * defs.h (XCALLOC): Define.
8316
8317 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8318
8319         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8320         * m68k-tdep.c (m68k_gdbarch_init): Added.
8321         (m68k_dump_tdep): Added.
8322
8323 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8324
8325         * ada-lang.c (fill_in_ada_prototype): Update comment.
8326
8327 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8328
8329         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8330         MIPS_ABI_LAST.
8331         (mips_abi_string, mips_abi_strings): New.
8332         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8333         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8334         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8335         O32 if no ABI is found.
8336         (mips_dump_tdep): Use mips_abi_strings.
8337         (mips_abi_update): New function.
8338         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8339         ``set mips abi'' and ``show mips abi''.  Check the size of
8340         mips_abi_strings.
8341
8342 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8343
8344         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8345         constant.
8346
8347 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8348
8349         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8350         current frame using only the first stack size adjustment. All
8351         subsequent size adjustments are not considered to be part of
8352         the "static" part of the current frame.
8353         Compute the address of the saved registers relative to the
8354         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8355         in use in this frame.
8356
8357 2002-06-18  Don Howard  <dhoward@redhat.com>
8358  
8359         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8360         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8361         suggesting this solution.
8362
8363 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8364
8365         * config/romp/xm-rtbsd.h: Delete file.
8366         * config/romp/rtbsd.mh: Delete file.
8367
8368 2002-06-18  Keith Seitz  <keiths@redhat.com>
8369
8370         * breakpoint.c (condition_command): Post breakpoint_modify
8371         when a condition is added to an existing breakpoint.
8372         (commands_command): Likewise for commands.
8373         (set_ignore_count): Likewise for ignore counts.
8374         If no tty, do not simply return, still need to send event
8375         notification.
8376         (ignore_command): Only print a newline if the command came
8377         from a tty.
8378         Don't call breakpoints_changed, since this is now properly
8379         handled by set_ignore_count.
8380
8381 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8382
8383         * MAINTAINERS: Note that cris-elf target can be compiled with
8384         -Werror.
8385         * cris-tdep.c (cris_register_name): Make return type constant.
8386         (cris_breakpoint_from_pc): Ditto.
8387
8388 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8389
8390         * frame.h (struct frame_info): Change type of context to 
8391         'struct context'.
8392
8393 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8394
8395         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8396         pointer.
8397         * gdbarch.h, gdbarch.c: Regenerate.
8398         * config/mips/tm-mips.h (mips_register_name): Update.
8399         * i386-tdep.h (i386_register_name): Update.
8400         * mips-tdep.c (mips_register_name): Update
8401         * alpha-tdep.c (alpha_register_name): Update.
8402         * arch-utils.c (legacy_register_name): Update.
8403         * arch-utils.h (legacy_register_name): Update.
8404         * avr-tdep.c (avr_register_name): Update.
8405         * ia64-tdep.c (ia64_register_name): Update.
8406         * i386-tdep.c (i386_register_name): Update.
8407         * sparc-tdep.c (sparc32_register_name): Update.
8408         (sparc64_register_name): Update.
8409         (sparclite_register_name): Update.
8410         (sparclet_register_name): Update.
8411         * sh-tdep.c (sh_generic_register_name): Update.
8412         (sh_sh_register_name): Update.
8413         (sh_sh3_register_name): Update.
8414         (sh_sh3e_register_name): Update.
8415         (sh_sh_dsp_register_name): Update.
8416         (sh_sh3_dsp_register_name): Update.
8417         (sh_sh4_register_name): Update.
8418         (sh_sh64_register_name): Update.
8419         * s390-tdep.c (s390_register_name): Update.
8420         * rs6000-tdep.c (rs6000_register_name): Update.
8421         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8422         (ns32k_register_name_32382): Update.
8423         * d10v-tdep.c (d10v_ts2_register_name): Update.
8424         (d10v_ts3_register_name): Update.
8425         * xstormy16-tdep.c (xstormy16_register_name): Update.
8426         * vax-tdep.c (vax_register_name): Update.
8427         * v850-tdep.c (v850_register_name): Update.
8428         * m68hc11-tdep.c (m68hc11_register_name): Update.
8429         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8430         (am33_register_name): Update.
8431
8432 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8433
8434         * m68k-tdep.c: Reindented.
8435
8436 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8437
8438         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8439         list of predefined types.
8440
8441 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8442
8443         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8444         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8445         REGISTER_CONVERT_TO_RAW): Remove defines.
8446         (i386_register_virtual_type, i386_register_convertible,
8447         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8448         Remove prototypes.
8449         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8450         macros mentioned above.
8451
8452         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8453         (i386lynx_saved_pc_after_call): Remove prototype.
8454         * i386ly-tdep.c: Include "i386-tdep.h".
8455         (i386lynx_saved_pc_after_call): Make static.  Use
8456         read_memory_nobpt instead of read_memory.  Use
8457         read_memory_unsigned_integer instead of read_memory_integer.
8458         (i386lynx_init_abi): New function.
8459         (i386lynx_coff_osabi_sniffer): New function.
8460         (_initialize_i386bsd_tdep): New function.
8461
8462         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8463         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8464         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8465         (i386_fix_call_dummy): Remove prototype.
8466         * i386-tdep.c (i386_call_dummy_words): New variable.
8467         (i386_gdbarch_init): Adjust for removal of the
8468         macros mentioned above.
8469
8470 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8471
8472         * command.h (add_setshow_auto_boolean_cmd): Replace
8473         add_set_auto_boolean_cmd.
8474         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8475         add_set_auto_boolean_cmd.
8476         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8477         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8478         mask-address'' command.
8479         (show_mask_address): Add cmd parameter.
8480         * remote.c (add_packet_config_cmd): Update.  Change type of
8481         set_func and show_func to cmd_sfunc_ftype.
8482         (_initialize_remote): Update `set remote Z-packet'
8483         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8484         (show_remote_protocol_e_packet_cmd): Ditto.
8485         (show_remote_protocol_E_packet_cmd): Ditto.
8486         (show_remote_protocol_P_packet_cmd): Ditto.
8487         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8488         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8489         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8490         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8491         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8492         (show_remote_protocol_Z_packet_cmd): Ditto.
8493         (show_remote_protocol_binary_download_cmd): Ditto.
8494         (show_remote_cmd): Pass NULL to all of above.
8495
8496 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8497
8498         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8499         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8500         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8501         POP_FRAME): Remove defines.
8502         (i386_push_arguments, i386_store_struct_return,
8503         i386_extract_return_value, i386_store_return_value,
8504         i386_extract_struct_value_address, i386_push_dummy_frame,
8505         i386_pop_frame): Renove prototypes.
8506         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8507         macros mentioned above.
8508
8509 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8510
8511         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8512         add_set_boolean_cmd.
8513         (add_setshow_cmd): New function.
8514         * command.h (add_setshow_boolean_cmd): Replace
8515         add_set_boolean_cmd.
8516         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8517         and ``set rdiromatzero''.
8518         * maint.c (_initialize_maint_cmds): Update commented out code.
8519         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8520         * target.c (initialize_targets): Update `set
8521         trust-readonly-sections'.
8522         * remote.c (_initialize_remote): Update `set remotebreak'.
8523
8524 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8525
8526         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8527         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8528         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8529         fit into multi-arch framework.
8530         (i386_breakpoint_from_pc): New function.
8531         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8532         above.
8533
8534         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8535         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8536         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8537         (i386_frameless_function_invocation, i386_frame_num_args,
8538         i386_frame_init_saved_regs): Remove prototypes.
8539         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8540         macros mentioned above.
8541
8542 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8543
8544         * cli/cli-decode.c (set_cmd_cfunc): Update.
8545         (set_cmd_sfunc): Update.
8546         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8547         (set_cmd_sfunc, set_cmd_cfunc): Update.
8548         * cli/cli-decode.h: Update.
8549
8550 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8551
8552         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8553         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8554
8555 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8556
8557         * defs.h (auto_boolean): Declare enum.
8558         * command.h (cmd_auto_boolean): Delete enum.
8559         * mips-tdep.c (mask_address_var): Update.
8560         (mips_mask_address_p): Update.
8561         (show_mask_address): Update.
8562         * remote.c (struct packet_config): Update.
8563         (update_packet_config): Update.
8564         (show_packet_config_cmd): Update.
8565         (packet_ok): Update.
8566         (add_packet_config_cmd): Update.
8567         (_initialize_remote): 
8568         * command.h: Update.
8569         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8570         (do_setshow_command): Update.
8571         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8572         * cli/cli-decode.h: Update.
8573
8574 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8575
8576         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8577         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8578         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8579         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8580         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8581         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8582
8583         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8584         list of DJGPP COFF targets.
8585
8586         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8587         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8588         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8589         (FP0_REGNUM): Remove define.
8590         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8591         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8592         (i386_register_virtual_size): Remove protoype.
8593         * i386-tdep.c (i386_register_virtual_size): Removed.
8594         (i386_extract_return_value, i386_store_return_value): Use
8595         FP0_REGNUM instead of NUM_FREGS to determine whether the
8596         floating-point registers are available.
8597         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8598         Adjust for removal of macros mentioned above.
8599
8600 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8601
8602         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8603         comments.
8604         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8605         Remove prototypes.
8606         (supply_gregset, fill_gregset): Remove use of register keyword and
8607         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8608         NUM_REGS and NUM_FREGS.
8609         (FPREGSET_FSAVE_OFFSET): Remove.
8610         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8611         NUM_FREGS to determine whether the floating-point registers are
8612         available.
8613
8614         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8615         gnu_store_registers): Replace usage of NUM_GREGS with
8616         I386_NUM_GREGS.
8617
8618         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8619         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8620         usage of NUM_GREGS with I386_NUM_GREGS.
8621
8622         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8623
8624         * i386bsd-nat.c: Include "i386-tdep.h".
8625         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8626         I386_NUM_GREGS.
8627
8628         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8629         and associated comment.  They no longer make any sense, since we
8630         don't use this file anymore on Linux.
8631
8632         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8633         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8634         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8635         elements in these arrays.
8636         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8637         MAX_NUM_REGS.
8638
8639 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8640
8641         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8642         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8643
8644 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8645
8646         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8647         EXTRACT_RETURN_VALUE.
8648         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8649         EXTRACT_STRUCT_VALUE_ADDRESS.
8650         * gdbarch.h, gdbarch.c: Regenerate.
8651         
8652         * values.c (value_being_returned): Handle
8653         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8654         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8655
8656         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8657         * arm-tdep.c (arm_gdbarch_init): Update.
8658         * avr-tdep.c (avr_gdbarch_init): Update.
8659         * cris-tdep.c (cris_gdbarch_init): Update.
8660         * d10v-tdep.c (d10v_gdbarch_init): Update.
8661         * ia64-tdep.c (ia64_gdbarch_init): Update.
8662         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8663         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8664         * s390-tdep.c (s390_gdbarch_init): Update.
8665         * sh-tdep.c (sh_gdbarch_init): Update.
8666         * s390-tdep.c (s390_gdbarch_init): Update.
8667         * sparc-tdep.c (sparc_gdbarch_init): Update.
8668         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8669         * v850-tdep.c (v850_gdbarch_init): Update.
8670         * vax-tdep.c (vax_gdbarch_init): Update.
8671         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8672         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8673
8674         * config/arc/tm-arc.h: Update.
8675         * config/d30v/tm-d30v.h: Update.
8676         * config/fr30/tm-fr30.h: Update.
8677         * config/h8300/tm-h8300.h: Update.
8678         * config/h8500/tm-h8500.h: Update.
8679         * config/i386/tm-i386.h: Update.
8680         * config/i386/tm-ptx.h: Update.
8681         * config/i386/tm-symmetry.h: Update.
8682         * config/i960/tm-i960.h: Update.
8683         * config/m32r/tm-m32r.h: Update.
8684         * config/m68k/tm-delta68.h: Update.
8685         * config/m68k/tm-linux.h: Update.
8686         * config/m68k/tm-m68k.h: Update.
8687         * config/m88k/tm-m88k.h: Update.
8688         * config/mcore/tm-mcore.h: Update.
8689         * config/mips/tm-mips.h: Update.
8690         * config/mn10200/tm-mn10200.h: Update.
8691         * config/pa/tm-hppa.h: Update.
8692         * config/pa/tm-hppa64.h: Update.
8693         * config/sparc/tm-sp64.h: Update.
8694         * config/sparc/tm-sparc.h: Update.
8695         * config/sparc/tm-sparclet.h: Update.
8696         * config/z8k/tm-z8k.h: Update.
8697
8698 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8699
8700         * Makefile.in (i386_linux_tdep_h): Define.
8701         (i386_tdep_h, i387_tdep_h): Define.
8702         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8703         $(i386_tdep_h) and $(i387_tdep_h).
8704         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8705
8706 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8707
8708         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8709         Already covered by the default.
8710
8711         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8712         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8713         (i386_gdbarch_init): Initialize long_double_format and long_double
8714         bit.
8715
8716         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8717         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8718         Move these to ...
8719         * config/i386/i386sol2.mh: ... here.
8720         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8721         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8722         (SIGCONTEXT_PC_OFFSET): Remove define.
8723         (IN_SIGTRAMP): Remove define.
8724         * i386-sol2-tdep.c: New file.
8725         
8726         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8727         * config/i386/tm-i386nw.h: Removed.
8728
8729         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8730         USE_STRUCT_CONVENTION): Remove defines.
8731         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8732         (get_longjmp_target): Remove prototype.
8733         (IN_SIGTRAMP): Remove define.
8734         (i386bsd_in_sigtramp): Remove prototype.
8735         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8736         function.  Update comment accordingly
8737         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8738         (FRAME_SAVED_PC): Remove define.
8739         (i386bsd_frame_saved_pc): Remove prototype.
8740         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8741         GET_LONGJMP_TARGET): Remove defines.
8742         (get_longjmp_target): Remove prototype.
8743         (IN_SIGTRAMP): Remove define.
8744         (i386bsd_in_sigtramp): Remove prototype.
8745         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8746         function.  Update comment accordingly
8747         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8748         (FRAME_SAVED_PC): Remove define.
8749         (i386bsd_frame_saved_pc): Remove prototype.
8750         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8751         Remove prototype.
8752         (USE_STRUCT_CONVENTION): Remove prototype.
8753         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8754         declaration.
8755         (_initialize_i386bsd_nat): Revise logic to determine some
8756         constants at compile time when compiling a native GDB.  Warn if
8757         things don't match up with what we expect.
8758         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8759         Remove variables.
8760         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8761         to use date stored in `struct gdbarch_tdep'.
8762         (i386bsd_sigcontext_offset): Remove varaible.
8763         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8764         stored in `struct gdbarch_tdep'.
8765         (i386bsd_frame_saved_pc): Make static.
8766         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8767         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8768         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8769         i386fbsd4_sc_pc_offset): New variables.
8770         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8771         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8772         functions.
8773         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8774         functions.
8775         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8776         Modify the value of i386fbsd_sigtramp_start and
8777         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8778         i386fbsd_sigtramp_end.
8779         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8780         function.
8781
8782         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8783         define to i386-linux-tdep.h.
8784         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8785         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8786         defines.
8787         (i386_linux_register_name, i386_linux_register_byte,
8788         i386_linux_register_raw_size): Remove prototypes.
8789         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8790         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8791         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8792         TARGET_WRITE_PC): Remove defines.
8793         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8794         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8795         i386_linux_write_pc): Remove prototypes.
8796         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8797         (get_longjmp_target): Remove prototype.
8798         * i386-linux-tdep.h: New file.
8799         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8800         * i386-linux-tdep.c: Include "i386-tdep.h" and
8801         "i386-linux-tdep.h".
8802         (i386_linux_register_name, i386_linux_register_byte,
8803         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8804         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8805         Make static.
8806         (i386_linux_init_abi): New function.
8807         (_initialize_i386_linux_tdep): New function.
8808
8809         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8810         (i386_saved_pc_after_call): Remove prototype.
8811         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8812         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8813         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8814         (i386_register_name, i386_stab_reg_to_regnum,
8815         i386_dwarf_reg_to_regnum): Remove prototypes.
8816         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8817         SIZEOF_SSE_REGS): Remove defines.
8818         (REGISTER_BYTES): Remove define.
8819         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8820         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8821         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8822         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8823         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8824         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8825         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8826         (get_longjmp_target): Remove prototype.
8827         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8828         (sigtramp_saved_pc): Remove define.
8829         (i386v4_sigtramp_saved_pc): Remove prototype.
8830         * config/i386/tm-go32.h (FRAME_CHAIN,
8831         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8832         (i386go32_frame_saved_pc): Remove prototype.
8833         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8834         (get_longjmp_target): Remove prototype.
8835         * i386-tdep.h: Include "osabi.h".
8836         (enum i386_abi): Removed.
8837         (enum struct_return): New enum.
8838         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8839         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8840         sc_pc_offset members.
8841         (i386_gdbarch_register_os_abi): Remove prototype.
8842         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8843         I386_SSE_NUM_REGS): New defines.
8844         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8845         I386_SSE_SIZEOF_REGS): New defines.
8846         (i386_register_name, i386_register_byte, i386_register_raw_size):
8847         New prototypes.
8848         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8849         (i386bsd_sigtramp_saved_pc): New prototype.
8850         * i386-tdep.c: Don't include "elf-bfd.h".
8851         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8852         i386_frame_chain, i386_saved_pc_after_call): Make static.
8853         (i386_frame_saved_pc): Rewrite to call architecture dependent
8854         function to deal with signal handlers.  Make static.
8855         (i386go32_frame_saved_pc): Removed.
8856         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8857         Removed.
8858         (i386_get_longjmp_target): New function.
8859         (default_struct_convention, pcc_struct_convention,
8860         reg_struct_convention, valid_conventions, struct_convention): New
8861         variables.
8862         (i386_use_struct_convention): New function.
8863         (i386v4_sigtramp_saved_pc): Renamed to
8864         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8865         (i386_pc_in_sigtramp): New function.
8866         (i386_abi_names): Removed.
8867         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8868         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8869         Removed.
8870         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8871         i386_gdbarch_register_os_abi): Removed.
8872         (struct i386_abi_handler): Removed.
8873         (i386_abi_handler_list): Removed.
8874         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8875         functions.
8876         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8877         i386_nw_init_abi): New functions.
8878         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8879         Use set_gdbarch_xxx() calls instead of relying on macros for a
8880         number of calls.
8881         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8882         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8883         Register the various architecture variants defined in this file.
8884
8885 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8886
8887         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8888         (struct main_type): Remove arg_types member.  Update comments for
8889         struct field.
8890         (TYPE_ARG_TYPES): Remove.
8891         (TYPE_FN_FIELD_ARGS): Update.
8892         (smash_to_method_type): Update prototype.
8893
8894         * c-typeprint.c (cp_type_print_method_args): Take method type
8895         instead of argument list.  Use new argument layout.  Simplify.
8896         (c_type_print_args): Use new argument layout.  Simplify.
8897         (c_type_print_base): Update call to cp_type_print_method_args.
8898         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8899         argument; use die->type instead.  Update call to
8900         smash_to_method_type.
8901         (read_structure_scope): Update call to dwarf2_add_member_fn.
8902         * gdbtypes.c (allocate_stub_method): Update comment.
8903         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8904         Use new argument layout.
8905         (check_stub_method): Use new argument layout.  Don't count
8906         void as an argument.
8907         (print_arg_types): Update comments.  Use new argument layout.
8908         (recursive_dump_type): Don't print arg_types member.
8909         * hpread.c (hpread_read_struct_type): Use new argument layout.
8910         (fixup_class_method_type): Likewise.
8911         (hpread_type_lookup): Likewise.
8912         * stabsread.c (read_type): Update calls to read_args and
8913         smash_to_method_type.
8914         (read_args): Use new argument layout.  Simplify.
8915         * valops.c (typecmp): Use new argument layout.  Update parameters
8916         and comments.  Simplify.
8917         (hand_function_call): Use new argument layout.
8918         (search_struct_method): Update call to typecmp.
8919         (find_overload_match): Use new argument layout.
8920
8921 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8922
8923         * NEWS: Mention multithreaded debug support for gdbserver.
8924
8925 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8926
8927         * MAINTAINERS: Mention NEWS.
8928
8929 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8930
8931         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8932         (struct mips_objfile_private, compare_pdr_entries): New.
8933         (non_heuristic_proc_desc): Read the ".pdr" section if it
8934         is present.
8935
8936 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8937
8938         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8939         (arm_debug): New static variable.
8940         (_initialize_arm_tdep): Add ``set debug arm'' command.
8941
8942 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8943
8944         * Makefile.in (sim_arm_h): Define.
8945         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8946         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8947         (arm_register_sim_regno): New function, map an internal REGNUM
8948         onto a simulator register number.
8949         (arm_gdbarch_init): Set register_sim_regno.
8950
8951 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8952
8953         * MAINTAINERS: Add self.
8954
8955 2002-06-11  Jim Blandy  <jimb@redhat.com>
8956
8957         * source.c (source_info): Mention whether the symtab has
8958         information about preprocessor macros.
8959
8960         Call the command `info macro', not `show macro'.
8961         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8962         Fix error message.
8963         (_initialize_macrocmd): Register `info_macro_command' in
8964         `infolist', not `showlist'.
8965
8966 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8967
8968         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8969         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8970         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8971         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8972         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8973         unconditionally.
8974         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8975         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8976         (_initialize_mips_tdep): Remove dead code.
8977         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8978         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8979         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8980         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8981         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8982         MIPS_LAST_FP_ARG_REGNUM): Remove.
8983
8984 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8985
8986         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8987         (unwind_tmp_obstack_free, parse_frame_info)
8988         (update_context, cfi_read_fp, cfi_write_fp)
8989         (cfi_frame_chain, cfi_init_extra_frame_info)
8990         (cfi_virtual_frame_pointer): Use the above function.
8991         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8992
8993 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8994
8995         * v850-tdep.c (v850_type_is_scalar): New function.
8996         (v850_use_struct_convention): Match current gcc implementation
8997         as close as possible.
8998         (v850_push_arguments): Fix stack_offset handling.  Don't write
8999         struct_addr into register.  This is done by v850_store_struct_return.
9000         (v850_extract_return_value): Care for structs.
9001         (v850_store_return_value): Ditto.
9002         (v850_store_struct_return): Actually write address.
9003
9004 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
9005
9006         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9007         without debug information too.
9008
9009 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9010
9011         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9012         Make multi-arch pure.
9013         * gdbarch.h, gdbarch.c: Re-generate.
9014         * arm-tdep.c (arm_print_float_info): Update.
9015         * arch-utils.h (default_print_float_info): Update.
9016         * arch-utils.c (default_print_float_info): Update.
9017         * infcmd.c (float_info): Update call.
9018
9019 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9020
9021         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9022         the front of the initialize list.
9023
9024 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9025
9026         * infrun.c (struct inferior_status): Replace fields
9027         selected_frame_address and selected_level with field
9028         selected_frame_id.
9029         (save_inferior_status): Update.  Use get_frame_id.
9030         (struct restore_selected_frame_args): Delete.
9031         (restore_selected_frame): Update.  Use frame_find_by_id.
9032         (restore_inferior_status): Update.
9033
9034         * breakpoint.h (struct breakpoint): Change type of
9035         watchpoint_frame to frame_id.
9036         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
9037         call to get_current_frame.
9038         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
9039         get_current_frame.
9040         (watchpoint_check): Use frame_find_by_id.
9041
9042         * frame.h (record_selected_frame): Delete declaration.
9043         * stack.c (record_selected_frame): Delete function.
9044         
9045         * frame.h (struct frame_id): Define.
9046         (get_frame_id): Declare.
9047         (frame_find_by_id): Declare.
9048         * frame.c (frame_find_by_id): New function.
9049         (get_frame_id): New function.
9050
9051 2002-06-10  Andrey Volkov <avolkov@transas.com>
9052
9053         * ser-e7kpc.c: Fix duplicated define and call of 
9054         _initialize_ser_e7000pc
9055             
9056 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9057
9058         * signals/signals.c (target_signal_from_host): Fix #ifdef
9059         SIGRTMIN case.
9060         (do_target_signal_to_host): Likewise.
9061
9062 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9063
9064         * mips-tdep.c (mips_find_abi_section): New function.
9065         (mips_gdbarch_init): Call it.
9066
9067 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9068
9069         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9070         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9071         after Andrew's 2002-06-08 gdbarch change.
9072
9073 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9074
9075         * i386-linux-nat.c (suppy_gregset): Don't supply
9076         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9077         register cache.
9078         (fill_gregset): Don't fetch it under the same circumstances.
9079
9080 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9081
9082         * Makefile.in (callback_h): Define.
9083         (remote_sim_h): Update path to remote-sim.h.
9084         (remote-rdp.o): Add $(callback_h).
9085         (remote-sim.o): Use $(callback_h).
9086         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9087         * remote-rdp.c: Include "gdb/callback.h".
9088
9089 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9090
9091         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9092         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9093
9094 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9095
9096         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9097         * rdi-share/serpardr.c: Ditto.
9098         * rdi-share/unixcomm.c: Ditto.
9099         * rdi-share/serdrv.c: Ditto.
9100         * rdi-share/hostchan.h: Ditto.
9101         * rdi-share/hostchan.c: Ditto.
9102         * rdi-share/host.h: Ditto.
9103         * rdi-share/devsw.c: Ditto.
9104
9105         * objfiles.h: Change type of obj_private to void pointer.
9106         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9107         strcmp instead of STREQ, use LONGEST, do not use PTR
9108         * somsolib.c: Ditto.
9109
9110         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9111         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9112         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9113
9114 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9115
9116         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9117         (default_get_saved_register): Delete function.
9118         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9119         generic_unwind_get_saved_register.
9120         * gdbarch.h, gdbarch.c: Re-generate.
9121         
9122 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9123
9124         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9125         generic_func_frame_chain_valid.
9126         * gdbarch.h, gdbarch.c: Re-generate.
9127         * blockframe.c (generic_func_frame_chain_valid): Only check
9128         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9129         passing FP to PC_IN_CALL_DUMMY.
9130         Fix PR gdb/360.
9131
9132 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9133
9134         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9135         (register_gdbarch_data): Initialize init_p.
9136         (gdbarch_data): Initialize data pointer using the init function.
9137         (init_gdbarch_data): Delete function.
9138         (gdbarch_update_p): Update.
9139         (initialize_non_multiarch): Update.
9140         (struct gdbarch): Add field initialized_p.
9141         * gdbarch.h, gdbarch.c: Re-generate.
9142
9143 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9144
9145         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9146         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9147         better do the things actually here.
9148         * x86-64-tdep.c (x86_64_register_name2nr): New.
9149         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9150         (x86_64_gdbarch_init): Respect the above change.
9151         * x86-64-tdep.h (x86_64_register_name2nr)
9152         (x86_64_register_nr2name): Add prototypes.
9153         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9154
9155 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9156
9157         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9158         Delete extra braces and re-indent.
9159         (d10v_store_return_value): Char return values
9160         must be shifted over by one byte in R0.
9161         (d10v_extract_return_value): Delete extra braces, re-indent.
9162
9163 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9164
9165         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9166         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9167         (d10v_integer_to_address): Rewrite.
9168         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9169         the d10v specific functions which take care of converting to the
9170         correct space.
9171
9172 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9173
9174         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9175         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9176
9177 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9178
9179         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9180         includes.
9181         * config/tm-linux.h: Ditto.
9182         * config/alpha/tm-alphalinux.h: Ditto.
9183         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9184         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9185         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9186         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9187         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9188         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9189         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9190         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9191         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9192         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9193         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9194         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9195         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9196         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9197         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9198         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9199         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9200         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9201         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9202         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9203         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9204         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9205         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9206         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9207         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9208         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9209         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9210         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9211         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9212         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9213         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9214         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9215         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9216         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9217         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9218         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9219         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9220
9221 2002-05-04  Aidan Skinner <aidan@velvet.net>
9222
9223         * ada-exp.tab.c: New file
9224         * ada-exp.y: New file
9225         * ada-lang.c: New file
9226         * ada-lang.h: New file
9227         * ada-lex.c: New file
9228         * ada-lex.l: New file
9229         * ada-tasks.c: New file
9230         * ada-typeprint.c: New file
9231         * ada-valprint.c: New file
9232         
9233 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9234
9235         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9236         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9237
9238 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9239
9240         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9241         insetead of ppc-linux-tdep.o.
9242         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9243         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9244
9245 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9246
9247         2002-05-07 Christian Groessler <chris@groessler.org>
9248         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9249         bit register contents for little endian hosts.
9250
9251 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9252
9253         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9254         any maintainer.
9255
9256 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9257
9258         * gdbarch.h: Regenerate.
9259
9260 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9261
9262         * MAINTAINERS: Add everyone to write-after-approval list.
9263
9264 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9265
9266         * stack.c (frame_info): Use frame_register_unwind instead of
9267         saved_regs.  Mention when the SP is on the stack or in a register.
9268
9269         * frame.h (frame_register_unwind_ftype): Define.  Document.
9270         (struct frame_info): Add field register_unwind and
9271         register_unwind_cache.
9272         (frame_register_unwind): Declare.
9273         (generic_unwind_get_saved_register): Declare.
9274
9275         * frame.c (frame_register_unwind): New function.
9276         (generic_unwind_get_saved_register): New function.
9277
9278         * blockframe.c (generic_call_dummy_register_unwind): New function.
9279         (frame_saved_regs_register_unwind): New function.
9280         (set_unwind_by_pc): New function.
9281         (create_new_frame): New function.
9282         (get_prev_frame): New function.
9283
9284 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9285
9286         * a29k-share/: Delete directory.
9287         * remote-vx29k.c: Delete file.
9288
9289 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9290
9291         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9292         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9293
9294 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9295
9296         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9297         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9298         (sparc64nbsd-nat.o)
9299         (sparcnbsd-nat.o)
9300         (sparcnbsd-tdep.o): New dependency lists.
9301         * NEWS: Note new UltraSPARC NetBSD native configuration.
9302         * configure.host (sparc64-*-netbsd*): New host.
9303         * configure.tgt (sparc-*-netbsdelf*)
9304         (sparc-*-netbsd*): Set gdb_target to nbsd.
9305         (sparc64-*-netbsd*): New target.
9306         * sparc64nbsd-nat.c: New file.
9307         * sparcnbsd-nat.c: New file.
9308         * sparcnbsd-tdep.c: New file.
9309         * sparcnbsd-tdep.h: New file.
9310         * config/sparc/nbsd.mt: New file.
9311         * config/sparc/nbsd64.mh: New file.
9312         * config/sparc/nbsd64.mt: New file.
9313         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9314         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9315         (HOST_IPC): Remove.
9316         * config/sparc/nbsdaout.mt: Remove.
9317         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9318         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9319         (HOST_IPC): Remove.
9320         * config/sparc/nbsdelf.mt: Remove.
9321         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9322         sparc-nat.c compatiblity defines.
9323         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9324         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9325         * config/sparc/tm-nbsd64.h: New file.
9326         * config/sparc/tm-nbsdaout.h: Remove.
9327         * config/sparc/xm-nbsd.h: Remove.
9328
9329 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9330
9331         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9332         * sparc-tdep.c: Include osabi.h.
9333         (gdbarch_tdep): Add osabi member.
9334         (_initialize_sparc_tdep): Use gdbarch_register.
9335         (sparc_gdbarch_init): Use generic OS ABI framework.
9336         (sparc_dump_tdep): New function.
9337
9338 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9339
9340         * corefile.c (do_captured_read_memory_integer): Return non-zero
9341         result.
9342         (safe_read_memory_integer): Copy result of memory read when
9343         status is non-zero.  Also, add comments.
9344
9345 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9346
9347         * Makefile.in (ppc_tdep_h): Define.
9348         (ppc-linux-nat.o)
9349         (ppc-linux-tdep.o)
9350         (rs6000-tdep.o): Use $(ppc_tdep_h).
9351         (ppc-sysv-tdep.o)
9352         (ppcnbsd-nat.o)
9353         (ppcnbsd-tdep.o): New dependency lists.
9354         * ppc-tdep.h: Use generic OS ABI framework.
9355         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9356         (ppc_linux_init_abi): New functions.
9357         (ppc_sysv_abi_broken_use_struct_convention)
9358         (ppc_sysv_abi_use_struct_convention)
9359         (ppc_sysv_abi_push_arguments): Move to...
9360         * ppc-sysv-tdep.c: ...here.
9361         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9362         * rs6000-tdep.c (process_note_abi_tag_sections)
9363         (get_elfosabi): Remove.
9364         (rs6000_gdbarch_init): Use generic OS ABI framework.
9365         (rs6000_dump_tdep): New function.
9366         (_initialize_rs6000_tdep): Use gdbarch_register.
9367         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9368         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9369         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9370         of ppc-linux-tdep.o.
9371         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9372         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9373         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9374         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9375         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9376         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9377
9378 2002-05-29  Jim Blandy  <jimb@redhat.com>
9379
9380         * macroscope.c (default_macro_scope): Put `void' in empty argument
9381         list.
9382
9383 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9384
9385         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9386         * arch-utils.c: Include "sim-regno.h".
9387         * gdbarch.sh: Don't include "sim-regno.h".
9388         * gdbarch.h, gdbarch.c: Regenerate.
9389         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9390         here.
9391         * arch-utils.h (legacy_register_sim_regno): To here.
9392         * remote-sim.c (legacy_register_sim_regno): Move function from
9393         here.
9394         * arch-utils.c (legacy_register_sim_regno): To here.
9395
9396 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9397
9398         * sim-regno.h: New file.
9399         * Makefile.in (sim_regno_h): Define.
9400         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9401         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9402         (legacy_register_sim_regno): New function.
9403         (one2one_register_sim_regno): New function.
9404         (gdbsim_fetch_register): Rewrite.
9405         (gdbsim_store_register): Only store a register when
9406         REGISTER_SIM_REGNO is valid.
9407         * d10v-tdep.c: Include "sim-regno.h".
9408         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9409         (d10v_ts3_register_sim_regno): Ditto.
9410         * gdbarch.sh: Include "sim-regno.h".
9411         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9412         * gdbarch.h, gdbarch.c: Regenerate.
9413         * arch-utils.h (default_register_sim_regno): Delete declaration.
9414         * arch-utils.c (default_register_sim_regno): Delete function.
9415
9416 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9417
9418         * ppcnbsd-nat.c: Rewrite.
9419         * ppcnbsd-tdep.c: New file.
9420         * ppcnbsd-tdep.h: New file.
9421         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9422         solib.o, and solib-svr4.o.
9423         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9424         nbsd-tdep.o, and corelow.o.
9425
9426 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9427
9428         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9429         `tr' and `sed'.  Mention that `broken' targets are not expected to
9430         build.
9431
9432 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9433
9434         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9435         Let PC point right after the prologue before looking up symbols.
9436         
9437 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9438
9439         * i386-tdep.c (i386_register_virtual_type): Return 
9440         builtin_type_vec128i for SSE registers.
9441
9442         * gdbtypes.h (builtin_type_vec128i): Declare.
9443
9444         * gdbtypes.c (build_builtin_type_vec128i): New function.
9445         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9446         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9447         (build_gdbtypes): Initialize new builtin vector types.
9448         (_initialize_gdbtypes): Register new vector types with gdbarch.
9449
9450 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9451
9452         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9453         since it has been multi-arch'd.
9454         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9455         Move Alpha and VAX multi-arch news entries to same section
9456         as other multi-arch news.
9457
9458 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9459
9460         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9461         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9462         static.  Rename some register numbers to put them in ns32k-tdep
9463         private namespace.
9464         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9465         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9466         functions.
9467         (_initialize_ns32k_tdep): Use gdbarch_register.
9468         * ns32k-tdep.h: New file.
9469         * ns32knbsd-tdep.c: New file.
9470         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9471         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9472         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9473         REGISTER_BYTES, REGISTER_BYTE): Remove.
9474         * config/ns32k/tm-ns32k.h: New file.
9475         * config/ns32k/tm-umax.h: Remove.
9476
9477 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9478
9479         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9480         ns32k_store_struct_return, ns32k_extract_return_value,
9481         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9482         functions.
9483         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9484         ns32k_saved_pc_after_call.
9485         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9486         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9487         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9488         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9489         ns32k_extract_struct_value_address.
9490
9491 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9492
9493         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9494         ns32k_fix_call_dummy): New.
9495         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9496         ns32k_call_dummy_words.
9497         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9498         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9499         CALL_DUMMY_NARGS): Remove.
9500         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9501
9502 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9503
9504         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9505         ns32k_frame_saved_pc, ns32k_frame_args_address,
9506         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9507         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9508         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9509         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9510         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9511         (BREAKPOINT): Remove..
9512         (FRAME_CHAIN): Define as ns32k_frame_chain.
9513         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9514         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9515         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9516         (FRAME_FIND_SAVED_REGS): Remove.
9517         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9518         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9519         (POP_FRAME): Define as ns32k_pop_frame.
9520
9521 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9522
9523         * ns32k-tdep.c (ns32k_register_byte_32082,
9524         ns32k_register_byte_32382, ns32k_register_raw_size,
9525         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9526         functions.
9527         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9528         ns32k_register_byte_32382.
9529         * config/ns32k/tm-umax.h: Update copyright years.
9530         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9531         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9532         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9533         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9534         (ns32k_get_enter_addr): Fix prototype.
9535
9536 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9537
9538         * ns32k-tdep.c: Update copyright years.
9539         (ns32k_register_name_32082): New function.
9540         (ns32k_register_name_32382): Ditto.
9541         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9542         (REGISTER_NAME): Define as ns32k_register_name_32382.
9543         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9544         (REGISTER_NAME): Define as ns32k_register_name_32082.
9545
9546 2002-05-24  Jim Blandy  <jimb@redhat.com>
9547
9548         * dwarf2read.c (free_line_header): Use xfree, not free.
9549
9550 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9551
9552         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9553         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9554
9555 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9556
9557         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9558
9559 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9560
9561         From Ross Alexander at NEC Europe:
9562         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9563
9564 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9565
9566         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9567         for input, rather than parse_and_eval_address.  
9568
9569 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9570
9571         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9572         * Makefile.in (sim_d10v_h): Update definition.
9573
9574 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9575
9576         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9577         change `2002-05-22 Michael Snyder' below.
9578         (d10v_push_arguments): Ditto.
9579         (d10v_extract_return_value): Ditto.
9580
9581 2002-05-23  Jim Blandy  <jimb@redhat.com>
9582
9583         * macrotab.c (check_for_redefinition): Don't complain if the new
9584         definition is the same as the previous one.  Take more arguments
9585         to allow the comparison.
9586         (macro_define_object, macro_define_function): Pass more arguments
9587         to check_for_redefinition.
9588
9589 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9590
9591         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9592         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9593         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9594         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9595         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9596         Add a temp variable to save a call (and a memory read).
9597         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9598         if possible (so that PC_IN_CALL_DUMMY will work).
9599
9600 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9601
9602         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9603
9604 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9605
9606         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9607         fde->cie_ptr.
9608         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9609         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9610         so that frames of shared libraries are mapped correctly.
9611         (execute_stack_op): Change type of 'result' from ULONGEST to
9612         CORE_ADDR.
9613         
9614 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9615
9616         * config/alpha/tm-nbsd.h: Include solib.h.
9617
9618 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9619
9620         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9621         assumptions about the host's byte order.
9622
9623 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9624
9625         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9626         to dependency list.
9627         * alphanbsd-tdep.c: Include solib-svr4.h.
9628         * shnbsd-tdep.c: Ditto.
9629
9630 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9631
9632         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9633         nbsd-tdep.h to dependency list.
9634         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9635         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9636         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9637         nbsdaout.mh and nbsdelf.mh consistently.
9638         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9639         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9640         nbsdaout.mt and nbsdelf.mh consistently.
9641         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9642         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9643         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9644         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9645         a.out shared library stuff from here...
9646         * config/nm-nbsdaout.h: ...to here.
9647         * config/tm-nbsd.h: Remove.
9648         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9649         * config/arm/nbsd.mh: Remove.
9650         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9651         nbsd-tdep.o.
9652         * config/arm/nbsdaout.mh: New file. 
9653         * config/arm/nbsdelf.mh: New file.
9654         * config/arm/nm-nbsdaout.h: New file.
9655         * config/i386/nbsd.mh: Remove.
9656         * config/i386/nbsd.mt: Remove.
9657         * config/i386/nbsdaout.mh: New file.
9658         * config/i386/nbsdaout.mt: New file.
9659         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9660         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9661         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9662         i386_register_u_addr): Remove.
9663         * config/i386/nm-nbsdaout.h: New file.
9664         * config/i386/nm-nbsdelf.h: Remove.
9665         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9666         (USE_STRUCT_CONVENTION): Remove.
9667         * config/i386/tm-nbsdaout.h: New file.
9668         * config/i386/tm-nbsdelf.h: Remove.
9669         * config/m68k/nbsd.mh: Remove.
9670         * config/m68k/nbsd.mt: Remove.
9671         * config/m68k/nbsdaout.mh: New file.
9672         * config/m68k/nbsdaout.mt: New file. 
9673         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9674         * config/m68k/nm-nbsdaout.h: New file.
9675         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9676         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9677         * config/ns32k/nbsd.mh: Remove.
9678         * config/ns32k/nbsd.mt: Remove. 
9679         * config/ns32k/nbsdaout.mh: New file.
9680         * config/ns32k/nbsdaout.mt: New file.
9681         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9682         * config/ns32k/nm-nbsdaout.h: New file.
9683         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9684         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9685         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9686         (SVR4_SHARED_LIBS): Remove.
9687         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9688         * config/sparc/nbsd.mh: Remove.
9689         * config/sparc/nbsd.mt: Remove.
9690         * config/sparc/nbsdaout.mh: New file.
9691         * config/sparc/nbsdaout.mt: New file.
9692         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9693         * config/sparc/nbsdelf.mt: New file.
9694         * config/sparc/nm-nbsdaout.h: New file.   
9695         * config/sparc/nm-nbsdelf.h: Remove.
9696         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9697         * config/sparc/tm-nbsdaout.h: New file.
9698
9699 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9700
9701         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9702         mipsnbsd-tdep.c
9703         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9704
9705 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9706
9707         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9708         shnbsd-nat.c.
9709         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9710
9711 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9712
9713         * NEWS: Note new MIPS NetBSD native configuration. 
9714         * configure.host (mips*-*-netbsd*): New host. 
9715         * configure.tgt (mips*-*-netbsd*): New target. 
9716         * mipsnbsd-nat.c: New file.
9717         * mipsnbsd-tdep.c: New file.
9718         * mipsnbsd-tdep.h: New file.
9719         * config/mips/nbsd.mh: New file.
9720         * config/mips/nbsd.mt: New file.
9721         * config/mips/nm-nbsd.h: New file.
9722         * config/mips/tm-nbsd.h: New file.
9723
9724 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9725
9726         * Makefile.in (SFILES): Add osabi.c.
9727         (COMMON_OBS): Add osabi.o.
9728         (osabi.o): New dependency list.
9729         * osabi.c: New file.
9730         * osabi.h: New file.
9731         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9732
9733         * Makefile.in (alpha_tdep_h): Define and use instead of
9734         alpha-tdep.h.
9735         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9736         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9737         Remove.
9738         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9739         * alpha-tdep.h: Include osabi.h.
9740         (alpha_abi): Remove.
9741         (gdbarch_tdep): Use generic OS ABI framework.
9742         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9743         gdbarch_register_osabi.
9744         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9745         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9746         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9747
9748         * Makefile.in (sh_tdep_h): Add osabi.h.
9749         * sh-tdep.h (sh_osabi): Remove.
9750         (gdbarch_tdep): Use generic OS ABI framework.
9751         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9752         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9753         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9754         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9755
9756         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9757         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9758         gdbarch_register_osabi.
9759         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9760         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9761         (get_elfosabi): Rename to...
9762         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9763         ABI framework support routines.
9764         (arm_gdbarch_init): Use generic OS ABI framework.
9765         (arm_dump_tdep): Likewise.
9766         (_initialize_arm_tdep): Likewise.
9767         * arm-tdep.h: Include osabi.h.
9768         (arm_abi): Remove.
9769         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9770         osabi member.
9771         (arm_gdbarch_register_os_abi): Remove prototype.
9772         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9773         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9774
9775         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9776         * mips-tdep.c: Include osabi.h.
9777         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9778         OS ABI framework.
9779
9780 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9781
9782         * h8300-tdep.c: Fix formatting.
9783
9784 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9785
9786         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9787         printing vector registers.
9788
9789 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9790
9791         From Fernando Nasser:
9792         * remote.c (remote_async_open_1): Re-throw the exception when the
9793         connection fails.
9794         (remote_cisco_open): Ditto.
9795         (remote_open_1): Ditto.
9796
9797 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9798
9799         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9800         (remote_start_remote): Add uiout parameter.  Pass through to
9801         remote_start_remote_dummy.
9802         (remote_open_1): Use catch_exception instead of catch_errors.
9803         (remote_async_open_1): Ditto.
9804         (remote_cisco_open): Ditto.
9805
9806 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9807
9808         * remote.c (remote_start_remote): Replace PTR with void pointer.
9809         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9810         static.
9811
9812 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9813
9814         * gdb_indent.sh: Allow the script to be run in the sim directory.
9815
9816 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9817
9818         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9819         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9820
9821         * corelow.c (core_open): Only call set_gdbarch_from_file if
9822         exec_bfd is NULL.
9823
9824 2002-05-17  Andrey Volkov <avolkov@transas.com>
9825
9826         * h8300-tdep.c: Add support of EXR register
9827         * config/h8300/tm-h8300.h: Ditto. 
9828         
9829 2002-05-17  Andrey Volkov <avolkov@transas.com>
9830
9831         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9832         
9833 2002-05-17  Andrey Volkov <avolkov@transas.com>
9834
9835         * h8300-tdep.c: Change literal regnums to REGNO.
9836         
9837 2002-05-17  Jim Blandy  <jimb@redhat.com>
9838
9839         * NEWS: Note addition of macro support.
9840
9841         Expand preprocessor macros in C expressions.
9842         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9843         (scan_macro_expansion, scanning_macro_expansion,
9844         finished_macro_expansion): New function declarations.
9845         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9846         variable declarations.
9847         * parser-defs.h (expression_context_pc): New declaration.
9848         * parse.c (expression_context_pc): New variable.
9849         (parse_exp_1): Set expression_context_pc, as well as
9850         expression_context_block.
9851         * c-exp.y (yylex): If we're not already reading the result of a
9852         macro expansion, try to macro-expand the next token.  When we're
9853         done scanning a macro expansion, switch back to the mainline text.
9854         Commas and `if's in a macro's expansion don't terminate the input.
9855         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9856         (macro_original_text, macro_expanded_text,
9857         expression_macro_lookup_func, expression_macro_lookup_baton): New
9858         variables.
9859         (scan_macro_expansion, scanning_macro_expansion,
9860         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9861         c_preprocess_and_parse): New functions.
9862         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9863         c_preprocess_and_parse, instead of c_parse.
9864         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9865         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9866
9867 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9868
9869         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9870         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9871         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9872
9873 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9874
9875         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9876
9877 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9878
9879         * Makefile.in (sh_tdep_h): Define and use.
9880         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9881         register enum): Move to...
9882         * * sh-tdep.h: ...here.
9883         * sh-tdep.c: Include sh-tdep.h.
9884         * sh3-rom.c: Likewise.
9885         * shnbsd-tdep.c: Likewise.
9886
9887 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9888
9889         * arm-tdep.c: Spelling fix in comment.
9890
9891 2002-05-16  Jim Blandy  <jimb@redhat.com>
9892
9893         Add commands for manually expanding macros and showing their
9894         definitions.
9895         * macrocmd.c, macroscope.c, macroscope.h: New files.
9896         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9897         (macroscope_h): New variable.
9898         (HFILES_NO_SRCDIR): Add macroscope.h.
9899         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9900         (macroscope.o, macrocmd.o): New rules.
9901
9902         Teach the Dwarf 2 reader to read macro information.
9903         * dwarf2read.c: #include "macrotab.h".
9904         (dwarf_macinfo_buffer): New variable.
9905         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9906         dwarf_macinfo_size.
9907         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9908         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9909         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9910         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9911         dwarf2_macro_spaces_in_definition): New complaints.
9912         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9913         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9914         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9915         the partial symbol table.
9916         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9917         from what's recorded in the partial symbol table.
9918         (read_file_scope): If the compilation unit has a
9919         `DW_AT_macro_info' attribute, read its macro information.
9920         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9921
9922 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9923
9924         Fix PR gdb/546
9925         * ser-tcp.c: Don't include <netinet/udp.h>.
9926
9927 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9928
9929         * MAINTAINERS: Update my email address.
9930
9931 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9932
9933         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9934         include file of the same name.
9935
9936 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9937
9938         * configure.tgt: Mark v850 as multi-arched.
9939         * config/v850/tm-v850.h: Remove file.
9940         * config/v850/v850.mt: Eliminate TM_FILE.
9941
9942 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9943
9944         * v850-tdep.c: Full multi-arch.
9945         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9946         Define GDB_MULTI_ARCH to 2.
9947
9948 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9949
9950         * p-exp.y (current_type): New static variable.
9951         Carries the type of the expression at the position that is parsed.
9952         (push_current_type, pop_current_type): Two new functions. Used
9953         to store/restore current_type in expression on specific tokens.
9954         (search_field): New static variable. Set to one after parsing a point
9955         as at that point only a FIELDNAME token should be searched.
9956         (FIELDNAME): New token. After a point only a token belonging to 
9957         current_type type definition is allowed.
9958         (all over token rules): reset and change current_type according
9959         to rules.
9960         (exp '[' rule): insert implicit array index field if
9961         exp is a pascal string type.
9962
9963 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9964
9965         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9966         frame info.  Use frame_info's saved_regs instead of matching member
9967         in extra_frame_info throughout.
9968         (v850_frame_init_saved_regs): New function.
9969         (v850_init_extra_frame_info): Move most functionality into
9970         v850_frame_init_saved_regs().
9971         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9972         (v850_frame_find_saved_regs): Remove declaration.
9973         (FRAME_FIND_SAVED_REGS): Remove definition.
9974         (v850_frame_init_saved_regs): Add declaration.
9975         (FRAME_INIT_SAVED_REGS): Add definition.
9976
9977 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9978
9979         * v850-tdep.c: Begin multi-arch'ing v850.
9980         (v850_target_architecture_hook): Remove function.
9981         (v850_gdbarch_init): New function.  Add code previously in
9982         v850_target_architecture_hook().
9983         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9984         Call register_gdbarch_init() instead.
9985
9986 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9987
9988         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9989         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9990         (fixup_class_method_type): Likewise.
9991
9992 2002-05-15  Jim Blandy  <jimb@redhat.com>
9993
9994         Add macro structures to GDB's symbol tables.  Nobody puts anything
9995         in them yet.
9996         * symtab.h (struct symtab): New member: `macro_table'.
9997         * buildsym.h (pending_macros): New global variable.
9998         * buildsym.c: #include "macrotab.h".
9999         (buildsym_init): Initialize `pending_macros'.
10000         (end_symtab): If we found macro information while reading a CU's
10001         debugging info, do build a symtab structure for it.  Make the
10002         symtab point to the macro information, and clear the
10003         `pending_macros' pointer which held it while we were reading the
10004         debug info.
10005         (really_free_pendings): Free any pending macro table.
10006         * objfiles.h (struct objfile): New member: `macro_cache'.
10007         * objfiles.c (allocate_objfile): Set allocate and free functions
10008         for the macro cache's objstack.
10009         (free_objfile): Empty the macro cache's obstack.
10010         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10011         set new allocate and free functions for it.
10012         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10013         free functions for the macro cache's objstack.  (Why is this
10014         function building its own objfile?)
10015         * symmisc.c (print_objfile_statistics): Print statistics on the
10016         macro bcache.
10017         * Makefile.in: Note that buildsym.o depends on macrotab.h.
10018
10019 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10020
10021         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10022         (REGISTER_U_ADDR): Delete definition.
10023         (arm_register_u_addr): Delete declaration.
10024
10025 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10026
10027         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10028         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10029
10030 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
10031
10032         * regcache.c (register_valid): Revise comments refering to "Not
10033         available" and "unavailable".
10034         * frame.c (frame_register_read): Ditto.
10035         * findvar.c (value_of_register): Ditto.
10036
10037 2002-05-15  Andrew Cagney  <cagney@redhat.com>
10038
10039         * Makefile.in (remote_sim_h): Replace remote-sim_h.
10040         (remote-sim.o): Update dependencies.
10041         (d10v-tdep.o): Specify dependencies.
10042         (sim_d10v_h): Define.
10043
10044 2002-05-14  Jim Blandy  <jimb@redhat.com>
10045
10046         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10047         * macrotab.c (macro_lookup_inclusion, find_definition,
10048         new_macro_table): Same.
10049         
10050         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10051         not `! strcmp ()'.  This is a dubious improvement.
10052         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10053
10054         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10055         although it's not necessary, to avoid a warning.
10056
10057 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10058
10059         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10060         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10061         TYPE_INSTANCE_FLAGS.
10062         (struct main_type): New.
10063         (struct type): Move most members to struct main_type.  Change
10064         cv_type and as_type to new type_chain member.  Add instance_flags.
10065         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10066         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10067         (finish_cv_type): Remove prototype.
10068         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10069         Set TYPE_CHAIN.
10070         (alloc_type_instance): New function.
10071         (smash_type): New function.
10072         (make_pointer_type, make_reference_type, make_function_type)
10073         (smash_to_member_type, smash_to_method_type): Call smash_type.
10074         (make_qualified_type): New function.
10075         (make_type_with_address_space): Call make_qualified_type.
10076         (make_cv_type): Likewise.
10077         (finish_cv_type): Remove unnecessary function.
10078         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10079         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10080         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10081         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10082         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10083         * hpread.c (hpread_read_struct_type): Likewise.
10084         * stabsread.c (read_struct_type): Likewise.
10085
10086 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10087
10088         * configure.tgt: Add a catch all sh* target, for cases like
10089         sh[2,3,4]-elf and sh-hms.
10090
10091 2002-05-14  Keith Seitz  <keiths@redhat.com>
10092
10093         * event-loop.c (create_file_handler): Don't do anything but
10094         update data when we are given a fd which we are already
10095         monitoring.
10096
10097 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10098
10099         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10100         (update_context): Use __func__ in warnings.
10101         
10102 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10103
10104         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10105         and tcp_close to net_open and net_close.
10106         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10107         using UDP if requested.  Don't try to disable Nagle on UDP
10108         sockets.
10109         * remote.c (remote_serial_open): New function.  Warn about UDP.
10110         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10111
10112 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10113
10114         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10115
10116 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10117
10118         * configure.tgt: Remove sh-hms target.
10119         * MAINTAINERS: Don't list sh-hms as a separate target.
10120
10121 2002-05-13  Jim Blandy  <jimb@redhat.com>
10122
10123         Add first preprocessor macro-expansion files.
10124         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10125         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10126         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10127         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10128         (COMMON_OBS): Add macrotab.o, macroexp.o.
10129         (macroexp.o, macrotab.o): New rules.
10130
10131 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10132
10133         * config/m88k/tm-m88k.h: Update copyright.
10134         (m88k_target_write_pc): Declare
10135         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10136         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10137         (SHIFT_INST_REGS): Update definition.
10138         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10139         using old definition of TARGET_WRITE_PC.
10140         * regcache.c (generic_target_write_pc): Delete code handling
10141         NNPC_REGNUM.
10142         * gdbarch.sh (NNPC_REGNUM): Delete.
10143         * gdbarch.h, gdbarch.c: Regenerate.
10144
10145 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10146
10147         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10148         builtin reg number.
10149
10150 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10151
10152         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10153         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10154         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10155         access macros.
10156         * c-typeprint.c (cp_type_print_method_args): Likewise.
10157         (c_type_print_args): Likewise.
10158         * d10v-tdep.c (d10v_push_arguments): Likewise.
10159         (d10v_extract_return_value): Likewise.
10160         * expprint.c (print_subexp): Likewise.
10161         * gdbtypes.c (lookup_primitive_typename): Likewise.
10162         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10163         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10164         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10165         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10166         (TYPE_VECTOR): Likewise.
10167         * hpread.c (hpread_read_struct_type)
10168         (fix_static_member_physnames, fixup_class_method_type)
10169         (hpread_type_lookup): Likewise.
10170         * mdebugread.c (parse_symbol, parse_type): Likewise.
10171         * p-lang.c (is_pascal_string_type): Likewise.
10172         * valops.c (hand_function_call): Likewise.
10173         * x86-64-tdep.c (classify_argument): Likewise.
10174
10175         * hpread.c (hpread_read_function_type)
10176         (hpread_read_doc_function_type): Call replace_type.
10177         * dstread.c (create_new_type): Delete.
10178         (decode_dst_structure, process_dst_function): Call alloc_type.
10179         Use type access macros.
10180
10181 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10182
10183         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10184         the're not supported by the current architecture.
10185         (i387_fill_fxsave): Likewise.
10186
10187 2002-05-12  Fred Fish  <fnf@redhat.com>
10188
10189         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10190         sect_index_xxx members to index the first slot in section_offsets
10191         if all of the section_offsets are zero.
10192
10193 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10194
10195         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10196         checked in with last change.
10197
10198 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10199
10200         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10201         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10202         config.sub.
10203
10204 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10205
10206         * Makefile.in: Update dependencies.
10207
10208 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10209
10210         * language.c (local_hex_string_custom): Simplify.  Do not depend
10211         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10212
10213         * memattr.c (mem_info_command): Replace calls to
10214         longest_local_hex_string and longest_local_hex_string_custom.
10215         * buildsym.c (make_blockvector): Ditto.
10216         * solib.c (info_sharedlibrary_command): Ditto.
10217         * tracepoint.c (tracepoints_info): Ditto.
10218         * symtab.c (print_msymbol_info): Ditto.
10219
10220         * language.c (local_hex_string): Delete.
10221         (local_hex_string_custom): Delete.
10222         (longest_local_hex_string): Rename to local_hex_string.
10223         (longest_local_hex_string_custom): Rename to
10224         local_hex_string_custom.
10225         * language.h (local_hex_string): Change parameter type to LONGEST.
10226         (local_hex_string_custom): Ditto.
10227         (longest_local_hex_string): Delete declaration.
10228         (longest_local_hex_string_custom): Ditto.
10229
10230         * solib.c: Update copyright.
10231         * memattr.c: Update copyright.
10232         
10233 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10234
10235         * arch-utils.h (legacy_register_to_value): Declare.
10236         (legacy_value_to_register): Declare.
10237         (legacy_convert_register_p): Declare.
10238         * arch-utils.c (legacy_register_to_value): New function.
10239         (legacy_value_to_register): New function.
10240         (legacy_convert_register_p): New function.
10241
10242         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10243         (VALUE_TO_REGISTER): Define.
10244         (CONVERT_REGISTER_P): Define.
10245         * gdbarch.h, gdbarch.c: Regenerate.
10246
10247         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10248         VALUE_TO_REGISTER.
10249         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10250         CONVERT_REGISTER_P.
10251
10252 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10253             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10254
10255         * Makefile.in: Update dependencies for valops.c.
10256         * valops.c: Include "gdb_assert.h".
10257         (typecmp): Skip THIS parameter to methods.
10258         (find_method_list): Remove static_memfuncp argument,
10259         update callers.  Check for stub methods.
10260         (find_value_oload_method_list): Don't set *static_memfuncp.
10261         (find_overload_match): Don't check for stub methods.  Assert
10262         that methods are not stubbed.  Handle static methods.
10263         (value_find_oload_method_list): Remove static_memfuncp argument.
10264         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10265         to the argument list for static stub methods.
10266         * value.h (value_find_oload_method_list): Update prototype.
10267
10268 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10269
10270         * arch-utils.h (generic_register_size): Declare.
10271         (generic_register_raw_size, generic_register_virtual_size): Delete
10272         declarations.
10273         * arch-utils.c (generic_register_raw_size): Delete.
10274         (generic_register_size): New function.
10275         (generic_register_virtual_size): Delete.
10276
10277         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10278         default generic_register_size.
10279         * gdbarch.h, gdbarch.c: Re-generate.
10280         
10281         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10282         register_virtual_size.
10283         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10284         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10285
10286 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10287
10288         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10289         * gdbarch.h, gdbarch.c: Regenerate.
10290         * gnu-v3-abi.c: Update copyright.
10291         (vtable_address_point_offset): Update.
10292         (gnuv3_rtti_type): Update.
10293         (gnuv3_baseclass_offset): Update.
10294         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10295         (init_fetch_link_map_offsets): Update.
10296         * remote.c (get_remote_state): Update.
10297         
10298 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10299
10300         * TODO: Remove value_headof/value_from_vtable_info comment.
10301         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10302         * values.c (value_headof, value_from_vtable_info): Delete.
10303         * value.h (value_from_vtable_info): Delete prototype.
10304
10305 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10306
10307         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10308         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10309         $(gdb_regex_h).
10310         (gdb_assert_h): Define.
10311         (gdb_wait_h): Define.
10312         (gdb_regex_h): Define.
10313
10314 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10315
10316         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10317         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10318
10319 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10320
10321         * nbsd-tdep.c: Fix comment.
10322
10323 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10324
10325         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10326         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10327         (nbsd-tdep.o): New dependency list.
10328         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10329         nbsd-tdep.h.
10330         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10331         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10332         * nbsd-tdep.c: New file.
10333         * nbsd-tdep.h: New file.
10334         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10335         nbsd-tdep.h.
10336         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10337         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10338         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10339         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10340
10341 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10342
10343         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10344         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10345         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10346         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10347         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10348         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10349
10350 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10351
10352         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10353         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10354         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10355         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10356         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10357         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10358         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10359
10360 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10361
10362         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10363         fetch_elfcore_registers to...
10364         * i386nbsd-tdep.c: ...here.
10365         (i386nbsd_use_struct_convention): Rename to...
10366         (i386nbsd_aout_use_struct_convention): ...this.
10367         (i386nbsd_supply_reg): New function.
10368         (i386nbsd_fill_reg): New function.
10369         (fetch_core_registers): Use i386nbsd_supply_reg.
10370         (fetch_elfcore_registers): Likewise.
10371         (_initialize_i386nbsd_tdep): New function.
10372         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10373         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10374         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10375         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10376         (i386nbsd_aout_use_struct_convention): ...this.
10377
10378 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10379
10380         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10381         (store_inferior_registers): Use shnbsd_fill_reg.
10382         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10383         sh_nbsd_supply_register): Collapse into...
10384         (shnbsd_supply_reg): ...this.
10385         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10386         (shnbsd_fill_reg): ...this.
10387         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10388         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10389         (fetch_core_registers): Use shnbsd_supply_reg.
10390         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10391         (sh_nbsd_core_fns): Rename to...
10392         (shnbsd_core_fns): ...this.
10393         (sh_nbsd_elfcore_fns): Rename to...
10394         (shnbsd_elfcore_fns): ...this.
10395         (sh_nbsd_init_abi): Rename to...
10396         (shnbsd_init_abi): ...this.
10397         (_initialize_sh_nbsd_tdep): Rename to...
10398         (_initialize_shnbsd_tdep): ...this.
10399         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10400         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10401         sh_nbsd_fill_register): Remove prototypes.
10402         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10403
10404 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10405
10406         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10407         (i387-nat.o): Delete dependency list.
10408         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10409         (x86-64-linux-nat.o): Likewise.
10410         * i387-nat.c: Delete file, moving contents to...
10411         * i387-tdep.c: ...here.
10412         * i387-nat.h: Rename...
10413         * i387-tdep.h: ...to this.
10414         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10415         * i386-linux-nat.c: Likewise.
10416         * i386bsd-nat.c: Likewise.
10417         * i386gnu-nat.c: Likewise.
10418         * i386nbsd-nat.c: Likewise.
10419         * i386v4-nat.c: Likewise.
10420         * x86-64-linux-nat.c: Likewise.
10421         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10422         * config/i386/go32.mh (NATDEPFILES): Likewise.
10423         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10424         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10425         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10426         * config/i386/linux.mh (NATDEPFILES): Likewise.
10427         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10428         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10429         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10430         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10431
10432 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10433
10434         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10435         (alphanbsd-nat.o): Remove dependency list.
10436         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10437         * alphanbsd-nat.c: Delete.  Contents moved to...
10438         * alphanbsd-tdep.c: ...here.
10439         (_initialize_alphanbsd_tdep): Register core functions.
10440         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10441
10442 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10443
10444         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10445         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10446         (alphanbsd-nat.o): Likewise.
10447         (alphabsd-tdep.o): New dependency list.
10448         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10449         (fill_gregset): Use alphabsd_fill_reg.
10450         (supply_fpregset): Use alphabsd_supply_fpreg.
10451         (fill_fpregset): Use alphabsd_fill_fpreg.
10452         (fetch_inferior_registers): Use struct reg and struct fpreg
10453         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10454         and alphabsd_supply_fpreg.
10455         (store_inferior_registers): Use struct reg and struct fpreg
10456         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10457         and alphabsd_fill_fpreg.
10458         * alphabsd-tdep.c: New file.
10459         * alphabsd-tdep.h: New file.
10460         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10461         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10462         alphabsd_supply_fpreg.
10463         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10464         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10465
10466 2002-05-11  Eric Christopher  <echristo@redhat.com>
10467
10468         * mips-tdep.c (mips_double_register_type): Fix thinko.
10469         (mips_single_register_type): Ditto.
10470         * MAINTAINERS: Add self.
10471
10472 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10473
10474         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10475         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10476         right thing on architectures with different endianness and/or
10477         integer sizes.
10478
10479 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10480
10481         From Christian Limpach <chris@Pin.LU>
10482         * configure.in: Change sed expression which comments out
10483         NATDEPFILES to also comment out continuation lines.
10484         * configure: Regenerate.
10485
10486 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10487
10488         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10489         big patch.
10490
10491 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10492
10493         * sh-tdep.c: Include correct file.
10494
10495 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10496
10497         New support for sh64-elf (sh5) target.
10498
10499         * configure.tgt: For sh64-elf target, default to sh-elf.
10500
10501         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10502         (struct gdbarch_tdep): Add new fields for new registers and ABI
10503         info.
10504
10505         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10506         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10507         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10508         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10509         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10510         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10511         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10512         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10513         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10514         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10515         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10516         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10517         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10518         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10519         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10520         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10521         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10522         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10523         sign_extend, sh64_nofp_frame_init_saved_regs,
10524         sh64_init_extra_frame_info, sh64_get_saved_register,
10525         sh64_extract_struct_value_address, sh64_pop_frame,
10526         sh64_push_arguments, sh64_extract_return_value,
10527         sh64_store_return_value, sh64_show_media_regs,
10528         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10529         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10530         sh_sh64_register_virtual_type,
10531         sh_sh64_register_convert_to_virtual,
10532         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10533         sh64_register_read, sh64_pseudo_register_write,
10534         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10535         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10536         sh64_do_pseudo_register, sh_compact_do_registers_info,
10537         sh64_do_registers_info, sh_gdbarch_init): New functions.
10538
10539 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10540
10541         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10542
10543 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10544
10545         * linespec.c (decode_line_1): Check for a double quote after
10546         a filename correctly.
10547
10548 2002-05-10  Jim Blandy  <jimb@redhat.com>
10549
10550         Properly track the size of the current objfile's .debug_line section.
10551         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10552         (DWARF_LINE_SIZE): New macro.
10553         (dwarf2_build_psymtabs_hard): Record the line section's size in
10554         the partial symbol table.
10555         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10556         symbol table.
10557
10558 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10559
10560         * ia64-tdep.c: Handle breakpoints on L instruction type
10561         in MLX instruction bundle by moving the breakpoint to
10562         the third slot (X instruction type) as L holds only data.
10563
10564 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10565
10566         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10567         (process_one_symbol): Complain about discarding local symbols
10568         due to a misplaced N_LBRAC entry.
10569
10570 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10571
10572         From Daniel Berlin <dan@cgsoftware.com>
10573         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10574         decrease the depth we are at, in the case of templates.
10575
10576 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10577
10578         * mips-tdep.c (mips_float_register_type): New function.
10579         (mips_double_register_type): New function.
10580         (mips_print_register): Use them.
10581         (do_fp_register_row): Likewise.
10582
10583 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10584
10585         * signals/signals.c (signals): Remove conditional compilation around
10586         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10587         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10588
10589 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10590
10591         * remote-rdp.c (remote_rdp_can_run): Remove.
10592
10593 2002-05-09  Tom Tromey  <tromey@redhat.com>
10594
10595         * jv-valprint.c (java_val_print): Handle `char' as a special case
10596         of TYPE_CODE_INT.
10597
10598 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10599
10600         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10601         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10602         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10603         str r(0123),[sp,#nn].
10604         (arm_skip_prologue): Ditto.  Also make disassembly
10605         order-independent by placing it in a loop.
10606
10607 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10608
10609         * stabsread.c (read_type): Add recognition for new attribute:
10610         "@V;" means that an array type is actually a vector.
10611         This is analogous to the vector flag that's been added to dwarf2.
10612
10613 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10614
10615         * i386-tdep.h (i386_abi): New enum.
10616         (struct gdbarch_tdep): Replace os_ident member with abi.
10617         (i386_gdbarch_register_os_abi): New prototype.
10618         * i386-tdep.c (i386_abi_names): New array.
10619         (process_note_abi_tag_sections): Removed.
10620         (process_note_sections): New function.
10621         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10622         (struct i386_abi_handler): New struct.
10623         (i386_abi_handler_list): New variable.
10624         (i386_gdbarch_register_os_abi): New function.
10625         (i386_gdbarch_init): Adapt for the changes given above.
10626
10627 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10628
10629         * gregset.h: Say "GNU/Linux".
10630
10631 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10632
10633         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10634         (build_gdbtypes): Build builtin_type_v2_float.
10635         (_initialize_gdbtypes): Register new builtin type.
10636
10637 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10638
10639         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10640         (clear_gdbarch_swap): New function.
10641         (initialize_non_multiarch): Call.
10642         (gdbarch_update_p): Before calling init(), swap out and clear the
10643         existing architecture.
10644         * gdbarch.c: Regenerate.
10645
10646 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10647
10648         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10649         alphanbsd-tdep.c.
10650
10651 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10652
10653         * sh-nbsd-nat.c: Rename to...
10654         * shnbsd-nat.c: ...this.
10655         * sh-nbsd-tdep.c: Rename to...
10656         * shnbsd-tdep.c: ...this.
10657         * sh-nbsd-tdep.h: Rename to...
10658         * shnbsd-tdep.h: ...this.
10659         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10660         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10661
10662 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10663
10664         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10665         concatenation for command help messages.
10666
10667 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10668
10669         * NEWS: Note new sh*-*-netbsdelf* configuration.
10670         * configure.host: Set gdb_host_cpu to sh for all sh*.
10671         (sh*-*-netbsdelf*): New host.
10672         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10673         (sh*-*-netbsdelf*): New target.
10674         * sh-nbsd-nat.c: New file.
10675         * sh-nbsd-tdep.c: New file.
10676         * sh-nbsd-tdep.h: New file.
10677         * config/sh/nbsd.mh: New file.
10678         * config/sh/nbsd.mt: New file.
10679         * config/sh/nm-nbsd.h: New file.
10680         * config/sh/tm-nbsd.h: New file.
10681
10682 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10683
10684         * sh-tdep.c (sh_osabi_names): Declare.
10685         (process_note_abi_tag_sections): New function.
10686         (get_elfosabi): Ditto.
10687         (sh_gdbarch_register_os_abi): Ditto.
10688         (sh_dump_tdep): Ditto.
10689         _initialize_sh_tdep): Use gdbarch_register to register
10690         sh_gdbarch_init and sh_dump_tdep.
10691         * config/sh/tm-sh.h (sh_osabi): Declare.
10692         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10693
10694 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10695
10696         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10697         (thumb_scan_prologue): Ditto.
10698         (arm_find_callers_reg): Ditto.
10699         (arm_frame_chain): Ditto.
10700         (arm_init_extra_frame_info): Ditto.
10701         (arm_frame_saved_pc): Ditto.
10702         (arm_pop_frame): Ditto.
10703         (arm_push_return_address): New function.
10704         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10705         call_dummy_location, call_dummy_breakpoint_offset_p,
10706         call_dummy_breakpoint_offset, call_dummy_p,
10707         call_dummy_stack_adjust_p, call_dummy_words,
10708         sizeof_call_dummy_words, call_dummy_start_offset,
10709         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10710         call_dummy_address, push_return_address and push_dummy_frame for
10711         generic dummy frames.
10712
10713 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10714
10715         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10716         size computation for alloca.
10717         (sh_fp_frame_init_saved_regs): Likewise.
10718
10719 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10720
10721         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10722         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10723         * arm-tdep.c (arm_store_return_value): Use them.
10724         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10725         * remote-rdp.c (remote_rdp_fetch_register): Use
10726         ARM_MAX_REGISTER_RAW_SIZE.
10727         (remote_rdp_store_register): Likewise.
10728
10729 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10730
10731         * dwarf2cfi.c: Code cleanup, removed unused variables,
10732         added default labels to switch {} statements.
10733         * x86-64-tdep.c: Ditto.
10734         * x86-64-linux-nat.c: Ditto.
10735
10736 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10737
10738         * solib.h: Protect against multiple inclusion.
10739
10740 2002-05-06  Jim Blandy  <jimb@redhat.com>
10741
10742         Add first preprocessor macro-expansion files.
10743         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10744         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10745         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10746         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10747         (COMMON_OBS): Add macrotab.o, macroexp.o.
10748         (macroexp.o, macrotab.o): New rules.
10749
10750         Separate the job of reading the line number info statement program
10751         header (...expialidocious) out into its own function.
10752         * dwarf2read.c (struct line_head, struct filenames, struct
10753         directories): Replace with...
10754         (struct line_header): New structure, containing the full
10755         contents of the statement program header, including the
10756         include directory and file name tables.
10757         (read_file_scope): If we have line number info, instead of just
10758         calling dwarf_decode_lines to do all the work, call
10759         dwarf_decode_line_header first to get a `struct line_header'
10760         containing the data in the statement program header, and then
10761         pass that to dwarf_decode_lines, which will pick up where that
10762         left off.  Be sure to clean up the `struct line_header' object.
10763         (dwarf_decode_line_header, free_line_header, add_include_dir,
10764         add_file_name): New functions.
10765         (dwarf_decode_lines): Move all the code to read the statement
10766         program header into dwarf_decode_line_header.  Take the line
10767         header it built as the first argument, instead of the offset to
10768         the compilation unit's line number info.  Use the new `struct
10769         line_header' type instead of the old structures.  No need to do
10770         cleanups here now, since we don't allocate anything.
10771         (dwarf2_statement_list_fits_in_line_number_section,
10772         dwarf2_line_header_too_long): New complaints.
10773
10774 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10775
10776         * gdbtypes.c (init_vector_type): New function.
10777         (build_builtin_type_vec128): Simplify the representation of SIMD
10778         registers.
10779         (build_gdbtypes): Initialize new builtin vector types.
10780         (_initialize_gdbtypes): Register new vector types with gdbarch.
10781         (builtin_type_v4_float, builtin_type_v4_int32,
10782         builtin_type_v8_int16, builtin_type_v16_int8,
10783         builtin_type_v2_int32, builtin_type_v4_int16,
10784         builtin_type_v8_int8): New (renamed) SIMD types.
10785
10786 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10787
10788         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10789         (i387_fill_fxsave): Likewise.
10790
10791 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10792
10793         * alpha-tdep.c (alpha_extract_return_value): Don't use
10794         non-constant array size in prototype.
10795
10796 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10797
10798         From Brian Taylor <briant at model dot com>:
10799         * ui-out.c (ui_out_field_core_addr): Use the function
10800         longest_local_hex_string_custom'to format addresses > 32 bits
10801         wide.
10802
10803         * ui-out.c (ui_out_field_core_addr): Update comment.
10804
10805 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10806
10807         * stack.c (select_and_print_frame): Make static.  Delete the
10808         parameter `level'.
10809         (func_command): Update call.
10810         (select_frame_command): Delete code computing the frame level.
10811         * frame.h (select_and_print_frame): Delete declaration.
10812
10813 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10814
10815         * sparc-tdep.c (sparc_get_saved_register): Comment why
10816         get_prev_frame call is safe.
10817
10818 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10819
10820         * frame.h (select_frame): Delete level parameter.
10821         * stack.c (select_frame): Update.  Use frame_relative_level to
10822         obtain the frame's level.
10823         (select_and_print_frame): Update call.
10824         (select_frame_command): Ditto.
10825         (up_silently_base): Ditto.
10826         (down_silently_base): Ditto.
10827         * ocd.c (ocd_start_remote): Ditto.
10828         * remote-rdp.c (remote_rdp_open): Ditto.
10829         * remote-mips.c (mips_initialize): Ditto.
10830         (common_open): Ditto.
10831         * remote-e7000.c (e7000_start_remote): Ditto.
10832         * m3-nat.c (select_thread): Ditto.
10833         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10834         (child_get_current_exception_event): Ditto.
10835         * varobj.c (varobj_create): Ditto.
10836         (varobj_update): Ditto.
10837         (c_value_of_root): Ditto.
10838         * tracepoint.c (finish_tfind_command): Ditto.
10839         * corelow.c (core_open): Ditto.
10840         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10841         * thread.c (info_threads_command): Ditto.
10842         (switch_to_thread): Ditto.
10843         * infrun.c (normal_stop): Ditto.
10844         (restore_selected_frame): Ditto.
10845         (restore_inferior_status): Ditto.
10846         * breakpoint.c (insert_breakpoints): Ditto.
10847         (watchpoint_check): Ditto.
10848         (bpstat_stop_status): Ditto.
10849         (do_enable_breakpoint): Ditto.
10850         * blockframe.c (flush_cached_frames): Ditto.
10851         (reinit_frame_cache): Ditto.
10852
10853 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10854
10855         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10856         maintainer.
10857
10858 2002-05-04  Jim Blandy  <jimb@redhat.com>
10859
10860         * gdbtypes.c (replace_type): Doc fix.
10861
10862 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10863
10864         * valprint.c (strcat_longest): Delete commented out function.
10865         Update copyright.
10866
10867 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10868
10869         * MAINTAINERS: Mark a29k as deleted.
10870         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10871         Move new configurations to the top.
10872         * configure.tgt: Remove a29k.
10873         * config/a29k/tm-vx29k.h: Delete.
10874         * config/a29k/vx29k.mt: Delete.
10875         * config/a29k/tm-a29k.h: Delete.
10876         * config/a29k/a29k-udi.mt: Delete.
10877         * config/a29k/a29k.mt: Delete.
10878         * a29k-tdep.c: Delete.
10879         * remote-udi.c: Delete.
10880         * remote-mm.c: Delete.
10881         * remote-eb.c: Delete.
10882         * remote-adapt.c: Delete.
10883         * Makefile.in: Remove obsolete code.
10884         * config/s390/s390x.mt: Ditto.
10885         * config/s390/s390.mt: Ditto.
10886         * config/sparc/sparclynx.mh: Ditto.
10887         * config/sparc/linux.mh: Ditto.
10888         * config/pa/hppaosf.mh: Ditto.
10889         * config/pa/hppabsd.mh: Ditto.
10890         * config/ns32k/nbsd.mt: Ditto.
10891         * config/mips/vr5000.mt: Ditto.
10892         * config/m68k/sun3os4.mh: Ditto.
10893         * config/m68k/nbsd.mt: Ditto.
10894         * config/m68k/m68klynx.mh: Ditto.
10895         * config/m32r/m32r.mt: Ditto.
10896         * config/i386/x86-64linux.mt: Ditto.
10897         * config/i386/nbsdelf.mt: Ditto.
10898         * config/i386/nbsd.mt: Ditto.
10899         * config/i386/i386lynx.mh: Ditto.
10900
10901 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10902
10903         * target.c (debug_print_register): New function.  Handle oversize
10904         registers.
10905         (debug_to_fetch_registers): Call.
10906         (debug_to_store_registers): Call.
10907
10908 2002-05-03  Jim Blandy  <jimb@redhat.com>
10909
10910         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10911         (read_type): Doc fix.
10912         * gdbtypes.c (replace_type): Doc fix.
10913
10914         * stabsread.c (multiply_defined_struct): New complaint.
10915         (read_struct_type): If the type we were passed isn't empty, or
10916         incomplete, don't read the new struct type into it; complain,
10917         and return the original type unchanged.  Take a new `type_code'
10918         argument, which is the type code for the new type.
10919         (read_type): Rather than storing the type's type code here, pass
10920         it as an argument to read_struct_type, and let that take care of
10921         storing it.  That way, we don't overwrite the original type code,
10922         so read_struct_type can use it to decide whether we're overwriting
10923         something we shouldn't.
10924         (complain_about_struct_wipeout): New function.
10925
10926 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10927
10928         * gdbarch.sh: Assert that gdbarch is non-NULL.
10929         * gdbarch.c: Regenerate.
10930
10931 2002-05-03  Jason Merrill  <jason@redhat.com>
10932
10933         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10934         and return NULL.
10935
10936 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10937
10938         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10939         (x86_64_dwarf2gdb_regno_map_length),
10940         (x86_64_dwarf2_reg_to_regnum): Added.
10941         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10942         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10943         (_initialize_x86_64_tdep): Synced with the change above.
10944         (x86_64_skip_prologue): Reformulated message.
10945
10946 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10947
10948         * f-exp.y: Also use new prev_lexptr variable
10949         to improve error reporting. Based on Michael Snyder
10950         2002-04-24 dated patch to c-exp.y.
10951         * jv-exp.y: Likewise.
10952         * m2-exp.y: Likewise.
10953
10954 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10955
10956         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10957         we are dealing with vectors.
10958
10959 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10960
10961         * config/m68k/tm-nbsd.h: Obvious fix,
10962         correct machine name.
10963
10964 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10965
10966         * p-typeprint.c (pascal_type_print_base): Add support
10967         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10968
10969 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10970
10971         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10972         for fondamental pascal 'char' type.
10973
10974 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10975
10976         * p-lang.h (is_pascal_string_type): Declaration changed,
10977         new sixth argument of type char ** added.
10978         * p-lang.c (is_pascal_string_type): Implementation
10979         changed. Args length_pos, length_size, string_pos, char_size
10980         can now be NULL. New argument arrayname set to the field
10981         name of the char array. Return value set to char array
10982         field index plus one.
10983         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10984         is_pascal_string_type function.
10985
10986 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10987
10988         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10989         <cagney@redhat.com> change.
10990         * gdbarch.c: Regenerate.
10991
10992 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10993
10994         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10995         before probing for a new one.  Detect errorenous gdbarch_init
10996         functions.
10997         * gdbarch.c: Regenerate.
10998
10999 2002-05-01  Andrew Cagney  <cagney@redhat.com>
11000
11001         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
11002         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
11003         * config/v850/tm-v850.h: Ditto.  Update copyright.
11004
11005 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
11006
11007         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11008         current_gdbarch.
11009
11010 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11011
11012         * arm-tdep.c: Whitespace clean-ups.
11013         (arm_skip_prologue): Fix thinko; two lines
11014         should have been removed as part of 4/24 change.
11015
11016 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
11017
11018         * rs6000-tdep.c: Added comment describing how fpscr register
11019         numbers were chosen.
11020
11021 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11022
11023         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11024
11025 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11026
11027         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11028         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11029         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11030
11031 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
11032
11033         From Louis Hamilton <hamilton@redhat.com>:
11034         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11035         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11036         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11037         not bfd-private xcoff data, to determine wordsize.
11038         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11039
11040 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
11041
11042         GDB 5.2 released from 5.2 branch.
11043
11044 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
11045
11046         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11047         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11048         (x86_64_register_info_table): Added comments with register numbers.
11049
11050 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11051
11052         * rs6000-tdep.c (rs6000_extract_return_value,
11053         rs6000_store_return_value): Handle returning vectors.
11054         (rs6000_gdbarch_init): Use
11055         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11056         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11057         New function.
11058         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11059         vectors.
11060         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11061         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11062
11063 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11064
11065         * hpread.c (hpread_psymtab_to_symtab_1,
11066         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11067         with fprintf_unfiltered (gdb_stderr,...).
11068
11069 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11070
11071         * remote-array.c (printf_monitor, write_monitor,
11072         array_insert_breakpoint, array_remove_breakpoint ):
11073         Replace fprintf (stderr,...
11074         with fprintf_unfiltered (gdb_stderr,....
11075         * remote-es.c: Likewise.
11076         * remote-os9k.c: Likewise.
11077         * remote-st.c: Likewise.
11078
11079 2002-04-28  Andreas Schwab  <schwab@suse.de>
11080
11081         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11082         linux-proc.o and gcore.o.
11083
11084 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11085
11086         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11087         code without frame pointers.
11088
11089 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11090
11091         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11092         ON_STACK is needed.
11093
11094 2002-04-26  Ben Elliston  <bje@redhat.com>
11095
11096         * target.c (do_xfer_memory): Correct reference to the new option
11097         "trust-readonly-sections".
11098
11099 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11100
11101         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11102         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11103         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11104         vectors.
11105         (read_array_type): Record the fact that this array type is really a
11106         vector (i.e. are passed in by value).
11107
11108 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11109
11110         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11111         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11112         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11113         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11114         * alpha-linux-tdep.c: Include frame.h.
11115         (alpha_linux_sigcontext_addr): New function.
11116         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11117         alpha_linux_sigcontext_addr.
11118         * alpha-osf1-tdep.c: Include gdbcore.h.
11119         (alpha_osf1_sigcontext_addr): New function.
11120         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11121         alpha_osf1_sigcontext_addr.
11122         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11123         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11124
11125 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11126
11127         * stack.c (selected_frame_level):
11128         (select_frame): Do not set selected_frame_level.
11129         * frame.h (selected_frame_level): Delete declaration.
11130
11131 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11132
11133         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11134         convert_from_func_ptr-addr when AIX / PowerOpen.
11135
11136 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11137
11138         * valops.c (hand_function_call): Call
11139         generic_save_call_dummy_addr.
11140         * frame.h (generic_save_call_dummy_addr): Declare.
11141         * blockframe.c (struct dummy_frame): Add fields call_lo and
11142         call_hi.
11143         (generic_find_dummy_frame): Check for PC in range call_lo to
11144         call_hi instead of entry_point_address.
11145         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11146         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11147         (generic_save_call_dummy_addr): New function.
11148
11149 2002-04-24  David S. Miller  <davem@redhat.com>
11150
11151         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11152         sparc_skip_prologue.
11153         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11154         information to find prologue when possible.
11155         (sparc_prologue_frameless_p): Call examine_prologue directly.
11156         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11157         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11158         second argument.
11159         (SKIP_PROLOGUE): Likewise.
11160
11161 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11162
11163         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11164         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11165         indicate that the condition it was testing is always true.
11166         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11167         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11168         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11169
11170 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11171
11172         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11173         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11174         tdep->jb_pc and tdep->jb_elt_size.
11175         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11176         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11177         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11178         * alpha-nat.c (get_longjmp_target): Remove.
11179         (JB_ELEMENT_SIZE): Ditto.
11180         (JB_PC): Ditto.
11181         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11182         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11183         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11184         to alpha_get_longjmp_target.
11185         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11186         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11187         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11188
11189 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11190
11191         * README: Update to GDB 5.2.
11192
11193 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11194
11195         * gdbarch.sh (LC_ALL): Set to `c'.
11196
11197 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11198
11199         * avr-tdep.c: Ran through gdb_indent.sh.
11200
11201 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11202
11203         * MAINTAINERS: Add myself as AVR maintainer.
11204         * NEWS: Note new target avr.
11205
11206 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11207
11208         * Makefile.in: Add support for AVR target.
11209         * configure.tgt: Add support for AVR target.
11210         * avr-tdep.c: New file
11211         * config/avr/avr.mt: New file.
11212
11213 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11214
11215         * MAINTAINERS: Add myself to write-after-approval.
11216
11217 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11218
11219         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11220         with fprintf_unfiltered (gdb_stderr,....
11221
11222 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11223
11224         Fix PR gdb/508.
11225         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11226
11227 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11228
11229         * p-exp.y: Also use new prev_lexptr variable
11230         to improve error reporting. Based on Michael Snyder
11231         2002-04-24 dated patch to c-exp.y.
11232
11233 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11234
11235         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11236         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11237         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11238         to 0.
11239         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11240         and struct value.
11241         (FUNCTION_START_OFFSET): Remove.
11242         (BREAKPOINT): Ditto.
11243
11244 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11245
11246         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11247         * NEWS: Ditto.
11248
11249 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11250
11251         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11252         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11253         alpha_linux_pc_in_sigtramp.
11254         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11255         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11256         alpha_osf1_pc_in_sigtramp.
11257         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11258         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11259         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11260         alphafbsd_pc_in_sigtramp.
11261         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11262         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11263         alphanbsd_pc_in_sigtramp.
11264         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11265         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11266
11267 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11268
11269         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11270
11271 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11272
11273         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11274         alphanbsd-tdep.c.
11275         (alphanbsd-nat.o): New dependency list.
11276         (alphanbsd-tdep.o): Ditto.
11277         * NEWS: Note new native NetBSD/alpha configuration.
11278         * alphanbsd-nat.c: New file.
11279         * alphanbsd-tdep.c: Ditto.
11280         * configure.host (alpha*-*-netbsd*): New host.
11281         * configure.tgt (alpha*-*-netbsd*): New target.
11282         * config/alpha/nbsd.mh: New file.
11283         * config/alpha/nbsd.mt: Ditto.
11284         * config/alpha/nm-nbsd.h: Ditto.
11285         * config/alpha/tm-nbsd.h: Ditto.
11286
11287 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11288
11289         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11290         (alpha-osf1-tdep.o): New dependency list.
11291         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11292         and skip_sigtramp_frame members.
11293         * alpha-linux-tdep.c: Include gdbcore.h.
11294         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11295         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11296         * alpha-osf1-tdep.c: New file.
11297         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11298         alpha-osf1-dep.c.
11299         (alpha_frame_past_sigtramp_frame): New function.
11300         (alpha_dynamic_sigtramp_offset): Ditto.
11301         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11302         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11303         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11304         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11305         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11306         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11307         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11308         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11309         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11310         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11311         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11312         to find_solib_trampoline_target.
11313         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11314         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11315         (SKIP_TRAMPOLINE_CODE): Remove.
11316         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11317         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11318         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11319         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11320         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11321         (PROC_SIGTRAMP_MAGIC): Ditto.
11322         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11323         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11324         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11325         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11326         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11327
11328 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11329
11330         * NEWS: Note that Alpha targets are now multi-arch.
11331
11332 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11333
11334         * parser-defs.h (prev_lexptr): New external variable.
11335         * parse.c (parse_exp_1): Set prev_lexptr to null before
11336         calling the language-specific parser.
11337         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11338         (yyerror): Use prev_lexptr in error reporting.
11339
11340 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11341
11342         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11343         * gregset.h: If FILL_FPXREGSET is defined, provide
11344         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11345         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11346         is defined, call fill_fpxregset.
11347
11348 2002-04-24  Roland McGrath  <roland@frob.com>
11349
11350         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11351         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11352         (supply_gregset, supply_fpregset): New functions.
11353
11354         * gnu-nat.c (gnu_find_memory_regions): New function.
11355         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11356         (gnu_xfer_memory): Add a cast.
11357
11358 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11359
11360         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11361         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11362         of argument regs ("str r(0123), [r11, #-nn"]).
11363         (arm_skip_prologue): Better handling for frameless functions.
11364         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11365         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11366
11367 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11368
11369         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11370         NUM_PSEUDO_REGS can be used.
11371
11372 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11373
11374         * arch-utils.h: Update copyright.
11375
11376         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11377         * gdbarch.h, gdbarch.c: Re-generate.
11378
11379         * inferior.h (IN_SIGTRAMP): Delete definition.
11380         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11381         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11382
11383         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11384         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11385         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11386         (find_proc_framesize): Ditto.
11387         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11388         (alpha_init_extra_frame_info): Ditto.
11389         * infrun.c (handle_inferior_event): Ditto.
11390         (handle_inferior_event): Ditto.
11391         (check_sigtramp2): Ditto.
11392         * blockframe.c (create_new_frame): Ditto.
11393         (get_prev_frame): Ditto.
11394         * ppc-linux-tdep.c: Update comments.
11395         * i386-linux-tdep.c: Update comments.
11396         * breakpoint.c (bpstat_what): Update comment.
11397
11398 2002-04-24  David S. Miller  <davem@redhat.com>
11399
11400         * i960-tdep.c (register_in_window_p): New function.
11401         (i960_find_saved_register): Use it instead of
11402         REGISTER_IN_WINDOW_P.
11403         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11404
11405         * symtab.h (find_stab_function_addr): Kill extern.
11406         * minsyms.c (find_stab_function_addr): Remove from here...
11407         * dbxread.c: ... to here, and mark it static.
11408
11409 2002-04-20  David S. Miller  <davem@redhat.com>
11410
11411         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11412         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11413
11414 2002-04-21  David S. Miller  <davem@redhat.com>
11415
11416         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11417         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11418         (vx_write_register): Likewise.
11419
11420 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11421
11422         * source.c (is_regular_file): New function.
11423         (openp): Check wether file to open is a regular file
11424         to avoid opening directories.
11425
11426 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11427
11428         * findvar.c (extract_signed_integer): Cast printf argument
11429         to suppress format warning.
11430         (extract_unsigned_integer): Likewise.
11431         * infcmd.c (registers_info): Likewise.
11432         * top.c (get_prompt_1): Likewise.
11433         * valops.c (value_assign): Likewise.
11434         * valprint.c (print_decimal): Likewise.
11435
11436 2002-04-22  H.J. Lu  (hjl@gnu.org)
11437
11438         * c-exp.y (typebase): Support
11439
11440         [long|long long|short] [signed|unsigned] [int|]
11441
11442         and
11443
11444         signed [long|long long|short] int
11445
11446 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11447
11448         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11449         and vax-tdep.h.
11450         * vax-tdep.h: New file.
11451         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11452         Make several routines static.
11453         (vax_get_saved_register): New function.
11454         (vax_gdbarch_init): New function.
11455         (_initialize_vax_tdep): Register vax_gdbarch_init.
11456         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11457         Remove macros now under the control of gdbarch.
11458
11459 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11460
11461         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11462         Some whitespace and coding standards tweaks.
11463
11464 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11465
11466         * vax-tdep.c: Include regcache.h.
11467         (vax_call_dummy_words): New.
11468         (sizeof_vax_call_dummy_words): New.
11469         (vax_fix_call_dummy): New function.
11470         (vax_saved_pc_after_call): Ditto.
11471         * config/vax/tm-vax.h: Don't include regcache.h.
11472         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11473         (CALL_DUMMY): Remove.
11474         (CALL_DUMMY_WORDS): Define.
11475         (SIZEOF_CALL_DUMMY_WORDS): Define.
11476         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11477
11478 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11479
11480         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11481
11482 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11483
11484         * vax-tdep.c (vax_frame_chain): New function.
11485         (vax_push_dummy_frame): Ditto.
11486         (vax_pop_frame): Ditto.
11487         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11488         (FRAMELESS_FUNCTION_INVOCATION): Use
11489         generic_frameless_function_invocation_not.
11490         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11491         (POP_FRAME): Use vax_pop_frame.
11492
11493 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11494
11495         * vax-tdep.c (vax_store_struct_return): New function.
11496         (vax_extract_return_value): Ditto.
11497         (vax_store_return_value): Ditto.
11498         (vax_extract_struct_value_address): Ditto.
11499         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11500         vax_store_struct_return.
11501         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11502         (STORE_RETURN_VALUE): Use vax_store_return_value.
11503         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11504
11505 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11506
11507         * vax-tdep.c (vax_frame_saved_pc): New function.
11508         (vax_frame_args_address_correct): Ditto.
11509         (vax_frame_args_address): Ditto.
11510         (vax_frame_locals_address): Ditto.
11511         (vax_frame_num_args): Move code to be in proximity to
11512         other frame-related functions.
11513         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11514         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11515         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11516         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11517         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11518
11519 2002-04-22  H.J. Lu  (hjl@gnu.org)
11520
11521         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11522         includedir.
11523
11524 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11525
11526         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11527         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11528         (FRAME_INIT_SAVED_REGS): New macro.
11529
11530 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11531
11532         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11533
11534 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11535
11536         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11537         where needed.
11538         (fetch_osf_core_registers): Likewise.
11539         (supply_gregset): Likewise.
11540
11541 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11542
11543         * symfile.h (get_section_index): Define.
11544         * symfile.c (get_section_index): New function.
11545         * mdebugread.c (SC_IS_SBSS): New macro.
11546         (SC_IS_BSS): Return true for the scBss storage class only, as
11547         the scSBss storage class refers to the .sbss section.
11548         (parse_partial_symbols): Discard the symbols which associated
11549         section does not exist.
11550         Make sure to use the .sbss section index for symbols which
11551         storage class is scBss, rather than using the .bss section index.
11552
11553 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11554
11555         * vax-tdep.c: Update copyright years.
11556         (vax_register_name): New function.
11557         (vax_register_byte): Ditto.
11558         (vax_register_raw_size): Ditto.
11559         (vax_register_virtual_size): Ditto.
11560         (vax_register_virtual_type): Ditto.
11561         * config/vax/tm-vax.h: Update copyright years.
11562         (REGISTER_NAMES): Remove.
11563         (REGISTER_NAME): Define.
11564         (REGISTER_BYTE): Use vax_register_byte.
11565         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11566         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11567         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11568
11569 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11570
11571         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11572         declaration
11573         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11574
11575 2002-04-21  David S. Miller  <davem@redhat.com>
11576
11577         * arch-utils.c (generic_prologue_frameless_p): Kill
11578         SKIP_PROLOGUE_FRAMELESS_P code.
11579         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11580         references.
11581         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11582         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11583         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11584         references.
11585         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11586         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11587         (sparc_gdbarch_init): Pass it to
11588         set_gdbarch_prologue_frameless_p.
11589
11590 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11591
11592         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11593         (alphabsd-nat.o): New dependency list.
11594
11595 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11596
11597         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11598         alphafbsd-tdep.c.
11599         (alpha-linux-tdep.o): New dependency list.
11600         (alphafbsd-tdep.o): Likewise.
11601
11602 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11603
11604         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11605         to here...
11606         * alpha-tdep.c: ...from here.
11607         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11608
11609 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11610
11611         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11612         prototype from here...
11613         * alpha-tdep.h: ...to here.
11614
11615 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11616
11617         * frame.h (selected_frame_level): Document as deprecated.
11618         (frame_relative_level): Declare.
11619         * stack.c (frame_relative_level): New function.
11620         (selected_frame_level): Document as deprecated.
11621         (select_frame): Do not set the selected_frame_level.
11622
11623         * stack.c (frame_info, record_selected_frame): Update.
11624         (frame_command, current_frame_command): Update.
11625         (up_silently_base, up_command, down_silently_base): Update.
11626         (down_command): Update.
11627         * inflow.c (kill_command): Update.
11628         * tracepoint.c (finish_tfind_command): Update.
11629         * corelow.c (core_open): Update.
11630         * thread.c (info_threads_command): Update.
11631         (do_captured_thread_select): Update.
11632         * infcmd.c (finish_command): Update.
11633         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11634
11635 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11636
11637         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11638
11639 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11640
11641         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11642         type const.
11643
11644 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11645
11646         * alphafbsd-tdep.c: Update copyright years.  Include
11647         alpha-tdep.h.
11648         (alphafbsd_use_struct_convention): Make static.
11649         (alphafbsd_init_abi): New function.
11650         (_initialize_alphafbsd_tdep): New function.
11651         * config/alpha/tm-fbsd.h: Update copyright years.
11652         (USE_STRUCT_CONVENTION): Remove.
11653
11654 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11655
11656         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11657         an Alpha ABI variant.
11658         (alpha_abi_handler_list): Declare.
11659         (alpha_gdbarch_register_os_abi): New function.
11660         (alpha_gdbarch_init): Give registered ABI variant handlers a
11661         chance to tweak the gdbarch once we have set up defaults.
11662         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11663
11664 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11665
11666         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11667         to standard_coerce_float_to_double.
11668         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11669
11670 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11671
11672         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11673         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11674         from gdbarch_tdep rather than a constant.
11675         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11676         the default text address for all Alpha Unix ABIs.
11677         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11678         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11679
11680 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11681
11682         * alpha-tdep.h: New file.  Includes several Alpha target constants
11683         taken from...
11684         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11685         let gdbarch deal with.
11686         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11687         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11688         to dependency list.
11689         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11690         Alpha target register names.
11691         * alphabsd-nat.c: Likewise.
11692         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11693         Alpha target register names.  Make serveral routines static.
11694         (alpha_get_saved_register): New function.
11695         (alpha_abi_names): New.
11696         (process_note_abi_tag_sections): New function.
11697         (get_elfosabi): New function.
11698         (alpha_gdbarch_init): New function.
11699         (alpha_dump_tdep): New function.
11700         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11701
11702 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11703
11704         * frame.c (find_saved_register): Delete #ifdef
11705         HAVE_REGISTER_WINDOWS code.
11706         * config/sparc/tm-sparc.h: Update comments.
11707         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11708
11709 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11710
11711         * i960-tdep.c (i960_find_saved_register): New function.
11712         (i960_get_saved_register): New function.
11713         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11714         (i960_get_saved_register): Declare.
11715         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11716
11717 2002-04-20  David S. Miller  <davem@redhat.com>
11718
11719         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11720
11721 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11722
11723         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11724         instead of NUM_PSEUDO_REGS.
11725
11726 2002-04-20  David S. Miller  <davem@redhat.com>
11727
11728         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11729         GDB_MULTI_ARCH_PARTIAL
11730         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11731         define, let tm-sp64.h do it.
11732
11733 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11734
11735         * frame.c (find_saved_register): Avoid a NULL pointer
11736         dereference and actually walk the frame list.
11737
11738 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11739
11740         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11741         sorted in most most-recent-used order.  Document.
11742         * gdbarch.h, gdbarch.c: Regenerate.
11743
11744 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11745
11746         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11747         instead of ->prev.
11748         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11749         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11750         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11751         instead of ->prev.
11752
11753 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11754
11755         Fix PR gdb/471.
11756         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11757         (build_builtin_type_vec128): Ditto.
11758         (append_composite_type_field): Fix calculation of type length in
11759         union case.
11760
11761 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11762
11763         * config/djgpp/README: Update.
11764
11765         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11766         compiler warnings.
11767
11768 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11769
11770         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11771         (alpha_setup_arbitrary_frame): ...to this.
11772         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11773         for alpha_setup_arbitrary_frame.
11774
11775 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11776
11777         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11778         * gdbarch.h, gdbarch.c: Regenerate.
11779
11780         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11781         * target.h (memory_breakpoint_from_pc): Update declaration.
11782         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11783
11784         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11785         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11786         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11787         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11788         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11789         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11790         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11791         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11792         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11793         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11794         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11795         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11796
11797         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11798         const pointer.
11799         * monitor.c (monitor_insert_breakpoint): Ditto.
11800         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11801
11802         * config/mcore/tm-mcore.h: Update copyright.
11803         * mem-break.c: Ditto.
11804         * xstormy16-tdep.c: Ditto.
11805
11806 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11807
11808         * p-exp.y: Add precedence rule for '^' token.
11809         This removes the shift/reduce conflicts.
11810         Remove the comment concerning these shift/reduce conflicts.
11811
11812 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11813
11814         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11815         (registers_powerpc_nofp): New register set for processors
11816         without floating point unit.
11817
11818 2002-04-18  David S. Miller  <davem@redhat.com>
11819
11820         * MAINTAINERS: Add myself to write-after-approval.
11821
11822 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11823
11824         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11825
11826 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11827
11828         * rs6000-tdep.c (frame_initial_stack_address): Use
11829         frame_register_read to read the alloca_reg.
11830
11831 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11832
11833         * frame.c (find_saved_register): Find saved registers in the next
11834         not prev frame.
11835         Fix PR gdb/365.
11836
11837 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11838
11839         * gdbarch.sh (LANG): Set to ``c''.
11840
11841 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11842
11843         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11844
11845 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11846
11847         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11848         Update copyright.
11849
11850         * hpread.c (hpread_get_lntt): Add declaration.
11851         Also fix PR gdb/391.
11852
11853 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11854
11855         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11856         * aclocal.m4, configure: Re-generate.
11857         Fix PR gdb/391.
11858
11859 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11860
11861         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11862         instead of tm_print_insn.
11863
11864 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11865
11866         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11867
11868 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11869
11870         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11871         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11872         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11873
11874 2002-04-12  Don Howard  <dhoward@redhat.com>
11875
11876         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11877         max_user_call_depth.
11878         (init_cmd_lists): Initialize the new value;
11879         * cli/cli-script.c (execute_user_command): Limit the call depth of
11880         user defined commands.  This avoids a core-dump when user commands
11881         are infinitly recursive.
11882
11883 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11884
11885         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11886         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11887         from tdep struct instead of DEFAULT_LR_SAVE.
11888         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11889         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11890         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11891
11892 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11893
11894         * Remote.c: Spelling fix.
11895         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11896         If no symbol found for "sbrk", try "_sbrk".
11897         (make_output_phdrs): Use bfd_section_name.
11898         (gcore_copy_callback): Use bfd_section_name.
11899         * eval.c: Indentation fix-ups.
11900         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11901         in case it gets applied to an address that is already
11902         in the instruction space.
11903         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11904         * symfile.c: Fix indentation, long lines.
11905         * source.c: White space fix-up.
11906
11907 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11908
11909         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11910         * frame.c (frame_register_read): New function.  Return non-zero on
11911         success.
11912         (read_relative_register_raw_bytes_for_frame): Delete.
11913         (read_relative_register_raw_bytes): Delete.
11914         * frame.h (frame_register_read): Declare.
11915         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11916         * sh-tdep.c: Ditto.
11917         * infcmd.c (do_registers_info): Ditto.
11918         * hppa-tdep.c: Ditto.
11919         * rs6000-tdep.c: Ditto.
11920         * h8500-tdep.c: Ditto.
11921         * mips-tdep.c: Ditto.
11922         * h8300-tdep.c: Ditto.
11923         * z8k-tdep.c: Ditto.
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): Use rs6000_* methods for
11929         64-bit SysV ABI.
11930
11931 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11932
11933         From Jimi X <jimix@watson.ibm.com>:
11934         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11935         bfd info.
11936
11937 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11938
11939         From Jimi X <jimix@watson.ibm.com>:
11940         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11941         register sets for these processor variants.
11942
11943 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11944
11945         * regformats/reg-ppc.dat: Support FPSCR.
11946
11947 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11948
11949         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11950         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11951         Add fpscr as an invalid/unfetchable register.
11952         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11953         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11954         (fill_fpregset): Add support for register fpscr.
11955         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11956         (fill_gregset): Account for the fact that register ``mq'' might
11957         not exist.
11958         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11959         (registers_power): Add fpscr to register set at slot 71.
11960         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11961         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11962
11963 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11964
11965         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11966         * configure: Regenerate.
11967         * config.in: Regenerate.
11968         * acconfig.h: Add define for _SYSCALL32.
11969         * core-sol2.c: Remove #define _SYSCALL32.
11970         * solib-legacy.c: Remove #define _SYSCALL32.
11971
11972 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11973
11974         * stack.c (select_frame): Cleanup internal error message, do not
11975         use %p.
11976
11977 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11978
11979         * stack.c (select_frame): Check that selected_frame and the
11980         specified level are as expected.
11981         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11982         Update copyright.
11983         * frame.h (struct frame_info): Add field `level'.  Update
11984         copyright.
11985         Work-in-progress PR gdb/464.
11986
11987 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11988
11989         * maint.c (maint_print_section_info): Rename print_section_info.
11990         (print_bfd_section_info, print_objfile_section_info): Update.
11991         * inferior.h (struct gdbarch): Add opaque declaration.
11992         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11993         * gdbarch.h: Regenerate.
11994
11995 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11996
11997         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11998         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11999         (kernel_u_size): Added.
12000         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
12001         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
12002
12003 2002-04-04  Jim Ingham  <jingham@apple.com>
12004
12005        * valarith.c (find_size_for_pointer_math): New function, either returns
12006        the size for a pointer's target, returns 1 for void *, or errors for
12007        incomplete types.
12008        (value_add, value_sub): use find_size_for_pointer_math.
12009
12010 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12011
12012         * linux-low.c (linux_look_up_symbols): New hook.
12013         (linux_target_ops): Add linux_look_up_symbols.
12014         * remote-utils.c (decode_address): New function.
12015         (look_up_one_symbol): New function.
12016         * server.c (handle_query): Call target look_up_symbols hook.
12017         * server.h (look_up_one_symbol): Add prototype.
12018         * target.h (struct target_ops): Add look_up_symbols hook.
12019
12020 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
12021
12022         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12023         override FP_REGNUM with frame->fp.  Update copyright.
12024         * parse.c (num_std_regs, std_regs): Delete.
12025         (target_map_name_to_register): Do not search std_regs.  Update
12026         function description.
12027         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12028         declarations.  Update copyright.
12029         Fix PR gdb/251.
12030
12031 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12032
12033         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12034         after the last symbol in a block.
12035
12036 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
12037
12038         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12039         is non zero as a found symbol.
12040
12041 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12042
12043         * findvar.c: Include "builtin-regs.h".
12044         (value_of_register): Call value_of_builtin_reg when applicable.
12045         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12046         (target_map_name_to_register): Call
12047         builtin_reg_map_name_to_regnum.
12048         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12049         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12050         (builtin_regs_h): Define.
12051         (builtin-regs.o): New target.
12052         (findvar.o): Add $(builtin_regs_h).
12053         * builtin-regs.c, builtin-regs.h: New files.
12054         * std-regs.c: New file.
12055         Partial fix for PR gdb/251.
12056
12057 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12058
12059         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12060         it's no longer required.
12061
12062 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12063
12064         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12065
12066 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12067
12068         From Jimi X <jimix@watson.ibm.com>:
12069         * rs6000-tdep.c (rs6000_software_single_step): Use
12070         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12071         and size.  Use target_insert_breakpoint() and
12072         target_remove_breakpoint() to insert and remove breakpoints
12073         instead of explicit memory reads and writes.
12074
12075 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12076
12077         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12078         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12079         ELF_OBJECT_FORMAT ifdef.
12080
12081 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12082
12083         From Jimi X <jimix@watson.ibm.com>:
12084         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12085
12086 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12087
12088         From Jimi X <jimix@watson.ibm.com>:
12089         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12090         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12091
12092 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12093
12094         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12095         s/asprintf/xasprintf/.
12096         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12097
12098 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12099
12100         I believe Jeff Law denies responsability for this one:
12101         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12102         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12103         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12104         Work-around for PR gdb/366.
12105
12106 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12107
12108         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12109         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12110         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12111
12112 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12113
12114         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12115         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12116         information.
12117
12118 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12119
12120         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12121         maintainer.
12122
12123 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12124
12125         * README (Reporting Bugs in GDB): Document the bug web page as the
12126         prefered way of submitting bugs.
12127         Fix PR gdb/402.
12128
12129 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12130
12131         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12132         -1.  Update comment.
12133         * gdbarch.h, gdbarch.c: Re-generate.
12134
12135 2002-04-07  Andreas Schwab  <schwab@suse.de>
12136
12137         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12138         buffer to regcache_collect.
12139
12140 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12141
12142         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12143         * gdbarch.c, gdbarch.h: Re-generate.
12144
12145 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12146
12147         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12148         declaration.  Fix -Werror.
12149
12150 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12151
12152         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12153         * gdbarch.c: Regenerate.
12154
12155 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12156
12157         * breakpoint.c (clear_command): Rewrite middle section to
12158         combine two loops with identical control conditions.
12159         Add a cleanup to eliminate a memory leak.
12160         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12161
12162 2002-04-05  H.J. Lu  (hjl@gnu.org)
12163
12164         * solib-svr4.c (bkpt_names): Add "__start".
12165
12166 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12167
12168         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12169         as test for 64 bit target.
12170
12171 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12172
12173         * h8500-tdep.c (h8500_write_fp): Delete function.
12174         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12175         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12176         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12177         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12178         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12179         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12180         (s390_write_fp):
12181         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12182         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12183         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12184         (d10v_write_fp): Delete function.
12185         * inferior.h (write_fp, generic_target_write_fp): Delete
12186         declarations.
12187         * regcache.c (generic_target_write_fp): Delete function.
12188         (write_fp): Delete function.
12189         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12190         * gdbarch.h, gdbarch.c: Regenerate.
12191         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12192         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12193         (sparc64_write_fp): Delete declaration.
12194         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12195         (h8500_write_fp): Delete declaration.
12196
12197 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12198
12199         * sparc-tdep.c (sparc64_write_fp): Delete.
12200         (sparc_push_dummy_frame): Replace write_fp call with code to store
12201         the FP directly.
12202         (sparc_gdbarch_init): Do not initialize write_fp.
12203
12204 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12205
12206         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12207         clause.
12208
12209 2002-03-29  Jim Blandy  <jimb@redhat.com>
12210
12211         * stack.c (get_selected_block): Add new argument `addr_in_block',
12212         used to return the exact code address we used to select the block,
12213         not just the block.
12214         * blockframe.c (get_frame_block, get_current_block): Same.
12215         * frame.h (get_frame_block, get_current_block,
12216         get_selected_block): Update declarations.
12217         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12218         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12219
12220 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12221
12222         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12223         warning message.
12224
12225 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12226
12227         * utils.c (xfullpath): New function.
12228         * defs.h (xfullpath): Add declaration.
12229         * source.c (openp): Use xfullpath in place of gdb_realpath to
12230         avoid resolving the basename part of filenames when the
12231         associated file is a symbolic link. This fixes a potential
12232         inconsistency between the filenames known to GDB and the
12233         filenames it prints in the annotations.
12234         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12235         to be able to match a filename with either the real filename, or
12236         the name of any symbolic link to this file.
12237         (lookup_partial_symtab): Ditto.
12238
12239 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12240
12241         * breakpoint.c: Add support for hardware breakpoints in overlays.
12242         (overlay_events_enabled): New state variable.
12243         (insert_breakpoints): Use overlay_events_enabled to decide
12244         whether to attempt to set a breakpoint at the overlay load addr.
12245         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12246         (remove_breakpoint): Use overlay_events_enabled to decide
12247         whether breakpoints need to be removed from overlay load addr.
12248         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12249         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12250         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12251         disable_overlay_breakpoints): Update overlay_events_enabled.
12252
12253 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12254
12255         * dwarf2read.c (struct function_range): New.
12256         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12257         (check_cu_functions): New.
12258         (read_file_scope): Initialize global function lists.
12259         Call dwarf_decode_line after processing children.
12260         (read_func_scope): Add to global function list.
12261         (dwarf_decode_lines): Call check_cu_functions everywhere
12262         record_line is called.  Call record_line with a linenumber
12263         of 0 to mark sequence ends.
12264
12265 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12266
12267         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12268         change sync with glibc.
12269
12270 2002-04-03  Jim Blandy  <jimb@redhat.com>
12271
12272         * configure.in: Call AC_C_INLINE.
12273         * configure: Regenerated.
12274
12275 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12276
12277         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12278         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12279
12280 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12281
12282         * NEWS: Mention gcore support on FreeBSD/i386.
12283
12284         * fbsd-proc.c: New file.
12285         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12286         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12287
12288         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12289         while statement.
12290
12291 2002-03-29  Jim Blandy  <jimb@redhat.com>
12292
12293         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12294         unescaped newlines in string literals, but newer ones don't.  So
12295         escape them.
12296
12297 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12298             Andrew Cagney <cagney@redhat.com>
12299
12300         * cli/cli-dump.c: New file.  Dump memory to file,
12301         restore file to memory.
12302         * cli/cli-dump.h: New file.
12303         * Makefile.in: Add rules, dependencies for cli-dump.o.
12304         * NEWS: Mention new commands.
12305
12306 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12307
12308         * symfile.c (symbol_file_add): Move test for null symbols to later.
12309
12310 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12311
12312         From veksler at il.ibm.com:
12313         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12314         the xstrduped original path.
12315         Fix PR gdb/417.
12316
12317 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12318
12319         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12320         * infcmd.c (_initialize_infcmd): Ditto.
12321         * language.c (_initialize_language): Ditto.
12322         * symfile.c (_initialize_symfile): Ditto.
12323         * top.c (_init_main): Ditto.
12324         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12325
12326 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12327
12328         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12329         vector registers handling.
12330         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12331         fields of frame data.
12332         (frame_get_saved_regs): Fill in information for AltiVec registers.
12333
12334 2002-03-27  Jim Blandy  <jimb@redhat.com>
12335
12336         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12337         a function; leave this macro here to invoke that function.
12338         (symbol_init_mangled_name): Declaration for that function.
12339         * symtab.c (symbol_init_mangled_name): New function.
12340
12341 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12342
12343         * valarith.c: Replace strerror with safe_strerror.
12344         * tracepoint.c: Ditto.
12345         * lin-lwp.c: Ditto.
12346         * go32-nat.c: Ditto.
12347         * inflow.c: Ditto.
12348         * gnu-nat.c: Ditto.
12349
12350 2002-03-27  Andreas Schwab  <schwab@suse.de>
12351
12352         * event-top.c (command_line_handler): Remove useless if.
12353
12354 2002-03-27  Andreas Jaeger  <aj@suse.de>
12355
12356         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12357         comment.
12358
12359 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12360
12361         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12362         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12363         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12364         (x86_64_linux_dr_get_status, supply_gregset),
12365         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12366         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12367         (x86_64_register_info_table): Add.
12368         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12369         (x86_64_register_raw_size, x86_64_register_virtual_type),
12370         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12371         general x86_64_register_info_table.
12372         (i386_gdbarch_init): gdbarch_register_bytes is now set
12373         dynamicaly during initialization.
12374         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12375         * gdbserver/linux-x86-64-low.c: Ditto.
12376
12377 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12378
12379         * gdbserver/server.c (main): Call target_signal_to_host_p
12380         and target_signal_to_host on signals received from the remote.
12381         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12382         target_signal_from_host on signals sent to the remote.
12383         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12384         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12385
12386 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12387
12388         * signals/signals.c: Include "server.h" in gdbserver build.
12389         (target_signal_from_name): Don't use STREQ.
12390         (_initialize_signals): Likewise.  Don't include function in
12391         gdbserver build.
12392
12393 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12394
12395         * signals.c: Moved to...
12396         * signals/signals.c: Here.
12397         * Makefile (signals.o): Update.
12398
12399 2002-03-26  Jeff Law (law@redhat.com)
12400
12401         * somread.c (som_symtab_read): Remove some commented out code and
12402         updated related comments.  Do not set the minimal symbol table to
12403         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12404         in a dynamic executable.
12405         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12406         where we are unable to find the minimal symbol for the given
12407         PC value.
12408
12409 2002-03-25  Jeff Law (law@redhat.com)
12410
12411         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12412
12413 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12414
12415         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12416
12417 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12418
12419         * command.h: Update copyright.
12420         (struct cmd_list_element): Replace definition with opaque
12421         declaration.
12422         (enum cmd_types): Document that it will eventually be moved to
12423         cli/cli-decode.h
12424         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12425         (MALLOCED_REPLACEMENT): Delete macro.
12426         * Makefile.in (cli_decode_h): Add $(command_h).
12427         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12428         * top.c: Include "cli/cli-decode.h".
12429         * completer.c: Include "cli/cli-decode.h".
12430         * maint.c: Include "cli/cli-decode.h".
12431         * cli/cli-decode.h: Include "command.h".
12432         (enum command_class): Delete.
12433         (enum cmd_types): Comment out.
12434         (enum cmd_auto_boolean): Delete.
12435         (enum var_types): Delete.
12436
12437 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12438
12439         * cli/cli-decode.c: Include "gdb_assert.h".
12440         (add_set_or_show_cmd): New static function.
12441         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12442         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12443         all fields, such as func, from the set command.
12444
12445 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12446
12447         * MAINTAINERS (sh-elf): Change warning flag to -w.
12448
12449 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12450
12451         * defs.h (error): Add printf format attribute.
12452         * thread-db.c (thread_from_lwp): Fix error format string.
12453         * stack.c (parse_frame_specification): Ditto.
12454         * cli/cli-decode.c (undef_cmd_error): Ditto.
12455         * scm-lang.c (scm_lookup_name): Ditto.
12456         * tracepoint.c (trace_error): Ditto.
12457         * remote-utils.c (usage): Ditto.
12458         * remote.c (compare_sections_command): Ditto.
12459         Fix PR gdb/328.
12460
12461 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12462
12463         * gdbtypes.c (append_composite_type_field): New function.
12464         (init_composite_type): New function.
12465         * gdbtypes.h (append_composite_type_field): Declare.
12466         (init_composite_type): Ditto.
12467
12468 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12469
12470         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12471         function.
12472         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12473         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12474         structure returning convention for SYSV ABI case, but not
12475         for GNU/Linux, FreeBSD, or NetBSD.
12476
12477 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12478
12479         * symtab.h (lookup_block_symbol): Add mangled_name argument
12480         to prototype.
12481
12482         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12483         with new mangled_name argument.
12484         * linespec.c (decode_line_1): Likewise.
12485         * valops (value_of_this): Likewise.
12486         * symtab.c (lookup_transparent_type): Likewise.
12487         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12488         (lookup_symbol): If we are given a mangled name, pass it down
12489         to lookup_symbol_aux.
12490         (lookup_block_symbol): If we are given a mangled name to check
12491         against, only return symbols which match it.
12492
12493 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12494
12495         * win32-nat.c (child_create_inferior): Check for proper shell to use
12496         here, in case the user changes it on the fly.
12497         (_initialize_inftarg): Remove shell path considerations.
12498
12499 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12500
12501         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12502         for gdbarch_max_register_raw_size and max_register_virtual_size.
12503         Adjust copyright year.
12504
12505 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12506
12507          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12508          in a function to cover the entire beginning of the function
12509          as well if it does not already.
12510
12511 2002-03-21  Tom Rix  <trix@redhat.com>
12512
12513         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12514         (rs6000_ptrace64): Renamed from ptrace64.
12515
12516 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12517
12518         * gdbserver/remote-utils.c (remote_open): Don't call
12519         getprotobyname, we're all using TCP here so just use
12520         IPPROTO_TCP.
12521         * gdbserver/gdbreplay.c (remote_open): Ditto.
12522
12523 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12524
12525         * regcache.c (_initialize_regcache): No need to call
12526         build_regcache() at this time; it gets called whenever
12527         the gdbarch changes.
12528
12529 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12530
12531         * sparc-nat.c:  Include sys/param.h where possible.
12532
12533 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12534
12535         Fix PR gdb/422.
12536         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12537         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12538         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12539         complex types.
12540         * stabsread.c (rs6000_builtin_type): Likewise.
12541         (read_sun_floating_type): Likewise.
12542
12543 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12544
12545         * stabsread.c (read_member_functions): Remove skip code for duplicate
12546         constructor/destructor methods.  Use standard parsing for these
12547         methods and just do not chain them to the list of methods after
12548         parsing.
12549
12550 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12551
12552         * coffread.c: Remove redundant static declarations.  Replace
12553         occurrences of `PTR' with `void *'.
12554         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12555         * top.h (quit_cover): Likewise.
12556         * defs.h (catch_errors): Likewise.
12557
12558 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12559
12560         * defs.h (XMALLOC): Define.
12561         * gdb-events.sh (XMALLOC): Delete macro.
12562         * gdb-events.c, gdb-events.h: Regenerate.
12563         * gdbarch.sh (XMALLOC): Delete macro.
12564         * gdbarch.c: Regenerate.
12565         * serial.c (XMALLOC): Delete macro.
12566         * ui-file.c (XMALLOC): Ditto.
12567         * ser-unix.h (XMALLOC): Ditto.
12568         * sh-tdep.c (XMALLOC): Ditto.
12569         * ui-out.c (XMALLOC): Ditto.
12570         * utils.c (XMALLOC): Ditto.
12571         * i386-tdep.c (XMALLOC): Ditto.
12572         * gdb-events.c (XMALLOC): Ditto.
12573         * d10v-tdep.c (XMALLOC): Ditto.
12574         * cli-out.c (XMALLOC): Ditto.
12575
12576         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12577         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12578         * ui-file.c, ui-out.c: Ditto.
12579
12580 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12581
12582         * command.h (struct cmd_list_element): Add field context.
12583         (set_cmd_context, get_cmd_context): Declare.
12584         * cli/cli-decode.h: Ditto.
12585         * cli/cli-decode.c (get_cmd_context): New function.
12586         (set_cmd_context): New function.
12587         (add_cmd): Initialize context.
12588         Part of fixing PR gdb/145 and PR gdb/146.
12589
12590 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12591
12592         * cli/cli-decode.c (cmd_type): New function.
12593         * command.h (cmd_type): Declare.
12594         * infrun.c (set_schedlock_func): Call function cmd_type.
12595         * kod.c (kod_set_os): Call cmd_type.
12596         * cris-tdep.c (cris_version_update): Use function cmd_type.
12597         (cris_mode_update, cris_abi_update): Ditto.
12598
12599         * command.h: (execute_cmd_post_hook): Declare.
12600         (execute_cmd_pre_hook): Declare.
12601         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12602         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12603         functions. Execute pre/post hook while ensuring that afterwords
12604         hook_in is cleared.
12605         * top.c (execute_command): Use execute_cmd_post_hook, and
12606         execute_cmd_pre_hook to execute pre/post commands.
12607         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12608         hook_stop_stub.
12609         (hook_stop_stub): Call execute_cmd_pre_hook.
12610
12611 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12612
12613         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12614         set'' and this leads to a core dump.  Move xstrdup of
12615         operating_system to after check that it is not NULL.
12616
12617 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12618
12619         * kod.c (kod_set_os): Remove unnecessary check that
12620         ``command->type'' is set_cmd.
12621
12622         * valprint.c (set_input_radix): Use input_radix.
12623         (set_output_radix): Use output_radix.
12624         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12625         isn't reverted.
12626
12627 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12628
12629         * value.h (struct value): Delete field ``substring_addr''.  Change
12630         aligner fields to force_doublest_align, force_longest_align,
12631         force_core_addr_align and force_pointer_aligh.
12632
12633         * value.h (struct value): Fix typo in above change.
12634
12635 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12636
12637         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12638         to fix internal_error from ``maintenance print architecture''.
12639
12640 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12641
12642         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12643         for gcc versions after gcc-2.8.1.
12644
12645 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12646
12647         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12648         for method resolution.  Restore adjustment of ``this'' pointer after
12649         calling value_struct_elt, which was accidentally removed during the
12650         HP merge.
12651
12652 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12653
12654         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12655         value_of_register.
12656         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12657         get_saved_register.
12658         * value.h (value_of_register): Update.
12659
12660 2002-03-14  Richard Henderson  <rth@redhat.com>
12661
12662         * configure.in: Detect declaration for canonicalize_file_name.
12663         * utils.c (canonicalize_file_name): Declare, if needed.
12664         (gdb_realpath): Prefer realpath if available and usable.
12665         * config.in, configure: Rebuild.
12666
12667 2002-03-14  Richard Henderson  <rth@redhat.com>
12668
12669         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12670         a constant array bound.
12671
12672         * MAINTAINERS: Add myself to write-after-approval.
12673
12674 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12675
12676         * symfile.c (syms_from_objfile): Return immediately if no syms.
12677         (symbol_file_add): Return immediately if no syms.
12678         (find_sym_fns): Return immediately if no syms.
12679
12680 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12681
12682         * gdbserver/remote-util.c (remote_open): Print remote-side's
12683         IP address when remote debugging over the network.
12684
12685 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12686
12687         * config/sparc/fbsd.mh: Fix copyright.
12688         * config/sparc/fbsd.mt: Likewise.
12689
12690 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12691
12692         * MAINTAINERS: Fix typo in name of gdb warnings option.
12693         (x86-64): Fix formating so that this can be parsed by awk.
12694
12695 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12696
12697         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12698         * defs.h: Include "gdb/signals.h".
12699         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12700
12701 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12702
12703         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12704         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12705         from x86-64-tdep.h
12706
12707 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12708             Don Howard <dhoward@redhat.com>
12709
12710         * mips-tdep.c (ST0_FR): Define.
12711         (mips2_fp_compat): New function, temporarily disabled.
12712         (mips_read_fp_register_single): New function.
12713         (mips_read_fp_register_double): New function.
12714         (mips_print_register): Use them.
12715         (do_fp_register_row): Likewise.
12716
12717 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12718
12719         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12720         approval''.
12721
12722 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12723
12724         * stabsread.c (read_member_functions): Fix is_stub test for
12725         static member functions, improve comment.
12726
12727 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12728
12729         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12730         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12731         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12732         commands that set boolean values.
12733         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12734         (arm_rdi_resume): Always initialize PC.
12735         (arm_rdi_open): Don't use rslt as a boolean.
12736         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12737         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12738         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12739         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12740
12741 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12742
12743         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12744         * configure: Rebuilt.
12745
12746 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12747
12748         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12749         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12750
12751 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12752
12753         * cli/cli-decode.c (set_cmd_completer): New function.
12754         * command.h (set_cmd_completer): Declare.
12755         * cli/cli-decode.h (set_cmd_completer): Ditto.
12756
12757         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12758         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12759         * win32-nat.c (_initialize_inftarg): Ditto.
12760         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12761         * proc-api.c (_initialize_proc_api): Ditto.
12762         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12763         * source.c (_initialize_source): Ditto.
12764         * exec.c (_initialize_exec): Ditto.
12765         * solib.c (_initialize_solib): Ditto.
12766         * top.c (init_main): Ditto.
12767         * tracepoint.c (_initialize_tracepoint): Ditto.
12768         * symfile.c (_initialize_symfile): Ditto.
12769         * printcmd.c (_initialize_printcmd): Ditto.
12770         * infcmd.c (_initialize_infcmd): Ditto.
12771         * corefile.c (_initialize_core): Ditto.
12772
12773 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12774
12775         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12776
12777 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12778
12779         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12780
12781 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12782
12783         * NEWS: Update headings, 5.2 has branched.
12784
12785 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12786
12787         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12788         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12789         (register_addr, REGISTER_RAW_SIZE): Likewise.
12790         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12791         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12792
12793 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12794
12795         * MAINTAINERS (x86-64): Add myself.
12796         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12797         changed value_ptr -> struct value *
12798
12799 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12800
12801         * configure.host (sparc64-*-freebsd): Add.
12802         * configure.tgt: Likewise.
12803         * config/sparc/fbsd.mh: New file.
12804         * config/sparc/fbsd.mt: Likewise.
12805         * config/sparc/nm-fbsd.h: Likewise.
12806         * config/sparc/tm-fbsd.h: Likewise.
12807
12808 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12809
12810         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12811         regformats/reg-s390x.dat.
12812
12813 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12814
12815         * utils.c: Add FIXME explaining true/false problem.
12816
12817 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12818
12819         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12820
12821 2002-02-28  Michael Chastain  <mec@shout.net>
12822
12823         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12824
12825 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12826
12827         * gdbserver/linux-s390-low.c: New file.
12828         * regformats/reg-s390.dat: New file.
12829         * regformats/reg-s390x.dat: New file.
12830         * gdbserver/configure.srv: Add S/390.
12831         * gdbserver/Makefile.in: Add S/390.
12832         * configure.tgt: Enable gdbserver for S/390.
12833
12834 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12835
12836         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12837         first line of the doc string for "info dos", except at the end of
12838         the sentence, since the short help stops at the first period.
12839
12840 2002-02-28  Jason Merrill  <jason@redhat.com>
12841
12842         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12843
12844 2002-02-27  Fred Fish  <fnf@redhat.com>
12845
12846         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12847         comment (dumy -> dummy).
12848
12849 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12850
12851         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12852
12853 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12854
12855       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12856
12857 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12858
12859         * gdbserver/acconfig.h: New file.
12860         * gdbserver/i387-fp.c: New file.
12861         * gdbserver/i387-fp.h: New file.
12862         * gdbserver/linux-x86-64.c: New file.
12863         * regformats/reg-x86-64.dat: New file.
12864         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12865         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12866         * gdbserver/configure.in: Add support for regsets.
12867         * gdbserver/config.in: Regenerate.
12868         * gdbserver/configure: Regenerate.
12869         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12870         * gdbserver/linux-low.h: New file.
12871         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12872         for regsets.
12873         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12874         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12875         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12876         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12877         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12878         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12879         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12880         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12881         * gdbserver/regcache.c (supply_register): New function.
12882         (supply_register_by_name): New function.
12883         (collect_register): New function.
12884         (collect_register_by_name): New function.
12885
12886 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12887
12888         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12889         (config.status): Add configure.srv dependency.
12890         (server_h): Add config.h dependency.
12891
12892 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12893
12894         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12895         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12896         * gdbserver/configure.srv: Change i386-*-linux* to use
12897         reg-i386-linux.o.
12898
12899 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12900
12901         * x86-64-tdep.c: Re-indent.  Update copyright date.
12902
12903 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12904
12905         From Michal Ludvig <mludvig@suse.cz>:
12906         * x86-64-tdep.c (value.h): Delete.
12907         (gdb_assert.h): Include.
12908         (x86_64_register_convert_to_virtual,
12909         x86_64_register_convert_to_raw ): Add check which lets only
12910         floating-point values to be converted.
12911         (value_push): Delete.
12912         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12913         (i386_gdbarch_init): Number of register_bytes fixed.
12914
12915 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12916
12917         * MAINTAINERS: Add x86-64 target.
12918
12919 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12920
12921         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12922         * osfsolib.c (solib_map_sections): Ditto.
12923         * irix5-nat.c (solib_map_sections): Ditto.
12924         * corelow.c (gdb_check_format): Ditto.
12925         * symfile.c (symfile_bfd_open): Ditto.
12926         * solib.c (solib_map_sections): Ditto.
12927         Fix PR gdb/354.
12928
12929 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12930
12931         * remote.c (_initialize_remote): By default, disable ``e'' and
12932         ``E'' step out-of-range packets.
12933
12934 2002-02-26  Andreas Schwab  <schwab@suse.de>
12935
12936         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12937         m68k_linux_frame_saved_pc.
12938         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12939         in_sigtramp.
12940         (SIGCONTEXT_PC_OFFSET): Remove.
12941         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12942         m68k_linux_sigtramp_saved_pc): New functions.
12943         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12944         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12945         (UCONTEXT_PC_OFFSET): Define.
12946         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12947         non-RT and RT signal trampolines.
12948
12949 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12950
12951         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12952         (TARGET_NBPG, STACK_END_ADDR): Delete
12953         (VARIABLES_INSIDE_BLOCK): Delete.
12954
12955 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12956
12957         * utils.c (perror_with_name): Make string parameter constant.
12958         (print_sys_errmsg): Ditto.
12959         (query): Ditto.
12960         * defs.h (perror_with_name): Update.
12961         (print_sys_errmsg): Update.
12962         (query): Update.
12963
12964 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12965
12966         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12967         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12968
12969 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12970
12971         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12972         if it already matches the current architecture from the exec file.
12973         Include arch-utils.h for gdbarch_info_init prototype.
12974         * Makefile.in (rs6000-nat.o): Update dependencies.
12975
12976 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12977
12978         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12979          list of exported variables.
12980
12981 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12982
12983         * gdbserver/configure.srv: New file.
12984         * gdbserver/configure.in: Use configure.srv instead
12985         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12986         from it.
12987         * gdbserver/configure: Regenerated.
12988         * gdbserver/terminal.h: New file.
12989         * gdbserver/Makefile.in: Update for configure changes.  Remove
12990         more unneeded include paths.
12991
12992 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12993
12994         From wiz at danbala:
12995         * config/sparc/tm-sp64.h: Fix grammar and typos.
12996         Fix PR gdb/287.
12997
12998 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12999
13000         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
13001         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
13002         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
13003         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
13004         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
13005         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13006         * s390-tdep.c: Ditto.
13007         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13008         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13009         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13010         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13011         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13012         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13013         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13014         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13015         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13016         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13017         Fix PR gdb/378.
13018
13019 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13020
13021         * lin-thread.c: Delete file.
13022         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13023         to gdb_proc_service.h.
13024         * configure: Re-generate.
13025
13026         * ocd.c (ocd_open): Do not try to open the "ocd" device.
13027         * serial.c (serial_open): Delete check for "ocd".
13028         Fix PR gdb/349.
13029
13030         * Makefile.in (linux-thread.o): Delete target.
13031         * linux-thread.c: Delete file.
13032
13033         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
13034         renamed SH files to be consistent.
13035
13036         * symtab.c (sort_search_symbols): Use xfree.
13037
13038 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13039
13040         * arm-linux-tdep.c (arm_linux_init_abi): Register
13041         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13042         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13043         definition with undef, since we don't want the sysvr4 definition.
13044         (SKIP_TRAMPOLINE_CODE): Likewise.
13045
13046 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13047
13048         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13049
13050         * configure.in: (AC_CHECK_FUNCS) Added test for
13051         canonicalize_file_name Regenerated.
13052         * config.in, configure: Regenerated.
13053         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13054         defined use canonicalize_file_name.
13055
13056 2002-02-23  Michael Chastain  <mec@shout.net>
13057
13058         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13059
13060 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13061
13062         * README: Remove references to cygnus.com.
13063         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13064         dot com'' form.  Remove references to cygnus.com and sourceware.
13065
13066 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13067
13068         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13069         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13070         1003.1-2001 no longer allows "head -1".
13071         * gdb/Makefile.in (version.c): Likewise.
13072         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13073         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13074         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13075
13076 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13077
13078         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13079         * command.h (cmd_cfunc_eq): Declare.
13080         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13081
13082         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13083         ``struct cmd_list_element *''.
13084         * cli/cli-cmds.c (is_complete_command): Update.  Use
13085         cmd_cfunc_eq.
13086         * top.c (execute_command): Pass the command to
13087         is_complete_command.
13088         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13089
13090 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13091
13092         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13093         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13094         architecture defines.
13095         * s390-tdep.c (s390_gdbarch_init): Likewise.
13096
13097 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13098
13099         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13100         (arm_linux_push_arguments): Likewise.
13101         (arm_linux_init_abi): Register them.  Also register linux-specific
13102         call_dummy_words.
13103         (find_minsym_and_objfile): Use strcmp, not STREQ.
13104         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13105         (arm_linux_call_dummy_words): Delete declaration.
13106         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13107         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13108         declarations.
13109         (LOWEST_PC): Delete.
13110
13111 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13112
13113         * maint.c (print_section_info): Do not prepend `0x' to filepos
13114         output, it will be handled by local_hex_string_custom.
13115
13116 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13117
13118         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13119         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13120         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13121
13122 2002-02-22  Jim Blandy  <jimb@redhat.com>
13123
13124         Indicate that the bcache functions don't change the strings
13125         they're passed.
13126         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13127         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13128
13129 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13130
13131         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13132
13133 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13134
13135         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13136         find the complete path to a loaded DLL.
13137
13138 2002-02-21  Fred Fish  <fnf@redhat.com>
13139
13140         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13141         that marks the end of the range of a function, enter a line number
13142         entry that has a line number of zero and a PC offset that matches
13143         the end of the function.  This starts a range of PC's for which no
13144         line number information is known.
13145         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13146         PC's for which no line number info is found (line number is zero)
13147         then we didn't find any valid line information.
13148         * symtab.h: Document use of zero line number entry.
13149
13150 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13151
13152         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13153         (have_ptrace_getvrregs): Define for run time checks.
13154         (gdb_vrregset_t): New type for Altivec register handling.
13155         (fetch_register, store_register): Fetch/store altivec register
13156         when needed.
13157         (fetch_altivec_register, store_altivec_register): New functions.
13158         (supply_vrregset, fill_vrregset): New functions.
13159         (fetch_altivec_registers, store_altivec_registers): New functions.
13160         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13161         registers as well.
13162
13163 2002-02-21  Jiri Smid  <smid@suse.cz>
13164
13165         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13166
13167 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13168
13169         * Makefile.in (armnbsd-nat.o): Update dependencies.
13170         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13171         supply the integer register set.
13172         (supply_fparegset): New function.  Similar for FPA registers.
13173         (fetch_regs, fetch_fp_regs): Use them.
13174         (fetch_core_registers): Likewise.
13175         (fetch_elfcore_registers): New function.
13176         (arm_netbsd_elfcore_fns): New core-file type specification.
13177         (_initialize_arm_netbsd_nat): Register it.
13178
13179 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13180
13181         * armnbsd-nat.c: Include gdbcore.h.
13182         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13183         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13184         'void' to declaration, to shut up ARI.
13185         (fetch_core_registers): Make static.  Rewrite using supply_register.
13186         (arm_netbsd_core_fns): New core-file type specification.
13187         (_initialize_arm_netbsd_nat): New function.
13188
13189 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13190
13191         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13192         value.
13193
13194 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13195
13196         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13197         fails.
13198
13199 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13200
13201         * jv-exp.y (parse_number): Change type of implicit longs
13202         to builtin_type_uint64.
13203
13204 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13205
13206         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13207         to be an integer instead of a `union wait'.
13208
13209 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13210
13211         * mips-linux-nat.c: Call the operating system GNU/Linux.
13212         * mips-linux-tdep.c: Likewise.
13213         * mips-tdep.c: Likewise.
13214
13215 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13216
13217         Fix PR gdb/265.
13218         * jv-exp.y (parse_number): Handle 64-bit integers.
13219
13220 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13221
13222         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13223         AC_STDC_HEADERS to AC_HEADER_STDC.
13224         * gdbserver/configure: Regenerated.
13225
13226 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13227
13228         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13229         is defined.
13230         * sparc-tdep.c (get_longjmp_target): Likewise.
13231
13232 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13233
13234         * News: Add news about ARM and Multi-arch.  Mention the new target
13235         arm*-*-netbsd*.
13236
13237 2002-02-19  Jim Blandy  <jimb@redhat.com>
13238
13239         * stabsread.c (error_type_complaint): Improve error message.
13240
13241 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13242
13243         * gdbserver/README: Update documentation.
13244         * gdbserver/configure.in: Update configury to match documentation.
13245         * gdbserver/Makefile.in: Likewise.
13246         * gdbserver/configure: Regenerated.
13247         * gdbserver/aclocal.m4: New file, generated by aclocal.
13248         * gdbserver/config.in: New file, generated by autoheader.
13249
13250 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13251
13252         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13253         armnbsd-nat.c.
13254
13255 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13256
13257         * arm-tdep.h (enum arm_float_model): New enum.
13258         (struct gdbarch_tdep): Add fp_model.
13259         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13260         up floating-point conversions until we know the floating-point model
13261         in use by the inferior.  Don't complain about being unable to
13262         determine the ABI of the inferior when we don't have one.
13263         (arm_extract_return_value): Support different floating-point models.
13264         (arm_store_return_value): Likewise.
13265         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13266         ARM_FLOAT_SOFT.
13267         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13268
13269 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13270
13271         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13272         of ``current_gdbarch''.
13273
13274 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13275
13276         * armnbsd-nat.c : ANSIfy all function declarations.
13277         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13278         (fetch_inferior_registers): Re-implement in terms of above.
13279         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13280         (store_inferior_registers): Re-implement in terms of above.
13281
13282 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13283
13284         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13285         kernel.
13286         * arm-linux-tdep.c: Likewise.
13287         * config/arm/tm-linux.h: Likewise.
13288
13289 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13290
13291         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13292         * config/arm/nbsd.mt (TM_FILE): Delete.
13293         * config/arm/tm-nbsd.h: Delete.
13294
13295 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13296
13297         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13298         Initialize CALL_DUMMY_LENGTH.
13299
13300 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13301
13302         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13303         function.
13304         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13305         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13306         defines one thing and that is incorrect for this port.
13307         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13308
13309 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13310
13311         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13312
13313 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13314
13315         * win32-nat.c (display_selector): New function. Displays information
13316         about the information returned by GetThreadSelectorEntry API function.
13317         (display_selectors): New function. Displays the infomation of
13318         the selector given as argument, or of CS, DS ans FS selectors
13319         if no argument is given.
13320         ( _initialize_inftarg): Add "w32" as info prefix command.
13321         Add "info w32 selector" as command calling display_selectors.
13322
13323 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13324
13325         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13326         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13327         if not defined.
13328
13329 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13330
13331         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13332
13333 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13334
13335         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13336         (arm_fix_call_dummy): Call it.
13337         (arm_call_dummy_breakpoint_offset): Delete.
13338         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13339         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13340
13341 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13342
13343         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13344         Default to func_frame_chain_valid.
13345         * gdbarch.h, gdbarch.c: Re-generate.
13346         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13347
13348 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13349
13350         * ppc-linux-nat.c: Update copyright.
13351         (fetch_register, store_register): Add tid parameter, don't compute
13352         tid here.
13353         (fetch_ppc_registers, store_ppc_registers): Add tid
13354         parameter. Pass it along to callees.
13355         (fetch_inferior_registers, store_inferior_registers): Compute tid
13356         here, and pass it to calleed functions.
13357         (fill_gregset, supply_fpregset): Clean up formatting.
13358
13359 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13360
13361         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13362         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13363
13364 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13365
13366         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13367         * gdbarch.c gdbarch.h: Regenerate.
13368         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13369         function.
13370         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13371         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13372         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13373
13374         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13375         * arm-tdep.c (arm_get_longjmp_target): New function.
13376         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13377         this to a positive value register arm_get_longjmp_target as the
13378         longjmp handler.
13379         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13380         (arm_linux_init_abi): Set up longjmp description in tdep.
13381         * armnbsd-nat.c (get_longjmp_target): Delete.
13382         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13383         description in tdep.
13384         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13385         (get_longjmp_target): Delete declaration.
13386         (GET_LONGJMP_TARGET): Delete.
13387         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13388         (GET_LONGJMP_TARGET): Delete.
13389
13390 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13391
13392         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13393         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13394         of ``current_gdbarch''.
13395
13396 2002-02-17  Tom Tromey  <tromey@redhat.com>
13397
13398         * cli/cli-cmds.c (compare_strings): New function.
13399         (complete_command): Only print each unique item once.
13400         * completer.h (complete_line): Declare.
13401         * completer.c (complete_line): New function.
13402         (line_completion_function): Use it.
13403
13404 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13405
13406         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13407         * gdbarch.h, gdbarch.c: Re-generate.
13408
13409 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13410
13411         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13412
13413 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13414
13415         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13416         * valops.c (value_arg_coerce): Don't take the address of a reference
13417         to convert an argument to a reference.
13418
13419 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13420
13421         * win32-nat.c (get_image_name): New function.
13422         (handle_load_dll): Use get_image_name function.
13423         (get_child_debug_event): Avoid registering debug events until possibly
13424         execed process is started.
13425         (child_create_inferior): Allow invocation via shell so that command
13426         line redirection, etc.  works ok.
13427         (_initialize_inftarg): Add new command: "set shell" to control whether
13428         a shell is used to start a process.
13429
13430 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13431
13432         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13433         instead of find_register_by_number.
13434         (cannot_store_register): Likewise.
13435
13436 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13437
13438         * dwarf2read.c: Replace fprintf (stderr, ...) by
13439         fprintf_unfiltered (gdb_stderr, ...).
13440
13441 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13442
13443         * gdbserver/gdbserver.1: Document --attach.
13444
13445 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13446
13447         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13448         descriptions.
13449         * arm-tdep.c (arm_default_arm_le_breakpoint)
13450         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13451         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13452         traditional breakpoint defines.
13453         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13454         (arm_gdbarch_init): Initialize new breakpoint variables.
13455         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13456         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13457         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13458         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13459         code out to ...
13460         (arm_netbsd_init_abi_common): ... here; new function.
13461         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13462         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13463         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13464         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13465
13466 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13467
13468         * arm-tdep.h (enum arm_abi): New enum.
13469         (struct gdbarch_tdep): New structure.
13470         (LOWEST_PC): Provide a default.
13471         (arm_gdbarch_register_os_abi): Declare new function.
13472         * arm-tdep.c (arm_abi_names): New array.
13473         (process_note_abi_tag_sections): New function.
13474         (get_elfosabi): New function.
13475         (arm_gdbarch_register_os_abi): New function.
13476         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13477         support for that ABI has been built in, then call the appropriate
13478         configuration routine.  Use gdbarch_num_regs() to get the number
13479         of registers.
13480         (arm_dump_tdep): New function.
13481         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13482         place-holder functions.
13483         (_initialize_arm_tdep): Register them.
13484         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13485
13486         * armnbsd-tdep.c: New file.
13487         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13488         * config/arm/nbsd.mt (TDEPFILES): Add it.
13489         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13490
13491         * armnbsd-nat.c: Include regcache.h.
13492         * Makefile.in (armnbsd-nat.o): Update dependency list.
13493
13494         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13495
13496 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13497
13498         * gdbserver/Makefile.in: Fix typos in target rules.
13499
13500 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13501
13502         Fix part of PR gdb/267.
13503         * linespec.c (find_methods): Handle constructors specially for now.
13504
13505 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13506
13507         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13508         handling.
13509         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13510         standard_coerce_float_to_double().
13511
13512 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13513
13514         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13515         GDBINIT_FILENAME.
13516
13517 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13518
13519         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13520         find_variant_by_name, because it confuses the multiarch
13521         framework. Return NULL if there isn't an architecture with the
13522         user supplied name, instead of forcing a different one without
13523         recording the change with the multiarch machinery.
13524         (find_variant_by_name): Delete.
13525
13526 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13527
13528         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13529         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13530
13531 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13532
13533         * stack.c (print_frame_info_base): When calling
13534         print_frame_info_listing_hook, set current_source_symtab.
13535
13536 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13537
13538         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13539         and remove unused $(INCLUDE_DIR).
13540         Add regcache.c to OBS.
13541         Add generated register protocol files to clean target.
13542         Update dependencies for new objects, obsolete old target code.
13543
13544         * gdbserver/linux-low.c: Remove all platform-specific code to
13545         new files.  Remove various dead code.  Update to use regcache
13546         functionality.
13547         * gdbserver/remote-utils.c (fromhex): Add return statement
13548         to quiet warning.
13549         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13550         constant.
13551         (input_interrupt): Add integer parameter to match prototype
13552         of a signal handler.
13553         (outreg): Use register_data ().
13554         (prepare_resume_reply): Use gdbserver_expedite_regs.
13555         * gdbserver/server.c (main): Dynamically allocate own_buf because
13556         PBUFSIZ is no longer constant.  Use registers_to_string () and
13557         registers_from_string ().
13558         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13559         for error (), fatal (), and warning ().  Update definition of
13560         PBUFSIZ to use regcache functionality.  Add include guard.
13561         * gdbserver/utils.c (fatal): Add missing ``const''.
13562         (warning): New function.
13563
13564         * regformats/regdat.sh: Include "regcache.h" in generated files.
13565         Provide init_registers () function.
13566         * regformats/regdef.h: Add prototype for set_register_cache ().
13567         Add include guard.
13568
13569         * gdbserver/linux-arm-low.c: New file.
13570         * gdbserver/linux-i386-low.c: New file.
13571         * gdbserver/linux-ia64-low.c: New file.
13572         * gdbserver/linux-m68k-low.c: New file.
13573         * gdbserver/linux-mips-low.c: New file.
13574         * gdbserver/linux-ppc-low.c: New file.
13575         * gdbserver/linux-sh-low.c: New file.
13576
13577         * gdbserver/regcache.c: New file.
13578         * gdbserver/regcache.h: New file.
13579
13580         * gdbserver/low-linux.c: Removed obsolete file.
13581
13582 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13583
13584         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13585         * config/i386/linux.mt: Likewise.
13586         * config/ia64/linux.mt: Likewise.
13587         * config/m68k/linux.mh: Likewise.
13588         * config/powerpc/linux.mh: Likewise.
13589         * config/mips/linux.mt: Likewise.
13590
13591         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13592
13593         * config/i386/i386lynx.mh: Mark gdbserver variables
13594         as (currently) obsolete for this target.
13595         * config/i386/nbsd.mt: Likewise.
13596         * config/i386/nbsdelf.mt: Likewise.
13597         * config/m32r/m32r.mt: Likewise.
13598         * config/m68k/m68klynx.mh: Likewise.
13599         * config/m68k/nbsd.mt: Likewise.
13600         * config/m68k/sun3os4.mh: Likewise.
13601         * config/mips/vr5000.mt: Likewise.
13602         * config/ns32k/nbsd.mt: Likewise.
13603         * config/pa/hppabsd.mh: Likewise.
13604         * config/pa/hppaosf.mh: Likewise.
13605         * config/powerpc/nbsd.mt: Likewise.
13606         * config/rs6000/rs6000lynx.mh: Likewise.
13607         * config/s390/s390.mt: Likewise.
13608         * config/s390/s390x.mt: Likewise.
13609         * config/sparc/sparclynx.mh: Likewise.
13610         * config/sparc/sun4os4.mh: Likewise.
13611         * config/i386/x86-64linux.mt: Likewise.
13612         * config/sparc/linux.mh: Likewise.
13613
13614 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13615
13616         * configure.tgt: Configure gdbserver only for known working
13617         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13618         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13619         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13620         * configure: Regenerated.
13621
13622 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13623
13624         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13625
13626         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13627         (default_gcore_mach): Just return 0, work around a problem in bfd.
13628         (default_gcore_target): OK to return NULL if exec_bfd is null.
13629         (make_mem_sec): Use a cast, avoid a warning.
13630
13631         * procfs.c (find_memory_regions_callback): Use a cast instead of
13632         calling host_pointer_to_address (which complains if
13633         sizeof (host pointer) != sizeof (target pointer)).
13634         (procfs_make_note_section): Avoid overflow in psargs string.
13635
13636         * procfs.c (procfs_make_note_section): Make the default
13637         implementation return an error.
13638
13639 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13640
13641         * procfs.c (procfs_make_note_section): Provide a default definition
13642         (for alpha-dec-osf4.0f). Fix typos.
13643
13644 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13645
13646         * linux-proc.c: Add include of regcache.h.
13647         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13648
13649 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13650
13651         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13652         * memattr.c (create_mem_region): Disallow useless empty region.
13653         Regions are half-open intervals, so allow [A..B) [B..C) as
13654         non-overlapping.
13655
13656 2002-02-13  Michael Chastain <mec@shout.net>
13657
13658         * defs.h: Kill CONST_PTR.
13659         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13660         * c-lang.c (c_builtin_types): Likewise.
13661         * ch-lang.c (ch_builtin_types): Likewise.
13662         * f-lang.c (f_builtin_types): Likewise.
13663         * language.c (unknown_builtin_types): Likewise.
13664         * m2-lang.c (m2_builtin_types): Likewise.
13665         * p-lang.c (pascal_builtin_types): Likewise.
13666         * scm-lang.c (c_builtin_types): Likewise.
13667
13668 2002-02-13  Keith Seitz  <keiths@redhat.com>
13669
13670         * arm-tdep.h (arm_get_next_pc): Add declaration.
13671
13672 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13673
13674         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13675         with other related struct-returning functions.
13676         (arm_extract_struct_value_address): New function.
13677         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13678         initialize float_format, double_format and long_double_format as
13679         appropriate to the endianness of the target.
13680         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13681         (arm_use_struct_convention): Delete declaration.
13682         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13683
13684 2002-02-13  Keith Seitz  <keiths@redhat.com>
13685
13686         * defs.h (core_addr_to_string_nz): New function.
13687
13688 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13689
13690         Apply missing bits of 2002-01-15 patch.
13691         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13692         (fill_fpregset): Use i387_fill_fsave.
13693
13694 2002-02-12  Keith Seitz  <keiths@redhat.com>
13695
13696         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13697         (core_addr_to_string_nz): New function.
13698
13699 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13700
13701         * arm-linux-nat.c: Really include arm-tdep.h.
13702         * config/arm/tm-linux.h (struct type, struct value): Declare.
13703
13704 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13705
13706         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13707         (gcore section): Ifdef for Solaris and Unixware only.
13708         (procfs_do_thread_registers): Unixware needs one lwpstatus
13709         per thread (not one prstatus or pstatus).
13710         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13711         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13712         once before iterating over threads.
13713
13714 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13715
13716         * arm-tdep.h: New file.
13717         * arm-tdep.c: Include arm-tdep.h.
13718         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13719         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13720         (arm_print_float_info, arm_register_type, convert_to_extended)
13721         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13722         (arm_extract_return_value, arm_register_name): Make static.
13723         (arm_software_single_step): Similarly.  Fix types in declaration.
13724         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13725         (arm_store_return_value, arm_store_struct_return): New functions.
13726         (arm_gdbarch_init): Register the above functions.  Also register
13727         call_dummy_start_offset, sizeof_call_dummy_words,
13728         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13729         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13730         max_register_virtual_size, register_size.  Set up
13731         prologue_cache.saved_regs here, rather than ...
13732         (_initialize_arm_tdep): ... here.
13733         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13734         declarations.
13735         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13736         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13737         (arm_print_float_info, arm_register_type, convert_to_extended)
13738         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13739         (arm_extract_return_value, arm_register_name): Delete declarations.
13740         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13741         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13742         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13743         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13744         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13745         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13746         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13747         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13748         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13749         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13750         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13751         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13752         interface.
13753         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13754         * remote-rdi.c remote-rdp.c: Likewise.
13755         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13756         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13757         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13758         definition.
13759
13760         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13761         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13762         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13763         from non-ARM_ prefixed definitions.
13764         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13765         all uses of above.
13766         * remote-rdi.c remote-rdp.c: Likewise.
13767         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13768
13769 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13770
13771         * arm-tdep.c (arm_frameless_function_invocation)
13772         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13773         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13774         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13775         (arm_pop_frame, arm_get_next_pc): Make static.
13776         (arm_gdbarch_init): Register above in gdbarch structure.
13777         (arm_read_fp): Renamed from arm_target_read_fp.
13778         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13779         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13780         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13781         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13782         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13783         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13784         (arm_pc_is_thumb_dummy): Delete declarations.
13785         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13786         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13787         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13788         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13789
13790 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13791
13792         * symtab.c (compare_search_syms): New function.
13793         (sort_search_symbols): New function.
13794         (search_symbols): Sort symbols after searching rather than
13795         before.
13796
13797 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13798
13799         * NEWS: Linux -> GNU/Linux.
13800
13801 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13802
13803         * gdbarch.sh: For for level one methods, disallow a definition
13804         when partially multi-arched.  Add comments explaining rationale.
13805         * gdbarch.h: Re-generate.
13806
13807 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13808
13809         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13810         multi-arch partial.
13811
13812 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13813
13814         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13815         field.  Use diff -u.
13816         * gdbarch.c: Re-generate.
13817
13818 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13819
13820         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13821         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13822         partial.
13823
13824 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13825
13826         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13827         multi-arch partial.
13828         (PUSH_ARGUMENTS): Switch to using predefault.
13829         * gdbarch.c: Regenerate.
13830
13831 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13832
13833         * valops.c (PUSH_ARGUMENTS): Delete definition.
13834         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13835         partial.  Default to default_push_arguments.
13836         * gdbarch.h, gdbarch.c: Regenerate.
13837
13838 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13839
13840         * defs.h (throw_exception): Rename return_to_top_level.  Update
13841         comments.
13842         * utils.c (error_stream, internal_verror, quit): Ditto.
13843         * top.c (throw_exception, catcher): Ditto.
13844         * sparclet-rom.c (sparclet_load): Ditto.
13845         * remote.c (interrupt_query, minitelnet): Ditto.
13846         * remote-sds.c (interrupt_query): Ditto.
13847         * remote-mips.c (mips_error, mips_kill): Ditto.
13848         * ocd.c (interrupt_query): Ditto.
13849         * monitor.c (monitor_interrupt_query): Ditto.
13850         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13851         * target.h: Update comment.
13852
13853         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13854
13855 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13856
13857         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13858         default_double_format.
13859         * gdbarch.h, gdbarch.c: Re-generate.
13860         * findvar.c (floatformat_unknown): Delete variable definition.
13861         * doublest.h (floatformat_unknown): Delete variable declaration.
13862
13863 2002-02-09  Jim Blandy  <jimb@redhat.com>
13864
13865         * stabsread.c (read_type): Add code to parse Sun's syntax for
13866         prototyped function types.
13867
13868 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13869
13870         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13871         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13872
13873 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13874
13875         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13876         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13877         now _initialize_xcoffsolib gets called again and overrides the
13878         commands from solib.c in a native configuration.
13879
13880 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13881
13882         * doublest.c (store_typed_floating): Don't try to return a value.
13883         Fixes PR gdb/290.
13884
13885 2002-02-08  Jim Blandy  <jimb@redhat.com>
13886
13887         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13888         is prototyped and has no arguments, print its argument list as
13889         `(void)'.
13890
13891 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13892
13893         * MAINTAINERS (write-after-approval): Add myself.
13894         (paper-trail): I've escaped!
13895
13896 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13897
13898         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13899         changes.
13900         (_initialize_check_for_gdb_ini): Ditto.
13901
13902 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13903
13904         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13905         xaprintf -> xasprintf.
13906
13907 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13908
13909         * win32-nat.c: Remove use of printf and sprintf functions.
13910
13911 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13912
13913         * arm-tdep.c (arm_frame_chain_valid): Make static.
13914         (arm_push_arguments): Likewise.
13915         (arm_gdbarch_init): New function.
13916         (_initialize_arm_tdep): Call it.
13917         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13918         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13919         (FRAME_CHAIN_VALID): Delete.
13920         (arm_frame_chain_valid): Delete declaration.
13921         (PUSH_ARGUMENTS): Delete.
13922         (arm_push_arguments): Delete declaration.
13923         (CALL_DUMMY_P): Delete.
13924
13925 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13926             Corinna Vinschen  <vinschen@redhat.com>
13927
13928         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13929         on builtin float types.
13930
13931 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13932
13933         * utils.c: Include <curses.h> before "bfd.h".
13934         * tui/tui-hooks.c: Likewise.
13935         * tui/tui.c: Likewise.
13936         * tui/tuiCommand.c: Likewise.
13937         * tui/tuiData.c: Likewise.
13938         * tui/tuiDataWin.c: Likewise.
13939         * tui/tuiDisassem.c: Likewise.
13940         * tui/tuiGeneralWin.c: Likewise.
13941         * tui/tuiIO.c: Likewise.
13942         * tui/tuiLayout.c: Likewise.
13943         * tui/tuiRegs.c: Likewise.
13944         * tui/tuiSource.c: Likewise.
13945         * tui/tuiSourceWin.c: Likewise.
13946         * tui/tuiStack.c: Likewise.
13947         * tui/tuiWin.c: Likewise.
13948
13949 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13950
13951         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13952         to include space for pseudoregs as well. Update loops accordingly.
13953         (sh_fp_frame_init_saved_regs): Ditto.
13954         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13955
13956 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13957
13958         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13959         Add Richard Earnshaw to Arm maintainers.
13960
13961 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13962
13963         * defs.h (warning_begin): Delete declaration.
13964
13965         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13966         Delete macro.
13967
13968 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13969
13970         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13971         Logic bug, remove misplaced else.
13972
13973 2002-02-07  Klee Dienes  <klee@apple.com>
13974
13975         * fork-inferior.c (fork_inferior): Add '!' to the list of
13976         characters that need to be quoted when building a string for the
13977         shell.  Quote '!' specifically with a backslash, since CSH chokes
13978         when trying to evaluate "str!str".
13979
13980 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13981
13982         * rdi-share/host.h: Only provide a typedef for bool if it is not
13983         defined.
13984
13985 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13986
13987         * breakpoint.h (enum bptype): Add new overlay event bp type.
13988         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13989
13990         * breakpoint.c (create_internal_breakpoint): New function.
13991         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13992         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13993         (create_thread_event_breakpoint): Ditto.
13994         (create_solib_event_breakpoint): Ditto.
13995         (create_overlay_event_breakpoint): New function.
13996         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13997         (update_breakpoints_after_exec): Delete and re-initialize
13998         overlay event breakpoints after an exec.  Add FIXME comment
13999         about longjmp breakpoint.
14000         (print_it_typical): Ignore overlay event breakpoints.
14001         (print_one_breakpoint): Ditto.
14002         (mention): Ditto.
14003         (bpstat_what): Do not stop for overlay event breakpoints.
14004         (delete_breakpoint): Don't delete overlay event breakpoints.
14005         (breakpoint_re_set_one): Delete the overlay event breakpoint.
14006         (breakpoint_re_set): Re-create overlay event breakpoint.
14007
14008         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14009         (overlay_manual_command): Disable overlay breakpoints.
14010         (overlay_off_command): Disable overlay breakpoints.
14011
14012 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14013
14014         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14015         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14016         to here from config/tm-arm.h.
14017         (coff_sym_is_thumb): Make static.
14018         (arm_elf_make_msymbol_special): New function.
14019         (arm_coff_make_msymbol_special): New function.
14020         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14021         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14022         (coff_sym_is_thumb): Delete declaration.
14023         (arm_elf_make_msymbol_special): Declare.
14024         (arm_coff_make_msymbol_special): Declare.
14025         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14026         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14027
14028 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14029
14030         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14031
14032 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14033
14034         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14035         * gdbarch.c gdbarch.h: Regenerate.
14036         * arch-utils.c (default_print_float_info): New function.
14037         * arch-utils.h (default_print_float_info): Prototype it.
14038         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14039         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14040         (PRINT_FLOAT_INFO): Document it.
14041
14042         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14043         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14044         (PRINT_FLOAT_INFO): Define.
14045
14046 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14047
14048         * win32-nat.c (_initialize_check_for_gdb_ini):
14049         Add typecast to sprintf argument to suppress a warning.
14050
14051 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14052
14053         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14054         to allow easier handling of pass state.
14055         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14056         that gives exception name and address.
14057         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14058         and set last_sig value to ourstatus->value.sig. Some missing
14059         exceptions added.
14060         (child_continue): Correctly report continue_status.
14061         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14062         TARGET_SIGNAL_0 (new default value).
14063         (child_resume): consider sig argument passed to decide if
14064         the exception should be passed to debuggee or not.
14065
14066 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14067
14068         * regcache.c (fetch_register): Call target_fetch_register
14069         only if we don't call FETCH_PSEUDO_REGISTER.
14070         (store_register): Call target_store_register only if we
14071         don't call STORE_PSEUDO_REGISTER.
14072
14073 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14074
14075         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14076         ELF_MAKE_MSYMBOL_SPECIAL.
14077         * gdbarch.c, gdbarch.h: Regenerate.
14078         * arch-utils.c (default_make_msymbol_special): New function.
14079         * arch-utils.h (default_make_msymbol_special): Export.
14080         * elfread.c (elf_symtab_read): Compile use of
14081         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14082         multiarched.
14083         * coffread.c (coff_symtab_read): Ditto, for
14084         COFF_MAKE_MSYMBOL_SPECIAL.
14085
14086 2002-02-05  Jim Blandy  <jimb@redhat.com>
14087
14088         * solib-svr4.c (svr4_truncate_ptr): New function.
14089         (svr4_relocate_section_addresses): Do the address arithmetic with
14090         the appropriate truncation for target addresses, even when
14091         CORE_ADDR is larger than a target address.
14092
14093 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14094
14095         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14096         to (int *).
14097
14098 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14099
14100         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14101         code.
14102
14103 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14104
14105         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14106
14107 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14108
14109         * gdbserver/linux-low.c: Remove unused include files.
14110
14111 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14112
14113         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14114         (read_inferior_memory): Use it.
14115         (write_inferior_memory): Likewise.
14116
14117 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14118
14119         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14120         grubbing through sys_errlist.
14121
14122 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14123
14124         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14125
14126 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14127         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14128
14129 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14130
14131         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14132         (do_sfunc, set_cmd_sfunc): New functions.
14133
14134         * command.h (struct cmd_list_element): Add field func.
14135         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14136         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14137         * cli/cli-decode.h: Ditto.
14138
14139         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14140         (help_all, help_cmd_list): Ditto.
14141         (find_cmd, complete_on_cmdlist): Ditto.
14142         * top.c (execute_command): Ditto.
14143
14144         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14145         function.sfunc.
14146
14147         * infcmd.c (notice_args_read): Fix function signature.
14148
14149         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14150         * cli/cli-decode.c (add_set_cmd): Ditto.
14151         * utils.c (initialize_utils): Ditto.
14152         * maint.c (_initialize_maint_cmds): Ditto.
14153         * infrun.c (_initialize_infrun): Ditto.
14154         * demangle.c (_initialize_demangler): Ditto.
14155         * remote.c (add_packet_config_cmd): Ditto.
14156         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14157         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14158         * proc-api.c (_initialize_proc_api): Ditto.
14159         * kod.c (_initialize_kod): Ditto.
14160         * valprint.c (_initialize_valprint): Ditto.
14161         * top.c (init_main): Ditto.
14162         * infcmd.c (_initialize_infcmd): Ditto.
14163         * corefile.c (_initialize_core): Ditto.
14164         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14165         * arch-utils.c (initialize_current_architecture): Ditto.
14166         (_initialize_gdbarch_utils): Ditto.
14167         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14168
14169         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14170         * wince.c (_initialize_inftarg): Ditto.
14171         * symfile.c (_initialize_symfile): Ditto.
14172         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14173         * language.c (_initialize_language): Ditto.
14174         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14175
14176 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14177
14178         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14179
14180 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14181
14182         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14183         Add rules for building the register data files.
14184
14185 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14186
14187         * regformats/regdat.sh: Add braces to the definition of
14188         expedite_regs_${arch}.
14189
14190 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14191
14192         * regformats/regdef.h (struct reg): Add comment describing the
14193         requirements for offset and size fields.
14194
14195 2002-02-04  Andreas Schwab  <schwab@suse.de>
14196
14197         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14198         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14199
14200 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14201
14202         * gdbarch.sh (copyright): Update years in generated header.
14203         (SMASH_TEXT_ADDRESS): Add rule.
14204         * gdbarch.h, gdbarch.c: Re-generate.
14205         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14206         * dbxread.c: Likewise.
14207         * dwarfread.c: Likewise.
14208         * elfread.c: Likewise.
14209         * somread.c: Likewise.
14210
14211         * arm-tdep.c (arm_smash_text_address): New function.
14212         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14213
14214 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14215
14216         Add support for hardware watchpoints on win32 native.
14217         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14218         CONTEXT_DEBUG_REGISTERS.
14219         (dr variable): New variable. Static array containing a local copy
14220         of debug registers.
14221         (debug_registers_changed): New variable.  Reflects when debug registers
14222         are changed and need to be written to inferior.
14223         (debug_registers_used): New variable. Reflects when any debug register
14224         was set, used when new threads are created.
14225         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14226         i386-nat code.
14227         (thread_rec): Set dr array if id is the thread of current_event .
14228         (child_continue, child_resume): Change the debug registers for all
14229         threads if debug_registers_changed.
14230         (child_add_thread): Change the debug registers if debug_registers_used.
14231         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14232         Link nm.h to new nm-cygwin.h file.
14233         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14234         of hardware registers.
14235
14236 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14237
14238         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14239         Restore behavour broken by 2002-01-20 Andrew Cagney
14240         <ac131313@redhat.com> IEEE_FLOAT removal.
14241
14242 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14243
14244         * c-valprint.c (c_val_print): Pass a proper valaddr to
14245         cp_print_class_method.
14246         * valops.c (search_struct_method): If there is only one method
14247         and args is NULL, return that method.
14248
14249 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14250
14251         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14252         accessing tag_name directly.
14253
14254 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14255
14256         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14257         of accessing tag_name directly.
14258
14259 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14260
14261         PR gdb/280
14262         * gdbtypes.c (replace_type): New function.
14263         * gdbtypes.h (replace_type): Add prototype.
14264         * stabsread.c (read_type): Use replace_type.
14265
14266 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14267
14268         * Makefile.in (memattr.o): Add missing dependencies rule.
14269
14270 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14271
14272         * breakpoint.c (break_at_finish_command): Really export.
14273         (break_at_finish_at_depth_command): Ditto.
14274         (tbreak_at_finish_command): Ditto.
14275         * hppa-tdep.c: Include completer.h.
14276         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14277         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14278
14279 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14280
14281         * utils.c (do_write): New function.
14282         (error_stream): Rewrite combining the code from error_begin and
14283         verror.
14284         (verror): Rewrite using error_stream.
14285         (error_begin): Delete function.
14286
14287 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14288
14289         * utils.c (error_begin): Make static.
14290         * defs.h (error_begin): Delete declaration.
14291
14292         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14293         (decode_line_1): Use cplusplus_error instead of error_begin,
14294         cplusplus_hint and return_to_top_level.
14295         * coffread.c (coff_symfile_read): Use error instead of error_begin
14296         and return_to_top_level.
14297         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14298
14299 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14300
14301         * language.h (type_error, range_error): Make string parameter
14302         constant.
14303         * language.c (warning_pre_print): Delete extern declaration.
14304         * dwarfread.c (warning_pre_print): Ditto.
14305         * language.c (type_error, range_error): Rewrite to use verror and
14306         vwarning instead of warning_begin.
14307
14308 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14309
14310         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14311         (set_ignore_count): Move misplaced comment back where it belongs.
14312
14313 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14314
14315         * command.h (NO_FUNCTION): Delete macro.
14316         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14317         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14318         * tracepoint.c (_initialize_tracepoint): Ditto.
14319         * cli/cli-decode.c (add_set_cmd): Ditto.
14320         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14321
14322 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14323
14324         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14325         Update ``this'' pointer when calling virtual functions.
14326
14327 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14328
14329         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14330         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14331
14332 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14333
14334         * regformats/reg-arm.dat: New file.
14335         * regformats/reg-i386.dat: New file.
14336         * regformats/reg-ia64.dat: New file.
14337         * regformats/reg-m68k.dat: New file.
14338         * regformats/reg-mips.dat: New file.
14339         * regformats/reg-ppc.dat: New file.
14340         * regformats/reg-sh.dat: New file.
14341         * regformats/regdef.h: New file.
14342         * regformats/regdat.sh: New file.
14343
14344 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14345
14346         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14347         (arm_frame_args_address, arm_frame_locals_address): New functions.
14348         (arm_frame_num_args): New function.
14349         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14350         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14351         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14352
14353 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14354
14355         * breakpoint.c (break_at_finish_command): Export.
14356         (break_at_finish_at_depth_command): Export.
14357         (tbreak_at_finish_command): Export.
14358         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14359         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14360         "txbreak" commands, which are HPPA specific.
14361
14362         * printcmd.c (disassemble_command): Remove an ancient
14363         artifact of an old merge.
14364
14365         * symfile.h (enum overlay_debugging_state):
14366         Define enum constant values for overlay mode.
14367         * symfile.c (overlay_debugging): Use enums instead of literals.
14368         (overlay_is_mapped, overlay_auto_command,
14369         overlay_manual_command): Ditto.
14370
14371         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14372         breakpoint_here_p, breakpoint_inserted_here_p,
14373         breakpoint_thread_match, bpstat_stop_status,
14374         describe_other_breakpoints, check_duplicates, clear_command):
14375         Coding standard fixes.
14376
14377         * target.c (target_xfer_memory): Add spaces, coding standard.
14378         (do_xfer_memory): Add missing line to trust-readonly
14379         code: check bfd SEC_READONLY flag for section.
14380
14381 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14382
14383         * PROBLEMS: Fix typo, 5.1->5.1.1.
14384
14385 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14386
14387         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14388         data symbols, since we search based on textlow and texthigh.
14389         (find_pc_sect_symtab): Likewise.
14390
14391 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14392
14393         * defs.h (vwarning): Declare.
14394         * utils.c (vwarning): New function.
14395         (warning): Call vwarning.
14396         (warning_begin): Delete function.
14397
14398         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14399         the warning message.
14400         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14401         warning_begin.
14402
14403 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14404
14405         * NEWS: Mention "set trust-readonly-sections" command.
14406         Mention generate-core-file command.
14407
14408 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14409
14410         * target.c: New command, "set trust-readonly-sections on".
14411         (do_xfer_memory): Honor the suggestion to trust readonly sections
14412         by reading them from the object file instead of from the target.
14413         (initialize_targets): Register command "set trust-readonly-sections".
14414
14415 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14416
14417         * parse.c (target_map_name_to_register): Simplify, search regs and
14418         pseudo-regs using a single loop.
14419
14420 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14421
14422         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14423
14424 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14425
14426         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14427         * config/i386/i386v42mp.mh: Add i387-nat.o .
14428         * i386v4-nat.c: Include i387-nat.h.
14429         (supply_fpregset): Use i387_supply_fsave.
14430         (fill_fpregset): Use i387_fill_fsave.
14431
14432 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14433
14434         * arm-tdep.c (arm_call_dummy_words): Define.
14435         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14436         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14437         (CALL_DUMMY_WORDS): Define.
14438         (arm_call_dummy_words): Declare.
14439         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14440         (arm_linux_call_dummy_words): Declare.
14441
14442 2002-01-30  Andreas Schwab  <schwab@suse.de>
14443
14444         * m68klinux-nat.c: Fix last change to use regcache_collect
14445         instead of referencing registers[] directly.
14446
14447 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14448
14449         * parse.c (target_map_name_to_register): Delete code wrapped in
14450         #ifdef REGISTER_NAME_ALIAS_HOOK.
14451
14452 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14453
14454         * regcache.c (legacy_read_register_gen): Need to be able to
14455         read pseudo-register as well as real register.
14456         (legacy_write_register_gen): Ditto.
14457
14458 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14459
14460         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14461         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14462         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14463         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14464         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14465         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14466         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14467         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14468         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14469         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14470         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14471         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14472         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14473         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14474         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14475         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14476         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14477         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14478         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14479         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14480
14481 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14482
14483         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14484         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14485         (initialize_current_architecture): Update target_byte_order using
14486         information from BFD.
14487         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14488         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14489
14490 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14491
14492         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14493         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14494
14495         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14496         #ifdef INVALID_FLOAT.
14497         * infcmd.c (do_registers_info): Ditto.
14498         * values.c (unpack_double): Ditto.  Add comment.
14499
14500         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14501         already commented out.
14502
14503 2002-01-26  Andreas Schwab  <schwab@suse.de>
14504
14505         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14506         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14507         registers and add support for PTRACE_GETREGS.
14508
14509 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14510
14511         GDB 5.1.1 released from 5.1 branch.
14512         * NEWS: Add 5.1.1 news.
14513         * README: Sync with 5.1 branch.
14514
14515 2002-01-23  Fred Fish  <fnf@redhat.com>
14516
14517         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14518         stabstring on initial malloc.  Reallocing will copy it for us,
14519         if necessary.
14520
14521 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14522
14523         * Makefile.in (hpread_h): Delete.
14524         (HFILES_NO_SRCDIR): Remove hpread.h.
14525         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14526         (hpread.o): Update dependencies.
14527         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14528
14529         * hp-psymtab-read.c: Remove file.
14530         * hp-symtab-read.c: Remove file.
14531         * hpread.h: Remove file.
14532
14533         * hpread.c: Merge all contents of hp-psymtab-read.c,
14534         hp-symtab-read.c and hpread.h into this file, as it was prior to
14535         January 1999.
14536
14537         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14538         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14539         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14540         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14541
14542 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14543
14544         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14545         fill_gregset): Call gdbarch_tdep() just once, assign result to
14546         variable and use that, instead of calling the function several
14547         times.
14548
14549 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14550
14551         * configure.host: Accept sparcv9 as alias for sparc64.
14552         * configure.tgt: Likewise.
14553
14554 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14555
14556         * solib-aix5.c (build_so_list_from_mapfile)
14557         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14558         arguments is not reversed.
14559         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14560         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14561
14562 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14563
14564         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14565         modified version of obsolete sh_fetch_pseudo_register.
14566         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14567         (sh4_register_read): New function.
14568         (sh_pseudo_register_write): New function. Renamed and modified
14569         version of obsolete sh_store_pseudo_register.
14570         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14571         (sh4_register_write): New function.
14572         (sh_gdbarch_init): Remove setting of gdbarch function
14573         fetch_pseudo_register and store_pseudo_register. Remove setting of
14574         register_convert_to_raw, register_convert_to_virtual,
14575         register_convertible.
14576         (sh_sh4_register_convertible): Delete. No longer needed. All is
14577         taken care by architecture specific functions
14578         register_read/register_write.
14579         (sh_sh4_register_convert_to_virtual): Make static.
14580         (sh_sh4_register_convert_to_raw): Ditto.
14581
14582 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14583
14584         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14585         (floatformat_is_nan, floatformat_mantissa): Ditto.
14586
14587         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14588         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14589         builtin_type_ieee_double_little,
14590         builtin_type_ieee_double_littlebyte_bigword,
14591         builtin_type_m68881_ext, builtin_type_i960_ext,
14592         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14593         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14594         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14595         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14596
14597 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14598
14599         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14600         parameter.  Set frameless flag if it exists and depended of
14601         whether the scanned function is frameless or not.
14602         (xstormy16_skip_prologue): If function is frameless, return
14603         result of xstormy16_scan_prologue().
14604         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14605         call.
14606
14607 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14608
14609         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14610         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14611         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14612         sh_sh4_register_byte, sh_sh4_register_raw_size,
14613         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14614         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14615         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14616         sh_store_pseudo_register, sh_do_pseudo_register): Call
14617         gdbarch_tdep() just once, assign result to variable and use that,
14618         instead of calling the function several times.
14619
14620 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14621
14622         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14623         macros instead of LAST_FPU_CTRL_REGNUM.
14624         (store_register): Likewise.
14625
14626 2002-01-21  Jim Blandy  <jimb@redhat.com>
14627
14628         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14629         is up-to-date before running the program, not just when a program
14630         exits.
14631
14632 2002-01-21  Fred Fish  <fnf@redhat.com>
14633
14634         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14635         when we have found all instructions we are looking for.
14636
14637 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14638
14639         * arm-tdep.c (arm_register_name): New function.
14640         (arm_registers_names): Make static.
14641         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14642         (arm_register_name): Declare.
14643         (REGISTER_NAME): Use it.
14644
14645 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14646             Kevin Buettner  <kevinb@redhat.com>
14647
14648         Convert arm targets to new FRAME interface.
14649         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14650         (arm_frame_find_save_regs): Delete.
14651         (arm_frame_init_saved_regs): New.
14652         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14653         Allocate extra_info as required.  Convert all uses of fsr.regs
14654         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14655         to use extra_info.
14656         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14657         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14658         (check_prologue_cache, save_prologue_cache): Likewise.
14659         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14660         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14661         (FRAME_FIND_SAVED_REGS): Delete.
14662         (arm_frame_find_saved_regs): Delete prototype.
14663         (arm_frame_init_saved_regs): New prototype.
14664         (FRAME_INIT_SAVED_REGS): Define.
14665
14666 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14667
14668         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14669
14670 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14671
14672         From Jeff Law <law@redhat.com>:
14673         * infttrace.c: Include <sys/pstat.h>.
14674         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14675         exec file if the ttrace equivalent fails.
14676
14677 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14678
14679         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14680         (closeLogFile): Ditto.
14681
14682 2002-01-20  Michael Chastain  <mec@shout.net>
14683
14684         * top.c (print_gdb_version): Bump copyright year to 2002.
14685
14686 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14687
14688         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14689         Zannoni and Eli Zaretskii.
14690
14691 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14692
14693         * buildsym.c: Update copyright years.
14694         * c-typeprint.c: Likewise.
14695         * dwarf2read.c: Likewise.
14696         * f-typeprint.c: Likewise.
14697         * gdbtypes.c: Likewise.
14698         * gdbtypes.h: Likewise.
14699         * hp-symtab-read.c: Likewise.
14700         * hpread.c: Likewise.
14701         * mdebugread.c: Likewise.
14702         * p-typeprint.c: Likewise.
14703
14704 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14705
14706         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14707         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14708         byte-order selectable.
14709         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14710         * arch-utils.c: Ditto.
14711         (set_endian): Ditto.
14712         (set_endian_from_file): Ditto.
14713         * gdbserver/low-sim.c (create_inferior): Ditto.
14714         * gdbarch.sh: Ditto.
14715         * gdbarch.h: Re-generate.
14716         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14717         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14718         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14719         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14720         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14721         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14722         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14723         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14724         macro definition.
14725         * config/mips/tm-wince.h: Remove #undef of macro
14726         TARGET_BYTE_ORDER_SELECTABLE.
14727         * config/sh/tm-wince.h: Ditto.
14728
14729 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14730
14731         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14732         member function fields.  Add accessor macro
14733         TYPE_FN_FIELD_ARTIFICIAL.
14734         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14735         * c-typeprint.c (c_type_print_base): Skip artificial member
14736         functions.
14737
14738 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14739
14740         * f-typeprint.c: Delete unused function f_type_print_args.
14741         * p-typeprint.c: Delete unused function pascal_type_print_args.
14742
14743 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14744
14745         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14746         comment.  Add ``artificial'' to ``union field_location''.
14747
14748         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14749
14750         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14751         * mdebugread.c (parse_symbol): Likewise.
14752         * stabsread.c (define_symbol): Likewise.
14753         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14754         initializing TYPE_FIELD_BITPOS to n (obsolete).
14755         (hpread_doc_function_type): Likewise.
14756         * hpread.c (hpread_function_type): Likewise.
14757
14758 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14759
14760         * configure.in (host_makefile_frag): Only require a host makefile
14761         fragment when a native build.
14762         * configure: Re-generate.
14763
14764 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14765
14766         * doublest.h (floatformat_from_type): Declare.
14767         * doublest.c (floatformat_from_type): New function.
14768         (convert_typed_floating): Use.
14769
14770         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14771         call to function floatformat_from_type.
14772
14773         * gdbarch.sh (IEEE_FLOAT): Delete.
14774         * gdbarch.h, gdbarch.c: Re-generate.
14775         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14776         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14777         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14778         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14779         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14780         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14781         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14782         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14783         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14784         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14785         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14786         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14787
14788         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14789         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14790         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14791         * sh-tdep.c (sh_gdbarch_init): Ditto.
14792         * mips-tdep.c (mips_gdbarch_init): Ditto.
14793         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14794         * cris-tdep.c (cris_gdbarch_init): Ditto.
14795
14796 2002-01-20  Jiri Smid  <smid@suse.cz>
14797
14798         * configure.host, configure.tgt: Support x86-64.
14799         * NEWS: Note new target x86-64.
14800
14801         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14802         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14803         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14804         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14805         x86-64-linux-nat.o): Fix dependencies.
14806
14807 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14808
14809         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14810         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14811         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14812         * config/sparc/xm-sun4os4.h: Delete file.
14813         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14814
14815 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14816
14817         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14818         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14819         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14820         * config/i386/i386lynx.mh (XM_FILE): Delete.
14821         * config/rs6000/xm-rs6000ly.h: Delete file.
14822         * config/sparc/xm-sparclynx.h: Delete file.
14823         * config/m68k/xm-m68klynx.h: Delete file.
14824         * config/i386/xm-i386lynx.h: Delete file.
14825         * config/xm-lynx.h: Delete file.
14826         * config/djgpp/fnchange.lst: Update.
14827
14828 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14829
14830         * alpha-tdep.c (alpha_register_byte): New function.
14831         (alpha_register_raw_size): Ditto.
14832         (alpha_register_virtual_size): Ditto.
14833         (alpha_skip_prologue_internal): Renamed from
14834         alpha_skip_prologue.
14835         (alpha_skip_prologue): New version that calls
14836         alpha_skip_prologue_internal.
14837         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14838         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14839         second argument from alpha_skip_prologue.
14840         (REGISTER_BYTE): Use alpha_register_byte.
14841         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14842         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14843         (FRAMELESS_FUNCTION_INVOCATION): Use
14844         generic_frameless_function_invocation_not.
14845         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14846         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14847
14848 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14849
14850         * config/mips/xm-news-mips.h: Delete file.
14851         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14852
14853         * config/m88k/xm-m88k.h: Delete file.
14854         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14855         * config/m88k/xm-delta88v4.h: Ditto.
14856         * config/m88k/xm-delta88.h: Ditto.
14857
14858         * config/alpha/xm-fbsd.h: Delete file.
14859         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14860
14861         * config/sparc/xm-sparc.h: Delete file.
14862         * Makefile.in (xm-sun4os4.h): Delete dependency.
14863         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14864         * config/sparc/xm-sun4os4.h: Ditto.
14865         * config/sparc/xm-linux.h: Ditto.
14866
14867         * config/i386/xm-windows.h: Delete file.
14868
14869 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14870
14871         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14872         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14873
14874 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14875
14876         * alpha-tdep.c (alpha_call_dummy_words): New.
14877         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14878         (CALL_DUMMY_P): Define.
14879         (CALL_DUMMY_WORDS): Define.
14880         (SIZEOF_CALL_DUMMY_WORDS): Define.
14881
14882 2002-01-19  Per Bothner  <per@bothner.com>
14883
14884         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14885         isn't NULL, which can happen with some gcj-3.x-produced code.
14886
14887 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14888
14889         * alpha-tdep.c (alpha_register_virtual_type): New function.
14890         (alpha_init_frame_pc_first): Ditto.
14891         (alpha_fix_call_dummy): Ditto.
14892         (alpha_store_struct_return): Ditto.
14893         (alpha_extract_struct_value_address): Ditto.
14894         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14895         alpha_register_virtual_type.
14896         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14897         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14898         alpha_extract_struct_value_address.
14899         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14900         (INIT_FRAME_PC): Use init_frame_pc_noop.
14901         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14902
14903 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14904
14905         * i386gnu-nat.c: Include "i386-tdep.h".
14906         (fetch_fpregs): Simplify code dealing with uninitialized floating
14907         point states such that it doesn't require FP7_REGNUM.
14908
14909 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14910
14911         * alpha-tdep.c (frame_extra_info): New.
14912         (alpha_find_saved_regs): Make static.  Use
14913         frame->extra_info.
14914         (alpha_frame_init_saved_regs): New function.
14915         (alpha_frame_saved_pc): Use frame->extra_info.
14916         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14917         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14918         (init_extra_frame_info): Rename to...
14919         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14920         (alpha_print_extra_frame_info): New function.
14921         (alpha_frame_locals_address): Ditto.
14922         (alpha_frame_args_address): Ditto.
14923         (alpha_pop_frame): Use frame->extra_info.
14924         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14925         alpha_frame_args_address.
14926         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14927         (alpha_find_saved_regs): Remove prototype.
14928         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14929         (EXTRA_FRAME_INFO): Remove.
14930         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14931         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14932
14933 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14934
14935         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14936         (alpha_cannot_fetch_register): Ditto.
14937         (alpha_cannot_store_register): Ditto.
14938         (alpha_register_convertible): Ditto.
14939         (alpha_use_struct_convention): Ditto.
14940         * config/alpha/tm-alpha.h: Update copyright years.
14941         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14942         (INNER_THAN): Use core_addr_lessthan.
14943         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14944         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14945         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14946         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14947         (FRAME_CHAIN): Remove unnecessary cast.
14948
14949 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14950
14951         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14952         obsolete.
14953
14954 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14955
14956         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14957         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14958         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14959         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14960         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14961         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14962         * x86-64-linux-nat.c: Ditto.
14963
14964 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14965
14966         * alpha-tdep.c (alpha_register_name): New function.
14967         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14968         (REGISTER_NAME): Define.
14969
14970 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14971
14972         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14973
14974 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14975
14976         * alpha-tdep.c: Update copyright years.
14977         (alpha_next_pc): New function.
14978         (alpha_software_single_step): Ditto.
14979         * config/alpha/tm-alpha.h: Add prototype for
14980         alpha_software_single_step.
14981
14982 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14983
14984         * alphabsd-nat.c: Update copyright years.
14985         (fill_gregset): Use regcache_collect.
14986         (fill_fpregset): Likewise.
14987         (fetch_inferior_registers): Only fetch integer registers
14988         if requested to do so.
14989         (store_inferior_registers): Only store integer registers
14990         if requested to do so.
14991
14992 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14993
14994         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14995         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14996         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14997         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14998         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14999         * config/arm/linux.mh (XDEPFILES): Delete.
15000         * config/arm/nbsd.mh (XDEPFILES): Delete.
15001         * config/i386/i386dgux.mh (XDEPFILES): Delete.
15002         * config/i386/i386sol2.mh (XDEPFILES): Delete.
15003         * config/i386/i386m3.mh (XDEPFILES): Delete.
15004         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
15005         * config/i386/i386gnu.mh (XDEPFILES): Delete.
15006         * config/i386/fbsd.mh (XDEPFILES): Delete.
15007         * config/i386/i386bsd.mh (XDEPFILES): Delete.
15008         * config/i386/i386sco5.mh (XDEPFILES): Delete.
15009         * config/i386/i386v4.mh (XDEPFILES): Delete.
15010         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15011         * config/i386/i386sco4.mh (XDEPFILES): Delete.
15012         * config/i386/i386aix.mh (XDEPFILES): Delete.
15013         * config/i386/go32.mh (XDEPFILES): Delete.
15014         * config/i386/cygwin.mh (XDEPFILES): Delete.
15015         * config/i386/i386lynx.mh (XDEPFILES): Delete.
15016         * config/i386/i386mach.mh (XDEPFILES): Delete.
15017         * config/i386/i386v32.mh (XDEPFILES): Delete.
15018         * config/i386/linux.mh (XDEPFILES): Delete.
15019         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15020         * config/i386/ncr3000.mh (XDEPFILES): Delete.
15021         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15022         * config/i386/i386sco.mh (XDEPFILES): Delete.
15023         * config/i386/i386v.mh (XDEPFILES): Delete.
15024         * config/i386/nbsd.mh (XDEPFILES): Delete.
15025         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15026         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15027         * config/i386/symmetry.mh (XDEPFILES): Delete.
15028         * config/i386/obsd.mh (XDEPFILES): Delete.
15029         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15030         * config/ia64/linux.mh (XDEPFILES): Delete.
15031         * config/ia64/aix.mh (XDEPFILES): Delete.
15032         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15033         * config/m68k/dpx2.mh (XDEPFILES): Delete.
15034         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15035         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15036         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15037         * config/m68k/linux.mh (XDEPFILES): Delete.
15038         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15039         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15040         * config/m68k/nbsd.mh (XDEPFILES): Delete.
15041         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15042         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15043         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15044         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15045         * config/m88k/delta88.mh (XDEPFILES): Delete.
15046         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15047         * config/m88k/m88k.mh (XDEPFILES): Delete.
15048         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15049         * config/mips/linux.mh (XDEPFILES): Delete.
15050         * config/mips/irix6.mh (XDEPFILES): Delete.
15051         * config/mips/irix5.mh (XDEPFILES): Delete.
15052         * config/mips/irix4.mh (XDEPFILES): Delete.
15053         * config/mips/irix3.mh (XDEPFILES): Delete.
15054         * config/mips/decstation.mh (XDEPFILES): Delete.
15055         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15056         (NATDEPFILES): Move core-aout.o to here.
15057         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15058         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15059         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15060         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15061         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15062         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15063         * config/pa/hpux11.mh (XDEPFILES): Delete.
15064         * config/powerpc/aix.mh (XDEPFILES): Delete.
15065         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15066         * config/powerpc/linux.mh (XDEPFILES): Delete.
15067         * config/romp/rtbsd.mh: Rename XDEPFILES.
15068         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15069         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15070         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15071         * config/s390/s390.mh (XDEPFILES): Delete.
15072         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15073         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15074         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15075         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15076         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15077         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15078         * config/sparc/linux.mh (XDEPFILES): Delete.
15079         * config/vax/vaxult.mh (XDEPFILES): Delete.
15080         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15081         * Makefile.in (DEPFILES): Remove XDEPFILES.
15082
15083 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15084
15085         * utils.c (internal_verror): Fix comments, default is yes not no.
15086         Update queries to match.  Default to quit and dump core.
15087
15088 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15089
15090         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15091         copyright.
15092         * defs.h, event-top.c, gdbcmd.h: Ditto.
15093         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15094         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15095         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15096         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15097         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15098         * mi/mi-main.c:Ditto.
15099
15100         * stack.c, symfile.c: Update copyright.
15101
15102 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15103
15104         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15105         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15106         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15107         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15108
15109 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15110
15111         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15112         * gdbserver/low-lynx.c (myattach): Likewise.
15113         * gdbserver/low-nbsd.c (myattach): Likewise.
15114         * gdbserver/low-sim.c (myattach): Likewise.
15115         * gdbserver/low-sparc.c (myattach): Likewise.
15116         * gdbserver/low-sun3.c (myattach): Likewise.
15117
15118         * gdbserver/low-linux.c (myattach): New function.
15119
15120         * gdbserver/server.c (attach_inferior): New function.
15121         (main): Handle "--attach".
15122
15123 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15124
15125         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15126         maintainer.
15127
15128 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15129
15130         * c-typeprint.c (is_type_conversion_operator): Add additional
15131         check for non-conversion operators.
15132
15133 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15134
15135         * linux-proc.c: Add "info proc" command, a la procfs.c.
15136         (read_mapping): New function, abstract and re-use code.
15137         (linux_find_memory_regions): Use new func read_mapping.
15138         (linux_info_proc_cmd): New function, implement "info proc".
15139         (_initialize_linux_proc): Add new command "info proc".
15140
15141 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15142
15143         * symfile.c (generic_load): Use bfd_map_over_sections method
15144         instead of manipulating bfd structure members directly.
15145         (add_section_size_callback): New function, bfd sections callback
15146         used by generic_load.
15147         (load_sections_callback): New function, bfd sections callback
15148         used by generic_load.
15149
15150 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15151
15152         [Based on work by Jim Blandy]
15153         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15154         (builtin_type_vec128): Export.
15155         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15156         types.
15157         (builtin_type_vec128): New builtin type for 128 bit vector
15158         registers.
15159         (build_gdbtypes): Initialize builtin_type_v16qi and
15160         builtin_type_v8hi. Create the vec128 register builtin type
15161         structure.
15162         (build_builtin_type_vec128): New function.
15163         (_initialize_gdbtypes): Register builtin_type_v16qi and
15164         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15165         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15166         AltiVec register to new builtin type.
15167
15168 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15169
15170         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15171         to make_cv_type.
15172
15173 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15174
15175         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15176         CLEAN_UP_REGISTER_VALUE.
15177         * regcache.c (supply_register): Update only call.
15178
15179 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15180
15181         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15182         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15183         a29k-*-vxworks* targets as obsolete.
15184
15185 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15186
15187         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15188         until we can resolve portability issues.
15189         * gregset.h: Remove references to fpxregs.
15190         * gcore.c (gcore_command): Initialize note_sec to NULL.
15191
15192 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15193
15194         * signals.c (target_signal_to_name): Rewrite.  Only use
15195         signals[].name when in bounds and non-NULL.
15196
15197 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15198
15199         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15200         * signals.c (target_signal_to_name): Verify that SIG is within the
15201         bounds of the signals array.
15202
15203 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15204
15205         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15206
15207 2002-01-13  Keith Seitz  <keiths@redhat.com>
15208
15209         * stack.c (print_frame_info_base): Print the frame's pc
15210         only if when print_frame_info_listing_hook is not defined.
15211
15212 2002-01-13  Keith Seitz  <keiths@redhat.com>
15213
15214         * varobj.c (varobj_set_value): Make sure that there were no
15215         errors evaluating the object before attempting to set its
15216         value.
15217         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15218         so this offset adjustment is no longer necessary.
15219         (create_child): Don't set the error flag if the child is
15220         a CPLUS_FAKE_CHILD.
15221         (value_of_child): If value_fetch_lazy fails, return NULL
15222         so that callers will be notified that an error occurred.
15223         (c_value_of_variable): Delay check of variable's validity
15224         until later. We actually want all structs and unions to have
15225         the value "{...}".
15226         Do not return "???" for variables which could not be evaluated.
15227         This error condition must be returned to the caller so that it
15228         can get the error condition from gdb.
15229         (cplus_name_of_child): Adjust index for vptr before figuring
15230         out the name of the child.
15231         (cplus_value_of_child): If a child's (real) parent is not valid,
15232         don't even bother trying to give a value for it. Just return
15233         an error. Change all instances in this function.
15234         (cplus_type_of_child): If our parent is one of the "fake"
15235         parents, we need to get at the type of the real parent, and
15236         derive the child's true type using this information.
15237
15238 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15239
15240         From 2002-01-09 John Marshall <johnm@falch.net>:
15241         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15242         sources.redhat.com, and tweak some related URLs which had
15243         suffered from linkrot.
15244
15245 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15246
15247         From Jeff law:
15248         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15249         structures passed in registers.
15250
15251 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15252
15253         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15254         white space which prevented compilation.  Reported by DSK
15255         <dsk@student.unsw.edu.au>.
15256
15257 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15258
15259         * symfile.c (build_section_addr_info_from_section_tab):
15260         Use bfd access method instead of manipulating bfd directly.
15261         (syms_from_objfile): Ditto.
15262         (simple_overlay_update_1): Ditto.
15263         (simple_overlay_update): Ditto.
15264         (generic_load): Ditto.
15265         (overlay_unmapped_address): FIXME comment, bfd access methods.
15266         (sections_overlap): FIXME comment, bfd access methods.
15267         (pc_in_mapped_range): FIXME comment, bfd access methods.
15268         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15269         (section_is_mapped): FIXME comment, bfd access methods.
15270         (section_is_overlay): FIXME comment, bfd access methods.
15271
15272         * symfile.c (generic_load): Whitespace and long line cleanups.
15273         Remove duplicate variable, change several local variables to
15274         more appropriate data types.
15275         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15276
15277 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15278
15279         From Peter Schauer:
15280         * language.c (longest_local_hex_string_custom): Use phex_nz to
15281         convert NUM to a hex string.
15282
15283 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15284
15285         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15286         the function.
15287         Update Copyright year.
15288
15289 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15290
15291         * language.c (longest_raw_hex_string): Delete unused function.
15292
15293 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15294
15295         * MAINTAINERS (write-after-approval): Add myself.
15296         * dwarf2read.c (read_tag_string_type): Handling of
15297         DW_AT_byte_size.
15298         (read_tag_string_type): FORTRAN fix to prevent propagation of
15299         first string size.
15300         (set_cu_language): Handling of DW_LANG_Fortran95
15301
15302 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15303
15304         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15305         GETPID(inferior_ptid).
15306         (store_inferior_registers): Likewise.
15307
15308 2002-01-10  Jason Merrill  <jason@redhat.com>
15309
15310         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15311         Fix DW_OP_minus.
15312
15313 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15314
15315         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15316         and bfd/elf32-sh-nbsd.c.
15317
15318 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15319
15320         * NEWS: Mention --pid and corefile/proc-id behavior change.
15321
15322         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15323         * gcore.c: Include cli/cli-decode.h instead of command.h.
15324
15325         * main.c (captured_main): Add new command line option "--pid".
15326         If the second command line argument (following the symbol-file)
15327         begins with a digit, try to attach to it before trying to open
15328         it as a corefile.
15329         (print_gdb_help): Document the "--pid" argument.
15330
15331 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15332
15333         * completer.c (command_completer): New function.
15334
15335         * completer.h <command_completer>: Add prototype.
15336
15337         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15338         completer for the "help" command.
15339
15340 2002-01-09  Jason Merrill  <jason@redhat.com>
15341
15342         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15343
15344 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15345
15346         * i386-linux-nat.c (fill_fpxregset): Make global.
15347         (store_fpxregset): Ditto.
15348
15349         * gregset.h (gdb_fpxregset_t): Define.
15350         (supply_fpxregset): Prototype.
15351         (fill_fpxregset): Prototype.
15352
15353         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15354
15355 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15356
15357         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15358         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15359         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15360
15361 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15362
15363         * MAINTAINERS: Update target maintainer rules so that any
15364         Maintainer can approve a tested patch for a maintenance-only
15365         target.
15366
15367 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15368
15369         * MAINTAINERS (write-after-approval): Add myself.
15370
15371         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15372         IN_SIGTRAMP.
15373
15374 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15375
15376         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15377         real name of the executable, rather than the /proc name.
15378
15379 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15380
15381         Implement a "generate-core-file" command in gdb, save target state.
15382         * gcore.c: New file.  Implement new command 'generate-core-file'.
15383         Save a corefile image of the current state of the inferior.
15384         * linux-proc.c: Add linux-specific code for saving corefiles.
15385         * target.h (struct target_ops): Add new target vectors for saving
15386         corefiles; to_find_memory_regions and to_make_corefile_notes.
15387         (target_find_memory_regions): New macro.
15388         (target_make_corefile_notes): New macro.
15389         * target.c (update_current_target): Inherit new target methods.
15390         (dummy_find_memory_regions): New place-holder method.
15391         (dummy_make_corefile_notes): New place-holder method.
15392         (init_dummy_target): Initialize new dummy target vectors.
15393         * exec.c (exec_set_find_memory_regions): New function.
15394         Allow the exec_ops vector for memory regions to be taken over.
15395         (exec_make_note_section): New function, target vector method.
15396         * defs.h (exec_set_find_memory_regions): Export prototype.
15397         * procfs.c (proc_find_memory_regions): New function, corefile method.
15398         (procfs_make_note_section): New function, corefile method.
15399         (init_procfs_ops): Set new target vector pointers.
15400         (find_memory_regions_callback): New function.
15401         (procfs_do_thread_registers): New function.
15402         (procfs_corefile_thread_callback): New function.
15403         * sol-thread.c (sol_find_memory_regions): New function.
15404         (sol_make_note_section): New function.
15405         (init_sol_thread_ops): Initialize new target vectors.
15406         * inftarg.c (inftarg_set_find_memory_regions): New function.
15407         Allow to_find_memory_regions vector to be taken over.
15408         (inftarg_set_make_corefile_notes): New function.
15409         Allow to_make_corefile_notes vector to be taken over.
15410         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15411         interface layer if not target_has_execution (may be a corefile).
15412         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15413         * config/sparc/sun4sol2.mh: Ditto.
15414         * config/alpha/alpha-linux.mh: Ditto.
15415         * config/arm/linux.mh: Ditto.
15416         * config/i386/x86-64linux.mh: Ditto.
15417         * config/ia64/linux.mh: Ditto.
15418         * config/m68k/linux.mh: Ditto.
15419         * config/mips/linux.mh: Ditto.
15420         * config/powerpc/linux.mh: Ditto.
15421         * config/sparc/linux.mh: Ditto.
15422
15423 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15424
15425         * arm-linux-nat.c: Remove references to regcache.c internal data
15426         (registers[] and register_valid[]).
15427
15428 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15429
15430         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15431         so that attaching to a pid will automatically read the process's
15432         symbol file and shlibs.
15433         * Makefile.in: Add rule for linux-proc.o.
15434         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15435         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15436         * config/arm/linux.mh: Ditto.
15437         * config/i386/linux.mh: Ditto.
15438         * config/i386/x86-64linux.mh: Ditto.
15439         * config/ia64/linux.mh: Ditto.
15440         * config/m68k/linux.mh: Ditto.
15441         * config/mips/linux.mh: Ditto.
15442         * config/powerpc/linux.mh: Ditto.
15443         * config/sparc/linux.mh: Ditto.
15444
15445 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15446
15447         * win32-nat.c: Add i386-tdep.h dependency.
15448
15449 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15450
15451         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15452         instead of bfd_get_arch_size.  Don't bail out just because
15453         there's no exec_bfd.
15454
15455         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15456         * p-valprint.c (pascal_object_print_value): Ditto.
15457         * somread.c (som_symtab_read): Ditto.
15458         * symfile.c (simple_free_overlay_region_table): Ditto.
15459         * valops.c (value_assign): Ditto.
15460
15461         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15462         use tilde_expand and strerror for opening save-tracepoints file.
15463
15464         * thread-db.c (thread_db_new_objfile): Indendation fix.
15465
15466         * infptrace.c (GDB_MAX_ALLOCA): New define.
15467         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15468         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15469         can be overridden with whatever value is appropriate to the host).
15470         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15471         alloca to allocate potentially large buffer.
15472         * rs6000-nat.c (child_xfer_memory): Ditto.
15473         * symm-nat.c (child_xfer_memory): Ditto.
15474         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15475
15476 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15477
15478         From Nick Clifton  <nickc@redhat.com>
15479         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15480
15481 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15482
15483         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15484         Don't use exec_bfd if it's NULL.
15485
15486 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15487
15488         * valops.c (value_arg_coerce): Fix formatting.
15489
15490 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15491
15492         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15493         * gnu-nat.c: Ditto.
15494
15495 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15496
15497         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15498         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15499         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15500         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15501         z8k-coff have not been multi-arched.  Update z8k-coff build
15502         status.
15503
15504 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15505
15506         * MAINTAINERS: Mark a29k target as obsolete.
15507         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15508         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15509         comments.
15510         * NEWS: Note that a29k targets are obsolete.
15511         * a29k-tdep.c: Mark as obsolete.
15512         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15513         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15514         a29k-*-vxworks* targets as obsolete.
15515         * remote-adapt.c: Obsolete.
15516         * remote-eb.c: Obsolete.
15517         * remote-mm.c: Obsolete.
15518         * remote-udi.c: Obsolete.
15519         * config/a29k/a29k-udi.mt: Obsolete.
15520         * config/a29k/a29k.mt: Obsolete.
15521         * config/a29k/tm-a29k.h: Obsolete.
15522         * config/a29k/tm-vx29k.h: Obsolete.
15523         * config/a29k/vx29k.mt: Obsolete.
15524
15525 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15526
15527         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15528         with BFD_ENDIAN_BIG.
15529
15530 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15531
15532         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15533         * configure, config.in: Re-generate.
15534         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15535         * defs.h: Do not include <endian.h>.
15536
15537 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15538
15539         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15540         * config.in: Regenerate.
15541         * configure.in: Update copyright years.
15542         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15543         * configure: Regenerate.
15544         * i386bsd-nat.c: Update copyright years.
15545         (fill_gregset): Use regcache_collect.
15546         (fetch_inferior_registers): Only fetch integer registers
15547         if requested to do so.  Add support for XMM registers
15548         using PT_GETXMMREGS.
15549         (store_inferior_registers): Only store integer registers
15550         if requested to do so.  Add support for XMM registers
15551         using PT_SETXMMREGS.
15552         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15553         (store_inferior_registers): Remove.
15554         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15555         (fetch_elfcore_registers): New function.
15556         (i386nbsd_elfcore_fns): New.
15557         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15558         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15559         i386bsd-nat.o.
15560         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15561         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15562         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15563         * config/i386/tm-nbsd.h: Update copyright years.
15564         (HAVE_SSE_REGS): Define.
15565         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15566         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15567         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15568         (SIGCONTEXT_PC_OFFSET): Remove.
15569         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15570
15571 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15572
15573         * configure.tgt: Remove powerpc-*-macos* target.
15574         * config/m68k/xm-mpw.h: Delete file.
15575         * config/xm-mpw.h: Delete file.
15576         * ser-mac.c: Delete file.
15577         * mpw-make.sed: Delete file.
15578         * mpw-config.in: Delete file.
15579         * mac-xdep.c: Delete file.
15580         * mac-gdb.r: Delete file.
15581         * mac-defs.h: Delete file.
15582         * mac-nat.c: Delete file.
15583         * config/powerpc/macos.mh: Delete file.
15584         * config/powerpc/macos.mt: Delete file.
15585         * config/powerpc/nm-macos.h: Delete file.
15586         * config/powerpc/tm-macos.h: Delete file.
15587         * source.c (openp, open_source_file): Remove obsolete code.
15588         * top.c (gdb_readline): Ditto.
15589         * utils.c (query): Ditto.
15590         * event-top.c (display_gdb_prompt): Ditto.
15591         * Makefile.in (ser-mac.o): Delete obsolete target.
15592         * NEWS: Update.
15593
15594 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15595
15596         * defs.h (BIG_ENDIAN): Delete macro definition.
15597         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15598         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15599         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15600         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15601         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15602         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15603         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15604         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15605         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15606         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15607         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15608         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15609         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15610         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15611         * gdbarch.c: Re-generate.
15612
15613 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15614
15615         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15616         for core files.
15617
15618 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15619
15620         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15621
15622 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15623
15624         * value.h (value_ptr): Delete typedef.
15625
15626 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15627
15628         * i386nbsd-nat.c: Update copyright years.
15629         Include i386-tdep.h.
15630
15631 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15632
15633         * stabsread.c: Update copyright years.
15634
15635         From Debashis Mahata <debashis.mahata@wipro.com>:
15636         (read_struct_fields): Deal with Sun C compiler erroneous stab
15637         output for structs and unions.
15638         Fix PR gdb/269.
15639
15640 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15641
15642         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15643         prototype.
15644
15645 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15646
15647         * cp-abi.c: Fix whitespace.
15648         (baseclass_offset): New wrapper function.
15649         * cp-abi.h (baseclass_offset): Add prototype.
15650         (struct cp_abi_ops): Add baseclass_offset pointer.
15651
15652         * valops.c (vb_match): Move to...
15653         * gnu-v2-abi.c (vb_match): here.
15654         * valops.c (baseclass_offset): Move to...
15655         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15656
15657         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15658
15659         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15660         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15661         * hpacc-abi.c (init_hpacc_ops): Likewise.
15662
15663 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15664
15665         * valops.c (find_overload_match): Accept obj as a
15666         reference parameter.  Update it before returning.
15667         * value.h (find_overload_match): Update prototype.
15668         * eval.c (evaluate_subexp_standard): Pass object to
15669         find_overload_match by reference.
15670
15671 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15672
15673         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15674         register attribute from value declarations.
15675         * valops.c: Ditto.
15676         * value.h: Ditto.
15677         * scm-lang.c (scm_lookup_name): Ditto.
15678
15679 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15680
15681         Abstract the functionality of iterating over mapped memory
15682         regions into a general purpose iterator function.
15683         * procfs.c (iterate_over_mappings): New function, general purpose
15684         iterator for memory sections.
15685         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15686         (solib_mappings_callback): New function, callback for above.
15687         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15688         (info_mappings_callback): New function, callback for above.
15689
15690         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15691
15692 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15693
15694         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15695         * i386-tdep.c: Include "elf-bfd.h".
15696         (process_note_abi_tag_sections): New function.
15697         (i386_gdbarch_init): Add code to recognize various OS/ABI
15698         combinations.
15699
15700         * maint.c (_initialize_maint_cmds): Add missing \ in
15701         string-literal.
15702
15703 For older changes see ChangeLog-2001
15704 \f
15705 Local Variables:
15706 mode: change-log
15707 left-margin: 8
15708 fill-column: 74
15709 version-control: never
15710 End: