2003-01-09 Andrew Cagney <ac131313@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
2
3         * infrun.c (follow_fork): Use ISO C definition.
4         * expprint.c (print_subexp): Use xfree instead of free.
5         * charset.c: Include "gdb_string.h" instead of <string.h>.
6         (register_iconv_charsets): Use ISO C definition.
7         (host_charset, target_charset): Ditto.
8         * Makefile.in (charset.o): Update dependencies.
9         (mi-cmd-env.o): Update dependencies.
10
11 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12
13         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14         get_frame_base.
15
16 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
17
18         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
19         build directories.  Save edited gdb output in Mbuild.log.  If a
20         build fails, remove any final GDB executable.
21
22 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
23
24         * gdb_mbuild.sh: Edit the output of `maint print architecture'
25         replacing hex constants with function names and stripping leading
26         file name directory prefixes.
27
28 2003-01-08  Andrew Cagney  <cagney@redhat.com>
29
30         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
31         get_frame_base.
32
33 2003-01-08  David Carlton  <carlton@math.stanford.edu>
34
35         * linespec.c (decode_line_1): Move code into decode_variable.
36         (decode_variable): New function.
37
38 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
39
40         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
41
42 2003-01-08  Andrew Cagney  <cagney@redhat.com>
43
44         * cris-tdep.c (cris_frame_init_saved_regs): Use
45         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
46         saved_regs buffer.
47         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
48         (sh64_nofp_frame_init_saved_regs): Ditto.
49         (sh_fp_frame_init_saved_regs): Ditto.
50         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
51         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
52         * mcore-tdep.c (analyze_dummy_frame): Ditto.
53         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
54
55 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
56
57         * minsyms.c (lookup_minimal_symbol): Update comment.
58         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
59         (lookup_minimal_symbol_solib_trampoline): Likewise.
60
61 2003-01-08  Andrew Cagney  <cagney@redhat.com>
62
63         * d10v-tdep.c (d10v_init_extra_frame_info): Use
64         frame_relative_level.
65
66         * alpha-tdep.c: Use get_frame_extra_info.
67         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
68         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
69         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
70         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
71
72         * alpha-tdep.c: Use get_next_frame.
73         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
74         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
75         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
76         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
77         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
78         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
79         * xstormy16-tdep.c: Ditto.
80         
81 2003-01-07  Andrew Cagney  <cagney@redhat.com>
82
83         * alpha-tdep.c: Use get_frame_base.
84         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
85         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
86         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
87         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
88         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
89         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
90         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
91         * config/sparc/tm-sparc.h: Ditto.
92         
93 2003-01-07  Andrew Cagney  <cagney@redhat.com>
94
95         * frame.c (deprecated_get_frame_context): New function.
96         (deprecated_set_frame_context): New function.
97         * frame.h (deprecated_get_frame_context): Declare.
98         (deprecated_set_frame_context): Declare.
99         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
100         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
101         
102 2003-01-07  Andrew Cagney  <cagney@redhat.com>
103
104         * frame.c (deprecated_set_frame_next_hack): New function.
105         (deprecated_set_frame_prev_hack): New function.
106         * frame.h (deprecated_set_frame_next_hack): Declare.
107         (deprecated_set_frame_prev_hack): Declare.
108         * mcore-tdep.c (analyze_dummy_frame): Use
109         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
110         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
111
112 2003-01-07  David Carlton  <carlton@math.stanford.edu>
113
114         * linespec.c (decode_line_1): Move code into decode_dollar.
115         (decode_dollar): New function.
116
117 2003-01-07  Andrew Cagney  <cagney@redhat.com>
118
119         * arm-tdep.c (arm_init_extra_frame_info): Use
120         deprecated_update_frame_base_hack.
121         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
122         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
123         (fix_frame_pointer): Ditto.
124         (mn10300_analyze_prologue): Ditto.
125
126 2003-01-07  Andrew Cagney  <cagney@redhat.com>
127
128         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
129         extra_info using frame_extra_info_zalloc.
130         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
131         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
132         (sh64_init_extra_frame_info): Ditto.
133         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
134         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
135         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
136         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
137         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
138         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
139         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
140         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
141         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
142         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
143         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
144         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
145
146         * mn10300-tdep.c (analyze_dummy_frame): Use
147         deprecated_set_frame_extra_info_hack.
148         * mcore-tdep.c (analyze_dummy_frame): Ditto.
149
150 2003-01-07  J. Brobecker  <brobecker@gnat.com>
151
152         * mdebugread.c (parse_symbol): Skip stProc entries which storage
153         class is not scText. These do not define "real" procedures.
154         (parse_partial_symbols): Likewise.
155
156 2003-01-06  Michael Snyder  <msnyder@redhat.com>
157
158         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
159
160 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
161
162         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
163         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
164         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
165         deprecated_frame_xmalloc_with_cleanup.
166         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
167         deprecated_frame_xmalloc.
168         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
169         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
170
171 2003-01-06  Andrew Cagney  <cagney@redhat.com>
172
173         * x86-64-linux-tdep.c: Include "osabi.h".
174         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
175
176         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
177
178 2003-01-06  Andrew Cagney  <cagney@redhat.com>
179
180         * MAINTAINERS (Target Instruction Set Architectures): Update
181         arm-elf.  Can be built with -Werror, has been multiarched.
182
183         * value.h (unpack_long): Make buffer parameter constant.
184         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
185         * scm-lang.h (scm_parse): Ditto.
186         * defs.h (extract_typed_address, extract_address): Ditto.
187         (extract_long_unsigned_integer): Ditto.
188         * inferior.h (unsigned_pointer_to_address): Ditto.
189         (signed_pointer_to_address): Ditto.
190         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
191         * gdbarch.h, gdbarch.c: Regenerate.
192         * findvar.c (extract_long_unsigned_integer): Update.
193         (extract_address): Update.
194         (extract_typed_address): Update.
195         (unsigned_pointer_to_address): Update.
196         * values.c (unpack_long): Update.
197         (unpack_double): Update.
198         (unpack_pointer): Update.
199         (unpack_field_as_long): Update.
200         * d10v-tdep.c (d10v_pointer_to_address): Update.
201         * avr-tdep.c (avr_pointer_to_address): Update.
202         * scm-lang.c (scm_unpack): Update.
203         * findvar.c (signed_pointer_to_address): Update.
204
205 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
206
207         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
208         since it is in i386-tdep.c.
209
210 2003-01-06  J. Brobecker  <brobecker@gnat.com>
211
212         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
213         failure introduced in the previous change.
214
215 2003-01-05  Michael Chastain  <mec@shout.net>
216
217         * README: Remove references to deleted remote-*.c files:
218         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
219         remote-nrom.c, remote-os9k.c, remote-udi.c.
220
221 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
222
223         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
224         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
225         i386_get_longjmp_target.
226
227 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
228
229         * arm-tdep.c (prologue_cache): Change to a pointer.
230         (_initialize_arm_tdep): Allocate prologue_cache.
231         (check_prologue_cache): Update.
232         (save_prologue_cache): Update.
233         (arm_gdbarch_init): Update.
234
235 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
236
237         * stabsread.c (update_method_name_from_physname): Call complaint()
238         instead of error.
239
240 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
241
242         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
243         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
244         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
245
246         * blockframe.c: Include "gdbcmd.h" and "command.h".
247         (backtrace_below_main): New variable.
248         (file_frame_chain_valid, func_frame_chain_valid)
249         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
250         (generic_func_frame_chain_valid): Remove functions.
251         (frame_chain_valid, do_flush_frames_sfunc): New functions.
252         (_initialize_blockframe): New function.
253         * Makefile.in (blockframe.o): Update dependencies.
254         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
255         comment.  Call frame_chain_valid ().
256         * frame.h: Remove old prototypes.  Add prototype for
257         frame_chain_valid and update comments to match.
258         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
259         Remove old comment.
260         * gdbarch.h: Regenerated.
261         * gdbarch.c: Regenerated.
262
263         * alpha-tdep.c (alpha_gdbarch_init): Don't call
264         set_gdbarch_frame_chain_valid.
265         * avr-tdep.c (avr_gdbarch_init): Likewise.
266         * cris-tdep.c (cris_gdbarch_init): Likewise.
267         * frv-tdep.c (frv_gdbarch_init): Likewise.
268         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
269         * i386-tdep.c (i386_svr4_init_abi): Likewise.
270         (i386_nw_init_abi): Likewise.
271         (i386_gdbarch_init): Likewise.
272         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
273         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
274         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
275         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
276         * mips-tdep.c (mips_gdbarch_init): Likewise.
277         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
278         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
279         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
280         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
281         * s390-tdep.c (s390_gdbarch_init): Likewise.
282         * sh-tdep.c (sh_gdbarch_init): Likewise.
283         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
284         * v850-tdep.c (v850_gdbarch_init): Likewise.
285         * vax-tdep.c (vax_gdbarch_init): Likewise.
286         * x86-64-tdep.c (x86_64_init_abi): Likewise.
287
288         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
289         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
290         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
291         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
292         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
293         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
294         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
295         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
296
297 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
298
299         * Makefile.in (acconfig_h): Remove incorrect macro.
300         (config_h): Define.
301         (osabi.o): Update dependencies.
302         * configure.tgt: Set gdb_osabi based on target triplet.
303         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
304         * configure: Regenerated.
305         * config.in: Regenerated.
306         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
307         (GDB_OSABI_DEFAULT): Define if not already defined.
308         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
309         (set_osabi_string): New variables.
310         (gdbarch_register_osabi): Add new OS ABI to
311         gdb_osabi_available_names.
312         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
313         (set_osabi, show_osabi): New functions.
314         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
315
316 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
317
318         * arch-utils.c (gdbarch_info_init): Set osabi to
319         GDB_OSABI_UNINITIALIZED.
320         * gdbarch.sh: Add osabi to struct gdbarch and to struct
321         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
322         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
323         * gdbarch.c: Regenerated.
324         * gdbarch.h: Regenerated.
325         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
326         there's no BFD.
327         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
328         * osabi.h (enum gdb_osabi): Move to defs.h.
329         (gdbarch_init_osabi): Update prototype.
330         * defs.h (enum gdb_osabi): Moved here.
331         * Makefile.in: Update dependencies.
332
333         * alpha-tdep.h: Don't include "osabi.h".
334         (struct gdbarch_tdep): Remove osabi member.
335         * alpha-tdep.c: Include "osabi.h".
336         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
337         iterate over arches.  Update call to gdbarch_init_osabi.
338         (alpha_dump_tdep): Don't dump osabi.
339         * alpha-linux-tdep.c: Include "osabi.h".
340         * alpha-osf1-tdep.c: Include "osabi.h".
341         * alphafbsd-tdep.c: Include "osabi.h".
342         * alphanbsd-tdep.c: Include "osabi.h".
343
344         * arm-tdep.h: Don't include "osabi.h".
345         (struct gdbarch_tdep): Remove osabi member.
346         * arm-tdep.c: Include "osabi.h".
347         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
348         iterate over arches.  Update call to gdbarch_init_osabi.
349         (arm_dump_tdep): Don't dump osabi.
350         * arm-linux-tdep.c: Include "osabi.h".
351         * armnbsd-tdep.c: Include "osabi.h".
352
353         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
354         Update call to gdbarch_init_osabi.
355
356         * i386-tdep.h: Don't include "osabi.h".
357         (struct gdbarch_tdep): Remove osabi member.
358         * i386-tdep.c: Include "osabi.h".
359         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
360         iterate over arches.  Update call to gdbarch_init_osabi.
361         (i386_dump_tdep): Don't dump osabi.
362         * i386-linux-tdep.c: Include "osabi.h".
363         * i386-sol2-tdep.c: Include "osabi.h".
364         * i386bsd-tdep.c: Include "osabi.h".
365         * i386gnu-tdep.c: Include "osabi.h".
366         * i386ly-tdep.c: Include "osabi.h".
367         * i386nbsd-tdep.c: Include "osabi.h".
368         * i386obsd-tdep.c: Include "osabi.h".
369
370         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
371         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
372         check osabi when iterating over arches.  Update call to
373         gdbarch_init_osabi.
374         (mips_dump_tdep): Don't dump osabi.
375
376         * ns32k-tdep.h: Don't include "osabi.h".
377         (struct gdbarch_tdep): Remove.
378         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
379         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
380         allocate tdep.  Update call to gdbarch_init_osabi.
381         (ns32k_dump_tdep): Remove.
382         (_initialize_ns32k_tdep): Update call to gdbarch_register.
383         * ns32knbsd-tdep.c: Include "osabi.h".
384
385         * ppc-tdep.h: Don't include "osabi.h".
386         (struct gdbarch_tdep): Remove osabi member.
387         * rs6000-tdep.c: Include "osabi.h".
388         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
389         osabi when iterating over arches.  Update call to
390         gdbarch_init_osabi.
391         (rs6000_dump_tdep): Don't dump osabi.
392         * ppc-linux-tdep.c: Include "osabi.h".
393         * ppcnbsd-tdep.c: Include "osabi.h".
394
395         * sh-tdep.h: Don't include "osabi.h".
396         (struct gdbarch_tdep): Remove osabi member.
397         * sh-tdep.c: Include "osabi.h".
398         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
399         iterate over arches.  Update call to gdbarch_init_osabi.
400         (sh_dump_tdep): Don't dump osabi.
401         * shnbsd-tdep.c: Include "osabi.h".
402
403         * sparc-tdep.c: Include "osabi.h".
404         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
405         iterate over arches.  Update call to gdbarch_init_osabi.
406         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
407         tdep structure.
408
409         * vax-tdep.h: Don't include "osabi.h".
410         (struct gdbarch_tdep): Remove.
411         * vax-tdep.c: Include "osabi.h".
412         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
413         iterate over arches.  Don't allocate tdep.  Update call
414         to gdbarch_init_osabi.
415         (vax_dump_tdep): Remove.
416         (_initialize_vax_tdep): Update call to gdbarch_register.
417
418 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
419
420         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
421         entirely.
422         (breakpoint_re_set_one): Don't fetch the value for a disabled
423         watchpoint.
424
425 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
426
427         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
428         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
429         (COERCE_FLOAT_TO_DOUBLE): Remove.
430         * gdbarch.c: Regenerate.
431         * gdbarch.h: Regenerate.
432         * Makefile.in: Remove value_h from gdbarch_h.
433         * valops.c (coerce_float_to_double): New variable.
434         (default_coerce_float_to_double): Remove.
435         (standard_coerce_float_to_double): Remove.
436         (value_arg_coerce): Use coerce_float_to_double.
437         (_initialize_valops): Add "set coerce-float-to-double".
438         * value.h (default_coerce_float_to_double): Remove prototype.
439         (standard_coerce_float_to_double): Remove prototype.
440
441         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
442         prototyped.
443         * mdebugread.c (parse_symbol): Likewise.
444         * stabsread.c (define_symbol): Mark all functions as prototyped.
445
446         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
447         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
448         set_gdbarch_coerce_float_to_double.
449         * arm-tdep.c (arm_gdbarch_init): Likewise.
450         * frv-tdep.c (frv_gdbarch_init): Likewise.
451         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
452         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
453         * mips-tdep.c (mips_gdbarch_init): Likewise.
454         (mips_coerce_float_to_double): Remove.
455         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
456         (rs6000_coerce_float_to_double): Remove.
457         * s390-tdep.c (s390_gdbarch_init): Likewise.
458         * sh-tdep.c (sh_gdbarch_init): Likewise.
459         (sh_coerce_float_to_double): Remove.
460         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
461         (sparc_coerce_float_to_double): Remove.
462         * v850-tdep.c (v850_gdbarch_init): Likewise.
463         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
464         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
465         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
466         (hppa_coerce_float_to_double): Remove prototype.
467         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
468
469 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
470
471         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
472
473 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
474
475         Suggested by Stewart Brown <sb24@avaya.com>:
476         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
477         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
478         (c_type_print_varspec_suffix): Likewise.
479
480 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
481
482         * configure.in: Don't set and AC_SUBST SUBDIRS.
483         * configure: Regenerated.
484
485         * configure.in: Remove code dealing with shared libraries.
486         * Makefile.in: Remove HLDFLAGS and HLDENV.
487         * configure: Regenerated.
488
489 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
490
491         * frame.c (deprecated_frame_xmalloc): New function.
492         (deprecated_set_frame_saved_regs_hack): New function.
493         (deprecated_set_frame_extra_info_hack): New function.
494         * frame.h (deprecated_frame_xmalloc): Declare.
495         (deprecated_set_frame_saved_regs_hack): Declare.
496         (deprecated_set_frame_extra_info_hack): Declare.
497
498 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
499
500         * configure.in: Move code that provides the --enable-gdbtk option
501         right after the code that handles the --enable-tui option, and
502         polish it somewhat.
503         * configure: Regenerated.
504
505         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
506         AC_CHECK_FUNCS and remove the old check for pread64.
507         * acinclude.m4 (AC_GNU_SOURCE): New macro.
508         * acconfig.h (_GNU_SOURCE): Add.
509         (HAVE_PREAD64): Remove.
510         * configure, aclocal.m4, config.in: Regenerated.
511
512 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
513
514         * alpha-tdep.c: Use get_frame_saved_regs.
515         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
516         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
517         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
518         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
519         * vax-tdep.c, xstormy16-tdep.c: Ditto.
520
521 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
522
523         * configure.in: Remove all use of the SUBDIRS variable; add
524         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
525         code providing the --enable-multi-ice option, and move it right in
526         front of the code that checks whether gdbserver is supported.
527         Polish that too.
528         * configure: Regenerated.
529         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
530         @SUBDIRS@.
531
532 2003-01-03  Andrew Cagney  <cagney@redhat.com>
533
534         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
535         * avr-tdep.c, cris-tdep.c: Ditto.
536         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
537         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
538         
539 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
540
541         * configure.in: Remove --enable-netrom option.
542         * configure: Regenerated.
543
544 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
545
546         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
547         declaration for `struct re_pattern_buffer' instead.
548         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
549
550 2003-01-03  J. Brobecker  <brobecker@gnat.com>
551
552         * mdebugread.c (parse_symbol): Count until the stEnd matching
553         the structure name.
554
555 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
556
557         * configure.in: Remove --with-cpu option.
558         subscripts.  Remove evil changequotes here.
559         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
560         * config.in, configure: Regenerated.
561         
562         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
563         * configure.in: Cleanup section that sources GDB and BFD configure
564         subscripts.  Remove evil changequotes here.
565         * config.in, configure: Regenerated.
566
567 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
568
569         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
570         frame accessor methods.
571         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
572         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
573         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
574         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
575         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
576         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
577         * z8k-tdep.c: Ditto.
578         
579 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
580
581         * configure.in: Remove UI_OUT configuration code.
582         * ada-lang.c: Update assuming UI_OUT is always true.
583         * Makefile.in (UIOUT_CFLAGS): Remove.
584         * configure: Regenerated.
585         * TODO: Remove blurb about elimination of -DUI_OUT.
586
587         * configure.in: Move code that provides the --enable-gdbcli,
588         --enable-gdbmi options right before the code that handles the
589         --enable-tui option.  Polish a bit.
590         * configure: Regenerated.
591
592         * configure.in: Rewrite check for GNU regex and the
593         --without-included regex option, and move it into the "Checks for
594         library functions" section.  This makes us use the system regex
595         again by default on systems with version 2 of the GNU C library.
596         This was apparently broken.
597         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
598         * acconfig.h (USE_INCLUDED_REGEX): Remove.
599         * config.in, configure: Regenerated.
600
601         * configure.in: Move code that provides the --enable-tui option
602         before the "Checks for libraries" section.  Polish the code
603         somewhat and set need_curses to yes if we build the TUI.  Rewrite
604         code that looks for a library providing termcap functionality to
605         match more closely what's done in the Readline library, and move
606         it into to the "Checks for libraries" section.
607         * configure: Regenerated.
608         * Makefile.in (TERMCAP): Remove variable.
609         * config/i386/go32.mh (TERMCAP): Remove variable.
610
611 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
612
613         * MAINTAINERS: Mention gdb_mbuild.sh.
614         * gdb_mbuild.sh: Rewrite.
615
616 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
617
618         * configure.in: Fix typo in last change.
619         * config.in, configure: Regenerated.
620
621 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
622
623         * valarith.c (value_binop): Delete obsolete code and comments.
624         * configure.host: Ditto.
625         * buildsym.h (make_blockvector): Ditto.
626         * buildsym.c (make_blockvector): Ditto.
627         * defs.h (enum language): Ditto.
628         (chill_demangle): Ditto.
629         * elfread.c (elf_symtab_read): Ditto.
630         * dwarfread.c (CHILL_PRODUCER): Ditto.
631         (set_cu_language): Ditto.
632         (handle_producer): Ditto.
633         * expprint.c (print_subexp): Ditto.
634         * gdbtypes.c (chill_varying_type): Ditto.
635         * gdbtypes.h (builtin_type_chill_bool): Ditto.
636         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
637         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
638         (chill_varying_type): Ditto.
639         * language.h (_LANG_chill): Ditto.
640         * language.c (binop_result_type, integral_type): Ditto.
641         (character_type, string_type, structured_type): Ditto.
642         (lang_bool_type, binop_type_check): Ditto.
643         * stabsread.h (os9k_stabs): Ditto.
644         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
645         (define_symbol, read_type, read_struct_fields): Ditto.
646         (read_array_type, read_enum_type, read_huge_number): Ditto.
647         (read_range_type, start_stabs): Ditto.
648         * symfile.c (init_filename_language_table): Ditto.
649         (add_psymbol_with_dem_name_to_list): Ditto.
650         * symtab.c (symbol_init_language_specific): Ditto.
651         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
652         * symtab.h (struct general_symbol_info): Ditto.
653         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
654         * typeprint.c (typedef_print): Ditto.
655         * utils.c (fprintf_symbol_filtered): Ditto.
656         * valops.c (value_cast, search_struct_field, value_slice): Delete
657         obsolete code.
658         (varying_to_slice): Delete function.
659         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
660         (varying_to_slice): Delete declaration.
661         * MAINTAINERS: Update.
662
663 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
664
665         * configure.in: Reorganize "Checks for library functions section"
666         a bit.  Remove check for `btowc' and `isascii' functions.
667         * configure: Regenerated.
668
669         * acconfig.h (_MSE_INT_H): Remove.
670         * configure.in: Create "Checks for header files" section, and move
671         appropriate tests there.  Don't check for objlist.h, wchar.h,
672         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
673         misdetection fix.  Also add "Checks for types", "Checks for
674         compiler characteristics" and "Checks for library functions"
675         sections.
676         * config.in, configure: Regenerated.
677
678         * configure.in: Create "Checks for programs" section, and move
679         appropriate tests there.
680
681 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
682
683         * configure.in: Create "Checks for libraries" section, and move
684         appropriate tests there.  Cleanup check for wctype in libw.  Use
685         AC_SEARCH_LIBS to see whether we need libsocket.
686         * configure: Regenerated.
687
688 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
689
690         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
691         * config.in, configure: Regenerated.
692
693 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
694
695         * gdb_dirent.h: Cleanup and update code to match the example in
696         the Autoconf manual.
697         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
698         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
699         * configure: Regenerated.
700
701 2002-12-30  Adam Fedor  <fedor@gnu.org>
702
703         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
704         (yylex): Initialize c to avoid uninitialized warning.
705
706 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
707
708         * doc/fdl.texi: Revert the last change.
709
710 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
711
712         * tracepoint.c (ISATTY): Removed.
713
714 2002-12-26  J. Brobecker  <brobecker@gnat.com>
715
716         Continuing work to convert the hppa targets to multiarch partil.
717
718         * hppa-tdep.c: Add some missing forward declarations.
719         (frameless_function_invocation): Prefix the function name
720         by "hppa_" to avoid polluting the namespace.  Update all calls
721         to use the new function name.
722         (saved_pc_after_call): Ditto.
723         (init_extra_frame_info): Ditto.
724         (frame_chain): Ditto.
725         (push_dummy_frame): Ditto.
726         (target_read_pc): Ditto.
727         (target_write_pc): Ditto.
728         (in_solib_call_trampoline): Ditto.
729         (in_solib_return_trampoline): Ditto.
730         (skip_trampoline_code): Ditto.
731         (hppa_read_fp): New function, renamed from target_read_fp.
732         (hppa_target_read_fp): New function, using hppa_read_fp.
733         This function conforms to the function profile for the
734         READ_FP gdbarch method.
735         (hppa_extract_struct_value_address): New function, extracted
736         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
737         macro.
738         (hppa_frame_num_args): New function.
739         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
740
741         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
742         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
743         for the switch to multiarch partial.
744         Update some of the macros definitions to match some changes
745         described above in the name of the function they are calling.
746         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
747         not be straightforward to convert. Do now wrap it inside
748         "#if !... #endif" to remember that this macro has still not
749         been taken care of.
750         (FIX_CALL_DUMMY): Likewise.
751
752 2002-12-26  J. Brobecker  <brobecker@gnat.com>
753
754         Continuing work to convert the hppa targets to multiarch partial.
755
756         * hppa-tdep.c (hppa_register_raw_size): New function replacing
757         the body of macro REGISTER_RAW_SIZE.
758         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
759         config/pa/tm-hppah.h. These functions will be used to initialize
760         the gdbarch structure.
761         (hppa_hpux_pc_in_sigtramp): New function.
762         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
763         (hppa_hpux_frame_base_before_sigtramp): New function.
764         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
765         Add gdbcore.h #include.
766         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
767         of this gdbarch-eligible macro to a call to the new associated
768         function.
769         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
770         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
771         into a call to the new associated function.
772         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
773         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
774         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
775
776 2002-12-24  David Carlton  <carlton@math.stanford.edu>
777
778         * config/sparc/tm-sparc.h: Delete duplicate definition of
779         DEPRECATED_PC_IN_CALL_DUMMY.
780
781 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
782
783         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
784         $(gdb_assert_h).
785         * configure.tgt: Recognize mips64*-*-linux*.
786         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
787         (supply_32_bit_reg): New function.
788         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
789         (fill_gregset): Use regcache_collect() instead of
790         deprecated_registers[].
791         (register_addr): Change name to mips_linux_register_addr().
792         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
793         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
794         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
795         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
796         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
797         (MIPS64_LINUX_JB_PC): New defines.
798         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
799         (mips64_elf_fpregset_t): New typedefs.
800         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
801         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
802         (mips64_linux_register_addr, set_mips_linux_register_addr)
803         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
804         (init_register_addr_data)
805         New functions.
806         (fetch_core_registers): Add support for core file formats with 64-bit
807         registers.
808         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
809         (register_addr_data): New static global variable.
810         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
811         gdbarch_register_osabi() for each MIPS machine.
812         * config/mips/linux64.mt: New file.
813         * config/mips/tm-linux64.h: New file.
814
815 2002-12-23  Adam Fedor  <fedor@gnu.org>
816
817         * maint.c (maintenance_demangle): Add switch to demangle
818         ObjC language symbols as well.
819
820 2002-12-23  Adam Fedor  <fedor@gnu.org>
821
822         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
823         last argument from complaint function call.
824
825 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
826
827         * exec.c (print_section_info): Add FIXME comments regarding format
828         string choices.
829
830 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
831
832         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
833         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
834
835 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
836
837         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
838
839 2002-12-23  David Carlton  <carlton@math.stanford.edu>
840
841         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
842         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
843         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
844         information associated to a minsym, not lookup_symbol.
845
846 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
847
848         * x86-64-tdep.h (x86_64_init_abi): New prototype.
849         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
850         (x86_64_init_abi): Make non-static.  Set number of pseudo
851         registers to 0.
852         (x86_64_gdbarch_init): Remove function.
853         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
854         Remove code dealing with dissambly.
855         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
856         (_initialize_x86_64_linux_tdep): New function.
857         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
858         i386-tdep.o.
859
860 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
861
862         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
863         (struct gdb_osabi_handler): Remove member `arch'.  Add member
864         `arch_info'.
865         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
866         construct a `struct bfd_arch_info' and store it in the `struct
867         gdb_osabi_handler' that is created.
868         (gdbarch_init_osabi): Check for compatibility based on machine
869         type and architecture.
870         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
871         comment.
872         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
873         second argument in call to gdbarch_register_osabi.
874         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
875         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
876         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
877         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
878         * arm-tdep.c (_initialize_arm_tdep): Likewise.
879         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
880         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
881         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
882         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
883         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
884         * i386-tdep.c (_initialize_i386_tdep): Likewise.
885         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
886         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
887         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
888         _initialize_i386bsd_tdep and updated likewise.
889         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
890         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
891         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
892         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
893         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
894         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
895         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
896         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
897         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
898         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
899
900 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
901
902         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
903         DT_MIPS_RLD_MAP case for 64-bit targets.
904
905 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
906
907         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
908         ``temp_saved_regs'', not the pointer or other storage contiguous
909         to this pointer.
910
911 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
912
913         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
914         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
915         (mips_linux_get_longjmp_target): Delete declarations.
916         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
917         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
918         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
919         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
920         (mips_linux_get_longjmp_target)
921         (mips_linux_svr4_fetch_link_map_offsets): Make static.
922         (mips_linux_init_abi): New function.
923         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
924
925 2002-12-19  Keith Seitz  <keiths@redhat.com>
926
927         patch committed by Elena Zannoni  <ezannoni@redhat.com>
928         * thread.c (do_captured_list_thread_ids): Call prune_threads and
929         target_find_new_threads. Fix for PR mi/669.
930
931 2002-12-19  David Carlton  <carlton@math.stanford.edu>
932
933         * linespec.c (decode_line_1): Move code into decode_all_digits.
934         (decode_all_digits): New function.
935
936 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
937
938         * exec.c (print_section_info): Select a format string to use with
939         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
940
941 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
942
943         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
944         deprecated_update_current_frame_pc_hack.
945         (deprecated_update_frame_base_hack): New function.
946         * frame.h (deprecated_update_frame_pc_hack): Replace
947         (deprecated_update_frame_base_hack): Declare.
948         * infrun.c (normal_stop): Update.
949
950 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
951
952         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
953         frame_extra_info_zalloc.
954         (rs6000_frame_args_address): Use get_frame_extra_info.
955         (frame_get_saved_regs): Use get_frame_saved_regs.
956         (frame_initial_stack_address): Use get_frame_saved_regs and
957         get_frame_extra_info.
958         (frame_initial_stack_address): Use get_frame_extra_info.
959
960 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
961
962         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
963         array size.
964         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
965         checks for r3900_regnames[].
966
967 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
968
969         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
970         All uses changed
971         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
972
973 2002-12-17  David Carlton  <carlton@math.stanford.edu>
974
975         * symtab.c (lookup_partial_symbol): Don't search past the end of
976         the partial symbols.
977
978 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
979
980         * stack.c (frame_info): Use get_frame_saved_regs.
981         * breakpoint.c (until_break_command): Use get_frame_pc.
982
983 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
984
985         * buildsym.c (block_end_complaint, anon_block_end_complaint)
986         (innerblock_complaint, innerblock_anon_complaint)
987         (blockvector_complaint): Delete deprecated complaint structs.
988         (finish_block, make_blockvector, end_symtab): Replace calls
989         to complain() with calls to complaint().
990         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
991         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
992         (unexpected_type_complaint, bad_sclass_complaint)
993         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
994         Delete deprecated complaint structs.
995         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
996         Replace calls to complain() with calls to complaint().
997         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
998         (unknown_symtype_complaint, unknown_symchar_complaint)
999         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
1000         (lbrac_mismatch_complaint, repeated_header_complaint)
1001         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
1002         Delete deprecated complaint structs.
1003         (unknown_symtype_complaint, lbrac_mismatch_complaint)
1004         (repeated_header_complaint)
1005         (function_outside_compiliation_unit_complaint): New functions.
1006         (add_old_header_file, find_corresponding_bincl_psymtab)
1007         (set_namestring, find_stab_function_addr, read_dbx_symtab)
1008         (process_one_symbol): Replace calls to complain() with, possibly
1009         indirect, calls to complaint().
1010         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
1011         (unknown_attribute_form, unknown_attribute_length)
1012         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
1013         (const_ignored, botched_modified_type, op_deref2, op_deref4)
1014         (basereg_not_handled, dup_user_type_allocation)
1015         (dup_user_type_definition, missing_tag, bad_array_element_type)
1016         (subscript_data_items, unhandled_array_subscript_format)
1017         (unknown_array_subscript_format, not_row_major)
1018         (missing_at_name): Delete deprecated complaint structs.
1019         (bad_die_ref_complaint, unknown_attribute_form_complaint)
1020         (dup_user_type_definition_complaint)
1021         (bad_array_element_type_complaint): New functions.
1022         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
1023         (decode_subscript_data_item, dwarf_read_array_type)
1024         (read_tag_string_type, read_subroutine_type, read_func_scope)
1025         (locval, scan_partial_symbols, decode_modified_type)
1026         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1027         (attribute_size): Replace calls to complain() with, possibly
1028         indirect, calls to complaint().
1029         * elfread.c (section_info_complaint, section_info_dup_complaint)
1030         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1031         Delete deprecated complaint structs.
1032         (elf_symtab_read, elfstab_offset_sections): Replace calls to
1033         complain() with calls to complaint().
1034         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1035         struct.
1036         (stub_noname_complaint): New function.
1037         (check_typedef, add_mangled_type): Replace calls to complain()
1038         with calls to complaint().
1039         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1040         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1041         (hpread_unhandled_type_complaint, hpread_struct_complaint)
1042         (hpread_array_complaint, hpread_type_lookup_complaint)
1043         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1044         (hpread_unhandled_common_complaint)
1045         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1046         struct definitions and declarations.
1047         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1048         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1049         Replace calls to complain() with, possibly indirect, calls to
1050         complaint().
1051         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1052         Likewise.
1053         * mdebugread.c (bad_file_number_complaint, index_complaint)
1054         (aux_index_complaint, block_index_complaint)
1055         (unknown_ext_complaint, unknown_sym_complaint)
1056         (unknown_st_complaint, block_overflow_complaint)
1057         (basic_type_complaint, unknown_type_qual_complaint)
1058         (array_index_type_complaint, bad_tag_guess_complaint)
1059         (block_member_complaint, stEnd_complaint)
1060         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1061         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1062         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1063         (bad_continued_complaint, bad_rfd_entry_complaint)
1064         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1065         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1066         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1067         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1068         complaint structs.
1069         (index_complaint, unknown_ext_complaint, basic_type_complaint)
1070         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1071         (unexpected_type_code_complaint)
1072         (function_outside_compilation_unit_complaint): New functions.
1073         (parse_symbol, parse_type, upgrade_type, parse_procedure)
1074         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1075         Replace calls to complain() with, possibly indirect calls to
1076         complaint().
1077         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1078         Delete deprecated complaint structs.
1079         (lookup__objc_class, lookup_child_selector): Replace complain()
1080         with complaint().
1081         * remote-vx.c (cant_contact_target): Delete deprecated complaint
1082         struct.
1083         (vx_lookup_symbol): Replace complain() with complaint().
1084         * stabsread.c (invalid_cpp_abbrev_complaint)
1085         (invalid_cpp_type_complaint, member_fn_complaint)
1086         (const_vol_complaint, error_type_complaint)
1087         (invalid_member_complaint, range_type_base_complaint)
1088         (reg_value_complaint, vtbl_notfound_complaint)
1089         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1090         (unresolved_sym_chain_complaint, stabs_general_complaint)
1091         (lrs_general_complaint, multiply_defined_struct): Delete
1092         deprecated complaint structs.
1093         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1094         (stabs_general_complaint, lrs_general_complaint)
1095         (msg_unknown_complaint): New functions.
1096         (dbx_lookup_type, read_cfront_baseclasses)
1097         (read_cfront_member_functions, resolve_symbol_reference)
1098         (define_symbol, resolve_live_range, add_live_range, read_type)
1099         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1100         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1101         (read_cfront_static_fields, attach_fields_to_type)
1102         (complain_about_struct_wipeout, read_range_type)
1103         (common_block_start, common_block_end, cleanup_undefined_types)
1104         (scan_file_globals): Replace complain() with complaint().
1105         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1106         Delete deprecated complaint struct declarations.
1107         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1108         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1109         (bf_not_found_complaint, ef_complaint, eb_complaint)
1110         (function_outside_compilation_unit_complaint): New functions.
1111         (record_include_begin, record_include_end, enter_line_range)
1112         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1113         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1114         complain() with complaint().
1115
1116 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1117
1118         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1119         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1120         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1121         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1122         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1123         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1124         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1125         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1126         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1127         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1128         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1129         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1130         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1131         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1132         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1133         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1134         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1135         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1136         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1137         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1138         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1139         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1140         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1141         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1142         * config/m88k/xm-dgux.h: Delete.
1143         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1144         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1145         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1146         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1147         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1148         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1149         * ch-valprint.c: Delete.
1150         
1151 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1152
1153         * infrun.c (handle_inferior_event): Rearrange code to resume if
1154         no catchpoint triggers for an event.
1155
1156 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1157
1158         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1159         and TARGET_WAITKIND_VFORKED cases.
1160
1161 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1162
1163         * infrun.c (handle_inferior_event): Assume that catchpoints
1164         are not affected by DECR_PC_AFTER_BREAK.
1165
1166 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1167
1168         * target.c (update_current_target): Don't inherit DONT_USE.
1169         * target.h (struct target_ops): Remove DONT_USE.
1170         (target_next): Remove macro.
1171
1172 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1173
1174         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1175
1176 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1177
1178         * arm-tdep.c (convert_from_extended): New argument to hold the
1179         type of floating point result we want to convert to.  Make input 
1180         argument const.  Fix all callers.
1181         (convert_to_extended): Similarly.
1182         (arm_extract_return_value): Now takes a regcache argument.  Change
1183         code to use regcache accessor functions.  Correctly extract 
1184         smaller-than-word results on big-endian machines.
1185         (arm_store_return_value): Now takes a regcache argument.  Change
1186         code to use regcache accessor functions.  Correctly zero/sign extend
1187         smaller than word results before storing into r0.
1188         (arm_gdbarch_init): Register new-style extract_return_value and
1189         store_return_value functions.
1190
1191 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1192
1193         * thread-db.c (thread_from_lwp): Uniquify error msg.
1194         (lwp_from_thread): Ditto.
1195         (check_event): Ditto.
1196         (find_new_threads_callback): Ditto.
1197         (thread_db_pid_to_str): Ditto.
1198
1199 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1200
1201         * frame.h (get_frame_saved_regs): Declare.
1202         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1203         pointer.
1204         * frame.c (get_frame_saved_regs): New function.
1205         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1206
1207 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1208
1209         * frame.c (deprecated_update_current_frame_pc_hack): New
1210         function.
1211         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1212         * infrun.c (normal_stop): Use said function instead of directly
1213         modifying the frame's PC.
1214         
1215 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1216
1217         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1218
1219 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1220
1221         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1222         config/mips/tm-irix6.h (NUM_REGS): Delete.
1223         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1224         (temp_saved_regs): Declare as a pointer rather than an array.
1225         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1226         that ``temp_saved_regs'' has storage allocated to it and that
1227         it's the correct size.
1228
1229 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1230
1231         * defs.h (init_last_source_visited): New prototype.
1232         (add_path): Ditto.
1233         * source.c (add_path): New function that adds to a specified path.
1234         (mod_path): Change to call add_path.
1235         (init_last_source_visited): New function to allow interfaces to
1236         initialize static variable: last_source_visited.  Part of fix
1237         for PR gdb/741.
1238         * Makefile.in: Add support for mi/mi-cmd-env.c.
1239
1240 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1241
1242         * frame.h (frame_id_unwind): Declare.
1243         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1244         id_unwind_cache.
1245         (frame_id_unwind_ftype): Declare.
1246         * frame.c (frame_id_unwind): New function.
1247         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1248         (create_new_frame, get_prev_frame): Pass id_unwind to
1249         set_unwind_by_pc.
1250         (frame_saved_regs_id_unwind): New function.
1251         (frame_saved_regs_id_unwind): New function.
1252         * dummy-frame.c (dummy_frame_id_unwind): New function.
1253         (struct dummy_frame): Add field id.
1254         (generic_push_dummy_frame): Initialize `id'.
1255         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1256
1257 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1258
1259         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1260         pass that to set_momentary_breakpoint.  Move comments to where they
1261         belong.
1262         * frame.h (set_current_frame): Delete declaration.
1263         * frame.c (set_current_frame): Delete function.
1264
1265 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1266
1267         * frame.c (frame_extra_info_zalloc): New function.
1268         * frame.h (frame_extra_info_zalloc): Declare.
1269
1270 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1271
1272         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1273         in the previous prototype change to set_momentary_breakpoint.
1274
1275 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1276
1277         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1278         and saw_child_exec.
1279         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1280         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1281         (stop_stepping): Remove outdated check for child vfork events.
1282
1283 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1284
1285         * GDB 5.3 released from gdb_5_3-branch.
1286
1287 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1288
1289         * corelow.c (init_core_ops): Delete references to to_require_attach
1290         and to_require_detach.
1291         * exec.c (init_exec_ops): Likewise.
1292         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1293         hppa_require_detach directly.
1294         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1295         * inftarg.c (child_detach): Remove.
1296         (child_detach_from_process): Rename to child_detach, remove
1297         after_fork argument.
1298         (child_attach): Remove.
1299         (child_attach_to_process): Rename to child_attach, remove after_fork
1300         argument.
1301         (init_child_ops): Delete references to to_require_attach
1302         and to_require_detach.
1303         * infttrace.c (hppa_require_attach): Update comment.
1304         * target.c (cleanup_target, update_current_target)
1305         (init_dummy_target, setup_target_debug): Delete references to
1306         to_require_attach and to_require_detach.
1307         (find_default_require_detach, find_default_require_attach)
1308         (debug_to_require_attach, debug_to_require_detach): Remove
1309         functions.
1310         * target.h (struct target_ops): Remove to_require_attach
1311         and to_require_detach.
1312         (target_require_attach, target_require_detach): Delete macros.
1313         (find_default_require_detach, find_default_require_attach): Delete
1314         prototypes.
1315         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1316
1317 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1318
1319         * frame.c (get_frame_extra_info): New function.
1320         * frame.h (get_frame_extra_info): Declare.
1321
1322 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1323
1324         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1325         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1326         with `struct frame_id'.
1327         (set_longjmp_resume_breakpoint): Ditto.
1328         * infrun.c (handle_inferior_event): Update.
1329         * breakpoint.c (watch_command_1, until_break_command): Update.
1330         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1331         (handle_inferior_event, step_over_function): Update.
1332         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1333         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1334         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1335         * infcmd.c (finish_command, run_stack_dummy): Update.
1336
1337 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1338
1339         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1340         (dwarf2_non_const_array_bound_ignored)
1341         (dwarf2_missing_line_number_section)
1342         (dwarf2_statement_list_fits_in_line_number_section)
1343         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1344         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1345         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1346         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1347         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1348         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1349         (dwarf2_missing_member_fn_type_complaint)
1350         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1351         (dwarf2_const_value_length_mismatch)
1352         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1353         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1354         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1355         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1356         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1357         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1358         complaints using deprecated struct..
1359         (dwarf2_non_const_array_bound_ignored_complaint)
1360         (dwarf2_complex_location_expr_complaint)
1361         (dwarf2_unsupported_at_frame_base_complaint)
1362         (dwarf2_const_value_length_mismatch_complaint)
1363         (dwarf2_macros_too_long_complaint)
1364         (dwarf2_macro_malformed_definition_complaint)
1365         (dwarf2_invalid_attrib_class_complaint): New functions.
1366         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1367         (read_structure_scope, read_array_type, read_common_block)
1368         (read_tag_pointer_type, read_base_type, read_partial_die)
1369         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1370         (new_symbol, dwarf2_const_value, read_type_die)
1371         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1372         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1373         complain() with, possibly indirect, calls to complaint().
1374
1375 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1376
1377         * frame.c (deprecated_get_frame_saved_regs): Rename
1378         get_frame_saved_regs.
1379         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1380         * sparc-tdep.c: Update.
1381         * hppa-tdep.c: Update.
1382         * h8500-tdep.c: Update.
1383
1384 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1385
1386         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1387         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1388         ``char *'' for return and parameter types.
1389         * gdbarch.h, gdbarch.c: Regenerate.
1390         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1391         return type from ``char *'' to ``const char *''.
1392         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1393         const.
1394
1395 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1396
1397         * i386-tdep.c: Include "dummy-frame.h".
1398         (i386_frame_chain, i386_frame_saved_pc): Replace
1399         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1400         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1401
1402 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1403
1404         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1405         Change to a function with predicate.
1406         * gdbarch.h, gdbarch.c: Re-generate.
1407         * frame.c (get_prev_frame): Update.  Test
1408         DEPRECATED_INIT_FRAME_PC_P.
1409         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1410         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1411         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1412         * alpha-tdep.c (alpha_gdbarch_init): Update.
1413         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1414         * mips-tdep.c (mips_gdbarch_init): Update.
1415         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1416         * arm-tdep.c: Update comments.
1417         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1418         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1419         * frv-tdep.c (frv_gdbarch_init): Ditto.
1420         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1421         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1422         * s390-tdep.c (s390_gdbarch_init): Ditto.
1423         * v850-tdep.c (v850_gdbarch_init): Ditto.
1424         * vax-tdep.c (vax_gdbarch_init): Ditto.
1425         * sh-tdep.c (sh_gdbarch_init): Ditto.
1426         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1427         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1428         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1429         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1430         * i386-tdep.c (i386_gdbarch_init): Ditto.
1431         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1432         * cris-tdep.c (cris_gdbarch_init): Ditto.
1433         * avr-tdep.c (avr_gdbarch_init): Ditto.
1434         * arm-tdep.c (arm_gdbarch_init): Ditto.
1435         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1436         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1437
1438 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1439
1440         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1441         CHILD_FOLLOW_FORK.
1442         * hppah-nat.c (saved_vfork_pid): Add.
1443         (child_post_follow_vfork): Remove.
1444         (child_follow_fork): New function.
1445         (child_wait): Call detach_breakpoints after receiving the child vfork.
1446         Call child_resume directly instead of going through resume ().
1447         Make sure we have the exec before reporting the vfork.
1448         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1449         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1450         (follow_fork): New function.  Call target_follow_fork.
1451         (follow_inferior_reset_breakpoints): New function broken out from
1452         old follow_inferior_fork.
1453         (resume): Remove hack to follow exec after vfork.
1454         * inftarg.c (child_post_follow_vfork): Remove.
1455         (child_follow_fork): New function.
1456         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1457         * target.c (cleanup_target): Replace to_post_follow_vfork with
1458         to_follow_fork.
1459         (update_current_target): Likewise.
1460         (setup_target_debug): Likewise.
1461         (debug_to_post_follow_vfork): Remove.
1462         (debug_to_follow_fork): New function.
1463         * target.h (struct target_ops): Replace to_post_folow_vfork with
1464         to_follow_fork.
1465         (child_post_follow_vfork): Remove prototype.
1466         (child_follow_fork): Add prototype.
1467         (target_post_follow_vfork): Remove macro.
1468         (target_follow_fork): Add macro.
1469
1470 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1471
1472         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1473         (child_post_follow_vfork): Cancel pending exec event if we follow
1474         the parent.
1475         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1476         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1477         event at the following wait call if necessary.
1478         * infrun.c (follow_vfork): Don't follow_exec here.
1479         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1480         case about HP/UX 10.20.  Remove code pushed down to
1481         hppah-nat.c:child_wait.
1482         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1483         vfork_in_flight is set.
1484
1485 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1486
1487         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1488         for the parent's fork event.
1489         * infrun.c (handle_inferior_event): Only expect one fork event.
1490         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1491         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1492
1493 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1494
1495         * PROBLEMS: Delete reference to PR gdb/725.
1496         
1497         * MAINTAINERS (gdb.c++): Add David Carlton.
1498
1499 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1500
1501         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1502         * cli/cli-cmds.c: Ditto.
1503
1504 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1505
1506         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1507         function address in <>.
1508         * gdbarch.c: Re-generate.
1509
1510 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1511
1512         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1513
1514 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1515
1516         * linespec.c (symtab_from_filename): New function.
1517         (decode_line_1): Move code into symtab_from_filename.
1518
1519 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1520
1521         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1522
1523 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1524
1525         * f-valprint.c (info_common_command): Use get_frame_pc.
1526         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1527         * ax-gdb.c (agent_command): Ditto.
1528         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1529         (rs6000_pop_frame): Ditto.
1530         (rs6000_frameless_function_invocation): Ditto.
1531         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1532         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1533         * macroscope.c (default_macro_scope): Ditto.
1534         * stack.c (print_frame_info_base): Ditto.
1535         (print_frame, frame_info, print_frame_label_vars): Ditto.
1536         (return_command, func_command, get_frame_language): Ditto.
1537         * infcmd.c (finish_command): Ditto.
1538         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1539         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1540         (break_at_finish_at_depth_command_1): Ditto.
1541         (break_at_finish_command_1): Ditto.
1542         (until_break_command, get_catch_sals): Ditto.
1543         * blockframe.c (func_frame_chain_valid): Ditto.
1544         (frameless_look_for_prologue): Ditto.
1545         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1546
1547 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1548
1549         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1550         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1551
1552 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1553
1554         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1555         to pure functions.
1556         * gdbarch.h, gdbarch.c: Re-generate.
1557         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1558         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1559
1560         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1561         declaration to a function returning a CORE_ADDR.
1562         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1563         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1564         (init_frame_pc_default): Ditto.
1565         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1566         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1567         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1568         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1569         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1570         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1571
1572         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1573         to init_frame_pc_noop.
1574         (i386_interix_init_frame_pc): Delete function.
1575         * z8k-tdep.c (init_frame_pc): Delete function.
1576         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1577         (INIT_FRAME_PC_FIRST): Ditto.
1578         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1579         (INIT_FRAME_PC_FIRST): Ditto.
1580         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1581         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1582         init_frame_pc_noop.
1583         (INIT_FRAME_PC_FIRST): Convert to an expression.
1584         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1585
1586 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1587
1588         * blockframe.c: Use get_frame_base instead of directly accessing
1589         the `struct frame_info' member frame.
1590         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1591         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1592
1593 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1594
1595         * Makefile.in (readline_h): Define.
1596         (completer.o): Depend on readline_h.
1597         (corelow.o): Ditto.
1598         (event-top.o): Ditto.
1599         (exec.o): Ditto.
1600         (solib.o): Ditto.
1601         (source.o): Ditto. 
1602         (symfile.o): Ditto. 
1603         (symmisc.o): Ditto. 
1604         (top.o): Ditto.
1605         (tracepoint.o): Ditto. 
1606         (utils.o): Ditto.
1607         (cli-dump.o): Ditto.
1608         (tui-hooks.o): Ditto. 
1609         (tuiWin.o): Ditto. 
1610
1611 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1612
1613         More cleanup from import of readline 4.3.
1614         * completer.h (complete_line, readline_line_completion_function):
1615         Update prototypes.
1616         (line_completion_function): Removed, not used outside of completer.c.
1617         * completer.c (readline_line_completion_function,
1618         complete_function, line_completion_function): Use const for first
1619         parameter.
1620         (line_completion_function): Make static.
1621         (filename_completer): filename_completion_function is now called
1622         rl_filename_completion_function
1623         * corelow.c: Include <readline/readline.h>.
1624         * exec.c: Ditto.
1625         * solib.c: Ditto.
1626         * source.c: Ditto.
1627         * symfile.c: Ditto.
1628         * symmisc.c: Ditto.
1629         * top.c (init_main): No need to coerce
1630         readline_line_completion_function anymore.
1631         * cli/cli-dump.c: Include <readline/readline.h>.
1632
1633 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1634
1635         * stack.c (frame_info): Use get_prev_frame.
1636         * blockframe.c (frame_address_in_block): Ditto.
1637         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1638         (rs6000_frameless_function_invocation): Ditto.
1639         (rs6000_frame_saved_pc): Ditto.
1640         (rs6000_frame_chain): Ditto.
1641         * arch-utils.c (init_frame_pc_default): Ditto.
1642
1643 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1644
1645         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1646         Delete redundant definition.
1647
1648 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1649
1650         Import of readline 4.3:
1651         * cli/cli-cmds.c: Include readline/tilde.h.
1652         * cli/cli-setshow.c: Ditto.
1653         * defs.h: Don't declare tilde_expand anymore, since readline
1654         exports it.
1655
1656 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1657
1658         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1659         -Werror on this file.
1660
1661 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1662
1663         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1664         the format name.
1665         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1666         * gdbarch.c: Regenerate.
1667         
1668 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1669
1670         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1671         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1672         provide a default value.
1673         * gdbarch.h, gdbarch.c: Regenerate.
1674         * frame.c (get_prev_frame): Update.  Check
1675         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1676         * s390-tdep.c (s390_gdbarch_init): Update.
1677         * mips-tdep.c (mips_gdbarch_init): Update.
1678         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1679         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1680         * alpha-tdep.c (alpha_gdbarch_init): Update.
1681         
1682 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1683
1684         * ia64-linux-nat.c: Include gdb_string.h.
1685         * alpha-nat.c: Ditto.
1686         * ppc-linux-nat.c: Ditto.
1687         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1688         Update dependencies.
1689
1690 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1691
1692         * gdbthread.h: Include "frame.h".
1693         (struct thread_info): Replace step_frame_address with
1694         step_frame_id.
1695         * inferior.h: Include "frame.h".
1696         (step_frame_id): Replace external variable step_frame_address.
1697         * gdbthread.h (save_infrun_state): Replace step_frame_address
1698         parameter with step_frame_id parameter.
1699         (load_infrun_state): Ditto.
1700         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1701         * infcmd.c (step_frame_id, step_1, step_once): Update.
1702         * thread.c (load_infrun_state, save_infrun_state): Update.
1703         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1704         (handle_inferior_event, step_over_function): Update.
1705         (normal_stop, context_switch, restore_inferior_status): Update.
1706         (struct inferior_status): Replace step_frame_address with
1707         step_frame_id.
1708
1709 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1710
1711         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1712         DW_TAG_member as well as a declaration as being a C++ static data
1713         member.
1714         (read_structure_scope): Combine tests for DW_TAG_member and
1715         DW_TAG_variable.
1716
1717 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1718
1719         * linespec.c (decode_compound): New function.
1720         (decode_line_1): Move code into decode_compound.
1721
1722 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1723
1724         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1725         argument.
1726         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1727         the static block.  See PR gdb/804.
1728
1729 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1730
1731         * symtab.c (lookup_symbol_aux_block): New function.
1732         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1733
1734 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1735
1736         * gdbarch.sh: Dump the predicate function and macro values.
1737         (read): Print error on standard error.
1738         * gdbarch.c: Regenerate.
1739         
1740 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1741
1742         * Makefile.in (mips_tdep_h): Define.
1743         (mips-tdep.o): Add mips_tdep_h to dependency list.
1744         * mips-tdep.h: New file.
1745         * mips-tdep.c (mips-tdep.h): Include.
1746         (enum mips_abi): Move to mips-tdep.h.
1747         (mips_abi): New function.
1748
1749 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1750
1751         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1752
1753 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1754
1755         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1756         function.
1757         (lookup_symbol_aux_minsyms): New function.
1758
1759 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1760
1761         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1762
1763 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1764
1765         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1766         which is an obsolete macro name.
1767
1768 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1769
1770         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1771         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1772
1773 2002-12-03  H.J. Lu  (hjl@gnu.org)
1774
1775         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1776         (create_breakpoints): Make sure the addr_string field is not
1777         NULL.
1778
1779 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1780
1781         * sparc-nat.c (fetch_inferior_registers)
1782         (store_inferior_registers): Add comment on problem of LWP vs
1783         threads.
1784         
1785         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1786         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1787         (lin_lwp_store_registers): Remove.
1788         (init_lin_lwp_ops): Use fetch_inferior_registers
1789         and store_inferior_registers directly.
1790         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1791         (store_inferior_registers): Likewise.
1792         Fix PR gdb/725.
1793
1794 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1795
1796         * frame.h (get_frame_id): Convert to a function.
1797         (null_frame_id, frame_id_p): Declare.
1798         (frame_id_eq, frame_id_inner): Declare.
1799         (frame_id_build): New function.
1800         * frame.c (get_frame_id): Update.  Use null_frame_id.
1801         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1802         frame_id_inner.
1803         (null_frame_id, frame_id_p): Define.
1804         (frame_id_eq, frame_id_inner): Define.
1805         (frame_id_build): New function.
1806         * varobj.c (varobj_create): Update.
1807         (varobj_update): Update.
1808         * valops.c (value_assign): Update.
1809         (new_root_variable): Update.
1810         * infrun.c (save_inferior_status): Update.
1811         * breakpoint.c (watch_command_1): Update.
1812
1813 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1814
1815         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1816         (SNAP2): Likewise.
1817
1818 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1819
1820         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1821         patch.
1822
1823         * PROBLEMS: Mention PR gdb/725.
1824
1825 2002-12-03  Andreas Schwab  <schwab@suse.de>
1826
1827         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1828
1829 2002-12-02  Adam Fedor  <fedor@gnu.org>
1830             Klee Dienes  <kdienes@apple.com>
1831
1832         * objc-lang.c (objc_printstr): Add width arg to match
1833         printstr prototype.
1834         (compare_selectors): Add 'const' to arg types.
1835         (compare_classes): Likewise.
1836         (find_imps): Cast msym pointer to avoid compiler warning.
1837         (print_object_command): Validate the address before
1838         passing it to the print routine.
1839         (find_objc_msgcall_submethod): Change function argument to
1840         return an int.
1841         * objc-lang.h: Add 'extern' to all function declarations.
1842         (value_nsstring): Add declaration.
1843
1844 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1845
1846         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1847         Fixes a build failure on HP/UX.
1848
1849         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1850         failure on HP/UX. 
1851         (hpread_has_name): Advance declaration to avoid a compilation warning.
1852         (pst_syms_count): Add missing variable type. By change, the compiler
1853         was defaulting to int, which seems a good choice. Fixes a compilation
1854         warning.
1855         (pst_syms_size): Likewise.
1856  
1857 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1858
1859         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1860         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1861         later to set the proper gdbarch methods depending on the osabi.
1862         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1863
1864 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1865
1866         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1867         * osabi.c (gdb_osabi_name): Add strings images for the two new
1868         enum values.
1869         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1870
1871 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1872
1873         * MAINTAINERS (Java): Global maintainers are responible for Java.
1874         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1875         part Java maintainers.
1876
1877 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1878
1879         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1880         Fixes a compilation failure on AiX.
1881
1882 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1883
1884         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1885         why aix-thread.o is not listed.
1886
1887 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1888
1889         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1890         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1891         * gdbarch.h, gdbarch.c: Re-generate.
1892         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1893         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1894         * config/pa/tm-hppa.h, frame.h: Update.
1895         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1896         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1897         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1898         * cris-tdep.c, alpha-tdep.c: Update.
1899         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1900         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1901         (get_prev_frame): Ditto.
1902
1903 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1904
1905         * exec.c (xfer_memory): Replace boolean with int.
1906         * p-exp.y: Use 0 instead of false.
1907         * corelow.c (gdb_check_format): Change return type to int from
1908         boolean.
1909         * utils.c: Don't include <curses.h> or <term.h> first.
1910
1911 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1912
1913         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1914         (m68hc11_register_byte): Remove.
1915         (m68hc11_gdbarch_init): Don't set the above.
1916
1917 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1918
1919         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1920         by calling get_selected_frame.
1921         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1922         set_current_frame, create_new_frame, select_frame and
1923         get_current_frame.
1924         * remote-e7000.c (e7000_start_remote): Ditto.
1925         * remote-mips.c (common_open): Ditto
1926         * remote-rdp.c (remote_rdp_open): Ditto.
1927
1928 2002-11-29  Andreas Schwab  <schwab@suse.de>
1929
1930         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1931         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1932         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1933         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1934         read_memory_unsigned_integer instead of read_memory_integer when
1935         dealing with addresses and instruction opcodes.
1936         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1937         (m68k_linux_frame_saved_pc): Likewise.
1938
1939 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1940
1941         * stack.c (selected_frame, select_frame): Move from here ...
1942         * frame.c (selected_frame, select_frame): ... to here.  Include
1943         "language.h".
1944         * Makefile.in (frame.o): Update dependencies.
1945         * frame.c (get_selected_frame): New function.
1946         * frame.h (get_selected_frame): Declare.
1947         (deprecated_selected_frame): Rename selected_frame.
1948         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1949         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1950         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1951         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1952         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1953         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1954         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1955         * z8k-tdep.c, cli/cli-cmds.c: Update.
1956         
1957 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1958
1959         * frame.h (get_selected_block): Add comments.
1960
1961 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1962
1963         * frame.c (pc_notcurrent): New function.
1964         (find_frame_sal): New function.
1965         * frame.h (find_frame_sal): Declare.
1966         (struct symtab_and_line): Add opaque declaration.
1967         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1968         find_pc_line.
1969         (frame_info): Ditto.
1970         * ada-lang.c (find_printable_frame): Ditto.
1971
1972 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1973
1974         * configure.in: Check that the pthdebug library is recent enough
1975         before enabling thread support on native AiX.
1976         * configure: Regenerate.
1977
1978         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1979         from the list of object files as it is now appended by configure
1980         if thread support is enabled.
1981         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1982         if thread support is enabled.
1983
1984 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1985
1986         * stack.c (get_selected_block): In-line get_current_block.
1987         * frame.h (get_current_block): Delete declaration.
1988         * blockframe.c (get_current_block): Delete function.
1989
1990 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1991
1992         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1993         USE_GENERIC_DUMMY_FRAMES.
1994         * gdbarch.h, gdbarch.c: Regenerate.
1995         * valops.c, frame.c: Update.
1996         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1997         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1998         * config/pa/tm-hppa.h, blockframe.c: Update.
1999         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
2000         * m68k-tdep.c, alpha-tdep.c: Ditto.
2001
2002         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
2003         * mips-tdep.c: Ditto.
2004
2005 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
2006
2007         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
2008         (USE_GENERIC_DUMMY_FRAMES): Default to true.
2009         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
2010         * gdbarch.c, gdbarch.h: Re-generate.
2011         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
2012         (CALL_DUMMY_LOCATION): Delete macro definition.
2013         (PC_IN_CALL_DUMMY): Delete macro definitions.
2014         
2015         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
2016         default is already generic_pc_in_call_dummy.
2017         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2018         * v850-tdep.c (v850_gdbarch_init): Ditto.
2019         * sh-tdep.c (sh_gdbarch_init): Ditto.
2020         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2021         * mips-tdep.c (mips_gdbarch_init): Ditto.
2022         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2023         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2024         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2025         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2026         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2027         * avr-tdep.c (avr_gdbarch_init): Ditto.
2028         
2029         * arm-tdep.c (arm_gdbarch_init): Do not set
2030         use_generic_dummy_frames, default is already 1.
2031         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2032         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2033         * v850-tdep.c (v850_gdbarch_init): Ditto.
2034         * sh-tdep.c (sh_gdbarch_init): Ditto.
2035         * s390-tdep.c (s390_gdbarch_init): Ditto.
2036         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2037         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2038         * mips-tdep.c (mips_gdbarch_init): Ditto.
2039         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2040         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2041         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2042         * i386-tdep.c (i386_gdbarch_init): Ditto.
2043         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2044         * frv-tdep.c (frv_gdbarch_init): Ditto.
2045         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2046         * cris-tdep.c (cris_gdbarch_init): Ditto.
2047         * avr-tdep.c (avr_gdbarch_init): Ditto.
2048
2049         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2050         call_dummy_location, default is already AT_ENTRY_POINT.
2051         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2052         * v850-tdep.c (v850_gdbarch_init): Ditto.
2053         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2054         * sh-tdep.c (sh_gdbarch_init): Ditto.
2055         * s390-tdep.c (s390_gdbarch_init): Ditto.
2056         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2057         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2058         * mips-tdep.c (mips_gdbarch_init): Ditto.
2059         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2060         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2061         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2062         * i386-tdep.c (i386_gdbarch_init): Ditto.
2063         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2064         * frv-tdep.c (frv_gdbarch_init): Ditto.
2065         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2066         * cris-tdep.c (cris_gdbarch_init): Ditto.
2067         * avr-tdep.c (avr_gdbarch_init): Ditto.
2068         * arm-tdep.c (arm_gdbarch_init): Ditto.
2069         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2070
2071 2002-11-28  Andrew Cagney  <cagney@redhat.com>
2072
2073         * frame.h: Update comments on set_current_frame, create_new_frame,
2074         flush_cached_frames, reinit_frame_cache, select_frame and
2075         selected_frame.
2076         
2077 2002-11-27  Andrew Cagney  <cagney@redhat.com>
2078
2079         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2080         deprecated pc_in_call_dummy function.
2081         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2082         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2083         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2084         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2085         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2086
2087 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
2088
2089         * Makefile.in: Remove Tix dependencies.
2090         * acinclude.m4: Ditto.
2091         * aclocal.m4: Ditto.
2092         * configure.in: Ditto.
2093         * configure: Regenerated.
2094         
2095 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2096
2097         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2098         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2099         * gdbarch.c: Re-generate.
2100         
2101 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2102
2103         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2104         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2105         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2106         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2107         pc_in_call_dummy_at_entry_point.
2108         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2109         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2110         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2111         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2112         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2113         pc_in_call_dummy_on_stack.
2114         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2115         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2116         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2117         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2118         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2119         
2120 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2121
2122         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2123         pc_in_call_dummy_before_text_end
2124         (deprecated_pc_in_call_dummy_after_text_end): Rename
2125         pc_in_call_dummy_after_text_end.
2126         (deprecated_pc_in_call_dummy_on_stack): Rename
2127         pc_in_call_dummy_on_stack.
2128         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2129         pc_in_call_dummy_at_entry_point.
2130         * m68k-tdep.c (m68k_gdbarch_init): Update.
2131         * s390-tdep.c (s390_gdbarch_init): Update.
2132         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2133         * vax-tdep.c (vax_gdbarch_init): Update.
2134         * sparc-tdep.c (sparc_gdbarch_init): Update.
2135         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2136         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2137         * i386-tdep.c (i386_gdbarch_init): Update.
2138         * frv-tdep.c (frv_gdbarch_init): Update.
2139         * cris-tdep.c (cris_gdbarch_init): Update.
2140         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2141         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2142         (deprecated_pc_in_call_dummy_after_text_end)
2143         (deprecated_pc_in_call_dummy_on_stack)
2144         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2145         * alpha-tdep.c (alpha_gdbarch_init): Update.
2146
2147 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2148
2149         * acconfig.h (HAVE_PREAD64): Add.
2150         * configure.in: Check for pread64.
2151         * config.in: Regenerated.
2152         * configure: Regenerated.
2153         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2154         * linux-proc.c (linux_proc_xfer_memory): New function.
2155         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2156
2157 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2158
2159         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2160         pdi's with no name.
2161
2162 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2163
2164         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2165         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2166
2167 2002-11-25  Jim Blandy  <jimb@redhat.com>
2168
2169         * symfile.c (init_objfile_sect_indices): New function.
2170         (default_symfile_offsets): Move the section-index-initializing
2171         stuff into init_objfile_sect_indices, and call that.
2172
2173         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2174         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2175
2176         * symfile.c (syms_from_objfile): Adjust indentation.
2177
2178         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2179         || info_verbose isn't true.
2180
2181 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2182
2183         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2184         default to get_frame_base.
2185         * gdbarch.h, gdbarch.c: Regenerate.
2186         * arch-utils.c (default_frame_address): Delete function.
2187         * arch-utils.h (default_frame_address): Delete declaration
2188
2189 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2190
2191         * varobj.c (find_frame_addr_in_frame_chain):
2192         Use get_frame_base instead of FRAME_FP,
2193         obvious fix.
2194
2195 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2196
2197         * frame.h (FRAME_FP): Delete macro.
2198         (get_frame_base): New function declaration.
2199         * frame.c (get_frame_base): New function.
2200         (get_frame_id): Use ->frame.
2201         (frame_find_by_id): Rewrite to use get_frame_id.
2202         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2203         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2204         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2205         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2206         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2207         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2208         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2209
2210 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2211
2212         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2213
2214 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2215
2216         * frame.c (set_unwind_by_pc): Revert change below, use
2217         PC_IN_CALL_DUMMY.
2218         (get_prev_frame): Ditto.
2219
2220 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2221
2222         * dummy-frame.c (pc_in_dummy_frame): New function.
2223         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2224         (find_dummy_frame): Update comment.
2225         (generic_pop_current_frame): Use get_frame_type.
2226         * dummy-frame.h (pc_in_dummy_frame): Declare.
2227         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2228         (create_new_frame): Use pc_in_dummy_frame.
2229         (get_prev_frame): Use pc_in_dummy_frame.
2230         (frame_saved_regs_register_unwind): Use get_prev_frame.
2231         (deprecated_generic_get_saved_register): Use get_prev_frame.
2232
2233 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2234
2235         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2236         from here ...
2237         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2238         (varobj_create): Note that frame ID should be used.
2239         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2240
2241 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2242
2243         * breakpoint.c: Include "gdb_assert.h".
2244         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2245         not being used.
2246         * Makefile.in (breakpoint.o): Update dependencies.
2247         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2248         deprecated_frame_in_dummy.
2249         * stack.c (print_frame_info_base): Ditto.
2250         (frame_info): Ditto.
2251         (print_frame_info_base): Ditto.  Delete dead code.
2252         
2253 2002-11-23  Andreas Schwab  <schwab@suse.de>
2254
2255         * Makefile.in (m68k_tdep_h): Define.
2256         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2257         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2258         * m68k-tdep.c: Move register number enum ...
2259         * m68k-tdep.h: ... to this new file and rename the constants from
2260         E_* to M68K_*.  All uses changed.
2261         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2262         * abug-rom.c: Include "m68k-tdep.h".  Use
2263         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2264         * cpu32bug-rom.c: Likewise.
2265         * dbug-rom.c: Likewise.
2266         * m68k-tdep.c: Likewise.
2267         * m68klinux-nat.c: Likewise.
2268         * remote-est.c: Likewise.
2269         * rom68k-rom.c: Likewise.
2270         * config/m68k/tm-linux.h: Likewise.
2271
2272 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2273
2274         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2275         dummy frame initialization code.
2276         * mips-tdep.c (mips_gdbarch_init): Ditto.
2277
2278 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2279
2280         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2281         attach will hang.
2282
2283 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2284
2285         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2286         to default_frame_address.
2287         * gdbarch.h, gdbarch.c: Re-generate.
2288
2289         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2290         or frame_locals_address to default_frame_address.
2291         * m68k-tdep.c (m68k_gdbarch_init): Update.
2292         * i386-tdep.c (i386_gdbarch_init): Update.
2293         * frv-tdep.c (frv_gdbarch_init): Update.
2294         * sh-tdep.c (sh_gdbarch_init): Update.
2295         * v850-tdep.c (v850_gdbarch_init): Update.
2296         * sparc-tdep.c (sparc_gdbarch_init): Update.
2297         * mips-tdep.c (mips_gdbarch_init): Update.
2298         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2299         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2300         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2301
2302         * cris-tdep.c (cris_frame_args_address): Delete function.
2303         (cris_frame_locals_address): Delete function.
2304         (cris_gdbarch_init): Do not set frame_args_address or
2305         frame_locals_address.
2306
2307 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2308
2309         * thread-db.c (thread_db_load): Tell the user what's going on
2310         if dlopen fails on libthread_db.
2311
2312 2002-11-23  Andreas Schwab  <schwab@suse.de>
2313
2314         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2315         invariant return values.
2316
2317 2002-11-22  Andreas Schwab  <schwab@suse.de>
2318
2319         * valops.c (value_slice): Move declaration of `offset' to avoid
2320         warning.
2321
2322 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2323
2324         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2325         (struct so_stuff): Add end_addr field.
2326         (register_loaded_dll): Calculate and store end address of loaded dll.
2327         (solib_address): New function.
2328         (child_solib_loaded_library_pathname): Pass carefully constructed
2329         section info to safe_symbol_file_add rather than ignoring it.
2330         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2331         DLL is loaded.
2332         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2333         (child_create_inferior): Fix a compiler warning.
2334         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2335         (solib_address): Declare new function.
2336
2337 2002-11-22  Andreas Schwab  <schwab@suse.de>
2338
2339         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2340         and FPS registers.
2341
2342 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2343
2344         * maint.c (_initialize_maint_cmds): Fix typo.  From
2345         Francesco Potorti` <pot@gnu.org>.
2346
2347 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2348
2349         * mips-tdep.c (mips_dump_tdep): Delete references to
2350         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2351         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2352         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2353         * printcmd.c (build_address_symbolic): Delete calls to
2354         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2355         (address_info): Ditto.
2356         Fix PR gdb/773.
2357         
2358 2002-11-19  Klee Dienes  <kdienes@apple.com>
2359             Adam Fedor  <fedor@gnu.org>
2360
2361         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2362         the ability to explicitly specify the quote characters and word
2363         break characters; if NULL is specified for either, use the old
2364         behavior of using the characters used by the completer.
2365         (skip_chars): New function.  Convenience wrapper around
2366         skip_quoted_chars to provide the original skip_chars behavior.
2367         * completer.h (skip_quoted_chars): Add prototype.
2368
2369 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2370
2371         Problems reported by Paul Eggert.
2372         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2373
2374 2002-11-19  Andreas Schwab  <schwab@suse.de>
2375
2376         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2377         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2378         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2379         (m68k_linux_frame_saved_pc): Move to ...
2380         * m68klinux-tdep.c: ... here.  New file.
2381         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2382         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2383
2384 2002-11-19  Adam Fedor  <fedor@gnu.org>
2385
2386         * objc-exp.y: Revert to old skip_quoted usage.
2387
2388 2002-11-19  Adam Fedor  <fedor@gnu.org>
2389
2390         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2391         (objc_lang_h): Define.
2392         (YYFILES): Add objc-exp.tab.c.
2393         (local-maintainer-clean): Remove objc-exp.tab.c.
2394         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2395         
2396 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2397
2398         * p-exp.y (typecast rule): Add automatic dereference of
2399         pascal classes if needed.
2400         (THIS): Set current_type.
2401         Automatically dereference pascal classes. 
2402         (typebase rule): Add ^typebase recognition.
2403
2404 2002-11-18  Adam Fedor  <fedor@gnu.org>
2405
2406         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2407         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2408         (op_name): Handle OP_OBJC_SELF.
2409         * Makefile.in (expprint.o): Add additional depends.
2410
2411 2002-11-18  Adam Fedor  <fedor@gnu.org>
2412
2413         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2414         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2415         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2416         * objc-exp.y: Likewise. 
2417
2418 2002-11-18  Adam Fedor  <fedor@gnu.org>
2419
2420         * gdb/parser-defs.h: (struct objc_class_str): New structure
2421         for parsing ObjC classes.
2422
2423 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2424
2425         * stack.c (frame_relative_level): Copy function from here ...
2426         * frame.c (frame_relative_level): ...to here.
2427
2428 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2429
2430         * frame.h (enum frame_type): Define.
2431         (get_frame_type): Declare.
2432         (struct frame_info): Add field `type'.  Delete field
2433         signal_handler_caller.
2434         (deprecated_set_frame_signal_handler_caller): Declare.
2435         * frame.c (get_frame_type): New function.
2436         (deprecated_set_frame_type): New function.
2437         (create_new_frame): Set the frame's type.
2438         (get_prev_frame): Similar.
2439         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2440         * s390-tdep.c: Ditto.
2441         * m68klinux-nat.c: Ditto.
2442         * ns32k-tdep.c: Ditto.
2443         * x86-64-linux-tdep.c: Ditto.
2444         * vax-tdep.c: Ditto.
2445         * rs6000-tdep.c: Ditto.
2446         * ppc-linux-tdep.c: Ditto.
2447         * i386-interix-tdep.c: Ditto.
2448         * mips-tdep.c: Ditto.
2449         * m68k-tdep.c: Ditto.
2450         * hppa-tdep.c: Ditto.
2451         * ia64-tdep.c: Ditto.
2452         * cris-tdep.c: Ditto.
2453         * arm-tdep.c: Ditto.
2454         * alpha-tdep.c: Ditto.
2455         * i386-tdep.c: Ditto.
2456         * stack.c: Ditto.
2457         * ada-lang.c: Ditto.
2458         * blockframe.c: Update.
2459         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2460         deprecated_set_frame_type instead of signal_handler_caller.
2461         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2462         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2463         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2464
2465 2002-11-18   Klee Dienes  <kdienes@apple.com>
2466
2467         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2468
2469 2002-11-18  Klee Dienes  <kdienes@apple.com>
2470
2471         * buildsym.c (pop_context): Add comment.
2472         
2473 2002-11-18  Klee Dienes  <kdienes@apple.com>
2474
2475         * buildsym.h (pop_context): Convert to function, defined in
2476         buildsym.c.
2477         * buildsym.c: Include gdb_assert.h.
2478         (pop_context): Implement as C function.  Add check for stack
2479         underflow.
2480         * dbxread.c (process_one_symbol): Complain and stop processing
2481         that symbol if we are already at the top of the context stack for
2482         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2483         when processing N_RBRAC.
2484
2485 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2486
2487         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2488         define.
2489         (struct target_waitstatus): Add opaque definition.
2490         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2491         * exec.c (init_exec_ops): Likewise.
2492         * fork-child.c (clone_and_follow_inferior): Remove.
2493         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2494         * inferior.h (clone_and_follow_inferior): Remove prototype.
2495         * infrun.c (follow_fork_mode_both): Remove.
2496         (follow_fork_mode_kind_names): Remove commented out "both".
2497         (follow_inferior_fork): Remove follow_fork_mode_both support.
2498         * inftarg.c (child_clone_and_follow_inferior): Remove.
2499         (child_post_follow_inferior_by_clone): Remove.
2500         (init_child_ops): Don't set to_clone_and_follow_inferior
2501         or to_post_follow_inferior_by_clone.
2502         * target.c (default_clone_and_follow_inferior): Remove.
2503         (cleanup_target): Don't set to_clone_and_follow_inferior
2504         or to_post_follow_inferior_by_clone.
2505         (find_default_clone_and_follow_inferior): Remove.
2506         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2507         (debug_to_clone_and_follow_inferior): Remove.
2508         (debug_to_post_follow_inferior_by_clone): Remove.
2509         (setup_target_debug): Don't set to_clone_and_follow_inferior
2510         or to_post_follow_inferior_by_clone.
2511         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2512         and to_post_follow_inferior_by_clone.
2513         (child_clone_and_follow_inferior): Remove prototype.
2514         (child_post_follow_inferior_by_clone): Remove prototype.
2515         (target_clone_and_follow_inferior): Remove macro.
2516         (target_post_follow_inferior_by_clone): Remove macro.
2517         (find_default_clone_and_follow_inferior): Remove prototype.
2518
2519 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2520
2521         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2522         inferior_has_vforked, and inferior_has_execd instead of
2523         target_has_forked, target_has_vforked, and target_has_execd.
2524         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2525         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2526         (CHILD_WAIT): Define.
2527         (child_wait): Add prototype.
2528         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2529         Add prototype.
2530         (hpux_has_vforked): Likewise, from child_has_vforked.
2531         (hpux_has_execd): Likewise, from child_has_execd.
2532         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2533         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2534         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2535         and hpux_has_syscall_event instead of the target hooks.
2536         * infrun.c (inferior_has_forked, inferior_has_vforked)
2537         (inferior_has_execd): New functions.
2538         * inftarg.c (not_same_real_pid): Remove.
2539         (child_wait): Remove references to not_same_real_pid,
2540         target_has_forked, target_has_vforked, target_has_execd,
2541         and target_has_syscall_event.
2542         (child_has_forked, child_has_vforked, child_has_execd)
2543         (child_has_syscall_event): Remove.
2544         (init_child_ops): Remove references to child_has_forked,
2545         child_has_vforked, child_has_execd, and child_has_syscall_event.
2546         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2547         (hpux_has_vforked): Likewise, from child_has_vforked.
2548         (hpux_has_execd): Likewise, from child_has_execd.
2549         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2550         * target.c (cleanup_target): Remove references to
2551         to_has_forked, to_has_vforked, to_has_execd, and
2552         to_has_syscall_event.
2553         (update_current_target): Likewise.
2554         (setup_target_debug): Likewise.
2555         (debug_to_has_forked): Remove.
2556         (debug_to_has_vforked): Remove.
2557         (debug_to_has_execd): Remove.
2558         (debug_to_has_syscall_event): Remove.
2559         * target.h (struct target_ops): Remove to_has_forked.
2560         to_has_vforked, to_has_execd, and to_has_syscall_event.
2561         (child_has_forked, child_has_vforked, child_has_execd)
2562         (child_has_syscall_event): Remove prototypes.
2563         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2564         prototypes.
2565         (target_has_forked, target_has_vforked, target_has_execd)
2566         (target_has_syscall_event): Remove macros.
2567
2568 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2569
2570         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2571         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2572         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2573         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2574         * target.c (cleanup_target): Remove reference to
2575         to_can_follow_vfork_prior_to_exec.
2576         (update_current_target): Likewise.
2577         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2578         (setup_target_debug): Remove reference to
2579         to_can_follow_vfork_prior_to_exec.
2580         * target.h (struct target_ops): Remove
2581         to_can_follow_vfork_prior_to_exec.
2582         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2583         (target_can_follow_vfork_prior_to_exec): Remove definition.
2584         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2585         define.
2586         * infrun.c (follow_vfork_when_exec): Remove.
2587         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2588         (follow_exec): Likewise.
2589         (handle_inferior_event): Likewise.
2590         (keep_going): Likewise.
2591
2592 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2593
2594         * frame.c (generic_unwind_get_saved_register): Make static.
2595         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2596         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2597         defaults to generic_unwind_get_saved_register.
2598         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2599         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2600         * frv-tdep.c (frv_gdbarch_init): Ditto.
2601         * i386-tdep.c (i386_gdbarch_init): Ditto.
2602         * s390-tdep.c (s390_gdbarch_init): Ditto.
2603         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2604         * v850-tdep.c (v850_gdbarch_init): Ditto.
2605         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2606         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2607         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2608
2609 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2610
2611         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2612         i386-tdep.c.
2613
2614 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2615
2616         * frame.h (sigtramp_saved_pc): Delete declaration.
2617         * blockframe.c (sigtramp_saved_pc): Delete function.
2618         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2619         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2620         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2621         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2622
2623 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2624
2625         * frame.c (frame_pc_unwind): New function.
2626         (frame_saved_regs_pc_unwind): New function.
2627         (frame_register_unwind): Pass unwind_cache instead of
2628         register_unwind_cache.
2629         (set_unwind_by_pc): Add unwind_pc parameter, set.
2630         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2631         (get_prev_frame): Ditto.
2632         * frame.h (frame_pc_unwind_ftype): Declare.
2633         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2634         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2635         (frame_pc_unwind): Declare.
2636         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2637         (struct dummy_frame): Add comment mentioning that values are for
2638         previous frame.
2639         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2640         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2641         (generic_file_frame_chain_valid): Ditto.
2642         * stack.c (frame_info): Ditto.
2643
2644 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2645
2646         * linespec.c (locate_first_half): New function.
2647         (decode_line_1): Move code into locate_first_half.
2648
2649 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2650
2651         * complaints.h: Add comment explaining how to eliminate a
2652         deprecated_complain call.
2653         * complaints.h: Fix spelling errors.
2654
2655 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2656
2657         * printcmd.c: Remove #include "disasm.h".
2658
2659 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2660
2661         * frame.h: Move the most relevant interface functions to the start
2662         of the file.
2663
2664 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2665
2666         * regcache.h (deprecated_registers): Rename registers.
2667         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2668         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2669         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2670         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2671         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2672         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2673         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2674         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2675         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2676         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2677         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2678         * v850ice.c: Update.
2679
2680 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2681
2682         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2683         NULL buffer.
2684
2685 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2686
2687         * regcache.h (deprecated_read_register_bytes): Rename
2688         read_register_bytes.
2689         (deprecated_write_register_bytes): Rename write_register_bytes.
2690         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2691         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2692         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2693         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2694         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2695         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2696         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2697         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2698         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2699         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2700         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2701         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2702         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2703         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2704
2705 2002-11-13  Jim Blandy  <jimb@redhat.com>
2706
2707         * findvar.c (read_var_value): Doc fix.
2708
2709 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2710
2711         * regcache.c (struct regcache): Replace passthough_p with
2712         readonly_p.
2713         (regcache_xmalloc): Initialize readonly_p.
2714         (build_regcache): Initialize readonly_p.
2715         (regcache_save): New function.
2716         (regcache_restore): New function.
2717         (regcache_cpy): Re-implement using regcache_save and
2718         regcache_restore.
2719         (regcache_raw_read): Update.
2720         (regcache_cooked_read): When a read-only cache, checked for cached
2721         pseudo register values.
2722         (regcache_raw_write): Assert that the cache is not read-only.
2723         Remove code handling a non-passthrough cache.
2724         * regcache.h (regcache_save): Declare.
2725         (regcache_restore): Declare.
2726
2727 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2728
2729         * regcache.c (struct regcache_descr): Add fields
2730         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2731         (init_legacy_regcache_descr): Compute the size of a cooked
2732         register cache and then assign that to sizeof_raw_registers.  Set
2733         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2734         (init_legacy_regcache_descr): Ditto.
2735
2736 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2737
2738         * regcache.c (register_buffer): Move to near start of file, update
2739         description.
2740         (regcache_raw_read): Use.
2741         (regcache_raw_write): Use.
2742         (struct regcache): Rename raw_registers to registers and
2743         raw_register_valid_p to register_valid_p.
2744         (regcache_xmalloc): Update.
2745         (regcache_xfree): Update.
2746         (register_buffer): Update.
2747         (regcache_cpy): Update.
2748         (regcache_cpy_no_passthrough): Update.
2749         (regcache_valid_p): Update.
2750         (deprecated_grub_regcache_for_registers): Update.
2751         (deprecated_grub_regcache_for_register_valid): Update.
2752         (set_register_cached): Update.
2753         (regcache_raw_write): Update.
2754
2755 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2756
2757         * p-exp.y (name_not_typename): Use copy_name to
2758         set current_type variable for fields of THIS.
2759
2760 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2761
2762         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2763         * monitor.c (init_base_monitor_ops): Likewise.
2764         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2765         * remote-array.c (init_array_ops): Likewise.
2766         * remote-e7000.c (init_e7000_ops): Likewise.
2767         * remote-es.c (init_es1800_ops): Likewise.
2768         (init_es1800_child_ops): Likewise.
2769         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2770         * remote-sim.c (init_gdbsim_ops): Likewise.
2771         * remote-st.c (init_st2000_ops): Likewise.
2772         * sol-thread.c (init_sol_core_ops): Likewise.
2773         (init_sol_thread_ops): Likewise.
2774         * v850ice.c (init_850ice_ops): Likewise.
2775         * win32-nat.c (init_child_ops): Likewise.
2776         * wince.c (init_child_ops): Likewise.
2777
2778 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2779
2780         * utils.c (gdb_realpath): Make rp a constant pointer.
2781
2782 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2783
2784         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2785         a constant buffer; cannonicalize_file_name(); realpath() with a
2786         pathconf() defined buffer, xstrdup().
2787
2788 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2789
2790         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2791         to hang2.C; hang3.c to hang3.C.
2792
2793 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2794
2795         * findvar.c (read_var_value): Reenable TLS code.
2796
2797 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2798             Jim Blandy  <jimb@redhat.com>
2799         
2800         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2801         * target.c (update_current_target): Add
2802         to_get_thread_local_address.
2803         * target.h (to_get_thread_local_address): Export.
2804         (target_get_thread_local_address): Define.
2805         (target_get_thread_local_address_p): Define.
2806         * thread-db.c: Include solib-svr4.h.
2807         (td_thr_tls_get_addr_p): Define.
2808         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2809         (thread_db_get_thread_local_address): New function.
2810         (init_thread_db_ops): Initialize to_get_thread_local_address.
2811         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2812         * configure: Regenerate.
2813         * config.in: Regenerate.
2814
2815 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2816
2817         * linespec.c (set_flags): New function.
2818         (decode_line_1): Move code into set_flags.
2819
2820 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2821
2822         * linespec.c (decode_line_1): Move chunks of code to separate
2823         functions.
2824         (initialize_defaults): New function.
2825         (decode_indirect): New function.
2826
2827 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2828
2829         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2830         instead of void_code_ptr.
2831         (sigtramp_saved_pc): Ditto.
2832
2833         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2834         i386_fp_regnum_p.
2835
2836 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2837
2838         * gdbtypes.h (struct main_type): Move artificial flag out of
2839         loc.  New member of ``struct field'' named static_kind.  Reduce
2840         overloaded meaning of bitsize.
2841         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2842         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2843         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2844
2845         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2846         new fields.
2847         (template_to_fixed_record_type, template_to_static_fixed_type)
2848         (to_record_with_fixed_variant_part): Likewise.
2849         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2850         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2851         * dwarfread.c (struct_type, enum_type): Likewise.
2852         * hpread.c (hpread_read_enum_type)
2853         (hpread_read_function_type, hpread_read_doc_function_type)
2854         (hpread_read_struct_type): Likewise.
2855         * mdebugread.c (parse_symbol): Likewise.
2856
2857 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2858
2859         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2860         * stack.c (print_frame_info_base): Update.
2861         (print_frame_info_base, frame_info): Update.
2862         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2863         (sparc_frame_saved_pc): Update.
2864         * ada-lang.c (find_printable_frame): Update.
2865         * breakpoint.c (deprecated_frame_in_dummy): Update.
2866         
2867 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2868
2869         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2870         defined.
2871         (regmap): Extend to cover all registers.
2872         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2873         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2874         definitions.
2875         (fetch_register, sore_register): Simplify.
2876         (old_fetch_inferior_registers, old_store_inferior_registers):
2877         Remove functions.
2878         (cannot_fetch_register, cannot_store_register): Change
2879         implementation to use regmap array to decide which registers
2880         cannot be fetched/stored.  This removes $orig_eax from the
2881         registers that cannot be fetched/stored.
2882         (fetch_inferior_registers): Call fetch_register directly instead
2883         of calling old_fetch_inferior_registers.
2884         (store_inferior_registers): Call store_register directly instead
2885         of calling old_store_inferior_registers.
2886         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2887         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2888         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2889
2890 2002-11-09  Klee Dienes  <kdienes@apple.com>
2891
2892         * i387-tdep.c (i387_supply_register): When called with NULL as a
2893         buffer, mark the register as not provided (to mirror the behavior
2894         of supply_register).
2895         (i387_supply_fxsave): Ditto.
2896         (i387_supply_fsave): Ditto (inherits the behavior from
2897         i387_supply_register).
2898
2899 2002-11-09  Klee Dienes  <kdienes@apple.com>
2900
2901         * blockframe.c (sigtramp_saved_pc): Use
2902         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2903         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2904         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2905         
2906 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2907
2908         * frame.c (get_prev_frame): Test prev_p to identify a previously
2909         unwound frame.  Initialize prev_p.
2910         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2911         comment.
2912
2913 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2914
2915         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2916         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2917         more comments.  Zap dead code.
2918
2919 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2920
2921         * infcmd.c (print_vector_info, print_float_info): Move code that
2922         checks whether the target has any registers and whether there is a
2923         selected frame up, such that it is also used if a target provides
2924         multi-arch definitions of these functions.
2925
2926 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2927
2928         * Makefile.in (DESTDIR): Define.
2929         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2930         prefix.
2931
2932         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2933         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2934
2935 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2936
2937         * i386-linux-tdep.c: Include "reggroups.h".
2938         (i386_linux_register_reggroup_p): New function.
2939         (i386_linux_init_abi): Set register_reggroup_p to
2940         i386_linux_register_reggroup_p.
2941         * i386-tdep.h (i386_register_reggroup_p): Declare.
2942         * i386-tdep.c: Include "reggroups.h".
2943         (i386_init_reggroups): New function.
2944         (i386_add_reggroups): New function.
2945         (i386_register_reggroup_p): New function.
2946         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2947         (_initialize_i386_tdep): Call i386_init_reggroups.
2948         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2949         specific reggroups.
2950
2951 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2952
2953         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2954         request that's available in *BSD.
2955
2956         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2957
2958         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2959         FDOFF_REGNUM.
2960
2961 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2962
2963         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2964         * dummy-frame.c (find_dummy_frame): Rename
2965         generic_find_dummy_frame, make static.  Return the dummy frame
2966         instead of the regcache.
2967         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2968         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2969         (dummy_frame_register_unwind): Rename
2970         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2971         * dummy-frame.h (dummy_frame_register_unwind): Rename
2972         generic_call_dummy_register_unwind.
2973
2974 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2975
2976         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2977         except the inclusion of "i386/tm-i386.h", to...
2978         * config/i386/nm-i386v42mp.h: ...here.
2979         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2980
2981 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2982
2983         * Makefile.in (frame.o): Update dependencies.
2984         * blockframe.c (current_frame, frame_obstack_alloc)
2985         (frame_saved_regs_zalloc, get_current_frame)
2986         (set_current_frame, create_new_frame)
2987         (set_unwind_by_pc, get_next_frame)
2988         (flush_cached_frames, reinit_frame_cache)
2989         (frame_saved_regs_register_unwind)
2990         (deprecated_generic_get_saved_register)
2991         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2992         (_initialize_blockframe): Move frame code from here...
2993         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2994         "annotate.h" and "dummy-frame.h".
2995         (_initialize_frame): New function.
2996
2997 2002-11-08  Jim Blandy  <jimb@redhat.com>
2998
2999         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
3000         when we finish a function a context.
3001         * buildsym.h (outermost_context_p): New macro.
3002         (Bug analyzed by David Edelsohn.)
3003
3004 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
3005
3006         * blockframe.c: Include "dummy-frame.h".
3007         (struct dummy_frame, dummy_frame_stack)
3008         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
3009         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
3010         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
3011         (generic_save_call_dummy_addr, generic_pop_current_frame)
3012         (generic_pop_dummy_frame, generic_fix_call_dummy)
3013         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
3014         dummy frame code from here...
3015         * dummy-frame.c: ...to here.  New file.
3016         * dummy-frame.h: New file.
3017         (generic_call_dummy_register_unwind): Declare.
3018         (generic_find_dummy_frame): Declare.
3019         * Makefile.in (SFILES): Add dummy-frame.c.
3020         (dummy-frame.o): Specify dependencies.
3021         (dummy_frame_h): Define.
3022         (COMMON_OBS): Add dummy-frame.o.
3023         (blockframe.o): Update dependencies.
3024
3025 2002-11-08  Jim Blandy  <jimb@redhat.com>
3026
3027         * dwarf2read.c (read_func_scope): Restore local_symbols and
3028         param_symbols after we finish the function context.  (Based on a
3029         patch from David Edelsohn.)
3030
3031 2002-11-08  David Carlton  <carlton@math.stanford.edu>
3032
3033         * linespec.c (symbol_found): New function.
3034         (minsym_found): New function.
3035         (decode_line_1): Separate out some code into separate functions.
3036
3037 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
3038
3039         * i386-tdep.c (i386_frameless_signal_p): Make non static for
3040         the benefit of the interix target.
3041         * i386-tdep.h (i386_frameless_signal_p): Declare.
3042
3043 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
3044
3045         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3046         declaration that snuck in from change below.
3047
3048 2002-11-06  Andrew Cagney  <cagney@redhat.com>
3049
3050         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
3051         all callers.
3052         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
3053         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
3054         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
3055         (i386_mxcsr_regnum_p): new function.  Use instead of
3056         MXCSR_REGNUM_P.
3057         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3058         (i386_sse_regnum_p): Declare.
3059         (i386_mxcsr_regnum_p): Declare.
3060         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3061         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3062         (IS_FP_REGNUM): Update definition.
3063         (IS_FPU_CTRL_REGNUM): Update definition..
3064         (IS_SSE_REGNUM): Update definition..
3065         * i386v-nat.c (register_u_addr): Update.
3066         * go32-nat.c (fetch_register): Update.
3067         (store_register): Update.
3068
3069 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3070
3071         Preparation work to convert the hppa targets to multiarch partial.
3072
3073         * hppa-tdep.c: Add new functions replacing macro bodies from
3074         config/pa/tm-hppa.h. These function will be used to initialize
3075         the gdbarch structure. Import some comments from tm-hppa.h,
3076         and place them where appropriate, to avoid loosing them when
3077         we cleanup this file.
3078         (hppa_reg_struct_has_addr): New function.
3079         (hppa_inner_than): New function.
3080         (hppa_stack_align): New function.
3081         (hppa_pc_requires_run_before_use): New function.
3082         (hppa_instruction_nullified): New function.
3083         (hppa_register_byte): New function.
3084         (hppa_register_virtual_type): New function.
3085         (hppa_store_struct_return): New function.
3086         (hppa_cannot_store_register): New function.
3087         (hppa_frame_args_address): New function.
3088         (hppa_frame_locals_address): New function.
3089         (hppa_smash_text_address): New function.
3090         (hppa_coerce_float_to_double): New function. Requires the inclusion
3091         of "language.h".
3092
3093         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3094
3095         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3096         gdbarch-eligible macro to a call to the new associated function
3097         created in hppa-tdep.c.
3098         (INNER_THAN): Likewise.
3099         (STACK_ALIGN): Likewise.
3100         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3101         (INSTRUCTION_NULLIFIED): Likewise.
3102         (REGISTER_BYTE): Likewise.
3103         (REGISTER_VIRTUAL_TYPE): Likewise.
3104         (STORE_STRUCT_RETURN): Likewise.
3105         (CANNOT_STORE_REGISTER): Likewise.
3106         (FRAME_ARGS_ADDRESS): Likewise.
3107         (FRAME_LOCALS_ADDRESS): Likewise.
3108         (SMASH_TEXT_ADDRESS): Likewise.
3109         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3110         (ABOUT_TO_RETURN): Delete, as no longer used.
3111
3112 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3113
3114         * printcmd.c (disassemble_command): Remove obsolete function.
3115         (_initialize_printcmd): Do not create disassemble command here.
3116         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3117         disassemble command.
3118         (init_cli_cmds): Create disassemble command here instead.
3119
3120 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3121
3122         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3123
3124 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3125
3126         * regcache.h (regcache_cooked_read_using_offset_hack)
3127         (regcache_cooked_write_using_offset_hack): Delete declarations.
3128         (register_changed): Delete declaration.
3129         * regcache.c (regcache_cooked_read_using_offset_hack)
3130         (regcache_cooked_write_using_offset_hack): Delete functions.
3131         (cooked_xfer_using_offset_hack): Delete function.
3132         (register_changed): Delete function.
3133
3134 2002-11-07  Jim Blandy  <jimb@redhat.com>
3135
3136         * macroscope.c: #include "complaints.h".
3137         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3138         but not in the macro table.
3139         * Makefile.in (macroscope.o): Record dependency.
3140
3141 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3142
3143         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3144
3145 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3146
3147         * regcache.c (deprecated_registers_fetched): Update.
3148         * regcache.h (deprecated_registers_fetched): Rename
3149         registers_fetched.
3150         * remote-vxsparc.c (vx_read_register): Update.
3151         * remote-vxmips.c (vx_read_register): Update.
3152         * remote-vx68.c (vx_read_register): Update.
3153         * irix5-nat.c (fetch_core_registers): Update.
3154         * mipsm3-nat.c (fetch_inferior_registers): Update.
3155         * sun3-nat.c (fetch_inferior_registers): Update.
3156         * symm-nat.c (fetch_inferior_registers): Update.
3157         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3158         (fetch_core_registers): Update.
3159         (fetch_kcore_registers): Update.
3160         * mips-nat.c (fetch_inferior_registers): Update.
3161         * corelow.c (get_core_registers): Update.
3162         * a68v-nat.c (fetch_inferior_registers): Update.
3163
3164 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3165
3166         Put in place the framework necessary for multiarching the hppa targets.
3167         * hppa-tdep.c (hppa_gdbarch_init): New function.
3168         (hppa_dump_tdep): New function.
3169         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3170         tdep structure dumper.
3171         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3172         until the multi-arching conversion has partially been completed.
3173
3174 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3175
3176         * valops.c (value_assign): Merge lval_register case into
3177         lval_reg_frame_relative.  Use frame_register and
3178         regcache_cooked_write instead of get_saved_register and
3179         write_register_bytes.  After flushing the register cache, try to
3180         re-select the selected frame.
3181
3182 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3183
3184         * regcache.h (deprecated_register_valid): Rename register_valid.
3185         * regcache.c: Update.
3186         * ia64-aix-nat.c: Update.
3187         * i386gnu-nat.c: Update.
3188         * alpha-nat.c: Update.
3189         * sparc-nat.c: Update.
3190         * lynx-nat.c: Update.
3191         * remote-mips.c: Update.
3192
3193 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3194
3195         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3196         to end of file, to be more consistent with the pratice followed
3197         by other targets.
3198
3199 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3200
3201         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3202         (print_float_info): Print registers in float_reggroup.
3203         (print_vector_info): Print registers in vector_reggroup.
3204         (default_print_registers_info): When all, print registers in
3205         all_reggroup.  Otherwize, print registers in general_reggroup.
3206         (registers_info): Rewrite.  Add support for register groups.
3207         Eliminate a goto.
3208
3209 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3210
3211         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3212         ages.
3213         (symtab_symbol_info): Remove eons old ifdeffed out code.
3214         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3215         command.
3216
3217 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3218
3219         * c-exp.y: Add missing semi-colons.
3220         * f-exp.y: Add missing semi-colons.
3221         * m2-exp.y: Add missing semi-colons.
3222         * p-exp.y: Add missing semi-colons.
3223         Add empty action to start rule to avoid a type clash error when
3224         building with bison >= 1.50.
3225
3226 2002-11-06  Jim Blandy  <jimb@redhat.com>
3227
3228         * macrotab.h (struct macro_source_file): Doc fix.
3229
3230 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3231
3232         * varobj.c (child_exists, cplus_number_of_children): Change
3233         STREQ macro references to strcmp.
3234         (cplus_name_of_child): Change code to handle the fact that
3235         fields are not necessarily contiguous with regards to their 
3236         access control. This is a fix for PR gdb/792.
3237
3238 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3239
3240         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3241         * gdbarch.h, gdbarch.c: Regnerate.
3242         * frame.h (frame_register): Declare.
3243         * frame.c (frame_register): New function.
3244         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3245         GET_SAVED_REGISTER, otherwize call
3246         generic_unwind_get_saved_register.
3247         (frame_register_read): Use frame_register instead of
3248         get_saved_register.
3249
3250 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3251         
3252         From Jim Ingham  <jingham@apple.com>:
3253         * event-top.c (gdb_disable_readline): New function.
3254         (_initialize_event_loop): Move comment.
3255
3256 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3257
3258         * event-loop.c (start_event_loop): Add comment.
3259         Update copyright.
3260
3261 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3262
3263         * infcmd.c (default_print_registers_info): Do not call
3264         PRINT_REGISTER_HOOK.
3265
3266 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3267
3268         * sparc-tdep.c (sparc_print_register_hook): Make static.
3269         (sparc_print_registers_info): New function.
3270         (sparc_do_registers_info): New function.
3271         (sparclet_print_registers_info): New function.
3272         (sparclet_do_registers_info): New function.
3273         (do_sparc_print_registers_info): New function.
3274         (sparc_print_registers): New static function, clone of infcmd.c's
3275         default_print_registers_info.
3276         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3277         (sparclet_do_registers_info): Declare.
3278         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3279         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3280         Re-define.
3281         (sparc_do_registers_info): Declare.
3282         (PRINT_REGISTER_HOOK): Delete macro.
3283         (sparc_print_register_hook): Delete declaration.
3284
3285 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3286
3287         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3288         functions.
3289         (lookup_symbol_aux_local): New function.
3290         (lookup_symbol_aux_symtabs): New function.
3291         (lookup_symbol_aux_psymtabs): New function.
3292
3293 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3294
3295         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3296         previous values of 'objfile' and 'block'.
3297
3298 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3299
3300         * values.c (value_change_enclosing_type): Set 
3301         enclosing_type field correctly also for the case where 
3302         more memory needs to be allocated.
3303
3304 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3305
3306         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3307         of puts_filtered.
3308
3309         * i387-tdep.c (i387_print_float_info): Replace calls to
3310         register_read and deprecated_read_register_gen with calls to
3311         frame_register_read, and make the necessary adjustments to the
3312         surrounding code.
3313
3314 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3315
3316         * gdbarch.sh (register_reggroup_p): Allow default value.
3317         * gdbarch.h, gdbarch.c: Regenerate.
3318
3319 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3320
3321         * regcache.h: Add coment indicating replacements for deprecated
3322         functions.
3323
3324 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3325
3326         * reggroups.h, reggroups.c: New files.
3327         * regcache.c: Include "reggroups.h".
3328         (enum regcache_dump_what): Add `regcache_dump_groups'.
3329         (regcache_dump): Contract size of the "Type" column.  When
3330         specified, dump the register's groups.
3331         (maintenance_print_register_groups): New function.
3332         (_initialize_regcache): Add command `maint print register-groups'.
3333         * Makefile.in (COMMON_OBS): Add reggroups.o
3334         (SFILES): Add reggroups.c.
3335         (reggroups_h): Define.
3336         (regcache.o, gdbarch.o): Update dependencies.
3337         (reggroups.o): Specify dependencies.
3338         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3339         Add opaque declaration for `struct reggroup' in generated .h file.
3340         Include "reggroups.h" in generated .c file.
3341         gdbarch.h, gdbarch.c: Re-generate.
3342
3343 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3344
3345         * regcache.h (deprecated_read_register_gen): Rename
3346         read_register_gen.
3347         (deprecated_write_register_gen): Rename write_register_gen.
3348         * i387-tdep.c: Update.
3349         * x86-64-linux-nat.c: Update
3350         * wince.c: Update.
3351         * thread-db.c: Update.
3352         * win32-nat.c: Update.
3353         * mips-tdep.c: Update.
3354         * d10v-tdep.c: Update.
3355         * cris-tdep.c: Update.
3356         * remote-sim.c: Update.
3357         * remote-rdi.c: Update.
3358         * remote-rdp.c: Update.
3359         * frame.c: Update.
3360         * target.c: Update.
3361         * blockframe.c: Update.
3362         * x86-64-tdep.c: Update.
3363         * xstormy16-tdep.c: Update.
3364         * sh-tdep.c: Update.
3365         * s390-tdep.c: Update.
3366         * rs6000-tdep.c: Update.
3367         * sparc-tdep.c: Update.
3368         * i386-tdep.c: Update.
3369         * dwarf2cfi.c: Update.
3370         * regcache.c: Update.
3371
3372 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3373
3374         New interix-specific files:
3375         * config/i386/nm-interix.h: New file.
3376         * config/i386/interix.mh: New file.
3377         * config/i386/interix.mt: New file.
3378         * i386-interix-nat.c: New file.
3379         * i386-interix-tdep.c: New file.
3380
3381 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3382
3383         * frame.h (deprecated_generic_get_saved_register): Rename
3384         generic_get_saved_register.
3385         * blockframe.c (deprecated_generic_get_saved_register): Update.
3386         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3387         (xstormy16_frame_saved_register): Update.
3388         * sh-tdep.c (sh_gdbarch_init): Update.
3389         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3390         * ia64-tdep.c (ia64_get_saved_register): Update.
3391         * cris-tdep.c (cris_gdbarch_init): Update.
3392         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3393         * arm-tdep.c (arm_gdbarch_init): Update.
3394
3395 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3396
3397         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3398
3399 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3400
3401         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3402         trampolines in sigaction.
3403
3404 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3405
3406         * h8300-tdep.c: Include "gdb_assert.h".
3407         (h8300_print_register): Add gdbarch, file and frame parameters.
3408         Use frame_read_unsigned_register to read the register's value.
3409         Use fprintf_filtered to display output.
3410         (h8300_print_registers_info): Replace h8300_do_registers_info.
3411         (h8300_gdbarch_init): Set print_registers_info.
3412
3413 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3414
3415         * frame.c (frame_read_unsigned_register): New function.
3416         (frame_read_signed_register): New function.
3417         * frame.h (frame_read_unsigned_register): Declare.
3418         (frame_read_signed_register): Declare.
3419
3420 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3421
3422         * h8500-tdep.c (h8500_print_registers_info): New static function,
3423         clone of infcmd.c's default_print_registers_info.
3424         (h8500_do_registers_info): New funtion.
3425         (h8500_print_register_hook): Rename print_register_hook, make
3426         static.
3427
3428         * config/h8500/tm-h8500.h: Update copyright.
3429         (DEPRECATED_DO_REGISTERS_INFO): Define.
3430         (h8500_do_registers_info: Declare.
3431         (PRINT_REGISTER_HOOK): Delete macro.
3432         (print_register_hook): Delete function.
3433
3434 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3435
3436         * z8k-tdep.c (z8k_print_register_hook): Make static.
3437         (z8k_print_registers_info): New static function, clone of
3438         infcmd.c's default_print_registers_info.
3439         (z8k_do_registers_info): New function.  Wrap
3440         z8k_print_registers_info.
3441         * config/z8k/tm-z8k.h: Update copyright.
3442         (PRINT_REGISTER_HOOK): Delete macro.
3443         (z8k_print_register_hook): Delete declaration.
3444         (DEPRECATED_DO_REGISTERS_INFO): Define.
3445         (z8k_do_registers_info): Declare.
3446
3447 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3448
3449         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3450         as this is already provided by value.h, and was actually causing
3451         a compilation error because of a conflict in parameter type
3452         declaration due to a missing const keyword.
3453         (low_text_segment_addres): Fix a compilation warning.
3454
3455 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3456
3457         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3458         registers without a name.
3459         (mips_linux_cannot_store_register): Don't store registers without
3460         a name.
3461
3462 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3463
3464         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3465         out.)
3466         * symtab.h: Delete prototype for find_addr_symbol.
3467
3468 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3469
3470         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3471         DO_REGISTERS_INFO.
3472         gdbarch.h, gdbarch.c: Re-generate.
3473         * infcmd.c (default_print_registers_info): Update reference.
3474         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3475         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3476         * sh-tdep.c (sh_gdbarch_init): Ditto.
3477         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3478         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3479
3480 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3481
3482         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3483         cfi_init_extra_frame_info.
3484         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3485         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3486
3487         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3488         target where necessary.  Add more comments and remove the ones
3489         that don't provide any useful information.
3490
3491         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3492         deprecated_read_register_dummy with
3493         frame_unwind_unsigned_register.
3494
3495         * i386-tdep.c (i386_extract_struct_value_address): Use
3496         regcache_raw_read_unsigned instead of
3497         regcache_cooked_read_unsigned since we know that the register
3498         we're reading isn't a pseudo register.  Rename variable 'val' into
3499         the more descriptive 'addr'.
3500
3501         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3502         (x86_64_push_return_address): Add comment.
3503         (x86_64_pop_frame): Make static.
3504         (examine_argument): Clarify comment.
3505         (x86_64_skip_prologue): Make prolog_expact variable static.
3506
3507         * dwarf2cfi.c: Fix some formatting problems.
3508         (context_cpy, read_encoded_pointer): Clarify comments.
3509
3510         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3511         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3512         i386 target back into x86_64_gdbarch_init.  Add some comments and
3513         remove meaningless ones.
3514
3515 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3516
3517         * complaints.h (struct deprecated_complaint): Rename `struct
3518         complaint'.
3519         * complaints.c (complain): Update.
3520         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3521         incorrect comment indicating that "symfile.h" was being included
3522         for the `struct complaint' definition.
3523         * remote-vx.c: Update.
3524         * objc-lang.c: Update.
3525         * xcoffread.c: Update.
3526         * hpread.c: Update.
3527         * mdebugread.c: Update.
3528         * stabsread.c: Update.
3529         * dwarf2read.c: Update.
3530         * dwarfread.c: Update.
3531         * elfread.c: Update.
3532         * coffread.c: Update.
3533         * stabsread.h: Update.
3534         * dbxread.c: Update.
3535         * buildsym.c: Update.
3536         * gdbtypes.c: Update.
3537         * macrotab.c: Update.
3538
3539 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3540
3541         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3542         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3543         (x86_64_init_abi): ...new function.
3544
3545         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3546         * i386v-nat.c: Include "i386-tdep.h".
3547
3548 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3549
3550         * gdbtypes.c (address_space_name_to_int): Update.
3551         (address_space_int_to_name): Update.
3552         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3553         multi-arch predicate.
3554         (address_class_name_to_type_flags): Ditto.
3555         * gdbarch.h, gdbarch.c: Re-generate.
3556         
3557         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3558
3559 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3560
3561         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3562
3563 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3564
3565         * symtab.h (INIT_SAL): Delete macro.
3566         (init_sal): Export.
3567         * symtab.c (init_sal): New function.
3568
3569         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3570         to init_sal function call.
3571         (find_sal_from_funcs_and_line): Ditto.
3572         (all_sals_for_line): Ditto. 
3573         * breakpoint.c (create_internal_breakpoint): Ditto. 
3574         (create_fork_vfork_event_catchpoint): Ditto. 
3575         (create_exec_event_catchpoint): Ditto. 
3576         (parse_breakpoint_sals): Ditto. 
3577         (watch_command_1): Ditto. 
3578         (handle_gnu_4_16_catch_command): Ditto.
3579         (clear_command): Ditto. 
3580         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3581         * infcmd.c (run_stack_dummy): Ditto. 
3582         * infrun.c (process_event_stop_test): Ditto.
3583         (check_sigtramp2): Ditto.
3584         (step_over_function): Ditto. 
3585         * linespec.c (decode_line_2): Ditto. 
3586         (decode_line_1): Ditto. 
3587         * source.c (line_info): Ditto. 
3588         * symtab.c (find_pc_sect_line): Ditto.
3589
3590 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3591
3592         * dwarf2cfi.c (struct context)
3593         (struct context_reg): Moved to dwarf2cfi.h
3594         (context_alloc, frame_state_alloc, context_cpy):
3595         Made extern instead of static, removed prototypes.
3596         * dwarf2cfi.h (struct context)
3597         (struct context_reg): New, moved from dwarf2cfi.c
3598         (context_alloc, frame_state_alloc, context_cpy):
3599         New prototypes.
3600         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3601         Changed from static to extern.
3602         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3603         (LINUX_SIGCONTEXT_FP_OFFSET)
3604         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3605         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3606         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3607         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3608         set_gdbarch_*() calls now use x86-64 specific functions 
3609         instead of DWARF2 CFI ones.
3610         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3611         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3612         (x86_64_init_extra_frame_info): New prototypes.
3613         
3614 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3615
3616         * linespec.c: #include "parser-defs.h".
3617         Delete prototype for find_template_name_end.
3618         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3619
3620 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3621
3622         * NEWS: add recent mi fixes.
3623         * varobj.c (struct varobj): Add new "updated" flag.
3624         (new_variable): Default "updated" flag to 0.
3625         (varobj_set_value): Set "updated" flag to 1 if value
3626         changes.
3627         (varobj_update): Check varobj "updated" flag before
3628         comparing old and refreshed values.  Fix for
3629         PR gdb/702.
3630
3631 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3632
3633         * parse.c (parse_exp_1): Use BLOCK_START.
3634         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3635         SYMBOL_BLOCK_VALUE.
3636         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3637
3638 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3639
3640         * symtab.c: Delete cplusplus_hint.
3641         Delete prototype for find_template_name_end.
3642
3643 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3644
3645         * symtab.h: Update comment.
3646
3647 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3648
3649         * printcmd.c (address_info): Restore quotes in output.
3650         * valops.c (value_of_local): Restore quotes in error message.
3651
3652 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3653
3654         * symtab.c (symbol_demangled_name): New function.
3655         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3656         turning most of it into a function.
3657         (symbol_demangled_name): Export.
3658
3659 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3660
3661         * valops.c (value_of_local): Restore quotes in error message.
3662
3663 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3664
3665         * symtab.c (symbol_init_language_specific): New function.
3666         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3667         turning most of it into a function.
3668         (symbol_init_language_specific): Export.
3669
3670 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3671
3672         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3673         (dwarf_attr_name): Ditto.
3674         (dwarf_type_encoding_name): Ditto.
3675         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3676         (process_die): Handle DW_TAG_namespace,
3677         DW_TAG_imported_declaration, DW_TAG_imported_module.
3678         (read_namespace): New function.
3679
3680 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3681
3682         * configure.in: Define NEW_PROC_API on Interix too.
3683         * configure: Regenerate.
3684
3685 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3686
3687         * configure: Regenerate using the proper version of autoconf.
3688
3689 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3690
3691         * findvar.c (read_var_value): Temporarily disable TLS code, until
3692         complete TLS support is added.
3693
3694 2002-10-21  Jim Blandy  <jimb@redhat.com>
3695             Elena Zannoni  <ezannoni@redhat.com>
3696
3697         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3698         for thread local storage locations.
3699         (struct symbol): Add objfile field.
3700         (SYMBOL_OBJFILE): Define.
3701         * dwarf2read.c (is_thread_local): New static variable.
3702         (new_symbol): If variable is in thread local fill in address class
3703         and objfile appropriately.
3704         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3705         stack operation.
3706         * printcmd.c (address_info): Print the information for thread
3707         local storage variable.
3708         * findvar.c (read_var_value): In case of thread local variable,
3709         defer to the target vector code to compute address.
3710
3711 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3712
3713         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3714         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3715
3716 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3717
3718         * symtab.h (address_class):  Rename
3719         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3720         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3721         * printcmd.c (address_info): Ditto.
3722         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3723
3724 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3725
3726         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3727         DBREG_DRX macro to acces debug registers.
3728
3729         * Makefile.in (i386obsd-tdep.o): New target.
3730
3731         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3732         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3733
3734         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3735         * config/i386/obsd.mt: New file.
3736         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3737         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3738         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3739         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3740         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3741         * i386obsd-tdep.c: New file.
3742
3743 2002-10-19  Adam Fedor  <fedor@gnu.org>
3744
3745         * objc-exp.y (name_not_typename): Fix invalid comment.  
3746
3747 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3748
3749         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3750         to allocate partial syms and macro byte caches.
3751
3752 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3753
3754         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3755
3756 2002-10-18  Adam Fedor  <fedor@gnu.org>
3757
3758         * stabsread.c (find_name_end): New function.
3759         (define_symbol): Use it.
3760
3761 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3762
3763         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3764         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3765         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3766         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3767
3768 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3769
3770         * symfile.h: Add opaque declaration for struct obstack.
3771         Declare obsavestring to take a const char *.
3772         * symfile.c (obsavestring): Make first argument a const char *.
3773
3774 2002-10-16  Adam Fedor  <fedor@gnu.org>
3775
3776         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3777         names when matching breakpoints in current file.
3778
3779 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3780
3781         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3782         (read_tag_pointer_type): Add address class support.
3783         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3784         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3785         New methods.
3786         * gdbarch.h, gdbarch.c: Regenerate.
3787         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3788         (make_type_with_address_space, recursive_type_dump): Add address
3789         class support.
3790         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3791         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3792         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3793
3794 2002-10-16  Klee Dienes  <kdienes@apple.com>
3795
3796         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3797         to get the last character of a char[] buffer, not
3798         name[sizeof(vptr_name)-1].
3799
3800 2002-10-14  Adam Fedor  <fedor@gnu.org>
3801
3802         * symtab.h: New objc_specific struct.
3803         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3804         (SYMBOL_DEMANGLED_NAME): Likewise.
3805
3806 2002-10-14  Adam Fedor  <fedor@gnu.org>
3807
3808         * symfile.c (init_filename_language_table): Add ObjC file extension.
3809
3810 2002-10-14  Adam Fedor  <fedor@gnu.org>
3811
3812         * utils.c (puts_filtered_tabular): New function.
3813         (fprintf_symbol_filtered): Get ObjC demangled name.
3814         * defs.h (puts_filtered_tabular): Declared.
3815
3816 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3817
3818         * c-lang.h (c_type_print_varspec_prefix): Delete.
3819         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3820         ``need_post_space'' parameter.  Adjust all callers.
3821
3822 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3823  
3824         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3825         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3826         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3827         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3828
3829 2002-10-13  Adam Fedor  <fedor@gnu.org>
3830
3831         * source.c (print_source_lines): Update comments.
3832
3833 2002-10-13  Adam Fedor  <fedor@gnu.org>
3834
3835         * valops.c (value_of_local): New function.
3836         (value_of_this): Use it.
3837         * value.h (value_of_local): Declared.
3838
3839 2002-10-13  Adam Fedor  <fedor@gnu.org>
3840
3841         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3842         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3843
3844 2002-10-12  Adam Fedor  <fedor@gnu.org>
3845
3846         * language.c (binop_result_type): Add language_objc to case.
3847         (integral_type): Likewise.
3848         (character_type): Likewise.
3849         (string_type): Likewise.
3850         (boolean_type): Likewise.
3851         (structured_type): Likewise.
3852         (binop_type_check): Likewise.
3853
3854 2002-10-11  Adam Fedor  <fedor@gnu.org>
3855
3856         * printcmd.c (address_info): Print 'self' for ObjC.
3857
3858 2002-10-11  Adam Fedor  <fedor@gnu.org>
3859
3860         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3861         OP_SELF.
3862
3863 2002-10-11  Adam Fedor  <fedor@gnu.org>
3864
3865         * language.h (CAST_IS_CONVERSION): Add language_objc.
3866
3867 2002-10-11  Adam Fedor  <fedor@gnu.org>
3868
3869         * defs.h (enum language): Add language_objc.
3870
3871 2002-10-11  Klee Dienes  <kdienes@apple.com>
3872
3873         * corefile.c (read_memory_typed_address): New function.
3874         * gdbcore.h (read_memory_typed_address): Add prototype.
3875         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3876         to read a value destined for a CORE_ADDR, not read_memory_integer.
3877         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3878         (f77_get_dynamic_lowerbound): Ditto.
3879
3880 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3881
3882         * utils.c (string_to_core_addr): After turning string into
3883         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3884         which will do necessary sign-extension, etc.
3885
3886 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3887
3888         * c-exp.y (THIS): Delete token and grammar rule.
3889         (yylex): Don't return THIS.
3890         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3891         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3892         * demangle.c (cplus_markers): Update comment.  Put '$'
3893         first.  Remove CPLUS_MARKER.
3894         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3895         * jv-exp.y (THIS): Delete token and grammar rule.
3896         (yylex): Don't return THIS.
3897         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3898         * objc-exp.y (THIS): Delete token and grammar rule.
3899         (yylex): Don't return THIS.
3900         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3901         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3902         (read_member_functions): Likewise for opname.
3903         (read_tilde_fields): Use is_cplus_marker.
3904
3905         * defs.h (CPLUS_MARKER): Don't define.
3906         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3907         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3908         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3909         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3910         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3911
3912         * config/i386/tm-i386v4.h: Delete file.
3913         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3914         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3915         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3916         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3917         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3918         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3919         * config/i386/i386v4.mt (TM_FILE): Likewise.
3920         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3921
3922 2002-10-10  Marko Mlinar  <markom@opencores.org>
3923
3924         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3925         accidentially not commited 2002-10-09
3926         * gdbarch.h, gdbarch.c: Re-generate.
3927
3928 2002-10-09  Marko Mlinar  <markom@opencores.org>
3929
3930         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3931         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3932         * gdbarch.h, gdbarch.c: Re-generate.
3933
3934 2002-10-08  Petr Sorfa <petrs@caldera.com>
3935
3936         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3937
3938         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3939         so we can work on more than one compilation unit at a time.  This
3940         helps prepare GDB to handle inter-CU die references.
3941         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3942         the code to be defined before struct comp_unit_head.
3943         (comp_unit_head): Added new members - offset, cu_head,
3944         begin_die, next and dwarf2_abbrevs.
3945         (dwarf2_abbrevs): Removed single static var; now member of
3946         struct comp_unit_head.
3947         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3948         members.
3949         (psymtab_to_symtab_1): Changed to work with the new
3950         struct comp_unit_head.
3951         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3952         constructs the dwarf2_abbrevs[] inside the cu_header.
3953         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3954         dwarf2_abbrev table to clean up.
3955         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3956         handling of dwarf2_abbrevs inside the cu_header.
3957         (read_partial_die): Now supports the call to the new
3958         dwarf2_lookup_abbrev.
3959         (read_full_die): Now supports the call to the new
3960         dwarf2_lookup_abbrev.
3961
3962 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3963
3964         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3965         insure that shell variables, such as "transformed_name" are propagated
3966         to later shell statements in rule.
3967
3968 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3969
3970         * config/i386/nm-i386sco.h: Add protection against
3971         multiple-inclusion.  Include "i386/nm-i386v.h".
3972         (REGISTER_U_ADDR): Remove define.
3973         (i386_register_u_addr): Remove prototype.
3974
3975 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3976
3977         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3978         before treating it as a single-step event.
3979
3980 2002-10-03  Adam Fedor  <fedor@gnu.org>
3981
3982         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3983         (objc_demangle): Remove assignment in if statements, Replace
3984         free with xfree.
3985         (add_msglist): Likewise.
3986         (end_msglist): Likewise.
3987         (complare_selectors): Likewise.
3988         (selectors_info): Likewise.
3989         (compare_classes): Likewise.
3990         (classes_info): Likewise.
3991         (print_object_command): Likewise.
3992         (find_objc_msgcall_submethod): Replace PTR with void *.
3993         * objc-lang.h: Remove check for __STDC__.
3994
3995 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3996
3997         * ui-out.h (ui_out_field_fmt_int): New prototype.
3998         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3999         of field width and alignment.
4000         * stack.c (print_frame_info_base): When printing frame level, use
4001         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
4002         PR gdb/192
4003
4004 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
4005
4006         * MAINTAINERS: Add self to Write After Approval list.
4007
4008 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
4009
4010         * infcmd.c (interrupt_target_command_wrapper): Delete.
4011         (interrupt_target_command): Make non static.
4012         (nofp_registers_info): Make static.
4013         * stack.c (return_command_wrapper): Delete.
4014         (return_command): Make non static.
4015
4016 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
4017
4018         * event-top.c (gdb_setup_readline): New function. Code moved from
4019         _initialize_event_loop().
4020         (_initialize_event_loop): Call gdb_setup_readline().
4021
4022 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
4023
4024         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4025         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
4026         * gdbarch.h, gdbarch.c: Re-generate.
4027
4028 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
4029
4030         Fix PR gdb/778
4031         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4032         before recursing.
4033         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4034         of fill_in_vptr_fieldno.
4035
4036 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
4037
4038         * inferior.h (registers_info, stepi_command, nexti_command,
4039         continue_command, interrupt_target_command): Export from infcmd.c.
4040         * frame.h (args_info, selected_frame_level_changed_hook,
4041         return_command): Export from stack.c.
4042         * v850ice.c (stepi_command, nexti_command, continue_command): use
4043         prototypes from inferior.h.
4044         * tracepoint.c (registers_info, args_info, locals_info): Use
4045         prototypes from frame.h and inferior.h.
4046         * Makefile.in (mi-main.o): Add dependency on frame.h.
4047
4048 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
4049
4050         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4051         value in register 3 adjusted by ppc_gp0_regnum.
4052
4053         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4054
4055 2002-10-02  Marko Mlinar <markom@opencores.org>
4056
4057         * MAINTAINERS: Add myself to the Write After Approval list.
4058
4059 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
4060
4061         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4062         of the section for the N64 ABI, fixed.
4063
4064         * config/mips/tm-irix6.h: Include solib.h.
4065
4066 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
4067
4068         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4069         GNU operators.
4070
4071 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4072
4073         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4074         and that "mi0" syntax has been removed.
4075
4076 2002-09-30  David Carlton  <carlton@math.stanford.edu>
4077
4078         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4079         * ppc-sysv-tdep.c: #include "gdb_string.h".
4080         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4081         pacify GCC.
4082
4083 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
4084
4085         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4086         "vrsave"'s register number.
4087
4088 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4089
4090         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4091         use frame_unwind_signed_register to obtain the PC.
4092         (mips_frame_chain): Handle a generic dummy frame.
4093         (mips_init_extra_frame_info): When a generic dummy frame, don't
4094         re-compute the frame base.
4095         (mips_pop_frame): Handle generic dummy frames.
4096         (mips_gdbarch_init): When generic dummy frames, set
4097         use_generic_dummy_frames, push_dummy_frame to
4098         generic_push_dummy_frame, pc_in_call_dummy to
4099         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4100         generic_save_dummy_frame_tos.
4101
4102 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4103
4104         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4105         against TOP when TOP was explictly set.
4106         (generic_push_dummy_frame): Set TOP to zero.
4107
4108 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4109
4110         * event-loop.c (start_event_loop): Rename variable 'result' to
4111         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4112
4113 2002-09-30  Keith Seitz  <keiths@redhat.com>
4114
4115         * gdb-events.sh (selected_thread_changed): New event.
4116         * gdb-events.c: Regenerated.
4117         * gdb-events.h: Regenerated.
4118
4119 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4120
4121         * MAINTAINERS: Add self to Write After Approval list.
4122
4123 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4124
4125         * disasm.c: New file.  
4126         * disasm.h: New file.  
4127         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4128         (compare_lines): Ditto.
4129         (dump_insns): Ditto.
4130         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4131         argument.
4132         (do_assembly_only): Ditto.
4133         (do_disassembly): Renamed to gdb_disassembly and moved to
4134         disasm.c.  Sdded uiout argument.
4135         * Makefile.in: Add new files.  Reorder SFILES list. Update
4136         dependencies.  Include libgdb.a later in the insight executable.
4137
4138 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4139
4140         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4141         bfd/elf64-alpha-fbsd.c.
4142
4143 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4144
4145         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4146         i386gnu-tdep.c.
4147
4148 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4149
4150         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4151         __FUNCTION__.
4152         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4153         function name.
4154         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4155         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4156         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4157         (S_msg_sig_post_reply): Ditto.
4158         
4159 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4160
4161         * sh-tdep.c (sh_use_struct_convention): Use definition according
4162         to ABI.
4163         (sh_push_arguments): Store in register with correct endianess.
4164         (sh_default_store_return_value): Ditto.
4165         (sh_gdbarch_init): Set sizeof long double to 8.
4166
4167 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4168
4169         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4170         Fix some whitespace problems.
4171
4172 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4173
4174         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4175         (mcore-tdep.o): Ditto.
4176         (ns32k-tdep.o): Ditto.
4177         (ns32knbsd-tdep.o): Ditto.
4178         (sh3-rom.o): Ditto.
4179         (vax-tdep.o): Ditto.
4180         * cris-tdep.c: #include "gdb_string.h"
4181         * mcore-tdep.c: Ditto.
4182         * ns32k-tdep.c: Ditto.
4183         * ns32knbsd-tdep.c: Ditto.
4184         * sh3-rom.c: Ditto.
4185         * vax-tdep.c: Ditto.
4186
4187 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4188
4189         * config/djgpp/fnchange.lst: Add entries for
4190         gdb/testsuite/gdb.c++/m-static files.
4191
4192 2002-09-27  Jim Wilson  <wilson@redhat.com>
4193
4194         * MAINTAINERS: Add myself to the Write After Approval list.
4195
4196 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4197
4198         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4199
4200
4201 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4202
4203         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4204         frame.
4205
4206 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4207
4208         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4209         (rs6000_struct_return_address): Delete variable.
4210         (rs6000_store_struct_return): Update.
4211         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4212         deprecated_extract_struct_value_address.
4213         (rs6000_frame_align): New function.
4214         (rs6000_gdbarch_init): Set frame_align.
4215
4216 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4217
4218         From Grace Sainsbury <graces@redhat.com>:
4219         * Makefile.in (gdbtk-main.o): New target.
4220         (gdb.o): New target.
4221         (main_h): Define.
4222         (main.o): Update dependencies.
4223         (gdb$(EXEEXT)): Add gdb.o.
4224         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4225         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4226         (SUBDIR_GDBTK_CLEAN): Set.
4227         (install-gdbtk): Install the insight binary.
4228         (uninstall-gdbtk): New target.
4229         (all-gdbtk, clean-gdbtk): New rule.
4230         * top.c (use_windows): Default to zero.
4231         * main.c: Include "main.h".
4232         (main): Delete.
4233         (struct captured_main_args): Delete.
4234         (gdb_main): New function.
4235         * main.h: New file.
4236         * gdb.c: New File.
4237
4238 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4239
4240         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4241         (frame_map_regnum_to_name): New function.
4242         (frame_map_name_to_regnum): New function.
4243         * frame.h (frame_map_name_to_regnum): Declare.
4244         (frame_map_regnum_to_name): Declare.
4245         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4246         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4247         * parse.c: Do not include "builtin-regs.h".
4248         (target_map_name_to_register): Delete function.
4249         (write_dollar_variable): Use frame_map_name_to_regnum.
4250         * parser-defs.h (target_map_name_to_register): Delete declaration.
4251         * expprint.c: Include "frame.h".
4252         (print_subexp): Use frame_map_regnum_to_name.
4253         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4254         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4255
4256 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4257
4258         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4259         wasn't saved, and the next innermost frame is a dummy, return the
4260         dummy frame's link register.
4261
4262 2002-09-24  Jim Blandy  <jimb@redhat.com>
4263
4264         Fix from Paul Breed:
4265         * main.c (captured_main): Add a `break' after the case for 'b'.
4266
4267 2002-09-24  Keith Seitz  <keiths@redhat.com>
4268
4269         * varobj.c (c_type_of_child): Use get_target_type instead
4270         of TYPE_TARGET_TYPE.
4271
4272 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4273
4274         * source.c (get_current_or_default_source_symtab_and_line): Remove
4275         function.
4276         (set_default_source_symtab_and_line): New function. Attempts to
4277         determine a source file to list lines from if one is not currently
4278         defined.
4279         (get_current_source_symtab_and_line): Initialize sal.pc and
4280         sal.end fields.
4281         (set_current_source_symtab_and_line): Mark argument as const.
4282         * source.h: Update declarations and comments.
4283         * linespec.c (decode_line_1): Replace call to removed routine above.
4284         * stack.c (print_frame_info_base): Ditto.
4285         * cli/cli-cmds.c (edit_command): Ditto.
4286         (list_command): Ditto.
4287
4288 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4289
4290         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4291         sal.pc and sal.end fields.
4292         (get_current_or_default_source_symtab_and_line): Ditto.
4293         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4294         so we do not cause a new source symtab to be searched for (reverting an
4295         unintentional change from the 2002-09-20 patch).
4296         * scm-lang.c (scm_unpac): Ditto.
4297
4298 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4299
4300         * complaints.c (symfile_explanations): Remove new-line from
4301         ``isolated_message''.
4302         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4303         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4304
4305 2002-09-20  Nick Clifton  <nickc@redhat.com>
4306         
4307         * NEWS: Announce that V850EA ISA is no longer supported.
4308         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4309
4310 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4311
4312         * Makefile.in (c-lang.o): Correct dependencies.
4313         (utils.o): Gather dependencies.
4314         (charset.o): Move.
4315         * c-lang.c: #include "gdb_string.h"
4316
4317 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4318
4319         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4320         * cli/cli-cmds.c (list_command): New function.  Implements the new
4321         cli edit command.
4322         (_init_cli_cmds): Add new command definition.
4323         * gdb.1: Document edit command.
4324         * doc/gdb.texinfo: Document edit command.
4325
4326 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4327
4328         * source.c: Make global variables current_source_symtab and
4329         current_source_line static.
4330         (list_command): Moved to cli/cli-cmds.c.
4331         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4332         (get_first_line_listed): New accessor function.
4333         (get_lines_to_list): New accessor function.
4334         (get_current_source_symtab_and_line): New function. Retrieves the
4335         position in the source code that we consider current.
4336         (get_current_or_default_source_symtab_and_line): New function.
4337         Like the above but attempts to determine a default position if one
4338         is not currently defined.
4339         (set_current_source_symtab_and_line): New function. Sets the source
4340         code position considered current and returns the previously set one.
4341         (clear_current_source_symtab_and_line): Reset stored information about
4342         a current source line.
4343         (_initialize_source): Remove registration for the "list" command and
4344         its alias.
4345         * source.h: Add declarations for the new functions above.
4346         * symtab.h: Remove declarations for the global variables mentioned
4347         above.
4348         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4349         obtain current source line.
4350         * linespec.c (decode_line_1): Ditto.
4351         * macroscope.c (default_macro_scope): Ditto.
4352         * scm-lang.c (scm_unpac): Ditto.
4353         * stack.c (print_frame_info_base): Ditto.
4354         * symfile.c (clear_symtab_users): Ditto.
4355         * symtab.c (decode_line_spec): Ditto.
4356         * cli/cli-cmds.c (list_command): Moved here from source.c.
4357         (ambiguous_line_spec): Moved here from source.c.
4358         (_init_cli_cmds): Add definition for "list" and its alias.
4359         * Makefile.in: Update dependencies.
4360
4361 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4362
4363         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4364         with what gcc thinks is correct.
4365
4366 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4367
4368         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4369         multiple register push instruction.
4370
4371 2002-09-19  Jim Blandy  <jimb@redhat.com>
4372
4373         Add support for distinct host and target character sets.
4374         * charset.c, charset.h: New files.
4375         * c-exp.y: #include "charset.h".
4376         (yylex): Convert character and string literals to the target
4377         character set, before returning them as the semantic value of the
4378         token.
4379         * c-lang.c: #include "charset.h".
4380         (c_emit_char): Use charset-specific methods to recognize
4381         characters with backslash escape forms, to decide which characters
4382         to print literally and which to print using numeric escape
4383         sequences, and to convert target characters to host characters
4384         before printing.
4385         * utils.c: #include "charset.h".
4386         (no_control_char_error): New function.
4387         (parse_escape): Use charset-specific methods to recognize
4388         backslash escapes, parse `control character' notation, and convert
4389         characters from the host character set to the target character set.
4390         * configure.in: Set the default host character set.
4391         Check where to find iconv, and what its argument types might be.
4392         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4393         * Makefile.in (SFILES): List charset.c.
4394         (COMMON_OBS): List charset.o.   
4395         (charset.o): New rule.
4396         (charset_h): New header dependency variable.
4397         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4398         (LIBICONV): New variable, set by configure.
4399         (CLIBS): Include $(LIBICONV) here.
4400         * aclocal.m4, config.in, configure: Regenerated.
4401
4402 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4403
4404         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4405         bison 1.35 warning.
4406
4407 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4408
4409         * gdb_mbuild.sh: New file.
4410
4411 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4412
4413         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4414
4415 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4416
4417         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4418         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4419         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4420         valops.c, value.h: Revert previous change.
4421         
4422 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4423
4424         Preliminary support for Objective-C:
4425         * defs.h (language_objc): New enum value.
4426         (puts_filtered_tabular): Declaration only, exported from utils.c.
4427         (skip_quoted): Delete, declared in completer.h.
4428         * c-exp.y: Include completer.h.
4429         * p-exp.y: Ditto.
4430         * jv-exp.y: Ditto.
4431         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4432         New operator enum values.
4433         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4434         * language.c (binop_result_type): Handle language_objc case.
4435         (integral_type, character_type, string_type, boolean_type,
4436         structured_type, binop_type_check): Ditto.
4437         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4438         (struct objc_specific): Add to general_symbol_info.
4439         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4440         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4441         * parser-defs.h (struct objc_class_str): New struct type.
4442         (start_msglist, end_msglist, add_msglist): Declaration only,
4443         exported from objc-lang.c.
4444         * value.h (value_of_local, value_nsstring, 
4445         call_function_by_hand_expecting_type): Exported from valops.c.
4446         * valops.c (find_function_addr): Export.
4447         (call_function_by_hand_expecting_type): New function.
4448         (value_of_local): New function.
4449         * symfile.c (init_filename_language_table): Add ".m" extension
4450         for Objective-C.
4451         * utils.c (puts_filtered_tabular): New function.
4452         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4453         (set/show demangle): Extend help-string to refer to ObjC.
4454         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4455         * stabsread.c (symbol_reference_defined): Objective-C symbols
4456         may contain colons: make allowances when scanning stabs strings
4457         for colons.
4458         (objc_find_colon): New function.
4459         * printcmd.c (address_info): If language == objc then print
4460         "self" instead of "this".
4461         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4462         OP_NSSTRING, and OP_SELF.
4463         (prefixify_subexp): Ditto.
4464         * source.c (print_source_lines): Mention objc in comment.
4465         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4466         method names.
4467
4468 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4469
4470         * complaints.h: Update copyright.
4471         (struct complaints): Declare.
4472         (struct complaint): Make `message' constant.
4473         (internal_complaint): Declare.
4474         (complaint): Declare.
4475         (complaint_root): Delete declaration.
4476         (symfile_complaints): Delete declaration.
4477         (struct complaints): Add opaque declaration.
4478         (clear_complaints): Add a complaints parameter.
4479         * complaints.c: Update copyright.
4480         (enum complaint_series): Define.
4481         (complaint_root): Delete.
4482         (struct complaints): Define.
4483         (complaint_sentinel, symfile_complaint_book): New variables.
4484         (symfile_explanations, symfile_complaints): New variables.
4485         New variables.
4486         (get_complaints): New function.
4487         (vcomplaint): New function.
4488         (complaint): New function.
4489         (internal_complaint): New function.
4490         (complain): Call vcomplain with symfile_complaint.
4491         (clear_complaints): Rewrite.
4492         (_initialize_complaints): Use add_setshow_command.
4493         * Makefile.in (complaints.o): Update dependencies.
4494         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4495         to call to clear_complaints.
4496         (new_symfile_objfile, reread_symbols): Ditto.
4497         (oldsyms_complaint): Delete.
4498         (empty_symtab_complaint, unknown_option_complaint): Delete.
4499         (free_named_symtabs): Use complaint instead of complain.
4500
4501 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4502
4503         Contributed by Apple Computer, Inc.  Merged with current sources
4504         by Adam Fedor <fedor@doc.com> [cagney].
4505         
4506         * objc-lang.c: First clean-up round: comments, indentation.
4507         * objc-lang.h: Ditto.
4508         * objc-lang.y: Ditto.
4509
4510 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4511
4512         * maint.c (maintenance_internal_error): Print the parameter as the
4513         error message.
4514         (maintenance_internal_warning): New function.
4515         (_initialize_maint_cmds): Add command `maint internal-warning'.
4516
4517         * defs.h (internal_warning, internal_vwarning): Declare.
4518         * utils.c (struct internal_problem): Define.
4519         (internal_vproblem): New function.
4520         (internal_warning): New function.
4521         (internal_vwarning): New function.
4522         (internal_warning_problem, internal_error_problem): New variables.
4523         (internal_verror): Just call internal_vproblem.
4524
4525 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4526
4527         * objc-lang.c: New file, support for Objective-C.
4528         Preliminary check-in, not yet integrated into gdb.
4529         * objc-lang.h: New file.
4530         * objc-exp.y:  New file.
4531
4532 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4533
4534         * infrun.c (signal_stop_update): Convert definition to ISO C.
4535         (signal_print_update): Ditto.
4536         (signal_pass_update): Ditto.
4537         * inflow.c (terminal_save_ours): Ditto.
4538
4539         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4540         comments.
4541         
4542         * config/djgpp/fnchange.lst: Handle name clashes between
4543         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4544         bfd/coff-tic80.c.
4545
4546         * i386-linux-tdep.h: Fix tipo.
4547
4548 2002-09-18  Adam Fedor  <fedor@gnu.org>
4549
4550         * MAINTAINERS: Add myself to the Write After Approval list.
4551
4552 2002-09-18  Jim Blandy  <jimb@redhat.com>
4553
4554         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4555         texthigh and textlow to reader-specific structs caused
4556         objfile_relocate to miss them.  This is fixable, but the work that
4557         the change was supposed to prepare GDB for never got done anyway.
4558
4559 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4560
4561         * MAINTAINERS: Alphabetize Write After Approval list.
4562
4563 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4564
4565         Fix PR gdb/709
4566         * values.c (value_static_field): Call read_var_value.
4567
4568 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4569
4570         * valops.c (hand_function_call): Align the initial stack pointer
4571         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4572         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4573         return value.
4574         * mips-tdep.c (mips_frame_align): New function.
4575         (mips_gdbarch_init): Set frame_align.
4576         * gdbarch.sh (FRAME_ALIGN): New method.
4577         * gdbarch.h, gdbarch.c: Re-generate.
4578
4579 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4580
4581         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4582         registers.
4583
4584 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4585
4586         * NEWS: Mention that MIPS $fp behavior changed.
4587         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4588         reference to FP_REGNUM.
4589         (mipsnbsd_cannot_store_register): Ditto.
4590         * mips-linux-nat.c: Update copyright.
4591         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4592         (mips_linux_cannot_store_register): Ditto.
4593         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4594         * config/mips/tm-mips.h: Update copyright.
4595         (FP_REGNUM): Delete macro.
4596         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4597         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4598         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4599         (mips_r3041_reg_names, mips_r3051_reg_names)
4600         (mips_r3081_reg_names): Replace "fp" with "".
4601         Fix PR gdb/480.
4602
4603 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4604
4605         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4606         generic_read_register_dummy() (PR gdb/703).
4607         (avr_push_return_address): #if 0 out unused vars.
4608         (avr_gdbarch_init): Enable use of avr_push_return_address().
4609
4610 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4611
4612         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4613         RTE will take care of it.
4614
4615 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4616
4617         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4618         invalid, return SP_REGNUM.
4619
4620 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4621
4622         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4623         point registers without sign extension.
4624
4625 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4626
4627         * blockframe.c (deprecated_read_register_dummy): Rename
4628         generic_read_register_dummy.
4629         * frame.c (frame_unwind_signed_register): New function.
4630         (frame_unwind_unsigned_register): New function.
4631         * frame.h (frame_unwind_signed_register): Declare.
4632         (frame_unwind_unsigned_register): Declare.
4633         (deprecated_read_register_dummy): Rename
4634         generic_read_register_dummy.
4635
4636         * h8300-tdep.c (h8300_frame_chain): Update.
4637         (h8300_frame_saved_pc): Update.
4638         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4639         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4640         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4641         (s390_frame_chain): Update.
4642         * v850-tdep.c (v850_find_callers_reg): Update.
4643         (v850_frame_saved_pc): Update.
4644         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4645         (m32r_find_callers_reg): Update.
4646         (m32r_frame_saved_pc): Update.
4647         * sh-tdep.c (sh_find_callers_reg): Update.
4648         (sh64_get_saved_pr): Update.
4649         (sh_init_extra_frame_info): Update.
4650         (sh_init_extra_frame_info): Update.
4651         (sh64_init_extra_frame_info): Update.
4652         (sh64_init_extra_frame_info): Update.
4653         * mcore-tdep.c (mcore_find_callers_reg): Update.
4654         (mcore_frame_saved_pc): Update.
4655         (mcore_init_extra_frame_info): Update.
4656         * i386-tdep.c (i386_frame_saved_pc): Update.
4657         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4658         (ia64_init_extra_frame_info): Update.
4659         (ia64_init_extra_frame_info): Update.
4660         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4661         * cris-tdep.c (cris_init_extra_frame_info): Update.
4662         * avr-tdep.c (avr_frame_chain): Update.
4663         (avr_init_extra_frame_info): Update.
4664         (avr_frame_saved_pc): Update.
4665         * arm-tdep.c (arm_find_callers_reg): Update.
4666         (arm_init_extra_frame_info): Update.
4667         (arm_frame_saved_pc): Update.
4668
4669 2002-09-17  Tom Tromey  <tromey@redhat.com>
4670
4671         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4672         is "'".
4673
4674 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4675
4676         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4677         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4678         NEXT_PROLOGUE_INSN.
4679         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4680         NEXT_PROLOGUE_INSN.
4681
4682 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4683
4684         * osfsolib.c: Remove file, replaced by solib-osf.c.
4685         * Makefile.in: Remove compilation rules for osfsolib.c.
4686
4687 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4688
4689         * cp-valprint.c (cp_print_class_method): Correct args to
4690         check_stub_method_group.
4691
4692 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4693
4694         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4695         `set architecture'.  Unify naming convention of functions.
4696         (h8300_skip_prologue): Improve prologue analysis.
4697         (h8300_push_arguments): Rewritten to more closely match GCC's
4698         bizarre argument-passing behavior, along with the comment describing
4699         said behavior.
4700         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4701         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4702         sim, remote-e7000.c, remote-hms.c and remote.c
4703
4704 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4705
4706         * i386-tdep.c (gdb_print_insn_i386): Removed.
4707         (i386_print_insn): New function.
4708         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4709         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4710         tm_print_insn_info.
4711
4712 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4713
4714         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4715         zero.
4716
4717 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4718
4719         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4720         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4721         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4722
4723 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4724
4725         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4726
4727 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4728
4729         * gdbtypes.c (check_stub_method): Make static.
4730         (check_stub_method_group): New function.
4731         * gdbtypes.h: Update prototypes.
4732         * cp-support.c: New file.
4733         * cp-support.h: New file.
4734
4735         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4736         (update_method_name_from_physname): New function.
4737         (read_member_functions): Correct method names for operators
4738         and v3 constructors/destructors.  Separate v2 constructors and
4739         destructors.
4740         * Makefile.in (stabsread.o): Update dependencies.
4741         (SFILES): Add cp-support.c.
4742         (COMMON_OBS): Add cp-support.o.
4743         (cp_support_h, cp-support.o): Add.
4744
4745         * cp-valprint.c (cp_print_class_method): Call
4746         check_stub_method_group instead of check_stub_method.  Remove
4747         extraneous QUITs.
4748         * p-valprint.c (pascal_object_print_class_method): Likewise.
4749         * valops.c (search_struct_method): Likewise.
4750         (find_method_list, value_struct_elt_for_reference): Likewise.
4751
4752 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4753
4754         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4755         * gdbarch.h, gdbarch.c: Regenerate.
4756
4757 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4758
4759         * frame.c (find_saved_register): Delete function.
4760         * frame.h (find_saved_register): Delete declaration.
4761         Fix PR gdb/631.
4762
4763 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4764
4765         * mips-tdep.c (read_next_frame_reg): Re-hack using
4766         frame_register_unwind.
4767
4768 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4769
4770         * mips-tdep.c (mips_get_saved_register): Re-hack using
4771         frame_register_unwind.
4772
4773 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4774
4775         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4776         vector. Will be useful for Interix.  
4777         * gdbarch.h, gdbarch.c: Regenerate.
4778
4779         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4780         name of the malloc function by NAME_OF_MALLOC.
4781
4782 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4783
4784         * value.h (find_function_in_inferior): Add const keyword to
4785         one of the parameters. Allows us to invoke this function with
4786         a const char *.
4787         * valops.c (find_function_in_inferior): Likewise.
4788
4789 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4790
4791         * exec.c (xfer_memory): Fix compilation warning with old versions
4792         of GCC.
4793         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4794
4795 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4796
4797         * symtab.h: Run through gdb_indent.h.
4798         Add 2002 to Copyright year list.
4799
4800 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4801
4802         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4803         mach constants.
4804         * MAINTAINERS: Add myself to write after approval list.
4805
4806 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4807
4808         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4809
4810 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4811
4812         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4813         Interix.
4814
4815 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4816
4817         * procfs.c (do_detach): Clear current signal, not just fault.
4818         Corrects problem with breakpoint trap signal leaking to detached
4819         process on Tru64.
4820
4821 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4822
4823         * buildsym.c (finish_block): Protect against null pointer.
4824
4825 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4826
4827         * infcmd.c (default_print_registers_info): Send all output to
4828         ``file'' instead of ``gdb_stdout''.
4829
4830 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4831
4832         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4833         LONGEST, and use signed register read (addresses are sign-
4834         extended for mips).
4835
4836 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4837
4838         * event-loop.c (gdb_do_one_event): Make public.
4839         * event-loop.h (gdb_do_one_event): Declare.
4840
4841 2002-09-10  Jeff Law  <law@redhat.com>
4842
4843         * infttrace.c (child_resume): Simplify and rework to avoid
4844         TT_PROC_CONTINUE.
4845
4846 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4847
4848         * printcmd.c (print_scalar_formatted): "len" is the number of
4849         target bytes, NOT the number of target bits.
4850
4851 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4852
4853         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4854         * top.c (init_main): Set rl_terminal_name.
4855
4856 2002-09-08  Aidan Skinner <aidan@velvet.net>
4857
4858         * ada-lang.c (ada_array_bound, ada_type_match,
4859         _initialize_ada_language): Fix K&R definitions.
4860         * ada-tasks.c (get_current_task): Fix K&R definitions.
4861         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4862                         
4863 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4864
4865         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4866         Add XP.
4867
4868 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4869
4870         * i386-tdep.c (i386_register_virtual_type,
4871         i386_register_convertible, i386_register_convert_to_virtual,
4872         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4873         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4874         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4875         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4876         Don't set push_arguments twice.
4877
4878         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4879         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4880         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4881         sigtramp_end to NULL.
4882         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4883         defines.
4884         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4885
4886         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4887         whitespace.
4888
4889         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4890         * gdbarch.h, gdbarch.c: Re-generate.
4891         * blockframe.c (find_pc_sect_partial_function): Convert to use
4892         SIGTRAMP_START_P predicate.
4893
4894 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4895
4896         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4897         generic_dummy_frame method and old method.  Also distinguish
4898         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4899         (arm_extract_return_value): Use new regcache method.
4900
4901         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4902         adjustment that doesn't conform to the ABI.
4903         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4904         saved regcache, not from current regcache.
4905
4906 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4907
4908         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4909         * README: Update.
4910
4911 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4912
4913         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4914         if arm_apcs_32 is false.
4915
4916 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4917
4918         GDB 5.3 branch created.
4919
4920 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4921
4922         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4923         generic_unwind_get_saved_register.
4924
4925 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4926
4927         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4928         argument (PR gdb/653).  Update call to smash_to_method_type.
4929         (read_structure_scope): Update call to dwarf2_add_member_fn.
4930
4931 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4932
4933         * x86-64-linux-tdep.c: Include gdb_string.h
4934         * x86-64-linux-nat.c: Ditto.
4935
4936 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4937
4938         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4939         when YYDEBUG is set to 1.  
4940         * c-exp.y: Likewise.
4941         * f-exp.y: Likewise.
4942         * jv-exp.y: Likewise.
4943         * m2-exp.y: Likewise.
4944         * p-exp.y: Likewise.
4945
4946 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4947
4948         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4949         dependency list.
4950         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4951         solib_svr4_fetch_link_map_offsets to
4952         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4953         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4954         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4955         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4956         solib-svr4.o, and solib-legacy.o.
4957         * config/i386/tm-nbsd.h: Include solib.h.
4958
4959 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4960
4961         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4962         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4963         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4964         comment noting that this needs its own target configuration.
4965         * config/i386/nbsd.mt: New file.
4966         * config/i386/nbsdaout.mt: Remove.
4967         * config/i386/nbsdelf.mt: Ditto.
4968         * config/i386/tm-nbsdaout.h: Ditto. 
4969
4970 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4971
4972         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4973         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4974         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4975         tdep->sigtramp_end.
4976         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4977         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4978         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4979
4980 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4981
4982         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4983         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4984         * i386-tdep.h (i386bsd_init_abi): New prototype.
4985         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4986         function declaration.
4987         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4988         for NetBSD-a.out or NetBSD-ELF.
4989         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4990         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4991         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4992         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4993         and nbsd-tdep.h.
4994         (i386nbsd_pc_in_sigtramp): New function.
4995         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4996         i386nbsd_pc_in_sigtramp.
4997         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4998         and i386nbsdelf_init_abi OS ABI handlers.
4999         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
5000         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5001
5002 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
5003
5004         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
5005         registers if the target really has them.
5006
5007 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
5008
5009         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
5010         than nbsd-tdep.h.
5011
5012 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
5013
5014         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
5015         list.
5016         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
5017         (alphanbsd_skip_sigtramp_frame): New functions. 
5018         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
5019         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
5020         to alphanbsd_sigcontext_addr. 
5021
5022 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
5023
5024         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
5025         list.
5026         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
5027         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5028         nbsd_pc_in_sigtramp. 
5029         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5030         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5031         * nbsd-tdep.c: Include gdb_string.h.
5032         (nbsd_pc_in_sigtramp): New function. 
5033         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
5034         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5035         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5036         ppcnbsd_pc_in_sigtramp. 
5037         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5038         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5039         shnbsd_pc_in_sigtramp. 
5040         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5041         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
5042         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5043
5044 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5045
5046         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5047         watchpoints to NULL.
5048         (insert_breakpoints): set val field of watchpoints if NULL.
5049
5050
5051 2002-08-29  Jim Blandy  <jimb@redhat.com>
5052
5053         * symtab.c (lookup_symbol_aux): In the cases where we find a
5054         minimal symbol of an appropriate name and use its address to
5055         select a symtab to read and search, use `name' (as passed to us)
5056         as the demangled name when searching the symtab's global and
5057         static blocks, not the minsym's name.
5058
5059 2002-08-29  Keith Seitz  <keiths@redhat.com>
5060
5061         * stack.c (print_frame_info_base): Always set current_source_symtab
5062         and current_source_line.
5063
5064 2002-08-29  Donn Terry  <donnte@microsoft.com>
5065
5066         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5067
5068 2002-08-28  Keith Seitz  <keiths@redhat.com>
5069
5070         * stack.c (select_frame): Add FIXME concerning selected-frame
5071         events.
5072         (select_frame_command): Send selected-frame-level-changed
5073         event notification, but only if the level actually changed.
5074         (up_silently_base): Add selected-frame-level-changed event
5075         notification.
5076         (down_silently_base): Likewise.
5077
5078 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
5079
5080         * Makefile.in: Update dependencies for all gdb/*.c files.
5081
5082 2002-08-27  Tom Tromey  <tromey@redhat.com>
5083
5084         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5085         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5086         Update dependencies.
5087         * i387-tdep.c: Include gdb_string.h.
5088         * osabi.c: Likewise.
5089         * i386-linux-nat.c: Likewise.
5090         * lin-lwp.c: Likewise.
5091         * ax-gdb.c: Likewise.
5092         * signals/signals.c: Likewise.
5093         * jv-valprint.c: Likewise.
5094         * p-lang.c: Likewise.
5095         * c-valprint.c: Likewise.
5096         * cp-abi.c: Likewise.
5097
5098 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5099
5100         * cli/cli-script.h (copy_command_lines): Export.
5101         * breakpoint.c: Include cli/cli-script.h.
5102         * Makefile.in (breakpoint.o): Update dependencies.
5103
5104 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5105
5106         * breakpoint.c (insert_breakpoints): Protect all references
5107         to 'process_warning'.  Shorten long lines.
5108
5109 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5110
5111         * cli/cli-script.c (copy_command_lines): New function.
5112         * defs.h (copy_command_lines): Export.
5113         * testsuite/gdb.base/commands.exp: New tests for commands
5114         attached to a temporary breakpoint, and for commands that
5115         delete the breakpoint they are attached to.
5116         
5117 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5118
5119         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5120         pointer to the breakpoint commands struct, make a new copy
5121         of the struct and point to that.
5122         (bpstat_clear): Free the commands struct.
5123         (bpstat_clear_actions): Free the commands struct.
5124         (bpstat_do_actions): Free the command actions.  Also execute
5125         the local cleanups, instead of deleting them.
5126         (delete_breakpoint): Leave the commands field of the bpstat
5127         chain alone -- it will be freed later.
5128
5129 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5130
5131         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5132         deleted in 2002-08-20 commit.  This function is still used by
5133         ppc-linux-nat.c.
5134
5135 2002-08-26  Keith Seitz  <keiths@redhat.com>
5136
5137         * gdb-events.sh: Add selected-frame-level-changed event.
5138         * gdb-events.c: Regenerated.
5139         * gdb-events.h: Regenerated.
5140         
5141 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5142
5143         Fix PR gdb/393:
5144         * inflow.c (terminal_save_ours): New function to save terminal
5145         settings.
5146         * inferior.h (terminal_save_ours): Declare.
5147         * target.c (debug_to_terminal_save_ours): New function.
5148         (cleanup_target): Defaults to_terminal_save_ours.
5149         (update_current_target): Inherit to_terminal_save_ours.
5150         (setup_target_debug): Set to_terminal_save_ours.
5151         * target.h (target_terminal_save_ours): New to save terminal settings.
5152         (target_ops): New member to_terminal_save_ours.
5153         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5154         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5155         * inftarg.c (init_child_ops): Likewise.
5156         * m3-nat.c (init_m3_ops): Likewise.
5157         * procfs.c (init_procfs_ops): Likewise.
5158         * wince.c (init_child_ops): Likewise.
5159         * win32-nat.c (init_child_ops): Likewise.
5160         * sol-thread.c (init_sol_thread_ops): Likewise.
5161
5162 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5163
5164         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5165         use regcache_* functions.
5166         (i386_gdbarch_init): Set store_return_value instead of
5167         deprecated_store_return_value.
5168
5169         * regcache.c (regcache_raw_write_signed,
5170         regcache_raw_write_unsigned): New functions.
5171         * regcache.h (regcache_raw_write_signed,
5172         regcache_raw_write_unsigned): New prototypes.
5173
5174 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5175
5176         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5177         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5178         source file dependencies.  Cleanup corresponding generator rules.
5179
5180 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5181
5182         * regcache.h (register_offset_hack): Declare.
5183         (regcache_cooked_read_using_offset_hack): Declare.
5184         (regcache_cooked_write_using_offset_hack): Declare.
5185
5186         * regcache.c (register_offset_hack): New function.
5187         (regcache_cooked_read_using_offset_hack): New function.
5188         (regcache_cooked_write_using_offset_hack): New function.
5189         (regcache_dump): Check that the registers, according to their
5190         offset, are packed hard against each other.
5191         (cooked_xfer_using_offset_hack): New function.
5192
5193 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5194
5195         * regcache.c (struct regcache_descr): Add field register_type.
5196         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5197         in as a parameter
5198         (init_regcache_descr): Initialize register_type.  Pass the descr
5199         to init_legacy_regcache_descr.  Use register_type instead of
5200         REGISTER_VIRTUAL_TYPE.
5201         (register_type): New function.
5202         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5203         * regcache.h (register_type): Declare.
5204
5205 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5206
5207         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5208         instead of deprecated_store_return_value.  Fix fallout from
5209         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5210
5211 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5212
5213         * regcache.c (max_register_size): New function.
5214         (init_legacy_regcache_descr): Ensure that max_register_size is
5215         large enough for REGISTER_VIRTUAL_SIZE.
5216         * regcache.h (max_register_size): Declare.
5217
5218 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5219
5220         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5221         store_return_value.
5222         (e500_extract_return_value): Change type of valbuf pointer to
5223         void.
5224
5225 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5226
5227         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5228         workaround.
5229
5230         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5231         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5232         long long) to prevent compiler warning on 64-bit systems.
5233
5234 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5235
5236         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5237         (DEPRECATED_STORE_RETURN_VALUE): New method.
5238         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5239         * gdbarch.h, gdbarch.c: Re-generate.
5240
5241         * values.c (set_return_value): Pass current_regcache to
5242         STORE_RETURN_VALUE.
5243         * arch-utils.h (legacy_store_return_value): Declare.
5244         * arch-utils.c (legacy_store_return_value): New function.
5245         (legacy_extract_return_value): Update parameters.
5246
5247         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5248         STORE_RETURN_VALUE.
5249         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5250         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5251         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5252         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5253         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5254         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5255         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5256         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5257         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5258         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5259
5260         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5261         * i386-tdep.c (i386_extract_return_value): Update.
5262         * arch-utils.c (legacy_extract_return_value): Update.
5263         * frv-tdep.c (frv_gdbarch_init): Update.
5264         * cris-tdep.c (cris_gdbarch_init): Update.
5265         * d10v-tdep.c (d10v_gdbarch_init): Update.
5266         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5267         * m68k-tdep.c (m68k_gdbarch_init): Update.
5268         * mcore-tdep.c (mcore_gdbarch_init): Update.
5269         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5270         * s390-tdep.c (s390_gdbarch_init): Update.
5271         * sparc-tdep.c (sparc_gdbarch_init): Update.
5272         * sh-tdep.c (sh_gdbarch_init): Update.
5273         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5274         * v850-tdep.c (v850_gdbarch_init): Update.
5275         * avr-tdep.c (avr_gdbarch_init): Update.
5276         * ia64-tdep.c (ia64_gdbarch_init): Update.
5277         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5278         * vax-tdep.c (vax_gdbarch_init): Update.
5279         * alpha-tdep.c (alpha_gdbarch_init): Update.
5280         * arm-tdep.c (arm_gdbarch_init): Update.
5281         * mips-tdep.c (mips_gdbarch_init): Update.
5282         * i386-tdep.c (i386_gdbarch_init): Update.
5283
5284 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5285
5286         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5287         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5288
5289 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5290
5291         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5292         problems.
5293
5294 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5295
5296         * infrun.c (handle_inferior_event): Move a comment outside of a
5297         function call, in order to avoid indent reformatting this part
5298         of the code in an unreadable way.
5299
5300 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5301
5302         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5303         when breakpoints fail. Move general breakpoint error messages to
5304         insert_breakpoints.  
5305         * breakpoint.c (insert_breakpoints): Change warnings when
5306         breakpoints are nto inserted to specify the type. Remove call to
5307         memory_error when hardware breakpoints can't be inserted. Remove
5308         multiple calls to warning so all messages are sent to the user at
5309         once.
5310         (delete_breakpoints): Make insert error messsages more explicit.
5311
5312 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5313
5314         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5315         gdbserver/ChangeLog.
5316
5317 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5318
5319         * i386-tdep.c: Include "objfiles.h".
5320         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5321         skip_trampoline_code.
5322         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5323         (CPLUS_MARKER): Define to '.'.
5324
5325         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5326         member.
5327         (linux_corefile_thread_callback): Increase args->num_notes.
5328         (linux_make_note_section): Initialize thread_args.num_notes, and
5329         use it to determine whether notes for any threads were created.
5330
5331 2002-08-23  Donn Terry  <donnte@microsoft.com>
5332
5333         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5334         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5335         and PCUNKILL.
5336         (write_with_trace): Conditionalize out the switch branch handling
5337         PCSHOLD if the corresponding macro is not defined. Likewise for
5338         PRSABORT and PRSTOP.
5339         This change will be needed by the Interix port.
5340
5341 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5342
5343         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5344         write_register wherever possible instead of manipulating the
5345         register bytes directly.
5346         Assign VALUE_CONTENTS to a variable and use that.
5347         The GPR numbers are now dependent on the architecture.
5348         
5349 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5350
5351         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5352         ev_offset fields.
5353         (skip_prologue): Add support for BookE/e500 instructions.
5354         (e500_extract_return_value): New function.
5355         (frame_get_saved_regs): Add support for saving ev registers and
5356         pseudo gpr's.
5357         (e500_store_return_value): New function.
5358         (rs6000_gdbarch_init): Move up default intializations of
5359         deprecated_extract_return_value and store_return_value.  Overwrite
5360         init of store_return_value with e500 specific version.
5361         Set extract_return_value for e500.
5362         
5363 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5364
5365         * blockframe.c (generic_call_dummy_register_unwind): Use
5366         regcache_cooked_read to catch cases in which the variable is
5367         stored in a pseudo register.
5368
5369 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5370
5371         * NEWS: Mention that the i960 has been made obsolete.
5372         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5373         i960-tdep.c
5374         (remote-nrom.o): Obsolete target.
5375         (remote-nindy.o, i960-tdep.o): Ditto.
5376         * remote-nrom.c: Make file obsolete.
5377         * remote-nindy.c, remote-vx960.c: Ditto.
5378         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5379         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5380         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5381         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5382         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5383         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5384         i960-*-vxworks* obsolete.
5385         * MAINTAINERS: Note that the i960 is obsolete.
5386
5387 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5388
5389         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5390         detach to allow reinitialization.
5391
5392 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5393
5394         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5395         attempt).
5396
5397 2002-08-22  Jim Blandy  <jimb@redhat.com>
5398
5399         * coffread.c (coff_symfile_read): Don't try to read the line
5400         number table from disk if the image file doesn't have a symbol
5401         table; we'll never actually look at the info anyway, and Windows
5402         ships DLL's with bogus file offsets for the line number data.
5403
5404 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5405
5406         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5407         an e500 executable.
5408
5409 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5410
5411         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5412         (MSYMBOL_SIZE): Replace macro with function.
5413         (DEFAULT_MIPS_TYPE): Delete unused macro.
5414         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5415         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5416
5417 2002-08-21  Jim Blandy  <jimb@redhat.com>
5418
5419         * valops.c (value_cast): Simplify and correct logic for doing a
5420         static cast from a pointer to a base class to a pointer to a
5421         derived class.
5422
5423 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5424
5425         * infcmd.c (default_print_registers_info): Replace
5426         do_registers_info.
5427         (registers_info): Use gdbarch_print_registers_info instead of
5428         DO_REGISTERS_INFO.
5429         * inferior.h (default_print_registers_info): Replace
5430         do_registers_info.
5431         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5432         (DO_REGISTERS_INFO): Change to a predicate function.
5433         * gdbarch.h, gdbarch.c: Regenerate.
5434         
5435 2002-08-21  Keith Seitz  <keiths@redhat.com>
5436
5437         * gdb-events.sh: Add target-changed event.
5438         * gdb-events.c: Regenerated.
5439         * gdb-events.c: Regenerated.
5440         * valops.c (value_assign): Add target-changed event notification
5441         to inlval_register, lval_memory, and lval_reg_frame_relative.
5442
5443 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5444
5445         * NEWS: Add an entry regarding the improvement of the next/step
5446         operation on Alpha Tru64 multi-processor machines.
5447
5448 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5449
5450         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5451         directores.
5452         * Makefile.in: Update all _h macro definitions.
5453         * Makefile.in (install-gdbtk): Move to install section.
5454         (rdi-share/libangsd.a): Move to end of file.
5455
5456 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5457
5458         * frame.c (frame_register_unwind): When a register, set addrp to
5459         the register's byte.
5460
5461 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5462
5463         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5464         used locally, so move them from the target machine header to here.
5465         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5466         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5467         Make static.
5468         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5469
5470 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5471
5472         * NEWS: Mention that the Apollo line was made obsolete.
5473         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5474         m68*-hp-hpux* obsolete.
5475         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5476         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5477         * buildsym.c (make_blockvector): Make static.
5478         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5479         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5480         (ALLDEPFILES): Remove dstread.c.
5481         (dstread.o): Obsolete make rule.
5482         * dstread.c: Makefile obsolete.
5483         * dst.h: Ditto.
5484         * config/m68k/hp300hpux.mt: Ditto.
5485         * config/m68k/hp300hpux.mh: Ditto.
5486         * config/m68k/hp300bsd.mt: Ditto.
5487         * config/m68k/hp300bsd.mh: Ditto.
5488         * config/m68k/apollo68b.mt: Ditto.
5489         * config/m68k/apollo68v.mh: Ditto.
5490         * config/m68k/apollo68b.mh: Ditto.
5491
5492 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5493
5494         * mips-tdep.c (mips_in_return_stub): Make static.
5495         (mips_gdbarch_init): Set in_solib_return_trampoline.
5496         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5497
5498 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5499
5500         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5501         * gdbarch.c, gdbarch.h: Regenerate.
5502         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5503         Add.
5504         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5505
5506 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5507
5508         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5509         (mips_gdbarch_init): Set skip_trampoline_code, 
5510         in_solib_call_trampoline.
5511         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5512         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5513
5514 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5515
5516         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5517
5518         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5519         vector type for ev registers.
5520         (e500_pseudo_register_read): New function.
5521         (e500_pseudo_register_write): New function.
5522         (e500_dwarf2_reg_to_regnum): New function.
5523         (PPC_UISA_NOFP_SPRS): New macro.
5524         (PPC_EV_REGS): New macro.
5525         (PPC_GPRS_PSEUDO_REGS): New macro.
5526         (registers_e500): New register set for e500.
5527         (variants): Add e500 variant.
5528         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5529         before setting architectural dependent variations.  Initialize ev
5530         registers numbers.  Add case for e500 architecture.  Set the
5531         number of pseudo registers.
5532
5533 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5534
5535         * rs6000-tdep.c: Clean up comments.
5536
5537 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5538
5539         * h8300-tdep.c: Re-indent file.
5540
5541 2002-08-20  Jim Blandy  <jimb@redhat.com>
5542
5543         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5544         default for this.
5545
5546 2002-08-20  Keith Seitz  <keiths@redhat.com>
5547
5548         * breakpoints.c (watch_command_1): Use internal breakpoint
5549         when setting a watchpoint_scope breakpoint.
5550
5551 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5552
5553         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5554         (build_builtin_type_vec64i): Ditto.
5555         (build_builtin_type_vec128): Ditto.
5556         (build_builtin_type_vec128i): Ditto.
5557
5558 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5559
5560         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5561         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5562         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5563         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5564         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5565         CALL_DUMMY_ADDRESS): Delete.
5566         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5567         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5568         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5569         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5570         push_return_address.
5571         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5572         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5573         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5574         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5575         mips_n32n64_push_arguments, mips_push_return_address,
5576         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5577         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5578
5579 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5580
5581         * mips-tdep.c (mips_frame_num_args): New function.
5582         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5583         frame_saved_pc, frame_args_address, frame_locals_address, 
5584         frame_num_args, and frame_args_skip.
5585         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5586         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5587         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5588         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5589
5590 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5591
5592         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5593         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5594         * mips-tdep.c (mips_store_struct_return): New function.
5595         (mips_extract_struct_value_address): New function.
5596         (mips_gdbarch_init): Set store_struct_return and
5597         extract_struct_value_address.
5598
5599 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5600
5601         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5602         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5603         (read_file_scope): Check that line_header is nonzero before
5604         decoding macro information.
5605
5606 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5607
5608         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5609         flag the general-purpose registers as floating-point on targets
5610         that don't support the floating-point registers.
5611
5612 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5613
5614         * rs6000-tdep.c (altivec_register_p): Delete.
5615         (rs6000_do_altivec_registers): Delete.
5616         (rs6000_altivec_registers_info): Delete.
5617         (rs6000_do_registers_info): Delete.
5618         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5619         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5620
5621 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5622
5623         * infcmd.c (do_registers_info): Print vector registers in hex
5624         format only.
5625         (print_vector_info): Check that printing registers
5626         makes sense.
5627         (print_float_info): Ditto.
5628
5629 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5630
5631         * mips-tdep.c (mips_gdbarch_init): Update.
5632         (mips_o32_extract_return_value): Rewrite.
5633         (mips_o32_store_return_value): Rewrite.
5634         (mips_o32_xfer_return_value): New function.
5635         (mips_xfer_register): Tweak debug print message.  Allow for
5636         buf_offset when dumping the value transfered.
5637
5638 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5639
5640         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5641         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5642         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5643         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5644         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5645
5646 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5647
5648         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5649
5650 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5651
5652         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5653         register.
5654         (P): New macro to define a register as a pseudo register.
5655         (R, R4, R8, R16, FR32, R64, R0): Updated.
5656         (struct variant): Add new fields for number of pseudo registers
5657         and number of total registers.
5658         (tot_num_registers): New macro replacing....
5659         (num_registers): ...deleted macro.
5660         (num_registers): New function.
5661         (num_pseudo_registers): New function.
5662         (variants): Update all variants to intialize new fields correctly.
5663         Postpone initialization of number of pseudo regs and real regs.
5664         (init_variants): New function.
5665         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5666         registers offsets.
5667
5668 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5669
5670         * valops.c (search_struct_field): Change error message to treat
5671         return value of 0 from value_static_field as meaning that field is
5672         optimized out.
5673         (value_struct_elt_for_reference): Ditto.
5674         * values.c (value_static_field): Treat an unresolved location the
5675         same as a nonexistent symbol.  Fix PR gdb/635.
5676         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5677         enclosed.  Fix PR gdb/574.
5678         * MAINTAINERS: Add self to Write After Approval list.
5679
5680 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5681
5682         * mips-tdep.c (mips_xfer_register): New function.
5683         (mips_n32n64_extract_return_value): Rewrite.
5684         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5685         instead of deprecated_extract_return_value.
5686
5687 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5688
5689         * rs6000-tdep.c (TDEP): Delete macro.
5690         (branch_dest): Replace use of TDEP macro with its body.
5691         (rs6000_pop_frame): Ditto.
5692         (rs6000_push_arguments): Ditto.
5693         (rs6000_skip_trampoline_code): Ditto.
5694         (rs6000_frame_saved_pc): Ditto.
5695         (rs6000_frame_chain): Ditto.
5696         (rs6000_register_name): Ditto.
5697         (rs6000_register_byte): Ditto.
5698         (rs6000_register_raw_size): Ditto.
5699         (rs6000_register_virtual_type): Ditto.
5700         (rs6000_register_convertible): Ditto.
5701         (rs6000_convert_from_func_ptr_addr): Ditto.
5702
5703 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5704
5705         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5706         conditionally.
5707         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5708         MIPS_LINUX_JB_ELEMENT_SIZE.
5709         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5710         for MAX_REGISTER_RAW_SIZE arrays.
5711         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5712         MIPS_LINUX_JB_ELEMENT_SIZE.
5713
5714 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5715
5716         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5717
5718 2002-08-19  Aidan Skinner <aidan@velvet.net>
5719
5720         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5721         ada-valprint.c ada-tasks.c.
5722         (YYFILES): Add ada-exp.y.
5723         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5724         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5725         (ada-exp.tab.o): New target.
5726                 
5727 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5728
5729         * regcache.c (regcache_xfer_part): New function.
5730         (regcache_raw_read_part): New function.
5731         (regcache_raw_write_part): New function.
5732         (regcache_cooked_read_part): New function.
5733         (regcache_cooked_write_part): New function.
5734         * regcache.h (regcache_raw_read_part): Declare.
5735         (regcache_raw_write_part): Declare.
5736         (regcache_cooked_read_part): Declare.
5737         (regcache_cooked_write_part): Declare.
5738
5739 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5740
5741         * remote.c (remote_open_1): Add async_p.
5742         (remote_async_open_1): Delete.
5743         (open_remote_target): Delete.
5744         (remote_open, extended_remote_open): Update calls to remote_open_1.
5745         (remote_async_open, extended_remote_async_open): Call
5746         remote_open_1 instead of remote_async_open_1.
5747
5748 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5749
5750         * blockframe.c: Fix a few coding standard violations.
5751
5752 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5753
5754         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5755         here from ...
5756         * config/i386/tm-i386sco5.h: ... here.  File removed.
5757         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5758
5759         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5760         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5761         (TM_FILE): Set to tm-i386.h.
5762         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5763         * config/i386/tm-i386v.h: Remove file.
5764         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5765         instead of "i386/tm-i386v.h".
5766         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5767         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5768         "i386/tm-i386v.h".
5769         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5770         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5771         "i386/tm-i386.h".
5772
5773 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5774
5775         * config/i386/nm-i386v.h: Add protection against
5776         multiple-inclusion.
5777         (i386_register_u_addr): Remove prototype.
5778         (register_u_addr): New prototype.
5779         (REGISTER_U_ADDR): Redefine accordingly.
5780         * i386v-nat.c: Improve several comments.
5781         (i386_register_u_addr): Change signature and rename to
5782         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5783         ubase variable.
5784
5785 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5786
5787         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5788         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5789         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5790         deprecated_extract_return_value.
5791         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5792         rename mips_o32o64_push_arguments.
5793         (mips_gdbarch_init): Update.
5794         (mips_extract_return_value): Delete.
5795         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5796         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5797         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5798         (mips_n32n64_extract_return_value): Clone
5799         mips_extract_return_value.
5800         (mips_store_return_value): Delete.
5801         (mips_o32_store_return_value): Clone mips_store_return_value.
5802         (mips_o64_store_return_value): Clone mips_store_return_value.
5803         (mips_eabi_store_return_value): Clone mips_store_return_value.
5804         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5805
5806 2002-08-18  Aidan Skinner <aidan@velvet.net>
5807
5808         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5809         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5810                 
5811 2002-08-18  Aidan Skinner <aidan@velvet.net>
5812
5813         * ada-lang.c: Run through gdb_indent.sh.
5814         * ada-lang.h: Run through gdb_indent.sh.
5815         * ada-tasks.c: Run through gdb_indent.sh.
5816         * ada-typeprint.c: Run through gdb_indent.sh.
5817         * ada-valprint.c: Run through gdb_indent.sh.
5818
5819 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5820
5821         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5822         ABI.
5823
5824 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5825
5826         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5827
5828         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5829         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5830
5831         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5832         write_register_gen instead of write_register_bytes.
5833
5834         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5835         i[3456]-*-osf1mk* configurations have been made obsolete.
5836         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5837         i[3456]86-*-osf1mk* hosts obsolete.
5838         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5839         targets obsolete.
5840         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5841         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5842         config/i386/i386m3.mt, config/i386/nm-m3.h,
5843         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5844         config/i386/i386mk.mh, config/i386/i386mk.mt,
5845         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5846         obsolete.
5847         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5848         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5849         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5850
5851 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5852
5853         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5854         (hppa_value_returned_from_stack): Declare.
5855         (hppa_extract_return_value): Declare.
5856         * config/pa/hppa.mt: New file.
5857         * configure.tgt: Recognize hppa*-*-*.
5858         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5859
5860 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5861
5862         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5863         comment.
5864
5865 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5866
5867         * top.c (gdb_rl_operate_and_get_next): Make sure
5868         operate-and-get-next functions correctly even when the history
5869         list is completely filled.
5870
5871 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5872
5873         * MAINTAINERS (Target Instruction Set Architectures): Rename
5874         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5875         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5876         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5877         already listed under Host/Native.
5878
5879         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5880         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5881         mips*-*-*.
5882
5883 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5884
5885         * config/ia64/ia64.mt: New file.
5886         * config/alpha/alpha.mt: New file.
5887         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5888         ia64-linux-gnu.  Mention that ia64-elf is broken.
5889         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5890
5891 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5892
5893         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5894         generic_func_frame_valid instead of func_frame_valid.
5895
5896 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5897
5898         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5899         procfs appears to be broken when debugging on multi-processor
5900         machines. So enable software single stepping in order to avoid
5901         using the procfs interface to do next/step operations, using
5902         internal breakpoints instead.
5903
5904         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5905         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5906         make this pc address equal to the value it would have if the
5907         system stepping capability was used. Also set a new flag used
5908         to ensure that we don't readjust the PC one more time later.
5909
5910         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5911         address by DECR_PC_AFTER_BREAK when software single step is
5912         in use for this architecture, as this has already been taken
5913         care of in handle_inferior_event().
5914
5915 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5916
5917         * infrun.c (handle_inferior_event): Minor reformatting, to make
5918         a rather long condition expression easier to read.
5919
5920 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5921
5922         * Makefile.in (gdbtk.o): Move to end of file.
5923         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5924         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5925         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5926         (gdbtk-wrapper.o, gdbres.o): Ditto.
5927
5928 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5929
5930         * Makefile.in (copying.o): Separate out compile rule.
5931         (hpux-thread.o, procfs.o, signals.o): Ditto.
5932         (v850ice.o, z8k-tdep.o): Ditto.
5933         (tui-file.o): Move to TUI section.
5934         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5935         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5936
5937 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5938
5939         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5940         skip_trampoline_code, for better namespace-proofing.   
5941
5942         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5943
5944 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5945
5946         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5947
5948 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5949
5950         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5951         signal, check whether we hit a breakpoint before checking for a
5952         single step breakpoint. Otherwise, GDB fails to notice that a
5953         breakpoint has been hit when stepping onto a breakpoint.
5954
5955 2002-08-16  Keith Seitz  <keiths@redhat.com>
5956
5957         * gdb-events.sh (clear_gdb_event_hooks): New function.
5958         * gdb-events.c: Regenerate.
5959         * gdb-events.h: Regenerate.
5960
5961 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5962
5963         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5964         not_a_sw_breakpoint.
5965         * breakpoint.h (bpstat_stop_status): Add parameter names.
5966
5967 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5968
5969         * remote.c (remote_insert_hw_breakpoint)
5970         (remote_remove_hw_breakpoint): Fix calculation of length field
5971         for Z-packet.
5972
5973 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5974
5975         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5976         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5977         (supply_fpregset): Ditto.
5978         
5979         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5980         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5981         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5982         (TARGET_READ_SP): Delete.
5983         (DO_REGISTERS_INFO): Delete.
5984         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5985         Delete.
5986         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5987         from macros to functions.
5988
5989         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5990         (mips_register_convertible, mips_register_convert_to_virtual,
5991         mips_register_convert_to_raw): Make static.
5992         (mips_read_sp): New function.
5993         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5994         (mips_do_registers_info): Make static.
5995         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5996         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5997         (mips_register_convert_from_type, mips_register_convert_to_type):
5998         New functions.
5999         (mips_gdbarch_init): Set up function_start_offset, 
6000         register_virtual_size, pc_in_sigtramp.
6001
6002 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
6003
6004         * infcmd.c (vector_info): New function.
6005         (_initialize_infcmd): Add command "info vector".
6006         (print_vector_info): New function.
6007
6008         * gdbarch.sh (PRINT_VECTOR_INFO): New method
6009         * gdbarch.h, gdbarch.c: Regenerate.
6010
6011 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
6012
6013         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
6014         ``print_all''.  Only print vector registers when ``print_all''.
6015
6016 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
6017
6018         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
6019         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
6020
6021         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
6022         Add `args' parameter.
6023         * gdbarch.h, gdbarch.c: Regenerate.
6024         
6025         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
6026         
6027         * infcmd.c (float_info): Call print_float_info.
6028         (print_float_info): New function.  By default, print the
6029         floating-point registers.
6030
6031         * arch-utils.h (default_print_float_info): Delete declaration.
6032         * arch-utils.c (default_print_float_info): Delete function.
6033         
6034 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
6035
6036         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6037         out define.
6038
6039         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6040         FRAME.
6041
6042         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6043         * configure.host: Make i[3456]86-*-aix host obsolete.
6044         * configure.tgt: Make i[3456]86-*-aix target obsolete.
6045         * config/i386/i386aix.mh, config/i386/i386aix.mt,
6046         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6047         config/i386/xm-i386aix.h: Make files obsolete.
6048         * i386aix-nat.c: Make file obsolete.
6049         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6050         (i386aix-nat.o): Make target obsolete.
6051
6052         * config/i386/nm-gnu.h: Removed.
6053         * config/i386/nm-i386gnu.h: New file.
6054         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6055         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6056         Moved here from ...
6057         * config/i386/tm-i386gnu.h: ... here.  Removed.
6058         * config/i386/xm-i386gnu.h: Removed.
6059         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6060         (NAT_FILE): Set to nm-i386gnu.h.
6061         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6062         * i386-tdep.c: New file.
6063         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6064         (i386gnu-tdep.o): Specify dependencies.
6065
6066 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
6067
6068         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6069         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6070         Adjust a few comments to reflect reality a bit closer.
6071         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6072         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6073         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6074         target_insert_watchpoint, target_remove_watchpoint):
6075         Move defines to ...
6076         * config/i386/nm-i386sco5.h: ... here.
6077         (kernel_u_size): Add prototype.  Improve a few comments and add
6078         protection against multiple inclusion.
6079         
6080         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6081         out define.
6082
6083         * uw-thread.c (SP_ARG0): Define if not already defined.
6084         * config/i386/tm-i386.h (SO_ARG0): Remove define.
6085
6086         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6087
6088         * config/i386/tm-i386.h: Don't include "regcache.h".
6089
6090         * i387-tdep.h (i387_print_float_info): New prototype.
6091         * i387-tdep.c (print_i387_value, print_i387_ext,
6092         print_i387_status_word, print_i387_control_word): Add `struct
6093         ui_file *' argument and use it for output.
6094         (i387_print_float_info): Renamed from i387_float_info.  Add
6095         `struct gdbarch *' and `struct ui_file *' arguments and use the
6096         latter for output.
6097         * i386-tdep.c: Include "i387-tdep.h".
6098         (i386_gdbarch_init): Set print_float_info.
6099         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6100         (FLOAT_INFO): Remove define.
6101
6102 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6103
6104         * mips-tdep.c (mips_push_arguments): Rename to
6105         mips_eabi_push_arguments, and tune for EABI.
6106         (MIPS_REGS_HAVE_HOME_P): Delete.
6107         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6108         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6109         Delete references to mips_regs_have_home_p.
6110
6111 2002-08-14  Keith Seitz  <keiths@redhat.com>
6112
6113         * Makefile.in (install-gdbtk): Create insight plugin directory.
6114         Install plugins.tcl file.
6115
6116 2002-08-14  Keith Seitz  <keiths@redhat.com>
6117
6118         * configure.in: Move SUBDIRS to near top of the file so that
6119         --enable options may add things to it.
6120         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6121         * configure: Regenerate.
6122
6123 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6124
6125         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6126         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6127         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6128
6129 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6130
6131         * vax-tdep.c (vax_get_saved_register): Delete function.
6132         (vax_gdbarch_init): Update.
6133         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6134         (ns32k_gdbarch_init): Update.
6135         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6136         (alpha_gdbarch_init): Update.
6137
6138 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6139
6140         * regcache.c (init_regcache_descr): Overallocate the
6141         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6142         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6143         nr_raw_registers.
6144         (set_register_cached): Add range checking assertions.  Use
6145         current_regcache.
6146
6147 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6148
6149         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6150         numbers for MMX registers.
6151
6152 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6153
6154         * i386-tdep.c (i386_gdbarch_init): Use
6155         generic_unwind_get_saved_register.
6156
6157 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6158
6159         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6160         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6161         target vector.
6162         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6163         Delete.  Add comment regarding this now-deleted target method.
6164
6165 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6166
6167         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6168         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6169         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6170         real PC and the page number (if it's within the memory bank window).
6171         (m68hc11_pseudo_register_write): Likewise when saving.
6172         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6173         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6174         (m68hc11_register_raw_size): And use 32-bit for it.
6175         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6176         16K memory bank is used by the prog; also use the virtual pc.
6177
6178 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6179
6180         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6181         (m68hc11_gdbarch_init): Install it in gdbarch.
6182         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6183         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6184         (MSYMBOL_SIZE): New for documentation.
6185         (insn_return_kind): Enum to specify how a function returns.
6186         (frame_extra_info): Cleanup and record the return mode.
6187         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6188         register in address computation.
6189         (m68hc11_get_return_insn): New to obtain the return instruction used
6190         by the function.
6191         (m68hc11_frame_init_saved_regs): Take into account the return
6192         instruction used by the function for far and interrupt functions.
6193         (m68hc11_init_extra_frame_info): Take into account page register.
6194         (m68hc11_frame_args_address): Adjust according to the return mode.
6195         (show_regs): Print page register only when it's used.
6196
6197 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6198
6199         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6200         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6201         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6202         registers.
6203         (m68hc11_register_raw_size): Likewise.
6204
6205 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6206
6207         * i386-tdep.c (i386_register_name): Handle mmx registers.
6208         (mmx_regnum_p): New function.
6209         (i386_mmx_names): New array.
6210         (mmx_num_regs): New variable.
6211         (i386_pseudo_register_read): New function.
6212         (i386_pseudo_register_write): New function.
6213         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6214
6215         * regcache.c (regcache_raw_read_unsigned): New function.
6216         (regcache_raw_read_signed): New function.
6217         * regcache.h (regcache_raw_read_unsigned): Declare.
6218         (regcache_raw_read_signed): Declare.
6219
6220 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6221
6222         * regcache.c (regcache_raw_read_as_address): Delete function.
6223         (regcache_cooked_read_signed): New function.
6224         (regcache_cooked_read_unsigned): New function.
6225         * regcache.h (regcache_cooked_read_signed): Declare.
6226         (regcache_cooked_read_unsigned): Declare.
6227         (regcache_raw_read_as_address): Delete declaration.
6228
6229         * blockframe.c (generic_read_register_dummy): Use
6230         regcache_cooked_read_unsigned.
6231         * i386-tdep.c (i386_extract_struct_value_address): Use
6232         regcache_cooked_read_unsigned.
6233
6234 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6235
6236         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6237         double sizes according to ELF ABI flags.
6238         (gdbarch_tdep): Record elf_flags.
6239
6240 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6241
6242         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6243         (m6812_prolog): They can appear in 68HC12 function prologue.
6244         (m68hc11_frame_chain): Cleanup.
6245
6246 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6247
6248         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6249         declarations.
6250         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6251         (i386_linux_register_raw_size): Delete function.
6252         (i386_linux_init_abi): Update.
6253         * i386-tdep.c (i386_register_raw_size): Delete function.
6254         (i386_register_byte): Delete function.
6255         (i386_gdbarch_init): Update.
6256         (i386_register_size): Delete array.
6257         (i386_register_offset): Delete array.
6258
6259         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6260         (REGISTER_RAW_SIZE): Delete macro.
6261         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6262         (REGISTER_BYTE): Delete macro.
6263
6264 2002-08-11  Aidan Skinner <aidan@velvet.net>
6265
6266         * ada-lang.c (ada_lookup_partial_symbol)
6267         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6268         prototype names so that grep ^func works properly.
6269
6270         * ada-lang.c (ada_array_element_type)
6271         (ada_lookup_partial_symbol): Fix typos in parameter list.
6272
6273         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6274         Fix prototype names so that grep ^func works properly.
6275         
6276 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6277             Elena Zannoni  <ezannoni@redhat.com>
6278             Martin M. Hunt  <hunt@redhat.com>
6279
6280         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6281         (build_builtin_type_vec128i): Set the vector bit.
6282         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6283         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6284         (build_builtin_type_vec64): New function.
6285         (build_builtin_type_vec64i): New function.
6286         (build_gdbtypes): Initialize builtin_type_vec64 and
6287         builtin_type_vec64i.
6288
6289 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6290
6291         * regcache.c (regcache_dump): Compare the register offset
6292         with REGISTER_BYTE.
6293         * arch-utils.c (generic_register_byte): New function.
6294         * arch-utils.h (generic_register_byte): Declare.
6295         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6296         * gdbarch.h, gdbarch.c: Regenerate.
6297
6298 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6299
6300         * regcache.c: Include "gdbcmd.h"
6301         (_initialize_regcache): Add commands "maintenance print
6302         registers", "maintenance print raw-registers" and "maintenance
6303         print cooked-registers".
6304         (enum regcache_dump_what): Define.
6305         (dump_endian_bytes): New function.
6306         (regcache_dump): New function.
6307         (regcache_print): New function.
6308         (maintenance_print_registers): New function.
6309         (maintenance_print_raw_registers): New function.
6310         (maintenance_print_cooked_registers): New function.
6311         * Makefile.in (regcache.o): Update dependencies.
6312
6313 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6314
6315         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6316         (mips_push_arguments): Correct some comments.  Use paddr_nz
6317         for printing addresses in debug output.  Replace static
6318         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6319         (mips_n32n64_push_arguments): New function, cloned from
6320         mips_push_arguments and tuned for the n32/n64 ABI.
6321         (mips_push_register): Buffer needs dynamic allocation.
6322         (mips_print_register): Ditto.
6323         (do_gp_register_row): Ditto.
6324         (mips_store_return_value): Ditto.
6325         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6326
6327 2002-08-09  Don Howard  <dhoward@redhat.com>
6328
6329         * memattr.c (mem_info_command): Print special case of upper bound
6330         as max CORE_ADDR + 1.
6331
6332 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6333
6334         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6335         returns structs by ref if they're too big to fit in two registers.
6336
6337 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6338
6339         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6340         saved regs value.
6341         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6342         mips_find_saved_regs().
6343         (mips_pop_frame): Likewise.
6344
6345 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6346
6347         * blockframe.c (frame_saved_regs_register_unwind): Revise
6348         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6349         frames are in use.
6350
6351 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6352         
6353         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6354         T-packets; the 'a' is not taken as a register number.
6355         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6356         (remote_stopped_data_address): New functions; add to target
6357         vector.
6358         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6359         prototypes to match other implementations of this
6360         function. replace integer argument with pointer -- the length
6361         field in the Z-packet is the length of what is pointed to or 1 if
6362         pointer is null. Add to target vector.
6363         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6364         target vector.
6365
6366         From Mark Salter:
6367         * remote.c (remote_wait): Add support to extract optional
6368         watchpoint information from T-packet. Ignore unrecognized
6369         optional info in T-packet.
6370         (remote_async_wait): Ditto.
6371
6372 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6373
6374         * cli/cli-dump.c: Change fopen modes to use binary open modes
6375         as defined in include/fopen-bin.h throughout.
6376
6377 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6378
6379         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6380
6381 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6382
6383         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6384         assertion failure by returning early after a warning.
6385
6386 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6387
6388         * mips-tdep.c (mips_find_saved_regs): Make static.
6389         (mips_frame_init_saved_regs): New function.
6390         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6391         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6392         (mips_find_saved_regs): Delete declaration.
6393
6394 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6395
6396         * remote.c (remote_wait, remote_async_wait): Change
6397         thread_num from int to ULONGEST.
6398         (unpack_varlen_hex): Change result parameter from
6399         int * to ULONGEST *.
6400
6401 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6402
6403         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6404         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6405         powerpc*-*-*.
6406         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6407
6408 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6409
6410         * gcore.c (override_derive_stack_segment): Delete variable.
6411         (preempt_derive_stack_segment): Delete function.
6412         (derive_stack_segment): Delete function.
6413         (default_derive_stack_segment): Renamed to derive_stack_segment.
6414         (override_derive_heap_segment): Delete variable.
6415         (preempt_derive_heap_segment): Delete function.
6416         (derive_heap_segment): Delete function.
6417         (default_derive_heap_segment): Rename to derive_heap_segment.
6418
6419 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6420
6421         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6422         * mips-tdep.c (mips_EABI_use_struct_convention, 
6423         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6424         New functions.  (mips_use_struct_convention): Delete.
6425         (mips_gdbarch_init): set use_gdbarch_convention.
6426
6427 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6428
6429         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6430         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6431         mips_o32_reg_struct_has_addr): New functions.
6432         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6433
6434 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6435
6436         * regcache.c (pseudo_register): Delete function.
6437         (fetch_register): Delete function.
6438         (store_register): Delete function.
6439         (regcache_raw_read, legacy_read_register_gen): Use
6440         target_fetch_registers instead of fetch_register.
6441         (legacy_write_register_gen, regcache_raw_write): Use
6442         target_store_register instead of store_register.
6443         (write_register_bytes): Ditto.
6444
6445         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6446         (STORE_PSEUDO_REGISTER): Delete.
6447         * gdbarch.h, gdbarch.c: Regenerate.
6448
6449 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6450
6451         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6452         write dump file binary.
6453
6454 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6455
6456         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6457         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6458         (mips_gdbarch_init): Set N32 target to be mips64.
6459
6460 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6461
6462         * frame.c (find_saved_register): Break out of loop once saved
6463         register address is found.  Don't mention sparc in loop comment
6464         anymore.
6465
6466 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6467
6468         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6469         mips_default_saved_regsize to 8.
6470
6471 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6472
6473         * gcore.c: Do not include <sys/procfs.h>.
6474         * Makefile.in (gcore.o): Update dependencies.
6475
6476 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6477
6478         * configure.tgt: Make arc-*-* obsolete.
6479         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6480         * MAINTAINERS: Make arc-elf obsolete.
6481         * arc-tdep.c: Make file obsolete.
6482         * config/arc/arc.mt: Ditto.
6483         * config/arc/tm-arc.h: Ditto.
6484
6485 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6486
6487         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6488
6489 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6490
6491         * mcore-tdep.c (mcore_gdbarch_init): Use
6492         generic_unwind_get_saved_register instead of
6493         generic_get_saved_register.
6494         * v850-tdep.c (v850_gdbarch_init): Ditto.
6495         * frv-tdep.c (frv_gdbarch_init): Ditto.
6496         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6497         * s390-tdep.c (s390_gdbarch_init): Ditto.
6498         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6499         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6500         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6501
6502 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6503
6504         * objfiles.h: Add missing #include "symfile.h"
6505
6506         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6507
6508 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6509
6510         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6511         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6512         of FIELD_BITSIZE.
6513
6514 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6515
6516         * NEWS: Cleanup and nitpick.
6517
6518 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6519
6520         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6521
6522 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6523
6524         * Makefile.in (gdbtk-bp.o): Update dependencies.
6525         (gdbtk-register.o): Ditto.
6526         (gdbtk-varobj.o): Ditto.
6527
6528 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6529
6530         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6531         m68hc11_fetch_pseudo_register.
6532         (m68hc11_pseudo_register_write): Replace
6533         m68hc11_store_pseudo_register.
6534         (m68hc11_gdbarch_init): Update.
6535
6536 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6537
6538         * gdbarch.sh: Include "gdb_string.h".
6539         * gdbarch.c: Regenerate.
6540
6541         * regcache.c: Include "gdb_string.h".
6542         * ax-general.c: Ditto.
6543         * varobj.c: Ditto.
6544         * std-regs.c: Ditto.
6545         * fbsd-proc.c: Ditto.
6546         * thread.c: Ditto.
6547
6548         * Makefile.in (regcache.o): Update dependencies.
6549         (thread.o, gdbarch.o): Ditto.
6550         (ax-general.o, gdbarch.o): Ditto.
6551         (varobj.o, std-regs.o): Ditto.
6552         (fbsd-proc.o): Specify dependencies.
6553
6554 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6555
6556         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6557         regnum.
6558         (regcache_cooked_write): Ditto.
6559
6560 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6561
6562         * regcache.c (regcache_cooked_read): New function.
6563         (regcache_cooked_write): New function.
6564         (read_register_gen): Rewrite using regcache_cooked_read.
6565         (write_register_gen): Rewrite using regcache_cooked_write.
6566
6567         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6568         Declare.
6569
6570 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6571
6572         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6573         Replace the architecture methods register_read and register_write.
6574         * gdbarch.h, gdbarch.c: Regenerate.
6575         * regcache.c (init_regcache_descr): Update.
6576         (read_register_gen): Update.
6577         (write_register_gen): Update.
6578         (supply_register): Update comment.
6579
6580         * sh-tdep.c (sh_gdbarch_init): Update.
6581         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6582         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6583         pointer.  Update code.
6584         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6585         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6586         void pointer.  Update code.
6587         (sh64_register_write): Delete.
6588         (sh4_register_read): Delete.
6589         (sh64_register_read): Delete.
6590         (sh4_register_write): Delete.
6591         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6592         void pointer, `to' parameter a void pointer.
6593         (sh_sh64_register_convert_to_raw): Ditto.
6594
6595 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6596
6597         * mips-tdep.c (mips_register_virtual_type): Use architecture
6598         invariant return values.
6599
6600 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6601
6602         * linux-proc.c: Include "gdb_string.h".
6603         * Makefile.in (linux-proc.o): Update dependency list.
6604
6605 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6606
6607         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6608         comment.
6609
6610 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6611
6612         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6613         to_insert_watchpoint, to_remove_watchpoint,
6614         to_stopped_by_watchpoint, to_stopped_data_address,
6615         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6616         target vecctor. Define their corresponding macros so they call
6617         them.
6618         
6619         * target.c: Add default and debug versions of for
6620         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6621         to_insert_watchpoint, to_remove_watchpoint,
6622         to_stopped_by_watchpoint, to_stopped_data_address,
6623         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6624
6625 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6626
6627         * mips-tdep.c (mips_register_virtual_type): New function.
6628         (mips_gdbarch_init): Register mips_register_virtual_type()
6629         with gdbarch machinery.
6630         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6631         this file instead of tm-bigmips.h.
6632         (MIPS_REGSIZE): Delete this macro.
6633         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6634         multiarch version in mips-tdep.c will be found.
6635
6636 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6637
6638         * NEWS: Menion that CHILL has been made obsolete.
6639
6640         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6641         * stabsread.c (read_range_type): Ditto.
6642         * gdbtypes.h: Ditto.
6643         * language.c (binop_type_check): Ditto.
6644         (binop_result_type): Ditto.
6645         (integral_type): Ditto.
6646         (character_type): Ditto.
6647         (string_type): Ditto.
6648         (boolean_type): Ditto.
6649         (structured_type): Ditto.
6650         (lang_bool_type): Ditto.
6651         (binop_type_check): Ditto.
6652         * language.h (_LANG_chill): Ditto.
6653         * dwarfread.c (set_cu_language): Ditto.
6654         * dwarfread.c (CHILL_PRODUCER): Ditto.
6655         * dwarfread.c (handle_producer): Ditto.
6656         * expression.h (enum exp_opcode): Ditto.
6657         * eval.c: Ditto for comments.
6658         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6659         * expprint.c (print_subexp): Ditto.
6660         (print_subexp): Ditto.
6661         * valops.c (value_cast): Ditto.
6662         (search_struct_field): Ditto.
6663         * value.h (COERCE_VARYING_ARRAY): Ditto.
6664         * symfile.c (init_filename_language_table): Ditto.
6665         (add_psymbol_with_dem_name_to_list): Ditto.
6666         * valarith.c (value_binop): Ditto.
6667         (value_neg): Ditto.
6668         * valops.c (value_slice): Ditto.
6669         * symtab.h (union language_specific): Ditto.
6670         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6671         (SYMBOL_DEMANGLED_NAME): Ditto.
6672         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6673         * defs.h (enum language): Ditto.
6674         * symtab.c (got_symtab): Ditto.
6675         * utils.c (fprintf_symbol_filtered): Ditto.
6676
6677         * ch-typeprint.c: Make file obsolete.
6678         * ch-valprint.c: Make file obsolete.
6679         * ch-lang.h: Make file obsolete.
6680         * ch-exp.c: Make file obsolete.
6681         * ch-lang.c: Make file obsolete.
6682
6683         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6684         CHILL_LIB.
6685         (TARGET_FLAGS_TO_PASS): Ditto.
6686         (CHILLFLAGS): Obsolete.
6687         (CHILL): Obsolete.
6688         (CHILL_FOR_TARGET): Obsolete.
6689         (CHILL_LIB): Obsolete.
6690         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6691         ch-valprint.c.
6692         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6693         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6694         ch-lang.o.
6695         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6696         targets.
6697
6698 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6699
6700         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6701         This does not change anything at the moment, but will be helpful
6702         later when full Ada support is integrated.
6703
6704 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6705
6706         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6707         help message.
6708
6709 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6710
6711         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6712         and save it in a local variable.  Use variable in later test.
6713
6714 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6715
6716         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6717         test.  (Thanks to Daniel Jacobowitz.)
6718         
6719 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6720
6721         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6722         (mips_abi_strings): Add "n64".
6723         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6724
6725 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6726
6727         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6728         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6729
6730 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6731
6732         * utils.c (host_pointer_to_address, address_to_host_pointer):
6733         Use gdb_assert() instead of explicit call to internal_error().
6734
6735 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6736
6737         * Makefile.in (rs6000-nat.o): Update dependencies.
6738
6739         From Nicholas Duffek:
6740         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6741         (aix-thread.o): New rule.
6742         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6743         * config/powerpc/aix432.mh: New file.
6744
6745 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6746
6747         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6748         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6749         (fetch_core_registers, ppc_linux_supply_gregset)
6750         (ppc_linux_supply_fpregset): New functions.
6751         (ppc_linux_regset_core_fns): New.
6752         (_initialize_ppc_linux_tdep): Call add_core_fns.
6753         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6754         and ppc_linux_supply_gregset.
6755         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6756         (supply_fpregset): Call ppc_linux_supply_fpregset.
6757         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6758         corelow.o.
6759         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6760
6761 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6762
6763         * symtab.c (lookup_symbol): Demangle before lowercasing.
6764
6765 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6766
6767         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6768         declaration.
6769         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6770         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6771         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6772         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6773         "gdb_string.h".
6774         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6775         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6776         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6777         (avr-tdep.o, mon960-rom.o): Ditto.
6778         (aout_stabs_gnu_h): Define.
6779         (symtab_h): Remove $(gdb_obstack_h).
6780
6781 2002-07-30  Jim Blandy  <jimb@redhat.com>
6782
6783         Patch from David Carlton <carlton@math.stanford.edu>:
6784         * gdbinit.in: Move the `dir' commands that add GDB's own source
6785         directory to the search path to the end, so that the `gdb' source
6786         directory will be searched first.
6787
6788 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6789
6790         * gdb_obstack.h: New file.
6791         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6792         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6793         * objfiles.h: Include "gdb_obstack.h".
6794         * Makefile.in (gdb_obstack_h): Define.
6795         (symtab_h): Add $(gdb_obstack_h).
6796         (objfiles_h): Add $(gdb_obstack_h).
6797         
6798         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6799         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6800         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6801         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6802         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6803         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6804         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6805         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6806
6807         * Makefile.in (bcache.o): Update dependencies.
6808         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6809         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6810         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6811         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6812         (stabsread.o, symfile.o, symmisc.o): Ditto.
6813         (symtab.o, typeprint.o, macroexp.o): Ditto.
6814         (macrotab.o, mdebugread.o): Ditto.
6815         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6816         (coff_ecoff_h, aout_aout64_h): Define.
6817         (aout_stabs_gnu_h, libaout_h): Define.
6818
6819 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6820
6821         * regcache.c (struct regcache_descr): Rename nr_registers to
6822         nr_cooked_registers.  Revise comments describing the structure
6823         member fields.
6824         (init_regcache_descr): Update.
6825         (init_legacy_regcache_descr): Update.
6826         (read_register_gen, write_register_gen): When a cooked register in
6827         the raw register range, directly access the value from the raw
6828         register cache.
6829
6830 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6831
6832         * z8k-tdep.c: Do not include "obstack.h".
6833         * h8300-tdep.c, h8500-tdep.c: Ditto.
6834         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6835         * valprint.c, v850-tdep.c: Ditto.
6836         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6837         * mn10200-tdep.c: Ditto.
6838
6839         * Makefile.in (z8k-tdep.o): Update dependencies.
6840         (m68hc11-tdep.o, valprint.o): Ditto.
6841         (v850-tdep.o, d10v-tdep.o): Ditto.
6842         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6843         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6844         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6845         (sh_opc_h, gdb_sim_sh_h): Define.
6846         (elf_sh_h, elf_bfd_h): Define.
6847         (opcode_m68hc11_h): Define.
6848         (OPCODES_SRC, OPCODES_DIR): define.
6849         (OPCODES): Use $(OPCODES_DIR).
6850         (gdb_sim_d10v_h): Rename sim_d10v_h.
6851         (gdb_sim_arm_h): Rename sim_arm_h.
6852
6853 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6854
6855         * utils.c (host_pointer_to_address, address_to_host_pointer):
6856         Change internal_error() message to indicate function responsible
6857         for the error.
6858
6859 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6860
6861         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6862         calls to local_hex_string_custom().
6863
6864 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6865
6866         * irix5-nat.c: Move IRIX shared library support from here...
6867         * solib-irix.c: ...to here.  Revised substantially to work with
6868         generic solib framework.
6869
6870         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6871         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6872         * mips-irix-tdep.c: New file.
6873
6874         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6875         (mips-irix-tdep.o, solib-irix.o): New rules.
6876         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6877         solib-irix.o.
6878         * config/mips/irix6.mt (TDEPFILES): Likewise.
6879         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6880
6881 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6882
6883         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6884         disabled (via ``#if 0'') includes.
6885
6886 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6887
6888         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6889         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6890         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6891         Add support for the fpscr register.
6892         * rs6000-nat.c (regmap, fetch_inferior_registers)
6893         (store_inferior_registers, fetch_core_registers): Likewise.
6894
6895 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6896
6897         * rs6000-nat.c (language.h): Include.
6898         (special_regs): Delete this array.
6899         (regmap): New function.
6900         (fetch_register, store_register):  Use regmap() to map gdb
6901         register numbers to ptrace register numbers.  Also, use
6902         outputs from regmap() to make decisions regarding type of
6903         ptrace() call to make.  In particular, don't compare against
6904         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6905         (fetch_inferior_registers, store_inferior_registers): Where
6906         possible, obtain register numbers from tdep struct.  Don't
6907         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6908         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6909         (LAST_UISA_SP_REGNUM): Delete.
6910         
6911 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6912
6913         * rs6000-nat.c (ppc-tdep.h): Include.
6914         (fetch_registers, store_register, fetch_core_registers): Don't
6915         access registers[] directly.  Instead, use supply_register() or
6916         regcache_collect() as appropriate.
6917         (find_toc_address): Format hex address with local_hex_string().
6918
6919 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6920
6921         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6922         bfd/elf32-frv.c.
6923
6924 2002-07-24  Tom Tromey  <tromey@redhat.com>
6925
6926         * jv-exp.y: Marked all strings with _().
6927         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6928         internal_error.
6929         (MethodInvocation, CastExpression, parse_number, yyerror,
6930         java_type_from_name, push_expression_name, yylex): Typo fixes.
6931
6932 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6933
6934         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6935         (tee_file_flush, tee_file_write, tee_file_fputs)
6936         (tee_file_isatty): New.
6937         * ui-file.h (tee_file_new): Add prototype.
6938
6939 2002-07-24  Aidan Skinner <aidan@velvet.net>
6940
6941         * ada-lang.c: Change k&r style function definitions to prototyped
6942         form.
6943         * ada-typeprint.c: Change k&r style function definitions to prototyped
6944         form.
6945         * ada-valprint.c: Change k&r style function definitions to prototyped
6946         form.
6947         
6948 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6949
6950         * README: Remove reference to remote-bug.
6951         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6952         remote-bug.c.
6953         (m88k-nat.o): Delete rule.
6954         (m88k-tdep.o): Delete rule.
6955         (remote-bug.o): Delete rule.
6956         * MAINTAINERS: Mark as obsolete.
6957         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6958         * m88k-tdep.c: Make file obsolete.
6959         * config/m88k/m88k.mh: Ditto.
6960         * config/m88k/delta88v4.mh: Ditto.
6961         * config/m88k/delta88v4.mt: Ditto.
6962         * config/m88k/delta88.mt: Ditto.
6963         * config/m88k/delta88.mh: Ditto.
6964         * remote-bug.c: Ditto.
6965         * config/m88k/tm-delta88.h: Ditto.
6966         * config/m88k/nm-delta88v4.h: Ditto.
6967         * config/m88k/xm-delta88.h: Ditto.
6968         * config/m88k/xm-dgux.h: Ditto.
6969         * config/m88k/tm-m88k.h: Ditto.
6970         * config/m88k/nm-m88k.h: Ditto.
6971         * config/m88k/tm-delta88v4.h: Ditto.
6972         * m88k-nat.c: Ditto.
6973         * cxux-nat.c: Ditto.
6974         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6975         and m88*-*-* obsolete.
6976         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6977         m88*-*-* obsolete.
6978
6979 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6980
6981         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6982         constant.  Same for local pointer variables.
6983         (extract_signed_integer): Ditto.
6984         * defs.h (extract_unsigned_integer): Update.
6985         (extract_signed_integer): Update.
6986
6987 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6988
6989         * regcache.c (regcache_raw_write): Change buf parameter to a
6990         constant void pointer.
6991         (regcache_raw_read): Change buf parameter to a void pointer.
6992         (legacy_write_register_gen): Change myaddr parameter a constant
6993         void pointer.
6994         (supply_register): Change val parameter to a const void pointer.
6995         * regcache.h (regcache_raw_write): Update declaration.
6996         (regcache_raw_read): Update declaration.
6997         (supply_register): Update declaration.
6998
6999 2002-07-24  Tom Tromey  <tromey@redhat.com>
7000
7001         * defs.h (gdb_readline_wrapper): Declare.
7002         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
7003         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
7004         * top.c (gdb_readline_wrapper): New function.
7005         (command_line_input): Use it.
7006
7007 2002-07-24  Andrew Cagney  <cagney@redhat.com>
7008
7009         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
7010         regcache_read and regcache_write.
7011         (regcache_raw_read_as_address): Replace regcache_read_as_address.
7012         * regcache.c: Update.
7013         * sh-tdep.c (sh64_push_arguments): Update comment.
7014         (sh_pseudo_register_read): Update.
7015         (sh_pseudo_register_write): Update.
7016         (sh4_register_read): Update.
7017         (sh4_register_write): Update.
7018         (sh64_pseudo_register_read): Update.
7019         (sh64_pseudo_register_write): Update.
7020         (sh64_register_read): Update.
7021         (sh64_register_write): Update.
7022         * i386-tdep.c (i386_extract_return_value): Update.
7023         (i386_extract_struct_value_address): Update.
7024         (i386_extract_return_value): Update.
7025         * blockframe.c (generic_read_register_dummy): Update.
7026         (generic_call_dummy_register_unwind): Update
7027         * infrun.c (write_inferior_status_register): Update.
7028
7029 2002-07-23  Jim Blandy  <jimb@redhat.com>
7030
7031         * parser-defs.h (expression_context_pc): Make this extern.
7032         (Thanks to Michael Snyder.)
7033
7034 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
7035
7036         GDB 5.2.1 released from 5.2 branch.
7037         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7038         * README: Update to mention 5.2.1.
7039
7040 2002-07-23  Mark Salter  <msalter@redhat.com>
7041
7042         * remote.c (remote_read_bytes): Fix check for error.
7043
7044 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7045
7046         * aix-thread.c (language.h): Include.
7047         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7048         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7049         Print newlines at end of debug messages.
7050         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7051         (pdc_write_data): Use local_hex_string() instead of %llx formats.
7052
7053 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7054
7055         * aix-thread.c (ppc-tdep.h): Include.
7056         (special_register_p): New function.
7057         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7058         (store_regs_user_thread): Use register number information from
7059         gdbarch_tdep struct instead of hardcoded offsets relative to
7060         FIRST_UISA_SP_REGNUM.
7061         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
7062         special_register_p() instead of using FPLAST_REGNUM and
7063         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7064         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
7065         will be MQ's register number.
7066
7067 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7068
7069         * aix-thread.c (ops): Rename to aix_thread_ops.
7070         (base_ops): Rename to base_target.
7071         (ops_attach): Rename to aix_thread_attach.
7072         (ops_detach): Rename to aix_thread_detach.
7073         (ops_resume): Rename to aix_thread_detach.
7074         (ops_wait):   Rename to aix_thread_wait.
7075         (ops_kill):   Rename to aix_thread_kill.
7076         (init_ops):   Rename to init_aix_thread_ops.
7077         (ops_fetch_register): Rename to aix_thread_fetch_register.
7078         (ops_store_register): Rename to aix_thread_store_register.
7079         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7080         (ops_thread_alive):   Rename to aix_thread_thread_alive.
7081         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7082         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
7083         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7084         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
7085         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7086         (store_regs_lib):  Rename to store_regs_user_thread.
7087         (store_regs_kern): Rename to store_regs_kernel_thread.
7088
7089 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7090
7091         * aix-thread.c (ops_prepare_to_store): Eliminate.
7092         (init_ops): Don't initialize ops.prepare_to_store.
7093         (store_regs_kern): Pre-fetch register buffers from child, 
7094         because some registers may not be in the cache.  Copy
7095         regs from register cache only if they are cached.
7096         (store_regs_lib): Copy regs from register cache only
7097         if they are cached.
7098         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7099         fill_gprs64): Ditto.
7100
7101 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7102
7103         * aix-thread.c (gdb_assert.h): Include.
7104         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7105         register sizes (from register cache) match size of buffer holding
7106         register data.
7107         (fill_sprs32): Change parameter types to match those in the ptrace()
7108         buffer.
7109         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7110         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7111
7112 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7113
7114         * aix-thread.c (supply_sprs64): Cosmetic change.
7115         (supply_sprs32): Cosmetic change.
7116         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7117         (fill_sprs64): Use regcache_collect instead of read_register.
7118         (store_regs_lib): Use regcache_collect instead of 
7119         read_register.  Use fill_sprs32 instead of fill_sprs64,
7120         if debugging a 32-bit architecture.
7121         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7122         out of the register cache, instead of passing a pointer into
7123         the register cache directly to ptrace.  Use regcache_collect
7124         insteaad of read_register.
7125         (ops_prepare_to_store): Use target_read_registers instead
7126         of read_register_bytes.
7127
7128 2002-07-20  Aidan Skinner <aidan@velvet.net>
7129
7130         * MAINTAINERS: Add self under write after approval. 
7131                 
7132 2002-07-20  Aidan Skinner <aidan@velvet.net>
7133
7134         * ada-tasks.c: Change k&r style function definitions to prototyped
7135         form.
7136                 
7137 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7138
7139         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7140         * x86-64-tdep.c: Include "objfiles.h".
7141         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7142         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7143
7144 2002-07-17  Michal Ludvig  <michal@suse.cz>
7145
7146         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7147         (update_context): Initialise cfa variable.
7148
7149 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7150
7151         * aix-thread.c: Shorten some long lines.  
7152         Bring comments into line with code spec.
7153
7154 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7155
7156         * infrun.c: Re-indent using gdb_indent.sh.
7157
7158 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7159
7160         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7161         Leave the indentation temporarily untouched, to minimize the diffs.
7162
7163 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7164
7165         * stabsread.c: Make os9k sections of the code obsolete,
7166         for real this time.
7167         * stabsread.h: Make os9k sections of the code obsolete.
7168
7169 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7170
7171         * linux-low.c (regsets_store_inferior_registers): Add free()
7172         at the end of a loop to prevent memory leak.
7173         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7174         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7175         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7176         line a comment.
7177         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7178
7179 2002-07-17  Jim Blandy  <jimb@redhat.com>
7180
7181         * macrocmd.c (info_macro_command): Remove newline from error
7182         message.
7183
7184 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7185
7186         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7187         (sh_gdbarch_init): Use it for sh-dsp.
7188
7189 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7190
7191         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7192         64-bit DWARF2 format.
7193
7194 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7195
7196         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7197         <sys/proc.h> when not available.
7198
7199 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7200
7201         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7202         * stabsread.c: Make os9k sections of the code obsolete.
7203         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7204         * config/i386/i386os9k.mt: Make file obsolete.
7205         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7206         (COMMON_OBS): Remove os9kread.o
7207         (SFILES): Remove os9kread.c.
7208         (os9kread.o, remote-os9k.o): Make target obsolete.
7209         * remote-os9k.c: Make file obsolete.
7210         * os9kread.c: Make file obsolete.
7211         * Makefile.in
7212
7213 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7214
7215         * NEWS: Mention that the FR30 has been made obsolete.
7216         * fr30-tdep.c: Make file obsolete.
7217         * config/fr30/tm-fr30.h: Ditto.
7218         * config/fr30/fr30.mt: Ditto.
7219         * configure.tgt: Make fr30-*-elf obsolete.
7220         * MAINTAINERS: Make fr30-elf obsolete.
7221
7222 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7223
7224         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7225         found is not inside a section.
7226
7227 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7228
7229         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7230         strerror().
7231         (pdc_realloc): Use xrealloc() instead of realloc().
7232
7233 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7234
7235         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7236         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7237         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7238         macros.
7239
7240 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7241
7242         * aix-thread.c (ptrace_check): Eliminate goto.
7243         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7244         problem.
7245
7246 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7247
7248         * aix-thread.c (gdbcmd.h): Include.
7249         (DEBUG, DBG, DBG2, dbg): Eliminate.
7250         (debug_aix_thread): New static global.
7251         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7252         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7253         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7254         invocations to DBG and DBG2 macros to test against
7255         ``debug_aix_thread'' and call fprintf_unfiltered().
7256         (_initialize_aix_thread): Add new command "set debug aix-thread".
7257
7258 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7259
7260         From Gerhard Tonn <TON@de.ibm.com>:
7261         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7262         instead of supply_register.
7263
7264 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7265
7266         * dwarf2cfi.c: Include "gdb_assert.h".
7267         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7268         non-NULL.
7269         (update_context): Do not use __func__.  Add missing ``break''.
7270         (update_context): Do not use __func__.
7271
7272 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7273
7274         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7275         and its setting.  Set gdbarch instruction printing functions
7276         directly.  For non-rs6000 case use new function
7277         gdb_print_insn_powerpc.
7278         (gdb_print_insn_powerpc): New function.
7279
7280 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7281
7282         * NEWS: Mention that the d30v has been marked obsolete.
7283         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7284         * configure.tgt: Mark d30v-*-* as obsolete.
7285         * d30v-tdep.c: Mark file as obsolete.
7286         * config/d30v/d30v.mt: Ditto.
7287         * config/d30v/tm-d30v.h: Ditto.
7288
7289 2002-07-13  Aidan Skinner <aidan@velvet.net>
7290
7291         * ada-tasks.c (add_task_entry): replace calls to
7292         malloc() with xmalloc
7293         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7294         
7295         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7296         ada_finish_decode_line_1, all_sals_for_line
7297         ada_breakpoint_rewrite): replace calls to free() with xfree()
7298                 
7299 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7300
7301         From Nicholas Duffek (with minor changes by Martin Hunt, 
7302         Louis Hamilton, and Kevin Buettner):
7303         * aix-thread.c: New file.
7304
7305 2002-07-12  Petr Sorfa <petrs@caldera.com>
7306
7307         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7308         complaint for invalid attribute class or form.
7309         (read_func_scope): DW_AT_frame_base
7310         better handling of DW_AT_block*.
7311         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7312         better handling of DW_AT_block*.
7313         (read_common_block): DW_AT_location
7314         better handling of DW_AT_block*.
7315         (read_partial_die): DW_AT_location better handling
7316         of DW_AT_block*.
7317         (new_symbol): DW_AT_external better handling of
7318         DW_AT_block*. Proper initialization of variable
7319         "addr".
7320         (attr_form_is_block): New function that returns true
7321         if the attribute's form is of DW_FORM_block*.
7322
7323 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7324
7325         * valops.c (find_method_list): Remove comment about
7326         removed STATIC_MEMFUNCP argument.
7327         (value_find_oload_method_list): Likewise.
7328
7329 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7330
7331         From Nicholas Duffek:
7332         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7333         target_new_objfile_hook.
7334
7335 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7336
7337         From Nicholas Duffek:
7338         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7339         csect.
7340
7341 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7342
7343         * MAINTAINERS: Mention --enable-sim-build-warnings.
7344         (m68hc11-elf): Disable sim build warnings.
7345         (m32r-elf): Mark as broken obsolete candidate.
7346         (x86_64-linux-gnu): Mark as buildable with -Werror.
7347         (arm-elf): Change -w to ``,'' which enables warnings but not
7348         -Werror.
7349
7350 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7351
7352         * bcache.h: Update copyright.
7353         (struct bstring, struct bcache): Move definition to "bcache.c".
7354         Replaced by opaque declaration.
7355         (bcache_xfree): Replace free_bcache.
7356         (bcache_xmalloc, bcache_memory_used): Declare.
7357         
7358         * bcache.c: Update copyright.
7359         (struct bstring, struct bcache): Moved to here from "bcache.h".
7360         Update comments.
7361         (bcache_xmalloc, bcache_memory_used): New functions.
7362         (bcache_xfree): Replace function free_bcache.
7363         
7364         * Makefile.in (objfiles.o): Add $(bcache_h).
7365         (objfiles_h): Remove $(bcache_h).
7366         (symfile.o): Add $(bcache_h).
7367
7368         * symmisc.c: Update copyright.
7369         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7370         (print_objfile_statistics): Use bcache_memory_used.
7371
7372         * symfile.c: Include "bcache.h".
7373         (reread_symbols): Use bcache_xfree.
7374         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7375         (add_psymbol_to_list): Pass psymbol_cache by value.
7376         (add_psymbol_with_dem_name_to_list): Ditto.
7377
7378         * objfiles.h: Update copyright.
7379         (struct bcache): Declare opaque.  Do not include "bcache.h".
7380         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7381         bcache'' pointers.
7382         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7383
7384         * objfiles.c: Include "bcache.h".  Update copyright.
7385         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7386         macro_cache.
7387         (free_objfile): Use bcache_xfree.
7388
7389 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7390
7391         * monitor.c (monitor_fetch_register): Make name a constant.
7392         (monitor_store_register): Same.
7393
7394 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7395
7396         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7397         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7398         (finish_block) For non-function blocks, hash the symbol table.  For
7399         function blocks, mark the symbol table as unhashed.
7400         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7401         (msymbol_hash_iw): Likewise.
7402         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7403         value.
7404         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7405         (lookup_minimal_symbol): Likewise for both.
7406         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7407         hashtable.
7408         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7409         (ALL_BLOCK_SYMBOLS): Update.
7410         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7411         (struct symbol): Add `hash_next' pointer.
7412         * symtab.c (lookup_block_symbol): Search using the hash table when
7413         possible.
7414         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7415         (search_symbols, find_addr_symbol): Likewise.
7416
7417         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7418         (read_dst_symtab): Likewise.
7419         * jv-lang.c (get_java_class_symtab): Likewise.
7420         * mdebugread.c: Include "gdb_assert.h".
7421         (shrink_block): Assert that the block being modified is not hashed.
7422         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7423         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7424         symbols.
7425         (dump_symtab): Recognize hashed blocks.
7426         * printcmd.c (print_frame_args):  Assert that function blocks do not
7427         have hashed symbol tables.
7428         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7429         (fill_in_ada_prototype, debug_print_block): Likewise.
7430         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7431
7432 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7433
7434         * stack.c (print_frame): Use result of frame_address_in_block()
7435         instead of fi->pc when evaluating symbols.
7436         (backtrace_command_1): Ditto.
7437
7438 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7439
7440         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7441         Make static.
7442
7443         * arm-tdep.c (arm_register_name): Make return type constant.
7444
7445 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7446
7447         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7448         prototype.
7449         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7450         * s390-tdep.c (s390_fp_regnum): Ditto.
7451         (s390_read_fp): Ditto.
7452         (s390_pop_frame): Ditto.
7453         (_initialize_s390_tdep): Ditto.
7454         * remote.c (get_remote_state): Ditto.
7455         * procfs.c (mappingflags): Ditto.
7456         * memattr.c (_initialize_mem): Ditto.
7457         * mcore-tdep.c (mcore_pop_frame): Ditto.
7458         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7459         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7460         * language.c (set_case_str): Ditto.
7461         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7462         * frv-tdep.c (new_variant): Ditto.
7463         (frv_stopped_data_address): Ditto.
7464         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7465         (context_alloc): Ditto.
7466         (frame_state_alloc): Ditto.
7467         (unwind_tmp_obstack_init): Ditto.
7468         (unwind_tmp_obstack_free): Ditto.
7469         (cfi_read_fp): Ditto.
7470         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7471         (cris_pop_frame): Ditto.
7472         * c-lang.c (scanning_macro_expansion): Ditto.
7473         (finished_macro_expansion): Ditto.
7474         (c_preprocess_and_parse): Ditto.
7475         * gdbarch.sh: Ditto.
7476         * gdbarch.h, gdbarch.c: Regenerate.
7477         * config/mn10200/tm-mn10200.h: Adjust indentation.
7478         * target.c: Adjust indentation.
7479         * symtab.h: Adjust indentation.
7480         * stabsread.h: Adjust indentation.
7481         * remote-es.c: Adjust indentation.
7482         * os9kread.c: Adjust indentation.
7483
7484 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7485         
7486         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7487         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7488
7489 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7490         
7491         * NEWS: Mention m68k, mcore multi-arching.  
7492         * MAINTAINERS: Change status of m68k, mcore to reflect
7493         multi-arching.
7494
7495 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7496
7497         * valops.c (find_overload_match): Free oload_syms.
7498
7499 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7500
7501         Define HAVE_SYS_PROC_H if sys/proc.h exists
7502         * configure.in: Add check for sys/proc.h
7503         * config.in: Regenerate.
7504         * configure: Regenerate.
7505
7506 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7507
7508         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7509         #if !GDB_MULTI_ARCH. 
7510
7511 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7512
7513         * config.in, configure: Regenerate.
7514
7515 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7516
7517         * dwarf2cfi.c: Include "gcore.h".
7518         (execute_stack_op): Fix implementation of the
7519         DW_OP_deref and DW_OP_deref_size operators by letting do their
7520         lookup in the target.
7521
7522 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7523
7524         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7525         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7526         tdep->sc_sp_offset.
7527
7528 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7529
7530         Fix PR gdb/595, gdb/602
7531         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7532         Don't call value_cast, just read the vtable pointer; update comments
7533         to match.
7534
7535 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7536
7537         * config/mcore/tm-mcore.h: Remove file.
7538         * config/mcore/mcore.mt: Remove definition of TM_FILE
7539         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7540
7541 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7542
7543         * i386bsd-tdep.c: Include "gdb_string.h".
7544
7545 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7546
7547         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7548         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7549         mcore-tdep.
7550         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7551         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7552         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7553         (RETVAL_REGNUM): Move macros from tm-mcore.h
7554         (mcore_reg_struct_has_addr): New function.
7555         (mcore_gdbarch_init): Added initializations for the macros removed
7556         from tm-mcore.h.
7557
7558 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7559
7560         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7561         traditonal string branding within the ELF header.
7562
7563 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7564
7565         * symtab.c (remove_params): New function.
7566         (make_symbol_overload_list): Use it instead of cplus_demangle.
7567         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7568
7569 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7570
7571         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7572
7573         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7574         New variables.
7575         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7576         and tdep->sigtramp_end.
7577         * i386obsd-nat.c: New file.
7578         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7579
7580         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7581         Don't call get_current_frame().
7582
7583 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7584
7585         * i386-nat.c (child_post_startup_inferior): New function
7586         calling i386_cleanup_dregs if
7587         I386_USE_GENERIC_WATCHPOINTS is defined.
7588         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7589         conditional to acknowledge that i386-nat.c has its
7590         own child_post_startup_inferior function.
7591
7592 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7593
7594         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7595         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7596         instead of MAX_REGISTER_RAW_SIZE.
7597         (i386_extract_return_value, i386_extract_struct_value_address):
7598         Convert to use regcache.
7599         (i386_gdbarch_init): Set max_register_raw_size and
7600         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7601         Set extract_return_value and extract_struct_value_address instead
7602         of their deprecated variants.
7603
7604         Convert i386 target to generic dummy frames.
7605         * i386-tdep.c: Include "symfile.h".
7606         (i386_frameless_signal_p): Consider a function to be frameless if
7607         the pc points at the first instruction of the function.
7608         (i386_frame_chain): Handle (generic) call dummies.
7609         (i386_frame_saved_pc): Likewise.
7610         (i386_frame_init_saved_regs): Remove code dealing with call
7611         dummies on the stack.
7612         (i386_push_dummy_frame): Removed.
7613         (i386_call_dummy_words): Removed.
7614         (i386_fix_call_dummy): Removed.
7615         (i386_push_return_address): New function.
7616         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7617         parameter, and don't call get_current_frame.
7618         (i386_pop_frame): New function.
7619         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7620         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7621         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7622         call_dummy_length to 0, set call_dummy_words to NULL, set
7623         sizeof_call_dummy_words to 0, set fix_call_dummy to
7624         generic_fix_call_dummy, set pc_in_call_dummy to
7625         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7626         generic_push_dummy_frame, set push_return_address to
7627         i386_push_return_address and set frame_chain_valid to
7628         generic_file_frame_chain_valid.
7629
7630 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7631
7632         * gdbarch.sh (struct regcache): Add opaque declaration.
7633         (EXTRACT_RETURN_VALUE): New architecture method.
7634         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7635         * gdbarch.h, gdbarch.c: Regenerate.
7636         * arch-utils.c (legacy_extract_return_value): New function.
7637         * arch-utils.h (legacy_extract_return_value): Declare.
7638         * values.c (value_being_returned): Re-enable code handling
7639         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7640         deprecated_grub_regcache_for_registers call to block handling
7641         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7642         (EXTRACT_RETURN_VALUE): Do not define.
7643
7644 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7645
7646         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7647         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7648         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7649         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7650         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7651         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7652         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7653         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7654         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7655         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7656         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7657         argument so the function fits the prototype in the architecture
7658         vector.
7659         (mcore_pop_frame): Remove argument so the function fits the
7660         prototype. Use get_current_frame instead of the argument.
7661         (mcore_push_arguments): Change type of struct_return so the
7662         function can be used in the architecture vector.
7663         (mcore_store_struct_return): Add.
7664         (mcore_frame_init_saved_regs): Add.
7665         (mcore_gdbarch_init): Add function calls to replace the macros
7666         removed from tm-mcore.h
7667
7668 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7669
7670         * infcmd.c (print_return_value): Remove compatibility code calling
7671         deprecated_grub_regcache_for_registers.
7672         
7673         * values.c: Include "regcache.h".
7674         (value_being_returned): Update.  Use
7675         deprecated_grub_regcache_for_registers to extract the register
7676         buffer address.  
7677         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7678         ``struct regcache''.
7679         * Makefile.in (values.o): Add dependency on $(regcache_h).
7680
7681         * inferior.h (run_stack_dummy): Change type of second parameter to
7682         a ``struct regcache''.
7683         * valops.c (hand_function_call): Change type of retbuf to ``struct
7684         regcache''.  Allocate using regcache_xmalloc, clean using
7685         make_cleanup_regcache_xfree.
7686         * infcmd.c (run_stack_dummy): Update.  Use
7687         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7688
7689         * regcache.c (do_regcache_xfree): New function.
7690         (make_cleanup_regcache_xfree): New function.
7691         * regcache.h (make_cleanup_regcache_xfree): Declare.
7692
7693 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7694
7695         * event-top.c (command_line_handler): Don't read past
7696         beginning of buffer.
7697
7698 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7699         
7700         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7701         struct frame_id. 
7702         (varobj_create): Store frame_id for root.
7703         (varobj_gen_name): Use xasprintf.
7704         (varobj_update): Save and restore frame using get_frame_id() and
7705         frame_find_by_id().
7706         (create_child): Use xasprintf.
7707         (new_root_variable): Initialize frame_id.
7708         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7709         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7710         to prevent memory leak.
7711
7712 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7713
7714         * valops.c (hand_function_call): Move declaration of retbuf to
7715         start of function, allocate using malloc, add a cleanup but before
7716         the inf_status cleanup, cleanup the buffer.  Rename local variable
7717         old_chain to inf_status_cleanup.
7718
7719 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7720
7721         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7722
7723         * cli/cli-decode.c (cmd_func_p): New function.
7724         (cmd_func): New function.
7725
7726         * command.h: Add cmd_func() and cmd_func_p().   
7727         
7728 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7729
7730         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7731         (REGISTER_SIZE): Remove.
7732         (MAX_REGISTER_RAW_SIZE): Remove.
7733         (REGISTER_VIRTUAL_TYPE): Remove.
7734         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7735         (REGISTER_NAME): Remove.
7736         (USE_GENERIC_DUMMY_FRAMES): Remove.
7737         (CALL_DUMMY): Remove.
7738         (CALL_DUMMY_START_OFFSET): Remove.
7739         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7740         (CALL_DUMMY_LOCATION): Remove.
7741         (FIX_CALL_DUMMY): Remove.
7742         (CALL_DUMMY_ADDRESS): Remove.
7743         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7744         (SAVE_DUMMY_FRAME_TOS): Remove.
7745         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7746         (mcore_register_virtual_type): New function.
7747         (mcore_register_byte): New function.
7748         (mcore_register_size): New function.
7749         (mcore_register_name): New function.
7750         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7751         macros removed from tm-mcore.h.
7752         (mcore_dump_tdep): Add.
7753         (_initialize_mcore_tdep): Add gdbarch_register call.
7754
7755 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7756
7757         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7758         frameless_look_for_prologue, such that we actually call this
7759         function.
7760
7761 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7762
7763         * frame.h (frame_address_in_block): New function.
7764
7765         * blockframe.c (frame_address_in_block): New function extracted
7766         from get_frame_block().
7767         (get_frame_block): Use frame_address_in_block().
7768         (block_innermost_frame): Use frame_address_in_block() to match
7769         the frame pc address against the block boundaries rather than
7770         the frame pc directly. This prevents a failure when a frame pc
7771         is actually a return-address pointing immediately after the end
7772         of the given block. 
7773
7774 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7775
7776         * MAINTAINERS: Add self under write after approval. 
7777
7778 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7779
7780         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7781         used in architecture vector. The default is
7782         m68k_local_breakpoint_from_pc.
7783         (m68k_local_breakpoint_from_pc): Add.
7784         (enum): Add register numbers from tm-m68k.h.
7785         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7786         vector.  
7787         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7788         GDB_MULTI_ARCH_PARTIAL.
7789         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7790         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7791         m68k-tdep.c.
7792         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7793         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7794         to enum in m68k-tdep.c
7795
7796 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7797
7798         * solib-osf.c (open_map): Compute the list of shared libraries
7799         loaded by the inferior, rather than the list of libraries loaded
7800         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7801         the wrong shared libraries...
7802
7803 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7804
7805         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7806         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7807         macros.
7808         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7809         Remove functions.
7810         (FRAMELESS_SIGNAL): Remove function.
7811         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7812         i386_linux_saved_pc_after_call): Removed.
7813         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7814         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7815         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7816
7817         * i386-tdep.c (i386_frameless_signal_p): New function.
7818         (i386_frame_chain): Deal with frameless signals.
7819         (i386_sigtramp_saved_sp): New function.
7820         (i386_frame_saved_pc): Deal with frameless signals.
7821         (i386_saved_pc_after_call): Make sure the correct value is
7822         returned just after entry into a sigtramp.
7823         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7824         i386fbsd4_sc_sp_offset): New variables.
7825         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7826         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7827         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7828         similiar to what we already did for sc_pc_offset.
7829         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7830         tdep->sc_sp_offset.
7831
7832         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7833
7834 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7835
7836         * config/i386/tm-x86-64linux.h: New.
7837         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7838         definitions.
7839         * config/i386/nm-x86-64.h: Rename to ...
7840         * config/i386/nm-x86-64linux.h: ... this one.
7841         * config/i386/x86-64linux.mh: Reflect the above change.
7842         
7843 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7844
7845         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7846         with sigcontext_addr.  Add sc_sp_offset.
7847         (i386bsd_sigtramp_saved_pc): Remove prototype.
7848         (i386bsd_sicontext_addr): Add prototype.
7849         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7850         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7851         (i386_svr4_sigtramp_saved_pc): Removed.
7852         (i386_svr4_sigcontext_addr): New function.
7853         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7854         Initialize tdep->sigcontext_addr instead.  Initialize
7855         tdep->sc_pc_offset and tdep->sc_sp_offset.
7856         (i386_gdbarch_init): Likewise.
7857         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7858         any more.
7859         (i386bsd_sigtramp_saved_pc): Remove function.
7860         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7861         Initialize tdep->sigcontext_addr instead.  Initialize
7862         tdep->sc_pc_offset.
7863         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7864         of tdep->sigtramp_saved_pc.
7865         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7866         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7867         instead.
7868
7869         * i386-tdep.c (i386_frameless_function_invocation,
7870         i386_frame_num_args, i386_frame_init_saved_regs,
7871         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7872         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7873         i386_extract_return_value, i386_store_return_value,
7874         i386_extract_struct_value_address, i386_register_virtual_type,
7875         i386_register_convertible, i386_register_convert_to_virtual,
7876         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7877         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7878         static.
7879
7880 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7881
7882         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7883
7884         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7885         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7886         this macro.  Include "value.h".
7887
7888 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7889
7890         * ada-exp.tab.c: remove as it's a generated file
7891         * ada-lex.c: remove as it's a generated file
7892                 
7893 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7894
7895         * config/i386/tm-i386.h (struct frame_info, struct
7896         frame_saved_regs, struct value, struct type): Remove forward
7897         declarations.
7898
7899         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7900         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7901         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7902         (FILL_FPXREGSET): Define.
7903
7904         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7905
7906         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7907         i[3456]86-*-netbsd* case.
7908         * config/i386/tm-obsd.h: Removed.
7909         * config/i386/obsd.mt: Removed.
7910         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7911         core-aout.o.
7912         (MH_CFLAGS): Add -DYYDEBUG=0.
7913
7914         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7915         i386nbsd_sc_pc_offset on OpenBSD too.
7916
7917         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7918         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7919         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7920         define.
7921         * i386bsd-tdep.c: Include "arch-utils.h".
7922         (i386bsd_aout_in_solib_call_trampoline): New function.
7923         (i386bsd_init_abi): Set in_solib_call_trampoline to
7924         i386bsd_aout_in_solib_call_trampoline.
7925         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7926         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7927
7928 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7929
7930         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7931         (struct obstack, struct bcache): Add opaque declarations.
7932         * Makefile.in (macrotab_h): Update
7933
7934 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7935
7936         * blockframe.c (generic_find_dummy_frame): Change return type to
7937         ``struct regcache''.
7938         (struct dummy_frame): Replace field ``registers'' with regcache, a
7939         struct regcache object.
7940         (generic_find_dummy_frame): Update.
7941         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7942         regcache_xmalloc and regcache_cpy.
7943         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7944         regcache_xfree.
7945         (deprecated_generic_find_dummy_frame): Update.
7946         (generic_read_register_dummy): Update.  Use
7947         regcache_read_as_address.
7948         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7949         (generic_get_saved_register): Update.  Use regcache_read.
7950
7951 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7952
7953         * Makefile.in (objfiles_h): Add $(bcache_h).
7954         * objfiles.h: Include "bcache.h".
7955
7956         * Makefile.in (symtab_h): Remove $(bcache_h).
7957         * symtab.h: Do not include "bcache.h".
7958
7959 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7960
7961         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7962         generic_func_frame_chain_valid.
7963
7964 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7965
7966         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7967         * config/i386/tm-fbsd.h: Likewise.
7968
7969 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7970
7971         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7972         generic_unwind_get_saved_register.
7973
7974 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7975
7976         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7977         * regcache.c (supply_register): Add missing argument to
7978         register_buffer call.
7979
7980 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7981
7982         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7983         Solaris /bin/grep does not not like it.  From Peter Schauer.
7984
7985 2002-06-26  Tom Tromey  <tromey@redhat.com>
7986
7987         * command.h (add_setshow_cmd): Declare.
7988         (add_setshow_cmd_full): Declare.
7989         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7990         returns void.  Use add_setshow_cmd_full.
7991         (add_setshow_cmd_full): New function.
7992         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7993         (add_setshow_boolean_cmd): Likewise.
7994
7995 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7996
7997         * config/vax/tm-vax.h: Protect from multiple inclusion.
7998         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7999         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
8000         * config/vax/tm-vaxbsd.h: ...here.  New file.
8001         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
8002
8003 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
8004
8005         * config/vax/tm-vax.h (BREAKPOINT): Remove.
8006         (BELIEVE_PCC_PROMOTION): Remove.
8007         (AP_REGNUM): Move to...
8008         * config/vax/nm-vax.h: ...here.
8009         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
8010         (vax_breakpoint_from_pc): New function.
8011         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
8012         and gdbarch_believe_pcc_promotion.
8013
8014 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
8015
8016         * Makefile.in (vax_tdep_h): Define.  
8017         (vax-tdep.o): Use $(vax_tdep_h).
8018         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
8019         (vax_dump_tdep): New function. 
8020         (_initialize_vax_tdep): Register vax_dump_tdep.
8021         * vax-tdep.h: Include osabi.h.     
8022         (struct gdbarch_tdep): New. 
8023
8024 2002-06-26  Andrew Cagney  <cagney@redhat.com>
8025
8026         * frame.h (deprecated_generic_find_dummy_frame): Rename
8027         generic_find_dummy_frame.
8028         * blockframe.c (generic_find_dummy_frame): Make static.
8029         (deprecated_generic_find_dummy_frame): New function.
8030         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8031         generic_find_dummy_frame with deprecated_find_dummy_frame.
8032         (sh64_nofp_frame_init_saved_regs): Ditto.
8033         (sh_fp_frame_init_saved_regs): Ditto.
8034         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8035         (s390_frame_chain): Ditto.
8036         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8037
8038 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8039
8040         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8041         gdbarch vector are at the top.
8042         (NUM_REGS): Remove.
8043         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8044         (FRAME_ARGS_ADDRESS): Remove.
8045         (FRAME_LOCALS_ADDRESS): Remove.
8046         (FRAME_NUM_ARGS): Remove.
8047         (FRAME_ARGS_SKIP): Remove.  
8048         * m68k-tdep.c (enum): Add eumeration of special register numbers.
8049         (m68k_gdbarch_init): Add gdbarch initializations for macros
8050         undefined in tm-m68k.h
8051
8052 2002-06-26  Grace Sainsbury  <graces@redhat.com>
8053
8054         * monitor.h: Add the function regname to monitor_ops
8055         structure. This way NUM_REGS does not have to be a constant.
8056         * monitor.c (monitor_fetch_register): Added support for regname
8057         function. The function is called if the array regnames is NULL.
8058         (monitor_store_register): Same.
8059         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8060         regnames array.
8061         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8062         cpu32bug_cmds.regname to point to new function.
8063         * abug-rom.c (abug_regname): Same as above.
8064         (init_abug_cmds): Same.
8065         * dbug-rom.c (dbug_regname): Same as above.
8066         (init_dbug_cmds): Same.
8067         * remote-est.c (est_regname): Same. 
8068         (init_est_cmds): Same.
8069         * rom68k-rom.c (rom68k_regname): Same. 
8070         (init_rom68k_cmds): Same.
8071
8072 2002-06-25  Tom Tromey  <tromey@redhat.com>
8073
8074         * breakpoint.c (delete_command): Don't repeat `delete' commands.
8075
8076 2002-06-25  Andrew Cagney  <cagney@redhat.com>
8077
8078         * infrun.c (stop_registers): Change variable's type to ``struct
8079         regcache'''.
8080         (xmalloc_inferior_status): Delete function.
8081         (free_inferior_status): Delete function.
8082         (normal_stop): Use regcache_cpy.
8083         (struct inferior_status): Change type of fields ``stop_registers''
8084         and ``registers'' to ``struct regcache''.
8085         (write_inferior_status_register): Use regcache_write.
8086         (save_inferior_status): Instead of calling
8087         xmalloc_inferior_status, allocate the inf_status buffer directly.
8088         Use regcache_dup_no_passthrough and regcache_dup to save the
8089         buffers.
8090         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8091         Replace the stop_registers regcache instead of overriding it.  Use
8092         regcache_xfree.  Instead of calling free_inferior_status, xfree
8093         the buffer directly.
8094         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8095         free_inferior_status, xfree the buffer directly.
8096         (build_infrun): Use regcache_xmalloc.
8097         (_initialize_infrun): Delete redundant call to build_infrun.
8098
8099         * Makefile.in (infcmd.o): Add $(regcache_h).
8100
8101         * infcmd.c: Include "regcache.h".
8102         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8103         obtain the address of `stop_registers' register buffer.
8104         (print_return_value): Ditto.
8105
8106         * inferior.h (struct regcache): Add opaque declaration.
8107         (stop_registers): Change variable's declared type to ``struct
8108         regcache''.
8109
8110 2002-06-24  Tom Tromey  <tromey@redhat.com>
8111
8112         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8113         * target.c (initialize_targets): Fixed typo in
8114         trust-readonly-sections `show' documentation.
8115
8116         * main.c: Marked all strings with _().
8117
8118 2002-06-24  Don Howard  <dhoward@redhat.com>
8119
8120         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8121         that means max CORE_ADDR+1.
8122         (lookup_mem_region): Ditto.
8123         (mem_info_command): Ditto.
8124
8125 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8126
8127         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8128         (REGISTER_BYTES_OK): Remove.
8129         (REGISTER_BYTES): Remove.
8130         (STORE_STRUCT_RETURN): Remove.
8131         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8132         (STORE_RETURN_VALUE): Remove.
8133         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8134         (FRAME_CHAIN): Remove.
8135         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8136         (FRAME_SAVED_PC): Remove.  
8137         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8138         (m68k_store_struct_return): Add.
8139         (m68k_deprecated_extract_return_value): Add.
8140         (m68k_deprecated_extract_struct_value_address): Add.
8141         (m68k_store_return_value): Add.
8142         (m68k_frame_chain): Add.
8143         (m68k_frameless_function_invocation): Add.
8144         (m68k_frame_saved_pc): Add.
8145         (m68k_gdbarch_init): added set_gdbarch calls for new 
8146         functions and deleted macros.
8147
8148 2002-06-23  Tom Tromey  <tromey@redhat.com>
8149
8150         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8151         (ALLDEPFILES): Likewise.
8152         (udiheaders): Removed.
8153         (udip2soc.o): Likewise.
8154         (udi2go32.o): Likewise.
8155         (udr.o): Likewise.
8156         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8157
8158 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8159
8160         * infrun.c (_initialize_infrun): Delete unnecessary call to
8161         build_infrun.
8162
8163         * regcache.h: Update comments describing the regcache_cpy family
8164         of functions.
8165         (regcache_save, regcache_restore): Delete declaration.
8166         (regcache_save_no_passthrough): Delete declaration.
8167         (regcache_restore_no_passthrough): Delete declaration.
8168         * regcache.c (regcache_save): Delete function.
8169         (regcache_save_no_passthrough): Delete function.
8170         (regcache_restore): Delete function.
8171         (regcache_restore_no_passthrough): Delete function.
8172
8173 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8174
8175         * config/m68k/tm-m68k.h: Fix typo.
8176         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8177         (m68k_frame_init_saved_regs): Declare.
8178
8179 2002-06-21  Jim Blandy  <jimb@redhat.com>
8180
8181         Remove some vestiges of Harris 88k support.
8182         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8183         register numbering quirk.
8184         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8185         odd symbols occurring in Harris 88k ELF targets.
8186
8187 2002-06-21  Tom Tromey  <tromey@redhat.com>
8188
8189         * gdb_locale.h: New file.
8190         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8191         (defs_h): Added gdb_locale.h.
8192         * configure, config.in: Rebuilt.
8193         * configure.in (PACKAGE): Define.
8194         * defs.h: Include gdb_locale.h.
8195         * main.c (captured_main): Call setlocale, bindtextdomain,
8196         textdomain.
8197
8198 2002-06-21  Dave Brolley  <brolley@redhat.com>
8199
8200         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8201         * config/frv/frv.mt: New file.
8202         * config/frv/tm-frv.h: New file.
8203         * configure.tgt: Support frv-*-*.
8204         * Makefile.in (frv-tdep.o): New target.
8205         * frv-tdep.c: New file.
8206         * NEWS: Mention frv.
8207
8208 2002-06-21  Dave Brolley  <brolley@redhat.com>
8209
8210         * MAINTAINERS: Add self to "Write After Approval" list.
8211
8212 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8213
8214         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8215         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8216         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8217         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8218         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8219
8220         * m68k-tdep.c: Include arch-utils.h
8221         (m68k_register_raw_size): Add.
8222         (m68k_register_virtual_size): Add.
8223         (m68k_register_virtual_type): Add.
8224         (m68k_register_name): Add.
8225         (m68k_stack_align): Add.
8226         (m68k_register_byte): Add.
8227         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8228         tm-m68k.h.
8229
8230 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8231
8232         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8233         m68k_find_saved_regs.
8234         (m68k_pop_frame): Removed saved_regs structure, and replaced
8235         references to it with frame->saved_regs.
8236         (m68k_gdbarch_init): Added function calls to initialize the
8237         gdbarch structure.
8238         (m68k_fix_call_dummy): Add. 
8239         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8240         (CALL_DUMMY): Remove.
8241         (CALL_DUMMY_LENGTH): Remove.
8242         (CALL_DUMMY_START_OFFSET): Remove.
8243         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8244         (FIX_CALL_DUMMY): Remove.
8245         (PUSH_DUMMY_FRAME): Remove.
8246         (POP_FRAME): Remove.
8247
8248 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8249
8250         * parse.c (parse_fprintf): New function used to avoid calls to
8251         fprintf in bison parser generated debug code.
8252         * parser-defs.h: Declaration of new parse_fprintf function.
8253         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8254         Set YYDEBUG to 1 by default.
8255         Set YYFPRINTF as parse_fprintf.
8256
8257 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8258
8259         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8260         encoding anymore.
8261         (pointer_encoding, enum ptr_encoding): New.
8262         (execute_cfa_program): Take care about pointer encoding.        
8263         (dwarf2_build_frame_info): Only call parse_frame_info for 
8264         .debug_frame and .eh_frame.
8265         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8266         fixed augmentation handling, added relative addressing, 
8267         ignore duplicate FDEs. Added comments.
8268         * dwarf2cfi.c: Reindented.
8269         
8270 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8271
8272         * event-top.c (command_handler): Don't use space_at_cmd_start
8273         unless there is sbrk() on the host. Assign time and space data
8274         to union fields of the appropriate length.
8275
8276 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8277
8278         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8279         x86_64_register_name. Return type changed to 'const char *'.
8280         (x86_64_register_name2nr): Rename to x86_64_register_number.
8281         (x86_64_gdbarch_init): Update to reflect the change.
8282         * x86-64-tdep.h: Ditto.
8283         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8284         (supply_fpregset): Ditto.
8285
8286 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8287
8288         * regcache.h: Update copyright.
8289         (struct regcache, struct gdbarch): Add opaque declarations.
8290         (current_regcache): Declare global variable.
8291         (regcache_read, regcache_write): Add gdbarch parameter.
8292         (regcache_save, regcache_save_no_passthrough)
8293         (regcache_restore, regcache_restore_no_passthrough)
8294         (regcache_dup, regcache_dup_no_passthrough)
8295         (regcache_cpy, regcache_cpy_no_passthrough)
8296         (deprecated_grub_regcache_for_registers)
8297         (deprecated_grub_regcache_for_register_valid)
8298         (regcache_valid_p): Add function declarations.
8299         
8300         * regcache.c: Update copyright.
8301         (regcache_descr_handle): New global variable.
8302         (struct regcache_descr): Define.
8303         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8304         (regcache_descr, xfree_regcache_descr): New functions.
8305         (struct regcache): Define.
8306         (regcache_xmalloc, regcache_xfree): New functions.
8307         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8308         (regcache_dup, regcache_dup_no_passthrough): New functions.
8309         (regcache_valid_p, regcache_read_as_address): New functions.
8310         (deprecated_grub_regcache_for_registers): New function.
8311         (deprecated_grub_regcache_for_register_valid): New function.
8312         (current_regcache): New global variable.
8313         (register_buffer): Add regcache parameter.  Update calls.
8314         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8315         (read_register_gen, write_register_gen): Update register_buffer
8316         call.  Test for legacy_p instead of gdbarch_register_read_p or
8317         gdbarch_register_write_p.
8318         (regcache_collect): Update register_buffer call.
8319         (build_regcache): Rewrite.  Use deprecated grub functions.
8320         (regcache_save, regcache_save_no_passthrough): New functions.
8321         (regcache_restore, regcache_restore_no_passthrough): New
8322         functions.
8323         (_initialize_regcache): Create the regcache_data_handle. Swap
8324         current_regcache global variable.
8325         
8326         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8327         parameter to regcache_read and regcache_write calls.
8328         (sh4_register_read): Ditto.
8329         (sh64_pseudo_register_read): Ditto.
8330         (sh64_register_read): Ditto.
8331         (sh_pseudo_register_write): Ditto.
8332         (sh4_register_write): Ditto.
8333         (sh64_pseudo_register_write): Ditto.
8334         (sh64_register_write): Ditto.
8335
8336         * defs.h (XCALLOC): Define.
8337
8338 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8339
8340         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8341         * m68k-tdep.c (m68k_gdbarch_init): Added.
8342         (m68k_dump_tdep): Added.
8343
8344 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8345
8346         * ada-lang.c (fill_in_ada_prototype): Update comment.
8347
8348 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8349
8350         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8351         MIPS_ABI_LAST.
8352         (mips_abi_string, mips_abi_strings): New.
8353         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8354         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8355         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8356         O32 if no ABI is found.
8357         (mips_dump_tdep): Use mips_abi_strings.
8358         (mips_abi_update): New function.
8359         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8360         ``set mips abi'' and ``show mips abi''.  Check the size of
8361         mips_abi_strings.
8362
8363 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8364
8365         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8366         constant.
8367
8368 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8369
8370         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8371         current frame using only the first stack size adjustment. All
8372         subsequent size adjustments are not considered to be part of
8373         the "static" part of the current frame.
8374         Compute the address of the saved registers relative to the
8375         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8376         in use in this frame.
8377
8378 2002-06-18  Don Howard  <dhoward@redhat.com>
8379  
8380         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8381         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8382         suggesting this solution.
8383
8384 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8385
8386         * config/romp/xm-rtbsd.h: Delete file.
8387         * config/romp/rtbsd.mh: Delete file.
8388
8389 2002-06-18  Keith Seitz  <keiths@redhat.com>
8390
8391         * breakpoint.c (condition_command): Post breakpoint_modify
8392         when a condition is added to an existing breakpoint.
8393         (commands_command): Likewise for commands.
8394         (set_ignore_count): Likewise for ignore counts.
8395         If no tty, do not simply return, still need to send event
8396         notification.
8397         (ignore_command): Only print a newline if the command came
8398         from a tty.
8399         Don't call breakpoints_changed, since this is now properly
8400         handled by set_ignore_count.
8401
8402 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8403
8404         * MAINTAINERS: Note that cris-elf target can be compiled with
8405         -Werror.
8406         * cris-tdep.c (cris_register_name): Make return type constant.
8407         (cris_breakpoint_from_pc): Ditto.
8408
8409 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8410
8411         * frame.h (struct frame_info): Change type of context to 
8412         'struct context'.
8413
8414 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8415
8416         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8417         pointer.
8418         * gdbarch.h, gdbarch.c: Regenerate.
8419         * config/mips/tm-mips.h (mips_register_name): Update.
8420         * i386-tdep.h (i386_register_name): Update.
8421         * mips-tdep.c (mips_register_name): Update
8422         * alpha-tdep.c (alpha_register_name): Update.
8423         * arch-utils.c (legacy_register_name): Update.
8424         * arch-utils.h (legacy_register_name): Update.
8425         * avr-tdep.c (avr_register_name): Update.
8426         * ia64-tdep.c (ia64_register_name): Update.
8427         * i386-tdep.c (i386_register_name): Update.
8428         * sparc-tdep.c (sparc32_register_name): Update.
8429         (sparc64_register_name): Update.
8430         (sparclite_register_name): Update.
8431         (sparclet_register_name): Update.
8432         * sh-tdep.c (sh_generic_register_name): Update.
8433         (sh_sh_register_name): Update.
8434         (sh_sh3_register_name): Update.
8435         (sh_sh3e_register_name): Update.
8436         (sh_sh_dsp_register_name): Update.
8437         (sh_sh3_dsp_register_name): Update.
8438         (sh_sh4_register_name): Update.
8439         (sh_sh64_register_name): Update.
8440         * s390-tdep.c (s390_register_name): Update.
8441         * rs6000-tdep.c (rs6000_register_name): Update.
8442         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8443         (ns32k_register_name_32382): Update.
8444         * d10v-tdep.c (d10v_ts2_register_name): Update.
8445         (d10v_ts3_register_name): Update.
8446         * xstormy16-tdep.c (xstormy16_register_name): Update.
8447         * vax-tdep.c (vax_register_name): Update.
8448         * v850-tdep.c (v850_register_name): Update.
8449         * m68hc11-tdep.c (m68hc11_register_name): Update.
8450         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8451         (am33_register_name): Update.
8452
8453 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8454
8455         * m68k-tdep.c: Reindented.
8456
8457 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8458
8459         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8460         list of predefined types.
8461
8462 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8463
8464         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8465         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8466         REGISTER_CONVERT_TO_RAW): Remove defines.
8467         (i386_register_virtual_type, i386_register_convertible,
8468         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8469         Remove prototypes.
8470         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8471         macros mentioned above.
8472
8473         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8474         (i386lynx_saved_pc_after_call): Remove prototype.
8475         * i386ly-tdep.c: Include "i386-tdep.h".
8476         (i386lynx_saved_pc_after_call): Make static.  Use
8477         read_memory_nobpt instead of read_memory.  Use
8478         read_memory_unsigned_integer instead of read_memory_integer.
8479         (i386lynx_init_abi): New function.
8480         (i386lynx_coff_osabi_sniffer): New function.
8481         (_initialize_i386bsd_tdep): New function.
8482
8483         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8484         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8485         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8486         (i386_fix_call_dummy): Remove prototype.
8487         * i386-tdep.c (i386_call_dummy_words): New variable.
8488         (i386_gdbarch_init): Adjust for removal of the
8489         macros mentioned above.
8490
8491 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8492
8493         * command.h (add_setshow_auto_boolean_cmd): Replace
8494         add_set_auto_boolean_cmd.
8495         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8496         add_set_auto_boolean_cmd.
8497         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8498         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8499         mask-address'' command.
8500         (show_mask_address): Add cmd parameter.
8501         * remote.c (add_packet_config_cmd): Update.  Change type of
8502         set_func and show_func to cmd_sfunc_ftype.
8503         (_initialize_remote): Update `set remote Z-packet'
8504         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8505         (show_remote_protocol_e_packet_cmd): Ditto.
8506         (show_remote_protocol_E_packet_cmd): Ditto.
8507         (show_remote_protocol_P_packet_cmd): Ditto.
8508         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8509         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8510         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8511         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8512         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8513         (show_remote_protocol_Z_packet_cmd): Ditto.
8514         (show_remote_protocol_binary_download_cmd): Ditto.
8515         (show_remote_cmd): Pass NULL to all of above.
8516
8517 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8518
8519         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8520         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8521         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8522         POP_FRAME): Remove defines.
8523         (i386_push_arguments, i386_store_struct_return,
8524         i386_extract_return_value, i386_store_return_value,
8525         i386_extract_struct_value_address, i386_push_dummy_frame,
8526         i386_pop_frame): Renove prototypes.
8527         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8528         macros mentioned above.
8529
8530 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8531
8532         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8533         add_set_boolean_cmd.
8534         (add_setshow_cmd): New function.
8535         * command.h (add_setshow_boolean_cmd): Replace
8536         add_set_boolean_cmd.
8537         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8538         and ``set rdiromatzero''.
8539         * maint.c (_initialize_maint_cmds): Update commented out code.
8540         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8541         * target.c (initialize_targets): Update `set
8542         trust-readonly-sections'.
8543         * remote.c (_initialize_remote): Update `set remotebreak'.
8544
8545 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8546
8547         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8548         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8549         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8550         fit into multi-arch framework.
8551         (i386_breakpoint_from_pc): New function.
8552         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8553         above.
8554
8555         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8556         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8557         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8558         (i386_frameless_function_invocation, i386_frame_num_args,
8559         i386_frame_init_saved_regs): Remove prototypes.
8560         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8561         macros mentioned above.
8562
8563 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8564
8565         * cli/cli-decode.c (set_cmd_cfunc): Update.
8566         (set_cmd_sfunc): Update.
8567         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8568         (set_cmd_sfunc, set_cmd_cfunc): Update.
8569         * cli/cli-decode.h: Update.
8570
8571 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8572
8573         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8574         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8575
8576 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8577
8578         * defs.h (auto_boolean): Declare enum.
8579         * command.h (cmd_auto_boolean): Delete enum.
8580         * mips-tdep.c (mask_address_var): Update.
8581         (mips_mask_address_p): Update.
8582         (show_mask_address): Update.
8583         * remote.c (struct packet_config): Update.
8584         (update_packet_config): Update.
8585         (show_packet_config_cmd): Update.
8586         (packet_ok): Update.
8587         (add_packet_config_cmd): Update.
8588         (_initialize_remote): 
8589         * command.h: Update.
8590         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8591         (do_setshow_command): Update.
8592         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8593         * cli/cli-decode.h: Update.
8594
8595 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8596
8597         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8598         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8599         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8600         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8601         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8602         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8603
8604         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8605         list of DJGPP COFF targets.
8606
8607         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8608         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8609         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8610         (FP0_REGNUM): Remove define.
8611         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8612         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8613         (i386_register_virtual_size): Remove protoype.
8614         * i386-tdep.c (i386_register_virtual_size): Removed.
8615         (i386_extract_return_value, i386_store_return_value): Use
8616         FP0_REGNUM instead of NUM_FREGS to determine whether the
8617         floating-point registers are available.
8618         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8619         Adjust for removal of macros mentioned above.
8620
8621 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8622
8623         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8624         comments.
8625         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8626         Remove prototypes.
8627         (supply_gregset, fill_gregset): Remove use of register keyword and
8628         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8629         NUM_REGS and NUM_FREGS.
8630         (FPREGSET_FSAVE_OFFSET): Remove.
8631         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8632         NUM_FREGS to determine whether the floating-point registers are
8633         available.
8634
8635         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8636         gnu_store_registers): Replace usage of NUM_GREGS with
8637         I386_NUM_GREGS.
8638
8639         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8640         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8641         usage of NUM_GREGS with I386_NUM_GREGS.
8642
8643         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8644
8645         * i386bsd-nat.c: Include "i386-tdep.h".
8646         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8647         I386_NUM_GREGS.
8648
8649         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8650         and associated comment.  They no longer make any sense, since we
8651         don't use this file anymore on Linux.
8652
8653         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8654         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8655         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8656         elements in these arrays.
8657         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8658         MAX_NUM_REGS.
8659
8660 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8661
8662         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8663         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8664
8665 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8666
8667         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8668         EXTRACT_RETURN_VALUE.
8669         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8670         EXTRACT_STRUCT_VALUE_ADDRESS.
8671         * gdbarch.h, gdbarch.c: Regenerate.
8672         
8673         * values.c (value_being_returned): Handle
8674         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8675         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8676
8677         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8678         * arm-tdep.c (arm_gdbarch_init): Update.
8679         * avr-tdep.c (avr_gdbarch_init): Update.
8680         * cris-tdep.c (cris_gdbarch_init): Update.
8681         * d10v-tdep.c (d10v_gdbarch_init): Update.
8682         * ia64-tdep.c (ia64_gdbarch_init): Update.
8683         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8684         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8685         * s390-tdep.c (s390_gdbarch_init): Update.
8686         * sh-tdep.c (sh_gdbarch_init): Update.
8687         * s390-tdep.c (s390_gdbarch_init): Update.
8688         * sparc-tdep.c (sparc_gdbarch_init): Update.
8689         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8690         * v850-tdep.c (v850_gdbarch_init): Update.
8691         * vax-tdep.c (vax_gdbarch_init): Update.
8692         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8693         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8694
8695         * config/arc/tm-arc.h: Update.
8696         * config/d30v/tm-d30v.h: Update.
8697         * config/fr30/tm-fr30.h: Update.
8698         * config/h8300/tm-h8300.h: Update.
8699         * config/h8500/tm-h8500.h: Update.
8700         * config/i386/tm-i386.h: Update.
8701         * config/i386/tm-ptx.h: Update.
8702         * config/i386/tm-symmetry.h: Update.
8703         * config/i960/tm-i960.h: Update.
8704         * config/m32r/tm-m32r.h: Update.
8705         * config/m68k/tm-delta68.h: Update.
8706         * config/m68k/tm-linux.h: Update.
8707         * config/m68k/tm-m68k.h: Update.
8708         * config/m88k/tm-m88k.h: Update.
8709         * config/mcore/tm-mcore.h: Update.
8710         * config/mips/tm-mips.h: Update.
8711         * config/mn10200/tm-mn10200.h: Update.
8712         * config/pa/tm-hppa.h: Update.
8713         * config/pa/tm-hppa64.h: Update.
8714         * config/sparc/tm-sp64.h: Update.
8715         * config/sparc/tm-sparc.h: Update.
8716         * config/sparc/tm-sparclet.h: Update.
8717         * config/z8k/tm-z8k.h: Update.
8718
8719 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8720
8721         * Makefile.in (i386_linux_tdep_h): Define.
8722         (i386_tdep_h, i387_tdep_h): Define.
8723         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8724         $(i386_tdep_h) and $(i387_tdep_h).
8725         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8726
8727 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8728
8729         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8730         Already covered by the default.
8731
8732         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8733         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8734         (i386_gdbarch_init): Initialize long_double_format and long_double
8735         bit.
8736
8737         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8738         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8739         Move these to ...
8740         * config/i386/i386sol2.mh: ... here.
8741         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8742         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8743         (SIGCONTEXT_PC_OFFSET): Remove define.
8744         (IN_SIGTRAMP): Remove define.
8745         * i386-sol2-tdep.c: New file.
8746         
8747         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8748         * config/i386/tm-i386nw.h: Removed.
8749
8750         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8751         USE_STRUCT_CONVENTION): Remove defines.
8752         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8753         (get_longjmp_target): Remove prototype.
8754         (IN_SIGTRAMP): Remove define.
8755         (i386bsd_in_sigtramp): Remove prototype.
8756         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8757         function.  Update comment accordingly
8758         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8759         (FRAME_SAVED_PC): Remove define.
8760         (i386bsd_frame_saved_pc): Remove prototype.
8761         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8762         GET_LONGJMP_TARGET): Remove defines.
8763         (get_longjmp_target): Remove prototype.
8764         (IN_SIGTRAMP): Remove define.
8765         (i386bsd_in_sigtramp): Remove prototype.
8766         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8767         function.  Update comment accordingly
8768         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8769         (FRAME_SAVED_PC): Remove define.
8770         (i386bsd_frame_saved_pc): Remove prototype.
8771         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8772         Remove prototype.
8773         (USE_STRUCT_CONVENTION): Remove prototype.
8774         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8775         declaration.
8776         (_initialize_i386bsd_nat): Revise logic to determine some
8777         constants at compile time when compiling a native GDB.  Warn if
8778         things don't match up with what we expect.
8779         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8780         Remove variables.
8781         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8782         to use date stored in `struct gdbarch_tdep'.
8783         (i386bsd_sigcontext_offset): Remove varaible.
8784         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8785         stored in `struct gdbarch_tdep'.
8786         (i386bsd_frame_saved_pc): Make static.
8787         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8788         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8789         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8790         i386fbsd4_sc_pc_offset): New variables.
8791         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8792         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8793         functions.
8794         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8795         functions.
8796         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8797         Modify the value of i386fbsd_sigtramp_start and
8798         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8799         i386fbsd_sigtramp_end.
8800         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8801         function.
8802
8803         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8804         define to i386-linux-tdep.h.
8805         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8806         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8807         defines.
8808         (i386_linux_register_name, i386_linux_register_byte,
8809         i386_linux_register_raw_size): Remove prototypes.
8810         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8811         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8812         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8813         TARGET_WRITE_PC): Remove defines.
8814         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8815         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8816         i386_linux_write_pc): Remove prototypes.
8817         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8818         (get_longjmp_target): Remove prototype.
8819         * i386-linux-tdep.h: New file.
8820         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8821         * i386-linux-tdep.c: Include "i386-tdep.h" and
8822         "i386-linux-tdep.h".
8823         (i386_linux_register_name, i386_linux_register_byte,
8824         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8825         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8826         Make static.
8827         (i386_linux_init_abi): New function.
8828         (_initialize_i386_linux_tdep): New function.
8829
8830         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8831         (i386_saved_pc_after_call): Remove prototype.
8832         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8833         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8834         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8835         (i386_register_name, i386_stab_reg_to_regnum,
8836         i386_dwarf_reg_to_regnum): Remove prototypes.
8837         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8838         SIZEOF_SSE_REGS): Remove defines.
8839         (REGISTER_BYTES): Remove define.
8840         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8841         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8842         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8843         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8844         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8845         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8846         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8847         (get_longjmp_target): Remove prototype.
8848         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8849         (sigtramp_saved_pc): Remove define.
8850         (i386v4_sigtramp_saved_pc): Remove prototype.
8851         * config/i386/tm-go32.h (FRAME_CHAIN,
8852         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8853         (i386go32_frame_saved_pc): Remove prototype.
8854         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8855         (get_longjmp_target): Remove prototype.
8856         * i386-tdep.h: Include "osabi.h".
8857         (enum i386_abi): Removed.
8858         (enum struct_return): New enum.
8859         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8860         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8861         sc_pc_offset members.
8862         (i386_gdbarch_register_os_abi): Remove prototype.
8863         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8864         I386_SSE_NUM_REGS): New defines.
8865         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8866         I386_SSE_SIZEOF_REGS): New defines.
8867         (i386_register_name, i386_register_byte, i386_register_raw_size):
8868         New prototypes.
8869         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8870         (i386bsd_sigtramp_saved_pc): New prototype.
8871         * i386-tdep.c: Don't include "elf-bfd.h".
8872         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8873         i386_frame_chain, i386_saved_pc_after_call): Make static.
8874         (i386_frame_saved_pc): Rewrite to call architecture dependent
8875         function to deal with signal handlers.  Make static.
8876         (i386go32_frame_saved_pc): Removed.
8877         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8878         Removed.
8879         (i386_get_longjmp_target): New function.
8880         (default_struct_convention, pcc_struct_convention,
8881         reg_struct_convention, valid_conventions, struct_convention): New
8882         variables.
8883         (i386_use_struct_convention): New function.
8884         (i386v4_sigtramp_saved_pc): Renamed to
8885         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8886         (i386_pc_in_sigtramp): New function.
8887         (i386_abi_names): Removed.
8888         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8889         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8890         Removed.
8891         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8892         i386_gdbarch_register_os_abi): Removed.
8893         (struct i386_abi_handler): Removed.
8894         (i386_abi_handler_list): Removed.
8895         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8896         functions.
8897         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8898         i386_nw_init_abi): New functions.
8899         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8900         Use set_gdbarch_xxx() calls instead of relying on macros for a
8901         number of calls.
8902         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8903         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8904         Register the various architecture variants defined in this file.
8905
8906 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8907
8908         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8909         (struct main_type): Remove arg_types member.  Update comments for
8910         struct field.
8911         (TYPE_ARG_TYPES): Remove.
8912         (TYPE_FN_FIELD_ARGS): Update.
8913         (smash_to_method_type): Update prototype.
8914
8915         * c-typeprint.c (cp_type_print_method_args): Take method type
8916         instead of argument list.  Use new argument layout.  Simplify.
8917         (c_type_print_args): Use new argument layout.  Simplify.
8918         (c_type_print_base): Update call to cp_type_print_method_args.
8919         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8920         argument; use die->type instead.  Update call to
8921         smash_to_method_type.
8922         (read_structure_scope): Update call to dwarf2_add_member_fn.
8923         * gdbtypes.c (allocate_stub_method): Update comment.
8924         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8925         Use new argument layout.
8926         (check_stub_method): Use new argument layout.  Don't count
8927         void as an argument.
8928         (print_arg_types): Update comments.  Use new argument layout.
8929         (recursive_dump_type): Don't print arg_types member.
8930         * hpread.c (hpread_read_struct_type): Use new argument layout.
8931         (fixup_class_method_type): Likewise.
8932         (hpread_type_lookup): Likewise.
8933         * stabsread.c (read_type): Update calls to read_args and
8934         smash_to_method_type.
8935         (read_args): Use new argument layout.  Simplify.
8936         * valops.c (typecmp): Use new argument layout.  Update parameters
8937         and comments.  Simplify.
8938         (hand_function_call): Use new argument layout.
8939         (search_struct_method): Update call to typecmp.
8940         (find_overload_match): Use new argument layout.
8941
8942 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8943
8944         * NEWS: Mention multithreaded debug support for gdbserver.
8945
8946 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8947
8948         * MAINTAINERS: Mention NEWS.
8949
8950 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8951
8952         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8953         (struct mips_objfile_private, compare_pdr_entries): New.
8954         (non_heuristic_proc_desc): Read the ".pdr" section if it
8955         is present.
8956
8957 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8958
8959         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8960         (arm_debug): New static variable.
8961         (_initialize_arm_tdep): Add ``set debug arm'' command.
8962
8963 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8964
8965         * Makefile.in (sim_arm_h): Define.
8966         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8967         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8968         (arm_register_sim_regno): New function, map an internal REGNUM
8969         onto a simulator register number.
8970         (arm_gdbarch_init): Set register_sim_regno.
8971
8972 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8973
8974         * MAINTAINERS: Add self.
8975
8976 2002-06-11  Jim Blandy  <jimb@redhat.com>
8977
8978         * source.c (source_info): Mention whether the symtab has
8979         information about preprocessor macros.
8980
8981         Call the command `info macro', not `show macro'.
8982         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8983         Fix error message.
8984         (_initialize_macrocmd): Register `info_macro_command' in
8985         `infolist', not `showlist'.
8986
8987 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8988
8989         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8990         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8991         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8992         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8993         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8994         unconditionally.
8995         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8996         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8997         (_initialize_mips_tdep): Remove dead code.
8998         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8999         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9000         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
9001         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9002         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
9003         MIPS_LAST_FP_ARG_REGNUM): Remove.
9004
9005 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
9006
9007         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
9008         (unwind_tmp_obstack_free, parse_frame_info)
9009         (update_context, cfi_read_fp, cfi_write_fp)
9010         (cfi_frame_chain, cfi_init_extra_frame_info)
9011         (cfi_virtual_frame_pointer): Use the above function.
9012         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
9013
9014 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
9015
9016         * v850-tdep.c (v850_type_is_scalar): New function.
9017         (v850_use_struct_convention): Match current gcc implementation
9018         as close as possible.
9019         (v850_push_arguments): Fix stack_offset handling.  Don't write
9020         struct_addr into register.  This is done by v850_store_struct_return.
9021         (v850_extract_return_value): Care for structs.
9022         (v850_store_return_value): Ditto.
9023         (v850_store_struct_return): Actually write address.
9024
9025 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
9026
9027         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9028         without debug information too.
9029
9030 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9031
9032         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9033         Make multi-arch pure.
9034         * gdbarch.h, gdbarch.c: Re-generate.
9035         * arm-tdep.c (arm_print_float_info): Update.
9036         * arch-utils.h (default_print_float_info): Update.
9037         * arch-utils.c (default_print_float_info): Update.
9038         * infcmd.c (float_info): Update call.
9039
9040 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9041
9042         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9043         the front of the initialize list.
9044
9045 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
9046
9047         * infrun.c (struct inferior_status): Replace fields
9048         selected_frame_address and selected_level with field
9049         selected_frame_id.
9050         (save_inferior_status): Update.  Use get_frame_id.
9051         (struct restore_selected_frame_args): Delete.
9052         (restore_selected_frame): Update.  Use frame_find_by_id.
9053         (restore_inferior_status): Update.
9054
9055         * breakpoint.h (struct breakpoint): Change type of
9056         watchpoint_frame to frame_id.
9057         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
9058         call to get_current_frame.
9059         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
9060         get_current_frame.
9061         (watchpoint_check): Use frame_find_by_id.
9062
9063         * frame.h (record_selected_frame): Delete declaration.
9064         * stack.c (record_selected_frame): Delete function.
9065         
9066         * frame.h (struct frame_id): Define.
9067         (get_frame_id): Declare.
9068         (frame_find_by_id): Declare.
9069         * frame.c (frame_find_by_id): New function.
9070         (get_frame_id): New function.
9071
9072 2002-06-10  Andrey Volkov <avolkov@transas.com>
9073
9074         * ser-e7kpc.c: Fix duplicated define and call of 
9075         _initialize_ser_e7000pc
9076             
9077 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9078
9079         * signals/signals.c (target_signal_from_host): Fix #ifdef
9080         SIGRTMIN case.
9081         (do_target_signal_to_host): Likewise.
9082
9083 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
9084
9085         * mips-tdep.c (mips_find_abi_section): New function.
9086         (mips_gdbarch_init): Call it.
9087
9088 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9089
9090         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9091         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9092         after Andrew's 2002-06-08 gdbarch change.
9093
9094 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9095
9096         * i386-linux-nat.c (suppy_gregset): Don't supply
9097         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9098         register cache.
9099         (fill_gregset): Don't fetch it under the same circumstances.
9100
9101 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9102
9103         * Makefile.in (callback_h): Define.
9104         (remote_sim_h): Update path to remote-sim.h.
9105         (remote-rdp.o): Add $(callback_h).
9106         (remote-sim.o): Use $(callback_h).
9107         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9108         * remote-rdp.c: Include "gdb/callback.h".
9109
9110 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9111
9112         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9113         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9114
9115 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9116
9117         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9118         * rdi-share/serpardr.c: Ditto.
9119         * rdi-share/unixcomm.c: Ditto.
9120         * rdi-share/serdrv.c: Ditto.
9121         * rdi-share/hostchan.h: Ditto.
9122         * rdi-share/hostchan.c: Ditto.
9123         * rdi-share/host.h: Ditto.
9124         * rdi-share/devsw.c: Ditto.
9125
9126         * objfiles.h: Change type of obj_private to void pointer.
9127         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9128         strcmp instead of STREQ, use LONGEST, do not use PTR
9129         * somsolib.c: Ditto.
9130
9131         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9132         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9133         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9134
9135 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9136
9137         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9138         (default_get_saved_register): Delete function.
9139         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9140         generic_unwind_get_saved_register.
9141         * gdbarch.h, gdbarch.c: Re-generate.
9142         
9143 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9144
9145         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9146         generic_func_frame_chain_valid.
9147         * gdbarch.h, gdbarch.c: Re-generate.
9148         * blockframe.c (generic_func_frame_chain_valid): Only check
9149         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9150         passing FP to PC_IN_CALL_DUMMY.
9151         Fix PR gdb/360.
9152
9153 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9154
9155         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9156         (register_gdbarch_data): Initialize init_p.
9157         (gdbarch_data): Initialize data pointer using the init function.
9158         (init_gdbarch_data): Delete function.
9159         (gdbarch_update_p): Update.
9160         (initialize_non_multiarch): Update.
9161         (struct gdbarch): Add field initialized_p.
9162         * gdbarch.h, gdbarch.c: Re-generate.
9163
9164 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9165
9166         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9167         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9168         better do the things actually here.
9169         * x86-64-tdep.c (x86_64_register_name2nr): New.
9170         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9171         (x86_64_gdbarch_init): Respect the above change.
9172         * x86-64-tdep.h (x86_64_register_name2nr)
9173         (x86_64_register_nr2name): Add prototypes.
9174         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9175
9176 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9177
9178         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9179         Delete extra braces and re-indent.
9180         (d10v_store_return_value): Char return values
9181         must be shifted over by one byte in R0.
9182         (d10v_extract_return_value): Delete extra braces, re-indent.
9183
9184 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9185
9186         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9187         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9188         (d10v_integer_to_address): Rewrite.
9189         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9190         the d10v specific functions which take care of converting to the
9191         correct space.
9192
9193 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9194
9195         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9196         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9197
9198 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9199
9200         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9201         includes.
9202         * config/tm-linux.h: Ditto.
9203         * config/alpha/tm-alphalinux.h: Ditto.
9204         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9205         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9206         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9207         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9208         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9209         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9210         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9211         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9212         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9213         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9214         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9215         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9216         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9217         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9218         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9219         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9220         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9221         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9222         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9223         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9224         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9225         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9226         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9227         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9228         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9229         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9230         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9231         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9232         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9233         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9234         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9235         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9236         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9237         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9238         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9239         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9240         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9241
9242 2002-05-04  Aidan Skinner <aidan@velvet.net>
9243
9244         * ada-exp.tab.c: New file
9245         * ada-exp.y: New file
9246         * ada-lang.c: New file
9247         * ada-lang.h: New file
9248         * ada-lex.c: New file
9249         * ada-lex.l: New file
9250         * ada-tasks.c: New file
9251         * ada-typeprint.c: New file
9252         * ada-valprint.c: New file
9253         
9254 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9255
9256         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9257         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9258
9259 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9260
9261         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9262         insetead of ppc-linux-tdep.o.
9263         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9264         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9265
9266 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9267
9268         2002-05-07 Christian Groessler <chris@groessler.org>
9269         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9270         bit register contents for little endian hosts.
9271
9272 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9273
9274         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9275         any maintainer.
9276
9277 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9278
9279         * gdbarch.h: Regenerate.
9280
9281 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9282
9283         * MAINTAINERS: Add everyone to write-after-approval list.
9284
9285 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9286
9287         * stack.c (frame_info): Use frame_register_unwind instead of
9288         saved_regs.  Mention when the SP is on the stack or in a register.
9289
9290         * frame.h (frame_register_unwind_ftype): Define.  Document.
9291         (struct frame_info): Add field register_unwind and
9292         register_unwind_cache.
9293         (frame_register_unwind): Declare.
9294         (generic_unwind_get_saved_register): Declare.
9295
9296         * frame.c (frame_register_unwind): New function.
9297         (generic_unwind_get_saved_register): New function.
9298
9299         * blockframe.c (generic_call_dummy_register_unwind): New function.
9300         (frame_saved_regs_register_unwind): New function.
9301         (set_unwind_by_pc): New function.
9302         (create_new_frame): New function.
9303         (get_prev_frame): New function.
9304
9305 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9306
9307         * a29k-share/: Delete directory.
9308         * remote-vx29k.c: Delete file.
9309
9310 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9311
9312         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9313         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9314
9315 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9316
9317         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9318         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9319         (sparc64nbsd-nat.o)
9320         (sparcnbsd-nat.o)
9321         (sparcnbsd-tdep.o): New dependency lists.
9322         * NEWS: Note new UltraSPARC NetBSD native configuration.
9323         * configure.host (sparc64-*-netbsd*): New host.
9324         * configure.tgt (sparc-*-netbsdelf*)
9325         (sparc-*-netbsd*): Set gdb_target to nbsd.
9326         (sparc64-*-netbsd*): New target.
9327         * sparc64nbsd-nat.c: New file.
9328         * sparcnbsd-nat.c: New file.
9329         * sparcnbsd-tdep.c: New file.
9330         * sparcnbsd-tdep.h: New file.
9331         * config/sparc/nbsd.mt: New file.
9332         * config/sparc/nbsd64.mh: New file.
9333         * config/sparc/nbsd64.mt: New file.
9334         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9335         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9336         (HOST_IPC): Remove.
9337         * config/sparc/nbsdaout.mt: Remove.
9338         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9339         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9340         (HOST_IPC): Remove.
9341         * config/sparc/nbsdelf.mt: Remove.
9342         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9343         sparc-nat.c compatiblity defines.
9344         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9345         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9346         * config/sparc/tm-nbsd64.h: New file.
9347         * config/sparc/tm-nbsdaout.h: Remove.
9348         * config/sparc/xm-nbsd.h: Remove.
9349
9350 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9351
9352         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9353         * sparc-tdep.c: Include osabi.h.
9354         (gdbarch_tdep): Add osabi member.
9355         (_initialize_sparc_tdep): Use gdbarch_register.
9356         (sparc_gdbarch_init): Use generic OS ABI framework.
9357         (sparc_dump_tdep): New function.
9358
9359 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9360
9361         * corefile.c (do_captured_read_memory_integer): Return non-zero
9362         result.
9363         (safe_read_memory_integer): Copy result of memory read when
9364         status is non-zero.  Also, add comments.
9365
9366 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9367
9368         * Makefile.in (ppc_tdep_h): Define.
9369         (ppc-linux-nat.o)
9370         (ppc-linux-tdep.o)
9371         (rs6000-tdep.o): Use $(ppc_tdep_h).
9372         (ppc-sysv-tdep.o)
9373         (ppcnbsd-nat.o)
9374         (ppcnbsd-tdep.o): New dependency lists.
9375         * ppc-tdep.h: Use generic OS ABI framework.
9376         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9377         (ppc_linux_init_abi): New functions.
9378         (ppc_sysv_abi_broken_use_struct_convention)
9379         (ppc_sysv_abi_use_struct_convention)
9380         (ppc_sysv_abi_push_arguments): Move to...
9381         * ppc-sysv-tdep.c: ...here.
9382         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9383         * rs6000-tdep.c (process_note_abi_tag_sections)
9384         (get_elfosabi): Remove.
9385         (rs6000_gdbarch_init): Use generic OS ABI framework.
9386         (rs6000_dump_tdep): New function.
9387         (_initialize_rs6000_tdep): Use gdbarch_register.
9388         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9389         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9390         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9391         of ppc-linux-tdep.o.
9392         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9393         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9394         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9395         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9396         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9397         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9398
9399 2002-05-29  Jim Blandy  <jimb@redhat.com>
9400
9401         * macroscope.c (default_macro_scope): Put `void' in empty argument
9402         list.
9403
9404 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9405
9406         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9407         * arch-utils.c: Include "sim-regno.h".
9408         * gdbarch.sh: Don't include "sim-regno.h".
9409         * gdbarch.h, gdbarch.c: Regenerate.
9410         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9411         here.
9412         * arch-utils.h (legacy_register_sim_regno): To here.
9413         * remote-sim.c (legacy_register_sim_regno): Move function from
9414         here.
9415         * arch-utils.c (legacy_register_sim_regno): To here.
9416
9417 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9418
9419         * sim-regno.h: New file.
9420         * Makefile.in (sim_regno_h): Define.
9421         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9422         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9423         (legacy_register_sim_regno): New function.
9424         (one2one_register_sim_regno): New function.
9425         (gdbsim_fetch_register): Rewrite.
9426         (gdbsim_store_register): Only store a register when
9427         REGISTER_SIM_REGNO is valid.
9428         * d10v-tdep.c: Include "sim-regno.h".
9429         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9430         (d10v_ts3_register_sim_regno): Ditto.
9431         * gdbarch.sh: Include "sim-regno.h".
9432         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9433         * gdbarch.h, gdbarch.c: Regenerate.
9434         * arch-utils.h (default_register_sim_regno): Delete declaration.
9435         * arch-utils.c (default_register_sim_regno): Delete function.
9436
9437 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9438
9439         * ppcnbsd-nat.c: Rewrite.
9440         * ppcnbsd-tdep.c: New file.
9441         * ppcnbsd-tdep.h: New file.
9442         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9443         solib.o, and solib-svr4.o.
9444         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9445         nbsd-tdep.o, and corelow.o.
9446
9447 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9448
9449         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9450         `tr' and `sed'.  Mention that `broken' targets are not expected to
9451         build.
9452
9453 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9454
9455         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9456         Let PC point right after the prologue before looking up symbols.
9457         
9458 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9459
9460         * i386-tdep.c (i386_register_virtual_type): Return 
9461         builtin_type_vec128i for SSE registers.
9462
9463         * gdbtypes.h (builtin_type_vec128i): Declare.
9464
9465         * gdbtypes.c (build_builtin_type_vec128i): New function.
9466         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9467         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9468         (build_gdbtypes): Initialize new builtin vector types.
9469         (_initialize_gdbtypes): Register new vector types with gdbarch.
9470
9471 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9472
9473         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9474         since it has been multi-arch'd.
9475         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9476         Move Alpha and VAX multi-arch news entries to same section
9477         as other multi-arch news.
9478
9479 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9480
9481         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9482         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9483         static.  Rename some register numbers to put them in ns32k-tdep
9484         private namespace.
9485         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9486         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9487         functions.
9488         (_initialize_ns32k_tdep): Use gdbarch_register.
9489         * ns32k-tdep.h: New file.
9490         * ns32knbsd-tdep.c: New file.
9491         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9492         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9493         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9494         REGISTER_BYTES, REGISTER_BYTE): Remove.
9495         * config/ns32k/tm-ns32k.h: New file.
9496         * config/ns32k/tm-umax.h: Remove.
9497
9498 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9499
9500         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9501         ns32k_store_struct_return, ns32k_extract_return_value,
9502         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9503         functions.
9504         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9505         ns32k_saved_pc_after_call.
9506         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9507         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9508         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9509         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9510         ns32k_extract_struct_value_address.
9511
9512 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9513
9514         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9515         ns32k_fix_call_dummy): New.
9516         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9517         ns32k_call_dummy_words.
9518         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9519         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9520         CALL_DUMMY_NARGS): Remove.
9521         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9522
9523 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9524
9525         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9526         ns32k_frame_saved_pc, ns32k_frame_args_address,
9527         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9528         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9529         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9530         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9531         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9532         (BREAKPOINT): Remove..
9533         (FRAME_CHAIN): Define as ns32k_frame_chain.
9534         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9535         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9536         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9537         (FRAME_FIND_SAVED_REGS): Remove.
9538         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9539         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9540         (POP_FRAME): Define as ns32k_pop_frame.
9541
9542 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9543
9544         * ns32k-tdep.c (ns32k_register_byte_32082,
9545         ns32k_register_byte_32382, ns32k_register_raw_size,
9546         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9547         functions.
9548         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9549         ns32k_register_byte_32382.
9550         * config/ns32k/tm-umax.h: Update copyright years.
9551         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9552         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9553         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9554         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9555         (ns32k_get_enter_addr): Fix prototype.
9556
9557 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9558
9559         * ns32k-tdep.c: Update copyright years.
9560         (ns32k_register_name_32082): New function.
9561         (ns32k_register_name_32382): Ditto.
9562         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9563         (REGISTER_NAME): Define as ns32k_register_name_32382.
9564         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9565         (REGISTER_NAME): Define as ns32k_register_name_32082.
9566
9567 2002-05-24  Jim Blandy  <jimb@redhat.com>
9568
9569         * dwarf2read.c (free_line_header): Use xfree, not free.
9570
9571 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9572
9573         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9574         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9575
9576 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9577
9578         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9579
9580 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9581
9582         From Ross Alexander at NEC Europe:
9583         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9584
9585 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9586
9587         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9588         for input, rather than parse_and_eval_address.  
9589
9590 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9591
9592         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9593         * Makefile.in (sim_d10v_h): Update definition.
9594
9595 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9596
9597         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9598         change `2002-05-22 Michael Snyder' below.
9599         (d10v_push_arguments): Ditto.
9600         (d10v_extract_return_value): Ditto.
9601
9602 2002-05-23  Jim Blandy  <jimb@redhat.com>
9603
9604         * macrotab.c (check_for_redefinition): Don't complain if the new
9605         definition is the same as the previous one.  Take more arguments
9606         to allow the comparison.
9607         (macro_define_object, macro_define_function): Pass more arguments
9608         to check_for_redefinition.
9609
9610 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9611
9612         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9613         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9614         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9615         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9616         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9617         Add a temp variable to save a call (and a memory read).
9618         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9619         if possible (so that PC_IN_CALL_DUMMY will work).
9620
9621 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9622
9623         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9624
9625 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9626
9627         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9628         fde->cie_ptr.
9629         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9630         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9631         so that frames of shared libraries are mapped correctly.
9632         (execute_stack_op): Change type of 'result' from ULONGEST to
9633         CORE_ADDR.
9634         
9635 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9636
9637         * config/alpha/tm-nbsd.h: Include solib.h.
9638
9639 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9640
9641         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9642         assumptions about the host's byte order.
9643
9644 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9645
9646         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9647         to dependency list.
9648         * alphanbsd-tdep.c: Include solib-svr4.h.
9649         * shnbsd-tdep.c: Ditto.
9650
9651 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9652
9653         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9654         nbsd-tdep.h to dependency list.
9655         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9656         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9657         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9658         nbsdaout.mh and nbsdelf.mh consistently.
9659         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9660         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9661         nbsdaout.mt and nbsdelf.mh consistently.
9662         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9663         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9664         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9665         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9666         a.out shared library stuff from here...
9667         * config/nm-nbsdaout.h: ...to here.
9668         * config/tm-nbsd.h: Remove.
9669         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9670         * config/arm/nbsd.mh: Remove.
9671         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9672         nbsd-tdep.o.
9673         * config/arm/nbsdaout.mh: New file. 
9674         * config/arm/nbsdelf.mh: New file.
9675         * config/arm/nm-nbsdaout.h: New file.
9676         * config/i386/nbsd.mh: Remove.
9677         * config/i386/nbsd.mt: Remove.
9678         * config/i386/nbsdaout.mh: New file.
9679         * config/i386/nbsdaout.mt: New file.
9680         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9681         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9682         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9683         i386_register_u_addr): Remove.
9684         * config/i386/nm-nbsdaout.h: New file.
9685         * config/i386/nm-nbsdelf.h: Remove.
9686         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9687         (USE_STRUCT_CONVENTION): Remove.
9688         * config/i386/tm-nbsdaout.h: New file.
9689         * config/i386/tm-nbsdelf.h: Remove.
9690         * config/m68k/nbsd.mh: Remove.
9691         * config/m68k/nbsd.mt: Remove.
9692         * config/m68k/nbsdaout.mh: New file.
9693         * config/m68k/nbsdaout.mt: New file. 
9694         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9695         * config/m68k/nm-nbsdaout.h: New file.
9696         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9697         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9698         * config/ns32k/nbsd.mh: Remove.
9699         * config/ns32k/nbsd.mt: Remove. 
9700         * config/ns32k/nbsdaout.mh: New file.
9701         * config/ns32k/nbsdaout.mt: New file.
9702         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9703         * config/ns32k/nm-nbsdaout.h: New file.
9704         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9705         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9706         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9707         (SVR4_SHARED_LIBS): Remove.
9708         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9709         * config/sparc/nbsd.mh: Remove.
9710         * config/sparc/nbsd.mt: Remove.
9711         * config/sparc/nbsdaout.mh: New file.
9712         * config/sparc/nbsdaout.mt: New file.
9713         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9714         * config/sparc/nbsdelf.mt: New file.
9715         * config/sparc/nm-nbsdaout.h: New file.   
9716         * config/sparc/nm-nbsdelf.h: Remove.
9717         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9718         * config/sparc/tm-nbsdaout.h: New file.
9719
9720 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9721
9722         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9723         mipsnbsd-tdep.c
9724         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9725
9726 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9727
9728         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9729         shnbsd-nat.c.
9730         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9731
9732 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9733
9734         * NEWS: Note new MIPS NetBSD native configuration. 
9735         * configure.host (mips*-*-netbsd*): New host. 
9736         * configure.tgt (mips*-*-netbsd*): New target. 
9737         * mipsnbsd-nat.c: New file.
9738         * mipsnbsd-tdep.c: New file.
9739         * mipsnbsd-tdep.h: New file.
9740         * config/mips/nbsd.mh: New file.
9741         * config/mips/nbsd.mt: New file.
9742         * config/mips/nm-nbsd.h: New file.
9743         * config/mips/tm-nbsd.h: New file.
9744
9745 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9746
9747         * Makefile.in (SFILES): Add osabi.c.
9748         (COMMON_OBS): Add osabi.o.
9749         (osabi.o): New dependency list.
9750         * osabi.c: New file.
9751         * osabi.h: New file.
9752         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9753
9754         * Makefile.in (alpha_tdep_h): Define and use instead of
9755         alpha-tdep.h.
9756         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9757         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9758         Remove.
9759         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9760         * alpha-tdep.h: Include osabi.h.
9761         (alpha_abi): Remove.
9762         (gdbarch_tdep): Use generic OS ABI framework.
9763         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9764         gdbarch_register_osabi.
9765         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9766         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9767         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9768
9769         * Makefile.in (sh_tdep_h): Add osabi.h.
9770         * sh-tdep.h (sh_osabi): Remove.
9771         (gdbarch_tdep): Use generic OS ABI framework.
9772         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9773         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9774         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9775         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9776
9777         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9778         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9779         gdbarch_register_osabi.
9780         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9781         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9782         (get_elfosabi): Rename to...
9783         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9784         ABI framework support routines.
9785         (arm_gdbarch_init): Use generic OS ABI framework.
9786         (arm_dump_tdep): Likewise.
9787         (_initialize_arm_tdep): Likewise.
9788         * arm-tdep.h: Include osabi.h.
9789         (arm_abi): Remove.
9790         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9791         osabi member.
9792         (arm_gdbarch_register_os_abi): Remove prototype.
9793         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9794         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9795
9796         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9797         * mips-tdep.c: Include osabi.h.
9798         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9799         OS ABI framework.
9800
9801 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9802
9803         * h8300-tdep.c: Fix formatting.
9804
9805 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9806
9807         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9808         printing vector registers.
9809
9810 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9811
9812         From Fernando Nasser:
9813         * remote.c (remote_async_open_1): Re-throw the exception when the
9814         connection fails.
9815         (remote_cisco_open): Ditto.
9816         (remote_open_1): Ditto.
9817
9818 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9819
9820         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9821         (remote_start_remote): Add uiout parameter.  Pass through to
9822         remote_start_remote_dummy.
9823         (remote_open_1): Use catch_exception instead of catch_errors.
9824         (remote_async_open_1): Ditto.
9825         (remote_cisco_open): Ditto.
9826
9827 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9828
9829         * remote.c (remote_start_remote): Replace PTR with void pointer.
9830         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9831         static.
9832
9833 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9834
9835         * gdb_indent.sh: Allow the script to be run in the sim directory.
9836
9837 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9838
9839         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9840         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9841
9842         * corelow.c (core_open): Only call set_gdbarch_from_file if
9843         exec_bfd is NULL.
9844
9845 2002-05-17  Andrey Volkov <avolkov@transas.com>
9846
9847         * h8300-tdep.c: Add support of EXR register
9848         * config/h8300/tm-h8300.h: Ditto. 
9849         
9850 2002-05-17  Andrey Volkov <avolkov@transas.com>
9851
9852         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9853         
9854 2002-05-17  Andrey Volkov <avolkov@transas.com>
9855
9856         * h8300-tdep.c: Change literal regnums to REGNO.
9857         
9858 2002-05-17  Jim Blandy  <jimb@redhat.com>
9859
9860         * NEWS: Note addition of macro support.
9861
9862         Expand preprocessor macros in C expressions.
9863         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9864         (scan_macro_expansion, scanning_macro_expansion,
9865         finished_macro_expansion): New function declarations.
9866         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9867         variable declarations.
9868         * parser-defs.h (expression_context_pc): New declaration.
9869         * parse.c (expression_context_pc): New variable.
9870         (parse_exp_1): Set expression_context_pc, as well as
9871         expression_context_block.
9872         * c-exp.y (yylex): If we're not already reading the result of a
9873         macro expansion, try to macro-expand the next token.  When we're
9874         done scanning a macro expansion, switch back to the mainline text.
9875         Commas and `if's in a macro's expansion don't terminate the input.
9876         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9877         (macro_original_text, macro_expanded_text,
9878         expression_macro_lookup_func, expression_macro_lookup_baton): New
9879         variables.
9880         (scan_macro_expansion, scanning_macro_expansion,
9881         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9882         c_preprocess_and_parse): New functions.
9883         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9884         c_preprocess_and_parse, instead of c_parse.
9885         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9886         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9887
9888 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9889
9890         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9891         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9892         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9893
9894 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9895
9896         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9897
9898 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9899
9900         * Makefile.in (sh_tdep_h): Define and use.
9901         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9902         register enum): Move to...
9903         * * sh-tdep.h: ...here.
9904         * sh-tdep.c: Include sh-tdep.h.
9905         * sh3-rom.c: Likewise.
9906         * shnbsd-tdep.c: Likewise.
9907
9908 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9909
9910         * arm-tdep.c: Spelling fix in comment.
9911
9912 2002-05-16  Jim Blandy  <jimb@redhat.com>
9913
9914         Add commands for manually expanding macros and showing their
9915         definitions.
9916         * macrocmd.c, macroscope.c, macroscope.h: New files.
9917         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9918         (macroscope_h): New variable.
9919         (HFILES_NO_SRCDIR): Add macroscope.h.
9920         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9921         (macroscope.o, macrocmd.o): New rules.
9922
9923         Teach the Dwarf 2 reader to read macro information.
9924         * dwarf2read.c: #include "macrotab.h".
9925         (dwarf_macinfo_buffer): New variable.
9926         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9927         dwarf_macinfo_size.
9928         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9929         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9930         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9931         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9932         dwarf2_macro_spaces_in_definition): New complaints.
9933         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9934         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9935         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9936         the partial symbol table.
9937         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9938         from what's recorded in the partial symbol table.
9939         (read_file_scope): If the compilation unit has a
9940         `DW_AT_macro_info' attribute, read its macro information.
9941         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9942
9943 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9944
9945         Fix PR gdb/546
9946         * ser-tcp.c: Don't include <netinet/udp.h>.
9947
9948 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9949
9950         * MAINTAINERS: Update my email address.
9951
9952 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9953
9954         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9955         include file of the same name.
9956
9957 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9958
9959         * configure.tgt: Mark v850 as multi-arched.
9960         * config/v850/tm-v850.h: Remove file.
9961         * config/v850/v850.mt: Eliminate TM_FILE.
9962
9963 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9964
9965         * v850-tdep.c: Full multi-arch.
9966         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9967         Define GDB_MULTI_ARCH to 2.
9968
9969 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9970
9971         * p-exp.y (current_type): New static variable.
9972         Carries the type of the expression at the position that is parsed.
9973         (push_current_type, pop_current_type): Two new functions. Used
9974         to store/restore current_type in expression on specific tokens.
9975         (search_field): New static variable. Set to one after parsing a point
9976         as at that point only a FIELDNAME token should be searched.
9977         (FIELDNAME): New token. After a point only a token belonging to 
9978         current_type type definition is allowed.
9979         (all over token rules): reset and change current_type according
9980         to rules.
9981         (exp '[' rule): insert implicit array index field if
9982         exp is a pascal string type.
9983
9984 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9985
9986         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9987         frame info.  Use frame_info's saved_regs instead of matching member
9988         in extra_frame_info throughout.
9989         (v850_frame_init_saved_regs): New function.
9990         (v850_init_extra_frame_info): Move most functionality into
9991         v850_frame_init_saved_regs().
9992         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9993         (v850_frame_find_saved_regs): Remove declaration.
9994         (FRAME_FIND_SAVED_REGS): Remove definition.
9995         (v850_frame_init_saved_regs): Add declaration.
9996         (FRAME_INIT_SAVED_REGS): Add definition.
9997
9998 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9999
10000         * v850-tdep.c: Begin multi-arch'ing v850.
10001         (v850_target_architecture_hook): Remove function.
10002         (v850_gdbarch_init): New function.  Add code previously in
10003         v850_target_architecture_hook().
10004         (_initialize_v850_tdep): Don't  set target_architecture_hook.
10005         Call register_gdbarch_init() instead.
10006
10007 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
10008
10009         * gdbtypes.h (struct cplus_struct_type): Remove args field.
10010         * hpread.c (hpread_read_struct_type): Remove assignments to args.
10011         (fixup_class_method_type): Likewise.
10012
10013 2002-05-15  Jim Blandy  <jimb@redhat.com>
10014
10015         Add macro structures to GDB's symbol tables.  Nobody puts anything
10016         in them yet.
10017         * symtab.h (struct symtab): New member: `macro_table'.
10018         * buildsym.h (pending_macros): New global variable.
10019         * buildsym.c: #include "macrotab.h".
10020         (buildsym_init): Initialize `pending_macros'.
10021         (end_symtab): If we found macro information while reading a CU's
10022         debugging info, do build a symtab structure for it.  Make the
10023         symtab point to the macro information, and clear the
10024         `pending_macros' pointer which held it while we were reading the
10025         debug info.
10026         (really_free_pendings): Free any pending macro table.
10027         * objfiles.h (struct objfile): New member: `macro_cache'.
10028         * objfiles.c (allocate_objfile): Set allocate and free functions
10029         for the macro cache's objstack.
10030         (free_objfile): Empty the macro cache's obstack.
10031         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10032         set new allocate and free functions for it.
10033         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10034         free functions for the macro cache's objstack.  (Why is this
10035         function building its own objfile?)
10036         * symmisc.c (print_objfile_statistics): Print statistics on the
10037         macro bcache.
10038         * Makefile.in: Note that buildsym.o depends on macrotab.h.
10039
10040 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10041
10042         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10043         (REGISTER_U_ADDR): Delete definition.
10044         (arm_register_u_addr): Delete declaration.
10045
10046 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
10047
10048         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10049         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10050
10051 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
10052
10053         * regcache.c (register_valid): Revise comments refering to "Not
10054         available" and "unavailable".
10055         * frame.c (frame_register_read): Ditto.
10056         * findvar.c (value_of_register): Ditto.
10057
10058 2002-05-15  Andrew Cagney  <cagney@redhat.com>
10059
10060         * Makefile.in (remote_sim_h): Replace remote-sim_h.
10061         (remote-sim.o): Update dependencies.
10062         (d10v-tdep.o): Specify dependencies.
10063         (sim_d10v_h): Define.
10064
10065 2002-05-14  Jim Blandy  <jimb@redhat.com>
10066
10067         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10068         * macrotab.c (macro_lookup_inclusion, find_definition,
10069         new_macro_table): Same.
10070         
10071         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10072         not `! strcmp ()'.  This is a dubious improvement.
10073         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10074
10075         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10076         although it's not necessary, to avoid a warning.
10077
10078 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10079
10080         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10081         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10082         TYPE_INSTANCE_FLAGS.
10083         (struct main_type): New.
10084         (struct type): Move most members to struct main_type.  Change
10085         cv_type and as_type to new type_chain member.  Add instance_flags.
10086         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10087         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10088         (finish_cv_type): Remove prototype.
10089         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
10090         Set TYPE_CHAIN.
10091         (alloc_type_instance): New function.
10092         (smash_type): New function.
10093         (make_pointer_type, make_reference_type, make_function_type)
10094         (smash_to_member_type, smash_to_method_type): Call smash_type.
10095         (make_qualified_type): New function.
10096         (make_type_with_address_space): Call make_qualified_type.
10097         (make_cv_type): Likewise.
10098         (finish_cv_type): Remove unnecessary function.
10099         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10100         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10101         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10102         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10103         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10104         * hpread.c (hpread_read_struct_type): Likewise.
10105         * stabsread.c (read_struct_type): Likewise.
10106
10107 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10108
10109         * configure.tgt: Add a catch all sh* target, for cases like
10110         sh[2,3,4]-elf and sh-hms.
10111
10112 2002-05-14  Keith Seitz  <keiths@redhat.com>
10113
10114         * event-loop.c (create_file_handler): Don't do anything but
10115         update data when we are given a fd which we are already
10116         monitoring.
10117
10118 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10119
10120         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10121         (update_context): Use __func__ in warnings.
10122         
10123 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10124
10125         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10126         and tcp_close to net_open and net_close.
10127         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10128         using UDP if requested.  Don't try to disable Nagle on UDP
10129         sockets.
10130         * remote.c (remote_serial_open): New function.  Warn about UDP.
10131         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10132
10133 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10134
10135         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10136
10137 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10138
10139         * configure.tgt: Remove sh-hms target.
10140         * MAINTAINERS: Don't list sh-hms as a separate target.
10141
10142 2002-05-13  Jim Blandy  <jimb@redhat.com>
10143
10144         Add first preprocessor macro-expansion files.
10145         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10146         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10147         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10148         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10149         (COMMON_OBS): Add macrotab.o, macroexp.o.
10150         (macroexp.o, macrotab.o): New rules.
10151
10152 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10153
10154         * config/m88k/tm-m88k.h: Update copyright.
10155         (m88k_target_write_pc): Declare
10156         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10157         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10158         (SHIFT_INST_REGS): Update definition.
10159         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10160         using old definition of TARGET_WRITE_PC.
10161         * regcache.c (generic_target_write_pc): Delete code handling
10162         NNPC_REGNUM.
10163         * gdbarch.sh (NNPC_REGNUM): Delete.
10164         * gdbarch.h, gdbarch.c: Regenerate.
10165
10166 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10167
10168         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10169         builtin reg number.
10170
10171 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10172
10173         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10174         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10175         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10176         access macros.
10177         * c-typeprint.c (cp_type_print_method_args): Likewise.
10178         (c_type_print_args): Likewise.
10179         * d10v-tdep.c (d10v_push_arguments): Likewise.
10180         (d10v_extract_return_value): Likewise.
10181         * expprint.c (print_subexp): Likewise.
10182         * gdbtypes.c (lookup_primitive_typename): Likewise.
10183         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10184         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10185         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10186         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10187         (TYPE_VECTOR): Likewise.
10188         * hpread.c (hpread_read_struct_type)
10189         (fix_static_member_physnames, fixup_class_method_type)
10190         (hpread_type_lookup): Likewise.
10191         * mdebugread.c (parse_symbol, parse_type): Likewise.
10192         * p-lang.c (is_pascal_string_type): Likewise.
10193         * valops.c (hand_function_call): Likewise.
10194         * x86-64-tdep.c (classify_argument): Likewise.
10195
10196         * hpread.c (hpread_read_function_type)
10197         (hpread_read_doc_function_type): Call replace_type.
10198         * dstread.c (create_new_type): Delete.
10199         (decode_dst_structure, process_dst_function): Call alloc_type.
10200         Use type access macros.
10201
10202 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10203
10204         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10205         the're not supported by the current architecture.
10206         (i387_fill_fxsave): Likewise.
10207
10208 2002-05-12  Fred Fish  <fnf@redhat.com>
10209
10210         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10211         sect_index_xxx members to index the first slot in section_offsets
10212         if all of the section_offsets are zero.
10213
10214 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10215
10216         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10217         checked in with last change.
10218
10219 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10220
10221         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10222         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10223         config.sub.
10224
10225 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10226
10227         * Makefile.in: Update dependencies.
10228
10229 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10230
10231         * language.c (local_hex_string_custom): Simplify.  Do not depend
10232         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10233
10234         * memattr.c (mem_info_command): Replace calls to
10235         longest_local_hex_string and longest_local_hex_string_custom.
10236         * buildsym.c (make_blockvector): Ditto.
10237         * solib.c (info_sharedlibrary_command): Ditto.
10238         * tracepoint.c (tracepoints_info): Ditto.
10239         * symtab.c (print_msymbol_info): Ditto.
10240
10241         * language.c (local_hex_string): Delete.
10242         (local_hex_string_custom): Delete.
10243         (longest_local_hex_string): Rename to local_hex_string.
10244         (longest_local_hex_string_custom): Rename to
10245         local_hex_string_custom.
10246         * language.h (local_hex_string): Change parameter type to LONGEST.
10247         (local_hex_string_custom): Ditto.
10248         (longest_local_hex_string): Delete declaration.
10249         (longest_local_hex_string_custom): Ditto.
10250
10251         * solib.c: Update copyright.
10252         * memattr.c: Update copyright.
10253         
10254 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10255
10256         * arch-utils.h (legacy_register_to_value): Declare.
10257         (legacy_value_to_register): Declare.
10258         (legacy_convert_register_p): Declare.
10259         * arch-utils.c (legacy_register_to_value): New function.
10260         (legacy_value_to_register): New function.
10261         (legacy_convert_register_p): New function.
10262
10263         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10264         (VALUE_TO_REGISTER): Define.
10265         (CONVERT_REGISTER_P): Define.
10266         * gdbarch.h, gdbarch.c: Regenerate.
10267
10268         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10269         VALUE_TO_REGISTER.
10270         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10271         CONVERT_REGISTER_P.
10272
10273 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10274             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10275
10276         * Makefile.in: Update dependencies for valops.c.
10277         * valops.c: Include "gdb_assert.h".
10278         (typecmp): Skip THIS parameter to methods.
10279         (find_method_list): Remove static_memfuncp argument,
10280         update callers.  Check for stub methods.
10281         (find_value_oload_method_list): Don't set *static_memfuncp.
10282         (find_overload_match): Don't check for stub methods.  Assert
10283         that methods are not stubbed.  Handle static methods.
10284         (value_find_oload_method_list): Remove static_memfuncp argument.
10285         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10286         to the argument list for static stub methods.
10287         * value.h (value_find_oload_method_list): Update prototype.
10288
10289 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10290
10291         * arch-utils.h (generic_register_size): Declare.
10292         (generic_register_raw_size, generic_register_virtual_size): Delete
10293         declarations.
10294         * arch-utils.c (generic_register_raw_size): Delete.
10295         (generic_register_size): New function.
10296         (generic_register_virtual_size): Delete.
10297
10298         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10299         default generic_register_size.
10300         * gdbarch.h, gdbarch.c: Re-generate.
10301         
10302         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10303         register_virtual_size.
10304         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10305         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10306
10307 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10308
10309         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10310         * gdbarch.h, gdbarch.c: Regenerate.
10311         * gnu-v3-abi.c: Update copyright.
10312         (vtable_address_point_offset): Update.
10313         (gnuv3_rtti_type): Update.
10314         (gnuv3_baseclass_offset): Update.
10315         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10316         (init_fetch_link_map_offsets): Update.
10317         * remote.c (get_remote_state): Update.
10318         
10319 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10320
10321         * TODO: Remove value_headof/value_from_vtable_info comment.
10322         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10323         * values.c (value_headof, value_from_vtable_info): Delete.
10324         * value.h (value_from_vtable_info): Delete prototype.
10325
10326 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10327
10328         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10329         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10330         $(gdb_regex_h).
10331         (gdb_assert_h): Define.
10332         (gdb_wait_h): Define.
10333         (gdb_regex_h): Define.
10334
10335 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10336
10337         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10338         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10339
10340 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10341
10342         * nbsd-tdep.c: Fix comment.
10343
10344 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10345
10346         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10347         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10348         (nbsd-tdep.o): New dependency list.
10349         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10350         nbsd-tdep.h.
10351         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10352         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10353         * nbsd-tdep.c: New file.
10354         * nbsd-tdep.h: New file.
10355         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10356         nbsd-tdep.h.
10357         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10358         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10359         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10360         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10361
10362 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10363
10364         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10365         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10366         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10367         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10368         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10369         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10370
10371 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10372
10373         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10374         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10375         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10376         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10377         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10378         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10379         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10380
10381 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10382
10383         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10384         fetch_elfcore_registers to...
10385         * i386nbsd-tdep.c: ...here.
10386         (i386nbsd_use_struct_convention): Rename to...
10387         (i386nbsd_aout_use_struct_convention): ...this.
10388         (i386nbsd_supply_reg): New function.
10389         (i386nbsd_fill_reg): New function.
10390         (fetch_core_registers): Use i386nbsd_supply_reg.
10391         (fetch_elfcore_registers): Likewise.
10392         (_initialize_i386nbsd_tdep): New function.
10393         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10394         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10395         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10396         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10397         (i386nbsd_aout_use_struct_convention): ...this.
10398
10399 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10400
10401         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10402         (store_inferior_registers): Use shnbsd_fill_reg.
10403         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10404         sh_nbsd_supply_register): Collapse into...
10405         (shnbsd_supply_reg): ...this.
10406         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10407         (shnbsd_fill_reg): ...this.
10408         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10409         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10410         (fetch_core_registers): Use shnbsd_supply_reg.
10411         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10412         (sh_nbsd_core_fns): Rename to...
10413         (shnbsd_core_fns): ...this.
10414         (sh_nbsd_elfcore_fns): Rename to...
10415         (shnbsd_elfcore_fns): ...this.
10416         (sh_nbsd_init_abi): Rename to...
10417         (shnbsd_init_abi): ...this.
10418         (_initialize_sh_nbsd_tdep): Rename to...
10419         (_initialize_shnbsd_tdep): ...this.
10420         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10421         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10422         sh_nbsd_fill_register): Remove prototypes.
10423         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10424
10425 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10426
10427         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10428         (i387-nat.o): Delete dependency list.
10429         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10430         (x86-64-linux-nat.o): Likewise.
10431         * i387-nat.c: Delete file, moving contents to...
10432         * i387-tdep.c: ...here.
10433         * i387-nat.h: Rename...
10434         * i387-tdep.h: ...to this.
10435         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10436         * i386-linux-nat.c: Likewise.
10437         * i386bsd-nat.c: Likewise.
10438         * i386gnu-nat.c: Likewise.
10439         * i386nbsd-nat.c: Likewise.
10440         * i386v4-nat.c: Likewise.
10441         * x86-64-linux-nat.c: Likewise.
10442         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10443         * config/i386/go32.mh (NATDEPFILES): Likewise.
10444         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10445         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10446         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10447         * config/i386/linux.mh (NATDEPFILES): Likewise.
10448         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10449         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10450         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10451         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10452
10453 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10454
10455         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10456         (alphanbsd-nat.o): Remove dependency list.
10457         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10458         * alphanbsd-nat.c: Delete.  Contents moved to...
10459         * alphanbsd-tdep.c: ...here.
10460         (_initialize_alphanbsd_tdep): Register core functions.
10461         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10462
10463 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10464
10465         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10466         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10467         (alphanbsd-nat.o): Likewise.
10468         (alphabsd-tdep.o): New dependency list.
10469         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10470         (fill_gregset): Use alphabsd_fill_reg.
10471         (supply_fpregset): Use alphabsd_supply_fpreg.
10472         (fill_fpregset): Use alphabsd_fill_fpreg.
10473         (fetch_inferior_registers): Use struct reg and struct fpreg
10474         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10475         and alphabsd_supply_fpreg.
10476         (store_inferior_registers): Use struct reg and struct fpreg
10477         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10478         and alphabsd_fill_fpreg.
10479         * alphabsd-tdep.c: New file.
10480         * alphabsd-tdep.h: New file.
10481         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10482         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10483         alphabsd_supply_fpreg.
10484         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10485         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10486
10487 2002-05-11  Eric Christopher  <echristo@redhat.com>
10488
10489         * mips-tdep.c (mips_double_register_type): Fix thinko.
10490         (mips_single_register_type): Ditto.
10491         * MAINTAINERS: Add self.
10492
10493 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10494
10495         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10496         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10497         right thing on architectures with different endianness and/or
10498         integer sizes.
10499
10500 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10501
10502         From Christian Limpach <chris@Pin.LU>
10503         * configure.in: Change sed expression which comments out
10504         NATDEPFILES to also comment out continuation lines.
10505         * configure: Regenerate.
10506
10507 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10508
10509         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10510         big patch.
10511
10512 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10513
10514         * sh-tdep.c: Include correct file.
10515
10516 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10517
10518         New support for sh64-elf (sh5) target.
10519
10520         * configure.tgt: For sh64-elf target, default to sh-elf.
10521
10522         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10523         (struct gdbarch_tdep): Add new fields for new registers and ABI
10524         info.
10525
10526         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10527         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10528         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10529         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10530         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10531         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10532         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10533         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10534         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10535         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10536         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10537         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10538         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10539         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10540         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10541         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10542         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10543         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10544         sign_extend, sh64_nofp_frame_init_saved_regs,
10545         sh64_init_extra_frame_info, sh64_get_saved_register,
10546         sh64_extract_struct_value_address, sh64_pop_frame,
10547         sh64_push_arguments, sh64_extract_return_value,
10548         sh64_store_return_value, sh64_show_media_regs,
10549         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10550         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10551         sh_sh64_register_virtual_type,
10552         sh_sh64_register_convert_to_virtual,
10553         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10554         sh64_register_read, sh64_pseudo_register_write,
10555         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10556         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10557         sh64_do_pseudo_register, sh_compact_do_registers_info,
10558         sh64_do_registers_info, sh_gdbarch_init): New functions.
10559
10560 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10561
10562         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10563
10564 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10565
10566         * linespec.c (decode_line_1): Check for a double quote after
10567         a filename correctly.
10568
10569 2002-05-10  Jim Blandy  <jimb@redhat.com>
10570
10571         Properly track the size of the current objfile's .debug_line section.
10572         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10573         (DWARF_LINE_SIZE): New macro.
10574         (dwarf2_build_psymtabs_hard): Record the line section's size in
10575         the partial symbol table.
10576         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10577         symbol table.
10578
10579 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10580
10581         * ia64-tdep.c: Handle breakpoints on L instruction type
10582         in MLX instruction bundle by moving the breakpoint to
10583         the third slot (X instruction type) as L holds only data.
10584
10585 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10586
10587         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10588         (process_one_symbol): Complain about discarding local symbols
10589         due to a misplaced N_LBRAC entry.
10590
10591 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10592
10593         From Daniel Berlin <dan@cgsoftware.com>
10594         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10595         decrease the depth we are at, in the case of templates.
10596
10597 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10598
10599         * mips-tdep.c (mips_float_register_type): New function.
10600         (mips_double_register_type): New function.
10601         (mips_print_register): Use them.
10602         (do_fp_register_row): Likewise.
10603
10604 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10605
10606         * signals/signals.c (signals): Remove conditional compilation around
10607         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10608         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10609
10610 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10611
10612         * remote-rdp.c (remote_rdp_can_run): Remove.
10613
10614 2002-05-09  Tom Tromey  <tromey@redhat.com>
10615
10616         * jv-valprint.c (java_val_print): Handle `char' as a special case
10617         of TYPE_CODE_INT.
10618
10619 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10620
10621         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10622         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10623         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10624         str r(0123),[sp,#nn].
10625         (arm_skip_prologue): Ditto.  Also make disassembly
10626         order-independent by placing it in a loop.
10627
10628 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10629
10630         * stabsread.c (read_type): Add recognition for new attribute:
10631         "@V;" means that an array type is actually a vector.
10632         This is analogous to the vector flag that's been added to dwarf2.
10633
10634 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10635
10636         * i386-tdep.h (i386_abi): New enum.
10637         (struct gdbarch_tdep): Replace os_ident member with abi.
10638         (i386_gdbarch_register_os_abi): New prototype.
10639         * i386-tdep.c (i386_abi_names): New array.
10640         (process_note_abi_tag_sections): Removed.
10641         (process_note_sections): New function.
10642         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10643         (struct i386_abi_handler): New struct.
10644         (i386_abi_handler_list): New variable.
10645         (i386_gdbarch_register_os_abi): New function.
10646         (i386_gdbarch_init): Adapt for the changes given above.
10647
10648 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10649
10650         * gregset.h: Say "GNU/Linux".
10651
10652 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10653
10654         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10655         (build_gdbtypes): Build builtin_type_v2_float.
10656         (_initialize_gdbtypes): Register new builtin type.
10657
10658 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10659
10660         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10661         (clear_gdbarch_swap): New function.
10662         (initialize_non_multiarch): Call.
10663         (gdbarch_update_p): Before calling init(), swap out and clear the
10664         existing architecture.
10665         * gdbarch.c: Regenerate.
10666
10667 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10668
10669         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10670         alphanbsd-tdep.c.
10671
10672 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10673
10674         * sh-nbsd-nat.c: Rename to...
10675         * shnbsd-nat.c: ...this.
10676         * sh-nbsd-tdep.c: Rename to...
10677         * shnbsd-tdep.c: ...this.
10678         * sh-nbsd-tdep.h: Rename to...
10679         * shnbsd-tdep.h: ...this.
10680         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10681         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10682
10683 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10684
10685         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10686         concatenation for command help messages.
10687
10688 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10689
10690         * NEWS: Note new sh*-*-netbsdelf* configuration.
10691         * configure.host: Set gdb_host_cpu to sh for all sh*.
10692         (sh*-*-netbsdelf*): New host.
10693         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10694         (sh*-*-netbsdelf*): New target.
10695         * sh-nbsd-nat.c: New file.
10696         * sh-nbsd-tdep.c: New file.
10697         * sh-nbsd-tdep.h: New file.
10698         * config/sh/nbsd.mh: New file.
10699         * config/sh/nbsd.mt: New file.
10700         * config/sh/nm-nbsd.h: New file.
10701         * config/sh/tm-nbsd.h: New file.
10702
10703 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10704
10705         * sh-tdep.c (sh_osabi_names): Declare.
10706         (process_note_abi_tag_sections): New function.
10707         (get_elfosabi): Ditto.
10708         (sh_gdbarch_register_os_abi): Ditto.
10709         (sh_dump_tdep): Ditto.
10710         _initialize_sh_tdep): Use gdbarch_register to register
10711         sh_gdbarch_init and sh_dump_tdep.
10712         * config/sh/tm-sh.h (sh_osabi): Declare.
10713         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10714
10715 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10716
10717         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10718         (thumb_scan_prologue): Ditto.
10719         (arm_find_callers_reg): Ditto.
10720         (arm_frame_chain): Ditto.
10721         (arm_init_extra_frame_info): Ditto.
10722         (arm_frame_saved_pc): Ditto.
10723         (arm_pop_frame): Ditto.
10724         (arm_push_return_address): New function.
10725         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10726         call_dummy_location, call_dummy_breakpoint_offset_p,
10727         call_dummy_breakpoint_offset, call_dummy_p,
10728         call_dummy_stack_adjust_p, call_dummy_words,
10729         sizeof_call_dummy_words, call_dummy_start_offset,
10730         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10731         call_dummy_address, push_return_address and push_dummy_frame for
10732         generic dummy frames.
10733
10734 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10735
10736         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10737         size computation for alloca.
10738         (sh_fp_frame_init_saved_regs): Likewise.
10739
10740 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10741
10742         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10743         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10744         * arm-tdep.c (arm_store_return_value): Use them.
10745         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10746         * remote-rdp.c (remote_rdp_fetch_register): Use
10747         ARM_MAX_REGISTER_RAW_SIZE.
10748         (remote_rdp_store_register): Likewise.
10749
10750 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10751
10752         * dwarf2cfi.c: Code cleanup, removed unused variables,
10753         added default labels to switch {} statements.
10754         * x86-64-tdep.c: Ditto.
10755         * x86-64-linux-nat.c: Ditto.
10756
10757 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10758
10759         * solib.h: Protect against multiple inclusion.
10760
10761 2002-05-06  Jim Blandy  <jimb@redhat.com>
10762
10763         Add first preprocessor macro-expansion files.
10764         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10765         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10766         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10767         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10768         (COMMON_OBS): Add macrotab.o, macroexp.o.
10769         (macroexp.o, macrotab.o): New rules.
10770
10771         Separate the job of reading the line number info statement program
10772         header (...expialidocious) out into its own function.
10773         * dwarf2read.c (struct line_head, struct filenames, struct
10774         directories): Replace with...
10775         (struct line_header): New structure, containing the full
10776         contents of the statement program header, including the
10777         include directory and file name tables.
10778         (read_file_scope): If we have line number info, instead of just
10779         calling dwarf_decode_lines to do all the work, call
10780         dwarf_decode_line_header first to get a `struct line_header'
10781         containing the data in the statement program header, and then
10782         pass that to dwarf_decode_lines, which will pick up where that
10783         left off.  Be sure to clean up the `struct line_header' object.
10784         (dwarf_decode_line_header, free_line_header, add_include_dir,
10785         add_file_name): New functions.
10786         (dwarf_decode_lines): Move all the code to read the statement
10787         program header into dwarf_decode_line_header.  Take the line
10788         header it built as the first argument, instead of the offset to
10789         the compilation unit's line number info.  Use the new `struct
10790         line_header' type instead of the old structures.  No need to do
10791         cleanups here now, since we don't allocate anything.
10792         (dwarf2_statement_list_fits_in_line_number_section,
10793         dwarf2_line_header_too_long): New complaints.
10794
10795 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10796
10797         * gdbtypes.c (init_vector_type): New function.
10798         (build_builtin_type_vec128): Simplify the representation of SIMD
10799         registers.
10800         (build_gdbtypes): Initialize new builtin vector types.
10801         (_initialize_gdbtypes): Register new vector types with gdbarch.
10802         (builtin_type_v4_float, builtin_type_v4_int32,
10803         builtin_type_v8_int16, builtin_type_v16_int8,
10804         builtin_type_v2_int32, builtin_type_v4_int16,
10805         builtin_type_v8_int8): New (renamed) SIMD types.
10806
10807 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10808
10809         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10810         (i387_fill_fxsave): Likewise.
10811
10812 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10813
10814         * alpha-tdep.c (alpha_extract_return_value): Don't use
10815         non-constant array size in prototype.
10816
10817 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10818
10819         From Brian Taylor <briant at model dot com>:
10820         * ui-out.c (ui_out_field_core_addr): Use the function
10821         longest_local_hex_string_custom'to format addresses > 32 bits
10822         wide.
10823
10824         * ui-out.c (ui_out_field_core_addr): Update comment.
10825
10826 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10827
10828         * stack.c (select_and_print_frame): Make static.  Delete the
10829         parameter `level'.
10830         (func_command): Update call.
10831         (select_frame_command): Delete code computing the frame level.
10832         * frame.h (select_and_print_frame): Delete declaration.
10833
10834 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10835
10836         * sparc-tdep.c (sparc_get_saved_register): Comment why
10837         get_prev_frame call is safe.
10838
10839 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10840
10841         * frame.h (select_frame): Delete level parameter.
10842         * stack.c (select_frame): Update.  Use frame_relative_level to
10843         obtain the frame's level.
10844         (select_and_print_frame): Update call.
10845         (select_frame_command): Ditto.
10846         (up_silently_base): Ditto.
10847         (down_silently_base): Ditto.
10848         * ocd.c (ocd_start_remote): Ditto.
10849         * remote-rdp.c (remote_rdp_open): Ditto.
10850         * remote-mips.c (mips_initialize): Ditto.
10851         (common_open): Ditto.
10852         * remote-e7000.c (e7000_start_remote): Ditto.
10853         * m3-nat.c (select_thread): Ditto.
10854         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10855         (child_get_current_exception_event): Ditto.
10856         * varobj.c (varobj_create): Ditto.
10857         (varobj_update): Ditto.
10858         (c_value_of_root): Ditto.
10859         * tracepoint.c (finish_tfind_command): Ditto.
10860         * corelow.c (core_open): Ditto.
10861         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10862         * thread.c (info_threads_command): Ditto.
10863         (switch_to_thread): Ditto.
10864         * infrun.c (normal_stop): Ditto.
10865         (restore_selected_frame): Ditto.
10866         (restore_inferior_status): Ditto.
10867         * breakpoint.c (insert_breakpoints): Ditto.
10868         (watchpoint_check): Ditto.
10869         (bpstat_stop_status): Ditto.
10870         (do_enable_breakpoint): Ditto.
10871         * blockframe.c (flush_cached_frames): Ditto.
10872         (reinit_frame_cache): Ditto.
10873
10874 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10875
10876         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10877         maintainer.
10878
10879 2002-05-04  Jim Blandy  <jimb@redhat.com>
10880
10881         * gdbtypes.c (replace_type): Doc fix.
10882
10883 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10884
10885         * valprint.c (strcat_longest): Delete commented out function.
10886         Update copyright.
10887
10888 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10889
10890         * MAINTAINERS: Mark a29k as deleted.
10891         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10892         Move new configurations to the top.
10893         * configure.tgt: Remove a29k.
10894         * config/a29k/tm-vx29k.h: Delete.
10895         * config/a29k/vx29k.mt: Delete.
10896         * config/a29k/tm-a29k.h: Delete.
10897         * config/a29k/a29k-udi.mt: Delete.
10898         * config/a29k/a29k.mt: Delete.
10899         * a29k-tdep.c: Delete.
10900         * remote-udi.c: Delete.
10901         * remote-mm.c: Delete.
10902         * remote-eb.c: Delete.
10903         * remote-adapt.c: Delete.
10904         * Makefile.in: Remove obsolete code.
10905         * config/s390/s390x.mt: Ditto.
10906         * config/s390/s390.mt: Ditto.
10907         * config/sparc/sparclynx.mh: Ditto.
10908         * config/sparc/linux.mh: Ditto.
10909         * config/pa/hppaosf.mh: Ditto.
10910         * config/pa/hppabsd.mh: Ditto.
10911         * config/ns32k/nbsd.mt: Ditto.
10912         * config/mips/vr5000.mt: Ditto.
10913         * config/m68k/sun3os4.mh: Ditto.
10914         * config/m68k/nbsd.mt: Ditto.
10915         * config/m68k/m68klynx.mh: Ditto.
10916         * config/m32r/m32r.mt: Ditto.
10917         * config/i386/x86-64linux.mt: Ditto.
10918         * config/i386/nbsdelf.mt: Ditto.
10919         * config/i386/nbsd.mt: Ditto.
10920         * config/i386/i386lynx.mh: Ditto.
10921
10922 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10923
10924         * target.c (debug_print_register): New function.  Handle oversize
10925         registers.
10926         (debug_to_fetch_registers): Call.
10927         (debug_to_store_registers): Call.
10928
10929 2002-05-03  Jim Blandy  <jimb@redhat.com>
10930
10931         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10932         (read_type): Doc fix.
10933         * gdbtypes.c (replace_type): Doc fix.
10934
10935         * stabsread.c (multiply_defined_struct): New complaint.
10936         (read_struct_type): If the type we were passed isn't empty, or
10937         incomplete, don't read the new struct type into it; complain,
10938         and return the original type unchanged.  Take a new `type_code'
10939         argument, which is the type code for the new type.
10940         (read_type): Rather than storing the type's type code here, pass
10941         it as an argument to read_struct_type, and let that take care of
10942         storing it.  That way, we don't overwrite the original type code,
10943         so read_struct_type can use it to decide whether we're overwriting
10944         something we shouldn't.
10945         (complain_about_struct_wipeout): New function.
10946
10947 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10948
10949         * gdbarch.sh: Assert that gdbarch is non-NULL.
10950         * gdbarch.c: Regenerate.
10951
10952 2002-05-03  Jason Merrill  <jason@redhat.com>
10953
10954         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10955         and return NULL.
10956
10957 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10958
10959         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10960         (x86_64_dwarf2gdb_regno_map_length),
10961         (x86_64_dwarf2_reg_to_regnum): Added.
10962         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10963         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10964         (_initialize_x86_64_tdep): Synced with the change above.
10965         (x86_64_skip_prologue): Reformulated message.
10966
10967 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10968
10969         * f-exp.y: Also use new prev_lexptr variable
10970         to improve error reporting. Based on Michael Snyder
10971         2002-04-24 dated patch to c-exp.y.
10972         * jv-exp.y: Likewise.
10973         * m2-exp.y: Likewise.
10974
10975 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10976
10977         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10978         we are dealing with vectors.
10979
10980 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10981
10982         * config/m68k/tm-nbsd.h: Obvious fix,
10983         correct machine name.
10984
10985 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10986
10987         * p-typeprint.c (pascal_type_print_base): Add support
10988         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10989
10990 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10991
10992         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10993         for fondamental pascal 'char' type.
10994
10995 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10996
10997         * p-lang.h (is_pascal_string_type): Declaration changed,
10998         new sixth argument of type char ** added.
10999         * p-lang.c (is_pascal_string_type): Implementation
11000         changed. Args length_pos, length_size, string_pos, char_size
11001         can now be NULL. New argument arrayname set to the field
11002         name of the char array. Return value set to char array
11003         field index plus one.
11004         * p-valprint.c (pascal_val_print): Adapt to new declaration of
11005         is_pascal_string_type function.
11006
11007 2002-05-02  Andrew Cagney  <cagney@redhat.com>
11008
11009         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
11010         <cagney@redhat.com> change.
11011         * gdbarch.c: Regenerate.
11012
11013 2002-05-02  Andrew Cagney  <cagney@redhat.com>
11014
11015         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
11016         before probing for a new one.  Detect errorenous gdbarch_init
11017         functions.
11018         * gdbarch.c: Regenerate.
11019
11020 2002-05-01  Andrew Cagney  <cagney@redhat.com>
11021
11022         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
11023         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
11024         * config/v850/tm-v850.h: Ditto.  Update copyright.
11025
11026 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
11027
11028         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11029         current_gdbarch.
11030
11031 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11032
11033         * arm-tdep.c: Whitespace clean-ups.
11034         (arm_skip_prologue): Fix thinko; two lines
11035         should have been removed as part of 4/24 change.
11036
11037 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
11038
11039         * rs6000-tdep.c: Added comment describing how fpscr register
11040         numbers were chosen.
11041
11042 2002-04-30  Michael Snyder  <msnyder@redhat.com>
11043
11044         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11045
11046 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11047
11048         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11049         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11050         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11051
11052 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
11053
11054         From Louis Hamilton <hamilton@redhat.com>:
11055         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11056         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11057         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11058         not bfd-private xcoff data, to determine wordsize.
11059         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11060
11061 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
11062
11063         GDB 5.2 released from 5.2 branch.
11064
11065 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
11066
11067         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11068         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11069         (x86_64_register_info_table): Added comments with register numbers.
11070
11071 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
11072
11073         * rs6000-tdep.c (rs6000_extract_return_value,
11074         rs6000_store_return_value): Handle returning vectors.
11075         (rs6000_gdbarch_init): Use
11076         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11077         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11078         New function.
11079         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11080         vectors.
11081         (ppc_sysv_abi_push_arguments): Handle vector parameters.
11082         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11083
11084 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11085
11086         * hpread.c (hpread_psymtab_to_symtab_1,
11087         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11088         with fprintf_unfiltered (gdb_stderr,...).
11089
11090 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11091
11092         * remote-array.c (printf_monitor, write_monitor,
11093         array_insert_breakpoint, array_remove_breakpoint ):
11094         Replace fprintf (stderr,...
11095         with fprintf_unfiltered (gdb_stderr,....
11096         * remote-es.c: Likewise.
11097         * remote-os9k.c: Likewise.
11098         * remote-st.c: Likewise.
11099
11100 2002-04-28  Andreas Schwab  <schwab@suse.de>
11101
11102         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11103         linux-proc.o and gcore.o.
11104
11105 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11106
11107         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11108         code without frame pointers.
11109
11110 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11111
11112         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11113         ON_STACK is needed.
11114
11115 2002-04-26  Ben Elliston  <bje@redhat.com>
11116
11117         * target.c (do_xfer_memory): Correct reference to the new option
11118         "trust-readonly-sections".
11119
11120 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11121
11122         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11123         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11124         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11125         vectors.
11126         (read_array_type): Record the fact that this array type is really a
11127         vector (i.e. are passed in by value).
11128
11129 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11130
11131         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11132         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11133         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11134         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11135         * alpha-linux-tdep.c: Include frame.h.
11136         (alpha_linux_sigcontext_addr): New function.
11137         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11138         alpha_linux_sigcontext_addr.
11139         * alpha-osf1-tdep.c: Include gdbcore.h.
11140         (alpha_osf1_sigcontext_addr): New function.
11141         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11142         alpha_osf1_sigcontext_addr.
11143         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11144         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11145
11146 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11147
11148         * stack.c (selected_frame_level):
11149         (select_frame): Do not set selected_frame_level.
11150         * frame.h (selected_frame_level): Delete declaration.
11151
11152 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11153
11154         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11155         convert_from_func_ptr-addr when AIX / PowerOpen.
11156
11157 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11158
11159         * valops.c (hand_function_call): Call
11160         generic_save_call_dummy_addr.
11161         * frame.h (generic_save_call_dummy_addr): Declare.
11162         * blockframe.c (struct dummy_frame): Add fields call_lo and
11163         call_hi.
11164         (generic_find_dummy_frame): Check for PC in range call_lo to
11165         call_hi instead of entry_point_address.
11166         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11167         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11168         (generic_save_call_dummy_addr): New function.
11169
11170 2002-04-24  David S. Miller  <davem@redhat.com>
11171
11172         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11173         sparc_skip_prologue.
11174         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11175         information to find prologue when possible.
11176         (sparc_prologue_frameless_p): Call examine_prologue directly.
11177         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11178         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11179         second argument.
11180         (SKIP_PROLOGUE): Likewise.
11181
11182 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11183
11184         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11185         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11186         indicate that the condition it was testing is always true.
11187         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11188         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11189         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11190
11191 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11192
11193         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11194         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11195         tdep->jb_pc and tdep->jb_elt_size.
11196         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11197         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11198         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11199         * alpha-nat.c (get_longjmp_target): Remove.
11200         (JB_ELEMENT_SIZE): Ditto.
11201         (JB_PC): Ditto.
11202         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11203         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11204         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11205         to alpha_get_longjmp_target.
11206         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11207         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11208         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11209
11210 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11211
11212         * README: Update to GDB 5.2.
11213
11214 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11215
11216         * gdbarch.sh (LC_ALL): Set to `c'.
11217
11218 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11219
11220         * avr-tdep.c: Ran through gdb_indent.sh.
11221
11222 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11223
11224         * MAINTAINERS: Add myself as AVR maintainer.
11225         * NEWS: Note new target avr.
11226
11227 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11228
11229         * Makefile.in: Add support for AVR target.
11230         * configure.tgt: Add support for AVR target.
11231         * avr-tdep.c: New file
11232         * config/avr/avr.mt: New file.
11233
11234 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11235
11236         * MAINTAINERS: Add myself to write-after-approval.
11237
11238 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11239
11240         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11241         with fprintf_unfiltered (gdb_stderr,....
11242
11243 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11244
11245         Fix PR gdb/508.
11246         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11247
11248 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11249
11250         * p-exp.y: Also use new prev_lexptr variable
11251         to improve error reporting. Based on Michael Snyder
11252         2002-04-24 dated patch to c-exp.y.
11253
11254 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11255
11256         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11257         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11258         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11259         to 0.
11260         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11261         and struct value.
11262         (FUNCTION_START_OFFSET): Remove.
11263         (BREAKPOINT): Ditto.
11264
11265 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11266
11267         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11268         * NEWS: Ditto.
11269
11270 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11271
11272         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11273         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11274         alpha_linux_pc_in_sigtramp.
11275         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11276         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11277         alpha_osf1_pc_in_sigtramp.
11278         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11279         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11280         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11281         alphafbsd_pc_in_sigtramp.
11282         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11283         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11284         alphanbsd_pc_in_sigtramp.
11285         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11286         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11287
11288 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11289
11290         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11291
11292 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11293
11294         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11295         alphanbsd-tdep.c.
11296         (alphanbsd-nat.o): New dependency list.
11297         (alphanbsd-tdep.o): Ditto.
11298         * NEWS: Note new native NetBSD/alpha configuration.
11299         * alphanbsd-nat.c: New file.
11300         * alphanbsd-tdep.c: Ditto.
11301         * configure.host (alpha*-*-netbsd*): New host.
11302         * configure.tgt (alpha*-*-netbsd*): New target.
11303         * config/alpha/nbsd.mh: New file.
11304         * config/alpha/nbsd.mt: Ditto.
11305         * config/alpha/nm-nbsd.h: Ditto.
11306         * config/alpha/tm-nbsd.h: Ditto.
11307
11308 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11309
11310         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11311         (alpha-osf1-tdep.o): New dependency list.
11312         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11313         and skip_sigtramp_frame members.
11314         * alpha-linux-tdep.c: Include gdbcore.h.
11315         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11316         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11317         * alpha-osf1-tdep.c: New file.
11318         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11319         alpha-osf1-dep.c.
11320         (alpha_frame_past_sigtramp_frame): New function.
11321         (alpha_dynamic_sigtramp_offset): Ditto.
11322         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11323         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11324         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11325         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11326         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11327         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11328         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11329         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11330         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11331         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11332         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11333         to find_solib_trampoline_target.
11334         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11335         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11336         (SKIP_TRAMPOLINE_CODE): Remove.
11337         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11338         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11339         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11340         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11341         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11342         (PROC_SIGTRAMP_MAGIC): Ditto.
11343         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11344         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11345         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11346         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11347         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11348
11349 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11350
11351         * NEWS: Note that Alpha targets are now multi-arch.
11352
11353 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11354
11355         * parser-defs.h (prev_lexptr): New external variable.
11356         * parse.c (parse_exp_1): Set prev_lexptr to null before
11357         calling the language-specific parser.
11358         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11359         (yyerror): Use prev_lexptr in error reporting.
11360
11361 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11362
11363         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11364         * gregset.h: If FILL_FPXREGSET is defined, provide
11365         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11366         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11367         is defined, call fill_fpxregset.
11368
11369 2002-04-24  Roland McGrath  <roland@frob.com>
11370
11371         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11372         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11373         (supply_gregset, supply_fpregset): New functions.
11374
11375         * gnu-nat.c (gnu_find_memory_regions): New function.
11376         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11377         (gnu_xfer_memory): Add a cast.
11378
11379 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11380
11381         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11382         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11383         of argument regs ("str r(0123), [r11, #-nn"]).
11384         (arm_skip_prologue): Better handling for frameless functions.
11385         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11386         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11387
11388 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11389
11390         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11391         NUM_PSEUDO_REGS can be used.
11392
11393 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11394
11395         * arch-utils.h: Update copyright.
11396
11397         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11398         * gdbarch.h, gdbarch.c: Re-generate.
11399
11400         * inferior.h (IN_SIGTRAMP): Delete definition.
11401         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11402         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11403
11404         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11405         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11406         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11407         (find_proc_framesize): Ditto.
11408         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11409         (alpha_init_extra_frame_info): Ditto.
11410         * infrun.c (handle_inferior_event): Ditto.
11411         (handle_inferior_event): Ditto.
11412         (check_sigtramp2): Ditto.
11413         * blockframe.c (create_new_frame): Ditto.
11414         (get_prev_frame): Ditto.
11415         * ppc-linux-tdep.c: Update comments.
11416         * i386-linux-tdep.c: Update comments.
11417         * breakpoint.c (bpstat_what): Update comment.
11418
11419 2002-04-24  David S. Miller  <davem@redhat.com>
11420
11421         * i960-tdep.c (register_in_window_p): New function.
11422         (i960_find_saved_register): Use it instead of
11423         REGISTER_IN_WINDOW_P.
11424         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11425
11426         * symtab.h (find_stab_function_addr): Kill extern.
11427         * minsyms.c (find_stab_function_addr): Remove from here...
11428         * dbxread.c: ... to here, and mark it static.
11429
11430 2002-04-20  David S. Miller  <davem@redhat.com>
11431
11432         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11433         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11434
11435 2002-04-21  David S. Miller  <davem@redhat.com>
11436
11437         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11438         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11439         (vx_write_register): Likewise.
11440
11441 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11442
11443         * source.c (is_regular_file): New function.
11444         (openp): Check wether file to open is a regular file
11445         to avoid opening directories.
11446
11447 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11448
11449         * findvar.c (extract_signed_integer): Cast printf argument
11450         to suppress format warning.
11451         (extract_unsigned_integer): Likewise.
11452         * infcmd.c (registers_info): Likewise.
11453         * top.c (get_prompt_1): Likewise.
11454         * valops.c (value_assign): Likewise.
11455         * valprint.c (print_decimal): Likewise.
11456
11457 2002-04-22  H.J. Lu  (hjl@gnu.org)
11458
11459         * c-exp.y (typebase): Support
11460
11461         [long|long long|short] [signed|unsigned] [int|]
11462
11463         and
11464
11465         signed [long|long long|short] int
11466
11467 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11468
11469         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11470         and vax-tdep.h.
11471         * vax-tdep.h: New file.
11472         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11473         Make several routines static.
11474         (vax_get_saved_register): New function.
11475         (vax_gdbarch_init): New function.
11476         (_initialize_vax_tdep): Register vax_gdbarch_init.
11477         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11478         Remove macros now under the control of gdbarch.
11479
11480 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11481
11482         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11483         Some whitespace and coding standards tweaks.
11484
11485 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11486
11487         * vax-tdep.c: Include regcache.h.
11488         (vax_call_dummy_words): New.
11489         (sizeof_vax_call_dummy_words): New.
11490         (vax_fix_call_dummy): New function.
11491         (vax_saved_pc_after_call): Ditto.
11492         * config/vax/tm-vax.h: Don't include regcache.h.
11493         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11494         (CALL_DUMMY): Remove.
11495         (CALL_DUMMY_WORDS): Define.
11496         (SIZEOF_CALL_DUMMY_WORDS): Define.
11497         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11498
11499 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11500
11501         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11502
11503 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11504
11505         * vax-tdep.c (vax_frame_chain): New function.
11506         (vax_push_dummy_frame): Ditto.
11507         (vax_pop_frame): Ditto.
11508         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11509         (FRAMELESS_FUNCTION_INVOCATION): Use
11510         generic_frameless_function_invocation_not.
11511         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11512         (POP_FRAME): Use vax_pop_frame.
11513
11514 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11515
11516         * vax-tdep.c (vax_store_struct_return): New function.
11517         (vax_extract_return_value): Ditto.
11518         (vax_store_return_value): Ditto.
11519         (vax_extract_struct_value_address): Ditto.
11520         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11521         vax_store_struct_return.
11522         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11523         (STORE_RETURN_VALUE): Use vax_store_return_value.
11524         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11525
11526 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11527
11528         * vax-tdep.c (vax_frame_saved_pc): New function.
11529         (vax_frame_args_address_correct): Ditto.
11530         (vax_frame_args_address): Ditto.
11531         (vax_frame_locals_address): Ditto.
11532         (vax_frame_num_args): Move code to be in proximity to
11533         other frame-related functions.
11534         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11535         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11536         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11537         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11538         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11539
11540 2002-04-22  H.J. Lu  (hjl@gnu.org)
11541
11542         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11543         includedir.
11544
11545 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11546
11547         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11548         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11549         (FRAME_INIT_SAVED_REGS): New macro.
11550
11551 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11552
11553         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11554
11555 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11556
11557         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11558         where needed.
11559         (fetch_osf_core_registers): Likewise.
11560         (supply_gregset): Likewise.
11561
11562 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11563
11564         * symfile.h (get_section_index): Define.
11565         * symfile.c (get_section_index): New function.
11566         * mdebugread.c (SC_IS_SBSS): New macro.
11567         (SC_IS_BSS): Return true for the scBss storage class only, as
11568         the scSBss storage class refers to the .sbss section.
11569         (parse_partial_symbols): Discard the symbols which associated
11570         section does not exist.
11571         Make sure to use the .sbss section index for symbols which
11572         storage class is scBss, rather than using the .bss section index.
11573
11574 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11575
11576         * vax-tdep.c: Update copyright years.
11577         (vax_register_name): New function.
11578         (vax_register_byte): Ditto.
11579         (vax_register_raw_size): Ditto.
11580         (vax_register_virtual_size): Ditto.
11581         (vax_register_virtual_type): Ditto.
11582         * config/vax/tm-vax.h: Update copyright years.
11583         (REGISTER_NAMES): Remove.
11584         (REGISTER_NAME): Define.
11585         (REGISTER_BYTE): Use vax_register_byte.
11586         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11587         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11588         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11589
11590 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11591
11592         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11593         declaration
11594         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11595
11596 2002-04-21  David S. Miller  <davem@redhat.com>
11597
11598         * arch-utils.c (generic_prologue_frameless_p): Kill
11599         SKIP_PROLOGUE_FRAMELESS_P code.
11600         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11601         references.
11602         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11603         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11604         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11605         references.
11606         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11607         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11608         (sparc_gdbarch_init): Pass it to
11609         set_gdbarch_prologue_frameless_p.
11610
11611 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11612
11613         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11614         (alphabsd-nat.o): New dependency list.
11615
11616 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11617
11618         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11619         alphafbsd-tdep.c.
11620         (alpha-linux-tdep.o): New dependency list.
11621         (alphafbsd-tdep.o): Likewise.
11622
11623 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11624
11625         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11626         to here...
11627         * alpha-tdep.c: ...from here.
11628         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11629
11630 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11631
11632         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11633         prototype from here...
11634         * alpha-tdep.h: ...to here.
11635
11636 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11637
11638         * frame.h (selected_frame_level): Document as deprecated.
11639         (frame_relative_level): Declare.
11640         * stack.c (frame_relative_level): New function.
11641         (selected_frame_level): Document as deprecated.
11642         (select_frame): Do not set the selected_frame_level.
11643
11644         * stack.c (frame_info, record_selected_frame): Update.
11645         (frame_command, current_frame_command): Update.
11646         (up_silently_base, up_command, down_silently_base): Update.
11647         (down_command): Update.
11648         * inflow.c (kill_command): Update.
11649         * tracepoint.c (finish_tfind_command): Update.
11650         * corelow.c (core_open): Update.
11651         * thread.c (info_threads_command): Update.
11652         (do_captured_thread_select): Update.
11653         * infcmd.c (finish_command): Update.
11654         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11655
11656 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11657
11658         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11659
11660 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11661
11662         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11663         type const.
11664
11665 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11666
11667         * alphafbsd-tdep.c: Update copyright years.  Include
11668         alpha-tdep.h.
11669         (alphafbsd_use_struct_convention): Make static.
11670         (alphafbsd_init_abi): New function.
11671         (_initialize_alphafbsd_tdep): New function.
11672         * config/alpha/tm-fbsd.h: Update copyright years.
11673         (USE_STRUCT_CONVENTION): Remove.
11674
11675 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11676
11677         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11678         an Alpha ABI variant.
11679         (alpha_abi_handler_list): Declare.
11680         (alpha_gdbarch_register_os_abi): New function.
11681         (alpha_gdbarch_init): Give registered ABI variant handlers a
11682         chance to tweak the gdbarch once we have set up defaults.
11683         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11684
11685 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11686
11687         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11688         to standard_coerce_float_to_double.
11689         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11690
11691 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11692
11693         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11694         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11695         from gdbarch_tdep rather than a constant.
11696         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11697         the default text address for all Alpha Unix ABIs.
11698         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11699         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11700
11701 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11702
11703         * alpha-tdep.h: New file.  Includes several Alpha target constants
11704         taken from...
11705         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11706         let gdbarch deal with.
11707         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11708         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11709         to dependency list.
11710         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11711         Alpha target register names.
11712         * alphabsd-nat.c: Likewise.
11713         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11714         Alpha target register names.  Make serveral routines static.
11715         (alpha_get_saved_register): New function.
11716         (alpha_abi_names): New.
11717         (process_note_abi_tag_sections): New function.
11718         (get_elfosabi): New function.
11719         (alpha_gdbarch_init): New function.
11720         (alpha_dump_tdep): New function.
11721         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11722
11723 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11724
11725         * frame.c (find_saved_register): Delete #ifdef
11726         HAVE_REGISTER_WINDOWS code.
11727         * config/sparc/tm-sparc.h: Update comments.
11728         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11729
11730 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11731
11732         * i960-tdep.c (i960_find_saved_register): New function.
11733         (i960_get_saved_register): New function.
11734         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11735         (i960_get_saved_register): Declare.
11736         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11737
11738 2002-04-20  David S. Miller  <davem@redhat.com>
11739
11740         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11741
11742 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11743
11744         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11745         instead of NUM_PSEUDO_REGS.
11746
11747 2002-04-20  David S. Miller  <davem@redhat.com>
11748
11749         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11750         GDB_MULTI_ARCH_PARTIAL
11751         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11752         define, let tm-sp64.h do it.
11753
11754 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11755
11756         * frame.c (find_saved_register): Avoid a NULL pointer
11757         dereference and actually walk the frame list.
11758
11759 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11760
11761         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11762         sorted in most most-recent-used order.  Document.
11763         * gdbarch.h, gdbarch.c: Regenerate.
11764
11765 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11766
11767         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11768         instead of ->prev.
11769         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11770         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11771         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11772         instead of ->prev.
11773
11774 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11775
11776         Fix PR gdb/471.
11777         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11778         (build_builtin_type_vec128): Ditto.
11779         (append_composite_type_field): Fix calculation of type length in
11780         union case.
11781
11782 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11783
11784         * config/djgpp/README: Update.
11785
11786         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11787         compiler warnings.
11788
11789 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11790
11791         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11792         (alpha_setup_arbitrary_frame): ...to this.
11793         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11794         for alpha_setup_arbitrary_frame.
11795
11796 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11797
11798         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11799         * gdbarch.h, gdbarch.c: Regenerate.
11800
11801         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11802         * target.h (memory_breakpoint_from_pc): Update declaration.
11803         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11804
11805         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11806         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11807         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11808         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11809         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11810         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11811         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11812         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11813         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11814         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11815         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11816         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11817
11818         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11819         const pointer.
11820         * monitor.c (monitor_insert_breakpoint): Ditto.
11821         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11822
11823         * config/mcore/tm-mcore.h: Update copyright.
11824         * mem-break.c: Ditto.
11825         * xstormy16-tdep.c: Ditto.
11826
11827 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11828
11829         * p-exp.y: Add precedence rule for '^' token.
11830         This removes the shift/reduce conflicts.
11831         Remove the comment concerning these shift/reduce conflicts.
11832
11833 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11834
11835         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11836         (registers_powerpc_nofp): New register set for processors
11837         without floating point unit.
11838
11839 2002-04-18  David S. Miller  <davem@redhat.com>
11840
11841         * MAINTAINERS: Add myself to write-after-approval.
11842
11843 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11844
11845         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11846
11847 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11848
11849         * rs6000-tdep.c (frame_initial_stack_address): Use
11850         frame_register_read to read the alloca_reg.
11851
11852 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11853
11854         * frame.c (find_saved_register): Find saved registers in the next
11855         not prev frame.
11856         Fix PR gdb/365.
11857
11858 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11859
11860         * gdbarch.sh (LANG): Set to ``c''.
11861
11862 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11863
11864         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11865
11866 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11867
11868         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11869         Update copyright.
11870
11871         * hpread.c (hpread_get_lntt): Add declaration.
11872         Also fix PR gdb/391.
11873
11874 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11875
11876         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11877         * aclocal.m4, configure: Re-generate.
11878         Fix PR gdb/391.
11879
11880 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11881
11882         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11883         instead of tm_print_insn.
11884
11885 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11886
11887         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11888
11889 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11890
11891         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11892         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11893         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11894
11895 2002-04-12  Don Howard  <dhoward@redhat.com>
11896
11897         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11898         max_user_call_depth.
11899         (init_cmd_lists): Initialize the new value;
11900         * cli/cli-script.c (execute_user_command): Limit the call depth of
11901         user defined commands.  This avoids a core-dump when user commands
11902         are infinitly recursive.
11903
11904 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11905
11906         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11907         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11908         from tdep struct instead of DEFAULT_LR_SAVE.
11909         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11910         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11911         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11912
11913 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11914
11915         * Remote.c: Spelling fix.
11916         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11917         If no symbol found for "sbrk", try "_sbrk".
11918         (make_output_phdrs): Use bfd_section_name.
11919         (gcore_copy_callback): Use bfd_section_name.
11920         * eval.c: Indentation fix-ups.
11921         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11922         in case it gets applied to an address that is already
11923         in the instruction space.
11924         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11925         * symfile.c: Fix indentation, long lines.
11926         * source.c: White space fix-up.
11927
11928 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11929
11930         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11931         * frame.c (frame_register_read): New function.  Return non-zero on
11932         success.
11933         (read_relative_register_raw_bytes_for_frame): Delete.
11934         (read_relative_register_raw_bytes): Delete.
11935         * frame.h (frame_register_read): Declare.
11936         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11937         * sh-tdep.c: Ditto.
11938         * infcmd.c (do_registers_info): Ditto.
11939         * hppa-tdep.c: Ditto.
11940         * rs6000-tdep.c: Ditto.
11941         * h8500-tdep.c: Ditto.
11942         * mips-tdep.c: Ditto.
11943         * h8300-tdep.c: Ditto.
11944         * z8k-tdep.c: Ditto.
11945
11946 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11947
11948         From Jimi X <jimix@watson.ibm.com>:
11949         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11950         64-bit SysV ABI.
11951
11952 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11953
11954         From Jimi X <jimix@watson.ibm.com>:
11955         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11956         bfd info.
11957
11958 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11959
11960         From Jimi X <jimix@watson.ibm.com>:
11961         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11962         register sets for these processor variants.
11963
11964 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11965
11966         * regformats/reg-ppc.dat: Support FPSCR.
11967
11968 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11969
11970         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11971         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11972         Add fpscr as an invalid/unfetchable register.
11973         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11974         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11975         (fill_fpregset): Add support for register fpscr.
11976         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11977         (fill_gregset): Account for the fact that register ``mq'' might
11978         not exist.
11979         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11980         (registers_power): Add fpscr to register set at slot 71.
11981         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11982         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11983
11984 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11985
11986         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11987         * configure: Regenerate.
11988         * config.in: Regenerate.
11989         * acconfig.h: Add define for _SYSCALL32.
11990         * core-sol2.c: Remove #define _SYSCALL32.
11991         * solib-legacy.c: Remove #define _SYSCALL32.
11992
11993 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11994
11995         * stack.c (select_frame): Cleanup internal error message, do not
11996         use %p.
11997
11998 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11999
12000         * stack.c (select_frame): Check that selected_frame and the
12001         specified level are as expected.
12002         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
12003         Update copyright.
12004         * frame.h (struct frame_info): Add field `level'.  Update
12005         copyright.
12006         Work-in-progress PR gdb/464.
12007
12008 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
12009
12010         * maint.c (maint_print_section_info): Rename print_section_info.
12011         (print_bfd_section_info, print_objfile_section_info): Update.
12012         * inferior.h (struct gdbarch): Add opaque declaration.
12013         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
12014         * gdbarch.h: Regenerate.
12015
12016 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
12017
12018         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
12019         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
12020         (kernel_u_size): Added.
12021         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
12022         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
12023
12024 2002-04-04  Jim Ingham  <jingham@apple.com>
12025
12026        * valarith.c (find_size_for_pointer_math): New function, either returns
12027        the size for a pointer's target, returns 1 for void *, or errors for
12028        incomplete types.
12029        (value_add, value_sub): use find_size_for_pointer_math.
12030
12031 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12032
12033         * linux-low.c (linux_look_up_symbols): New hook.
12034         (linux_target_ops): Add linux_look_up_symbols.
12035         * remote-utils.c (decode_address): New function.
12036         (look_up_one_symbol): New function.
12037         * server.c (handle_query): Call target look_up_symbols hook.
12038         * server.h (look_up_one_symbol): Add prototype.
12039         * target.h (struct target_ops): Add look_up_symbols hook.
12040
12041 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
12042
12043         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12044         override FP_REGNUM with frame->fp.  Update copyright.
12045         * parse.c (num_std_regs, std_regs): Delete.
12046         (target_map_name_to_register): Do not search std_regs.  Update
12047         function description.
12048         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12049         declarations.  Update copyright.
12050         Fix PR gdb/251.
12051
12052 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
12053
12054         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12055         after the last symbol in a block.
12056
12057 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
12058
12059         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12060         is non zero as a found symbol.
12061
12062 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12063
12064         * findvar.c: Include "builtin-regs.h".
12065         (value_of_register): Call value_of_builtin_reg when applicable.
12066         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12067         (target_map_name_to_register): Call
12068         builtin_reg_map_name_to_regnum.
12069         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12070         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12071         (builtin_regs_h): Define.
12072         (builtin-regs.o): New target.
12073         (findvar.o): Add $(builtin_regs_h).
12074         * builtin-regs.c, builtin-regs.h: New files.
12075         * std-regs.c: New file.
12076         Partial fix for PR gdb/251.
12077
12078 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12079
12080         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12081         it's no longer required.
12082
12083 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
12084
12085         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12086
12087 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12088
12089         From Jimi X <jimix@watson.ibm.com>:
12090         * rs6000-tdep.c (rs6000_software_single_step): Use
12091         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12092         and size.  Use target_insert_breakpoint() and
12093         target_remove_breakpoint() to insert and remove breakpoints
12094         instead of explicit memory reads and writes.
12095
12096 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12097
12098         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12099         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12100         ELF_OBJECT_FORMAT ifdef.
12101
12102 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12103
12104         From Jimi X <jimix@watson.ibm.com>:
12105         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12106
12107 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12108
12109         From Jimi X <jimix@watson.ibm.com>:
12110         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12111         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12112
12113 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12114
12115         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12116         s/asprintf/xasprintf/.
12117         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12118
12119 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12120
12121         I believe Jeff Law denies responsability for this one:
12122         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12123         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12124         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12125         Work-around for PR gdb/366.
12126
12127 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12128
12129         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12130         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12131         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12132
12133 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12134
12135         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12136         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12137         information.
12138
12139 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12140
12141         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12142         maintainer.
12143
12144 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12145
12146         * README (Reporting Bugs in GDB): Document the bug web page as the
12147         prefered way of submitting bugs.
12148         Fix PR gdb/402.
12149
12150 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12151
12152         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12153         -1.  Update comment.
12154         * gdbarch.h, gdbarch.c: Re-generate.
12155
12156 2002-04-07  Andreas Schwab  <schwab@suse.de>
12157
12158         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12159         buffer to regcache_collect.
12160
12161 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12162
12163         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12164         * gdbarch.c, gdbarch.h: Re-generate.
12165
12166 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12167
12168         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12169         declaration.  Fix -Werror.
12170
12171 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12172
12173         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12174         * gdbarch.c: Regenerate.
12175
12176 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12177
12178         * breakpoint.c (clear_command): Rewrite middle section to
12179         combine two loops with identical control conditions.
12180         Add a cleanup to eliminate a memory leak.
12181         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12182
12183 2002-04-05  H.J. Lu  (hjl@gnu.org)
12184
12185         * solib-svr4.c (bkpt_names): Add "__start".
12186
12187 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12188
12189         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12190         as test for 64 bit target.
12191
12192 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12193
12194         * h8500-tdep.c (h8500_write_fp): Delete function.
12195         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12196         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12197         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12198         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12199         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12200         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12201         (s390_write_fp):
12202         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12203         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12204         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12205         (d10v_write_fp): Delete function.
12206         * inferior.h (write_fp, generic_target_write_fp): Delete
12207         declarations.
12208         * regcache.c (generic_target_write_fp): Delete function.
12209         (write_fp): Delete function.
12210         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12211         * gdbarch.h, gdbarch.c: Regenerate.
12212         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12213         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12214         (sparc64_write_fp): Delete declaration.
12215         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12216         (h8500_write_fp): Delete declaration.
12217
12218 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12219
12220         * sparc-tdep.c (sparc64_write_fp): Delete.
12221         (sparc_push_dummy_frame): Replace write_fp call with code to store
12222         the FP directly.
12223         (sparc_gdbarch_init): Do not initialize write_fp.
12224
12225 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12226
12227         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12228         clause.
12229
12230 2002-03-29  Jim Blandy  <jimb@redhat.com>
12231
12232         * stack.c (get_selected_block): Add new argument `addr_in_block',
12233         used to return the exact code address we used to select the block,
12234         not just the block.
12235         * blockframe.c (get_frame_block, get_current_block): Same.
12236         * frame.h (get_frame_block, get_current_block,
12237         get_selected_block): Update declarations.
12238         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12239         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12240
12241 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12242
12243         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12244         warning message.
12245
12246 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12247
12248         * utils.c (xfullpath): New function.
12249         * defs.h (xfullpath): Add declaration.
12250         * source.c (openp): Use xfullpath in place of gdb_realpath to
12251         avoid resolving the basename part of filenames when the
12252         associated file is a symbolic link. This fixes a potential
12253         inconsistency between the filenames known to GDB and the
12254         filenames it prints in the annotations.
12255         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12256         to be able to match a filename with either the real filename, or
12257         the name of any symbolic link to this file.
12258         (lookup_partial_symtab): Ditto.
12259
12260 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12261
12262         * breakpoint.c: Add support for hardware breakpoints in overlays.
12263         (overlay_events_enabled): New state variable.
12264         (insert_breakpoints): Use overlay_events_enabled to decide
12265         whether to attempt to set a breakpoint at the overlay load addr.
12266         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12267         (remove_breakpoint): Use overlay_events_enabled to decide
12268         whether breakpoints need to be removed from overlay load addr.
12269         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12270         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12271         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12272         disable_overlay_breakpoints): Update overlay_events_enabled.
12273
12274 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12275
12276         * dwarf2read.c (struct function_range): New.
12277         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12278         (check_cu_functions): New.
12279         (read_file_scope): Initialize global function lists.
12280         Call dwarf_decode_line after processing children.
12281         (read_func_scope): Add to global function list.
12282         (dwarf_decode_lines): Call check_cu_functions everywhere
12283         record_line is called.  Call record_line with a linenumber
12284         of 0 to mark sequence ends.
12285
12286 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12287
12288         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12289         change sync with glibc.
12290
12291 2002-04-03  Jim Blandy  <jimb@redhat.com>
12292
12293         * configure.in: Call AC_C_INLINE.
12294         * configure: Regenerated.
12295
12296 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12297
12298         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12299         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12300
12301 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12302
12303         * NEWS: Mention gcore support on FreeBSD/i386.
12304
12305         * fbsd-proc.c: New file.
12306         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12307         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12308
12309         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12310         while statement.
12311
12312 2002-03-29  Jim Blandy  <jimb@redhat.com>
12313
12314         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12315         unescaped newlines in string literals, but newer ones don't.  So
12316         escape them.
12317
12318 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12319             Andrew Cagney <cagney@redhat.com>
12320
12321         * cli/cli-dump.c: New file.  Dump memory to file,
12322         restore file to memory.
12323         * cli/cli-dump.h: New file.
12324         * Makefile.in: Add rules, dependencies for cli-dump.o.
12325         * NEWS: Mention new commands.
12326
12327 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12328
12329         * symfile.c (symbol_file_add): Move test for null symbols to later.
12330
12331 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12332
12333         From veksler at il.ibm.com:
12334         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12335         the xstrduped original path.
12336         Fix PR gdb/417.
12337
12338 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12339
12340         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12341         * infcmd.c (_initialize_infcmd): Ditto.
12342         * language.c (_initialize_language): Ditto.
12343         * symfile.c (_initialize_symfile): Ditto.
12344         * top.c (_init_main): Ditto.
12345         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12346
12347 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12348
12349         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12350         vector registers handling.
12351         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12352         fields of frame data.
12353         (frame_get_saved_regs): Fill in information for AltiVec registers.
12354
12355 2002-03-27  Jim Blandy  <jimb@redhat.com>
12356
12357         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12358         a function; leave this macro here to invoke that function.
12359         (symbol_init_mangled_name): Declaration for that function.
12360         * symtab.c (symbol_init_mangled_name): New function.
12361
12362 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12363
12364         * valarith.c: Replace strerror with safe_strerror.
12365         * tracepoint.c: Ditto.
12366         * lin-lwp.c: Ditto.
12367         * go32-nat.c: Ditto.
12368         * inflow.c: Ditto.
12369         * gnu-nat.c: Ditto.
12370
12371 2002-03-27  Andreas Schwab  <schwab@suse.de>
12372
12373         * event-top.c (command_line_handler): Remove useless if.
12374
12375 2002-03-27  Andreas Jaeger  <aj@suse.de>
12376
12377         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12378         comment.
12379
12380 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12381
12382         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12383         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12384         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12385         (x86_64_linux_dr_get_status, supply_gregset),
12386         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12387         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12388         (x86_64_register_info_table): Add.
12389         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12390         (x86_64_register_raw_size, x86_64_register_virtual_type),
12391         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12392         general x86_64_register_info_table.
12393         (i386_gdbarch_init): gdbarch_register_bytes is now set
12394         dynamicaly during initialization.
12395         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12396         * gdbserver/linux-x86-64-low.c: Ditto.
12397
12398 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12399
12400         * gdbserver/server.c (main): Call target_signal_to_host_p
12401         and target_signal_to_host on signals received from the remote.
12402         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12403         target_signal_from_host on signals sent to the remote.
12404         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12405         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12406
12407 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12408
12409         * signals/signals.c: Include "server.h" in gdbserver build.
12410         (target_signal_from_name): Don't use STREQ.
12411         (_initialize_signals): Likewise.  Don't include function in
12412         gdbserver build.
12413
12414 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12415
12416         * signals.c: Moved to...
12417         * signals/signals.c: Here.
12418         * Makefile (signals.o): Update.
12419
12420 2002-03-26  Jeff Law (law@redhat.com)
12421
12422         * somread.c (som_symtab_read): Remove some commented out code and
12423         updated related comments.  Do not set the minimal symbol table to
12424         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12425         in a dynamic executable.
12426         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12427         where we are unable to find the minimal symbol for the given
12428         PC value.
12429
12430 2002-03-25  Jeff Law (law@redhat.com)
12431
12432         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12433
12434 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12435
12436         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12437
12438 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12439
12440         * command.h: Update copyright.
12441         (struct cmd_list_element): Replace definition with opaque
12442         declaration.
12443         (enum cmd_types): Document that it will eventually be moved to
12444         cli/cli-decode.h
12445         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12446         (MALLOCED_REPLACEMENT): Delete macro.
12447         * Makefile.in (cli_decode_h): Add $(command_h).
12448         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12449         * top.c: Include "cli/cli-decode.h".
12450         * completer.c: Include "cli/cli-decode.h".
12451         * maint.c: Include "cli/cli-decode.h".
12452         * cli/cli-decode.h: Include "command.h".
12453         (enum command_class): Delete.
12454         (enum cmd_types): Comment out.
12455         (enum cmd_auto_boolean): Delete.
12456         (enum var_types): Delete.
12457
12458 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12459
12460         * cli/cli-decode.c: Include "gdb_assert.h".
12461         (add_set_or_show_cmd): New static function.
12462         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12463         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12464         all fields, such as func, from the set command.
12465
12466 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12467
12468         * MAINTAINERS (sh-elf): Change warning flag to -w.
12469
12470 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12471
12472         * defs.h (error): Add printf format attribute.
12473         * thread-db.c (thread_from_lwp): Fix error format string.
12474         * stack.c (parse_frame_specification): Ditto.
12475         * cli/cli-decode.c (undef_cmd_error): Ditto.
12476         * scm-lang.c (scm_lookup_name): Ditto.
12477         * tracepoint.c (trace_error): Ditto.
12478         * remote-utils.c (usage): Ditto.
12479         * remote.c (compare_sections_command): Ditto.
12480         Fix PR gdb/328.
12481
12482 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12483
12484         * gdbtypes.c (append_composite_type_field): New function.
12485         (init_composite_type): New function.
12486         * gdbtypes.h (append_composite_type_field): Declare.
12487         (init_composite_type): Ditto.
12488
12489 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12490
12491         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12492         function.
12493         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12494         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12495         structure returning convention for SYSV ABI case, but not
12496         for GNU/Linux, FreeBSD, or NetBSD.
12497
12498 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12499
12500         * symtab.h (lookup_block_symbol): Add mangled_name argument
12501         to prototype.
12502
12503         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12504         with new mangled_name argument.
12505         * linespec.c (decode_line_1): Likewise.
12506         * valops (value_of_this): Likewise.
12507         * symtab.c (lookup_transparent_type): Likewise.
12508         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12509         (lookup_symbol): If we are given a mangled name, pass it down
12510         to lookup_symbol_aux.
12511         (lookup_block_symbol): If we are given a mangled name to check
12512         against, only return symbols which match it.
12513
12514 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12515
12516         * win32-nat.c (child_create_inferior): Check for proper shell to use
12517         here, in case the user changes it on the fly.
12518         (_initialize_inftarg): Remove shell path considerations.
12519
12520 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12521
12522         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12523         for gdbarch_max_register_raw_size and max_register_virtual_size.
12524         Adjust copyright year.
12525
12526 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12527
12528          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12529          in a function to cover the entire beginning of the function
12530          as well if it does not already.
12531
12532 2002-03-21  Tom Rix  <trix@redhat.com>
12533
12534         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12535         (rs6000_ptrace64): Renamed from ptrace64.
12536
12537 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12538
12539         * gdbserver/remote-utils.c (remote_open): Don't call
12540         getprotobyname, we're all using TCP here so just use
12541         IPPROTO_TCP.
12542         * gdbserver/gdbreplay.c (remote_open): Ditto.
12543
12544 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12545
12546         * regcache.c (_initialize_regcache): No need to call
12547         build_regcache() at this time; it gets called whenever
12548         the gdbarch changes.
12549
12550 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12551
12552         * sparc-nat.c:  Include sys/param.h where possible.
12553
12554 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12555
12556         Fix PR gdb/422.
12557         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12558         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12559         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12560         complex types.
12561         * stabsread.c (rs6000_builtin_type): Likewise.
12562         (read_sun_floating_type): Likewise.
12563
12564 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12565
12566         * stabsread.c (read_member_functions): Remove skip code for duplicate
12567         constructor/destructor methods.  Use standard parsing for these
12568         methods and just do not chain them to the list of methods after
12569         parsing.
12570
12571 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12572
12573         * coffread.c: Remove redundant static declarations.  Replace
12574         occurrences of `PTR' with `void *'.
12575         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12576         * top.h (quit_cover): Likewise.
12577         * defs.h (catch_errors): Likewise.
12578
12579 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12580
12581         * defs.h (XMALLOC): Define.
12582         * gdb-events.sh (XMALLOC): Delete macro.
12583         * gdb-events.c, gdb-events.h: Regenerate.
12584         * gdbarch.sh (XMALLOC): Delete macro.
12585         * gdbarch.c: Regenerate.
12586         * serial.c (XMALLOC): Delete macro.
12587         * ui-file.c (XMALLOC): Ditto.
12588         * ser-unix.h (XMALLOC): Ditto.
12589         * sh-tdep.c (XMALLOC): Ditto.
12590         * ui-out.c (XMALLOC): Ditto.
12591         * utils.c (XMALLOC): Ditto.
12592         * i386-tdep.c (XMALLOC): Ditto.
12593         * gdb-events.c (XMALLOC): Ditto.
12594         * d10v-tdep.c (XMALLOC): Ditto.
12595         * cli-out.c (XMALLOC): Ditto.
12596
12597         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12598         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12599         * ui-file.c, ui-out.c: Ditto.
12600
12601 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12602
12603         * command.h (struct cmd_list_element): Add field context.
12604         (set_cmd_context, get_cmd_context): Declare.
12605         * cli/cli-decode.h: Ditto.
12606         * cli/cli-decode.c (get_cmd_context): New function.
12607         (set_cmd_context): New function.
12608         (add_cmd): Initialize context.
12609         Part of fixing PR gdb/145 and PR gdb/146.
12610
12611 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12612
12613         * cli/cli-decode.c (cmd_type): New function.
12614         * command.h (cmd_type): Declare.
12615         * infrun.c (set_schedlock_func): Call function cmd_type.
12616         * kod.c (kod_set_os): Call cmd_type.
12617         * cris-tdep.c (cris_version_update): Use function cmd_type.
12618         (cris_mode_update, cris_abi_update): Ditto.
12619
12620         * command.h: (execute_cmd_post_hook): Declare.
12621         (execute_cmd_pre_hook): Declare.
12622         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12623         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12624         functions. Execute pre/post hook while ensuring that afterwords
12625         hook_in is cleared.
12626         * top.c (execute_command): Use execute_cmd_post_hook, and
12627         execute_cmd_pre_hook to execute pre/post commands.
12628         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12629         hook_stop_stub.
12630         (hook_stop_stub): Call execute_cmd_pre_hook.
12631
12632 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12633
12634         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12635         set'' and this leads to a core dump.  Move xstrdup of
12636         operating_system to after check that it is not NULL.
12637
12638 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12639
12640         * kod.c (kod_set_os): Remove unnecessary check that
12641         ``command->type'' is set_cmd.
12642
12643         * valprint.c (set_input_radix): Use input_radix.
12644         (set_output_radix): Use output_radix.
12645         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12646         isn't reverted.
12647
12648 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12649
12650         * value.h (struct value): Delete field ``substring_addr''.  Change
12651         aligner fields to force_doublest_align, force_longest_align,
12652         force_core_addr_align and force_pointer_aligh.
12653
12654         * value.h (struct value): Fix typo in above change.
12655
12656 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12657
12658         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12659         to fix internal_error from ``maintenance print architecture''.
12660
12661 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12662
12663         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12664         for gcc versions after gcc-2.8.1.
12665
12666 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12667
12668         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12669         for method resolution.  Restore adjustment of ``this'' pointer after
12670         calling value_struct_elt, which was accidentally removed during the
12671         HP merge.
12672
12673 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12674
12675         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12676         value_of_register.
12677         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12678         get_saved_register.
12679         * value.h (value_of_register): Update.
12680
12681 2002-03-14  Richard Henderson  <rth@redhat.com>
12682
12683         * configure.in: Detect declaration for canonicalize_file_name.
12684         * utils.c (canonicalize_file_name): Declare, if needed.
12685         (gdb_realpath): Prefer realpath if available and usable.
12686         * config.in, configure: Rebuild.
12687
12688 2002-03-14  Richard Henderson  <rth@redhat.com>
12689
12690         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12691         a constant array bound.
12692
12693         * MAINTAINERS: Add myself to write-after-approval.
12694
12695 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12696
12697         * symfile.c (syms_from_objfile): Return immediately if no syms.
12698         (symbol_file_add): Return immediately if no syms.
12699         (find_sym_fns): Return immediately if no syms.
12700
12701 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12702
12703         * gdbserver/remote-util.c (remote_open): Print remote-side's
12704         IP address when remote debugging over the network.
12705
12706 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12707
12708         * config/sparc/fbsd.mh: Fix copyright.
12709         * config/sparc/fbsd.mt: Likewise.
12710
12711 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12712
12713         * MAINTAINERS: Fix typo in name of gdb warnings option.
12714         (x86-64): Fix formating so that this can be parsed by awk.
12715
12716 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12717
12718         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12719         * defs.h: Include "gdb/signals.h".
12720         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12721
12722 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12723
12724         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12725         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12726         from x86-64-tdep.h
12727
12728 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12729             Don Howard <dhoward@redhat.com>
12730
12731         * mips-tdep.c (ST0_FR): Define.
12732         (mips2_fp_compat): New function, temporarily disabled.
12733         (mips_read_fp_register_single): New function.
12734         (mips_read_fp_register_double): New function.
12735         (mips_print_register): Use them.
12736         (do_fp_register_row): Likewise.
12737
12738 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12739
12740         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12741         approval''.
12742
12743 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12744
12745         * stabsread.c (read_member_functions): Fix is_stub test for
12746         static member functions, improve comment.
12747
12748 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12749
12750         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12751         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12752         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12753         commands that set boolean values.
12754         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12755         (arm_rdi_resume): Always initialize PC.
12756         (arm_rdi_open): Don't use rslt as a boolean.
12757         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12758         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12759         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12760         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12761
12762 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12763
12764         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12765         * configure: Rebuilt.
12766
12767 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12768
12769         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12770         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12771
12772 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12773
12774         * cli/cli-decode.c (set_cmd_completer): New function.
12775         * command.h (set_cmd_completer): Declare.
12776         * cli/cli-decode.h (set_cmd_completer): Ditto.
12777
12778         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12779         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12780         * win32-nat.c (_initialize_inftarg): Ditto.
12781         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12782         * proc-api.c (_initialize_proc_api): Ditto.
12783         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12784         * source.c (_initialize_source): Ditto.
12785         * exec.c (_initialize_exec): Ditto.
12786         * solib.c (_initialize_solib): Ditto.
12787         * top.c (init_main): Ditto.
12788         * tracepoint.c (_initialize_tracepoint): Ditto.
12789         * symfile.c (_initialize_symfile): Ditto.
12790         * printcmd.c (_initialize_printcmd): Ditto.
12791         * infcmd.c (_initialize_infcmd): Ditto.
12792         * corefile.c (_initialize_core): Ditto.
12793
12794 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12795
12796         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12797
12798 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12799
12800         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12801
12802 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12803
12804         * NEWS: Update headings, 5.2 has branched.
12805
12806 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12807
12808         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12809         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12810         (register_addr, REGISTER_RAW_SIZE): Likewise.
12811         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12812         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12813
12814 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12815
12816         * MAINTAINERS (x86-64): Add myself.
12817         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12818         changed value_ptr -> struct value *
12819
12820 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12821
12822         * configure.host (sparc64-*-freebsd): Add.
12823         * configure.tgt: Likewise.
12824         * config/sparc/fbsd.mh: New file.
12825         * config/sparc/fbsd.mt: Likewise.
12826         * config/sparc/nm-fbsd.h: Likewise.
12827         * config/sparc/tm-fbsd.h: Likewise.
12828
12829 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12830
12831         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12832         regformats/reg-s390x.dat.
12833
12834 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12835
12836         * utils.c: Add FIXME explaining true/false problem.
12837
12838 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12839
12840         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12841
12842 2002-02-28  Michael Chastain  <mec@shout.net>
12843
12844         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12845
12846 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12847
12848         * gdbserver/linux-s390-low.c: New file.
12849         * regformats/reg-s390.dat: New file.
12850         * regformats/reg-s390x.dat: New file.
12851         * gdbserver/configure.srv: Add S/390.
12852         * gdbserver/Makefile.in: Add S/390.
12853         * configure.tgt: Enable gdbserver for S/390.
12854
12855 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12856
12857         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12858         first line of the doc string for "info dos", except at the end of
12859         the sentence, since the short help stops at the first period.
12860
12861 2002-02-28  Jason Merrill  <jason@redhat.com>
12862
12863         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12864
12865 2002-02-27  Fred Fish  <fnf@redhat.com>
12866
12867         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12868         comment (dumy -> dummy).
12869
12870 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12871
12872         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12873
12874 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12875
12876       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12877
12878 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12879
12880         * gdbserver/acconfig.h: New file.
12881         * gdbserver/i387-fp.c: New file.
12882         * gdbserver/i387-fp.h: New file.
12883         * gdbserver/linux-x86-64.c: New file.
12884         * regformats/reg-x86-64.dat: New file.
12885         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12886         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12887         * gdbserver/configure.in: Add support for regsets.
12888         * gdbserver/config.in: Regenerate.
12889         * gdbserver/configure: Regenerate.
12890         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12891         * gdbserver/linux-low.h: New file.
12892         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12893         for regsets.
12894         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12895         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12896         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12897         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12898         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12899         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12900         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12901         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12902         * gdbserver/regcache.c (supply_register): New function.
12903         (supply_register_by_name): New function.
12904         (collect_register): New function.
12905         (collect_register_by_name): New function.
12906
12907 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12908
12909         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12910         (config.status): Add configure.srv dependency.
12911         (server_h): Add config.h dependency.
12912
12913 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12914
12915         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12916         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12917         * gdbserver/configure.srv: Change i386-*-linux* to use
12918         reg-i386-linux.o.
12919
12920 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12921
12922         * x86-64-tdep.c: Re-indent.  Update copyright date.
12923
12924 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12925
12926         From Michal Ludvig <mludvig@suse.cz>:
12927         * x86-64-tdep.c (value.h): Delete.
12928         (gdb_assert.h): Include.
12929         (x86_64_register_convert_to_virtual,
12930         x86_64_register_convert_to_raw ): Add check which lets only
12931         floating-point values to be converted.
12932         (value_push): Delete.
12933         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12934         (i386_gdbarch_init): Number of register_bytes fixed.
12935
12936 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12937
12938         * MAINTAINERS: Add x86-64 target.
12939
12940 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12941
12942         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12943         * osfsolib.c (solib_map_sections): Ditto.
12944         * irix5-nat.c (solib_map_sections): Ditto.
12945         * corelow.c (gdb_check_format): Ditto.
12946         * symfile.c (symfile_bfd_open): Ditto.
12947         * solib.c (solib_map_sections): Ditto.
12948         Fix PR gdb/354.
12949
12950 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12951
12952         * remote.c (_initialize_remote): By default, disable ``e'' and
12953         ``E'' step out-of-range packets.
12954
12955 2002-02-26  Andreas Schwab  <schwab@suse.de>
12956
12957         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12958         m68k_linux_frame_saved_pc.
12959         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12960         in_sigtramp.
12961         (SIGCONTEXT_PC_OFFSET): Remove.
12962         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12963         m68k_linux_sigtramp_saved_pc): New functions.
12964         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12965         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12966         (UCONTEXT_PC_OFFSET): Define.
12967         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12968         non-RT and RT signal trampolines.
12969
12970 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12971
12972         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12973         (TARGET_NBPG, STACK_END_ADDR): Delete
12974         (VARIABLES_INSIDE_BLOCK): Delete.
12975
12976 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12977
12978         * utils.c (perror_with_name): Make string parameter constant.
12979         (print_sys_errmsg): Ditto.
12980         (query): Ditto.
12981         * defs.h (perror_with_name): Update.
12982         (print_sys_errmsg): Update.
12983         (query): Update.
12984
12985 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12986
12987         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12988         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12989
12990 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12991
12992         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12993         if it already matches the current architecture from the exec file.
12994         Include arch-utils.h for gdbarch_info_init prototype.
12995         * Makefile.in (rs6000-nat.o): Update dependencies.
12996
12997 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12998
12999         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
13000          list of exported variables.
13001
13002 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
13003
13004         * gdbserver/configure.srv: New file.
13005         * gdbserver/configure.in: Use configure.srv instead
13006         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
13007         from it.
13008         * gdbserver/configure: Regenerated.
13009         * gdbserver/terminal.h: New file.
13010         * gdbserver/Makefile.in: Update for configure changes.  Remove
13011         more unneeded include paths.
13012
13013 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
13014
13015         From wiz at danbala:
13016         * config/sparc/tm-sp64.h: Fix grammar and typos.
13017         Fix PR gdb/287.
13018
13019 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
13020
13021         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
13022         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
13023         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
13024         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
13025         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
13026         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13027         * s390-tdep.c: Ditto.
13028         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13029         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13030         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13031         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13032         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13033         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13034         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13035         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13036         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13037         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13038         Fix PR gdb/378.
13039
13040 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13041
13042         * lin-thread.c: Delete file.
13043         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13044         to gdb_proc_service.h.
13045         * configure: Re-generate.
13046
13047         * ocd.c (ocd_open): Do not try to open the "ocd" device.
13048         * serial.c (serial_open): Delete check for "ocd".
13049         Fix PR gdb/349.
13050
13051         * Makefile.in (linux-thread.o): Delete target.
13052         * linux-thread.c: Delete file.
13053
13054         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
13055         renamed SH files to be consistent.
13056
13057         * symtab.c (sort_search_symbols): Use xfree.
13058
13059 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13060
13061         * arm-linux-tdep.c (arm_linux_init_abi): Register
13062         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13063         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13064         definition with undef, since we don't want the sysvr4 definition.
13065         (SKIP_TRAMPOLINE_CODE): Likewise.
13066
13067 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13068
13069         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13070
13071         * configure.in: (AC_CHECK_FUNCS) Added test for
13072         canonicalize_file_name Regenerated.
13073         * config.in, configure: Regenerated.
13074         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13075         defined use canonicalize_file_name.
13076
13077 2002-02-23  Michael Chastain  <mec@shout.net>
13078
13079         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13080
13081 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13082
13083         * README: Remove references to cygnus.com.
13084         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13085         dot com'' form.  Remove references to cygnus.com and sourceware.
13086
13087 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13088
13089         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13090         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13091         1003.1-2001 no longer allows "head -1".
13092         * gdb/Makefile.in (version.c): Likewise.
13093         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13094         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13095         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13096
13097 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13098
13099         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13100         * command.h (cmd_cfunc_eq): Declare.
13101         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13102
13103         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13104         ``struct cmd_list_element *''.
13105         * cli/cli-cmds.c (is_complete_command): Update.  Use
13106         cmd_cfunc_eq.
13107         * top.c (execute_command): Pass the command to
13108         is_complete_command.
13109         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13110
13111 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13112
13113         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13114         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13115         architecture defines.
13116         * s390-tdep.c (s390_gdbarch_init): Likewise.
13117
13118 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13119
13120         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13121         (arm_linux_push_arguments): Likewise.
13122         (arm_linux_init_abi): Register them.  Also register linux-specific
13123         call_dummy_words.
13124         (find_minsym_and_objfile): Use strcmp, not STREQ.
13125         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13126         (arm_linux_call_dummy_words): Delete declaration.
13127         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13128         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13129         declarations.
13130         (LOWEST_PC): Delete.
13131
13132 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13133
13134         * maint.c (print_section_info): Do not prepend `0x' to filepos
13135         output, it will be handled by local_hex_string_custom.
13136
13137 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13138
13139         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13140         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13141         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13142
13143 2002-02-22  Jim Blandy  <jimb@redhat.com>
13144
13145         Indicate that the bcache functions don't change the strings
13146         they're passed.
13147         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13148         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13149
13150 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13151
13152         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13153
13154 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13155
13156         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13157         find the complete path to a loaded DLL.
13158
13159 2002-02-21  Fred Fish  <fnf@redhat.com>
13160
13161         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13162         that marks the end of the range of a function, enter a line number
13163         entry that has a line number of zero and a PC offset that matches
13164         the end of the function.  This starts a range of PC's for which no
13165         line number information is known.
13166         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13167         PC's for which no line number info is found (line number is zero)
13168         then we didn't find any valid line information.
13169         * symtab.h: Document use of zero line number entry.
13170
13171 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13172
13173         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13174         (have_ptrace_getvrregs): Define for run time checks.
13175         (gdb_vrregset_t): New type for Altivec register handling.
13176         (fetch_register, store_register): Fetch/store altivec register
13177         when needed.
13178         (fetch_altivec_register, store_altivec_register): New functions.
13179         (supply_vrregset, fill_vrregset): New functions.
13180         (fetch_altivec_registers, store_altivec_registers): New functions.
13181         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13182         registers as well.
13183
13184 2002-02-21  Jiri Smid  <smid@suse.cz>
13185
13186         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13187
13188 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13189
13190         * Makefile.in (armnbsd-nat.o): Update dependencies.
13191         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13192         supply the integer register set.
13193         (supply_fparegset): New function.  Similar for FPA registers.
13194         (fetch_regs, fetch_fp_regs): Use them.
13195         (fetch_core_registers): Likewise.
13196         (fetch_elfcore_registers): New function.
13197         (arm_netbsd_elfcore_fns): New core-file type specification.
13198         (_initialize_arm_netbsd_nat): Register it.
13199
13200 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13201
13202         * armnbsd-nat.c: Include gdbcore.h.
13203         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13204         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13205         'void' to declaration, to shut up ARI.
13206         (fetch_core_registers): Make static.  Rewrite using supply_register.
13207         (arm_netbsd_core_fns): New core-file type specification.
13208         (_initialize_arm_netbsd_nat): New function.
13209
13210 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13211
13212         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13213         value.
13214
13215 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13216
13217         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13218         fails.
13219
13220 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13221
13222         * jv-exp.y (parse_number): Change type of implicit longs
13223         to builtin_type_uint64.
13224
13225 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13226
13227         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13228         to be an integer instead of a `union wait'.
13229
13230 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13231
13232         * mips-linux-nat.c: Call the operating system GNU/Linux.
13233         * mips-linux-tdep.c: Likewise.
13234         * mips-tdep.c: Likewise.
13235
13236 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13237
13238         Fix PR gdb/265.
13239         * jv-exp.y (parse_number): Handle 64-bit integers.
13240
13241 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13242
13243         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13244         AC_STDC_HEADERS to AC_HEADER_STDC.
13245         * gdbserver/configure: Regenerated.
13246
13247 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13248
13249         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13250         is defined.
13251         * sparc-tdep.c (get_longjmp_target): Likewise.
13252
13253 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13254
13255         * News: Add news about ARM and Multi-arch.  Mention the new target
13256         arm*-*-netbsd*.
13257
13258 2002-02-19  Jim Blandy  <jimb@redhat.com>
13259
13260         * stabsread.c (error_type_complaint): Improve error message.
13261
13262 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13263
13264         * gdbserver/README: Update documentation.
13265         * gdbserver/configure.in: Update configury to match documentation.
13266         * gdbserver/Makefile.in: Likewise.
13267         * gdbserver/configure: Regenerated.
13268         * gdbserver/aclocal.m4: New file, generated by aclocal.
13269         * gdbserver/config.in: New file, generated by autoheader.
13270
13271 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13272
13273         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13274         armnbsd-nat.c.
13275
13276 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13277
13278         * arm-tdep.h (enum arm_float_model): New enum.
13279         (struct gdbarch_tdep): Add fp_model.
13280         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13281         up floating-point conversions until we know the floating-point model
13282         in use by the inferior.  Don't complain about being unable to
13283         determine the ABI of the inferior when we don't have one.
13284         (arm_extract_return_value): Support different floating-point models.
13285         (arm_store_return_value): Likewise.
13286         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13287         ARM_FLOAT_SOFT.
13288         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13289
13290 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13291
13292         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13293         of ``current_gdbarch''.
13294
13295 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13296
13297         * armnbsd-nat.c : ANSIfy all function declarations.
13298         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13299         (fetch_inferior_registers): Re-implement in terms of above.
13300         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13301         (store_inferior_registers): Re-implement in terms of above.
13302
13303 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13304
13305         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13306         kernel.
13307         * arm-linux-tdep.c: Likewise.
13308         * config/arm/tm-linux.h: Likewise.
13309
13310 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13311
13312         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13313         * config/arm/nbsd.mt (TM_FILE): Delete.
13314         * config/arm/tm-nbsd.h: Delete.
13315
13316 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13317
13318         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13319         Initialize CALL_DUMMY_LENGTH.
13320
13321 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13322
13323         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13324         function.
13325         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13326         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13327         defines one thing and that is incorrect for this port.
13328         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13329
13330 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13331
13332         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13333
13334 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13335
13336         * win32-nat.c (display_selector): New function. Displays information
13337         about the information returned by GetThreadSelectorEntry API function.
13338         (display_selectors): New function. Displays the infomation of
13339         the selector given as argument, or of CS, DS ans FS selectors
13340         if no argument is given.
13341         ( _initialize_inftarg): Add "w32" as info prefix command.
13342         Add "info w32 selector" as command calling display_selectors.
13343
13344 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13345
13346         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13347         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13348         if not defined.
13349
13350 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13351
13352         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13353
13354 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13355
13356         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13357         (arm_fix_call_dummy): Call it.
13358         (arm_call_dummy_breakpoint_offset): Delete.
13359         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13360         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13361
13362 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13363
13364         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13365         Default to func_frame_chain_valid.
13366         * gdbarch.h, gdbarch.c: Re-generate.
13367         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13368
13369 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13370
13371         * ppc-linux-nat.c: Update copyright.
13372         (fetch_register, store_register): Add tid parameter, don't compute
13373         tid here.
13374         (fetch_ppc_registers, store_ppc_registers): Add tid
13375         parameter. Pass it along to callees.
13376         (fetch_inferior_registers, store_inferior_registers): Compute tid
13377         here, and pass it to calleed functions.
13378         (fill_gregset, supply_fpregset): Clean up formatting.
13379
13380 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13381
13382         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13383         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13384
13385 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13386
13387         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13388         * gdbarch.c gdbarch.h: Regenerate.
13389         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13390         function.
13391         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13392         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13393         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13394
13395         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13396         * arm-tdep.c (arm_get_longjmp_target): New function.
13397         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13398         this to a positive value register arm_get_longjmp_target as the
13399         longjmp handler.
13400         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13401         (arm_linux_init_abi): Set up longjmp description in tdep.
13402         * armnbsd-nat.c (get_longjmp_target): Delete.
13403         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13404         description in tdep.
13405         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13406         (get_longjmp_target): Delete declaration.
13407         (GET_LONGJMP_TARGET): Delete.
13408         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13409         (GET_LONGJMP_TARGET): Delete.
13410
13411 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13412
13413         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13414         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13415         of ``current_gdbarch''.
13416
13417 2002-02-17  Tom Tromey  <tromey@redhat.com>
13418
13419         * cli/cli-cmds.c (compare_strings): New function.
13420         (complete_command): Only print each unique item once.
13421         * completer.h (complete_line): Declare.
13422         * completer.c (complete_line): New function.
13423         (line_completion_function): Use it.
13424
13425 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13426
13427         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13428         * gdbarch.h, gdbarch.c: Re-generate.
13429
13430 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13431
13432         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13433
13434 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13435
13436         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13437         * valops.c (value_arg_coerce): Don't take the address of a reference
13438         to convert an argument to a reference.
13439
13440 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13441
13442         * win32-nat.c (get_image_name): New function.
13443         (handle_load_dll): Use get_image_name function.
13444         (get_child_debug_event): Avoid registering debug events until possibly
13445         execed process is started.
13446         (child_create_inferior): Allow invocation via shell so that command
13447         line redirection, etc.  works ok.
13448         (_initialize_inftarg): Add new command: "set shell" to control whether
13449         a shell is used to start a process.
13450
13451 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13452
13453         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13454         instead of find_register_by_number.
13455         (cannot_store_register): Likewise.
13456
13457 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13458
13459         * dwarf2read.c: Replace fprintf (stderr, ...) by
13460         fprintf_unfiltered (gdb_stderr, ...).
13461
13462 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13463
13464         * gdbserver/gdbserver.1: Document --attach.
13465
13466 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13467
13468         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13469         descriptions.
13470         * arm-tdep.c (arm_default_arm_le_breakpoint)
13471         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13472         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13473         traditional breakpoint defines.
13474         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13475         (arm_gdbarch_init): Initialize new breakpoint variables.
13476         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13477         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13478         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13479         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13480         code out to ...
13481         (arm_netbsd_init_abi_common): ... here; new function.
13482         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13483         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13484         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13485         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13486
13487 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13488
13489         * arm-tdep.h (enum arm_abi): New enum.
13490         (struct gdbarch_tdep): New structure.
13491         (LOWEST_PC): Provide a default.
13492         (arm_gdbarch_register_os_abi): Declare new function.
13493         * arm-tdep.c (arm_abi_names): New array.
13494         (process_note_abi_tag_sections): New function.
13495         (get_elfosabi): New function.
13496         (arm_gdbarch_register_os_abi): New function.
13497         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13498         support for that ABI has been built in, then call the appropriate
13499         configuration routine.  Use gdbarch_num_regs() to get the number
13500         of registers.
13501         (arm_dump_tdep): New function.
13502         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13503         place-holder functions.
13504         (_initialize_arm_tdep): Register them.
13505         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13506
13507         * armnbsd-tdep.c: New file.
13508         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13509         * config/arm/nbsd.mt (TDEPFILES): Add it.
13510         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13511
13512         * armnbsd-nat.c: Include regcache.h.
13513         * Makefile.in (armnbsd-nat.o): Update dependency list.
13514
13515         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13516
13517 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13518
13519         * gdbserver/Makefile.in: Fix typos in target rules.
13520
13521 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13522
13523         Fix part of PR gdb/267.
13524         * linespec.c (find_methods): Handle constructors specially for now.
13525
13526 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13527
13528         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13529         handling.
13530         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13531         standard_coerce_float_to_double().
13532
13533 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13534
13535         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13536         GDBINIT_FILENAME.
13537
13538 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13539
13540         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13541         find_variant_by_name, because it confuses the multiarch
13542         framework. Return NULL if there isn't an architecture with the
13543         user supplied name, instead of forcing a different one without
13544         recording the change with the multiarch machinery.
13545         (find_variant_by_name): Delete.
13546
13547 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13548
13549         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13550         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13551
13552 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13553
13554         * stack.c (print_frame_info_base): When calling
13555         print_frame_info_listing_hook, set current_source_symtab.
13556
13557 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13558
13559         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13560         and remove unused $(INCLUDE_DIR).
13561         Add regcache.c to OBS.
13562         Add generated register protocol files to clean target.
13563         Update dependencies for new objects, obsolete old target code.
13564
13565         * gdbserver/linux-low.c: Remove all platform-specific code to
13566         new files.  Remove various dead code.  Update to use regcache
13567         functionality.
13568         * gdbserver/remote-utils.c (fromhex): Add return statement
13569         to quiet warning.
13570         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13571         constant.
13572         (input_interrupt): Add integer parameter to match prototype
13573         of a signal handler.
13574         (outreg): Use register_data ().
13575         (prepare_resume_reply): Use gdbserver_expedite_regs.
13576         * gdbserver/server.c (main): Dynamically allocate own_buf because
13577         PBUFSIZ is no longer constant.  Use registers_to_string () and
13578         registers_from_string ().
13579         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13580         for error (), fatal (), and warning ().  Update definition of
13581         PBUFSIZ to use regcache functionality.  Add include guard.
13582         * gdbserver/utils.c (fatal): Add missing ``const''.
13583         (warning): New function.
13584
13585         * regformats/regdat.sh: Include "regcache.h" in generated files.
13586         Provide init_registers () function.
13587         * regformats/regdef.h: Add prototype for set_register_cache ().
13588         Add include guard.
13589
13590         * gdbserver/linux-arm-low.c: New file.
13591         * gdbserver/linux-i386-low.c: New file.
13592         * gdbserver/linux-ia64-low.c: New file.
13593         * gdbserver/linux-m68k-low.c: New file.
13594         * gdbserver/linux-mips-low.c: New file.
13595         * gdbserver/linux-ppc-low.c: New file.
13596         * gdbserver/linux-sh-low.c: New file.
13597
13598         * gdbserver/regcache.c: New file.
13599         * gdbserver/regcache.h: New file.
13600
13601         * gdbserver/low-linux.c: Removed obsolete file.
13602
13603 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13604
13605         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13606         * config/i386/linux.mt: Likewise.
13607         * config/ia64/linux.mt: Likewise.
13608         * config/m68k/linux.mh: Likewise.
13609         * config/powerpc/linux.mh: Likewise.
13610         * config/mips/linux.mt: Likewise.
13611
13612         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13613
13614         * config/i386/i386lynx.mh: Mark gdbserver variables
13615         as (currently) obsolete for this target.
13616         * config/i386/nbsd.mt: Likewise.
13617         * config/i386/nbsdelf.mt: Likewise.
13618         * config/m32r/m32r.mt: Likewise.
13619         * config/m68k/m68klynx.mh: Likewise.
13620         * config/m68k/nbsd.mt: Likewise.
13621         * config/m68k/sun3os4.mh: Likewise.
13622         * config/mips/vr5000.mt: Likewise.
13623         * config/ns32k/nbsd.mt: Likewise.
13624         * config/pa/hppabsd.mh: Likewise.
13625         * config/pa/hppaosf.mh: Likewise.
13626         * config/powerpc/nbsd.mt: Likewise.
13627         * config/rs6000/rs6000lynx.mh: Likewise.
13628         * config/s390/s390.mt: Likewise.
13629         * config/s390/s390x.mt: Likewise.
13630         * config/sparc/sparclynx.mh: Likewise.
13631         * config/sparc/sun4os4.mh: Likewise.
13632         * config/i386/x86-64linux.mt: Likewise.
13633         * config/sparc/linux.mh: Likewise.
13634
13635 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13636
13637         * configure.tgt: Configure gdbserver only for known working
13638         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13639         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13640         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13641         * configure: Regenerated.
13642
13643 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13644
13645         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13646
13647         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13648         (default_gcore_mach): Just return 0, work around a problem in bfd.
13649         (default_gcore_target): OK to return NULL if exec_bfd is null.
13650         (make_mem_sec): Use a cast, avoid a warning.
13651
13652         * procfs.c (find_memory_regions_callback): Use a cast instead of
13653         calling host_pointer_to_address (which complains if
13654         sizeof (host pointer) != sizeof (target pointer)).
13655         (procfs_make_note_section): Avoid overflow in psargs string.
13656
13657         * procfs.c (procfs_make_note_section): Make the default
13658         implementation return an error.
13659
13660 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13661
13662         * procfs.c (procfs_make_note_section): Provide a default definition
13663         (for alpha-dec-osf4.0f). Fix typos.
13664
13665 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13666
13667         * linux-proc.c: Add include of regcache.h.
13668         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13669
13670 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13671
13672         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13673         * memattr.c (create_mem_region): Disallow useless empty region.
13674         Regions are half-open intervals, so allow [A..B) [B..C) as
13675         non-overlapping.
13676
13677 2002-02-13  Michael Chastain <mec@shout.net>
13678
13679         * defs.h: Kill CONST_PTR.
13680         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13681         * c-lang.c (c_builtin_types): Likewise.
13682         * ch-lang.c (ch_builtin_types): Likewise.
13683         * f-lang.c (f_builtin_types): Likewise.
13684         * language.c (unknown_builtin_types): Likewise.
13685         * m2-lang.c (m2_builtin_types): Likewise.
13686         * p-lang.c (pascal_builtin_types): Likewise.
13687         * scm-lang.c (c_builtin_types): Likewise.
13688
13689 2002-02-13  Keith Seitz  <keiths@redhat.com>
13690
13691         * arm-tdep.h (arm_get_next_pc): Add declaration.
13692
13693 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13694
13695         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13696         with other related struct-returning functions.
13697         (arm_extract_struct_value_address): New function.
13698         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13699         initialize float_format, double_format and long_double_format as
13700         appropriate to the endianness of the target.
13701         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13702         (arm_use_struct_convention): Delete declaration.
13703         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13704
13705 2002-02-13  Keith Seitz  <keiths@redhat.com>
13706
13707         * defs.h (core_addr_to_string_nz): New function.
13708
13709 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13710
13711         Apply missing bits of 2002-01-15 patch.
13712         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13713         (fill_fpregset): Use i387_fill_fsave.
13714
13715 2002-02-12  Keith Seitz  <keiths@redhat.com>
13716
13717         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13718         (core_addr_to_string_nz): New function.
13719
13720 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13721
13722         * arm-linux-nat.c: Really include arm-tdep.h.
13723         * config/arm/tm-linux.h (struct type, struct value): Declare.
13724
13725 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13726
13727         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13728         (gcore section): Ifdef for Solaris and Unixware only.
13729         (procfs_do_thread_registers): Unixware needs one lwpstatus
13730         per thread (not one prstatus or pstatus).
13731         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13732         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13733         once before iterating over threads.
13734
13735 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13736
13737         * arm-tdep.h: New file.
13738         * arm-tdep.c: Include arm-tdep.h.
13739         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13740         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13741         (arm_print_float_info, arm_register_type, convert_to_extended)
13742         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13743         (arm_extract_return_value, arm_register_name): Make static.
13744         (arm_software_single_step): Similarly.  Fix types in declaration.
13745         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13746         (arm_store_return_value, arm_store_struct_return): New functions.
13747         (arm_gdbarch_init): Register the above functions.  Also register
13748         call_dummy_start_offset, sizeof_call_dummy_words,
13749         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13750         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13751         max_register_virtual_size, register_size.  Set up
13752         prologue_cache.saved_regs here, rather than ...
13753         (_initialize_arm_tdep): ... here.
13754         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13755         declarations.
13756         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13757         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13758         (arm_print_float_info, arm_register_type, convert_to_extended)
13759         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13760         (arm_extract_return_value, arm_register_name): Delete declarations.
13761         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13762         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13763         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13764         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13765         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13766         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13767         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13768         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13769         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13770         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13771         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13772         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13773         interface.
13774         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13775         * remote-rdi.c remote-rdp.c: Likewise.
13776         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13777         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13778         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13779         definition.
13780
13781         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13782         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13783         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13784         from non-ARM_ prefixed definitions.
13785         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13786         all uses of above.
13787         * remote-rdi.c remote-rdp.c: Likewise.
13788         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13789
13790 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13791
13792         * arm-tdep.c (arm_frameless_function_invocation)
13793         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13794         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13795         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13796         (arm_pop_frame, arm_get_next_pc): Make static.
13797         (arm_gdbarch_init): Register above in gdbarch structure.
13798         (arm_read_fp): Renamed from arm_target_read_fp.
13799         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13800         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13801         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13802         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13803         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13804         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13805         (arm_pc_is_thumb_dummy): Delete declarations.
13806         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13807         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13808         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13809         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13810
13811 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13812
13813         * symtab.c (compare_search_syms): New function.
13814         (sort_search_symbols): New function.
13815         (search_symbols): Sort symbols after searching rather than
13816         before.
13817
13818 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13819
13820         * NEWS: Linux -> GNU/Linux.
13821
13822 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13823
13824         * gdbarch.sh: For for level one methods, disallow a definition
13825         when partially multi-arched.  Add comments explaining rationale.
13826         * gdbarch.h: Re-generate.
13827
13828 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13829
13830         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13831         multi-arch partial.
13832
13833 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13834
13835         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13836         field.  Use diff -u.
13837         * gdbarch.c: Re-generate.
13838
13839 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13840
13841         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13842         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13843         partial.
13844
13845 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13846
13847         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13848         multi-arch partial.
13849         (PUSH_ARGUMENTS): Switch to using predefault.
13850         * gdbarch.c: Regenerate.
13851
13852 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13853
13854         * valops.c (PUSH_ARGUMENTS): Delete definition.
13855         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13856         partial.  Default to default_push_arguments.
13857         * gdbarch.h, gdbarch.c: Regenerate.
13858
13859 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13860
13861         * defs.h (throw_exception): Rename return_to_top_level.  Update
13862         comments.
13863         * utils.c (error_stream, internal_verror, quit): Ditto.
13864         * top.c (throw_exception, catcher): Ditto.
13865         * sparclet-rom.c (sparclet_load): Ditto.
13866         * remote.c (interrupt_query, minitelnet): Ditto.
13867         * remote-sds.c (interrupt_query): Ditto.
13868         * remote-mips.c (mips_error, mips_kill): Ditto.
13869         * ocd.c (interrupt_query): Ditto.
13870         * monitor.c (monitor_interrupt_query): Ditto.
13871         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13872         * target.h: Update comment.
13873
13874         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13875
13876 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13877
13878         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13879         default_double_format.
13880         * gdbarch.h, gdbarch.c: Re-generate.
13881         * findvar.c (floatformat_unknown): Delete variable definition.
13882         * doublest.h (floatformat_unknown): Delete variable declaration.
13883
13884 2002-02-09  Jim Blandy  <jimb@redhat.com>
13885
13886         * stabsread.c (read_type): Add code to parse Sun's syntax for
13887         prototyped function types.
13888
13889 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13890
13891         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13892         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13893
13894 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13895
13896         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13897         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13898         now _initialize_xcoffsolib gets called again and overrides the
13899         commands from solib.c in a native configuration.
13900
13901 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13902
13903         * doublest.c (store_typed_floating): Don't try to return a value.
13904         Fixes PR gdb/290.
13905
13906 2002-02-08  Jim Blandy  <jimb@redhat.com>
13907
13908         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13909         is prototyped and has no arguments, print its argument list as
13910         `(void)'.
13911
13912 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13913
13914         * MAINTAINERS (write-after-approval): Add myself.
13915         (paper-trail): I've escaped!
13916
13917 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13918
13919         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13920         changes.
13921         (_initialize_check_for_gdb_ini): Ditto.
13922
13923 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13924
13925         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13926         xaprintf -> xasprintf.
13927
13928 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13929
13930         * win32-nat.c: Remove use of printf and sprintf functions.
13931
13932 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13933
13934         * arm-tdep.c (arm_frame_chain_valid): Make static.
13935         (arm_push_arguments): Likewise.
13936         (arm_gdbarch_init): New function.
13937         (_initialize_arm_tdep): Call it.
13938         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13939         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13940         (FRAME_CHAIN_VALID): Delete.
13941         (arm_frame_chain_valid): Delete declaration.
13942         (PUSH_ARGUMENTS): Delete.
13943         (arm_push_arguments): Delete declaration.
13944         (CALL_DUMMY_P): Delete.
13945
13946 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13947             Corinna Vinschen  <vinschen@redhat.com>
13948
13949         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13950         on builtin float types.
13951
13952 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13953
13954         * utils.c: Include <curses.h> before "bfd.h".
13955         * tui/tui-hooks.c: Likewise.
13956         * tui/tui.c: Likewise.
13957         * tui/tuiCommand.c: Likewise.
13958         * tui/tuiData.c: Likewise.
13959         * tui/tuiDataWin.c: Likewise.
13960         * tui/tuiDisassem.c: Likewise.
13961         * tui/tuiGeneralWin.c: Likewise.
13962         * tui/tuiIO.c: Likewise.
13963         * tui/tuiLayout.c: Likewise.
13964         * tui/tuiRegs.c: Likewise.
13965         * tui/tuiSource.c: Likewise.
13966         * tui/tuiSourceWin.c: Likewise.
13967         * tui/tuiStack.c: Likewise.
13968         * tui/tuiWin.c: Likewise.
13969
13970 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13971
13972         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13973         to include space for pseudoregs as well. Update loops accordingly.
13974         (sh_fp_frame_init_saved_regs): Ditto.
13975         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13976
13977 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13978
13979         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13980         Add Richard Earnshaw to Arm maintainers.
13981
13982 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13983
13984         * defs.h (warning_begin): Delete declaration.
13985
13986         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13987         Delete macro.
13988
13989 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13990
13991         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13992         Logic bug, remove misplaced else.
13993
13994 2002-02-07  Klee Dienes  <klee@apple.com>
13995
13996         * fork-inferior.c (fork_inferior): Add '!' to the list of
13997         characters that need to be quoted when building a string for the
13998         shell.  Quote '!' specifically with a backslash, since CSH chokes
13999         when trying to evaluate "str!str".
14000
14001 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
14002
14003         * rdi-share/host.h: Only provide a typedef for bool if it is not
14004         defined.
14005
14006 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14007
14008         * breakpoint.h (enum bptype): Add new overlay event bp type.
14009         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
14010
14011         * breakpoint.c (create_internal_breakpoint): New function.
14012         (internal_breakpoint_number): Moved into create_internal_breakpoint.
14013         (create_longjmp_breakpoint): Use create_internal_breakpoint.
14014         (create_thread_event_breakpoint): Ditto.
14015         (create_solib_event_breakpoint): Ditto.
14016         (create_overlay_event_breakpoint): New function.
14017         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
14018         (update_breakpoints_after_exec): Delete and re-initialize
14019         overlay event breakpoints after an exec.  Add FIXME comment
14020         about longjmp breakpoint.
14021         (print_it_typical): Ignore overlay event breakpoints.
14022         (print_one_breakpoint): Ditto.
14023         (mention): Ditto.
14024         (bpstat_what): Do not stop for overlay event breakpoints.
14025         (delete_breakpoint): Don't delete overlay event breakpoints.
14026         (breakpoint_re_set_one): Delete the overlay event breakpoint.
14027         (breakpoint_re_set): Re-create overlay event breakpoint.
14028
14029         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14030         (overlay_manual_command): Disable overlay breakpoints.
14031         (overlay_off_command): Disable overlay breakpoints.
14032
14033 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14034
14035         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14036         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14037         to here from config/tm-arm.h.
14038         (coff_sym_is_thumb): Make static.
14039         (arm_elf_make_msymbol_special): New function.
14040         (arm_coff_make_msymbol_special): New function.
14041         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14042         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14043         (coff_sym_is_thumb): Delete declaration.
14044         (arm_elf_make_msymbol_special): Declare.
14045         (arm_coff_make_msymbol_special): Declare.
14046         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14047         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14048
14049 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14050
14051         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14052
14053 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
14054
14055         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14056         * gdbarch.c gdbarch.h: Regenerate.
14057         * arch-utils.c (default_print_float_info): New function.
14058         * arch-utils.h (default_print_float_info): Prototype it.
14059         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14060         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14061         (PRINT_FLOAT_INFO): Document it.
14062
14063         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14064         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14065         (PRINT_FLOAT_INFO): Define.
14066
14067 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14068
14069         * win32-nat.c (_initialize_check_for_gdb_ini):
14070         Add typecast to sprintf argument to suppress a warning.
14071
14072 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
14073
14074         * win32-nat.c (last_sig): Changed type of variable to target_signal,
14075         to allow easier handling of pass state.
14076         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14077         that gives exception name and address.
14078         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14079         and set last_sig value to ourstatus->value.sig. Some missing
14080         exceptions added.
14081         (child_continue): Correctly report continue_status.
14082         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14083         TARGET_SIGNAL_0 (new default value).
14084         (child_resume): consider sig argument passed to decide if
14085         the exception should be passed to debuggee or not.
14086
14087 2002-02-05  Michael Snyder  <msnyder@redhat.com>
14088
14089         * regcache.c (fetch_register): Call target_fetch_register
14090         only if we don't call FETCH_PSEUDO_REGISTER.
14091         (store_register): Call target_store_register only if we
14092         don't call STORE_PSEUDO_REGISTER.
14093
14094 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14095
14096         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14097         ELF_MAKE_MSYMBOL_SPECIAL.
14098         * gdbarch.c, gdbarch.h: Regenerate.
14099         * arch-utils.c (default_make_msymbol_special): New function.
14100         * arch-utils.h (default_make_msymbol_special): Export.
14101         * elfread.c (elf_symtab_read): Compile use of
14102         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14103         multiarched.
14104         * coffread.c (coff_symtab_read): Ditto, for
14105         COFF_MAKE_MSYMBOL_SPECIAL.
14106
14107 2002-02-05  Jim Blandy  <jimb@redhat.com>
14108
14109         * solib-svr4.c (svr4_truncate_ptr): New function.
14110         (svr4_relocate_section_addresses): Do the address arithmetic with
14111         the appropriate truncation for target addresses, even when
14112         CORE_ADDR is larger than a target address.
14113
14114 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14115
14116         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14117         to (int *).
14118
14119 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14120
14121         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14122         code.
14123
14124 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14125
14126         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14127
14128 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14129
14130         * gdbserver/linux-low.c: Remove unused include files.
14131
14132 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14133
14134         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14135         (read_inferior_memory): Use it.
14136         (write_inferior_memory): Likewise.
14137
14138 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14139
14140         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14141         grubbing through sys_errlist.
14142
14143 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14144
14145         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14146
14147 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14148         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14149
14150 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14151
14152         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14153         (do_sfunc, set_cmd_sfunc): New functions.
14154
14155         * command.h (struct cmd_list_element): Add field func.
14156         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14157         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14158         * cli/cli-decode.h: Ditto.
14159
14160         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14161         (help_all, help_cmd_list): Ditto.
14162         (find_cmd, complete_on_cmdlist): Ditto.
14163         * top.c (execute_command): Ditto.
14164
14165         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14166         function.sfunc.
14167
14168         * infcmd.c (notice_args_read): Fix function signature.
14169
14170         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14171         * cli/cli-decode.c (add_set_cmd): Ditto.
14172         * utils.c (initialize_utils): Ditto.
14173         * maint.c (_initialize_maint_cmds): Ditto.
14174         * infrun.c (_initialize_infrun): Ditto.
14175         * demangle.c (_initialize_demangler): Ditto.
14176         * remote.c (add_packet_config_cmd): Ditto.
14177         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14178         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14179         * proc-api.c (_initialize_proc_api): Ditto.
14180         * kod.c (_initialize_kod): Ditto.
14181         * valprint.c (_initialize_valprint): Ditto.
14182         * top.c (init_main): Ditto.
14183         * infcmd.c (_initialize_infcmd): Ditto.
14184         * corefile.c (_initialize_core): Ditto.
14185         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14186         * arch-utils.c (initialize_current_architecture): Ditto.
14187         (_initialize_gdbarch_utils): Ditto.
14188         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14189
14190         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14191         * wince.c (_initialize_inftarg): Ditto.
14192         * symfile.c (_initialize_symfile): Ditto.
14193         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14194         * language.c (_initialize_language): Ditto.
14195         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14196
14197 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14198
14199         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14200
14201 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14202
14203         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14204         Add rules for building the register data files.
14205
14206 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14207
14208         * regformats/regdat.sh: Add braces to the definition of
14209         expedite_regs_${arch}.
14210
14211 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14212
14213         * regformats/regdef.h (struct reg): Add comment describing the
14214         requirements for offset and size fields.
14215
14216 2002-02-04  Andreas Schwab  <schwab@suse.de>
14217
14218         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14219         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14220
14221 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14222
14223         * gdbarch.sh (copyright): Update years in generated header.
14224         (SMASH_TEXT_ADDRESS): Add rule.
14225         * gdbarch.h, gdbarch.c: Re-generate.
14226         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14227         * dbxread.c: Likewise.
14228         * dwarfread.c: Likewise.
14229         * elfread.c: Likewise.
14230         * somread.c: Likewise.
14231
14232         * arm-tdep.c (arm_smash_text_address): New function.
14233         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14234
14235 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14236
14237         Add support for hardware watchpoints on win32 native.
14238         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14239         CONTEXT_DEBUG_REGISTERS.
14240         (dr variable): New variable. Static array containing a local copy
14241         of debug registers.
14242         (debug_registers_changed): New variable.  Reflects when debug registers
14243         are changed and need to be written to inferior.
14244         (debug_registers_used): New variable. Reflects when any debug register
14245         was set, used when new threads are created.
14246         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14247         i386-nat code.
14248         (thread_rec): Set dr array if id is the thread of current_event .
14249         (child_continue, child_resume): Change the debug registers for all
14250         threads if debug_registers_changed.
14251         (child_add_thread): Change the debug registers if debug_registers_used.
14252         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14253         Link nm.h to new nm-cygwin.h file.
14254         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14255         of hardware registers.
14256
14257 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14258
14259         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14260         Restore behavour broken by 2002-01-20 Andrew Cagney
14261         <ac131313@redhat.com> IEEE_FLOAT removal.
14262
14263 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14264
14265         * c-valprint.c (c_val_print): Pass a proper valaddr to
14266         cp_print_class_method.
14267         * valops.c (search_struct_method): If there is only one method
14268         and args is NULL, return that method.
14269
14270 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14271
14272         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14273         accessing tag_name directly.
14274
14275 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14276
14277         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14278         of accessing tag_name directly.
14279
14280 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14281
14282         PR gdb/280
14283         * gdbtypes.c (replace_type): New function.
14284         * gdbtypes.h (replace_type): Add prototype.
14285         * stabsread.c (read_type): Use replace_type.
14286
14287 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14288
14289         * Makefile.in (memattr.o): Add missing dependencies rule.
14290
14291 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14292
14293         * breakpoint.c (break_at_finish_command): Really export.
14294         (break_at_finish_at_depth_command): Ditto.
14295         (tbreak_at_finish_command): Ditto.
14296         * hppa-tdep.c: Include completer.h.
14297         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14298         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14299
14300 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14301
14302         * utils.c (do_write): New function.
14303         (error_stream): Rewrite combining the code from error_begin and
14304         verror.
14305         (verror): Rewrite using error_stream.
14306         (error_begin): Delete function.
14307
14308 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14309
14310         * utils.c (error_begin): Make static.
14311         * defs.h (error_begin): Delete declaration.
14312
14313         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14314         (decode_line_1): Use cplusplus_error instead of error_begin,
14315         cplusplus_hint and return_to_top_level.
14316         * coffread.c (coff_symfile_read): Use error instead of error_begin
14317         and return_to_top_level.
14318         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14319
14320 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14321
14322         * language.h (type_error, range_error): Make string parameter
14323         constant.
14324         * language.c (warning_pre_print): Delete extern declaration.
14325         * dwarfread.c (warning_pre_print): Ditto.
14326         * language.c (type_error, range_error): Rewrite to use verror and
14327         vwarning instead of warning_begin.
14328
14329 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14330
14331         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14332         (set_ignore_count): Move misplaced comment back where it belongs.
14333
14334 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14335
14336         * command.h (NO_FUNCTION): Delete macro.
14337         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14338         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14339         * tracepoint.c (_initialize_tracepoint): Ditto.
14340         * cli/cli-decode.c (add_set_cmd): Ditto.
14341         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14342
14343 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14344
14345         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14346         Update ``this'' pointer when calling virtual functions.
14347
14348 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14349
14350         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14351         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14352
14353 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14354
14355         * regformats/reg-arm.dat: New file.
14356         * regformats/reg-i386.dat: New file.
14357         * regformats/reg-ia64.dat: New file.
14358         * regformats/reg-m68k.dat: New file.
14359         * regformats/reg-mips.dat: New file.
14360         * regformats/reg-ppc.dat: New file.
14361         * regformats/reg-sh.dat: New file.
14362         * regformats/regdef.h: New file.
14363         * regformats/regdat.sh: New file.
14364
14365 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14366
14367         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14368         (arm_frame_args_address, arm_frame_locals_address): New functions.
14369         (arm_frame_num_args): New function.
14370         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14371         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14372         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14373
14374 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14375
14376         * breakpoint.c (break_at_finish_command): Export.
14377         (break_at_finish_at_depth_command): Export.
14378         (tbreak_at_finish_command): Export.
14379         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14380         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14381         "txbreak" commands, which are HPPA specific.
14382
14383         * printcmd.c (disassemble_command): Remove an ancient
14384         artifact of an old merge.
14385
14386         * symfile.h (enum overlay_debugging_state):
14387         Define enum constant values for overlay mode.
14388         * symfile.c (overlay_debugging): Use enums instead of literals.
14389         (overlay_is_mapped, overlay_auto_command,
14390         overlay_manual_command): Ditto.
14391
14392         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14393         breakpoint_here_p, breakpoint_inserted_here_p,
14394         breakpoint_thread_match, bpstat_stop_status,
14395         describe_other_breakpoints, check_duplicates, clear_command):
14396         Coding standard fixes.
14397
14398         * target.c (target_xfer_memory): Add spaces, coding standard.
14399         (do_xfer_memory): Add missing line to trust-readonly
14400         code: check bfd SEC_READONLY flag for section.
14401
14402 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14403
14404         * PROBLEMS: Fix typo, 5.1->5.1.1.
14405
14406 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14407
14408         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14409         data symbols, since we search based on textlow and texthigh.
14410         (find_pc_sect_symtab): Likewise.
14411
14412 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14413
14414         * defs.h (vwarning): Declare.
14415         * utils.c (vwarning): New function.
14416         (warning): Call vwarning.
14417         (warning_begin): Delete function.
14418
14419         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14420         the warning message.
14421         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14422         warning_begin.
14423
14424 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14425
14426         * NEWS: Mention "set trust-readonly-sections" command.
14427         Mention generate-core-file command.
14428
14429 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14430
14431         * target.c: New command, "set trust-readonly-sections on".
14432         (do_xfer_memory): Honor the suggestion to trust readonly sections
14433         by reading them from the object file instead of from the target.
14434         (initialize_targets): Register command "set trust-readonly-sections".
14435
14436 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14437
14438         * parse.c (target_map_name_to_register): Simplify, search regs and
14439         pseudo-regs using a single loop.
14440
14441 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14442
14443         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14444
14445 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14446
14447         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14448         * config/i386/i386v42mp.mh: Add i387-nat.o .
14449         * i386v4-nat.c: Include i387-nat.h.
14450         (supply_fpregset): Use i387_supply_fsave.
14451         (fill_fpregset): Use i387_fill_fsave.
14452
14453 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14454
14455         * arm-tdep.c (arm_call_dummy_words): Define.
14456         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14457         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14458         (CALL_DUMMY_WORDS): Define.
14459         (arm_call_dummy_words): Declare.
14460         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14461         (arm_linux_call_dummy_words): Declare.
14462
14463 2002-01-30  Andreas Schwab  <schwab@suse.de>
14464
14465         * m68klinux-nat.c: Fix last change to use regcache_collect
14466         instead of referencing registers[] directly.
14467
14468 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14469
14470         * parse.c (target_map_name_to_register): Delete code wrapped in
14471         #ifdef REGISTER_NAME_ALIAS_HOOK.
14472
14473 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14474
14475         * regcache.c (legacy_read_register_gen): Need to be able to
14476         read pseudo-register as well as real register.
14477         (legacy_write_register_gen): Ditto.
14478
14479 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14480
14481         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14482         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14483         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14484         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14485         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14486         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14487         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14488         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14489         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14490         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14491         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14492         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14493         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14494         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14495         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14496         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14497         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14498         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14499         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14500         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14501
14502 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14503
14504         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14505         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14506         (initialize_current_architecture): Update target_byte_order using
14507         information from BFD.
14508         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14509         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14510
14511 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14512
14513         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14514         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14515
14516         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14517         #ifdef INVALID_FLOAT.
14518         * infcmd.c (do_registers_info): Ditto.
14519         * values.c (unpack_double): Ditto.  Add comment.
14520
14521         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14522         already commented out.
14523
14524 2002-01-26  Andreas Schwab  <schwab@suse.de>
14525
14526         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14527         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14528         registers and add support for PTRACE_GETREGS.
14529
14530 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14531
14532         GDB 5.1.1 released from 5.1 branch.
14533         * NEWS: Add 5.1.1 news.
14534         * README: Sync with 5.1 branch.
14535
14536 2002-01-23  Fred Fish  <fnf@redhat.com>
14537
14538         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14539         stabstring on initial malloc.  Reallocing will copy it for us,
14540         if necessary.
14541
14542 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14543
14544         * Makefile.in (hpread_h): Delete.
14545         (HFILES_NO_SRCDIR): Remove hpread.h.
14546         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14547         (hpread.o): Update dependencies.
14548         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14549
14550         * hp-psymtab-read.c: Remove file.
14551         * hp-symtab-read.c: Remove file.
14552         * hpread.h: Remove file.
14553
14554         * hpread.c: Merge all contents of hp-psymtab-read.c,
14555         hp-symtab-read.c and hpread.h into this file, as it was prior to
14556         January 1999.
14557
14558         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14559         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14560         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14561         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14562
14563 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14564
14565         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14566         fill_gregset): Call gdbarch_tdep() just once, assign result to
14567         variable and use that, instead of calling the function several
14568         times.
14569
14570 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14571
14572         * configure.host: Accept sparcv9 as alias for sparc64.
14573         * configure.tgt: Likewise.
14574
14575 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14576
14577         * solib-aix5.c (build_so_list_from_mapfile)
14578         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14579         arguments is not reversed.
14580         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14581         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14582
14583 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14584
14585         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14586         modified version of obsolete sh_fetch_pseudo_register.
14587         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14588         (sh4_register_read): New function.
14589         (sh_pseudo_register_write): New function. Renamed and modified
14590         version of obsolete sh_store_pseudo_register.
14591         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14592         (sh4_register_write): New function.
14593         (sh_gdbarch_init): Remove setting of gdbarch function
14594         fetch_pseudo_register and store_pseudo_register. Remove setting of
14595         register_convert_to_raw, register_convert_to_virtual,
14596         register_convertible.
14597         (sh_sh4_register_convertible): Delete. No longer needed. All is
14598         taken care by architecture specific functions
14599         register_read/register_write.
14600         (sh_sh4_register_convert_to_virtual): Make static.
14601         (sh_sh4_register_convert_to_raw): Ditto.
14602
14603 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14604
14605         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14606         (floatformat_is_nan, floatformat_mantissa): Ditto.
14607
14608         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14609         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14610         builtin_type_ieee_double_little,
14611         builtin_type_ieee_double_littlebyte_bigword,
14612         builtin_type_m68881_ext, builtin_type_i960_ext,
14613         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14614         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14615         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14616         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14617
14618 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14619
14620         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14621         parameter.  Set frameless flag if it exists and depended of
14622         whether the scanned function is frameless or not.
14623         (xstormy16_skip_prologue): If function is frameless, return
14624         result of xstormy16_scan_prologue().
14625         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14626         call.
14627
14628 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14629
14630         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14631         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14632         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14633         sh_sh4_register_byte, sh_sh4_register_raw_size,
14634         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14635         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14636         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14637         sh_store_pseudo_register, sh_do_pseudo_register): Call
14638         gdbarch_tdep() just once, assign result to variable and use that,
14639         instead of calling the function several times.
14640
14641 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14642
14643         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14644         macros instead of LAST_FPU_CTRL_REGNUM.
14645         (store_register): Likewise.
14646
14647 2002-01-21  Jim Blandy  <jimb@redhat.com>
14648
14649         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14650         is up-to-date before running the program, not just when a program
14651         exits.
14652
14653 2002-01-21  Fred Fish  <fnf@redhat.com>
14654
14655         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14656         when we have found all instructions we are looking for.
14657
14658 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14659
14660         * arm-tdep.c (arm_register_name): New function.
14661         (arm_registers_names): Make static.
14662         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14663         (arm_register_name): Declare.
14664         (REGISTER_NAME): Use it.
14665
14666 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14667             Kevin Buettner  <kevinb@redhat.com>
14668
14669         Convert arm targets to new FRAME interface.
14670         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14671         (arm_frame_find_save_regs): Delete.
14672         (arm_frame_init_saved_regs): New.
14673         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14674         Allocate extra_info as required.  Convert all uses of fsr.regs
14675         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14676         to use extra_info.
14677         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14678         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14679         (check_prologue_cache, save_prologue_cache): Likewise.
14680         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14681         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14682         (FRAME_FIND_SAVED_REGS): Delete.
14683         (arm_frame_find_saved_regs): Delete prototype.
14684         (arm_frame_init_saved_regs): New prototype.
14685         (FRAME_INIT_SAVED_REGS): Define.
14686
14687 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14688
14689         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14690
14691 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14692
14693         From Jeff Law <law@redhat.com>:
14694         * infttrace.c: Include <sys/pstat.h>.
14695         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14696         exec file if the ttrace equivalent fails.
14697
14698 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14699
14700         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14701         (closeLogFile): Ditto.
14702
14703 2002-01-20  Michael Chastain  <mec@shout.net>
14704
14705         * top.c (print_gdb_version): Bump copyright year to 2002.
14706
14707 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14708
14709         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14710         Zannoni and Eli Zaretskii.
14711
14712 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14713
14714         * buildsym.c: Update copyright years.
14715         * c-typeprint.c: Likewise.
14716         * dwarf2read.c: Likewise.
14717         * f-typeprint.c: Likewise.
14718         * gdbtypes.c: Likewise.
14719         * gdbtypes.h: Likewise.
14720         * hp-symtab-read.c: Likewise.
14721         * hpread.c: Likewise.
14722         * mdebugread.c: Likewise.
14723         * p-typeprint.c: Likewise.
14724
14725 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14726
14727         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14728         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14729         byte-order selectable.
14730         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14731         * arch-utils.c: Ditto.
14732         (set_endian): Ditto.
14733         (set_endian_from_file): Ditto.
14734         * gdbserver/low-sim.c (create_inferior): Ditto.
14735         * gdbarch.sh: Ditto.
14736         * gdbarch.h: Re-generate.
14737         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14738         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14739         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14740         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14741         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14742         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14743         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14744         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14745         macro definition.
14746         * config/mips/tm-wince.h: Remove #undef of macro
14747         TARGET_BYTE_ORDER_SELECTABLE.
14748         * config/sh/tm-wince.h: Ditto.
14749
14750 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14751
14752         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14753         member function fields.  Add accessor macro
14754         TYPE_FN_FIELD_ARTIFICIAL.
14755         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14756         * c-typeprint.c (c_type_print_base): Skip artificial member
14757         functions.
14758
14759 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14760
14761         * f-typeprint.c: Delete unused function f_type_print_args.
14762         * p-typeprint.c: Delete unused function pascal_type_print_args.
14763
14764 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14765
14766         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14767         comment.  Add ``artificial'' to ``union field_location''.
14768
14769         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14770
14771         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14772         * mdebugread.c (parse_symbol): Likewise.
14773         * stabsread.c (define_symbol): Likewise.
14774         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14775         initializing TYPE_FIELD_BITPOS to n (obsolete).
14776         (hpread_doc_function_type): Likewise.
14777         * hpread.c (hpread_function_type): Likewise.
14778
14779 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14780
14781         * configure.in (host_makefile_frag): Only require a host makefile
14782         fragment when a native build.
14783         * configure: Re-generate.
14784
14785 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14786
14787         * doublest.h (floatformat_from_type): Declare.
14788         * doublest.c (floatformat_from_type): New function.
14789         (convert_typed_floating): Use.
14790
14791         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14792         call to function floatformat_from_type.
14793
14794         * gdbarch.sh (IEEE_FLOAT): Delete.
14795         * gdbarch.h, gdbarch.c: Re-generate.
14796         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14797         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14798         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14799         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14800         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14801         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14802         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14803         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14804         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14805         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14806         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14807         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14808
14809         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14810         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14811         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14812         * sh-tdep.c (sh_gdbarch_init): Ditto.
14813         * mips-tdep.c (mips_gdbarch_init): Ditto.
14814         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14815         * cris-tdep.c (cris_gdbarch_init): Ditto.
14816
14817 2002-01-20  Jiri Smid  <smid@suse.cz>
14818
14819         * configure.host, configure.tgt: Support x86-64.
14820         * NEWS: Note new target x86-64.
14821
14822         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14823         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14824         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14825         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14826         x86-64-linux-nat.o): Fix dependencies.
14827
14828 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14829
14830         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14831         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14832         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14833         * config/sparc/xm-sun4os4.h: Delete file.
14834         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14835
14836 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14837
14838         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14839         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14840         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14841         * config/i386/i386lynx.mh (XM_FILE): Delete.
14842         * config/rs6000/xm-rs6000ly.h: Delete file.
14843         * config/sparc/xm-sparclynx.h: Delete file.
14844         * config/m68k/xm-m68klynx.h: Delete file.
14845         * config/i386/xm-i386lynx.h: Delete file.
14846         * config/xm-lynx.h: Delete file.
14847         * config/djgpp/fnchange.lst: Update.
14848
14849 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14850
14851         * alpha-tdep.c (alpha_register_byte): New function.
14852         (alpha_register_raw_size): Ditto.
14853         (alpha_register_virtual_size): Ditto.
14854         (alpha_skip_prologue_internal): Renamed from
14855         alpha_skip_prologue.
14856         (alpha_skip_prologue): New version that calls
14857         alpha_skip_prologue_internal.
14858         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14859         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14860         second argument from alpha_skip_prologue.
14861         (REGISTER_BYTE): Use alpha_register_byte.
14862         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14863         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14864         (FRAMELESS_FUNCTION_INVOCATION): Use
14865         generic_frameless_function_invocation_not.
14866         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14867         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14868
14869 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14870
14871         * config/mips/xm-news-mips.h: Delete file.
14872         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14873
14874         * config/m88k/xm-m88k.h: Delete file.
14875         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14876         * config/m88k/xm-delta88v4.h: Ditto.
14877         * config/m88k/xm-delta88.h: Ditto.
14878
14879         * config/alpha/xm-fbsd.h: Delete file.
14880         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14881
14882         * config/sparc/xm-sparc.h: Delete file.
14883         * Makefile.in (xm-sun4os4.h): Delete dependency.
14884         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14885         * config/sparc/xm-sun4os4.h: Ditto.
14886         * config/sparc/xm-linux.h: Ditto.
14887
14888         * config/i386/xm-windows.h: Delete file.
14889
14890 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14891
14892         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14893         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14894
14895 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14896
14897         * alpha-tdep.c (alpha_call_dummy_words): New.
14898         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14899         (CALL_DUMMY_P): Define.
14900         (CALL_DUMMY_WORDS): Define.
14901         (SIZEOF_CALL_DUMMY_WORDS): Define.
14902
14903 2002-01-19  Per Bothner  <per@bothner.com>
14904
14905         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14906         isn't NULL, which can happen with some gcj-3.x-produced code.
14907
14908 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14909
14910         * alpha-tdep.c (alpha_register_virtual_type): New function.
14911         (alpha_init_frame_pc_first): Ditto.
14912         (alpha_fix_call_dummy): Ditto.
14913         (alpha_store_struct_return): Ditto.
14914         (alpha_extract_struct_value_address): Ditto.
14915         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14916         alpha_register_virtual_type.
14917         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14918         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14919         alpha_extract_struct_value_address.
14920         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14921         (INIT_FRAME_PC): Use init_frame_pc_noop.
14922         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14923
14924 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14925
14926         * i386gnu-nat.c: Include "i386-tdep.h".
14927         (fetch_fpregs): Simplify code dealing with uninitialized floating
14928         point states such that it doesn't require FP7_REGNUM.
14929
14930 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14931
14932         * alpha-tdep.c (frame_extra_info): New.
14933         (alpha_find_saved_regs): Make static.  Use
14934         frame->extra_info.
14935         (alpha_frame_init_saved_regs): New function.
14936         (alpha_frame_saved_pc): Use frame->extra_info.
14937         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14938         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14939         (init_extra_frame_info): Rename to...
14940         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14941         (alpha_print_extra_frame_info): New function.
14942         (alpha_frame_locals_address): Ditto.
14943         (alpha_frame_args_address): Ditto.
14944         (alpha_pop_frame): Use frame->extra_info.
14945         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14946         alpha_frame_args_address.
14947         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14948         (alpha_find_saved_regs): Remove prototype.
14949         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14950         (EXTRA_FRAME_INFO): Remove.
14951         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14952         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14953
14954 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14955
14956         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14957         (alpha_cannot_fetch_register): Ditto.
14958         (alpha_cannot_store_register): Ditto.
14959         (alpha_register_convertible): Ditto.
14960         (alpha_use_struct_convention): Ditto.
14961         * config/alpha/tm-alpha.h: Update copyright years.
14962         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14963         (INNER_THAN): Use core_addr_lessthan.
14964         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14965         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14966         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14967         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14968         (FRAME_CHAIN): Remove unnecessary cast.
14969
14970 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14971
14972         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14973         obsolete.
14974
14975 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14976
14977         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14978         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14979         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14980         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14981         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14982         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14983         * x86-64-linux-nat.c: Ditto.
14984
14985 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14986
14987         * alpha-tdep.c (alpha_register_name): New function.
14988         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14989         (REGISTER_NAME): Define.
14990
14991 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14992
14993         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14994
14995 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14996
14997         * alpha-tdep.c: Update copyright years.
14998         (alpha_next_pc): New function.
14999         (alpha_software_single_step): Ditto.
15000         * config/alpha/tm-alpha.h: Add prototype for
15001         alpha_software_single_step.
15002
15003 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
15004
15005         * alphabsd-nat.c: Update copyright years.
15006         (fill_gregset): Use regcache_collect.
15007         (fill_fpregset): Likewise.
15008         (fetch_inferior_registers): Only fetch integer registers
15009         if requested to do so.
15010         (store_inferior_registers): Only store integer registers
15011         if requested to do so.
15012
15013 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15014
15015         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
15016         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
15017         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
15018         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
15019         * config/alpha/fbsd.mh (XDEPFILES): Delete.
15020         * config/arm/linux.mh (XDEPFILES): Delete.
15021         * config/arm/nbsd.mh (XDEPFILES): Delete.
15022         * config/i386/i386dgux.mh (XDEPFILES): Delete.
15023         * config/i386/i386sol2.mh (XDEPFILES): Delete.
15024         * config/i386/i386m3.mh (XDEPFILES): Delete.
15025         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
15026         * config/i386/i386gnu.mh (XDEPFILES): Delete.
15027         * config/i386/fbsd.mh (XDEPFILES): Delete.
15028         * config/i386/i386bsd.mh (XDEPFILES): Delete.
15029         * config/i386/i386sco5.mh (XDEPFILES): Delete.
15030         * config/i386/i386v4.mh (XDEPFILES): Delete.
15031         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15032         * config/i386/i386sco4.mh (XDEPFILES): Delete.
15033         * config/i386/i386aix.mh (XDEPFILES): Delete.
15034         * config/i386/go32.mh (XDEPFILES): Delete.
15035         * config/i386/cygwin.mh (XDEPFILES): Delete.
15036         * config/i386/i386lynx.mh (XDEPFILES): Delete.
15037         * config/i386/i386mach.mh (XDEPFILES): Delete.
15038         * config/i386/i386v32.mh (XDEPFILES): Delete.
15039         * config/i386/linux.mh (XDEPFILES): Delete.
15040         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15041         * config/i386/ncr3000.mh (XDEPFILES): Delete.
15042         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15043         * config/i386/i386sco.mh (XDEPFILES): Delete.
15044         * config/i386/i386v.mh (XDEPFILES): Delete.
15045         * config/i386/nbsd.mh (XDEPFILES): Delete.
15046         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15047         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15048         * config/i386/symmetry.mh (XDEPFILES): Delete.
15049         * config/i386/obsd.mh (XDEPFILES): Delete.
15050         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15051         * config/ia64/linux.mh (XDEPFILES): Delete.
15052         * config/ia64/aix.mh (XDEPFILES): Delete.
15053         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15054         * config/m68k/dpx2.mh (XDEPFILES): Delete.
15055         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15056         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15057         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15058         * config/m68k/linux.mh (XDEPFILES): Delete.
15059         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15060         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15061         * config/m68k/nbsd.mh (XDEPFILES): Delete.
15062         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15063         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15064         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15065         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15066         * config/m88k/delta88.mh (XDEPFILES): Delete.
15067         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15068         * config/m88k/m88k.mh (XDEPFILES): Delete.
15069         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15070         * config/mips/linux.mh (XDEPFILES): Delete.
15071         * config/mips/irix6.mh (XDEPFILES): Delete.
15072         * config/mips/irix5.mh (XDEPFILES): Delete.
15073         * config/mips/irix4.mh (XDEPFILES): Delete.
15074         * config/mips/irix3.mh (XDEPFILES): Delete.
15075         * config/mips/decstation.mh (XDEPFILES): Delete.
15076         * config/mips/mipsm3.mh (XDEPFILES): Delete.
15077         (NATDEPFILES): Move core-aout.o to here.
15078         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15079         * config/pa/hpux1020.mh (XDEPFILES): Delete.
15080         * config/pa/hppabsd.mh (XDEPFILES): Delete.
15081         * config/pa/hppahpux.mh (XDEPFILES): Delete.
15082         * config/pa/hpux11w.mh (XDEPFILES): Delete.
15083         * config/pa/hppaosf.mh (XDEPFILES): Delete.
15084         * config/pa/hpux11.mh (XDEPFILES): Delete.
15085         * config/powerpc/aix.mh (XDEPFILES): Delete.
15086         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15087         * config/powerpc/linux.mh (XDEPFILES): Delete.
15088         * config/romp/rtbsd.mh: Rename XDEPFILES.
15089         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15090         * config/rs6000/aix4.mh (XDEPFILES): Delete.
15091         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15092         * config/s390/s390.mh (XDEPFILES): Delete.
15093         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15094         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15095         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15096         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15097         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15098         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15099         * config/sparc/linux.mh (XDEPFILES): Delete.
15100         * config/vax/vaxult.mh (XDEPFILES): Delete.
15101         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15102         * Makefile.in (DEPFILES): Remove XDEPFILES.
15103
15104 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15105
15106         * utils.c (internal_verror): Fix comments, default is yes not no.
15107         Update queries to match.  Default to quit and dump core.
15108
15109 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15110
15111         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15112         copyright.
15113         * defs.h, event-top.c, gdbcmd.h: Ditto.
15114         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15115         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15116         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15117         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15118         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15119         * mi/mi-main.c:Ditto.
15120
15121         * stack.c, symfile.c: Update copyright.
15122
15123 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15124
15125         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15126         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15127         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15128         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15129
15130 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15131
15132         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15133         * gdbserver/low-lynx.c (myattach): Likewise.
15134         * gdbserver/low-nbsd.c (myattach): Likewise.
15135         * gdbserver/low-sim.c (myattach): Likewise.
15136         * gdbserver/low-sparc.c (myattach): Likewise.
15137         * gdbserver/low-sun3.c (myattach): Likewise.
15138
15139         * gdbserver/low-linux.c (myattach): New function.
15140
15141         * gdbserver/server.c (attach_inferior): New function.
15142         (main): Handle "--attach".
15143
15144 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15145
15146         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15147         maintainer.
15148
15149 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15150
15151         * c-typeprint.c (is_type_conversion_operator): Add additional
15152         check for non-conversion operators.
15153
15154 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15155
15156         * linux-proc.c: Add "info proc" command, a la procfs.c.
15157         (read_mapping): New function, abstract and re-use code.
15158         (linux_find_memory_regions): Use new func read_mapping.
15159         (linux_info_proc_cmd): New function, implement "info proc".
15160         (_initialize_linux_proc): Add new command "info proc".
15161
15162 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15163
15164         * symfile.c (generic_load): Use bfd_map_over_sections method
15165         instead of manipulating bfd structure members directly.
15166         (add_section_size_callback): New function, bfd sections callback
15167         used by generic_load.
15168         (load_sections_callback): New function, bfd sections callback
15169         used by generic_load.
15170
15171 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15172
15173         [Based on work by Jim Blandy]
15174         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15175         (builtin_type_vec128): Export.
15176         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15177         types.
15178         (builtin_type_vec128): New builtin type for 128 bit vector
15179         registers.
15180         (build_gdbtypes): Initialize builtin_type_v16qi and
15181         builtin_type_v8hi. Create the vec128 register builtin type
15182         structure.
15183         (build_builtin_type_vec128): New function.
15184         (_initialize_gdbtypes): Register builtin_type_v16qi and
15185         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15186         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15187         AltiVec register to new builtin type.
15188
15189 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15190
15191         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15192         to make_cv_type.
15193
15194 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15195
15196         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15197         CLEAN_UP_REGISTER_VALUE.
15198         * regcache.c (supply_register): Update only call.
15199
15200 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15201
15202         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15203         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15204         a29k-*-vxworks* targets as obsolete.
15205
15206 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15207
15208         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15209         until we can resolve portability issues.
15210         * gregset.h: Remove references to fpxregs.
15211         * gcore.c (gcore_command): Initialize note_sec to NULL.
15212
15213 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15214
15215         * signals.c (target_signal_to_name): Rewrite.  Only use
15216         signals[].name when in bounds and non-NULL.
15217
15218 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15219
15220         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15221         * signals.c (target_signal_to_name): Verify that SIG is within the
15222         bounds of the signals array.
15223
15224 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15225
15226         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15227
15228 2002-01-13  Keith Seitz  <keiths@redhat.com>
15229
15230         * stack.c (print_frame_info_base): Print the frame's pc
15231         only if when print_frame_info_listing_hook is not defined.
15232
15233 2002-01-13  Keith Seitz  <keiths@redhat.com>
15234
15235         * varobj.c (varobj_set_value): Make sure that there were no
15236         errors evaluating the object before attempting to set its
15237         value.
15238         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15239         so this offset adjustment is no longer necessary.
15240         (create_child): Don't set the error flag if the child is
15241         a CPLUS_FAKE_CHILD.
15242         (value_of_child): If value_fetch_lazy fails, return NULL
15243         so that callers will be notified that an error occurred.
15244         (c_value_of_variable): Delay check of variable's validity
15245         until later. We actually want all structs and unions to have
15246         the value "{...}".
15247         Do not return "???" for variables which could not be evaluated.
15248         This error condition must be returned to the caller so that it
15249         can get the error condition from gdb.
15250         (cplus_name_of_child): Adjust index for vptr before figuring
15251         out the name of the child.
15252         (cplus_value_of_child): If a child's (real) parent is not valid,
15253         don't even bother trying to give a value for it. Just return
15254         an error. Change all instances in this function.
15255         (cplus_type_of_child): If our parent is one of the "fake"
15256         parents, we need to get at the type of the real parent, and
15257         derive the child's true type using this information.
15258
15259 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15260
15261         From 2002-01-09 John Marshall <johnm@falch.net>:
15262         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15263         sources.redhat.com, and tweak some related URLs which had
15264         suffered from linkrot.
15265
15266 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15267
15268         From Jeff law:
15269         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15270         structures passed in registers.
15271
15272 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15273
15274         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15275         white space which prevented compilation.  Reported by DSK
15276         <dsk@student.unsw.edu.au>.
15277
15278 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15279
15280         * symfile.c (build_section_addr_info_from_section_tab):
15281         Use bfd access method instead of manipulating bfd directly.
15282         (syms_from_objfile): Ditto.
15283         (simple_overlay_update_1): Ditto.
15284         (simple_overlay_update): Ditto.
15285         (generic_load): Ditto.
15286         (overlay_unmapped_address): FIXME comment, bfd access methods.
15287         (sections_overlap): FIXME comment, bfd access methods.
15288         (pc_in_mapped_range): FIXME comment, bfd access methods.
15289         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15290         (section_is_mapped): FIXME comment, bfd access methods.
15291         (section_is_overlay): FIXME comment, bfd access methods.
15292
15293         * symfile.c (generic_load): Whitespace and long line cleanups.
15294         Remove duplicate variable, change several local variables to
15295         more appropriate data types.
15296         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15297
15298 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15299
15300         From Peter Schauer:
15301         * language.c (longest_local_hex_string_custom): Use phex_nz to
15302         convert NUM to a hex string.
15303
15304 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15305
15306         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15307         the function.
15308         Update Copyright year.
15309
15310 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15311
15312         * language.c (longest_raw_hex_string): Delete unused function.
15313
15314 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15315
15316         * MAINTAINERS (write-after-approval): Add myself.
15317         * dwarf2read.c (read_tag_string_type): Handling of
15318         DW_AT_byte_size.
15319         (read_tag_string_type): FORTRAN fix to prevent propagation of
15320         first string size.
15321         (set_cu_language): Handling of DW_LANG_Fortran95
15322
15323 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15324
15325         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15326         GETPID(inferior_ptid).
15327         (store_inferior_registers): Likewise.
15328
15329 2002-01-10  Jason Merrill  <jason@redhat.com>
15330
15331         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15332         Fix DW_OP_minus.
15333
15334 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15335
15336         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15337         and bfd/elf32-sh-nbsd.c.
15338
15339 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15340
15341         * NEWS: Mention --pid and corefile/proc-id behavior change.
15342
15343         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15344         * gcore.c: Include cli/cli-decode.h instead of command.h.
15345
15346         * main.c (captured_main): Add new command line option "--pid".
15347         If the second command line argument (following the symbol-file)
15348         begins with a digit, try to attach to it before trying to open
15349         it as a corefile.
15350         (print_gdb_help): Document the "--pid" argument.
15351
15352 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15353
15354         * completer.c (command_completer): New function.
15355
15356         * completer.h <command_completer>: Add prototype.
15357
15358         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15359         completer for the "help" command.
15360
15361 2002-01-09  Jason Merrill  <jason@redhat.com>
15362
15363         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15364
15365 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15366
15367         * i386-linux-nat.c (fill_fpxregset): Make global.
15368         (store_fpxregset): Ditto.
15369
15370         * gregset.h (gdb_fpxregset_t): Define.
15371         (supply_fpxregset): Prototype.
15372         (fill_fpxregset): Prototype.
15373
15374         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15375
15376 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15377
15378         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15379         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15380         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15381
15382 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15383
15384         * MAINTAINERS: Update target maintainer rules so that any
15385         Maintainer can approve a tested patch for a maintenance-only
15386         target.
15387
15388 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15389
15390         * MAINTAINERS (write-after-approval): Add myself.
15391
15392         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15393         IN_SIGTRAMP.
15394
15395 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15396
15397         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15398         real name of the executable, rather than the /proc name.
15399
15400 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15401
15402         Implement a "generate-core-file" command in gdb, save target state.
15403         * gcore.c: New file.  Implement new command 'generate-core-file'.
15404         Save a corefile image of the current state of the inferior.
15405         * linux-proc.c: Add linux-specific code for saving corefiles.
15406         * target.h (struct target_ops): Add new target vectors for saving
15407         corefiles; to_find_memory_regions and to_make_corefile_notes.
15408         (target_find_memory_regions): New macro.
15409         (target_make_corefile_notes): New macro.
15410         * target.c (update_current_target): Inherit new target methods.
15411         (dummy_find_memory_regions): New place-holder method.
15412         (dummy_make_corefile_notes): New place-holder method.
15413         (init_dummy_target): Initialize new dummy target vectors.
15414         * exec.c (exec_set_find_memory_regions): New function.
15415         Allow the exec_ops vector for memory regions to be taken over.
15416         (exec_make_note_section): New function, target vector method.
15417         * defs.h (exec_set_find_memory_regions): Export prototype.
15418         * procfs.c (proc_find_memory_regions): New function, corefile method.
15419         (procfs_make_note_section): New function, corefile method.
15420         (init_procfs_ops): Set new target vector pointers.
15421         (find_memory_regions_callback): New function.
15422         (procfs_do_thread_registers): New function.
15423         (procfs_corefile_thread_callback): New function.
15424         * sol-thread.c (sol_find_memory_regions): New function.
15425         (sol_make_note_section): New function.
15426         (init_sol_thread_ops): Initialize new target vectors.
15427         * inftarg.c (inftarg_set_find_memory_regions): New function.
15428         Allow to_find_memory_regions vector to be taken over.
15429         (inftarg_set_make_corefile_notes): New function.
15430         Allow to_make_corefile_notes vector to be taken over.
15431         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15432         interface layer if not target_has_execution (may be a corefile).
15433         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15434         * config/sparc/sun4sol2.mh: Ditto.
15435         * config/alpha/alpha-linux.mh: Ditto.
15436         * config/arm/linux.mh: Ditto.
15437         * config/i386/x86-64linux.mh: Ditto.
15438         * config/ia64/linux.mh: Ditto.
15439         * config/m68k/linux.mh: Ditto.
15440         * config/mips/linux.mh: Ditto.
15441         * config/powerpc/linux.mh: Ditto.
15442         * config/sparc/linux.mh: Ditto.
15443
15444 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15445
15446         * arm-linux-nat.c: Remove references to regcache.c internal data
15447         (registers[] and register_valid[]).
15448
15449 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15450
15451         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15452         so that attaching to a pid will automatically read the process's
15453         symbol file and shlibs.
15454         * Makefile.in: Add rule for linux-proc.o.
15455         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15456         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15457         * config/arm/linux.mh: Ditto.
15458         * config/i386/linux.mh: Ditto.
15459         * config/i386/x86-64linux.mh: Ditto.
15460         * config/ia64/linux.mh: Ditto.
15461         * config/m68k/linux.mh: Ditto.
15462         * config/mips/linux.mh: Ditto.
15463         * config/powerpc/linux.mh: Ditto.
15464         * config/sparc/linux.mh: Ditto.
15465
15466 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15467
15468         * win32-nat.c: Add i386-tdep.h dependency.
15469
15470 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15471
15472         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15473         instead of bfd_get_arch_size.  Don't bail out just because
15474         there's no exec_bfd.
15475
15476         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15477         * p-valprint.c (pascal_object_print_value): Ditto.
15478         * somread.c (som_symtab_read): Ditto.
15479         * symfile.c (simple_free_overlay_region_table): Ditto.
15480         * valops.c (value_assign): Ditto.
15481
15482         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15483         use tilde_expand and strerror for opening save-tracepoints file.
15484
15485         * thread-db.c (thread_db_new_objfile): Indendation fix.
15486
15487         * infptrace.c (GDB_MAX_ALLOCA): New define.
15488         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15489         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15490         can be overridden with whatever value is appropriate to the host).
15491         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15492         alloca to allocate potentially large buffer.
15493         * rs6000-nat.c (child_xfer_memory): Ditto.
15494         * symm-nat.c (child_xfer_memory): Ditto.
15495         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15496
15497 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15498
15499         From Nick Clifton  <nickc@redhat.com>
15500         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15501
15502 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15503
15504         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15505         Don't use exec_bfd if it's NULL.
15506
15507 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15508
15509         * valops.c (value_arg_coerce): Fix formatting.
15510
15511 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15512
15513         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15514         * gnu-nat.c: Ditto.
15515
15516 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15517
15518         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15519         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15520         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15521         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15522         z8k-coff have not been multi-arched.  Update z8k-coff build
15523         status.
15524
15525 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15526
15527         * MAINTAINERS: Mark a29k target as obsolete.
15528         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15529         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15530         comments.
15531         * NEWS: Note that a29k targets are obsolete.
15532         * a29k-tdep.c: Mark as obsolete.
15533         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15534         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15535         a29k-*-vxworks* targets as obsolete.
15536         * remote-adapt.c: Obsolete.
15537         * remote-eb.c: Obsolete.
15538         * remote-mm.c: Obsolete.
15539         * remote-udi.c: Obsolete.
15540         * config/a29k/a29k-udi.mt: Obsolete.
15541         * config/a29k/a29k.mt: Obsolete.
15542         * config/a29k/tm-a29k.h: Obsolete.
15543         * config/a29k/tm-vx29k.h: Obsolete.
15544         * config/a29k/vx29k.mt: Obsolete.
15545
15546 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15547
15548         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15549         with BFD_ENDIAN_BIG.
15550
15551 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15552
15553         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15554         * configure, config.in: Re-generate.
15555         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15556         * defs.h: Do not include <endian.h>.
15557
15558 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15559
15560         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15561         * config.in: Regenerate.
15562         * configure.in: Update copyright years.
15563         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15564         * configure: Regenerate.
15565         * i386bsd-nat.c: Update copyright years.
15566         (fill_gregset): Use regcache_collect.
15567         (fetch_inferior_registers): Only fetch integer registers
15568         if requested to do so.  Add support for XMM registers
15569         using PT_GETXMMREGS.
15570         (store_inferior_registers): Only store integer registers
15571         if requested to do so.  Add support for XMM registers
15572         using PT_SETXMMREGS.
15573         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15574         (store_inferior_registers): Remove.
15575         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15576         (fetch_elfcore_registers): New function.
15577         (i386nbsd_elfcore_fns): New.
15578         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15579         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15580         i386bsd-nat.o.
15581         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15582         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15583         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15584         * config/i386/tm-nbsd.h: Update copyright years.
15585         (HAVE_SSE_REGS): Define.
15586         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15587         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15588         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15589         (SIGCONTEXT_PC_OFFSET): Remove.
15590         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15591
15592 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15593
15594         * configure.tgt: Remove powerpc-*-macos* target.
15595         * config/m68k/xm-mpw.h: Delete file.
15596         * config/xm-mpw.h: Delete file.
15597         * ser-mac.c: Delete file.
15598         * mpw-make.sed: Delete file.
15599         * mpw-config.in: Delete file.
15600         * mac-xdep.c: Delete file.
15601         * mac-gdb.r: Delete file.
15602         * mac-defs.h: Delete file.
15603         * mac-nat.c: Delete file.
15604         * config/powerpc/macos.mh: Delete file.
15605         * config/powerpc/macos.mt: Delete file.
15606         * config/powerpc/nm-macos.h: Delete file.
15607         * config/powerpc/tm-macos.h: Delete file.
15608         * source.c (openp, open_source_file): Remove obsolete code.
15609         * top.c (gdb_readline): Ditto.
15610         * utils.c (query): Ditto.
15611         * event-top.c (display_gdb_prompt): Ditto.
15612         * Makefile.in (ser-mac.o): Delete obsolete target.
15613         * NEWS: Update.
15614
15615 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15616
15617         * defs.h (BIG_ENDIAN): Delete macro definition.
15618         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15619         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15620         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15621         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15622         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15623         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15624         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15625         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15626         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15627         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15628         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15629         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15630         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15631         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15632         * gdbarch.c: Re-generate.
15633
15634 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15635
15636         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15637         for core files.
15638
15639 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15640
15641         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15642
15643 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15644
15645         * value.h (value_ptr): Delete typedef.
15646
15647 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15648
15649         * i386nbsd-nat.c: Update copyright years.
15650         Include i386-tdep.h.
15651
15652 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15653
15654         * stabsread.c: Update copyright years.
15655
15656         From Debashis Mahata <debashis.mahata@wipro.com>:
15657         (read_struct_fields): Deal with Sun C compiler erroneous stab
15658         output for structs and unions.
15659         Fix PR gdb/269.
15660
15661 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15662
15663         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15664         prototype.
15665
15666 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15667
15668         * cp-abi.c: Fix whitespace.
15669         (baseclass_offset): New wrapper function.
15670         * cp-abi.h (baseclass_offset): Add prototype.
15671         (struct cp_abi_ops): Add baseclass_offset pointer.
15672
15673         * valops.c (vb_match): Move to...
15674         * gnu-v2-abi.c (vb_match): here.
15675         * valops.c (baseclass_offset): Move to...
15676         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15677
15678         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15679
15680         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15681         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15682         * hpacc-abi.c (init_hpacc_ops): Likewise.
15683
15684 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15685
15686         * valops.c (find_overload_match): Accept obj as a
15687         reference parameter.  Update it before returning.
15688         * value.h (find_overload_match): Update prototype.
15689         * eval.c (evaluate_subexp_standard): Pass object to
15690         find_overload_match by reference.
15691
15692 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15693
15694         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15695         register attribute from value declarations.
15696         * valops.c: Ditto.
15697         * value.h: Ditto.
15698         * scm-lang.c (scm_lookup_name): Ditto.
15699
15700 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15701
15702         Abstract the functionality of iterating over mapped memory
15703         regions into a general purpose iterator function.
15704         * procfs.c (iterate_over_mappings): New function, general purpose
15705         iterator for memory sections.
15706         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15707         (solib_mappings_callback): New function, callback for above.
15708         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15709         (info_mappings_callback): New function, callback for above.
15710
15711         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15712
15713 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15714
15715         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15716         * i386-tdep.c: Include "elf-bfd.h".
15717         (process_note_abi_tag_sections): New function.
15718         (i386_gdbarch_init): Add code to recognize various OS/ABI
15719         combinations.
15720
15721         * maint.c (_initialize_maint_cmds): Add missing \ in
15722         string-literal.
15723
15724 For older changes see ChangeLog-2001
15725 \f
15726 Local Variables:
15727 mode: change-log
15728 left-margin: 8
15729 fill-column: 74
15730 version-control: never
15731 End: