2003-01-07 David Carlton <carlton@math.stanford.edu>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-07  David Carlton  <carlton@math.stanford.edu>
2
3         * linespec.c (decode_line_1): Move code into decode_dollar.
4         (decode_dollar): New function.
5
6 2003-01-07  Andrew Cagney  <cagney@redhat.com>
7
8         * arm-tdep.c (arm_init_extra_frame_info): Use
9         deprecated_update_frame_base_hack.
10         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12         (fix_frame_pointer): Ditto.
13         (mn10300_analyze_prologue): Ditto.
14
15 2003-01-07  Andrew Cagney  <cagney@redhat.com>
16
17         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
18         extra_info using frame_extra_info_zalloc.
19         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
20         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
21         (sh64_init_extra_frame_info): Ditto.
22         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
23         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
24         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
25         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
26         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
27         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
28         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
29         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
30         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
31         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
32         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
33         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
34
35         * mn10300-tdep.c (analyze_dummy_frame): Use
36         deprecated_set_frame_extra_info_hack.
37         * mcore-tdep.c (analyze_dummy_frame): Ditto.
38
39 2003-01-07  J. Brobecker  <brobecker@gnat.com>
40
41         * mdebugread.c (parse_symbol): Skip stProc entries which storage
42         class is not scText. These do not define "real" procedures.
43         (parse_partial_symbols): Likewise.
44
45 2003-01-06  Michael Snyder  <msnyder@redhat.com>
46
47         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
48
49 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
50
51         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
52         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
53         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
54         deprecated_frame_xmalloc_with_cleanup.
55         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
56         deprecated_frame_xmalloc.
57         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
58         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
59
60 2003-01-06  Andrew Cagney  <cagney@redhat.com>
61
62         * x86-64-linux-tdep.c: Include "osabi.h".
63         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
64
65         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
66
67 2003-01-06  Andrew Cagney  <cagney@redhat.com>
68
69         * MAINTAINERS (Target Instruction Set Architectures): Update
70         arm-elf.  Can be built with -Werror, has been multiarched.
71
72         * value.h (unpack_long): Make buffer parameter constant.
73         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
74         * scm-lang.h (scm_parse): Ditto.
75         * defs.h (extract_typed_address, extract_address): Ditto.
76         (extract_long_unsigned_integer): Ditto.
77         * inferior.h (unsigned_pointer_to_address): Ditto.
78         (signed_pointer_to_address): Ditto.
79         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
80         * gdbarch.h, gdbarch.c: Regenerate.
81         * findvar.c (extract_long_unsigned_integer): Update.
82         (extract_address): Update.
83         (extract_typed_address): Update.
84         (unsigned_pointer_to_address): Update.
85         * values.c (unpack_long): Update.
86         (unpack_double): Update.
87         (unpack_pointer): Update.
88         (unpack_field_as_long): Update.
89         * d10v-tdep.c (d10v_pointer_to_address): Update.
90         * avr-tdep.c (avr_pointer_to_address): Update.
91         * scm-lang.c (scm_unpack): Update.
92         * findvar.c (signed_pointer_to_address): Update.
93
94 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
95
96         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
97         since it is in i386-tdep.c.
98
99 2003-01-06  J. Brobecker  <brobecker@gnat.com>
100
101         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
102         failure introduced in the previous change.
103
104 2003-01-05  Michael Chastain  <mec@shout.net>
105
106         * README: Remove references to deleted remote-*.c files:
107         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
108         remote-nrom.c, remote-os9k.c, remote-udi.c.
109
110 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
111
112         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
113         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
114         i386_get_longjmp_target.
115
116 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
117
118         * arm-tdep.c (prologue_cache): Change to a pointer.
119         (_initialize_arm_tdep): Allocate prologue_cache.
120         (check_prologue_cache): Update.
121         (save_prologue_cache): Update.
122         (arm_gdbarch_init): Update.
123
124 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
125
126         * stabsread.c (update_method_name_from_physname): Call complaint()
127         instead of error.
128
129 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
130
131         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
132         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
133         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
134
135         * blockframe.c: Include "gdbcmd.h" and "command.h".
136         (backtrace_below_main): New variable.
137         (file_frame_chain_valid, func_frame_chain_valid)
138         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
139         (generic_func_frame_chain_valid): Remove functions.
140         (frame_chain_valid, do_flush_frames_sfunc): New functions.
141         (_initialize_blockframe): New function.
142         * Makefile.in (blockframe.o): Update dependencies.
143         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
144         comment.  Call frame_chain_valid ().
145         * frame.h: Remove old prototypes.  Add prototype for
146         frame_chain_valid and update comments to match.
147         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
148         Remove old comment.
149         * gdbarch.h: Regenerated.
150         * gdbarch.c: Regenerated.
151
152         * alpha-tdep.c (alpha_gdbarch_init): Don't call
153         set_gdbarch_frame_chain_valid.
154         * avr-tdep.c (avr_gdbarch_init): Likewise.
155         * cris-tdep.c (cris_gdbarch_init): Likewise.
156         * frv-tdep.c (frv_gdbarch_init): Likewise.
157         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
158         * i386-tdep.c (i386_svr4_init_abi): Likewise.
159         (i386_nw_init_abi): Likewise.
160         (i386_gdbarch_init): Likewise.
161         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
162         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
163         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
164         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
165         * mips-tdep.c (mips_gdbarch_init): Likewise.
166         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
167         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
168         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
169         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
170         * s390-tdep.c (s390_gdbarch_init): Likewise.
171         * sh-tdep.c (sh_gdbarch_init): Likewise.
172         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
173         * v850-tdep.c (v850_gdbarch_init): Likewise.
174         * vax-tdep.c (vax_gdbarch_init): Likewise.
175         * x86-64-tdep.c (x86_64_init_abi): Likewise.
176
177         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
178         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
179         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
180         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
181         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
182         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
183         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
184         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
185
186 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
187
188         * Makefile.in (acconfig_h): Remove incorrect macro.
189         (config_h): Define.
190         (osabi.o): Update dependencies.
191         * configure.tgt: Set gdb_osabi based on target triplet.
192         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
193         * configure: Regenerated.
194         * config.in: Regenerated.
195         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
196         (GDB_OSABI_DEFAULT): Define if not already defined.
197         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
198         (set_osabi_string): New variables.
199         (gdbarch_register_osabi): Add new OS ABI to
200         gdb_osabi_available_names.
201         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
202         (set_osabi, show_osabi): New functions.
203         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
204
205 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
206
207         * arch-utils.c (gdbarch_info_init): Set osabi to
208         GDB_OSABI_UNINITIALIZED.
209         * gdbarch.sh: Add osabi to struct gdbarch and to struct
210         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
211         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
212         * gdbarch.c: Regenerated.
213         * gdbarch.h: Regenerated.
214         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
215         there's no BFD.
216         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
217         * osabi.h (enum gdb_osabi): Move to defs.h.
218         (gdbarch_init_osabi): Update prototype.
219         * defs.h (enum gdb_osabi): Moved here.
220         * Makefile.in: Update dependencies.
221
222         * alpha-tdep.h: Don't include "osabi.h".
223         (struct gdbarch_tdep): Remove osabi member.
224         * alpha-tdep.c: Include "osabi.h".
225         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
226         iterate over arches.  Update call to gdbarch_init_osabi.
227         (alpha_dump_tdep): Don't dump osabi.
228         * alpha-linux-tdep.c: Include "osabi.h".
229         * alpha-osf1-tdep.c: Include "osabi.h".
230         * alphafbsd-tdep.c: Include "osabi.h".
231         * alphanbsd-tdep.c: Include "osabi.h".
232
233         * arm-tdep.h: Don't include "osabi.h".
234         (struct gdbarch_tdep): Remove osabi member.
235         * arm-tdep.c: Include "osabi.h".
236         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
237         iterate over arches.  Update call to gdbarch_init_osabi.
238         (arm_dump_tdep): Don't dump osabi.
239         * arm-linux-tdep.c: Include "osabi.h".
240         * armnbsd-tdep.c: Include "osabi.h".
241
242         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
243         Update call to gdbarch_init_osabi.
244
245         * i386-tdep.h: Don't include "osabi.h".
246         (struct gdbarch_tdep): Remove osabi member.
247         * i386-tdep.c: Include "osabi.h".
248         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
249         iterate over arches.  Update call to gdbarch_init_osabi.
250         (i386_dump_tdep): Don't dump osabi.
251         * i386-linux-tdep.c: Include "osabi.h".
252         * i386-sol2-tdep.c: Include "osabi.h".
253         * i386bsd-tdep.c: Include "osabi.h".
254         * i386gnu-tdep.c: Include "osabi.h".
255         * i386ly-tdep.c: Include "osabi.h".
256         * i386nbsd-tdep.c: Include "osabi.h".
257         * i386obsd-tdep.c: Include "osabi.h".
258
259         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
260         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
261         check osabi when iterating over arches.  Update call to
262         gdbarch_init_osabi.
263         (mips_dump_tdep): Don't dump osabi.
264
265         * ns32k-tdep.h: Don't include "osabi.h".
266         (struct gdbarch_tdep): Remove.
267         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
268         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
269         allocate tdep.  Update call to gdbarch_init_osabi.
270         (ns32k_dump_tdep): Remove.
271         (_initialize_ns32k_tdep): Update call to gdbarch_register.
272         * ns32knbsd-tdep.c: Include "osabi.h".
273
274         * ppc-tdep.h: Don't include "osabi.h".
275         (struct gdbarch_tdep): Remove osabi member.
276         * rs6000-tdep.c: Include "osabi.h".
277         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
278         osabi when iterating over arches.  Update call to
279         gdbarch_init_osabi.
280         (rs6000_dump_tdep): Don't dump osabi.
281         * ppc-linux-tdep.c: Include "osabi.h".
282         * ppcnbsd-tdep.c: Include "osabi.h".
283
284         * sh-tdep.h: Don't include "osabi.h".
285         (struct gdbarch_tdep): Remove osabi member.
286         * sh-tdep.c: Include "osabi.h".
287         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
288         iterate over arches.  Update call to gdbarch_init_osabi.
289         (sh_dump_tdep): Don't dump osabi.
290         * shnbsd-tdep.c: Include "osabi.h".
291
292         * sparc-tdep.c: Include "osabi.h".
293         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
294         iterate over arches.  Update call to gdbarch_init_osabi.
295         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
296         tdep structure.
297
298         * vax-tdep.h: Don't include "osabi.h".
299         (struct gdbarch_tdep): Remove.
300         * vax-tdep.c: Include "osabi.h".
301         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
302         iterate over arches.  Don't allocate tdep.  Update call
303         to gdbarch_init_osabi.
304         (vax_dump_tdep): Remove.
305         (_initialize_vax_tdep): Update call to gdbarch_register.
306
307 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
308
309         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
310         entirely.
311         (breakpoint_re_set_one): Don't fetch the value for a disabled
312         watchpoint.
313
314 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
315
316         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
317         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
318         (COERCE_FLOAT_TO_DOUBLE): Remove.
319         * gdbarch.c: Regenerate.
320         * gdbarch.h: Regenerate.
321         * Makefile.in: Remove value_h from gdbarch_h.
322         * valops.c (coerce_float_to_double): New variable.
323         (default_coerce_float_to_double): Remove.
324         (standard_coerce_float_to_double): Remove.
325         (value_arg_coerce): Use coerce_float_to_double.
326         (_initialize_valops): Add "set coerce-float-to-double".
327         * value.h (default_coerce_float_to_double): Remove prototype.
328         (standard_coerce_float_to_double): Remove prototype.
329
330         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
331         prototyped.
332         * mdebugread.c (parse_symbol): Likewise.
333         * stabsread.c (define_symbol): Mark all functions as prototyped.
334
335         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
336         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
337         set_gdbarch_coerce_float_to_double.
338         * arm-tdep.c (arm_gdbarch_init): Likewise.
339         * frv-tdep.c (frv_gdbarch_init): Likewise.
340         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
341         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
342         * mips-tdep.c (mips_gdbarch_init): Likewise.
343         (mips_coerce_float_to_double): Remove.
344         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
345         (rs6000_coerce_float_to_double): Remove.
346         * s390-tdep.c (s390_gdbarch_init): Likewise.
347         * sh-tdep.c (sh_gdbarch_init): Likewise.
348         (sh_coerce_float_to_double): Remove.
349         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
350         (sparc_coerce_float_to_double): Remove.
351         * v850-tdep.c (v850_gdbarch_init): Likewise.
352         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
353         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
354         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
355         (hppa_coerce_float_to_double): Remove prototype.
356         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
357
358 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
359
360         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
361
362 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
363
364         Suggested by Stewart Brown <sb24@avaya.com>:
365         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
366         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
367         (c_type_print_varspec_suffix): Likewise.
368
369 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
370
371         * configure.in: Don't set and AC_SUBST SUBDIRS.
372         * configure: Regenerated.
373
374         * configure.in: Remove code dealing with shared libraries.
375         * Makefile.in: Remove HLDFLAGS and HLDENV.
376         * configure: Regenerated.
377
378 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
379
380         * frame.c (deprecated_frame_xmalloc): New function.
381         (deprecated_set_frame_saved_regs_hack): New function.
382         (deprecated_set_frame_extra_info_hack): New function.
383         * frame.h (deprecated_frame_xmalloc): Declare.
384         (deprecated_set_frame_saved_regs_hack): Declare.
385         (deprecated_set_frame_extra_info_hack): Declare.
386
387 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
388
389         * configure.in: Move code that provides the --enable-gdbtk option
390         right after the code that handles the --enable-tui option, and
391         polish it somewhat.
392         * configure: Regenerated.
393
394         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
395         AC_CHECK_FUNCS and remove the old check for pread64.
396         * acinclude.m4 (AC_GNU_SOURCE): New macro.
397         * acconfig.h (_GNU_SOURCE): Add.
398         (HAVE_PREAD64): Remove.
399         * configure, aclocal.m4, config.in: Regenerated.
400
401 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
402
403         * alpha-tdep.c: Use get_frame_saved_regs.
404         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
405         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
406         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
407         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
408         * vax-tdep.c, xstormy16-tdep.c: Ditto.
409
410 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
411
412         * configure.in: Remove all use of the SUBDIRS variable; add
413         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
414         code providing the --enable-multi-ice option, and move it right in
415         front of the code that checks whether gdbserver is supported.
416         Polish that too.
417         * configure: Regenerated.
418         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
419         @SUBDIRS@.
420
421 2003-01-03  Andrew Cagney  <cagney@redhat.com>
422
423         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
424         * avr-tdep.c, cris-tdep.c: Ditto.
425         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
426         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
427         
428 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
429
430         * configure.in: Remove --enable-netrom option.
431         * configure: Regenerated.
432
433 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
434
435         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
436         declaration for `struct re_pattern_buffer' instead.
437         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
438
439 2003-01-03  J. Brobecker  <brobecker@gnat.com>
440
441         * mdebugread.c (parse_symbol): Count until the stEnd matching
442         the structure name.
443
444 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
445
446         * configure.in: Remove --with-cpu option.
447         subscripts.  Remove evil changequotes here.
448         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
449         * config.in, configure: Regenerated.
450         
451         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
452         * configure.in: Cleanup section that sources GDB and BFD configure
453         subscripts.  Remove evil changequotes here.
454         * config.in, configure: Regenerated.
455
456 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
457
458         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
459         frame accessor methods.
460         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
461         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
462         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
463         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
464         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
465         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
466         * z8k-tdep.c: Ditto.
467         
468 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
469
470         * configure.in: Remove UI_OUT configuration code.
471         * ada-lang.c: Update assuming UI_OUT is always true.
472         * Makefile.in (UIOUT_CFLAGS): Remove.
473         * configure: Regenerated.
474         * TODO: Remove blurb about elimination of -DUI_OUT.
475
476         * configure.in: Move code that provides the --enable-gdbcli,
477         --enable-gdbmi options right before the code that handles the
478         --enable-tui option.  Polish a bit.
479         * configure: Regenerated.
480
481         * configure.in: Rewrite check for GNU regex and the
482         --without-included regex option, and move it into the "Checks for
483         library functions" section.  This makes us use the system regex
484         again by default on systems with version 2 of the GNU C library.
485         This was apparently broken.
486         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
487         * acconfig.h (USE_INCLUDED_REGEX): Remove.
488         * config.in, configure: Regenerated.
489
490         * configure.in: Move code that provides the --enable-tui option
491         before the "Checks for libraries" section.  Polish the code
492         somewhat and set need_curses to yes if we build the TUI.  Rewrite
493         code that looks for a library providing termcap functionality to
494         match more closely what's done in the Readline library, and move
495         it into to the "Checks for libraries" section.
496         * configure: Regenerated.
497         * Makefile.in (TERMCAP): Remove variable.
498         * config/i386/go32.mh (TERMCAP): Remove variable.
499
500 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
501
502         * MAINTAINERS: Mention gdb_mbuild.sh.
503         * gdb_mbuild.sh: Rewrite.
504
505 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
506
507         * configure.in: Fix typo in last change.
508         * config.in, configure: Regenerated.
509
510 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
511
512         * valarith.c (value_binop): Delete obsolete code and comments.
513         * configure.host: Ditto.
514         * buildsym.h (make_blockvector): Ditto.
515         * buildsym.c (make_blockvector): Ditto.
516         * defs.h (enum language): Ditto.
517         (chill_demangle): Ditto.
518         * elfread.c (elf_symtab_read): Ditto.
519         * dwarfread.c (CHILL_PRODUCER): Ditto.
520         (set_cu_language): Ditto.
521         (handle_producer): Ditto.
522         * expprint.c (print_subexp): Ditto.
523         * gdbtypes.c (chill_varying_type): Ditto.
524         * gdbtypes.h (builtin_type_chill_bool): Ditto.
525         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
526         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
527         (chill_varying_type): Ditto.
528         * language.h (_LANG_chill): Ditto.
529         * language.c (binop_result_type, integral_type): Ditto.
530         (character_type, string_type, structured_type): Ditto.
531         (lang_bool_type, binop_type_check): Ditto.
532         * stabsread.h (os9k_stabs): Ditto.
533         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
534         (define_symbol, read_type, read_struct_fields): Ditto.
535         (read_array_type, read_enum_type, read_huge_number): Ditto.
536         (read_range_type, start_stabs): Ditto.
537         * symfile.c (init_filename_language_table): Ditto.
538         (add_psymbol_with_dem_name_to_list): Ditto.
539         * symtab.c (symbol_init_language_specific): Ditto.
540         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
541         * symtab.h (struct general_symbol_info): Ditto.
542         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
543         * typeprint.c (typedef_print): Ditto.
544         * utils.c (fprintf_symbol_filtered): Ditto.
545         * valops.c (value_cast, search_struct_field, value_slice): Delete
546         obsolete code.
547         (varying_to_slice): Delete function.
548         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
549         (varying_to_slice): Delete declaration.
550         * MAINTAINERS: Update.
551
552 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
553
554         * configure.in: Reorganize "Checks for library functions section"
555         a bit.  Remove check for `btowc' and `isascii' functions.
556         * configure: Regenerated.
557
558         * acconfig.h (_MSE_INT_H): Remove.
559         * configure.in: Create "Checks for header files" section, and move
560         appropriate tests there.  Don't check for objlist.h, wchar.h,
561         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
562         misdetection fix.  Also add "Checks for types", "Checks for
563         compiler characteristics" and "Checks for library functions"
564         sections.
565         * config.in, configure: Regenerated.
566
567         * configure.in: Create "Checks for programs" section, and move
568         appropriate tests there.
569
570 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
571
572         * configure.in: Create "Checks for libraries" section, and move
573         appropriate tests there.  Cleanup check for wctype in libw.  Use
574         AC_SEARCH_LIBS to see whether we need libsocket.
575         * configure: Regenerated.
576
577 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
578
579         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
580         * config.in, configure: Regenerated.
581
582 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
583
584         * gdb_dirent.h: Cleanup and update code to match the example in
585         the Autoconf manual.
586         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
587         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
588         * configure: Regenerated.
589
590 2002-12-30  Adam Fedor  <fedor@gnu.org>
591
592         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
593         (yylex): Initialize c to avoid uninitialized warning.
594
595 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
596
597         * doc/fdl.texi: Revert the last change.
598
599 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
600
601         * tracepoint.c (ISATTY): Removed.
602
603 2002-12-26  J. Brobecker  <brobecker@gnat.com>
604
605         Continuing work to convert the hppa targets to multiarch partil.
606
607         * hppa-tdep.c: Add some missing forward declarations.
608         (frameless_function_invocation): Prefix the function name
609         by "hppa_" to avoid polluting the namespace.  Update all calls
610         to use the new function name.
611         (saved_pc_after_call): Ditto.
612         (init_extra_frame_info): Ditto.
613         (frame_chain): Ditto.
614         (push_dummy_frame): Ditto.
615         (target_read_pc): Ditto.
616         (target_write_pc): Ditto.
617         (in_solib_call_trampoline): Ditto.
618         (in_solib_return_trampoline): Ditto.
619         (skip_trampoline_code): Ditto.
620         (hppa_read_fp): New function, renamed from target_read_fp.
621         (hppa_target_read_fp): New function, using hppa_read_fp.
622         This function conforms to the function profile for the
623         READ_FP gdbarch method.
624         (hppa_extract_struct_value_address): New function, extracted
625         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
626         macro.
627         (hppa_frame_num_args): New function.
628         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
629
630         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
631         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
632         for the switch to multiarch partial.
633         Update some of the macros definitions to match some changes
634         described above in the name of the function they are calling.
635         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
636         not be straightforward to convert. Do now wrap it inside
637         "#if !... #endif" to remember that this macro has still not
638         been taken care of.
639         (FIX_CALL_DUMMY): Likewise.
640
641 2002-12-26  J. Brobecker  <brobecker@gnat.com>
642
643         Continuing work to convert the hppa targets to multiarch partial.
644
645         * hppa-tdep.c (hppa_register_raw_size): New function replacing
646         the body of macro REGISTER_RAW_SIZE.
647         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
648         config/pa/tm-hppah.h. These functions will be used to initialize
649         the gdbarch structure.
650         (hppa_hpux_pc_in_sigtramp): New function.
651         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
652         (hppa_hpux_frame_base_before_sigtramp): New function.
653         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
654         Add gdbcore.h #include.
655         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
656         of this gdbarch-eligible macro to a call to the new associated
657         function.
658         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
659         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
660         into a call to the new associated function.
661         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
662         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
663         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
664
665 2002-12-24  David Carlton  <carlton@math.stanford.edu>
666
667         * config/sparc/tm-sparc.h: Delete duplicate definition of
668         DEPRECATED_PC_IN_CALL_DUMMY.
669
670 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
671
672         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
673         $(gdb_assert_h).
674         * configure.tgt: Recognize mips64*-*-linux*.
675         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
676         (supply_32_bit_reg): New function.
677         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
678         (fill_gregset): Use regcache_collect() instead of
679         deprecated_registers[].
680         (register_addr): Change name to mips_linux_register_addr().
681         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
682         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
683         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
684         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
685         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
686         (MIPS64_LINUX_JB_PC): New defines.
687         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
688         (mips64_elf_fpregset_t): New typedefs.
689         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
690         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
691         (mips64_linux_register_addr, set_mips_linux_register_addr)
692         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
693         (init_register_addr_data)
694         New functions.
695         (fetch_core_registers): Add support for core file formats with 64-bit
696         registers.
697         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
698         (register_addr_data): New static global variable.
699         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
700         gdbarch_register_osabi() for each MIPS machine.
701         * config/mips/linux64.mt: New file.
702         * config/mips/tm-linux64.h: New file.
703
704 2002-12-23  Adam Fedor  <fedor@gnu.org>
705
706         * maint.c (maintenance_demangle): Add switch to demangle
707         ObjC language symbols as well.
708
709 2002-12-23  Adam Fedor  <fedor@gnu.org>
710
711         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
712         last argument from complaint function call.
713
714 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
715
716         * exec.c (print_section_info): Add FIXME comments regarding format
717         string choices.
718
719 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
720
721         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
722         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
723
724 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
725
726         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
727
728 2002-12-23  David Carlton  <carlton@math.stanford.edu>
729
730         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
731         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
732         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
733         information associated to a minsym, not lookup_symbol.
734
735 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
736
737         * x86-64-tdep.h (x86_64_init_abi): New prototype.
738         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
739         (x86_64_init_abi): Make non-static.  Set number of pseudo
740         registers to 0.
741         (x86_64_gdbarch_init): Remove function.
742         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
743         Remove code dealing with dissambly.
744         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
745         (_initialize_x86_64_linux_tdep): New function.
746         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
747         i386-tdep.o.
748
749 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
750
751         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
752         (struct gdb_osabi_handler): Remove member `arch'.  Add member
753         `arch_info'.
754         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
755         construct a `struct bfd_arch_info' and store it in the `struct
756         gdb_osabi_handler' that is created.
757         (gdbarch_init_osabi): Check for compatibility based on machine
758         type and architecture.
759         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
760         comment.
761         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
762         second argument in call to gdbarch_register_osabi.
763         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
764         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
765         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
766         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
767         * arm-tdep.c (_initialize_arm_tdep): Likewise.
768         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
769         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
770         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
771         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
772         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
773         * i386-tdep.c (_initialize_i386_tdep): Likewise.
774         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
775         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
776         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
777         _initialize_i386bsd_tdep and updated likewise.
778         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
779         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
780         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
781         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
782         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
783         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
784         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
785         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
786         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
787         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
788
789 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
790
791         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
792         DT_MIPS_RLD_MAP case for 64-bit targets.
793
794 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
795
796         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
797         ``temp_saved_regs'', not the pointer or other storage contiguous
798         to this pointer.
799
800 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
801
802         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
803         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
804         (mips_linux_get_longjmp_target): Delete declarations.
805         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
806         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
807         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
808         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
809         (mips_linux_get_longjmp_target)
810         (mips_linux_svr4_fetch_link_map_offsets): Make static.
811         (mips_linux_init_abi): New function.
812         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
813
814 2002-12-19  Keith Seitz  <keiths@redhat.com>
815
816         patch committed by Elena Zannoni  <ezannoni@redhat.com>
817         * thread.c (do_captured_list_thread_ids): Call prune_threads and
818         target_find_new_threads. Fix for PR mi/669.
819
820 2002-12-19  David Carlton  <carlton@math.stanford.edu>
821
822         * linespec.c (decode_line_1): Move code into decode_all_digits.
823         (decode_all_digits): New function.
824
825 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
826
827         * exec.c (print_section_info): Select a format string to use with
828         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
829
830 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
831
832         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
833         deprecated_update_current_frame_pc_hack.
834         (deprecated_update_frame_base_hack): New function.
835         * frame.h (deprecated_update_frame_pc_hack): Replace
836         (deprecated_update_frame_base_hack): Declare.
837         * infrun.c (normal_stop): Update.
838
839 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
840
841         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
842         frame_extra_info_zalloc.
843         (rs6000_frame_args_address): Use get_frame_extra_info.
844         (frame_get_saved_regs): Use get_frame_saved_regs.
845         (frame_initial_stack_address): Use get_frame_saved_regs and
846         get_frame_extra_info.
847         (frame_initial_stack_address): Use get_frame_extra_info.
848
849 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
850
851         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
852         array size.
853         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
854         checks for r3900_regnames[].
855
856 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
857
858         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
859         All uses changed
860         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
861
862 2002-12-17  David Carlton  <carlton@math.stanford.edu>
863
864         * symtab.c (lookup_partial_symbol): Don't search past the end of
865         the partial symbols.
866
867 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
868
869         * stack.c (frame_info): Use get_frame_saved_regs.
870         * breakpoint.c (until_break_command): Use get_frame_pc.
871
872 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
873
874         * buildsym.c (block_end_complaint, anon_block_end_complaint)
875         (innerblock_complaint, innerblock_anon_complaint)
876         (blockvector_complaint): Delete deprecated complaint structs.
877         (finish_block, make_blockvector, end_symtab): Replace calls
878         to complain() with calls to complaint().
879         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
880         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
881         (unexpected_type_complaint, bad_sclass_complaint)
882         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
883         Delete deprecated complaint structs.
884         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
885         Replace calls to complain() with calls to complaint().
886         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
887         (unknown_symtype_complaint, unknown_symchar_complaint)
888         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
889         (lbrac_mismatch_complaint, repeated_header_complaint)
890         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
891         Delete deprecated complaint structs.
892         (unknown_symtype_complaint, lbrac_mismatch_complaint)
893         (repeated_header_complaint)
894         (function_outside_compiliation_unit_complaint): New functions.
895         (add_old_header_file, find_corresponding_bincl_psymtab)
896         (set_namestring, find_stab_function_addr, read_dbx_symtab)
897         (process_one_symbol): Replace calls to complain() with, possibly
898         indirect, calls to complaint().
899         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
900         (unknown_attribute_form, unknown_attribute_length)
901         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
902         (const_ignored, botched_modified_type, op_deref2, op_deref4)
903         (basereg_not_handled, dup_user_type_allocation)
904         (dup_user_type_definition, missing_tag, bad_array_element_type)
905         (subscript_data_items, unhandled_array_subscript_format)
906         (unknown_array_subscript_format, not_row_major)
907         (missing_at_name): Delete deprecated complaint structs.
908         (bad_die_ref_complaint, unknown_attribute_form_complaint)
909         (dup_user_type_definition_complaint)
910         (bad_array_element_type_complaint): New functions.
911         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
912         (decode_subscript_data_item, dwarf_read_array_type)
913         (read_tag_string_type, read_subroutine_type, read_func_scope)
914         (locval, scan_partial_symbols, decode_modified_type)
915         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
916         (attribute_size): Replace calls to complain() with, possibly
917         indirect, calls to complaint().
918         * elfread.c (section_info_complaint, section_info_dup_complaint)
919         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
920         Delete deprecated complaint structs.
921         (elf_symtab_read, elfstab_offset_sections): Replace calls to
922         complain() with calls to complaint().
923         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
924         struct.
925         (stub_noname_complaint): New function.
926         (check_typedef, add_mangled_type): Replace calls to complain()
927         with calls to complaint().
928         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
929         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
930         (hpread_unhandled_type_complaint, hpread_struct_complaint)
931         (hpread_array_complaint, hpread_type_lookup_complaint)
932         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
933         (hpread_unhandled_common_complaint)
934         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
935         struct definitions and declarations.
936         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
937         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
938         Replace calls to complain() with, possibly indirect, calls to
939         complaint().
940         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
941         Likewise.
942         * mdebugread.c (bad_file_number_complaint, index_complaint)
943         (aux_index_complaint, block_index_complaint)
944         (unknown_ext_complaint, unknown_sym_complaint)
945         (unknown_st_complaint, block_overflow_complaint)
946         (basic_type_complaint, unknown_type_qual_complaint)
947         (array_index_type_complaint, bad_tag_guess_complaint)
948         (block_member_complaint, stEnd_complaint)
949         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
950         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
951         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
952         (bad_continued_complaint, bad_rfd_entry_complaint)
953         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
954         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
955         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
956         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
957         complaint structs.
958         (index_complaint, unknown_ext_complaint, basic_type_complaint)
959         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
960         (unexpected_type_code_complaint)
961         (function_outside_compilation_unit_complaint): New functions.
962         (parse_symbol, parse_type, upgrade_type, parse_procedure)
963         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
964         Replace calls to complain() with, possibly indirect calls to
965         complaint().
966         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
967         Delete deprecated complaint structs.
968         (lookup__objc_class, lookup_child_selector): Replace complain()
969         with complaint().
970         * remote-vx.c (cant_contact_target): Delete deprecated complaint
971         struct.
972         (vx_lookup_symbol): Replace complain() with complaint().
973         * stabsread.c (invalid_cpp_abbrev_complaint)
974         (invalid_cpp_type_complaint, member_fn_complaint)
975         (const_vol_complaint, error_type_complaint)
976         (invalid_member_complaint, range_type_base_complaint)
977         (reg_value_complaint, vtbl_notfound_complaint)
978         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
979         (unresolved_sym_chain_complaint, stabs_general_complaint)
980         (lrs_general_complaint, multiply_defined_struct): Delete
981         deprecated complaint structs.
982         (invalid_cpp_abbrev_complaint, ref_value_complaint)
983         (stabs_general_complaint, lrs_general_complaint)
984         (msg_unknown_complaint): New functions.
985         (dbx_lookup_type, read_cfront_baseclasses)
986         (read_cfront_member_functions, resolve_symbol_reference)
987         (define_symbol, resolve_live_range, add_live_range, read_type)
988         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
989         (read_one_struct_field, read_baseclasses, read_tilde_fields)
990         (read_cfront_static_fields, attach_fields_to_type)
991         (complain_about_struct_wipeout, read_range_type)
992         (common_block_start, common_block_end, cleanup_undefined_types)
993         (scan_file_globals): Replace complain() with complaint().
994         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
995         Delete deprecated complaint struct declarations.
996         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
997         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
998         (bf_not_found_complaint, ef_complaint, eb_complaint)
999         (function_outside_compilation_unit_complaint): New functions.
1000         (record_include_begin, record_include_end, enter_line_range)
1001         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1002         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1003         complain() with complaint().
1004
1005 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1006
1007         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1008         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1009         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1010         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1011         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1012         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1013         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1014         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1015         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1016         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1017         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1018         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1019         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1020         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1021         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1022         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1023         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1024         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1025         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1026         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1027         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1028         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1029         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1030         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1031         * config/m88k/xm-dgux.h: Delete.
1032         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1033         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1034         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1035         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1036         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1037         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1038         * ch-valprint.c: Delete.
1039         
1040 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1041
1042         * infrun.c (handle_inferior_event): Rearrange code to resume if
1043         no catchpoint triggers for an event.
1044
1045 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1046
1047         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1048         and TARGET_WAITKIND_VFORKED cases.
1049
1050 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1051
1052         * infrun.c (handle_inferior_event): Assume that catchpoints
1053         are not affected by DECR_PC_AFTER_BREAK.
1054
1055 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1056
1057         * target.c (update_current_target): Don't inherit DONT_USE.
1058         * target.h (struct target_ops): Remove DONT_USE.
1059         (target_next): Remove macro.
1060
1061 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1062
1063         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1064
1065 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1066
1067         * arm-tdep.c (convert_from_extended): New argument to hold the
1068         type of floating point result we want to convert to.  Make input 
1069         argument const.  Fix all callers.
1070         (convert_to_extended): Similarly.
1071         (arm_extract_return_value): Now takes a regcache argument.  Change
1072         code to use regcache accessor functions.  Correctly extract 
1073         smaller-than-word results on big-endian machines.
1074         (arm_store_return_value): Now takes a regcache argument.  Change
1075         code to use regcache accessor functions.  Correctly zero/sign extend
1076         smaller than word results before storing into r0.
1077         (arm_gdbarch_init): Register new-style extract_return_value and
1078         store_return_value functions.
1079
1080 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1081
1082         * thread-db.c (thread_from_lwp): Uniquify error msg.
1083         (lwp_from_thread): Ditto.
1084         (check_event): Ditto.
1085         (find_new_threads_callback): Ditto.
1086         (thread_db_pid_to_str): Ditto.
1087
1088 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1089
1090         * frame.h (get_frame_saved_regs): Declare.
1091         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1092         pointer.
1093         * frame.c (get_frame_saved_regs): New function.
1094         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1095
1096 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1097
1098         * frame.c (deprecated_update_current_frame_pc_hack): New
1099         function.
1100         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1101         * infrun.c (normal_stop): Use said function instead of directly
1102         modifying the frame's PC.
1103         
1104 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1105
1106         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1107
1108 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1109
1110         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1111         config/mips/tm-irix6.h (NUM_REGS): Delete.
1112         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1113         (temp_saved_regs): Declare as a pointer rather than an array.
1114         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1115         that ``temp_saved_regs'' has storage allocated to it and that
1116         it's the correct size.
1117
1118 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1119
1120         * defs.h (init_last_source_visited): New prototype.
1121         (add_path): Ditto.
1122         * source.c (add_path): New function that adds to a specified path.
1123         (mod_path): Change to call add_path.
1124         (init_last_source_visited): New function to allow interfaces to
1125         initialize static variable: last_source_visited.  Part of fix
1126         for PR gdb/741.
1127         * Makefile.in: Add support for mi/mi-cmd-env.c.
1128
1129 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1130
1131         * frame.h (frame_id_unwind): Declare.
1132         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1133         id_unwind_cache.
1134         (frame_id_unwind_ftype): Declare.
1135         * frame.c (frame_id_unwind): New function.
1136         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1137         (create_new_frame, get_prev_frame): Pass id_unwind to
1138         set_unwind_by_pc.
1139         (frame_saved_regs_id_unwind): New function.
1140         (frame_saved_regs_id_unwind): New function.
1141         * dummy-frame.c (dummy_frame_id_unwind): New function.
1142         (struct dummy_frame): Add field id.
1143         (generic_push_dummy_frame): Initialize `id'.
1144         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1145
1146 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1147
1148         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1149         pass that to set_momentary_breakpoint.  Move comments to where they
1150         belong.
1151         * frame.h (set_current_frame): Delete declaration.
1152         * frame.c (set_current_frame): Delete function.
1153
1154 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1155
1156         * frame.c (frame_extra_info_zalloc): New function.
1157         * frame.h (frame_extra_info_zalloc): Declare.
1158
1159 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1160
1161         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1162         in the previous prototype change to set_momentary_breakpoint.
1163
1164 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1165
1166         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1167         and saw_child_exec.
1168         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1169         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1170         (stop_stepping): Remove outdated check for child vfork events.
1171
1172 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1173
1174         * GDB 5.3 released from gdb_5_3-branch.
1175
1176 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1177
1178         * corelow.c (init_core_ops): Delete references to to_require_attach
1179         and to_require_detach.
1180         * exec.c (init_exec_ops): Likewise.
1181         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1182         hppa_require_detach directly.
1183         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1184         * inftarg.c (child_detach): Remove.
1185         (child_detach_from_process): Rename to child_detach, remove
1186         after_fork argument.
1187         (child_attach): Remove.
1188         (child_attach_to_process): Rename to child_attach, remove after_fork
1189         argument.
1190         (init_child_ops): Delete references to to_require_attach
1191         and to_require_detach.
1192         * infttrace.c (hppa_require_attach): Update comment.
1193         * target.c (cleanup_target, update_current_target)
1194         (init_dummy_target, setup_target_debug): Delete references to
1195         to_require_attach and to_require_detach.
1196         (find_default_require_detach, find_default_require_attach)
1197         (debug_to_require_attach, debug_to_require_detach): Remove
1198         functions.
1199         * target.h (struct target_ops): Remove to_require_attach
1200         and to_require_detach.
1201         (target_require_attach, target_require_detach): Delete macros.
1202         (find_default_require_detach, find_default_require_attach): Delete
1203         prototypes.
1204         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1205
1206 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1207
1208         * frame.c (get_frame_extra_info): New function.
1209         * frame.h (get_frame_extra_info): Declare.
1210
1211 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1212
1213         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1214         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1215         with `struct frame_id'.
1216         (set_longjmp_resume_breakpoint): Ditto.
1217         * infrun.c (handle_inferior_event): Update.
1218         * breakpoint.c (watch_command_1, until_break_command): Update.
1219         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1220         (handle_inferior_event, step_over_function): Update.
1221         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1222         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1223         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1224         * infcmd.c (finish_command, run_stack_dummy): Update.
1225
1226 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1227
1228         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1229         (dwarf2_non_const_array_bound_ignored)
1230         (dwarf2_missing_line_number_section)
1231         (dwarf2_statement_list_fits_in_line_number_section)
1232         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1233         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1234         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1235         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1236         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1237         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1238         (dwarf2_missing_member_fn_type_complaint)
1239         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1240         (dwarf2_const_value_length_mismatch)
1241         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1242         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1243         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1244         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1245         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1246         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1247         complaints using deprecated struct..
1248         (dwarf2_non_const_array_bound_ignored_complaint)
1249         (dwarf2_complex_location_expr_complaint)
1250         (dwarf2_unsupported_at_frame_base_complaint)
1251         (dwarf2_const_value_length_mismatch_complaint)
1252         (dwarf2_macros_too_long_complaint)
1253         (dwarf2_macro_malformed_definition_complaint)
1254         (dwarf2_invalid_attrib_class_complaint): New functions.
1255         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1256         (read_structure_scope, read_array_type, read_common_block)
1257         (read_tag_pointer_type, read_base_type, read_partial_die)
1258         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1259         (new_symbol, dwarf2_const_value, read_type_die)
1260         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1261         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1262         complain() with, possibly indirect, calls to complaint().
1263
1264 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1265
1266         * frame.c (deprecated_get_frame_saved_regs): Rename
1267         get_frame_saved_regs.
1268         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1269         * sparc-tdep.c: Update.
1270         * hppa-tdep.c: Update.
1271         * h8500-tdep.c: Update.
1272
1273 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1274
1275         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1276         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1277         ``char *'' for return and parameter types.
1278         * gdbarch.h, gdbarch.c: Regenerate.
1279         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1280         return type from ``char *'' to ``const char *''.
1281         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1282         const.
1283
1284 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1285
1286         * i386-tdep.c: Include "dummy-frame.h".
1287         (i386_frame_chain, i386_frame_saved_pc): Replace
1288         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1289         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1290
1291 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1292
1293         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1294         Change to a function with predicate.
1295         * gdbarch.h, gdbarch.c: Re-generate.
1296         * frame.c (get_prev_frame): Update.  Test
1297         DEPRECATED_INIT_FRAME_PC_P.
1298         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1299         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1300         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1301         * alpha-tdep.c (alpha_gdbarch_init): Update.
1302         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1303         * mips-tdep.c (mips_gdbarch_init): Update.
1304         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1305         * arm-tdep.c: Update comments.
1306         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1307         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1308         * frv-tdep.c (frv_gdbarch_init): Ditto.
1309         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1310         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1311         * s390-tdep.c (s390_gdbarch_init): Ditto.
1312         * v850-tdep.c (v850_gdbarch_init): Ditto.
1313         * vax-tdep.c (vax_gdbarch_init): Ditto.
1314         * sh-tdep.c (sh_gdbarch_init): Ditto.
1315         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1316         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1317         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1318         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1319         * i386-tdep.c (i386_gdbarch_init): Ditto.
1320         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1321         * cris-tdep.c (cris_gdbarch_init): Ditto.
1322         * avr-tdep.c (avr_gdbarch_init): Ditto.
1323         * arm-tdep.c (arm_gdbarch_init): Ditto.
1324         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1325         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1326
1327 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1328
1329         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1330         CHILD_FOLLOW_FORK.
1331         * hppah-nat.c (saved_vfork_pid): Add.
1332         (child_post_follow_vfork): Remove.
1333         (child_follow_fork): New function.
1334         (child_wait): Call detach_breakpoints after receiving the child vfork.
1335         Call child_resume directly instead of going through resume ().
1336         Make sure we have the exec before reporting the vfork.
1337         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1338         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1339         (follow_fork): New function.  Call target_follow_fork.
1340         (follow_inferior_reset_breakpoints): New function broken out from
1341         old follow_inferior_fork.
1342         (resume): Remove hack to follow exec after vfork.
1343         * inftarg.c (child_post_follow_vfork): Remove.
1344         (child_follow_fork): New function.
1345         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1346         * target.c (cleanup_target): Replace to_post_follow_vfork with
1347         to_follow_fork.
1348         (update_current_target): Likewise.
1349         (setup_target_debug): Likewise.
1350         (debug_to_post_follow_vfork): Remove.
1351         (debug_to_follow_fork): New function.
1352         * target.h (struct target_ops): Replace to_post_folow_vfork with
1353         to_follow_fork.
1354         (child_post_follow_vfork): Remove prototype.
1355         (child_follow_fork): Add prototype.
1356         (target_post_follow_vfork): Remove macro.
1357         (target_follow_fork): Add macro.
1358
1359 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1360
1361         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1362         (child_post_follow_vfork): Cancel pending exec event if we follow
1363         the parent.
1364         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1365         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1366         event at the following wait call if necessary.
1367         * infrun.c (follow_vfork): Don't follow_exec here.
1368         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1369         case about HP/UX 10.20.  Remove code pushed down to
1370         hppah-nat.c:child_wait.
1371         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1372         vfork_in_flight is set.
1373
1374 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1375
1376         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1377         for the parent's fork event.
1378         * infrun.c (handle_inferior_event): Only expect one fork event.
1379         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1380         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1381
1382 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1383
1384         * PROBLEMS: Delete reference to PR gdb/725.
1385         
1386         * MAINTAINERS (gdb.c++): Add David Carlton.
1387
1388 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1389
1390         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1391         * cli/cli-cmds.c: Ditto.
1392
1393 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1394
1395         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1396         function address in <>.
1397         * gdbarch.c: Re-generate.
1398
1399 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1400
1401         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1402
1403 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1404
1405         * linespec.c (symtab_from_filename): New function.
1406         (decode_line_1): Move code into symtab_from_filename.
1407
1408 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1409
1410         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1411
1412 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1413
1414         * f-valprint.c (info_common_command): Use get_frame_pc.
1415         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1416         * ax-gdb.c (agent_command): Ditto.
1417         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1418         (rs6000_pop_frame): Ditto.
1419         (rs6000_frameless_function_invocation): Ditto.
1420         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1421         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1422         * macroscope.c (default_macro_scope): Ditto.
1423         * stack.c (print_frame_info_base): Ditto.
1424         (print_frame, frame_info, print_frame_label_vars): Ditto.
1425         (return_command, func_command, get_frame_language): Ditto.
1426         * infcmd.c (finish_command): Ditto.
1427         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1428         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1429         (break_at_finish_at_depth_command_1): Ditto.
1430         (break_at_finish_command_1): Ditto.
1431         (until_break_command, get_catch_sals): Ditto.
1432         * blockframe.c (func_frame_chain_valid): Ditto.
1433         (frameless_look_for_prologue): Ditto.
1434         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1435
1436 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1437
1438         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1439         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1440
1441 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1442
1443         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1444         to pure functions.
1445         * gdbarch.h, gdbarch.c: Re-generate.
1446         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1447         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1448
1449         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1450         declaration to a function returning a CORE_ADDR.
1451         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1452         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1453         (init_frame_pc_default): Ditto.
1454         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1455         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1456         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1457         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1458         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1459         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1460
1461         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1462         to init_frame_pc_noop.
1463         (i386_interix_init_frame_pc): Delete function.
1464         * z8k-tdep.c (init_frame_pc): Delete function.
1465         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1466         (INIT_FRAME_PC_FIRST): Ditto.
1467         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1468         (INIT_FRAME_PC_FIRST): Ditto.
1469         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1470         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1471         init_frame_pc_noop.
1472         (INIT_FRAME_PC_FIRST): Convert to an expression.
1473         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1474
1475 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1476
1477         * blockframe.c: Use get_frame_base instead of directly accessing
1478         the `struct frame_info' member frame.
1479         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1480         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1481
1482 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1483
1484         * Makefile.in (readline_h): Define.
1485         (completer.o): Depend on readline_h.
1486         (corelow.o): Ditto.
1487         (event-top.o): Ditto.
1488         (exec.o): Ditto.
1489         (solib.o): Ditto.
1490         (source.o): Ditto. 
1491         (symfile.o): Ditto. 
1492         (symmisc.o): Ditto. 
1493         (top.o): Ditto.
1494         (tracepoint.o): Ditto. 
1495         (utils.o): Ditto.
1496         (cli-dump.o): Ditto.
1497         (tui-hooks.o): Ditto. 
1498         (tuiWin.o): Ditto. 
1499
1500 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1501
1502         More cleanup from import of readline 4.3.
1503         * completer.h (complete_line, readline_line_completion_function):
1504         Update prototypes.
1505         (line_completion_function): Removed, not used outside of completer.c.
1506         * completer.c (readline_line_completion_function,
1507         complete_function, line_completion_function): Use const for first
1508         parameter.
1509         (line_completion_function): Make static.
1510         (filename_completer): filename_completion_function is now called
1511         rl_filename_completion_function
1512         * corelow.c: Include <readline/readline.h>.
1513         * exec.c: Ditto.
1514         * solib.c: Ditto.
1515         * source.c: Ditto.
1516         * symfile.c: Ditto.
1517         * symmisc.c: Ditto.
1518         * top.c (init_main): No need to coerce
1519         readline_line_completion_function anymore.
1520         * cli/cli-dump.c: Include <readline/readline.h>.
1521
1522 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1523
1524         * stack.c (frame_info): Use get_prev_frame.
1525         * blockframe.c (frame_address_in_block): Ditto.
1526         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1527         (rs6000_frameless_function_invocation): Ditto.
1528         (rs6000_frame_saved_pc): Ditto.
1529         (rs6000_frame_chain): Ditto.
1530         * arch-utils.c (init_frame_pc_default): Ditto.
1531
1532 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1533
1534         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1535         Delete redundant definition.
1536
1537 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1538
1539         Import of readline 4.3:
1540         * cli/cli-cmds.c: Include readline/tilde.h.
1541         * cli/cli-setshow.c: Ditto.
1542         * defs.h: Don't declare tilde_expand anymore, since readline
1543         exports it.
1544
1545 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1546
1547         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1548         -Werror on this file.
1549
1550 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1551
1552         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1553         the format name.
1554         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1555         * gdbarch.c: Regenerate.
1556         
1557 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1558
1559         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1560         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1561         provide a default value.
1562         * gdbarch.h, gdbarch.c: Regenerate.
1563         * frame.c (get_prev_frame): Update.  Check
1564         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1565         * s390-tdep.c (s390_gdbarch_init): Update.
1566         * mips-tdep.c (mips_gdbarch_init): Update.
1567         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1568         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1569         * alpha-tdep.c (alpha_gdbarch_init): Update.
1570         
1571 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1572
1573         * ia64-linux-nat.c: Include gdb_string.h.
1574         * alpha-nat.c: Ditto.
1575         * ppc-linux-nat.c: Ditto.
1576         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1577         Update dependencies.
1578
1579 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1580
1581         * gdbthread.h: Include "frame.h".
1582         (struct thread_info): Replace step_frame_address with
1583         step_frame_id.
1584         * inferior.h: Include "frame.h".
1585         (step_frame_id): Replace external variable step_frame_address.
1586         * gdbthread.h (save_infrun_state): Replace step_frame_address
1587         parameter with step_frame_id parameter.
1588         (load_infrun_state): Ditto.
1589         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1590         * infcmd.c (step_frame_id, step_1, step_once): Update.
1591         * thread.c (load_infrun_state, save_infrun_state): Update.
1592         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1593         (handle_inferior_event, step_over_function): Update.
1594         (normal_stop, context_switch, restore_inferior_status): Update.
1595         (struct inferior_status): Replace step_frame_address with
1596         step_frame_id.
1597
1598 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1599
1600         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1601         DW_TAG_member as well as a declaration as being a C++ static data
1602         member.
1603         (read_structure_scope): Combine tests for DW_TAG_member and
1604         DW_TAG_variable.
1605
1606 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1607
1608         * linespec.c (decode_compound): New function.
1609         (decode_line_1): Move code into decode_compound.
1610
1611 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1612
1613         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1614         argument.
1615         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1616         the static block.  See PR gdb/804.
1617
1618 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1619
1620         * symtab.c (lookup_symbol_aux_block): New function.
1621         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1622
1623 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1624
1625         * gdbarch.sh: Dump the predicate function and macro values.
1626         (read): Print error on standard error.
1627         * gdbarch.c: Regenerate.
1628         
1629 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1630
1631         * Makefile.in (mips_tdep_h): Define.
1632         (mips-tdep.o): Add mips_tdep_h to dependency list.
1633         * mips-tdep.h: New file.
1634         * mips-tdep.c (mips-tdep.h): Include.
1635         (enum mips_abi): Move to mips-tdep.h.
1636         (mips_abi): New function.
1637
1638 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1639
1640         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1641
1642 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1643
1644         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1645         function.
1646         (lookup_symbol_aux_minsyms): New function.
1647
1648 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1649
1650         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1651
1652 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1653
1654         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1655         which is an obsolete macro name.
1656
1657 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1658
1659         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1660         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1661
1662 2002-12-03  H.J. Lu  (hjl@gnu.org)
1663
1664         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1665         (create_breakpoints): Make sure the addr_string field is not
1666         NULL.
1667
1668 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1669
1670         * sparc-nat.c (fetch_inferior_registers)
1671         (store_inferior_registers): Add comment on problem of LWP vs
1672         threads.
1673         
1674         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1675         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1676         (lin_lwp_store_registers): Remove.
1677         (init_lin_lwp_ops): Use fetch_inferior_registers
1678         and store_inferior_registers directly.
1679         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1680         (store_inferior_registers): Likewise.
1681         Fix PR gdb/725.
1682
1683 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1684
1685         * frame.h (get_frame_id): Convert to a function.
1686         (null_frame_id, frame_id_p): Declare.
1687         (frame_id_eq, frame_id_inner): Declare.
1688         (frame_id_build): New function.
1689         * frame.c (get_frame_id): Update.  Use null_frame_id.
1690         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1691         frame_id_inner.
1692         (null_frame_id, frame_id_p): Define.
1693         (frame_id_eq, frame_id_inner): Define.
1694         (frame_id_build): New function.
1695         * varobj.c (varobj_create): Update.
1696         (varobj_update): Update.
1697         * valops.c (value_assign): Update.
1698         (new_root_variable): Update.
1699         * infrun.c (save_inferior_status): Update.
1700         * breakpoint.c (watch_command_1): Update.
1701
1702 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1703
1704         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1705         (SNAP2): Likewise.
1706
1707 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1708
1709         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1710         patch.
1711
1712         * PROBLEMS: Mention PR gdb/725.
1713
1714 2002-12-03  Andreas Schwab  <schwab@suse.de>
1715
1716         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1717
1718 2002-12-02  Adam Fedor  <fedor@gnu.org>
1719             Klee Dienes  <kdienes@apple.com>
1720
1721         * objc-lang.c (objc_printstr): Add width arg to match
1722         printstr prototype.
1723         (compare_selectors): Add 'const' to arg types.
1724         (compare_classes): Likewise.
1725         (find_imps): Cast msym pointer to avoid compiler warning.
1726         (print_object_command): Validate the address before
1727         passing it to the print routine.
1728         (find_objc_msgcall_submethod): Change function argument to
1729         return an int.
1730         * objc-lang.h: Add 'extern' to all function declarations.
1731         (value_nsstring): Add declaration.
1732
1733 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1734
1735         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1736         Fixes a build failure on HP/UX.
1737
1738         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1739         failure on HP/UX. 
1740         (hpread_has_name): Advance declaration to avoid a compilation warning.
1741         (pst_syms_count): Add missing variable type. By change, the compiler
1742         was defaulting to int, which seems a good choice. Fixes a compilation
1743         warning.
1744         (pst_syms_size): Likewise.
1745  
1746 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1747
1748         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1749         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1750         later to set the proper gdbarch methods depending on the osabi.
1751         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1752
1753 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1754
1755         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1756         * osabi.c (gdb_osabi_name): Add strings images for the two new
1757         enum values.
1758         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1759
1760 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1761
1762         * MAINTAINERS (Java): Global maintainers are responible for Java.
1763         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1764         part Java maintainers.
1765
1766 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1767
1768         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1769         Fixes a compilation failure on AiX.
1770
1771 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1772
1773         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1774         why aix-thread.o is not listed.
1775
1776 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1777
1778         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1779         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1780         * gdbarch.h, gdbarch.c: Re-generate.
1781         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1782         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1783         * config/pa/tm-hppa.h, frame.h: Update.
1784         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1785         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1786         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1787         * cris-tdep.c, alpha-tdep.c: Update.
1788         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1789         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1790         (get_prev_frame): Ditto.
1791
1792 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1793
1794         * exec.c (xfer_memory): Replace boolean with int.
1795         * p-exp.y: Use 0 instead of false.
1796         * corelow.c (gdb_check_format): Change return type to int from
1797         boolean.
1798         * utils.c: Don't include <curses.h> or <term.h> first.
1799
1800 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1801
1802         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1803         (m68hc11_register_byte): Remove.
1804         (m68hc11_gdbarch_init): Don't set the above.
1805
1806 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1807
1808         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1809         by calling get_selected_frame.
1810         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1811         set_current_frame, create_new_frame, select_frame and
1812         get_current_frame.
1813         * remote-e7000.c (e7000_start_remote): Ditto.
1814         * remote-mips.c (common_open): Ditto
1815         * remote-rdp.c (remote_rdp_open): Ditto.
1816
1817 2002-11-29  Andreas Schwab  <schwab@suse.de>
1818
1819         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1820         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1821         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1822         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1823         read_memory_unsigned_integer instead of read_memory_integer when
1824         dealing with addresses and instruction opcodes.
1825         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1826         (m68k_linux_frame_saved_pc): Likewise.
1827
1828 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1829
1830         * stack.c (selected_frame, select_frame): Move from here ...
1831         * frame.c (selected_frame, select_frame): ... to here.  Include
1832         "language.h".
1833         * Makefile.in (frame.o): Update dependencies.
1834         * frame.c (get_selected_frame): New function.
1835         * frame.h (get_selected_frame): Declare.
1836         (deprecated_selected_frame): Rename selected_frame.
1837         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1838         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1839         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1840         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1841         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1842         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1843         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1844         * z8k-tdep.c, cli/cli-cmds.c: Update.
1845         
1846 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1847
1848         * frame.h (get_selected_block): Add comments.
1849
1850 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1851
1852         * frame.c (pc_notcurrent): New function.
1853         (find_frame_sal): New function.
1854         * frame.h (find_frame_sal): Declare.
1855         (struct symtab_and_line): Add opaque declaration.
1856         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1857         find_pc_line.
1858         (frame_info): Ditto.
1859         * ada-lang.c (find_printable_frame): Ditto.
1860
1861 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1862
1863         * configure.in: Check that the pthdebug library is recent enough
1864         before enabling thread support on native AiX.
1865         * configure: Regenerate.
1866
1867         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1868         from the list of object files as it is now appended by configure
1869         if thread support is enabled.
1870         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1871         if thread support is enabled.
1872
1873 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1874
1875         * stack.c (get_selected_block): In-line get_current_block.
1876         * frame.h (get_current_block): Delete declaration.
1877         * blockframe.c (get_current_block): Delete function.
1878
1879 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1880
1881         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1882         USE_GENERIC_DUMMY_FRAMES.
1883         * gdbarch.h, gdbarch.c: Regenerate.
1884         * valops.c, frame.c: Update.
1885         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1886         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1887         * config/pa/tm-hppa.h, blockframe.c: Update.
1888         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1889         * m68k-tdep.c, alpha-tdep.c: Ditto.
1890
1891         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1892         * mips-tdep.c: Ditto.
1893
1894 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1895
1896         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1897         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1898         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1899         * gdbarch.c, gdbarch.h: Re-generate.
1900         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1901         (CALL_DUMMY_LOCATION): Delete macro definition.
1902         (PC_IN_CALL_DUMMY): Delete macro definitions.
1903         
1904         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1905         default is already generic_pc_in_call_dummy.
1906         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1907         * v850-tdep.c (v850_gdbarch_init): Ditto.
1908         * sh-tdep.c (sh_gdbarch_init): Ditto.
1909         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1910         * mips-tdep.c (mips_gdbarch_init): Ditto.
1911         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1912         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1913         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1914         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1915         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1916         * avr-tdep.c (avr_gdbarch_init): Ditto.
1917         
1918         * arm-tdep.c (arm_gdbarch_init): Do not set
1919         use_generic_dummy_frames, default is already 1.
1920         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1921         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1922         * v850-tdep.c (v850_gdbarch_init): Ditto.
1923         * sh-tdep.c (sh_gdbarch_init): Ditto.
1924         * s390-tdep.c (s390_gdbarch_init): Ditto.
1925         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1926         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1927         * mips-tdep.c (mips_gdbarch_init): Ditto.
1928         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1929         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1930         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1931         * i386-tdep.c (i386_gdbarch_init): Ditto.
1932         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1933         * frv-tdep.c (frv_gdbarch_init): Ditto.
1934         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1935         * cris-tdep.c (cris_gdbarch_init): Ditto.
1936         * avr-tdep.c (avr_gdbarch_init): Ditto.
1937
1938         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1939         call_dummy_location, default is already AT_ENTRY_POINT.
1940         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1941         * v850-tdep.c (v850_gdbarch_init): Ditto.
1942         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1943         * sh-tdep.c (sh_gdbarch_init): Ditto.
1944         * s390-tdep.c (s390_gdbarch_init): Ditto.
1945         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1946         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1947         * mips-tdep.c (mips_gdbarch_init): Ditto.
1948         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1949         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1950         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1951         * i386-tdep.c (i386_gdbarch_init): Ditto.
1952         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1953         * frv-tdep.c (frv_gdbarch_init): Ditto.
1954         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1955         * cris-tdep.c (cris_gdbarch_init): Ditto.
1956         * avr-tdep.c (avr_gdbarch_init): Ditto.
1957         * arm-tdep.c (arm_gdbarch_init): Ditto.
1958         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1959
1960 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1961
1962         * frame.h: Update comments on set_current_frame, create_new_frame,
1963         flush_cached_frames, reinit_frame_cache, select_frame and
1964         selected_frame.
1965         
1966 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1967
1968         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1969         deprecated pc_in_call_dummy function.
1970         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1971         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1972         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1973         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1974         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1975
1976 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1977
1978         * Makefile.in: Remove Tix dependencies.
1979         * acinclude.m4: Ditto.
1980         * aclocal.m4: Ditto.
1981         * configure.in: Ditto.
1982         * configure: Regenerated.
1983         
1984 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1985
1986         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1987         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1988         * gdbarch.c: Re-generate.
1989         
1990 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1991
1992         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1993         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1994         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1995         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1996         pc_in_call_dummy_at_entry_point.
1997         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1998         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1999         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2000         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2001         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2002         pc_in_call_dummy_on_stack.
2003         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2004         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2005         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2006         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2007         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2008         
2009 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2010
2011         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2012         pc_in_call_dummy_before_text_end
2013         (deprecated_pc_in_call_dummy_after_text_end): Rename
2014         pc_in_call_dummy_after_text_end.
2015         (deprecated_pc_in_call_dummy_on_stack): Rename
2016         pc_in_call_dummy_on_stack.
2017         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2018         pc_in_call_dummy_at_entry_point.
2019         * m68k-tdep.c (m68k_gdbarch_init): Update.
2020         * s390-tdep.c (s390_gdbarch_init): Update.
2021         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2022         * vax-tdep.c (vax_gdbarch_init): Update.
2023         * sparc-tdep.c (sparc_gdbarch_init): Update.
2024         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2025         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2026         * i386-tdep.c (i386_gdbarch_init): Update.
2027         * frv-tdep.c (frv_gdbarch_init): Update.
2028         * cris-tdep.c (cris_gdbarch_init): Update.
2029         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2030         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2031         (deprecated_pc_in_call_dummy_after_text_end)
2032         (deprecated_pc_in_call_dummy_on_stack)
2033         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2034         * alpha-tdep.c (alpha_gdbarch_init): Update.
2035
2036 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2037
2038         * acconfig.h (HAVE_PREAD64): Add.
2039         * configure.in: Check for pread64.
2040         * config.in: Regenerated.
2041         * configure: Regenerated.
2042         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2043         * linux-proc.c (linux_proc_xfer_memory): New function.
2044         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2045
2046 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2047
2048         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2049         pdi's with no name.
2050
2051 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2052
2053         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2054         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2055
2056 2002-11-25  Jim Blandy  <jimb@redhat.com>
2057
2058         * symfile.c (init_objfile_sect_indices): New function.
2059         (default_symfile_offsets): Move the section-index-initializing
2060         stuff into init_objfile_sect_indices, and call that.
2061
2062         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2063         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2064
2065         * symfile.c (syms_from_objfile): Adjust indentation.
2066
2067         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2068         || info_verbose isn't true.
2069
2070 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2071
2072         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2073         default to get_frame_base.
2074         * gdbarch.h, gdbarch.c: Regenerate.
2075         * arch-utils.c (default_frame_address): Delete function.
2076         * arch-utils.h (default_frame_address): Delete declaration
2077
2078 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2079
2080         * varobj.c (find_frame_addr_in_frame_chain):
2081         Use get_frame_base instead of FRAME_FP,
2082         obvious fix.
2083
2084 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2085
2086         * frame.h (FRAME_FP): Delete macro.
2087         (get_frame_base): New function declaration.
2088         * frame.c (get_frame_base): New function.
2089         (get_frame_id): Use ->frame.
2090         (frame_find_by_id): Rewrite to use get_frame_id.
2091         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2092         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2093         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2094         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2095         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2096         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2097         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2098
2099 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2100
2101         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2102
2103 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2104
2105         * frame.c (set_unwind_by_pc): Revert change below, use
2106         PC_IN_CALL_DUMMY.
2107         (get_prev_frame): Ditto.
2108
2109 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2110
2111         * dummy-frame.c (pc_in_dummy_frame): New function.
2112         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2113         (find_dummy_frame): Update comment.
2114         (generic_pop_current_frame): Use get_frame_type.
2115         * dummy-frame.h (pc_in_dummy_frame): Declare.
2116         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2117         (create_new_frame): Use pc_in_dummy_frame.
2118         (get_prev_frame): Use pc_in_dummy_frame.
2119         (frame_saved_regs_register_unwind): Use get_prev_frame.
2120         (deprecated_generic_get_saved_register): Use get_prev_frame.
2121
2122 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2123
2124         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2125         from here ...
2126         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2127         (varobj_create): Note that frame ID should be used.
2128         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2129
2130 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2131
2132         * breakpoint.c: Include "gdb_assert.h".
2133         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2134         not being used.
2135         * Makefile.in (breakpoint.o): Update dependencies.
2136         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2137         deprecated_frame_in_dummy.
2138         * stack.c (print_frame_info_base): Ditto.
2139         (frame_info): Ditto.
2140         (print_frame_info_base): Ditto.  Delete dead code.
2141         
2142 2002-11-23  Andreas Schwab  <schwab@suse.de>
2143
2144         * Makefile.in (m68k_tdep_h): Define.
2145         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2146         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2147         * m68k-tdep.c: Move register number enum ...
2148         * m68k-tdep.h: ... to this new file and rename the constants from
2149         E_* to M68K_*.  All uses changed.
2150         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2151         * abug-rom.c: Include "m68k-tdep.h".  Use
2152         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2153         * cpu32bug-rom.c: Likewise.
2154         * dbug-rom.c: Likewise.
2155         * m68k-tdep.c: Likewise.
2156         * m68klinux-nat.c: Likewise.
2157         * remote-est.c: Likewise.
2158         * rom68k-rom.c: Likewise.
2159         * config/m68k/tm-linux.h: Likewise.
2160
2161 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2162
2163         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2164         dummy frame initialization code.
2165         * mips-tdep.c (mips_gdbarch_init): Ditto.
2166
2167 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2168
2169         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2170         attach will hang.
2171
2172 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2173
2174         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2175         to default_frame_address.
2176         * gdbarch.h, gdbarch.c: Re-generate.
2177
2178         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2179         or frame_locals_address to default_frame_address.
2180         * m68k-tdep.c (m68k_gdbarch_init): Update.
2181         * i386-tdep.c (i386_gdbarch_init): Update.
2182         * frv-tdep.c (frv_gdbarch_init): Update.
2183         * sh-tdep.c (sh_gdbarch_init): Update.
2184         * v850-tdep.c (v850_gdbarch_init): Update.
2185         * sparc-tdep.c (sparc_gdbarch_init): Update.
2186         * mips-tdep.c (mips_gdbarch_init): Update.
2187         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2188         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2189         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2190
2191         * cris-tdep.c (cris_frame_args_address): Delete function.
2192         (cris_frame_locals_address): Delete function.
2193         (cris_gdbarch_init): Do not set frame_args_address or
2194         frame_locals_address.
2195
2196 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2197
2198         * thread-db.c (thread_db_load): Tell the user what's going on
2199         if dlopen fails on libthread_db.
2200
2201 2002-11-23  Andreas Schwab  <schwab@suse.de>
2202
2203         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2204         invariant return values.
2205
2206 2002-11-22  Andreas Schwab  <schwab@suse.de>
2207
2208         * valops.c (value_slice): Move declaration of `offset' to avoid
2209         warning.
2210
2211 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2212
2213         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2214         (struct so_stuff): Add end_addr field.
2215         (register_loaded_dll): Calculate and store end address of loaded dll.
2216         (solib_address): New function.
2217         (child_solib_loaded_library_pathname): Pass carefully constructed
2218         section info to safe_symbol_file_add rather than ignoring it.
2219         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2220         DLL is loaded.
2221         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2222         (child_create_inferior): Fix a compiler warning.
2223         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2224         (solib_address): Declare new function.
2225
2226 2002-11-22  Andreas Schwab  <schwab@suse.de>
2227
2228         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2229         and FPS registers.
2230
2231 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2232
2233         * maint.c (_initialize_maint_cmds): Fix typo.  From
2234         Francesco Potorti` <pot@gnu.org>.
2235
2236 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2237
2238         * mips-tdep.c (mips_dump_tdep): Delete references to
2239         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2240         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2241         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2242         * printcmd.c (build_address_symbolic): Delete calls to
2243         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2244         (address_info): Ditto.
2245         Fix PR gdb/773.
2246         
2247 2002-11-19  Klee Dienes  <kdienes@apple.com>
2248             Adam Fedor  <fedor@gnu.org>
2249
2250         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2251         the ability to explicitly specify the quote characters and word
2252         break characters; if NULL is specified for either, use the old
2253         behavior of using the characters used by the completer.
2254         (skip_chars): New function.  Convenience wrapper around
2255         skip_quoted_chars to provide the original skip_chars behavior.
2256         * completer.h (skip_quoted_chars): Add prototype.
2257
2258 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2259
2260         Problems reported by Paul Eggert.
2261         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2262
2263 2002-11-19  Andreas Schwab  <schwab@suse.de>
2264
2265         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2266         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2267         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2268         (m68k_linux_frame_saved_pc): Move to ...
2269         * m68klinux-tdep.c: ... here.  New file.
2270         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2271         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2272
2273 2002-11-19  Adam Fedor  <fedor@gnu.org>
2274
2275         * objc-exp.y: Revert to old skip_quoted usage.
2276
2277 2002-11-19  Adam Fedor  <fedor@gnu.org>
2278
2279         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2280         (objc_lang_h): Define.
2281         (YYFILES): Add objc-exp.tab.c.
2282         (local-maintainer-clean): Remove objc-exp.tab.c.
2283         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2284         
2285 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2286
2287         * p-exp.y (typecast rule): Add automatic dereference of
2288         pascal classes if needed.
2289         (THIS): Set current_type.
2290         Automatically dereference pascal classes. 
2291         (typebase rule): Add ^typebase recognition.
2292
2293 2002-11-18  Adam Fedor  <fedor@gnu.org>
2294
2295         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2296         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2297         (op_name): Handle OP_OBJC_SELF.
2298         * Makefile.in (expprint.o): Add additional depends.
2299
2300 2002-11-18  Adam Fedor  <fedor@gnu.org>
2301
2302         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2303         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2304         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2305         * objc-exp.y: Likewise. 
2306
2307 2002-11-18  Adam Fedor  <fedor@gnu.org>
2308
2309         * gdb/parser-defs.h: (struct objc_class_str): New structure
2310         for parsing ObjC classes.
2311
2312 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2313
2314         * stack.c (frame_relative_level): Copy function from here ...
2315         * frame.c (frame_relative_level): ...to here.
2316
2317 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2318
2319         * frame.h (enum frame_type): Define.
2320         (get_frame_type): Declare.
2321         (struct frame_info): Add field `type'.  Delete field
2322         signal_handler_caller.
2323         (deprecated_set_frame_signal_handler_caller): Declare.
2324         * frame.c (get_frame_type): New function.
2325         (deprecated_set_frame_type): New function.
2326         (create_new_frame): Set the frame's type.
2327         (get_prev_frame): Similar.
2328         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2329         * s390-tdep.c: Ditto.
2330         * m68klinux-nat.c: Ditto.
2331         * ns32k-tdep.c: Ditto.
2332         * x86-64-linux-tdep.c: Ditto.
2333         * vax-tdep.c: Ditto.
2334         * rs6000-tdep.c: Ditto.
2335         * ppc-linux-tdep.c: Ditto.
2336         * i386-interix-tdep.c: Ditto.
2337         * mips-tdep.c: Ditto.
2338         * m68k-tdep.c: Ditto.
2339         * hppa-tdep.c: Ditto.
2340         * ia64-tdep.c: Ditto.
2341         * cris-tdep.c: Ditto.
2342         * arm-tdep.c: Ditto.
2343         * alpha-tdep.c: Ditto.
2344         * i386-tdep.c: Ditto.
2345         * stack.c: Ditto.
2346         * ada-lang.c: Ditto.
2347         * blockframe.c: Update.
2348         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2349         deprecated_set_frame_type instead of signal_handler_caller.
2350         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2351         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2352         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2353
2354 2002-11-18   Klee Dienes  <kdienes@apple.com>
2355
2356         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2357
2358 2002-11-18  Klee Dienes  <kdienes@apple.com>
2359
2360         * buildsym.c (pop_context): Add comment.
2361         
2362 2002-11-18  Klee Dienes  <kdienes@apple.com>
2363
2364         * buildsym.h (pop_context): Convert to function, defined in
2365         buildsym.c.
2366         * buildsym.c: Include gdb_assert.h.
2367         (pop_context): Implement as C function.  Add check for stack
2368         underflow.
2369         * dbxread.c (process_one_symbol): Complain and stop processing
2370         that symbol if we are already at the top of the context stack for
2371         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2372         when processing N_RBRAC.
2373
2374 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2375
2376         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2377         define.
2378         (struct target_waitstatus): Add opaque definition.
2379         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2380         * exec.c (init_exec_ops): Likewise.
2381         * fork-child.c (clone_and_follow_inferior): Remove.
2382         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2383         * inferior.h (clone_and_follow_inferior): Remove prototype.
2384         * infrun.c (follow_fork_mode_both): Remove.
2385         (follow_fork_mode_kind_names): Remove commented out "both".
2386         (follow_inferior_fork): Remove follow_fork_mode_both support.
2387         * inftarg.c (child_clone_and_follow_inferior): Remove.
2388         (child_post_follow_inferior_by_clone): Remove.
2389         (init_child_ops): Don't set to_clone_and_follow_inferior
2390         or to_post_follow_inferior_by_clone.
2391         * target.c (default_clone_and_follow_inferior): Remove.
2392         (cleanup_target): Don't set to_clone_and_follow_inferior
2393         or to_post_follow_inferior_by_clone.
2394         (find_default_clone_and_follow_inferior): Remove.
2395         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2396         (debug_to_clone_and_follow_inferior): Remove.
2397         (debug_to_post_follow_inferior_by_clone): Remove.
2398         (setup_target_debug): Don't set to_clone_and_follow_inferior
2399         or to_post_follow_inferior_by_clone.
2400         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2401         and to_post_follow_inferior_by_clone.
2402         (child_clone_and_follow_inferior): Remove prototype.
2403         (child_post_follow_inferior_by_clone): Remove prototype.
2404         (target_clone_and_follow_inferior): Remove macro.
2405         (target_post_follow_inferior_by_clone): Remove macro.
2406         (find_default_clone_and_follow_inferior): Remove prototype.
2407
2408 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2409
2410         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2411         inferior_has_vforked, and inferior_has_execd instead of
2412         target_has_forked, target_has_vforked, and target_has_execd.
2413         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2414         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2415         (CHILD_WAIT): Define.
2416         (child_wait): Add prototype.
2417         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2418         Add prototype.
2419         (hpux_has_vforked): Likewise, from child_has_vforked.
2420         (hpux_has_execd): Likewise, from child_has_execd.
2421         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2422         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2423         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2424         and hpux_has_syscall_event instead of the target hooks.
2425         * infrun.c (inferior_has_forked, inferior_has_vforked)
2426         (inferior_has_execd): New functions.
2427         * inftarg.c (not_same_real_pid): Remove.
2428         (child_wait): Remove references to not_same_real_pid,
2429         target_has_forked, target_has_vforked, target_has_execd,
2430         and target_has_syscall_event.
2431         (child_has_forked, child_has_vforked, child_has_execd)
2432         (child_has_syscall_event): Remove.
2433         (init_child_ops): Remove references to child_has_forked,
2434         child_has_vforked, child_has_execd, and child_has_syscall_event.
2435         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2436         (hpux_has_vforked): Likewise, from child_has_vforked.
2437         (hpux_has_execd): Likewise, from child_has_execd.
2438         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2439         * target.c (cleanup_target): Remove references to
2440         to_has_forked, to_has_vforked, to_has_execd, and
2441         to_has_syscall_event.
2442         (update_current_target): Likewise.
2443         (setup_target_debug): Likewise.
2444         (debug_to_has_forked): Remove.
2445         (debug_to_has_vforked): Remove.
2446         (debug_to_has_execd): Remove.
2447         (debug_to_has_syscall_event): Remove.
2448         * target.h (struct target_ops): Remove to_has_forked.
2449         to_has_vforked, to_has_execd, and to_has_syscall_event.
2450         (child_has_forked, child_has_vforked, child_has_execd)
2451         (child_has_syscall_event): Remove prototypes.
2452         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2453         prototypes.
2454         (target_has_forked, target_has_vforked, target_has_execd)
2455         (target_has_syscall_event): Remove macros.
2456
2457 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2458
2459         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2460         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2461         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2462         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2463         * target.c (cleanup_target): Remove reference to
2464         to_can_follow_vfork_prior_to_exec.
2465         (update_current_target): Likewise.
2466         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2467         (setup_target_debug): Remove reference to
2468         to_can_follow_vfork_prior_to_exec.
2469         * target.h (struct target_ops): Remove
2470         to_can_follow_vfork_prior_to_exec.
2471         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2472         (target_can_follow_vfork_prior_to_exec): Remove definition.
2473         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2474         define.
2475         * infrun.c (follow_vfork_when_exec): Remove.
2476         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2477         (follow_exec): Likewise.
2478         (handle_inferior_event): Likewise.
2479         (keep_going): Likewise.
2480
2481 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2482
2483         * frame.c (generic_unwind_get_saved_register): Make static.
2484         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2485         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2486         defaults to generic_unwind_get_saved_register.
2487         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2488         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2489         * frv-tdep.c (frv_gdbarch_init): Ditto.
2490         * i386-tdep.c (i386_gdbarch_init): Ditto.
2491         * s390-tdep.c (s390_gdbarch_init): Ditto.
2492         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2493         * v850-tdep.c (v850_gdbarch_init): Ditto.
2494         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2495         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2496         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2497
2498 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2499
2500         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2501         i386-tdep.c.
2502
2503 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2504
2505         * frame.h (sigtramp_saved_pc): Delete declaration.
2506         * blockframe.c (sigtramp_saved_pc): Delete function.
2507         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2508         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2509         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2510         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2511
2512 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2513
2514         * frame.c (frame_pc_unwind): New function.
2515         (frame_saved_regs_pc_unwind): New function.
2516         (frame_register_unwind): Pass unwind_cache instead of
2517         register_unwind_cache.
2518         (set_unwind_by_pc): Add unwind_pc parameter, set.
2519         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2520         (get_prev_frame): Ditto.
2521         * frame.h (frame_pc_unwind_ftype): Declare.
2522         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2523         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2524         (frame_pc_unwind): Declare.
2525         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2526         (struct dummy_frame): Add comment mentioning that values are for
2527         previous frame.
2528         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2529         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2530         (generic_file_frame_chain_valid): Ditto.
2531         * stack.c (frame_info): Ditto.
2532
2533 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2534
2535         * linespec.c (locate_first_half): New function.
2536         (decode_line_1): Move code into locate_first_half.
2537
2538 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2539
2540         * complaints.h: Add comment explaining how to eliminate a
2541         deprecated_complain call.
2542         * complaints.h: Fix spelling errors.
2543
2544 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2545
2546         * printcmd.c: Remove #include "disasm.h".
2547
2548 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2549
2550         * frame.h: Move the most relevant interface functions to the start
2551         of the file.
2552
2553 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2554
2555         * regcache.h (deprecated_registers): Rename registers.
2556         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2557         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2558         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2559         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2560         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2561         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2562         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2563         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2564         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2565         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2566         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2567         * v850ice.c: Update.
2568
2569 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2570
2571         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2572         NULL buffer.
2573
2574 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2575
2576         * regcache.h (deprecated_read_register_bytes): Rename
2577         read_register_bytes.
2578         (deprecated_write_register_bytes): Rename write_register_bytes.
2579         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2580         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2581         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2582         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2583         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2584         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2585         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2586         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2587         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2588         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2589         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2590         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2591         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2592         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2593
2594 2002-11-13  Jim Blandy  <jimb@redhat.com>
2595
2596         * findvar.c (read_var_value): Doc fix.
2597
2598 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2599
2600         * regcache.c (struct regcache): Replace passthough_p with
2601         readonly_p.
2602         (regcache_xmalloc): Initialize readonly_p.
2603         (build_regcache): Initialize readonly_p.
2604         (regcache_save): New function.
2605         (regcache_restore): New function.
2606         (regcache_cpy): Re-implement using regcache_save and
2607         regcache_restore.
2608         (regcache_raw_read): Update.
2609         (regcache_cooked_read): When a read-only cache, checked for cached
2610         pseudo register values.
2611         (regcache_raw_write): Assert that the cache is not read-only.
2612         Remove code handling a non-passthrough cache.
2613         * regcache.h (regcache_save): Declare.
2614         (regcache_restore): Declare.
2615
2616 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2617
2618         * regcache.c (struct regcache_descr): Add fields
2619         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2620         (init_legacy_regcache_descr): Compute the size of a cooked
2621         register cache and then assign that to sizeof_raw_registers.  Set
2622         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2623         (init_legacy_regcache_descr): Ditto.
2624
2625 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2626
2627         * regcache.c (register_buffer): Move to near start of file, update
2628         description.
2629         (regcache_raw_read): Use.
2630         (regcache_raw_write): Use.
2631         (struct regcache): Rename raw_registers to registers and
2632         raw_register_valid_p to register_valid_p.
2633         (regcache_xmalloc): Update.
2634         (regcache_xfree): Update.
2635         (register_buffer): Update.
2636         (regcache_cpy): Update.
2637         (regcache_cpy_no_passthrough): Update.
2638         (regcache_valid_p): Update.
2639         (deprecated_grub_regcache_for_registers): Update.
2640         (deprecated_grub_regcache_for_register_valid): Update.
2641         (set_register_cached): Update.
2642         (regcache_raw_write): Update.
2643
2644 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2645
2646         * p-exp.y (name_not_typename): Use copy_name to
2647         set current_type variable for fields of THIS.
2648
2649 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2650
2651         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2652         * monitor.c (init_base_monitor_ops): Likewise.
2653         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2654         * remote-array.c (init_array_ops): Likewise.
2655         * remote-e7000.c (init_e7000_ops): Likewise.
2656         * remote-es.c (init_es1800_ops): Likewise.
2657         (init_es1800_child_ops): Likewise.
2658         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2659         * remote-sim.c (init_gdbsim_ops): Likewise.
2660         * remote-st.c (init_st2000_ops): Likewise.
2661         * sol-thread.c (init_sol_core_ops): Likewise.
2662         (init_sol_thread_ops): Likewise.
2663         * v850ice.c (init_850ice_ops): Likewise.
2664         * win32-nat.c (init_child_ops): Likewise.
2665         * wince.c (init_child_ops): Likewise.
2666
2667 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2668
2669         * utils.c (gdb_realpath): Make rp a constant pointer.
2670
2671 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2672
2673         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2674         a constant buffer; cannonicalize_file_name(); realpath() with a
2675         pathconf() defined buffer, xstrdup().
2676
2677 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2678
2679         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2680         to hang2.C; hang3.c to hang3.C.
2681
2682 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2683
2684         * findvar.c (read_var_value): Reenable TLS code.
2685
2686 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2687             Jim Blandy  <jimb@redhat.com>
2688         
2689         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2690         * target.c (update_current_target): Add
2691         to_get_thread_local_address.
2692         * target.h (to_get_thread_local_address): Export.
2693         (target_get_thread_local_address): Define.
2694         (target_get_thread_local_address_p): Define.
2695         * thread-db.c: Include solib-svr4.h.
2696         (td_thr_tls_get_addr_p): Define.
2697         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2698         (thread_db_get_thread_local_address): New function.
2699         (init_thread_db_ops): Initialize to_get_thread_local_address.
2700         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2701         * configure: Regenerate.
2702         * config.in: Regenerate.
2703
2704 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2705
2706         * linespec.c (set_flags): New function.
2707         (decode_line_1): Move code into set_flags.
2708
2709 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2710
2711         * linespec.c (decode_line_1): Move chunks of code to separate
2712         functions.
2713         (initialize_defaults): New function.
2714         (decode_indirect): New function.
2715
2716 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2717
2718         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2719         instead of void_code_ptr.
2720         (sigtramp_saved_pc): Ditto.
2721
2722         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2723         i386_fp_regnum_p.
2724
2725 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2726
2727         * gdbtypes.h (struct main_type): Move artificial flag out of
2728         loc.  New member of ``struct field'' named static_kind.  Reduce
2729         overloaded meaning of bitsize.
2730         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2731         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2732         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2733
2734         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2735         new fields.
2736         (template_to_fixed_record_type, template_to_static_fixed_type)
2737         (to_record_with_fixed_variant_part): Likewise.
2738         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2739         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2740         * dwarfread.c (struct_type, enum_type): Likewise.
2741         * hpread.c (hpread_read_enum_type)
2742         (hpread_read_function_type, hpread_read_doc_function_type)
2743         (hpread_read_struct_type): Likewise.
2744         * mdebugread.c (parse_symbol): Likewise.
2745
2746 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2747
2748         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2749         * stack.c (print_frame_info_base): Update.
2750         (print_frame_info_base, frame_info): Update.
2751         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2752         (sparc_frame_saved_pc): Update.
2753         * ada-lang.c (find_printable_frame): Update.
2754         * breakpoint.c (deprecated_frame_in_dummy): Update.
2755         
2756 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2757
2758         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2759         defined.
2760         (regmap): Extend to cover all registers.
2761         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2762         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2763         definitions.
2764         (fetch_register, sore_register): Simplify.
2765         (old_fetch_inferior_registers, old_store_inferior_registers):
2766         Remove functions.
2767         (cannot_fetch_register, cannot_store_register): Change
2768         implementation to use regmap array to decide which registers
2769         cannot be fetched/stored.  This removes $orig_eax from the
2770         registers that cannot be fetched/stored.
2771         (fetch_inferior_registers): Call fetch_register directly instead
2772         of calling old_fetch_inferior_registers.
2773         (store_inferior_registers): Call store_register directly instead
2774         of calling old_store_inferior_registers.
2775         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2776         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2777         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2778
2779 2002-11-09  Klee Dienes  <kdienes@apple.com>
2780
2781         * i387-tdep.c (i387_supply_register): When called with NULL as a
2782         buffer, mark the register as not provided (to mirror the behavior
2783         of supply_register).
2784         (i387_supply_fxsave): Ditto.
2785         (i387_supply_fsave): Ditto (inherits the behavior from
2786         i387_supply_register).
2787
2788 2002-11-09  Klee Dienes  <kdienes@apple.com>
2789
2790         * blockframe.c (sigtramp_saved_pc): Use
2791         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2792         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2793         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2794         
2795 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2796
2797         * frame.c (get_prev_frame): Test prev_p to identify a previously
2798         unwound frame.  Initialize prev_p.
2799         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2800         comment.
2801
2802 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2803
2804         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2805         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2806         more comments.  Zap dead code.
2807
2808 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2809
2810         * infcmd.c (print_vector_info, print_float_info): Move code that
2811         checks whether the target has any registers and whether there is a
2812         selected frame up, such that it is also used if a target provides
2813         multi-arch definitions of these functions.
2814
2815 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2816
2817         * Makefile.in (DESTDIR): Define.
2818         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2819         prefix.
2820
2821         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2822         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2823
2824 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2825
2826         * i386-linux-tdep.c: Include "reggroups.h".
2827         (i386_linux_register_reggroup_p): New function.
2828         (i386_linux_init_abi): Set register_reggroup_p to
2829         i386_linux_register_reggroup_p.
2830         * i386-tdep.h (i386_register_reggroup_p): Declare.
2831         * i386-tdep.c: Include "reggroups.h".
2832         (i386_init_reggroups): New function.
2833         (i386_add_reggroups): New function.
2834         (i386_register_reggroup_p): New function.
2835         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2836         (_initialize_i386_tdep): Call i386_init_reggroups.
2837         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2838         specific reggroups.
2839
2840 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2841
2842         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2843         request that's available in *BSD.
2844
2845         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2846
2847         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2848         FDOFF_REGNUM.
2849
2850 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2851
2852         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2853         * dummy-frame.c (find_dummy_frame): Rename
2854         generic_find_dummy_frame, make static.  Return the dummy frame
2855         instead of the regcache.
2856         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2857         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2858         (dummy_frame_register_unwind): Rename
2859         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2860         * dummy-frame.h (dummy_frame_register_unwind): Rename
2861         generic_call_dummy_register_unwind.
2862
2863 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2864
2865         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2866         except the inclusion of "i386/tm-i386.h", to...
2867         * config/i386/nm-i386v42mp.h: ...here.
2868         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2869
2870 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2871
2872         * Makefile.in (frame.o): Update dependencies.
2873         * blockframe.c (current_frame, frame_obstack_alloc)
2874         (frame_saved_regs_zalloc, get_current_frame)
2875         (set_current_frame, create_new_frame)
2876         (set_unwind_by_pc, get_next_frame)
2877         (flush_cached_frames, reinit_frame_cache)
2878         (frame_saved_regs_register_unwind)
2879         (deprecated_generic_get_saved_register)
2880         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2881         (_initialize_blockframe): Move frame code from here...
2882         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2883         "annotate.h" and "dummy-frame.h".
2884         (_initialize_frame): New function.
2885
2886 2002-11-08  Jim Blandy  <jimb@redhat.com>
2887
2888         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2889         when we finish a function a context.
2890         * buildsym.h (outermost_context_p): New macro.
2891         (Bug analyzed by David Edelsohn.)
2892
2893 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2894
2895         * blockframe.c: Include "dummy-frame.h".
2896         (struct dummy_frame, dummy_frame_stack)
2897         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2898         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2899         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2900         (generic_save_call_dummy_addr, generic_pop_current_frame)
2901         (generic_pop_dummy_frame, generic_fix_call_dummy)
2902         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2903         dummy frame code from here...
2904         * dummy-frame.c: ...to here.  New file.
2905         * dummy-frame.h: New file.
2906         (generic_call_dummy_register_unwind): Declare.
2907         (generic_find_dummy_frame): Declare.
2908         * Makefile.in (SFILES): Add dummy-frame.c.
2909         (dummy-frame.o): Specify dependencies.
2910         (dummy_frame_h): Define.
2911         (COMMON_OBS): Add dummy-frame.o.
2912         (blockframe.o): Update dependencies.
2913
2914 2002-11-08  Jim Blandy  <jimb@redhat.com>
2915
2916         * dwarf2read.c (read_func_scope): Restore local_symbols and
2917         param_symbols after we finish the function context.  (Based on a
2918         patch from David Edelsohn.)
2919
2920 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2921
2922         * linespec.c (symbol_found): New function.
2923         (minsym_found): New function.
2924         (decode_line_1): Separate out some code into separate functions.
2925
2926 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2927
2928         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2929         the benefit of the interix target.
2930         * i386-tdep.h (i386_frameless_signal_p): Declare.
2931
2932 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2933
2934         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2935         declaration that snuck in from change below.
2936
2937 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2938
2939         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2940         all callers.
2941         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2942         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2943         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2944         (i386_mxcsr_regnum_p): new function.  Use instead of
2945         MXCSR_REGNUM_P.
2946         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2947         (i386_sse_regnum_p): Declare.
2948         (i386_mxcsr_regnum_p): Declare.
2949         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2950         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2951         (IS_FP_REGNUM): Update definition.
2952         (IS_FPU_CTRL_REGNUM): Update definition..
2953         (IS_SSE_REGNUM): Update definition..
2954         * i386v-nat.c (register_u_addr): Update.
2955         * go32-nat.c (fetch_register): Update.
2956         (store_register): Update.
2957
2958 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2959
2960         Preparation work to convert the hppa targets to multiarch partial.
2961
2962         * hppa-tdep.c: Add new functions replacing macro bodies from
2963         config/pa/tm-hppa.h. These function will be used to initialize
2964         the gdbarch structure. Import some comments from tm-hppa.h,
2965         and place them where appropriate, to avoid loosing them when
2966         we cleanup this file.
2967         (hppa_reg_struct_has_addr): New function.
2968         (hppa_inner_than): New function.
2969         (hppa_stack_align): New function.
2970         (hppa_pc_requires_run_before_use): New function.
2971         (hppa_instruction_nullified): New function.
2972         (hppa_register_byte): New function.
2973         (hppa_register_virtual_type): New function.
2974         (hppa_store_struct_return): New function.
2975         (hppa_cannot_store_register): New function.
2976         (hppa_frame_args_address): New function.
2977         (hppa_frame_locals_address): New function.
2978         (hppa_smash_text_address): New function.
2979         (hppa_coerce_float_to_double): New function. Requires the inclusion
2980         of "language.h".
2981
2982         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2983
2984         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2985         gdbarch-eligible macro to a call to the new associated function
2986         created in hppa-tdep.c.
2987         (INNER_THAN): Likewise.
2988         (STACK_ALIGN): Likewise.
2989         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2990         (INSTRUCTION_NULLIFIED): Likewise.
2991         (REGISTER_BYTE): Likewise.
2992         (REGISTER_VIRTUAL_TYPE): Likewise.
2993         (STORE_STRUCT_RETURN): Likewise.
2994         (CANNOT_STORE_REGISTER): Likewise.
2995         (FRAME_ARGS_ADDRESS): Likewise.
2996         (FRAME_LOCALS_ADDRESS): Likewise.
2997         (SMASH_TEXT_ADDRESS): Likewise.
2998         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2999         (ABOUT_TO_RETURN): Delete, as no longer used.
3000
3001 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3002
3003         * printcmd.c (disassemble_command): Remove obsolete function.
3004         (_initialize_printcmd): Do not create disassemble command here.
3005         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3006         disassemble command.
3007         (init_cli_cmds): Create disassemble command here instead.
3008
3009 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3010
3011         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3012
3013 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3014
3015         * regcache.h (regcache_cooked_read_using_offset_hack)
3016         (regcache_cooked_write_using_offset_hack): Delete declarations.
3017         (register_changed): Delete declaration.
3018         * regcache.c (regcache_cooked_read_using_offset_hack)
3019         (regcache_cooked_write_using_offset_hack): Delete functions.
3020         (cooked_xfer_using_offset_hack): Delete function.
3021         (register_changed): Delete function.
3022
3023 2002-11-07  Jim Blandy  <jimb@redhat.com>
3024
3025         * macroscope.c: #include "complaints.h".
3026         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3027         but not in the macro table.
3028         * Makefile.in (macroscope.o): Record dependency.
3029
3030 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3031
3032         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3033
3034 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3035
3036         * regcache.c (deprecated_registers_fetched): Update.
3037         * regcache.h (deprecated_registers_fetched): Rename
3038         registers_fetched.
3039         * remote-vxsparc.c (vx_read_register): Update.
3040         * remote-vxmips.c (vx_read_register): Update.
3041         * remote-vx68.c (vx_read_register): Update.
3042         * irix5-nat.c (fetch_core_registers): Update.
3043         * mipsm3-nat.c (fetch_inferior_registers): Update.
3044         * sun3-nat.c (fetch_inferior_registers): Update.
3045         * symm-nat.c (fetch_inferior_registers): Update.
3046         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3047         (fetch_core_registers): Update.
3048         (fetch_kcore_registers): Update.
3049         * mips-nat.c (fetch_inferior_registers): Update.
3050         * corelow.c (get_core_registers): Update.
3051         * a68v-nat.c (fetch_inferior_registers): Update.
3052
3053 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3054
3055         Put in place the framework necessary for multiarching the hppa targets.
3056         * hppa-tdep.c (hppa_gdbarch_init): New function.
3057         (hppa_dump_tdep): New function.
3058         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3059         tdep structure dumper.
3060         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3061         until the multi-arching conversion has partially been completed.
3062
3063 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3064
3065         * valops.c (value_assign): Merge lval_register case into
3066         lval_reg_frame_relative.  Use frame_register and
3067         regcache_cooked_write instead of get_saved_register and
3068         write_register_bytes.  After flushing the register cache, try to
3069         re-select the selected frame.
3070
3071 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3072
3073         * regcache.h (deprecated_register_valid): Rename register_valid.
3074         * regcache.c: Update.
3075         * ia64-aix-nat.c: Update.
3076         * i386gnu-nat.c: Update.
3077         * alpha-nat.c: Update.
3078         * sparc-nat.c: Update.
3079         * lynx-nat.c: Update.
3080         * remote-mips.c: Update.
3081
3082 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3083
3084         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3085         to end of file, to be more consistent with the pratice followed
3086         by other targets.
3087
3088 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3089
3090         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3091         (print_float_info): Print registers in float_reggroup.
3092         (print_vector_info): Print registers in vector_reggroup.
3093         (default_print_registers_info): When all, print registers in
3094         all_reggroup.  Otherwize, print registers in general_reggroup.
3095         (registers_info): Rewrite.  Add support for register groups.
3096         Eliminate a goto.
3097
3098 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3099
3100         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3101         ages.
3102         (symtab_symbol_info): Remove eons old ifdeffed out code.
3103         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3104         command.
3105
3106 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3107
3108         * c-exp.y: Add missing semi-colons.
3109         * f-exp.y: Add missing semi-colons.
3110         * m2-exp.y: Add missing semi-colons.
3111         * p-exp.y: Add missing semi-colons.
3112         Add empty action to start rule to avoid a type clash error when
3113         building with bison >= 1.50.
3114
3115 2002-11-06  Jim Blandy  <jimb@redhat.com>
3116
3117         * macrotab.h (struct macro_source_file): Doc fix.
3118
3119 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3120
3121         * varobj.c (child_exists, cplus_number_of_children): Change
3122         STREQ macro references to strcmp.
3123         (cplus_name_of_child): Change code to handle the fact that
3124         fields are not necessarily contiguous with regards to their 
3125         access control. This is a fix for PR gdb/792.
3126
3127 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3128
3129         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3130         * gdbarch.h, gdbarch.c: Regnerate.
3131         * frame.h (frame_register): Declare.
3132         * frame.c (frame_register): New function.
3133         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3134         GET_SAVED_REGISTER, otherwize call
3135         generic_unwind_get_saved_register.
3136         (frame_register_read): Use frame_register instead of
3137         get_saved_register.
3138
3139 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3140         
3141         From Jim Ingham  <jingham@apple.com>:
3142         * event-top.c (gdb_disable_readline): New function.
3143         (_initialize_event_loop): Move comment.
3144
3145 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3146
3147         * event-loop.c (start_event_loop): Add comment.
3148         Update copyright.
3149
3150 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3151
3152         * infcmd.c (default_print_registers_info): Do not call
3153         PRINT_REGISTER_HOOK.
3154
3155 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3156
3157         * sparc-tdep.c (sparc_print_register_hook): Make static.
3158         (sparc_print_registers_info): New function.
3159         (sparc_do_registers_info): New function.
3160         (sparclet_print_registers_info): New function.
3161         (sparclet_do_registers_info): New function.
3162         (do_sparc_print_registers_info): New function.
3163         (sparc_print_registers): New static function, clone of infcmd.c's
3164         default_print_registers_info.
3165         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3166         (sparclet_do_registers_info): Declare.
3167         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3168         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3169         Re-define.
3170         (sparc_do_registers_info): Declare.
3171         (PRINT_REGISTER_HOOK): Delete macro.
3172         (sparc_print_register_hook): Delete declaration.
3173
3174 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3175
3176         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3177         functions.
3178         (lookup_symbol_aux_local): New function.
3179         (lookup_symbol_aux_symtabs): New function.
3180         (lookup_symbol_aux_psymtabs): New function.
3181
3182 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3183
3184         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3185         previous values of 'objfile' and 'block'.
3186
3187 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3188
3189         * values.c (value_change_enclosing_type): Set 
3190         enclosing_type field correctly also for the case where 
3191         more memory needs to be allocated.
3192
3193 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3194
3195         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3196         of puts_filtered.
3197
3198         * i387-tdep.c (i387_print_float_info): Replace calls to
3199         register_read and deprecated_read_register_gen with calls to
3200         frame_register_read, and make the necessary adjustments to the
3201         surrounding code.
3202
3203 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3204
3205         * gdbarch.sh (register_reggroup_p): Allow default value.
3206         * gdbarch.h, gdbarch.c: Regenerate.
3207
3208 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3209
3210         * regcache.h: Add coment indicating replacements for deprecated
3211         functions.
3212
3213 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3214
3215         * reggroups.h, reggroups.c: New files.
3216         * regcache.c: Include "reggroups.h".
3217         (enum regcache_dump_what): Add `regcache_dump_groups'.
3218         (regcache_dump): Contract size of the "Type" column.  When
3219         specified, dump the register's groups.
3220         (maintenance_print_register_groups): New function.
3221         (_initialize_regcache): Add command `maint print register-groups'.
3222         * Makefile.in (COMMON_OBS): Add reggroups.o
3223         (SFILES): Add reggroups.c.
3224         (reggroups_h): Define.
3225         (regcache.o, gdbarch.o): Update dependencies.
3226         (reggroups.o): Specify dependencies.
3227         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3228         Add opaque declaration for `struct reggroup' in generated .h file.
3229         Include "reggroups.h" in generated .c file.
3230         gdbarch.h, gdbarch.c: Re-generate.
3231
3232 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3233
3234         * regcache.h (deprecated_read_register_gen): Rename
3235         read_register_gen.
3236         (deprecated_write_register_gen): Rename write_register_gen.
3237         * i387-tdep.c: Update.
3238         * x86-64-linux-nat.c: Update
3239         * wince.c: Update.
3240         * thread-db.c: Update.
3241         * win32-nat.c: Update.
3242         * mips-tdep.c: Update.
3243         * d10v-tdep.c: Update.
3244         * cris-tdep.c: Update.
3245         * remote-sim.c: Update.
3246         * remote-rdi.c: Update.
3247         * remote-rdp.c: Update.
3248         * frame.c: Update.
3249         * target.c: Update.
3250         * blockframe.c: Update.
3251         * x86-64-tdep.c: Update.
3252         * xstormy16-tdep.c: Update.
3253         * sh-tdep.c: Update.
3254         * s390-tdep.c: Update.
3255         * rs6000-tdep.c: Update.
3256         * sparc-tdep.c: Update.
3257         * i386-tdep.c: Update.
3258         * dwarf2cfi.c: Update.
3259         * regcache.c: Update.
3260
3261 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3262
3263         New interix-specific files:
3264         * config/i386/nm-interix.h: New file.
3265         * config/i386/interix.mh: New file.
3266         * config/i386/interix.mt: New file.
3267         * i386-interix-nat.c: New file.
3268         * i386-interix-tdep.c: New file.
3269
3270 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3271
3272         * frame.h (deprecated_generic_get_saved_register): Rename
3273         generic_get_saved_register.
3274         * blockframe.c (deprecated_generic_get_saved_register): Update.
3275         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3276         (xstormy16_frame_saved_register): Update.
3277         * sh-tdep.c (sh_gdbarch_init): Update.
3278         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3279         * ia64-tdep.c (ia64_get_saved_register): Update.
3280         * cris-tdep.c (cris_gdbarch_init): Update.
3281         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3282         * arm-tdep.c (arm_gdbarch_init): Update.
3283
3284 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3285
3286         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3287
3288 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3289
3290         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3291         trampolines in sigaction.
3292
3293 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3294
3295         * h8300-tdep.c: Include "gdb_assert.h".
3296         (h8300_print_register): Add gdbarch, file and frame parameters.
3297         Use frame_read_unsigned_register to read the register's value.
3298         Use fprintf_filtered to display output.
3299         (h8300_print_registers_info): Replace h8300_do_registers_info.
3300         (h8300_gdbarch_init): Set print_registers_info.
3301
3302 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3303
3304         * frame.c (frame_read_unsigned_register): New function.
3305         (frame_read_signed_register): New function.
3306         * frame.h (frame_read_unsigned_register): Declare.
3307         (frame_read_signed_register): Declare.
3308
3309 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3310
3311         * h8500-tdep.c (h8500_print_registers_info): New static function,
3312         clone of infcmd.c's default_print_registers_info.
3313         (h8500_do_registers_info): New funtion.
3314         (h8500_print_register_hook): Rename print_register_hook, make
3315         static.
3316
3317         * config/h8500/tm-h8500.h: Update copyright.
3318         (DEPRECATED_DO_REGISTERS_INFO): Define.
3319         (h8500_do_registers_info: Declare.
3320         (PRINT_REGISTER_HOOK): Delete macro.
3321         (print_register_hook): Delete function.
3322
3323 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3324
3325         * z8k-tdep.c (z8k_print_register_hook): Make static.
3326         (z8k_print_registers_info): New static function, clone of
3327         infcmd.c's default_print_registers_info.
3328         (z8k_do_registers_info): New function.  Wrap
3329         z8k_print_registers_info.
3330         * config/z8k/tm-z8k.h: Update copyright.
3331         (PRINT_REGISTER_HOOK): Delete macro.
3332         (z8k_print_register_hook): Delete declaration.
3333         (DEPRECATED_DO_REGISTERS_INFO): Define.
3334         (z8k_do_registers_info): Declare.
3335
3336 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3337
3338         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3339         as this is already provided by value.h, and was actually causing
3340         a compilation error because of a conflict in parameter type
3341         declaration due to a missing const keyword.
3342         (low_text_segment_addres): Fix a compilation warning.
3343
3344 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3345
3346         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3347         registers without a name.
3348         (mips_linux_cannot_store_register): Don't store registers without
3349         a name.
3350
3351 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3352
3353         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3354         out.)
3355         * symtab.h: Delete prototype for find_addr_symbol.
3356
3357 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3358
3359         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3360         DO_REGISTERS_INFO.
3361         gdbarch.h, gdbarch.c: Re-generate.
3362         * infcmd.c (default_print_registers_info): Update reference.
3363         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3364         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3365         * sh-tdep.c (sh_gdbarch_init): Ditto.
3366         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3367         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3368
3369 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3370
3371         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3372         cfi_init_extra_frame_info.
3373         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3374         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3375
3376         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3377         target where necessary.  Add more comments and remove the ones
3378         that don't provide any useful information.
3379
3380         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3381         deprecated_read_register_dummy with
3382         frame_unwind_unsigned_register.
3383
3384         * i386-tdep.c (i386_extract_struct_value_address): Use
3385         regcache_raw_read_unsigned instead of
3386         regcache_cooked_read_unsigned since we know that the register
3387         we're reading isn't a pseudo register.  Rename variable 'val' into
3388         the more descriptive 'addr'.
3389
3390         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3391         (x86_64_push_return_address): Add comment.
3392         (x86_64_pop_frame): Make static.
3393         (examine_argument): Clarify comment.
3394         (x86_64_skip_prologue): Make prolog_expact variable static.
3395
3396         * dwarf2cfi.c: Fix some formatting problems.
3397         (context_cpy, read_encoded_pointer): Clarify comments.
3398
3399         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3400         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3401         i386 target back into x86_64_gdbarch_init.  Add some comments and
3402         remove meaningless ones.
3403
3404 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3405
3406         * complaints.h (struct deprecated_complaint): Rename `struct
3407         complaint'.
3408         * complaints.c (complain): Update.
3409         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3410         incorrect comment indicating that "symfile.h" was being included
3411         for the `struct complaint' definition.
3412         * remote-vx.c: Update.
3413         * objc-lang.c: Update.
3414         * xcoffread.c: Update.
3415         * hpread.c: Update.
3416         * mdebugread.c: Update.
3417         * stabsread.c: Update.
3418         * dwarf2read.c: Update.
3419         * dwarfread.c: Update.
3420         * elfread.c: Update.
3421         * coffread.c: Update.
3422         * stabsread.h: Update.
3423         * dbxread.c: Update.
3424         * buildsym.c: Update.
3425         * gdbtypes.c: Update.
3426         * macrotab.c: Update.
3427
3428 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3429
3430         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3431         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3432         (x86_64_init_abi): ...new function.
3433
3434         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3435         * i386v-nat.c: Include "i386-tdep.h".
3436
3437 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3438
3439         * gdbtypes.c (address_space_name_to_int): Update.
3440         (address_space_int_to_name): Update.
3441         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3442         multi-arch predicate.
3443         (address_class_name_to_type_flags): Ditto.
3444         * gdbarch.h, gdbarch.c: Re-generate.
3445         
3446         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3447
3448 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3449
3450         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3451
3452 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3453
3454         * symtab.h (INIT_SAL): Delete macro.
3455         (init_sal): Export.
3456         * symtab.c (init_sal): New function.
3457
3458         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3459         to init_sal function call.
3460         (find_sal_from_funcs_and_line): Ditto.
3461         (all_sals_for_line): Ditto. 
3462         * breakpoint.c (create_internal_breakpoint): Ditto. 
3463         (create_fork_vfork_event_catchpoint): Ditto. 
3464         (create_exec_event_catchpoint): Ditto. 
3465         (parse_breakpoint_sals): Ditto. 
3466         (watch_command_1): Ditto. 
3467         (handle_gnu_4_16_catch_command): Ditto.
3468         (clear_command): Ditto. 
3469         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3470         * infcmd.c (run_stack_dummy): Ditto. 
3471         * infrun.c (process_event_stop_test): Ditto.
3472         (check_sigtramp2): Ditto.
3473         (step_over_function): Ditto. 
3474         * linespec.c (decode_line_2): Ditto. 
3475         (decode_line_1): Ditto. 
3476         * source.c (line_info): Ditto. 
3477         * symtab.c (find_pc_sect_line): Ditto.
3478
3479 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3480
3481         * dwarf2cfi.c (struct context)
3482         (struct context_reg): Moved to dwarf2cfi.h
3483         (context_alloc, frame_state_alloc, context_cpy):
3484         Made extern instead of static, removed prototypes.
3485         * dwarf2cfi.h (struct context)
3486         (struct context_reg): New, moved from dwarf2cfi.c
3487         (context_alloc, frame_state_alloc, context_cpy):
3488         New prototypes.
3489         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3490         Changed from static to extern.
3491         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3492         (LINUX_SIGCONTEXT_FP_OFFSET)
3493         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3494         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3495         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3496         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3497         set_gdbarch_*() calls now use x86-64 specific functions 
3498         instead of DWARF2 CFI ones.
3499         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3500         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3501         (x86_64_init_extra_frame_info): New prototypes.
3502         
3503 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3504
3505         * linespec.c: #include "parser-defs.h".
3506         Delete prototype for find_template_name_end.
3507         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3508
3509 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3510
3511         * NEWS: add recent mi fixes.
3512         * varobj.c (struct varobj): Add new "updated" flag.
3513         (new_variable): Default "updated" flag to 0.
3514         (varobj_set_value): Set "updated" flag to 1 if value
3515         changes.
3516         (varobj_update): Check varobj "updated" flag before
3517         comparing old and refreshed values.  Fix for
3518         PR gdb/702.
3519
3520 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3521
3522         * parse.c (parse_exp_1): Use BLOCK_START.
3523         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3524         SYMBOL_BLOCK_VALUE.
3525         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3526
3527 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3528
3529         * symtab.c: Delete cplusplus_hint.
3530         Delete prototype for find_template_name_end.
3531
3532 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3533
3534         * symtab.h: Update comment.
3535
3536 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3537
3538         * printcmd.c (address_info): Restore quotes in output.
3539         * valops.c (value_of_local): Restore quotes in error message.
3540
3541 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3542
3543         * symtab.c (symbol_demangled_name): New function.
3544         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3545         turning most of it into a function.
3546         (symbol_demangled_name): Export.
3547
3548 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3549
3550         * valops.c (value_of_local): Restore quotes in error message.
3551
3552 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3553
3554         * symtab.c (symbol_init_language_specific): New function.
3555         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3556         turning most of it into a function.
3557         (symbol_init_language_specific): Export.
3558
3559 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3560
3561         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3562         (dwarf_attr_name): Ditto.
3563         (dwarf_type_encoding_name): Ditto.
3564         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3565         (process_die): Handle DW_TAG_namespace,
3566         DW_TAG_imported_declaration, DW_TAG_imported_module.
3567         (read_namespace): New function.
3568
3569 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3570
3571         * configure.in: Define NEW_PROC_API on Interix too.
3572         * configure: Regenerate.
3573
3574 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3575
3576         * configure: Regenerate using the proper version of autoconf.
3577
3578 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3579
3580         * findvar.c (read_var_value): Temporarily disable TLS code, until
3581         complete TLS support is added.
3582
3583 2002-10-21  Jim Blandy  <jimb@redhat.com>
3584             Elena Zannoni  <ezannoni@redhat.com>
3585
3586         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3587         for thread local storage locations.
3588         (struct symbol): Add objfile field.
3589         (SYMBOL_OBJFILE): Define.
3590         * dwarf2read.c (is_thread_local): New static variable.
3591         (new_symbol): If variable is in thread local fill in address class
3592         and objfile appropriately.
3593         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3594         stack operation.
3595         * printcmd.c (address_info): Print the information for thread
3596         local storage variable.
3597         * findvar.c (read_var_value): In case of thread local variable,
3598         defer to the target vector code to compute address.
3599
3600 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3601
3602         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3603         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3604
3605 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3606
3607         * symtab.h (address_class):  Rename
3608         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3609         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3610         * printcmd.c (address_info): Ditto.
3611         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3612
3613 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3616         DBREG_DRX macro to acces debug registers.
3617
3618         * Makefile.in (i386obsd-tdep.o): New target.
3619
3620         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3621         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3622
3623         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3624         * config/i386/obsd.mt: New file.
3625         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3626         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3627         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3628         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3629         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3630         * i386obsd-tdep.c: New file.
3631
3632 2002-10-19  Adam Fedor  <fedor@gnu.org>
3633
3634         * objc-exp.y (name_not_typename): Fix invalid comment.  
3635
3636 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3637
3638         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3639         to allocate partial syms and macro byte caches.
3640
3641 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3642
3643         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3644
3645 2002-10-18  Adam Fedor  <fedor@gnu.org>
3646
3647         * stabsread.c (find_name_end): New function.
3648         (define_symbol): Use it.
3649
3650 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3651
3652         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3653         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3654         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3655         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3656
3657 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3658
3659         * symfile.h: Add opaque declaration for struct obstack.
3660         Declare obsavestring to take a const char *.
3661         * symfile.c (obsavestring): Make first argument a const char *.
3662
3663 2002-10-16  Adam Fedor  <fedor@gnu.org>
3664
3665         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3666         names when matching breakpoints in current file.
3667
3668 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3669
3670         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3671         (read_tag_pointer_type): Add address class support.
3672         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3673         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3674         New methods.
3675         * gdbarch.h, gdbarch.c: Regenerate.
3676         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3677         (make_type_with_address_space, recursive_type_dump): Add address
3678         class support.
3679         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3680         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3681         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3682
3683 2002-10-16  Klee Dienes  <kdienes@apple.com>
3684
3685         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3686         to get the last character of a char[] buffer, not
3687         name[sizeof(vptr_name)-1].
3688
3689 2002-10-14  Adam Fedor  <fedor@gnu.org>
3690
3691         * symtab.h: New objc_specific struct.
3692         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3693         (SYMBOL_DEMANGLED_NAME): Likewise.
3694
3695 2002-10-14  Adam Fedor  <fedor@gnu.org>
3696
3697         * symfile.c (init_filename_language_table): Add ObjC file extension.
3698
3699 2002-10-14  Adam Fedor  <fedor@gnu.org>
3700
3701         * utils.c (puts_filtered_tabular): New function.
3702         (fprintf_symbol_filtered): Get ObjC demangled name.
3703         * defs.h (puts_filtered_tabular): Declared.
3704
3705 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3706
3707         * c-lang.h (c_type_print_varspec_prefix): Delete.
3708         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3709         ``need_post_space'' parameter.  Adjust all callers.
3710
3711 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3712  
3713         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3714         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3715         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3716         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3717
3718 2002-10-13  Adam Fedor  <fedor@gnu.org>
3719
3720         * source.c (print_source_lines): Update comments.
3721
3722 2002-10-13  Adam Fedor  <fedor@gnu.org>
3723
3724         * valops.c (value_of_local): New function.
3725         (value_of_this): Use it.
3726         * value.h (value_of_local): Declared.
3727
3728 2002-10-13  Adam Fedor  <fedor@gnu.org>
3729
3730         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3731         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3732
3733 2002-10-12  Adam Fedor  <fedor@gnu.org>
3734
3735         * language.c (binop_result_type): Add language_objc to case.
3736         (integral_type): Likewise.
3737         (character_type): Likewise.
3738         (string_type): Likewise.
3739         (boolean_type): Likewise.
3740         (structured_type): Likewise.
3741         (binop_type_check): Likewise.
3742
3743 2002-10-11  Adam Fedor  <fedor@gnu.org>
3744
3745         * printcmd.c (address_info): Print 'self' for ObjC.
3746
3747 2002-10-11  Adam Fedor  <fedor@gnu.org>
3748
3749         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3750         OP_SELF.
3751
3752 2002-10-11  Adam Fedor  <fedor@gnu.org>
3753
3754         * language.h (CAST_IS_CONVERSION): Add language_objc.
3755
3756 2002-10-11  Adam Fedor  <fedor@gnu.org>
3757
3758         * defs.h (enum language): Add language_objc.
3759
3760 2002-10-11  Klee Dienes  <kdienes@apple.com>
3761
3762         * corefile.c (read_memory_typed_address): New function.
3763         * gdbcore.h (read_memory_typed_address): Add prototype.
3764         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3765         to read a value destined for a CORE_ADDR, not read_memory_integer.
3766         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3767         (f77_get_dynamic_lowerbound): Ditto.
3768
3769 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3770
3771         * utils.c (string_to_core_addr): After turning string into
3772         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3773         which will do necessary sign-extension, etc.
3774
3775 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3776
3777         * c-exp.y (THIS): Delete token and grammar rule.
3778         (yylex): Don't return THIS.
3779         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3780         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3781         * demangle.c (cplus_markers): Update comment.  Put '$'
3782         first.  Remove CPLUS_MARKER.
3783         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3784         * jv-exp.y (THIS): Delete token and grammar rule.
3785         (yylex): Don't return THIS.
3786         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3787         * objc-exp.y (THIS): Delete token and grammar rule.
3788         (yylex): Don't return THIS.
3789         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3790         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3791         (read_member_functions): Likewise for opname.
3792         (read_tilde_fields): Use is_cplus_marker.
3793
3794         * defs.h (CPLUS_MARKER): Don't define.
3795         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3796         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3797         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3798         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3799         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3800
3801         * config/i386/tm-i386v4.h: Delete file.
3802         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3803         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3804         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3805         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3806         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3807         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3808         * config/i386/i386v4.mt (TM_FILE): Likewise.
3809         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3810
3811 2002-10-10  Marko Mlinar  <markom@opencores.org>
3812
3813         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3814         accidentially not commited 2002-10-09
3815         * gdbarch.h, gdbarch.c: Re-generate.
3816
3817 2002-10-09  Marko Mlinar  <markom@opencores.org>
3818
3819         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3820         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3821         * gdbarch.h, gdbarch.c: Re-generate.
3822
3823 2002-10-08  Petr Sorfa <petrs@caldera.com>
3824
3825         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3826
3827         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3828         so we can work on more than one compilation unit at a time.  This
3829         helps prepare GDB to handle inter-CU die references.
3830         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3831         the code to be defined before struct comp_unit_head.
3832         (comp_unit_head): Added new members - offset, cu_head,
3833         begin_die, next and dwarf2_abbrevs.
3834         (dwarf2_abbrevs): Removed single static var; now member of
3835         struct comp_unit_head.
3836         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3837         members.
3838         (psymtab_to_symtab_1): Changed to work with the new
3839         struct comp_unit_head.
3840         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3841         constructs the dwarf2_abbrevs[] inside the cu_header.
3842         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3843         dwarf2_abbrev table to clean up.
3844         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3845         handling of dwarf2_abbrevs inside the cu_header.
3846         (read_partial_die): Now supports the call to the new
3847         dwarf2_lookup_abbrev.
3848         (read_full_die): Now supports the call to the new
3849         dwarf2_lookup_abbrev.
3850
3851 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3852
3853         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3854         insure that shell variables, such as "transformed_name" are propagated
3855         to later shell statements in rule.
3856
3857 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3858
3859         * config/i386/nm-i386sco.h: Add protection against
3860         multiple-inclusion.  Include "i386/nm-i386v.h".
3861         (REGISTER_U_ADDR): Remove define.
3862         (i386_register_u_addr): Remove prototype.
3863
3864 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3865
3866         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3867         before treating it as a single-step event.
3868
3869 2002-10-03  Adam Fedor  <fedor@gnu.org>
3870
3871         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3872         (objc_demangle): Remove assignment in if statements, Replace
3873         free with xfree.
3874         (add_msglist): Likewise.
3875         (end_msglist): Likewise.
3876         (complare_selectors): Likewise.
3877         (selectors_info): Likewise.
3878         (compare_classes): Likewise.
3879         (classes_info): Likewise.
3880         (print_object_command): Likewise.
3881         (find_objc_msgcall_submethod): Replace PTR with void *.
3882         * objc-lang.h: Remove check for __STDC__.
3883
3884 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3885
3886         * ui-out.h (ui_out_field_fmt_int): New prototype.
3887         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3888         of field width and alignment.
3889         * stack.c (print_frame_info_base): When printing frame level, use
3890         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3891         PR gdb/192
3892
3893 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3894
3895         * MAINTAINERS: Add self to Write After Approval list.
3896
3897 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3898
3899         * infcmd.c (interrupt_target_command_wrapper): Delete.
3900         (interrupt_target_command): Make non static.
3901         (nofp_registers_info): Make static.
3902         * stack.c (return_command_wrapper): Delete.
3903         (return_command): Make non static.
3904
3905 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3906
3907         * event-top.c (gdb_setup_readline): New function. Code moved from
3908         _initialize_event_loop().
3909         (_initialize_event_loop): Call gdb_setup_readline().
3910
3911 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3912
3913         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3914         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3915         * gdbarch.h, gdbarch.c: Re-generate.
3916
3917 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3918
3919         Fix PR gdb/778
3920         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3921         before recursing.
3922         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3923         of fill_in_vptr_fieldno.
3924
3925 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3926
3927         * inferior.h (registers_info, stepi_command, nexti_command,
3928         continue_command, interrupt_target_command): Export from infcmd.c.
3929         * frame.h (args_info, selected_frame_level_changed_hook,
3930         return_command): Export from stack.c.
3931         * v850ice.c (stepi_command, nexti_command, continue_command): use
3932         prototypes from inferior.h.
3933         * tracepoint.c (registers_info, args_info, locals_info): Use
3934         prototypes from frame.h and inferior.h.
3935         * Makefile.in (mi-main.o): Add dependency on frame.h.
3936
3937 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3938
3939         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3940         value in register 3 adjusted by ppc_gp0_regnum.
3941
3942         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3943
3944 2002-10-02  Marko Mlinar <markom@opencores.org>
3945
3946         * MAINTAINERS: Add myself to the Write After Approval list.
3947
3948 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3949
3950         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3951         of the section for the N64 ABI, fixed.
3952
3953         * config/mips/tm-irix6.h: Include solib.h.
3954
3955 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3956
3957         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3958         GNU operators.
3959
3960 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3961
3962         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3963         and that "mi0" syntax has been removed.
3964
3965 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3966
3967         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3968         * ppc-sysv-tdep.c: #include "gdb_string.h".
3969         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3970         pacify GCC.
3971
3972 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3973
3974         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3975         "vrsave"'s register number.
3976
3977 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3978
3979         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3980         use frame_unwind_signed_register to obtain the PC.
3981         (mips_frame_chain): Handle a generic dummy frame.
3982         (mips_init_extra_frame_info): When a generic dummy frame, don't
3983         re-compute the frame base.
3984         (mips_pop_frame): Handle generic dummy frames.
3985         (mips_gdbarch_init): When generic dummy frames, set
3986         use_generic_dummy_frames, push_dummy_frame to
3987         generic_push_dummy_frame, pc_in_call_dummy to
3988         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3989         generic_save_dummy_frame_tos.
3990
3991 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3992
3993         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3994         against TOP when TOP was explictly set.
3995         (generic_push_dummy_frame): Set TOP to zero.
3996
3997 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3998
3999         * event-loop.c (start_event_loop): Rename variable 'result' to
4000         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4001
4002 2002-09-30  Keith Seitz  <keiths@redhat.com>
4003
4004         * gdb-events.sh (selected_thread_changed): New event.
4005         * gdb-events.c: Regenerated.
4006         * gdb-events.h: Regenerated.
4007
4008 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4009
4010         * MAINTAINERS: Add self to Write After Approval list.
4011
4012 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4013
4014         * disasm.c: New file.  
4015         * disasm.h: New file.  
4016         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4017         (compare_lines): Ditto.
4018         (dump_insns): Ditto.
4019         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4020         argument.
4021         (do_assembly_only): Ditto.
4022         (do_disassembly): Renamed to gdb_disassembly and moved to
4023         disasm.c.  Sdded uiout argument.
4024         * Makefile.in: Add new files.  Reorder SFILES list. Update
4025         dependencies.  Include libgdb.a later in the insight executable.
4026
4027 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4028
4029         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4030         bfd/elf64-alpha-fbsd.c.
4031
4032 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4033
4034         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4035         i386gnu-tdep.c.
4036
4037 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4038
4039         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4040         __FUNCTION__.
4041         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4042         function name.
4043         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4044         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4045         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4046         (S_msg_sig_post_reply): Ditto.
4047         
4048 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4049
4050         * sh-tdep.c (sh_use_struct_convention): Use definition according
4051         to ABI.
4052         (sh_push_arguments): Store in register with correct endianess.
4053         (sh_default_store_return_value): Ditto.
4054         (sh_gdbarch_init): Set sizeof long double to 8.
4055
4056 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4057
4058         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4059         Fix some whitespace problems.
4060
4061 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4062
4063         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4064         (mcore-tdep.o): Ditto.
4065         (ns32k-tdep.o): Ditto.
4066         (ns32knbsd-tdep.o): Ditto.
4067         (sh3-rom.o): Ditto.
4068         (vax-tdep.o): Ditto.
4069         * cris-tdep.c: #include "gdb_string.h"
4070         * mcore-tdep.c: Ditto.
4071         * ns32k-tdep.c: Ditto.
4072         * ns32knbsd-tdep.c: Ditto.
4073         * sh3-rom.c: Ditto.
4074         * vax-tdep.c: Ditto.
4075
4076 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4077
4078         * config/djgpp/fnchange.lst: Add entries for
4079         gdb/testsuite/gdb.c++/m-static files.
4080
4081 2002-09-27  Jim Wilson  <wilson@redhat.com>
4082
4083         * MAINTAINERS: Add myself to the Write After Approval list.
4084
4085 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4086
4087         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4088
4089
4090 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4091
4092         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4093         frame.
4094
4095 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4096
4097         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4098         (rs6000_struct_return_address): Delete variable.
4099         (rs6000_store_struct_return): Update.
4100         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4101         deprecated_extract_struct_value_address.
4102         (rs6000_frame_align): New function.
4103         (rs6000_gdbarch_init): Set frame_align.
4104
4105 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4106
4107         From Grace Sainsbury <graces@redhat.com>:
4108         * Makefile.in (gdbtk-main.o): New target.
4109         (gdb.o): New target.
4110         (main_h): Define.
4111         (main.o): Update dependencies.
4112         (gdb$(EXEEXT)): Add gdb.o.
4113         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4114         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4115         (SUBDIR_GDBTK_CLEAN): Set.
4116         (install-gdbtk): Install the insight binary.
4117         (uninstall-gdbtk): New target.
4118         (all-gdbtk, clean-gdbtk): New rule.
4119         * top.c (use_windows): Default to zero.
4120         * main.c: Include "main.h".
4121         (main): Delete.
4122         (struct captured_main_args): Delete.
4123         (gdb_main): New function.
4124         * main.h: New file.
4125         * gdb.c: New File.
4126
4127 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4128
4129         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4130         (frame_map_regnum_to_name): New function.
4131         (frame_map_name_to_regnum): New function.
4132         * frame.h (frame_map_name_to_regnum): Declare.
4133         (frame_map_regnum_to_name): Declare.
4134         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4135         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4136         * parse.c: Do not include "builtin-regs.h".
4137         (target_map_name_to_register): Delete function.
4138         (write_dollar_variable): Use frame_map_name_to_regnum.
4139         * parser-defs.h (target_map_name_to_register): Delete declaration.
4140         * expprint.c: Include "frame.h".
4141         (print_subexp): Use frame_map_regnum_to_name.
4142         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4143         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4144
4145 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4146
4147         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4148         wasn't saved, and the next innermost frame is a dummy, return the
4149         dummy frame's link register.
4150
4151 2002-09-24  Jim Blandy  <jimb@redhat.com>
4152
4153         Fix from Paul Breed:
4154         * main.c (captured_main): Add a `break' after the case for 'b'.
4155
4156 2002-09-24  Keith Seitz  <keiths@redhat.com>
4157
4158         * varobj.c (c_type_of_child): Use get_target_type instead
4159         of TYPE_TARGET_TYPE.
4160
4161 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4162
4163         * source.c (get_current_or_default_source_symtab_and_line): Remove
4164         function.
4165         (set_default_source_symtab_and_line): New function. Attempts to
4166         determine a source file to list lines from if one is not currently
4167         defined.
4168         (get_current_source_symtab_and_line): Initialize sal.pc and
4169         sal.end fields.
4170         (set_current_source_symtab_and_line): Mark argument as const.
4171         * source.h: Update declarations and comments.
4172         * linespec.c (decode_line_1): Replace call to removed routine above.
4173         * stack.c (print_frame_info_base): Ditto.
4174         * cli/cli-cmds.c (edit_command): Ditto.
4175         (list_command): Ditto.
4176
4177 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4178
4179         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4180         sal.pc and sal.end fields.
4181         (get_current_or_default_source_symtab_and_line): Ditto.
4182         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4183         so we do not cause a new source symtab to be searched for (reverting an
4184         unintentional change from the 2002-09-20 patch).
4185         * scm-lang.c (scm_unpac): Ditto.
4186
4187 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4188
4189         * complaints.c (symfile_explanations): Remove new-line from
4190         ``isolated_message''.
4191         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4192         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4193
4194 2002-09-20  Nick Clifton  <nickc@redhat.com>
4195         
4196         * NEWS: Announce that V850EA ISA is no longer supported.
4197         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4198
4199 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4200
4201         * Makefile.in (c-lang.o): Correct dependencies.
4202         (utils.o): Gather dependencies.
4203         (charset.o): Move.
4204         * c-lang.c: #include "gdb_string.h"
4205
4206 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4207
4208         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4209         * cli/cli-cmds.c (list_command): New function.  Implements the new
4210         cli edit command.
4211         (_init_cli_cmds): Add new command definition.
4212         * gdb.1: Document edit command.
4213         * doc/gdb.texinfo: Document edit command.
4214
4215 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4216
4217         * source.c: Make global variables current_source_symtab and
4218         current_source_line static.
4219         (list_command): Moved to cli/cli-cmds.c.
4220         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4221         (get_first_line_listed): New accessor function.
4222         (get_lines_to_list): New accessor function.
4223         (get_current_source_symtab_and_line): New function. Retrieves the
4224         position in the source code that we consider current.
4225         (get_current_or_default_source_symtab_and_line): New function.
4226         Like the above but attempts to determine a default position if one
4227         is not currently defined.
4228         (set_current_source_symtab_and_line): New function. Sets the source
4229         code position considered current and returns the previously set one.
4230         (clear_current_source_symtab_and_line): Reset stored information about
4231         a current source line.
4232         (_initialize_source): Remove registration for the "list" command and
4233         its alias.
4234         * source.h: Add declarations for the new functions above.
4235         * symtab.h: Remove declarations for the global variables mentioned
4236         above.
4237         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4238         obtain current source line.
4239         * linespec.c (decode_line_1): Ditto.
4240         * macroscope.c (default_macro_scope): Ditto.
4241         * scm-lang.c (scm_unpac): Ditto.
4242         * stack.c (print_frame_info_base): Ditto.
4243         * symfile.c (clear_symtab_users): Ditto.
4244         * symtab.c (decode_line_spec): Ditto.
4245         * cli/cli-cmds.c (list_command): Moved here from source.c.
4246         (ambiguous_line_spec): Moved here from source.c.
4247         (_init_cli_cmds): Add definition for "list" and its alias.
4248         * Makefile.in: Update dependencies.
4249
4250 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4251
4252         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4253         with what gcc thinks is correct.
4254
4255 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4256
4257         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4258         multiple register push instruction.
4259
4260 2002-09-19  Jim Blandy  <jimb@redhat.com>
4261
4262         Add support for distinct host and target character sets.
4263         * charset.c, charset.h: New files.
4264         * c-exp.y: #include "charset.h".
4265         (yylex): Convert character and string literals to the target
4266         character set, before returning them as the semantic value of the
4267         token.
4268         * c-lang.c: #include "charset.h".
4269         (c_emit_char): Use charset-specific methods to recognize
4270         characters with backslash escape forms, to decide which characters
4271         to print literally and which to print using numeric escape
4272         sequences, and to convert target characters to host characters
4273         before printing.
4274         * utils.c: #include "charset.h".
4275         (no_control_char_error): New function.
4276         (parse_escape): Use charset-specific methods to recognize
4277         backslash escapes, parse `control character' notation, and convert
4278         characters from the host character set to the target character set.
4279         * configure.in: Set the default host character set.
4280         Check where to find iconv, and what its argument types might be.
4281         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4282         * Makefile.in (SFILES): List charset.c.
4283         (COMMON_OBS): List charset.o.   
4284         (charset.o): New rule.
4285         (charset_h): New header dependency variable.
4286         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4287         (LIBICONV): New variable, set by configure.
4288         (CLIBS): Include $(LIBICONV) here.
4289         * aclocal.m4, config.in, configure: Regenerated.
4290
4291 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4292
4293         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4294         bison 1.35 warning.
4295
4296 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4297
4298         * gdb_mbuild.sh: New file.
4299
4300 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4301
4302         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4303
4304 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4305
4306         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4307         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4308         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4309         valops.c, value.h: Revert previous change.
4310         
4311 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4312
4313         Preliminary support for Objective-C:
4314         * defs.h (language_objc): New enum value.
4315         (puts_filtered_tabular): Declaration only, exported from utils.c.
4316         (skip_quoted): Delete, declared in completer.h.
4317         * c-exp.y: Include completer.h.
4318         * p-exp.y: Ditto.
4319         * jv-exp.y: Ditto.
4320         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4321         New operator enum values.
4322         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4323         * language.c (binop_result_type): Handle language_objc case.
4324         (integral_type, character_type, string_type, boolean_type,
4325         structured_type, binop_type_check): Ditto.
4326         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4327         (struct objc_specific): Add to general_symbol_info.
4328         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4329         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4330         * parser-defs.h (struct objc_class_str): New struct type.
4331         (start_msglist, end_msglist, add_msglist): Declaration only,
4332         exported from objc-lang.c.
4333         * value.h (value_of_local, value_nsstring, 
4334         call_function_by_hand_expecting_type): Exported from valops.c.
4335         * valops.c (find_function_addr): Export.
4336         (call_function_by_hand_expecting_type): New function.
4337         (value_of_local): New function.
4338         * symfile.c (init_filename_language_table): Add ".m" extension
4339         for Objective-C.
4340         * utils.c (puts_filtered_tabular): New function.
4341         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4342         (set/show demangle): Extend help-string to refer to ObjC.
4343         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4344         * stabsread.c (symbol_reference_defined): Objective-C symbols
4345         may contain colons: make allowances when scanning stabs strings
4346         for colons.
4347         (objc_find_colon): New function.
4348         * printcmd.c (address_info): If language == objc then print
4349         "self" instead of "this".
4350         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4351         OP_NSSTRING, and OP_SELF.
4352         (prefixify_subexp): Ditto.
4353         * source.c (print_source_lines): Mention objc in comment.
4354         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4355         method names.
4356
4357 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4358
4359         * complaints.h: Update copyright.
4360         (struct complaints): Declare.
4361         (struct complaint): Make `message' constant.
4362         (internal_complaint): Declare.
4363         (complaint): Declare.
4364         (complaint_root): Delete declaration.
4365         (symfile_complaints): Delete declaration.
4366         (struct complaints): Add opaque declaration.
4367         (clear_complaints): Add a complaints parameter.
4368         * complaints.c: Update copyright.
4369         (enum complaint_series): Define.
4370         (complaint_root): Delete.
4371         (struct complaints): Define.
4372         (complaint_sentinel, symfile_complaint_book): New variables.
4373         (symfile_explanations, symfile_complaints): New variables.
4374         New variables.
4375         (get_complaints): New function.
4376         (vcomplaint): New function.
4377         (complaint): New function.
4378         (internal_complaint): New function.
4379         (complain): Call vcomplain with symfile_complaint.
4380         (clear_complaints): Rewrite.
4381         (_initialize_complaints): Use add_setshow_command.
4382         * Makefile.in (complaints.o): Update dependencies.
4383         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4384         to call to clear_complaints.
4385         (new_symfile_objfile, reread_symbols): Ditto.
4386         (oldsyms_complaint): Delete.
4387         (empty_symtab_complaint, unknown_option_complaint): Delete.
4388         (free_named_symtabs): Use complaint instead of complain.
4389
4390 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4391
4392         Contributed by Apple Computer, Inc.  Merged with current sources
4393         by Adam Fedor <fedor@doc.com> [cagney].
4394         
4395         * objc-lang.c: First clean-up round: comments, indentation.
4396         * objc-lang.h: Ditto.
4397         * objc-lang.y: Ditto.
4398
4399 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4400
4401         * maint.c (maintenance_internal_error): Print the parameter as the
4402         error message.
4403         (maintenance_internal_warning): New function.
4404         (_initialize_maint_cmds): Add command `maint internal-warning'.
4405
4406         * defs.h (internal_warning, internal_vwarning): Declare.
4407         * utils.c (struct internal_problem): Define.
4408         (internal_vproblem): New function.
4409         (internal_warning): New function.
4410         (internal_vwarning): New function.
4411         (internal_warning_problem, internal_error_problem): New variables.
4412         (internal_verror): Just call internal_vproblem.
4413
4414 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4415
4416         * objc-lang.c: New file, support for Objective-C.
4417         Preliminary check-in, not yet integrated into gdb.
4418         * objc-lang.h: New file.
4419         * objc-exp.y:  New file.
4420
4421 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4422
4423         * infrun.c (signal_stop_update): Convert definition to ISO C.
4424         (signal_print_update): Ditto.
4425         (signal_pass_update): Ditto.
4426         * inflow.c (terminal_save_ours): Ditto.
4427
4428         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4429         comments.
4430         
4431         * config/djgpp/fnchange.lst: Handle name clashes between
4432         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4433         bfd/coff-tic80.c.
4434
4435         * i386-linux-tdep.h: Fix tipo.
4436
4437 2002-09-18  Adam Fedor  <fedor@gnu.org>
4438
4439         * MAINTAINERS: Add myself to the Write After Approval list.
4440
4441 2002-09-18  Jim Blandy  <jimb@redhat.com>
4442
4443         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4444         texthigh and textlow to reader-specific structs caused
4445         objfile_relocate to miss them.  This is fixable, but the work that
4446         the change was supposed to prepare GDB for never got done anyway.
4447
4448 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4449
4450         * MAINTAINERS: Alphabetize Write After Approval list.
4451
4452 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4453
4454         Fix PR gdb/709
4455         * values.c (value_static_field): Call read_var_value.
4456
4457 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4458
4459         * valops.c (hand_function_call): Align the initial stack pointer
4460         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4461         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4462         return value.
4463         * mips-tdep.c (mips_frame_align): New function.
4464         (mips_gdbarch_init): Set frame_align.
4465         * gdbarch.sh (FRAME_ALIGN): New method.
4466         * gdbarch.h, gdbarch.c: Re-generate.
4467
4468 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4469
4470         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4471         registers.
4472
4473 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4474
4475         * NEWS: Mention that MIPS $fp behavior changed.
4476         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4477         reference to FP_REGNUM.
4478         (mipsnbsd_cannot_store_register): Ditto.
4479         * mips-linux-nat.c: Update copyright.
4480         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4481         (mips_linux_cannot_store_register): Ditto.
4482         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4483         * config/mips/tm-mips.h: Update copyright.
4484         (FP_REGNUM): Delete macro.
4485         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4486         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4487         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4488         (mips_r3041_reg_names, mips_r3051_reg_names)
4489         (mips_r3081_reg_names): Replace "fp" with "".
4490         Fix PR gdb/480.
4491
4492 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4493
4494         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4495         generic_read_register_dummy() (PR gdb/703).
4496         (avr_push_return_address): #if 0 out unused vars.
4497         (avr_gdbarch_init): Enable use of avr_push_return_address().
4498
4499 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4500
4501         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4502         RTE will take care of it.
4503
4504 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4505
4506         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4507         invalid, return SP_REGNUM.
4508
4509 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4510
4511         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4512         point registers without sign extension.
4513
4514 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4515
4516         * blockframe.c (deprecated_read_register_dummy): Rename
4517         generic_read_register_dummy.
4518         * frame.c (frame_unwind_signed_register): New function.
4519         (frame_unwind_unsigned_register): New function.
4520         * frame.h (frame_unwind_signed_register): Declare.
4521         (frame_unwind_unsigned_register): Declare.
4522         (deprecated_read_register_dummy): Rename
4523         generic_read_register_dummy.
4524
4525         * h8300-tdep.c (h8300_frame_chain): Update.
4526         (h8300_frame_saved_pc): Update.
4527         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4528         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4529         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4530         (s390_frame_chain): Update.
4531         * v850-tdep.c (v850_find_callers_reg): Update.
4532         (v850_frame_saved_pc): Update.
4533         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4534         (m32r_find_callers_reg): Update.
4535         (m32r_frame_saved_pc): Update.
4536         * sh-tdep.c (sh_find_callers_reg): Update.
4537         (sh64_get_saved_pr): Update.
4538         (sh_init_extra_frame_info): Update.
4539         (sh_init_extra_frame_info): Update.
4540         (sh64_init_extra_frame_info): Update.
4541         (sh64_init_extra_frame_info): Update.
4542         * mcore-tdep.c (mcore_find_callers_reg): Update.
4543         (mcore_frame_saved_pc): Update.
4544         (mcore_init_extra_frame_info): Update.
4545         * i386-tdep.c (i386_frame_saved_pc): Update.
4546         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4547         (ia64_init_extra_frame_info): Update.
4548         (ia64_init_extra_frame_info): Update.
4549         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4550         * cris-tdep.c (cris_init_extra_frame_info): Update.
4551         * avr-tdep.c (avr_frame_chain): Update.
4552         (avr_init_extra_frame_info): Update.
4553         (avr_frame_saved_pc): Update.
4554         * arm-tdep.c (arm_find_callers_reg): Update.
4555         (arm_init_extra_frame_info): Update.
4556         (arm_frame_saved_pc): Update.
4557
4558 2002-09-17  Tom Tromey  <tromey@redhat.com>
4559
4560         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4561         is "'".
4562
4563 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4564
4565         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4566         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4567         NEXT_PROLOGUE_INSN.
4568         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4569         NEXT_PROLOGUE_INSN.
4570
4571 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4572
4573         * osfsolib.c: Remove file, replaced by solib-osf.c.
4574         * Makefile.in: Remove compilation rules for osfsolib.c.
4575
4576 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4577
4578         * cp-valprint.c (cp_print_class_method): Correct args to
4579         check_stub_method_group.
4580
4581 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4582
4583         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4584         `set architecture'.  Unify naming convention of functions.
4585         (h8300_skip_prologue): Improve prologue analysis.
4586         (h8300_push_arguments): Rewritten to more closely match GCC's
4587         bizarre argument-passing behavior, along with the comment describing
4588         said behavior.
4589         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4590         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4591         sim, remote-e7000.c, remote-hms.c and remote.c
4592
4593 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4594
4595         * i386-tdep.c (gdb_print_insn_i386): Removed.
4596         (i386_print_insn): New function.
4597         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4598         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4599         tm_print_insn_info.
4600
4601 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4602
4603         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4604         zero.
4605
4606 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4607
4608         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4609         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4610         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4611
4612 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4613
4614         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4615
4616 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4617
4618         * gdbtypes.c (check_stub_method): Make static.
4619         (check_stub_method_group): New function.
4620         * gdbtypes.h: Update prototypes.
4621         * cp-support.c: New file.
4622         * cp-support.h: New file.
4623
4624         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4625         (update_method_name_from_physname): New function.
4626         (read_member_functions): Correct method names for operators
4627         and v3 constructors/destructors.  Separate v2 constructors and
4628         destructors.
4629         * Makefile.in (stabsread.o): Update dependencies.
4630         (SFILES): Add cp-support.c.
4631         (COMMON_OBS): Add cp-support.o.
4632         (cp_support_h, cp-support.o): Add.
4633
4634         * cp-valprint.c (cp_print_class_method): Call
4635         check_stub_method_group instead of check_stub_method.  Remove
4636         extraneous QUITs.
4637         * p-valprint.c (pascal_object_print_class_method): Likewise.
4638         * valops.c (search_struct_method): Likewise.
4639         (find_method_list, value_struct_elt_for_reference): Likewise.
4640
4641 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4642
4643         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4644         * gdbarch.h, gdbarch.c: Regenerate.
4645
4646 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4647
4648         * frame.c (find_saved_register): Delete function.
4649         * frame.h (find_saved_register): Delete declaration.
4650         Fix PR gdb/631.
4651
4652 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4653
4654         * mips-tdep.c (read_next_frame_reg): Re-hack using
4655         frame_register_unwind.
4656
4657 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4658
4659         * mips-tdep.c (mips_get_saved_register): Re-hack using
4660         frame_register_unwind.
4661
4662 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4663
4664         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4665         vector. Will be useful for Interix.  
4666         * gdbarch.h, gdbarch.c: Regenerate.
4667
4668         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4669         name of the malloc function by NAME_OF_MALLOC.
4670
4671 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4672
4673         * value.h (find_function_in_inferior): Add const keyword to
4674         one of the parameters. Allows us to invoke this function with
4675         a const char *.
4676         * valops.c (find_function_in_inferior): Likewise.
4677
4678 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4679
4680         * exec.c (xfer_memory): Fix compilation warning with old versions
4681         of GCC.
4682         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4683
4684 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4685
4686         * symtab.h: Run through gdb_indent.h.
4687         Add 2002 to Copyright year list.
4688
4689 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4690
4691         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4692         mach constants.
4693         * MAINTAINERS: Add myself to write after approval list.
4694
4695 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4696
4697         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4698
4699 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4700
4701         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4702         Interix.
4703
4704 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4705
4706         * procfs.c (do_detach): Clear current signal, not just fault.
4707         Corrects problem with breakpoint trap signal leaking to detached
4708         process on Tru64.
4709
4710 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4711
4712         * buildsym.c (finish_block): Protect against null pointer.
4713
4714 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4715
4716         * infcmd.c (default_print_registers_info): Send all output to
4717         ``file'' instead of ``gdb_stdout''.
4718
4719 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4720
4721         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4722         LONGEST, and use signed register read (addresses are sign-
4723         extended for mips).
4724
4725 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4726
4727         * event-loop.c (gdb_do_one_event): Make public.
4728         * event-loop.h (gdb_do_one_event): Declare.
4729
4730 2002-09-10  Jeff Law  <law@redhat.com>
4731
4732         * infttrace.c (child_resume): Simplify and rework to avoid
4733         TT_PROC_CONTINUE.
4734
4735 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4736
4737         * printcmd.c (print_scalar_formatted): "len" is the number of
4738         target bytes, NOT the number of target bits.
4739
4740 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4741
4742         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4743         * top.c (init_main): Set rl_terminal_name.
4744
4745 2002-09-08  Aidan Skinner <aidan@velvet.net>
4746
4747         * ada-lang.c (ada_array_bound, ada_type_match,
4748         _initialize_ada_language): Fix K&R definitions.
4749         * ada-tasks.c (get_current_task): Fix K&R definitions.
4750         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4751                         
4752 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4753
4754         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4755         Add XP.
4756
4757 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4758
4759         * i386-tdep.c (i386_register_virtual_type,
4760         i386_register_convertible, i386_register_convert_to_virtual,
4761         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4762         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4763         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4764         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4765         Don't set push_arguments twice.
4766
4767         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4768         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4769         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4770         sigtramp_end to NULL.
4771         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4772         defines.
4773         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4774
4775         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4776         whitespace.
4777
4778         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4779         * gdbarch.h, gdbarch.c: Re-generate.
4780         * blockframe.c (find_pc_sect_partial_function): Convert to use
4781         SIGTRAMP_START_P predicate.
4782
4783 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4784
4785         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4786         generic_dummy_frame method and old method.  Also distinguish
4787         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4788         (arm_extract_return_value): Use new regcache method.
4789
4790         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4791         adjustment that doesn't conform to the ABI.
4792         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4793         saved regcache, not from current regcache.
4794
4795 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4796
4797         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4798         * README: Update.
4799
4800 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4801
4802         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4803         if arm_apcs_32 is false.
4804
4805 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4806
4807         GDB 5.3 branch created.
4808
4809 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4810
4811         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4812         generic_unwind_get_saved_register.
4813
4814 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4815
4816         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4817         argument (PR gdb/653).  Update call to smash_to_method_type.
4818         (read_structure_scope): Update call to dwarf2_add_member_fn.
4819
4820 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4821
4822         * x86-64-linux-tdep.c: Include gdb_string.h
4823         * x86-64-linux-nat.c: Ditto.
4824
4825 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4826
4827         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4828         when YYDEBUG is set to 1.  
4829         * c-exp.y: Likewise.
4830         * f-exp.y: Likewise.
4831         * jv-exp.y: Likewise.
4832         * m2-exp.y: Likewise.
4833         * p-exp.y: Likewise.
4834
4835 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4836
4837         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4838         dependency list.
4839         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4840         solib_svr4_fetch_link_map_offsets to
4841         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4842         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4843         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4844         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4845         solib-svr4.o, and solib-legacy.o.
4846         * config/i386/tm-nbsd.h: Include solib.h.
4847
4848 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4849
4850         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4851         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4852         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4853         comment noting that this needs its own target configuration.
4854         * config/i386/nbsd.mt: New file.
4855         * config/i386/nbsdaout.mt: Remove.
4856         * config/i386/nbsdelf.mt: Ditto.
4857         * config/i386/tm-nbsdaout.h: Ditto. 
4858
4859 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4860
4861         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4862         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4863         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4864         tdep->sigtramp_end.
4865         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4866         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4867         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4868
4869 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4870
4871         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4872         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4873         * i386-tdep.h (i386bsd_init_abi): New prototype.
4874         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4875         function declaration.
4876         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4877         for NetBSD-a.out or NetBSD-ELF.
4878         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4879         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4880         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4881         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4882         and nbsd-tdep.h.
4883         (i386nbsd_pc_in_sigtramp): New function.
4884         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4885         i386nbsd_pc_in_sigtramp.
4886         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4887         and i386nbsdelf_init_abi OS ABI handlers.
4888         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4889         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4890
4891 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4892
4893         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4894         registers if the target really has them.
4895
4896 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4897
4898         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4899         than nbsd-tdep.h.
4900
4901 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4902
4903         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4904         list.
4905         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4906         (alphanbsd_skip_sigtramp_frame): New functions. 
4907         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4908         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4909         to alphanbsd_sigcontext_addr. 
4910
4911 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4912
4913         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4914         list.
4915         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4916         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4917         nbsd_pc_in_sigtramp. 
4918         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4919         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4920         * nbsd-tdep.c: Include gdb_string.h.
4921         (nbsd_pc_in_sigtramp): New function. 
4922         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4923         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4924         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4925         ppcnbsd_pc_in_sigtramp. 
4926         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4927         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4928         shnbsd_pc_in_sigtramp. 
4929         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4930         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4931         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4932
4933 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4934
4935         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4936         watchpoints to NULL.
4937         (insert_breakpoints): set val field of watchpoints if NULL.
4938
4939
4940 2002-08-29  Jim Blandy  <jimb@redhat.com>
4941
4942         * symtab.c (lookup_symbol_aux): In the cases where we find a
4943         minimal symbol of an appropriate name and use its address to
4944         select a symtab to read and search, use `name' (as passed to us)
4945         as the demangled name when searching the symtab's global and
4946         static blocks, not the minsym's name.
4947
4948 2002-08-29  Keith Seitz  <keiths@redhat.com>
4949
4950         * stack.c (print_frame_info_base): Always set current_source_symtab
4951         and current_source_line.
4952
4953 2002-08-29  Donn Terry  <donnte@microsoft.com>
4954
4955         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4956
4957 2002-08-28  Keith Seitz  <keiths@redhat.com>
4958
4959         * stack.c (select_frame): Add FIXME concerning selected-frame
4960         events.
4961         (select_frame_command): Send selected-frame-level-changed
4962         event notification, but only if the level actually changed.
4963         (up_silently_base): Add selected-frame-level-changed event
4964         notification.
4965         (down_silently_base): Likewise.
4966
4967 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4968
4969         * Makefile.in: Update dependencies for all gdb/*.c files.
4970
4971 2002-08-27  Tom Tromey  <tromey@redhat.com>
4972
4973         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4974         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4975         Update dependencies.
4976         * i387-tdep.c: Include gdb_string.h.
4977         * osabi.c: Likewise.
4978         * i386-linux-nat.c: Likewise.
4979         * lin-lwp.c: Likewise.
4980         * ax-gdb.c: Likewise.
4981         * signals/signals.c: Likewise.
4982         * jv-valprint.c: Likewise.
4983         * p-lang.c: Likewise.
4984         * c-valprint.c: Likewise.
4985         * cp-abi.c: Likewise.
4986
4987 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4988
4989         * cli/cli-script.h (copy_command_lines): Export.
4990         * breakpoint.c: Include cli/cli-script.h.
4991         * Makefile.in (breakpoint.o): Update dependencies.
4992
4993 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4994
4995         * breakpoint.c (insert_breakpoints): Protect all references
4996         to 'process_warning'.  Shorten long lines.
4997
4998 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4999
5000         * cli/cli-script.c (copy_command_lines): New function.
5001         * defs.h (copy_command_lines): Export.
5002         * testsuite/gdb.base/commands.exp: New tests for commands
5003         attached to a temporary breakpoint, and for commands that
5004         delete the breakpoint they are attached to.
5005         
5006 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5007
5008         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5009         pointer to the breakpoint commands struct, make a new copy
5010         of the struct and point to that.
5011         (bpstat_clear): Free the commands struct.
5012         (bpstat_clear_actions): Free the commands struct.
5013         (bpstat_do_actions): Free the command actions.  Also execute
5014         the local cleanups, instead of deleting them.
5015         (delete_breakpoint): Leave the commands field of the bpstat
5016         chain alone -- it will be freed later.
5017
5018 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5019
5020         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5021         deleted in 2002-08-20 commit.  This function is still used by
5022         ppc-linux-nat.c.
5023
5024 2002-08-26  Keith Seitz  <keiths@redhat.com>
5025
5026         * gdb-events.sh: Add selected-frame-level-changed event.
5027         * gdb-events.c: Regenerated.
5028         * gdb-events.h: Regenerated.
5029         
5030 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5031
5032         Fix PR gdb/393:
5033         * inflow.c (terminal_save_ours): New function to save terminal
5034         settings.
5035         * inferior.h (terminal_save_ours): Declare.
5036         * target.c (debug_to_terminal_save_ours): New function.
5037         (cleanup_target): Defaults to_terminal_save_ours.
5038         (update_current_target): Inherit to_terminal_save_ours.
5039         (setup_target_debug): Set to_terminal_save_ours.
5040         * target.h (target_terminal_save_ours): New to save terminal settings.
5041         (target_ops): New member to_terminal_save_ours.
5042         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5043         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5044         * inftarg.c (init_child_ops): Likewise.
5045         * m3-nat.c (init_m3_ops): Likewise.
5046         * procfs.c (init_procfs_ops): Likewise.
5047         * wince.c (init_child_ops): Likewise.
5048         * win32-nat.c (init_child_ops): Likewise.
5049         * sol-thread.c (init_sol_thread_ops): Likewise.
5050
5051 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5052
5053         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5054         use regcache_* functions.
5055         (i386_gdbarch_init): Set store_return_value instead of
5056         deprecated_store_return_value.
5057
5058         * regcache.c (regcache_raw_write_signed,
5059         regcache_raw_write_unsigned): New functions.
5060         * regcache.h (regcache_raw_write_signed,
5061         regcache_raw_write_unsigned): New prototypes.
5062
5063 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5064
5065         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5066         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5067         source file dependencies.  Cleanup corresponding generator rules.
5068
5069 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5070
5071         * regcache.h (register_offset_hack): Declare.
5072         (regcache_cooked_read_using_offset_hack): Declare.
5073         (regcache_cooked_write_using_offset_hack): Declare.
5074
5075         * regcache.c (register_offset_hack): New function.
5076         (regcache_cooked_read_using_offset_hack): New function.
5077         (regcache_cooked_write_using_offset_hack): New function.
5078         (regcache_dump): Check that the registers, according to their
5079         offset, are packed hard against each other.
5080         (cooked_xfer_using_offset_hack): New function.
5081
5082 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5083
5084         * regcache.c (struct regcache_descr): Add field register_type.
5085         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5086         in as a parameter
5087         (init_regcache_descr): Initialize register_type.  Pass the descr
5088         to init_legacy_regcache_descr.  Use register_type instead of
5089         REGISTER_VIRTUAL_TYPE.
5090         (register_type): New function.
5091         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5092         * regcache.h (register_type): Declare.
5093
5094 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5095
5096         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5097         instead of deprecated_store_return_value.  Fix fallout from
5098         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5099
5100 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5101
5102         * regcache.c (max_register_size): New function.
5103         (init_legacy_regcache_descr): Ensure that max_register_size is
5104         large enough for REGISTER_VIRTUAL_SIZE.
5105         * regcache.h (max_register_size): Declare.
5106
5107 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5108
5109         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5110         store_return_value.
5111         (e500_extract_return_value): Change type of valbuf pointer to
5112         void.
5113
5114 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5115
5116         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5117         workaround.
5118
5119         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5120         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5121         long long) to prevent compiler warning on 64-bit systems.
5122
5123 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5124
5125         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5126         (DEPRECATED_STORE_RETURN_VALUE): New method.
5127         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5128         * gdbarch.h, gdbarch.c: Re-generate.
5129
5130         * values.c (set_return_value): Pass current_regcache to
5131         STORE_RETURN_VALUE.
5132         * arch-utils.h (legacy_store_return_value): Declare.
5133         * arch-utils.c (legacy_store_return_value): New function.
5134         (legacy_extract_return_value): Update parameters.
5135
5136         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5137         STORE_RETURN_VALUE.
5138         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5139         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5140         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5141         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5142         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5143         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5144         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5145         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5146         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5147         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5148
5149         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5150         * i386-tdep.c (i386_extract_return_value): Update.
5151         * arch-utils.c (legacy_extract_return_value): Update.
5152         * frv-tdep.c (frv_gdbarch_init): Update.
5153         * cris-tdep.c (cris_gdbarch_init): Update.
5154         * d10v-tdep.c (d10v_gdbarch_init): Update.
5155         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5156         * m68k-tdep.c (m68k_gdbarch_init): Update.
5157         * mcore-tdep.c (mcore_gdbarch_init): Update.
5158         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5159         * s390-tdep.c (s390_gdbarch_init): Update.
5160         * sparc-tdep.c (sparc_gdbarch_init): Update.
5161         * sh-tdep.c (sh_gdbarch_init): Update.
5162         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5163         * v850-tdep.c (v850_gdbarch_init): Update.
5164         * avr-tdep.c (avr_gdbarch_init): Update.
5165         * ia64-tdep.c (ia64_gdbarch_init): Update.
5166         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5167         * vax-tdep.c (vax_gdbarch_init): Update.
5168         * alpha-tdep.c (alpha_gdbarch_init): Update.
5169         * arm-tdep.c (arm_gdbarch_init): Update.
5170         * mips-tdep.c (mips_gdbarch_init): Update.
5171         * i386-tdep.c (i386_gdbarch_init): Update.
5172
5173 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5174
5175         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5176         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5177
5178 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5179
5180         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5181         problems.
5182
5183 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5184
5185         * infrun.c (handle_inferior_event): Move a comment outside of a
5186         function call, in order to avoid indent reformatting this part
5187         of the code in an unreadable way.
5188
5189 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5190
5191         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5192         when breakpoints fail. Move general breakpoint error messages to
5193         insert_breakpoints.  
5194         * breakpoint.c (insert_breakpoints): Change warnings when
5195         breakpoints are nto inserted to specify the type. Remove call to
5196         memory_error when hardware breakpoints can't be inserted. Remove
5197         multiple calls to warning so all messages are sent to the user at
5198         once.
5199         (delete_breakpoints): Make insert error messsages more explicit.
5200
5201 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5202
5203         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5204         gdbserver/ChangeLog.
5205
5206 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5207
5208         * i386-tdep.c: Include "objfiles.h".
5209         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5210         skip_trampoline_code.
5211         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5212         (CPLUS_MARKER): Define to '.'.
5213
5214         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5215         member.
5216         (linux_corefile_thread_callback): Increase args->num_notes.
5217         (linux_make_note_section): Initialize thread_args.num_notes, and
5218         use it to determine whether notes for any threads were created.
5219
5220 2002-08-23  Donn Terry  <donnte@microsoft.com>
5221
5222         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5223         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5224         and PCUNKILL.
5225         (write_with_trace): Conditionalize out the switch branch handling
5226         PCSHOLD if the corresponding macro is not defined. Likewise for
5227         PRSABORT and PRSTOP.
5228         This change will be needed by the Interix port.
5229
5230 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5231
5232         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5233         write_register wherever possible instead of manipulating the
5234         register bytes directly.
5235         Assign VALUE_CONTENTS to a variable and use that.
5236         The GPR numbers are now dependent on the architecture.
5237         
5238 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5239
5240         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5241         ev_offset fields.
5242         (skip_prologue): Add support for BookE/e500 instructions.
5243         (e500_extract_return_value): New function.
5244         (frame_get_saved_regs): Add support for saving ev registers and
5245         pseudo gpr's.
5246         (e500_store_return_value): New function.
5247         (rs6000_gdbarch_init): Move up default intializations of
5248         deprecated_extract_return_value and store_return_value.  Overwrite
5249         init of store_return_value with e500 specific version.
5250         Set extract_return_value for e500.
5251         
5252 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5253
5254         * blockframe.c (generic_call_dummy_register_unwind): Use
5255         regcache_cooked_read to catch cases in which the variable is
5256         stored in a pseudo register.
5257
5258 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5259
5260         * NEWS: Mention that the i960 has been made obsolete.
5261         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5262         i960-tdep.c
5263         (remote-nrom.o): Obsolete target.
5264         (remote-nindy.o, i960-tdep.o): Ditto.
5265         * remote-nrom.c: Make file obsolete.
5266         * remote-nindy.c, remote-vx960.c: Ditto.
5267         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5268         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5269         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5270         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5271         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5272         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5273         i960-*-vxworks* obsolete.
5274         * MAINTAINERS: Note that the i960 is obsolete.
5275
5276 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5277
5278         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5279         detach to allow reinitialization.
5280
5281 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5282
5283         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5284         attempt).
5285
5286 2002-08-22  Jim Blandy  <jimb@redhat.com>
5287
5288         * coffread.c (coff_symfile_read): Don't try to read the line
5289         number table from disk if the image file doesn't have a symbol
5290         table; we'll never actually look at the info anyway, and Windows
5291         ships DLL's with bogus file offsets for the line number data.
5292
5293 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5294
5295         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5296         an e500 executable.
5297
5298 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5299
5300         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5301         (MSYMBOL_SIZE): Replace macro with function.
5302         (DEFAULT_MIPS_TYPE): Delete unused macro.
5303         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5304         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5305
5306 2002-08-21  Jim Blandy  <jimb@redhat.com>
5307
5308         * valops.c (value_cast): Simplify and correct logic for doing a
5309         static cast from a pointer to a base class to a pointer to a
5310         derived class.
5311
5312 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5313
5314         * infcmd.c (default_print_registers_info): Replace
5315         do_registers_info.
5316         (registers_info): Use gdbarch_print_registers_info instead of
5317         DO_REGISTERS_INFO.
5318         * inferior.h (default_print_registers_info): Replace
5319         do_registers_info.
5320         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5321         (DO_REGISTERS_INFO): Change to a predicate function.
5322         * gdbarch.h, gdbarch.c: Regenerate.
5323         
5324 2002-08-21  Keith Seitz  <keiths@redhat.com>
5325
5326         * gdb-events.sh: Add target-changed event.
5327         * gdb-events.c: Regenerated.
5328         * gdb-events.c: Regenerated.
5329         * valops.c (value_assign): Add target-changed event notification
5330         to inlval_register, lval_memory, and lval_reg_frame_relative.
5331
5332 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5333
5334         * NEWS: Add an entry regarding the improvement of the next/step
5335         operation on Alpha Tru64 multi-processor machines.
5336
5337 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5338
5339         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5340         directores.
5341         * Makefile.in: Update all _h macro definitions.
5342         * Makefile.in (install-gdbtk): Move to install section.
5343         (rdi-share/libangsd.a): Move to end of file.
5344
5345 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5346
5347         * frame.c (frame_register_unwind): When a register, set addrp to
5348         the register's byte.
5349
5350 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5351
5352         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5353         used locally, so move them from the target machine header to here.
5354         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5355         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5356         Make static.
5357         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5358
5359 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5360
5361         * NEWS: Mention that the Apollo line was made obsolete.
5362         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5363         m68*-hp-hpux* obsolete.
5364         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5365         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5366         * buildsym.c (make_blockvector): Make static.
5367         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5368         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5369         (ALLDEPFILES): Remove dstread.c.
5370         (dstread.o): Obsolete make rule.
5371         * dstread.c: Makefile obsolete.
5372         * dst.h: Ditto.
5373         * config/m68k/hp300hpux.mt: Ditto.
5374         * config/m68k/hp300hpux.mh: Ditto.
5375         * config/m68k/hp300bsd.mt: Ditto.
5376         * config/m68k/hp300bsd.mh: Ditto.
5377         * config/m68k/apollo68b.mt: Ditto.
5378         * config/m68k/apollo68v.mh: Ditto.
5379         * config/m68k/apollo68b.mh: Ditto.
5380
5381 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5382
5383         * mips-tdep.c (mips_in_return_stub): Make static.
5384         (mips_gdbarch_init): Set in_solib_return_trampoline.
5385         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5386
5387 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5388
5389         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5390         * gdbarch.c, gdbarch.h: Regenerate.
5391         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5392         Add.
5393         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5394
5395 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5396
5397         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5398         (mips_gdbarch_init): Set skip_trampoline_code, 
5399         in_solib_call_trampoline.
5400         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5401         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5402
5403 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5404
5405         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5406
5407         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5408         vector type for ev registers.
5409         (e500_pseudo_register_read): New function.
5410         (e500_pseudo_register_write): New function.
5411         (e500_dwarf2_reg_to_regnum): New function.
5412         (PPC_UISA_NOFP_SPRS): New macro.
5413         (PPC_EV_REGS): New macro.
5414         (PPC_GPRS_PSEUDO_REGS): New macro.
5415         (registers_e500): New register set for e500.
5416         (variants): Add e500 variant.
5417         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5418         before setting architectural dependent variations.  Initialize ev
5419         registers numbers.  Add case for e500 architecture.  Set the
5420         number of pseudo registers.
5421
5422 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5423
5424         * rs6000-tdep.c: Clean up comments.
5425
5426 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5427
5428         * h8300-tdep.c: Re-indent file.
5429
5430 2002-08-20  Jim Blandy  <jimb@redhat.com>
5431
5432         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5433         default for this.
5434
5435 2002-08-20  Keith Seitz  <keiths@redhat.com>
5436
5437         * breakpoints.c (watch_command_1): Use internal breakpoint
5438         when setting a watchpoint_scope breakpoint.
5439
5440 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5441
5442         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5443         (build_builtin_type_vec64i): Ditto.
5444         (build_builtin_type_vec128): Ditto.
5445         (build_builtin_type_vec128i): Ditto.
5446
5447 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5448
5449         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5450         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5451         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5452         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5453         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5454         CALL_DUMMY_ADDRESS): Delete.
5455         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5456         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5457         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5458         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5459         push_return_address.
5460         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5461         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5462         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5463         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5464         mips_n32n64_push_arguments, mips_push_return_address,
5465         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5466         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5467
5468 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5469
5470         * mips-tdep.c (mips_frame_num_args): New function.
5471         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5472         frame_saved_pc, frame_args_address, frame_locals_address, 
5473         frame_num_args, and frame_args_skip.
5474         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5475         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5476         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5477         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5478
5479 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5480
5481         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5482         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5483         * mips-tdep.c (mips_store_struct_return): New function.
5484         (mips_extract_struct_value_address): New function.
5485         (mips_gdbarch_init): Set store_struct_return and
5486         extract_struct_value_address.
5487
5488 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5489
5490         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5491         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5492         (read_file_scope): Check that line_header is nonzero before
5493         decoding macro information.
5494
5495 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5496
5497         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5498         flag the general-purpose registers as floating-point on targets
5499         that don't support the floating-point registers.
5500
5501 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5502
5503         * rs6000-tdep.c (altivec_register_p): Delete.
5504         (rs6000_do_altivec_registers): Delete.
5505         (rs6000_altivec_registers_info): Delete.
5506         (rs6000_do_registers_info): Delete.
5507         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5508         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5509
5510 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5511
5512         * infcmd.c (do_registers_info): Print vector registers in hex
5513         format only.
5514         (print_vector_info): Check that printing registers
5515         makes sense.
5516         (print_float_info): Ditto.
5517
5518 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5519
5520         * mips-tdep.c (mips_gdbarch_init): Update.
5521         (mips_o32_extract_return_value): Rewrite.
5522         (mips_o32_store_return_value): Rewrite.
5523         (mips_o32_xfer_return_value): New function.
5524         (mips_xfer_register): Tweak debug print message.  Allow for
5525         buf_offset when dumping the value transfered.
5526
5527 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5528
5529         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5530         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5531         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5532         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5533         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5534
5535 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5536
5537         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5538
5539 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5540
5541         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5542         register.
5543         (P): New macro to define a register as a pseudo register.
5544         (R, R4, R8, R16, FR32, R64, R0): Updated.
5545         (struct variant): Add new fields for number of pseudo registers
5546         and number of total registers.
5547         (tot_num_registers): New macro replacing....
5548         (num_registers): ...deleted macro.
5549         (num_registers): New function.
5550         (num_pseudo_registers): New function.
5551         (variants): Update all variants to intialize new fields correctly.
5552         Postpone initialization of number of pseudo regs and real regs.
5553         (init_variants): New function.
5554         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5555         registers offsets.
5556
5557 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5558
5559         * valops.c (search_struct_field): Change error message to treat
5560         return value of 0 from value_static_field as meaning that field is
5561         optimized out.
5562         (value_struct_elt_for_reference): Ditto.
5563         * values.c (value_static_field): Treat an unresolved location the
5564         same as a nonexistent symbol.  Fix PR gdb/635.
5565         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5566         enclosed.  Fix PR gdb/574.
5567         * MAINTAINERS: Add self to Write After Approval list.
5568
5569 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5570
5571         * mips-tdep.c (mips_xfer_register): New function.
5572         (mips_n32n64_extract_return_value): Rewrite.
5573         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5574         instead of deprecated_extract_return_value.
5575
5576 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5577
5578         * rs6000-tdep.c (TDEP): Delete macro.
5579         (branch_dest): Replace use of TDEP macro with its body.
5580         (rs6000_pop_frame): Ditto.
5581         (rs6000_push_arguments): Ditto.
5582         (rs6000_skip_trampoline_code): Ditto.
5583         (rs6000_frame_saved_pc): Ditto.
5584         (rs6000_frame_chain): Ditto.
5585         (rs6000_register_name): Ditto.
5586         (rs6000_register_byte): Ditto.
5587         (rs6000_register_raw_size): Ditto.
5588         (rs6000_register_virtual_type): Ditto.
5589         (rs6000_register_convertible): Ditto.
5590         (rs6000_convert_from_func_ptr_addr): Ditto.
5591
5592 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5593
5594         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5595         conditionally.
5596         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5597         MIPS_LINUX_JB_ELEMENT_SIZE.
5598         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5599         for MAX_REGISTER_RAW_SIZE arrays.
5600         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5601         MIPS_LINUX_JB_ELEMENT_SIZE.
5602
5603 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5604
5605         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5606
5607 2002-08-19  Aidan Skinner <aidan@velvet.net>
5608
5609         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5610         ada-valprint.c ada-tasks.c.
5611         (YYFILES): Add ada-exp.y.
5612         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5613         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5614         (ada-exp.tab.o): New target.
5615                 
5616 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5617
5618         * regcache.c (regcache_xfer_part): New function.
5619         (regcache_raw_read_part): New function.
5620         (regcache_raw_write_part): New function.
5621         (regcache_cooked_read_part): New function.
5622         (regcache_cooked_write_part): New function.
5623         * regcache.h (regcache_raw_read_part): Declare.
5624         (regcache_raw_write_part): Declare.
5625         (regcache_cooked_read_part): Declare.
5626         (regcache_cooked_write_part): Declare.
5627
5628 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5629
5630         * remote.c (remote_open_1): Add async_p.
5631         (remote_async_open_1): Delete.
5632         (open_remote_target): Delete.
5633         (remote_open, extended_remote_open): Update calls to remote_open_1.
5634         (remote_async_open, extended_remote_async_open): Call
5635         remote_open_1 instead of remote_async_open_1.
5636
5637 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5638
5639         * blockframe.c: Fix a few coding standard violations.
5640
5641 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5642
5643         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5644         here from ...
5645         * config/i386/tm-i386sco5.h: ... here.  File removed.
5646         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5647
5648         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5649         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5650         (TM_FILE): Set to tm-i386.h.
5651         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5652         * config/i386/tm-i386v.h: Remove file.
5653         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5654         instead of "i386/tm-i386v.h".
5655         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5656         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5657         "i386/tm-i386v.h".
5658         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5659         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5660         "i386/tm-i386.h".
5661
5662 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5663
5664         * config/i386/nm-i386v.h: Add protection against
5665         multiple-inclusion.
5666         (i386_register_u_addr): Remove prototype.
5667         (register_u_addr): New prototype.
5668         (REGISTER_U_ADDR): Redefine accordingly.
5669         * i386v-nat.c: Improve several comments.
5670         (i386_register_u_addr): Change signature and rename to
5671         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5672         ubase variable.
5673
5674 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5675
5676         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5677         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5678         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5679         deprecated_extract_return_value.
5680         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5681         rename mips_o32o64_push_arguments.
5682         (mips_gdbarch_init): Update.
5683         (mips_extract_return_value): Delete.
5684         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5685         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5686         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5687         (mips_n32n64_extract_return_value): Clone
5688         mips_extract_return_value.
5689         (mips_store_return_value): Delete.
5690         (mips_o32_store_return_value): Clone mips_store_return_value.
5691         (mips_o64_store_return_value): Clone mips_store_return_value.
5692         (mips_eabi_store_return_value): Clone mips_store_return_value.
5693         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5694
5695 2002-08-18  Aidan Skinner <aidan@velvet.net>
5696
5697         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5698         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5699                 
5700 2002-08-18  Aidan Skinner <aidan@velvet.net>
5701
5702         * ada-lang.c: Run through gdb_indent.sh.
5703         * ada-lang.h: Run through gdb_indent.sh.
5704         * ada-tasks.c: Run through gdb_indent.sh.
5705         * ada-typeprint.c: Run through gdb_indent.sh.
5706         * ada-valprint.c: Run through gdb_indent.sh.
5707
5708 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5709
5710         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5711         ABI.
5712
5713 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5714
5715         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5716
5717         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5718         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5719
5720         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5721         write_register_gen instead of write_register_bytes.
5722
5723         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5724         i[3456]-*-osf1mk* configurations have been made obsolete.
5725         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5726         i[3456]86-*-osf1mk* hosts obsolete.
5727         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5728         targets obsolete.
5729         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5730         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5731         config/i386/i386m3.mt, config/i386/nm-m3.h,
5732         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5733         config/i386/i386mk.mh, config/i386/i386mk.mt,
5734         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5735         obsolete.
5736         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5737         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5738         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5739
5740 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5741
5742         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5743         (hppa_value_returned_from_stack): Declare.
5744         (hppa_extract_return_value): Declare.
5745         * config/pa/hppa.mt: New file.
5746         * configure.tgt: Recognize hppa*-*-*.
5747         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5748
5749 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5750
5751         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5752         comment.
5753
5754 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5755
5756         * top.c (gdb_rl_operate_and_get_next): Make sure
5757         operate-and-get-next functions correctly even when the history
5758         list is completely filled.
5759
5760 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5761
5762         * MAINTAINERS (Target Instruction Set Architectures): Rename
5763         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5764         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5765         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5766         already listed under Host/Native.
5767
5768         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5769         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5770         mips*-*-*.
5771
5772 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5773
5774         * config/ia64/ia64.mt: New file.
5775         * config/alpha/alpha.mt: New file.
5776         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5777         ia64-linux-gnu.  Mention that ia64-elf is broken.
5778         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5779
5780 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5781
5782         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5783         generic_func_frame_valid instead of func_frame_valid.
5784
5785 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5786
5787         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5788         procfs appears to be broken when debugging on multi-processor
5789         machines. So enable software single stepping in order to avoid
5790         using the procfs interface to do next/step operations, using
5791         internal breakpoints instead.
5792
5793         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5794         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5795         make this pc address equal to the value it would have if the
5796         system stepping capability was used. Also set a new flag used
5797         to ensure that we don't readjust the PC one more time later.
5798
5799         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5800         address by DECR_PC_AFTER_BREAK when software single step is
5801         in use for this architecture, as this has already been taken
5802         care of in handle_inferior_event().
5803
5804 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5805
5806         * infrun.c (handle_inferior_event): Minor reformatting, to make
5807         a rather long condition expression easier to read.
5808
5809 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5810
5811         * Makefile.in (gdbtk.o): Move to end of file.
5812         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5813         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5814         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5815         (gdbtk-wrapper.o, gdbres.o): Ditto.
5816
5817 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5818
5819         * Makefile.in (copying.o): Separate out compile rule.
5820         (hpux-thread.o, procfs.o, signals.o): Ditto.
5821         (v850ice.o, z8k-tdep.o): Ditto.
5822         (tui-file.o): Move to TUI section.
5823         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5824         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5825
5826 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5827
5828         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5829         skip_trampoline_code, for better namespace-proofing.   
5830
5831         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5832
5833 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5834
5835         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5836
5837 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5838
5839         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5840         signal, check whether we hit a breakpoint before checking for a
5841         single step breakpoint. Otherwise, GDB fails to notice that a
5842         breakpoint has been hit when stepping onto a breakpoint.
5843
5844 2002-08-16  Keith Seitz  <keiths@redhat.com>
5845
5846         * gdb-events.sh (clear_gdb_event_hooks): New function.
5847         * gdb-events.c: Regenerate.
5848         * gdb-events.h: Regenerate.
5849
5850 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5851
5852         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5853         not_a_sw_breakpoint.
5854         * breakpoint.h (bpstat_stop_status): Add parameter names.
5855
5856 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5857
5858         * remote.c (remote_insert_hw_breakpoint)
5859         (remote_remove_hw_breakpoint): Fix calculation of length field
5860         for Z-packet.
5861
5862 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5863
5864         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5865         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5866         (supply_fpregset): Ditto.
5867         
5868         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5869         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5870         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5871         (TARGET_READ_SP): Delete.
5872         (DO_REGISTERS_INFO): Delete.
5873         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5874         Delete.
5875         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5876         from macros to functions.
5877
5878         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5879         (mips_register_convertible, mips_register_convert_to_virtual,
5880         mips_register_convert_to_raw): Make static.
5881         (mips_read_sp): New function.
5882         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5883         (mips_do_registers_info): Make static.
5884         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5885         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5886         (mips_register_convert_from_type, mips_register_convert_to_type):
5887         New functions.
5888         (mips_gdbarch_init): Set up function_start_offset, 
5889         register_virtual_size, pc_in_sigtramp.
5890
5891 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5892
5893         * infcmd.c (vector_info): New function.
5894         (_initialize_infcmd): Add command "info vector".
5895         (print_vector_info): New function.
5896
5897         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5898         * gdbarch.h, gdbarch.c: Regenerate.
5899
5900 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5901
5902         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5903         ``print_all''.  Only print vector registers when ``print_all''.
5904
5905 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5906
5907         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5908         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5909
5910         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5911         Add `args' parameter.
5912         * gdbarch.h, gdbarch.c: Regenerate.
5913         
5914         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5915         
5916         * infcmd.c (float_info): Call print_float_info.
5917         (print_float_info): New function.  By default, print the
5918         floating-point registers.
5919
5920         * arch-utils.h (default_print_float_info): Delete declaration.
5921         * arch-utils.c (default_print_float_info): Delete function.
5922         
5923 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5924
5925         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5926         out define.
5927
5928         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5929         FRAME.
5930
5931         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5932         * configure.host: Make i[3456]86-*-aix host obsolete.
5933         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5934         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5935         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5936         config/i386/xm-i386aix.h: Make files obsolete.
5937         * i386aix-nat.c: Make file obsolete.
5938         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5939         (i386aix-nat.o): Make target obsolete.
5940
5941         * config/i386/nm-gnu.h: Removed.
5942         * config/i386/nm-i386gnu.h: New file.
5943         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5944         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5945         Moved here from ...
5946         * config/i386/tm-i386gnu.h: ... here.  Removed.
5947         * config/i386/xm-i386gnu.h: Removed.
5948         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5949         (NAT_FILE): Set to nm-i386gnu.h.
5950         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5951         * i386-tdep.c: New file.
5952         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5953         (i386gnu-tdep.o): Specify dependencies.
5954
5955 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5956
5957         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5958         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5959         Adjust a few comments to reflect reality a bit closer.
5960         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5961         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5962         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5963         target_insert_watchpoint, target_remove_watchpoint):
5964         Move defines to ...
5965         * config/i386/nm-i386sco5.h: ... here.
5966         (kernel_u_size): Add prototype.  Improve a few comments and add
5967         protection against multiple inclusion.
5968         
5969         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5970         out define.
5971
5972         * uw-thread.c (SP_ARG0): Define if not already defined.
5973         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5974
5975         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5976
5977         * config/i386/tm-i386.h: Don't include "regcache.h".
5978
5979         * i387-tdep.h (i387_print_float_info): New prototype.
5980         * i387-tdep.c (print_i387_value, print_i387_ext,
5981         print_i387_status_word, print_i387_control_word): Add `struct
5982         ui_file *' argument and use it for output.
5983         (i387_print_float_info): Renamed from i387_float_info.  Add
5984         `struct gdbarch *' and `struct ui_file *' arguments and use the
5985         latter for output.
5986         * i386-tdep.c: Include "i387-tdep.h".
5987         (i386_gdbarch_init): Set print_float_info.
5988         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5989         (FLOAT_INFO): Remove define.
5990
5991 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5992
5993         * mips-tdep.c (mips_push_arguments): Rename to
5994         mips_eabi_push_arguments, and tune for EABI.
5995         (MIPS_REGS_HAVE_HOME_P): Delete.
5996         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5997         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5998         Delete references to mips_regs_have_home_p.
5999
6000 2002-08-14  Keith Seitz  <keiths@redhat.com>
6001
6002         * Makefile.in (install-gdbtk): Create insight plugin directory.
6003         Install plugins.tcl file.
6004
6005 2002-08-14  Keith Seitz  <keiths@redhat.com>
6006
6007         * configure.in: Move SUBDIRS to near top of the file so that
6008         --enable options may add things to it.
6009         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6010         * configure: Regenerate.
6011
6012 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6013
6014         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6015         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6016         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6017
6018 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6019
6020         * vax-tdep.c (vax_get_saved_register): Delete function.
6021         (vax_gdbarch_init): Update.
6022         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6023         (ns32k_gdbarch_init): Update.
6024         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6025         (alpha_gdbarch_init): Update.
6026
6027 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6028
6029         * regcache.c (init_regcache_descr): Overallocate the
6030         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6031         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6032         nr_raw_registers.
6033         (set_register_cached): Add range checking assertions.  Use
6034         current_regcache.
6035
6036 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6037
6038         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6039         numbers for MMX registers.
6040
6041 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6042
6043         * i386-tdep.c (i386_gdbarch_init): Use
6044         generic_unwind_get_saved_register.
6045
6046 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6047
6048         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6049         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6050         target vector.
6051         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6052         Delete.  Add comment regarding this now-deleted target method.
6053
6054 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6055
6056         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6057         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6058         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6059         real PC and the page number (if it's within the memory bank window).
6060         (m68hc11_pseudo_register_write): Likewise when saving.
6061         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6062         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6063         (m68hc11_register_raw_size): And use 32-bit for it.
6064         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6065         16K memory bank is used by the prog; also use the virtual pc.
6066
6067 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6068
6069         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6070         (m68hc11_gdbarch_init): Install it in gdbarch.
6071         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6072         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6073         (MSYMBOL_SIZE): New for documentation.
6074         (insn_return_kind): Enum to specify how a function returns.
6075         (frame_extra_info): Cleanup and record the return mode.
6076         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6077         register in address computation.
6078         (m68hc11_get_return_insn): New to obtain the return instruction used
6079         by the function.
6080         (m68hc11_frame_init_saved_regs): Take into account the return
6081         instruction used by the function for far and interrupt functions.
6082         (m68hc11_init_extra_frame_info): Take into account page register.
6083         (m68hc11_frame_args_address): Adjust according to the return mode.
6084         (show_regs): Print page register only when it's used.
6085
6086 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6087
6088         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6089         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6090         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6091         registers.
6092         (m68hc11_register_raw_size): Likewise.
6093
6094 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6095
6096         * i386-tdep.c (i386_register_name): Handle mmx registers.
6097         (mmx_regnum_p): New function.
6098         (i386_mmx_names): New array.
6099         (mmx_num_regs): New variable.
6100         (i386_pseudo_register_read): New function.
6101         (i386_pseudo_register_write): New function.
6102         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6103
6104         * regcache.c (regcache_raw_read_unsigned): New function.
6105         (regcache_raw_read_signed): New function.
6106         * regcache.h (regcache_raw_read_unsigned): Declare.
6107         (regcache_raw_read_signed): Declare.
6108
6109 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6110
6111         * regcache.c (regcache_raw_read_as_address): Delete function.
6112         (regcache_cooked_read_signed): New function.
6113         (regcache_cooked_read_unsigned): New function.
6114         * regcache.h (regcache_cooked_read_signed): Declare.
6115         (regcache_cooked_read_unsigned): Declare.
6116         (regcache_raw_read_as_address): Delete declaration.
6117
6118         * blockframe.c (generic_read_register_dummy): Use
6119         regcache_cooked_read_unsigned.
6120         * i386-tdep.c (i386_extract_struct_value_address): Use
6121         regcache_cooked_read_unsigned.
6122
6123 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6124
6125         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6126         double sizes according to ELF ABI flags.
6127         (gdbarch_tdep): Record elf_flags.
6128
6129 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6130
6131         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6132         (m6812_prolog): They can appear in 68HC12 function prologue.
6133         (m68hc11_frame_chain): Cleanup.
6134
6135 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6136
6137         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6138         declarations.
6139         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6140         (i386_linux_register_raw_size): Delete function.
6141         (i386_linux_init_abi): Update.
6142         * i386-tdep.c (i386_register_raw_size): Delete function.
6143         (i386_register_byte): Delete function.
6144         (i386_gdbarch_init): Update.
6145         (i386_register_size): Delete array.
6146         (i386_register_offset): Delete array.
6147
6148         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6149         (REGISTER_RAW_SIZE): Delete macro.
6150         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6151         (REGISTER_BYTE): Delete macro.
6152
6153 2002-08-11  Aidan Skinner <aidan@velvet.net>
6154
6155         * ada-lang.c (ada_lookup_partial_symbol)
6156         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6157         prototype names so that grep ^func works properly.
6158
6159         * ada-lang.c (ada_array_element_type)
6160         (ada_lookup_partial_symbol): Fix typos in parameter list.
6161
6162         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6163         Fix prototype names so that grep ^func works properly.
6164         
6165 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6166             Elena Zannoni  <ezannoni@redhat.com>
6167             Martin M. Hunt  <hunt@redhat.com>
6168
6169         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6170         (build_builtin_type_vec128i): Set the vector bit.
6171         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6172         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6173         (build_builtin_type_vec64): New function.
6174         (build_builtin_type_vec64i): New function.
6175         (build_gdbtypes): Initialize builtin_type_vec64 and
6176         builtin_type_vec64i.
6177
6178 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6179
6180         * regcache.c (regcache_dump): Compare the register offset
6181         with REGISTER_BYTE.
6182         * arch-utils.c (generic_register_byte): New function.
6183         * arch-utils.h (generic_register_byte): Declare.
6184         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6185         * gdbarch.h, gdbarch.c: Regenerate.
6186
6187 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6188
6189         * regcache.c: Include "gdbcmd.h"
6190         (_initialize_regcache): Add commands "maintenance print
6191         registers", "maintenance print raw-registers" and "maintenance
6192         print cooked-registers".
6193         (enum regcache_dump_what): Define.
6194         (dump_endian_bytes): New function.
6195         (regcache_dump): New function.
6196         (regcache_print): New function.
6197         (maintenance_print_registers): New function.
6198         (maintenance_print_raw_registers): New function.
6199         (maintenance_print_cooked_registers): New function.
6200         * Makefile.in (regcache.o): Update dependencies.
6201
6202 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6203
6204         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6205         (mips_push_arguments): Correct some comments.  Use paddr_nz
6206         for printing addresses in debug output.  Replace static
6207         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6208         (mips_n32n64_push_arguments): New function, cloned from
6209         mips_push_arguments and tuned for the n32/n64 ABI.
6210         (mips_push_register): Buffer needs dynamic allocation.
6211         (mips_print_register): Ditto.
6212         (do_gp_register_row): Ditto.
6213         (mips_store_return_value): Ditto.
6214         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6215
6216 2002-08-09  Don Howard  <dhoward@redhat.com>
6217
6218         * memattr.c (mem_info_command): Print special case of upper bound
6219         as max CORE_ADDR + 1.
6220
6221 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6222
6223         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6224         returns structs by ref if they're too big to fit in two registers.
6225
6226 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6227
6228         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6229         saved regs value.
6230         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6231         mips_find_saved_regs().
6232         (mips_pop_frame): Likewise.
6233
6234 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6235
6236         * blockframe.c (frame_saved_regs_register_unwind): Revise
6237         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6238         frames are in use.
6239
6240 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6241         
6242         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6243         T-packets; the 'a' is not taken as a register number.
6244         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6245         (remote_stopped_data_address): New functions; add to target
6246         vector.
6247         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6248         prototypes to match other implementations of this
6249         function. replace integer argument with pointer -- the length
6250         field in the Z-packet is the length of what is pointed to or 1 if
6251         pointer is null. Add to target vector.
6252         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6253         target vector.
6254
6255         From Mark Salter:
6256         * remote.c (remote_wait): Add support to extract optional
6257         watchpoint information from T-packet. Ignore unrecognized
6258         optional info in T-packet.
6259         (remote_async_wait): Ditto.
6260
6261 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6262
6263         * cli/cli-dump.c: Change fopen modes to use binary open modes
6264         as defined in include/fopen-bin.h throughout.
6265
6266 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6267
6268         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6269
6270 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6271
6272         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6273         assertion failure by returning early after a warning.
6274
6275 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6276
6277         * mips-tdep.c (mips_find_saved_regs): Make static.
6278         (mips_frame_init_saved_regs): New function.
6279         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6280         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6281         (mips_find_saved_regs): Delete declaration.
6282
6283 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6284
6285         * remote.c (remote_wait, remote_async_wait): Change
6286         thread_num from int to ULONGEST.
6287         (unpack_varlen_hex): Change result parameter from
6288         int * to ULONGEST *.
6289
6290 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6291
6292         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6293         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6294         powerpc*-*-*.
6295         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6296
6297 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6298
6299         * gcore.c (override_derive_stack_segment): Delete variable.
6300         (preempt_derive_stack_segment): Delete function.
6301         (derive_stack_segment): Delete function.
6302         (default_derive_stack_segment): Renamed to derive_stack_segment.
6303         (override_derive_heap_segment): Delete variable.
6304         (preempt_derive_heap_segment): Delete function.
6305         (derive_heap_segment): Delete function.
6306         (default_derive_heap_segment): Rename to derive_heap_segment.
6307
6308 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6309
6310         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6311         * mips-tdep.c (mips_EABI_use_struct_convention, 
6312         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6313         New functions.  (mips_use_struct_convention): Delete.
6314         (mips_gdbarch_init): set use_gdbarch_convention.
6315
6316 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6317
6318         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6319         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6320         mips_o32_reg_struct_has_addr): New functions.
6321         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6322
6323 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6324
6325         * regcache.c (pseudo_register): Delete function.
6326         (fetch_register): Delete function.
6327         (store_register): Delete function.
6328         (regcache_raw_read, legacy_read_register_gen): Use
6329         target_fetch_registers instead of fetch_register.
6330         (legacy_write_register_gen, regcache_raw_write): Use
6331         target_store_register instead of store_register.
6332         (write_register_bytes): Ditto.
6333
6334         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6335         (STORE_PSEUDO_REGISTER): Delete.
6336         * gdbarch.h, gdbarch.c: Regenerate.
6337
6338 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6339
6340         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6341         write dump file binary.
6342
6343 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6344
6345         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6346         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6347         (mips_gdbarch_init): Set N32 target to be mips64.
6348
6349 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6350
6351         * frame.c (find_saved_register): Break out of loop once saved
6352         register address is found.  Don't mention sparc in loop comment
6353         anymore.
6354
6355 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6356
6357         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6358         mips_default_saved_regsize to 8.
6359
6360 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6361
6362         * gcore.c: Do not include <sys/procfs.h>.
6363         * Makefile.in (gcore.o): Update dependencies.
6364
6365 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6366
6367         * configure.tgt: Make arc-*-* obsolete.
6368         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6369         * MAINTAINERS: Make arc-elf obsolete.
6370         * arc-tdep.c: Make file obsolete.
6371         * config/arc/arc.mt: Ditto.
6372         * config/arc/tm-arc.h: Ditto.
6373
6374 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6375
6376         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6377
6378 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6379
6380         * mcore-tdep.c (mcore_gdbarch_init): Use
6381         generic_unwind_get_saved_register instead of
6382         generic_get_saved_register.
6383         * v850-tdep.c (v850_gdbarch_init): Ditto.
6384         * frv-tdep.c (frv_gdbarch_init): Ditto.
6385         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6386         * s390-tdep.c (s390_gdbarch_init): Ditto.
6387         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6388         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6389         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6390
6391 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6392
6393         * objfiles.h: Add missing #include "symfile.h"
6394
6395         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6396
6397 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6398
6399         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6400         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6401         of FIELD_BITSIZE.
6402
6403 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6404
6405         * NEWS: Cleanup and nitpick.
6406
6407 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6408
6409         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6410
6411 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6412
6413         * Makefile.in (gdbtk-bp.o): Update dependencies.
6414         (gdbtk-register.o): Ditto.
6415         (gdbtk-varobj.o): Ditto.
6416
6417 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6418
6419         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6420         m68hc11_fetch_pseudo_register.
6421         (m68hc11_pseudo_register_write): Replace
6422         m68hc11_store_pseudo_register.
6423         (m68hc11_gdbarch_init): Update.
6424
6425 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6426
6427         * gdbarch.sh: Include "gdb_string.h".
6428         * gdbarch.c: Regenerate.
6429
6430         * regcache.c: Include "gdb_string.h".
6431         * ax-general.c: Ditto.
6432         * varobj.c: Ditto.
6433         * std-regs.c: Ditto.
6434         * fbsd-proc.c: Ditto.
6435         * thread.c: Ditto.
6436
6437         * Makefile.in (regcache.o): Update dependencies.
6438         (thread.o, gdbarch.o): Ditto.
6439         (ax-general.o, gdbarch.o): Ditto.
6440         (varobj.o, std-regs.o): Ditto.
6441         (fbsd-proc.o): Specify dependencies.
6442
6443 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6444
6445         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6446         regnum.
6447         (regcache_cooked_write): Ditto.
6448
6449 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6450
6451         * regcache.c (regcache_cooked_read): New function.
6452         (regcache_cooked_write): New function.
6453         (read_register_gen): Rewrite using regcache_cooked_read.
6454         (write_register_gen): Rewrite using regcache_cooked_write.
6455
6456         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6457         Declare.
6458
6459 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6460
6461         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6462         Replace the architecture methods register_read and register_write.
6463         * gdbarch.h, gdbarch.c: Regenerate.
6464         * regcache.c (init_regcache_descr): Update.
6465         (read_register_gen): Update.
6466         (write_register_gen): Update.
6467         (supply_register): Update comment.
6468
6469         * sh-tdep.c (sh_gdbarch_init): Update.
6470         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6471         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6472         pointer.  Update code.
6473         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6474         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6475         void pointer.  Update code.
6476         (sh64_register_write): Delete.
6477         (sh4_register_read): Delete.
6478         (sh64_register_read): Delete.
6479         (sh4_register_write): Delete.
6480         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6481         void pointer, `to' parameter a void pointer.
6482         (sh_sh64_register_convert_to_raw): Ditto.
6483
6484 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6485
6486         * mips-tdep.c (mips_register_virtual_type): Use architecture
6487         invariant return values.
6488
6489 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6490
6491         * linux-proc.c: Include "gdb_string.h".
6492         * Makefile.in (linux-proc.o): Update dependency list.
6493
6494 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6495
6496         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6497         comment.
6498
6499 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6500
6501         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6502         to_insert_watchpoint, to_remove_watchpoint,
6503         to_stopped_by_watchpoint, to_stopped_data_address,
6504         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6505         target vecctor. Define their corresponding macros so they call
6506         them.
6507         
6508         * target.c: Add default and debug versions of for
6509         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6510         to_insert_watchpoint, to_remove_watchpoint,
6511         to_stopped_by_watchpoint, to_stopped_data_address,
6512         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6513
6514 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6515
6516         * mips-tdep.c (mips_register_virtual_type): New function.
6517         (mips_gdbarch_init): Register mips_register_virtual_type()
6518         with gdbarch machinery.
6519         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6520         this file instead of tm-bigmips.h.
6521         (MIPS_REGSIZE): Delete this macro.
6522         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6523         multiarch version in mips-tdep.c will be found.
6524
6525 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6526
6527         * NEWS: Menion that CHILL has been made obsolete.
6528
6529         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6530         * stabsread.c (read_range_type): Ditto.
6531         * gdbtypes.h: Ditto.
6532         * language.c (binop_type_check): Ditto.
6533         (binop_result_type): Ditto.
6534         (integral_type): Ditto.
6535         (character_type): Ditto.
6536         (string_type): Ditto.
6537         (boolean_type): Ditto.
6538         (structured_type): Ditto.
6539         (lang_bool_type): Ditto.
6540         (binop_type_check): Ditto.
6541         * language.h (_LANG_chill): Ditto.
6542         * dwarfread.c (set_cu_language): Ditto.
6543         * dwarfread.c (CHILL_PRODUCER): Ditto.
6544         * dwarfread.c (handle_producer): Ditto.
6545         * expression.h (enum exp_opcode): Ditto.
6546         * eval.c: Ditto for comments.
6547         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6548         * expprint.c (print_subexp): Ditto.
6549         (print_subexp): Ditto.
6550         * valops.c (value_cast): Ditto.
6551         (search_struct_field): Ditto.
6552         * value.h (COERCE_VARYING_ARRAY): Ditto.
6553         * symfile.c (init_filename_language_table): Ditto.
6554         (add_psymbol_with_dem_name_to_list): Ditto.
6555         * valarith.c (value_binop): Ditto.
6556         (value_neg): Ditto.
6557         * valops.c (value_slice): Ditto.
6558         * symtab.h (union language_specific): Ditto.
6559         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6560         (SYMBOL_DEMANGLED_NAME): Ditto.
6561         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6562         * defs.h (enum language): Ditto.
6563         * symtab.c (got_symtab): Ditto.
6564         * utils.c (fprintf_symbol_filtered): Ditto.
6565
6566         * ch-typeprint.c: Make file obsolete.
6567         * ch-valprint.c: Make file obsolete.
6568         * ch-lang.h: Make file obsolete.
6569         * ch-exp.c: Make file obsolete.
6570         * ch-lang.c: Make file obsolete.
6571
6572         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6573         CHILL_LIB.
6574         (TARGET_FLAGS_TO_PASS): Ditto.
6575         (CHILLFLAGS): Obsolete.
6576         (CHILL): Obsolete.
6577         (CHILL_FOR_TARGET): Obsolete.
6578         (CHILL_LIB): Obsolete.
6579         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6580         ch-valprint.c.
6581         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6582         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6583         ch-lang.o.
6584         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6585         targets.
6586
6587 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6588
6589         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6590         This does not change anything at the moment, but will be helpful
6591         later when full Ada support is integrated.
6592
6593 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6594
6595         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6596         help message.
6597
6598 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6599
6600         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6601         and save it in a local variable.  Use variable in later test.
6602
6603 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6604
6605         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6606         test.  (Thanks to Daniel Jacobowitz.)
6607         
6608 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6609
6610         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6611         (mips_abi_strings): Add "n64".
6612         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6613
6614 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6615
6616         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6617         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6618
6619 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6620
6621         * utils.c (host_pointer_to_address, address_to_host_pointer):
6622         Use gdb_assert() instead of explicit call to internal_error().
6623
6624 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6625
6626         * Makefile.in (rs6000-nat.o): Update dependencies.
6627
6628         From Nicholas Duffek:
6629         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6630         (aix-thread.o): New rule.
6631         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6632         * config/powerpc/aix432.mh: New file.
6633
6634 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6635
6636         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6637         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6638         (fetch_core_registers, ppc_linux_supply_gregset)
6639         (ppc_linux_supply_fpregset): New functions.
6640         (ppc_linux_regset_core_fns): New.
6641         (_initialize_ppc_linux_tdep): Call add_core_fns.
6642         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6643         and ppc_linux_supply_gregset.
6644         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6645         (supply_fpregset): Call ppc_linux_supply_fpregset.
6646         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6647         corelow.o.
6648         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6649
6650 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6651
6652         * symtab.c (lookup_symbol): Demangle before lowercasing.
6653
6654 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6655
6656         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6657         declaration.
6658         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6659         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6660         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6661         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6662         "gdb_string.h".
6663         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6664         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6665         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6666         (avr-tdep.o, mon960-rom.o): Ditto.
6667         (aout_stabs_gnu_h): Define.
6668         (symtab_h): Remove $(gdb_obstack_h).
6669
6670 2002-07-30  Jim Blandy  <jimb@redhat.com>
6671
6672         Patch from David Carlton <carlton@math.stanford.edu>:
6673         * gdbinit.in: Move the `dir' commands that add GDB's own source
6674         directory to the search path to the end, so that the `gdb' source
6675         directory will be searched first.
6676
6677 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6678
6679         * gdb_obstack.h: New file.
6680         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6681         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6682         * objfiles.h: Include "gdb_obstack.h".
6683         * Makefile.in (gdb_obstack_h): Define.
6684         (symtab_h): Add $(gdb_obstack_h).
6685         (objfiles_h): Add $(gdb_obstack_h).
6686         
6687         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6688         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6689         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6690         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6691         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6692         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6693         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6694         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6695
6696         * Makefile.in (bcache.o): Update dependencies.
6697         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6698         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6699         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6700         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6701         (stabsread.o, symfile.o, symmisc.o): Ditto.
6702         (symtab.o, typeprint.o, macroexp.o): Ditto.
6703         (macrotab.o, mdebugread.o): Ditto.
6704         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6705         (coff_ecoff_h, aout_aout64_h): Define.
6706         (aout_stabs_gnu_h, libaout_h): Define.
6707
6708 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6709
6710         * regcache.c (struct regcache_descr): Rename nr_registers to
6711         nr_cooked_registers.  Revise comments describing the structure
6712         member fields.
6713         (init_regcache_descr): Update.
6714         (init_legacy_regcache_descr): Update.
6715         (read_register_gen, write_register_gen): When a cooked register in
6716         the raw register range, directly access the value from the raw
6717         register cache.
6718
6719 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6720
6721         * z8k-tdep.c: Do not include "obstack.h".
6722         * h8300-tdep.c, h8500-tdep.c: Ditto.
6723         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6724         * valprint.c, v850-tdep.c: Ditto.
6725         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6726         * mn10200-tdep.c: Ditto.
6727
6728         * Makefile.in (z8k-tdep.o): Update dependencies.
6729         (m68hc11-tdep.o, valprint.o): Ditto.
6730         (v850-tdep.o, d10v-tdep.o): Ditto.
6731         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6732         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6733         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6734         (sh_opc_h, gdb_sim_sh_h): Define.
6735         (elf_sh_h, elf_bfd_h): Define.
6736         (opcode_m68hc11_h): Define.
6737         (OPCODES_SRC, OPCODES_DIR): define.
6738         (OPCODES): Use $(OPCODES_DIR).
6739         (gdb_sim_d10v_h): Rename sim_d10v_h.
6740         (gdb_sim_arm_h): Rename sim_arm_h.
6741
6742 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6743
6744         * utils.c (host_pointer_to_address, address_to_host_pointer):
6745         Change internal_error() message to indicate function responsible
6746         for the error.
6747
6748 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6749
6750         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6751         calls to local_hex_string_custom().
6752
6753 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6754
6755         * irix5-nat.c: Move IRIX shared library support from here...
6756         * solib-irix.c: ...to here.  Revised substantially to work with
6757         generic solib framework.
6758
6759         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6760         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6761         * mips-irix-tdep.c: New file.
6762
6763         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6764         (mips-irix-tdep.o, solib-irix.o): New rules.
6765         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6766         solib-irix.o.
6767         * config/mips/irix6.mt (TDEPFILES): Likewise.
6768         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6769
6770 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6771
6772         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6773         disabled (via ``#if 0'') includes.
6774
6775 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6776
6777         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6778         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6779         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6780         Add support for the fpscr register.
6781         * rs6000-nat.c (regmap, fetch_inferior_registers)
6782         (store_inferior_registers, fetch_core_registers): Likewise.
6783
6784 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6785
6786         * rs6000-nat.c (language.h): Include.
6787         (special_regs): Delete this array.
6788         (regmap): New function.
6789         (fetch_register, store_register):  Use regmap() to map gdb
6790         register numbers to ptrace register numbers.  Also, use
6791         outputs from regmap() to make decisions regarding type of
6792         ptrace() call to make.  In particular, don't compare against
6793         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6794         (fetch_inferior_registers, store_inferior_registers): Where
6795         possible, obtain register numbers from tdep struct.  Don't
6796         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6797         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6798         (LAST_UISA_SP_REGNUM): Delete.
6799         
6800 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6801
6802         * rs6000-nat.c (ppc-tdep.h): Include.
6803         (fetch_registers, store_register, fetch_core_registers): Don't
6804         access registers[] directly.  Instead, use supply_register() or
6805         regcache_collect() as appropriate.
6806         (find_toc_address): Format hex address with local_hex_string().
6807
6808 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6809
6810         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6811         bfd/elf32-frv.c.
6812
6813 2002-07-24  Tom Tromey  <tromey@redhat.com>
6814
6815         * jv-exp.y: Marked all strings with _().
6816         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6817         internal_error.
6818         (MethodInvocation, CastExpression, parse_number, yyerror,
6819         java_type_from_name, push_expression_name, yylex): Typo fixes.
6820
6821 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6822
6823         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6824         (tee_file_flush, tee_file_write, tee_file_fputs)
6825         (tee_file_isatty): New.
6826         * ui-file.h (tee_file_new): Add prototype.
6827
6828 2002-07-24  Aidan Skinner <aidan@velvet.net>
6829
6830         * ada-lang.c: Change k&r style function definitions to prototyped
6831         form.
6832         * ada-typeprint.c: Change k&r style function definitions to prototyped
6833         form.
6834         * ada-valprint.c: Change k&r style function definitions to prototyped
6835         form.
6836         
6837 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6838
6839         * README: Remove reference to remote-bug.
6840         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6841         remote-bug.c.
6842         (m88k-nat.o): Delete rule.
6843         (m88k-tdep.o): Delete rule.
6844         (remote-bug.o): Delete rule.
6845         * MAINTAINERS: Mark as obsolete.
6846         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6847         * m88k-tdep.c: Make file obsolete.
6848         * config/m88k/m88k.mh: Ditto.
6849         * config/m88k/delta88v4.mh: Ditto.
6850         * config/m88k/delta88v4.mt: Ditto.
6851         * config/m88k/delta88.mt: Ditto.
6852         * config/m88k/delta88.mh: Ditto.
6853         * remote-bug.c: Ditto.
6854         * config/m88k/tm-delta88.h: Ditto.
6855         * config/m88k/nm-delta88v4.h: Ditto.
6856         * config/m88k/xm-delta88.h: Ditto.
6857         * config/m88k/xm-dgux.h: Ditto.
6858         * config/m88k/tm-m88k.h: Ditto.
6859         * config/m88k/nm-m88k.h: Ditto.
6860         * config/m88k/tm-delta88v4.h: Ditto.
6861         * m88k-nat.c: Ditto.
6862         * cxux-nat.c: Ditto.
6863         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6864         and m88*-*-* obsolete.
6865         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6866         m88*-*-* obsolete.
6867
6868 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6869
6870         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6871         constant.  Same for local pointer variables.
6872         (extract_signed_integer): Ditto.
6873         * defs.h (extract_unsigned_integer): Update.
6874         (extract_signed_integer): Update.
6875
6876 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6877
6878         * regcache.c (regcache_raw_write): Change buf parameter to a
6879         constant void pointer.
6880         (regcache_raw_read): Change buf parameter to a void pointer.
6881         (legacy_write_register_gen): Change myaddr parameter a constant
6882         void pointer.
6883         (supply_register): Change val parameter to a const void pointer.
6884         * regcache.h (regcache_raw_write): Update declaration.
6885         (regcache_raw_read): Update declaration.
6886         (supply_register): Update declaration.
6887
6888 2002-07-24  Tom Tromey  <tromey@redhat.com>
6889
6890         * defs.h (gdb_readline_wrapper): Declare.
6891         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6892         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6893         * top.c (gdb_readline_wrapper): New function.
6894         (command_line_input): Use it.
6895
6896 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6897
6898         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6899         regcache_read and regcache_write.
6900         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6901         * regcache.c: Update.
6902         * sh-tdep.c (sh64_push_arguments): Update comment.
6903         (sh_pseudo_register_read): Update.
6904         (sh_pseudo_register_write): Update.
6905         (sh4_register_read): Update.
6906         (sh4_register_write): Update.
6907         (sh64_pseudo_register_read): Update.
6908         (sh64_pseudo_register_write): Update.
6909         (sh64_register_read): Update.
6910         (sh64_register_write): Update.
6911         * i386-tdep.c (i386_extract_return_value): Update.
6912         (i386_extract_struct_value_address): Update.
6913         (i386_extract_return_value): Update.
6914         * blockframe.c (generic_read_register_dummy): Update.
6915         (generic_call_dummy_register_unwind): Update
6916         * infrun.c (write_inferior_status_register): Update.
6917
6918 2002-07-23  Jim Blandy  <jimb@redhat.com>
6919
6920         * parser-defs.h (expression_context_pc): Make this extern.
6921         (Thanks to Michael Snyder.)
6922
6923 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6924
6925         GDB 5.2.1 released from 5.2 branch.
6926         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6927         * README: Update to mention 5.2.1.
6928
6929 2002-07-23  Mark Salter  <msalter@redhat.com>
6930
6931         * remote.c (remote_read_bytes): Fix check for error.
6932
6933 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6934
6935         * aix-thread.c (language.h): Include.
6936         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6937         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6938         Print newlines at end of debug messages.
6939         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6940         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6941
6942 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6943
6944         * aix-thread.c (ppc-tdep.h): Include.
6945         (special_register_p): New function.
6946         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6947         (store_regs_user_thread): Use register number information from
6948         gdbarch_tdep struct instead of hardcoded offsets relative to
6949         FIRST_UISA_SP_REGNUM.
6950         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6951         special_register_p() instead of using FPLAST_REGNUM and
6952         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6953         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6954         will be MQ's register number.
6955
6956 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6957
6958         * aix-thread.c (ops): Rename to aix_thread_ops.
6959         (base_ops): Rename to base_target.
6960         (ops_attach): Rename to aix_thread_attach.
6961         (ops_detach): Rename to aix_thread_detach.
6962         (ops_resume): Rename to aix_thread_detach.
6963         (ops_wait):   Rename to aix_thread_wait.
6964         (ops_kill):   Rename to aix_thread_kill.
6965         (init_ops):   Rename to init_aix_thread_ops.
6966         (ops_fetch_register): Rename to aix_thread_fetch_register.
6967         (ops_store_register): Rename to aix_thread_store_register.
6968         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6969         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6970         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6971         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6972         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6973         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6974         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6975         (store_regs_lib):  Rename to store_regs_user_thread.
6976         (store_regs_kern): Rename to store_regs_kernel_thread.
6977
6978 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6979
6980         * aix-thread.c (ops_prepare_to_store): Eliminate.
6981         (init_ops): Don't initialize ops.prepare_to_store.
6982         (store_regs_kern): Pre-fetch register buffers from child, 
6983         because some registers may not be in the cache.  Copy
6984         regs from register cache only if they are cached.
6985         (store_regs_lib): Copy regs from register cache only
6986         if they are cached.
6987         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6988         fill_gprs64): Ditto.
6989
6990 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6991
6992         * aix-thread.c (gdb_assert.h): Include.
6993         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6994         register sizes (from register cache) match size of buffer holding
6995         register data.
6996         (fill_sprs32): Change parameter types to match those in the ptrace()
6997         buffer.
6998         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6999         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7000
7001 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7002
7003         * aix-thread.c (supply_sprs64): Cosmetic change.
7004         (supply_sprs32): Cosmetic change.
7005         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7006         (fill_sprs64): Use regcache_collect instead of read_register.
7007         (store_regs_lib): Use regcache_collect instead of 
7008         read_register.  Use fill_sprs32 instead of fill_sprs64,
7009         if debugging a 32-bit architecture.
7010         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7011         out of the register cache, instead of passing a pointer into
7012         the register cache directly to ptrace.  Use regcache_collect
7013         insteaad of read_register.
7014         (ops_prepare_to_store): Use target_read_registers instead
7015         of read_register_bytes.
7016
7017 2002-07-20  Aidan Skinner <aidan@velvet.net>
7018
7019         * MAINTAINERS: Add self under write after approval. 
7020                 
7021 2002-07-20  Aidan Skinner <aidan@velvet.net>
7022
7023         * ada-tasks.c: Change k&r style function definitions to prototyped
7024         form.
7025                 
7026 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7027
7028         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7029         * x86-64-tdep.c: Include "objfiles.h".
7030         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7031         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7032
7033 2002-07-17  Michal Ludvig  <michal@suse.cz>
7034
7035         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7036         (update_context): Initialise cfa variable.
7037
7038 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7039
7040         * aix-thread.c: Shorten some long lines.  
7041         Bring comments into line with code spec.
7042
7043 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7044
7045         * infrun.c: Re-indent using gdb_indent.sh.
7046
7047 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7048
7049         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7050         Leave the indentation temporarily untouched, to minimize the diffs.
7051
7052 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7053
7054         * stabsread.c: Make os9k sections of the code obsolete,
7055         for real this time.
7056         * stabsread.h: Make os9k sections of the code obsolete.
7057
7058 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7059
7060         * linux-low.c (regsets_store_inferior_registers): Add free()
7061         at the end of a loop to prevent memory leak.
7062         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7063         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7064         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7065         line a comment.
7066         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7067
7068 2002-07-17  Jim Blandy  <jimb@redhat.com>
7069
7070         * macrocmd.c (info_macro_command): Remove newline from error
7071         message.
7072
7073 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7074
7075         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7076         (sh_gdbarch_init): Use it for sh-dsp.
7077
7078 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7079
7080         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7081         64-bit DWARF2 format.
7082
7083 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7084
7085         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7086         <sys/proc.h> when not available.
7087
7088 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7089
7090         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7091         * stabsread.c: Make os9k sections of the code obsolete.
7092         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7093         * config/i386/i386os9k.mt: Make file obsolete.
7094         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7095         (COMMON_OBS): Remove os9kread.o
7096         (SFILES): Remove os9kread.c.
7097         (os9kread.o, remote-os9k.o): Make target obsolete.
7098         * remote-os9k.c: Make file obsolete.
7099         * os9kread.c: Make file obsolete.
7100         * Makefile.in
7101
7102 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7103
7104         * NEWS: Mention that the FR30 has been made obsolete.
7105         * fr30-tdep.c: Make file obsolete.
7106         * config/fr30/tm-fr30.h: Ditto.
7107         * config/fr30/fr30.mt: Ditto.
7108         * configure.tgt: Make fr30-*-elf obsolete.
7109         * MAINTAINERS: Make fr30-elf obsolete.
7110
7111 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7112
7113         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7114         found is not inside a section.
7115
7116 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7117
7118         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7119         strerror().
7120         (pdc_realloc): Use xrealloc() instead of realloc().
7121
7122 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7123
7124         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7125         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7126         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7127         macros.
7128
7129 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7130
7131         * aix-thread.c (ptrace_check): Eliminate goto.
7132         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7133         problem.
7134
7135 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7136
7137         * aix-thread.c (gdbcmd.h): Include.
7138         (DEBUG, DBG, DBG2, dbg): Eliminate.
7139         (debug_aix_thread): New static global.
7140         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7141         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7142         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7143         invocations to DBG and DBG2 macros to test against
7144         ``debug_aix_thread'' and call fprintf_unfiltered().
7145         (_initialize_aix_thread): Add new command "set debug aix-thread".
7146
7147 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7148
7149         From Gerhard Tonn <TON@de.ibm.com>:
7150         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7151         instead of supply_register.
7152
7153 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7154
7155         * dwarf2cfi.c: Include "gdb_assert.h".
7156         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7157         non-NULL.
7158         (update_context): Do not use __func__.  Add missing ``break''.
7159         (update_context): Do not use __func__.
7160
7161 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7162
7163         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7164         and its setting.  Set gdbarch instruction printing functions
7165         directly.  For non-rs6000 case use new function
7166         gdb_print_insn_powerpc.
7167         (gdb_print_insn_powerpc): New function.
7168
7169 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7170
7171         * NEWS: Mention that the d30v has been marked obsolete.
7172         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7173         * configure.tgt: Mark d30v-*-* as obsolete.
7174         * d30v-tdep.c: Mark file as obsolete.
7175         * config/d30v/d30v.mt: Ditto.
7176         * config/d30v/tm-d30v.h: Ditto.
7177
7178 2002-07-13  Aidan Skinner <aidan@velvet.net>
7179
7180         * ada-tasks.c (add_task_entry): replace calls to
7181         malloc() with xmalloc
7182         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7183         
7184         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7185         ada_finish_decode_line_1, all_sals_for_line
7186         ada_breakpoint_rewrite): replace calls to free() with xfree()
7187                 
7188 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7189
7190         From Nicholas Duffek (with minor changes by Martin Hunt, 
7191         Louis Hamilton, and Kevin Buettner):
7192         * aix-thread.c: New file.
7193
7194 2002-07-12  Petr Sorfa <petrs@caldera.com>
7195
7196         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7197         complaint for invalid attribute class or form.
7198         (read_func_scope): DW_AT_frame_base
7199         better handling of DW_AT_block*.
7200         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7201         better handling of DW_AT_block*.
7202         (read_common_block): DW_AT_location
7203         better handling of DW_AT_block*.
7204         (read_partial_die): DW_AT_location better handling
7205         of DW_AT_block*.
7206         (new_symbol): DW_AT_external better handling of
7207         DW_AT_block*. Proper initialization of variable
7208         "addr".
7209         (attr_form_is_block): New function that returns true
7210         if the attribute's form is of DW_FORM_block*.
7211
7212 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7213
7214         * valops.c (find_method_list): Remove comment about
7215         removed STATIC_MEMFUNCP argument.
7216         (value_find_oload_method_list): Likewise.
7217
7218 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7219
7220         From Nicholas Duffek:
7221         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7222         target_new_objfile_hook.
7223
7224 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7225
7226         From Nicholas Duffek:
7227         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7228         csect.
7229
7230 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7231
7232         * MAINTAINERS: Mention --enable-sim-build-warnings.
7233         (m68hc11-elf): Disable sim build warnings.
7234         (m32r-elf): Mark as broken obsolete candidate.
7235         (x86_64-linux-gnu): Mark as buildable with -Werror.
7236         (arm-elf): Change -w to ``,'' which enables warnings but not
7237         -Werror.
7238
7239 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7240
7241         * bcache.h: Update copyright.
7242         (struct bstring, struct bcache): Move definition to "bcache.c".
7243         Replaced by opaque declaration.
7244         (bcache_xfree): Replace free_bcache.
7245         (bcache_xmalloc, bcache_memory_used): Declare.
7246         
7247         * bcache.c: Update copyright.
7248         (struct bstring, struct bcache): Moved to here from "bcache.h".
7249         Update comments.
7250         (bcache_xmalloc, bcache_memory_used): New functions.
7251         (bcache_xfree): Replace function free_bcache.
7252         
7253         * Makefile.in (objfiles.o): Add $(bcache_h).
7254         (objfiles_h): Remove $(bcache_h).
7255         (symfile.o): Add $(bcache_h).
7256
7257         * symmisc.c: Update copyright.
7258         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7259         (print_objfile_statistics): Use bcache_memory_used.
7260
7261         * symfile.c: Include "bcache.h".
7262         (reread_symbols): Use bcache_xfree.
7263         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7264         (add_psymbol_to_list): Pass psymbol_cache by value.
7265         (add_psymbol_with_dem_name_to_list): Ditto.
7266
7267         * objfiles.h: Update copyright.
7268         (struct bcache): Declare opaque.  Do not include "bcache.h".
7269         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7270         bcache'' pointers.
7271         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7272
7273         * objfiles.c: Include "bcache.h".  Update copyright.
7274         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7275         macro_cache.
7276         (free_objfile): Use bcache_xfree.
7277
7278 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7279
7280         * monitor.c (monitor_fetch_register): Make name a constant.
7281         (monitor_store_register): Same.
7282
7283 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7284
7285         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7286         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7287         (finish_block) For non-function blocks, hash the symbol table.  For
7288         function blocks, mark the symbol table as unhashed.
7289         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7290         (msymbol_hash_iw): Likewise.
7291         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7292         value.
7293         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7294         (lookup_minimal_symbol): Likewise for both.
7295         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7296         hashtable.
7297         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7298         (ALL_BLOCK_SYMBOLS): Update.
7299         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7300         (struct symbol): Add `hash_next' pointer.
7301         * symtab.c (lookup_block_symbol): Search using the hash table when
7302         possible.
7303         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7304         (search_symbols, find_addr_symbol): Likewise.
7305
7306         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7307         (read_dst_symtab): Likewise.
7308         * jv-lang.c (get_java_class_symtab): Likewise.
7309         * mdebugread.c: Include "gdb_assert.h".
7310         (shrink_block): Assert that the block being modified is not hashed.
7311         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7312         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7313         symbols.
7314         (dump_symtab): Recognize hashed blocks.
7315         * printcmd.c (print_frame_args):  Assert that function blocks do not
7316         have hashed symbol tables.
7317         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7318         (fill_in_ada_prototype, debug_print_block): Likewise.
7319         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7320
7321 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7322
7323         * stack.c (print_frame): Use result of frame_address_in_block()
7324         instead of fi->pc when evaluating symbols.
7325         (backtrace_command_1): Ditto.
7326
7327 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7328
7329         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7330         Make static.
7331
7332         * arm-tdep.c (arm_register_name): Make return type constant.
7333
7334 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7335
7336         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7337         prototype.
7338         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7339         * s390-tdep.c (s390_fp_regnum): Ditto.
7340         (s390_read_fp): Ditto.
7341         (s390_pop_frame): Ditto.
7342         (_initialize_s390_tdep): Ditto.
7343         * remote.c (get_remote_state): Ditto.
7344         * procfs.c (mappingflags): Ditto.
7345         * memattr.c (_initialize_mem): Ditto.
7346         * mcore-tdep.c (mcore_pop_frame): Ditto.
7347         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7348         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7349         * language.c (set_case_str): Ditto.
7350         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7351         * frv-tdep.c (new_variant): Ditto.
7352         (frv_stopped_data_address): Ditto.
7353         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7354         (context_alloc): Ditto.
7355         (frame_state_alloc): Ditto.
7356         (unwind_tmp_obstack_init): Ditto.
7357         (unwind_tmp_obstack_free): Ditto.
7358         (cfi_read_fp): Ditto.
7359         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7360         (cris_pop_frame): Ditto.
7361         * c-lang.c (scanning_macro_expansion): Ditto.
7362         (finished_macro_expansion): Ditto.
7363         (c_preprocess_and_parse): Ditto.
7364         * gdbarch.sh: Ditto.
7365         * gdbarch.h, gdbarch.c: Regenerate.
7366         * config/mn10200/tm-mn10200.h: Adjust indentation.
7367         * target.c: Adjust indentation.
7368         * symtab.h: Adjust indentation.
7369         * stabsread.h: Adjust indentation.
7370         * remote-es.c: Adjust indentation.
7371         * os9kread.c: Adjust indentation.
7372
7373 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7374         
7375         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7376         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7377
7378 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7379         
7380         * NEWS: Mention m68k, mcore multi-arching.  
7381         * MAINTAINERS: Change status of m68k, mcore to reflect
7382         multi-arching.
7383
7384 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7385
7386         * valops.c (find_overload_match): Free oload_syms.
7387
7388 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7389
7390         Define HAVE_SYS_PROC_H if sys/proc.h exists
7391         * configure.in: Add check for sys/proc.h
7392         * config.in: Regenerate.
7393         * configure: Regenerate.
7394
7395 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7396
7397         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7398         #if !GDB_MULTI_ARCH. 
7399
7400 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7401
7402         * config.in, configure: Regenerate.
7403
7404 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7405
7406         * dwarf2cfi.c: Include "gcore.h".
7407         (execute_stack_op): Fix implementation of the
7408         DW_OP_deref and DW_OP_deref_size operators by letting do their
7409         lookup in the target.
7410
7411 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7412
7413         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7414         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7415         tdep->sc_sp_offset.
7416
7417 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7418
7419         Fix PR gdb/595, gdb/602
7420         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7421         Don't call value_cast, just read the vtable pointer; update comments
7422         to match.
7423
7424 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7425
7426         * config/mcore/tm-mcore.h: Remove file.
7427         * config/mcore/mcore.mt: Remove definition of TM_FILE
7428         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7429
7430 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7431
7432         * i386bsd-tdep.c: Include "gdb_string.h".
7433
7434 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7435
7436         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7437         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7438         mcore-tdep.
7439         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7440         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7441         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7442         (RETVAL_REGNUM): Move macros from tm-mcore.h
7443         (mcore_reg_struct_has_addr): New function.
7444         (mcore_gdbarch_init): Added initializations for the macros removed
7445         from tm-mcore.h.
7446
7447 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7448
7449         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7450         traditonal string branding within the ELF header.
7451
7452 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7453
7454         * symtab.c (remove_params): New function.
7455         (make_symbol_overload_list): Use it instead of cplus_demangle.
7456         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7457
7458 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7459
7460         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7461
7462         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7463         New variables.
7464         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7465         and tdep->sigtramp_end.
7466         * i386obsd-nat.c: New file.
7467         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7468
7469         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7470         Don't call get_current_frame().
7471
7472 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7473
7474         * i386-nat.c (child_post_startup_inferior): New function
7475         calling i386_cleanup_dregs if
7476         I386_USE_GENERIC_WATCHPOINTS is defined.
7477         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7478         conditional to acknowledge that i386-nat.c has its
7479         own child_post_startup_inferior function.
7480
7481 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7482
7483         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7484         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7485         instead of MAX_REGISTER_RAW_SIZE.
7486         (i386_extract_return_value, i386_extract_struct_value_address):
7487         Convert to use regcache.
7488         (i386_gdbarch_init): Set max_register_raw_size and
7489         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7490         Set extract_return_value and extract_struct_value_address instead
7491         of their deprecated variants.
7492
7493         Convert i386 target to generic dummy frames.
7494         * i386-tdep.c: Include "symfile.h".
7495         (i386_frameless_signal_p): Consider a function to be frameless if
7496         the pc points at the first instruction of the function.
7497         (i386_frame_chain): Handle (generic) call dummies.
7498         (i386_frame_saved_pc): Likewise.
7499         (i386_frame_init_saved_regs): Remove code dealing with call
7500         dummies on the stack.
7501         (i386_push_dummy_frame): Removed.
7502         (i386_call_dummy_words): Removed.
7503         (i386_fix_call_dummy): Removed.
7504         (i386_push_return_address): New function.
7505         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7506         parameter, and don't call get_current_frame.
7507         (i386_pop_frame): New function.
7508         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7509         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7510         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7511         call_dummy_length to 0, set call_dummy_words to NULL, set
7512         sizeof_call_dummy_words to 0, set fix_call_dummy to
7513         generic_fix_call_dummy, set pc_in_call_dummy to
7514         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7515         generic_push_dummy_frame, set push_return_address to
7516         i386_push_return_address and set frame_chain_valid to
7517         generic_file_frame_chain_valid.
7518
7519 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7520
7521         * gdbarch.sh (struct regcache): Add opaque declaration.
7522         (EXTRACT_RETURN_VALUE): New architecture method.
7523         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7524         * gdbarch.h, gdbarch.c: Regenerate.
7525         * arch-utils.c (legacy_extract_return_value): New function.
7526         * arch-utils.h (legacy_extract_return_value): Declare.
7527         * values.c (value_being_returned): Re-enable code handling
7528         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7529         deprecated_grub_regcache_for_registers call to block handling
7530         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7531         (EXTRACT_RETURN_VALUE): Do not define.
7532
7533 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7534
7535         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7536         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7537         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7538         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7539         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7540         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7541         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7542         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7543         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7544         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7545         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7546         argument so the function fits the prototype in the architecture
7547         vector.
7548         (mcore_pop_frame): Remove argument so the function fits the
7549         prototype. Use get_current_frame instead of the argument.
7550         (mcore_push_arguments): Change type of struct_return so the
7551         function can be used in the architecture vector.
7552         (mcore_store_struct_return): Add.
7553         (mcore_frame_init_saved_regs): Add.
7554         (mcore_gdbarch_init): Add function calls to replace the macros
7555         removed from tm-mcore.h
7556
7557 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7558
7559         * infcmd.c (print_return_value): Remove compatibility code calling
7560         deprecated_grub_regcache_for_registers.
7561         
7562         * values.c: Include "regcache.h".
7563         (value_being_returned): Update.  Use
7564         deprecated_grub_regcache_for_registers to extract the register
7565         buffer address.  
7566         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7567         ``struct regcache''.
7568         * Makefile.in (values.o): Add dependency on $(regcache_h).
7569
7570         * inferior.h (run_stack_dummy): Change type of second parameter to
7571         a ``struct regcache''.
7572         * valops.c (hand_function_call): Change type of retbuf to ``struct
7573         regcache''.  Allocate using regcache_xmalloc, clean using
7574         make_cleanup_regcache_xfree.
7575         * infcmd.c (run_stack_dummy): Update.  Use
7576         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7577
7578         * regcache.c (do_regcache_xfree): New function.
7579         (make_cleanup_regcache_xfree): New function.
7580         * regcache.h (make_cleanup_regcache_xfree): Declare.
7581
7582 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7583
7584         * event-top.c (command_line_handler): Don't read past
7585         beginning of buffer.
7586
7587 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7588         
7589         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7590         struct frame_id. 
7591         (varobj_create): Store frame_id for root.
7592         (varobj_gen_name): Use xasprintf.
7593         (varobj_update): Save and restore frame using get_frame_id() and
7594         frame_find_by_id().
7595         (create_child): Use xasprintf.
7596         (new_root_variable): Initialize frame_id.
7597         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7598         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7599         to prevent memory leak.
7600
7601 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7602
7603         * valops.c (hand_function_call): Move declaration of retbuf to
7604         start of function, allocate using malloc, add a cleanup but before
7605         the inf_status cleanup, cleanup the buffer.  Rename local variable
7606         old_chain to inf_status_cleanup.
7607
7608 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7609
7610         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7611
7612         * cli/cli-decode.c (cmd_func_p): New function.
7613         (cmd_func): New function.
7614
7615         * command.h: Add cmd_func() and cmd_func_p().   
7616         
7617 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7618
7619         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7620         (REGISTER_SIZE): Remove.
7621         (MAX_REGISTER_RAW_SIZE): Remove.
7622         (REGISTER_VIRTUAL_TYPE): Remove.
7623         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7624         (REGISTER_NAME): Remove.
7625         (USE_GENERIC_DUMMY_FRAMES): Remove.
7626         (CALL_DUMMY): Remove.
7627         (CALL_DUMMY_START_OFFSET): Remove.
7628         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7629         (CALL_DUMMY_LOCATION): Remove.
7630         (FIX_CALL_DUMMY): Remove.
7631         (CALL_DUMMY_ADDRESS): Remove.
7632         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7633         (SAVE_DUMMY_FRAME_TOS): Remove.
7634         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7635         (mcore_register_virtual_type): New function.
7636         (mcore_register_byte): New function.
7637         (mcore_register_size): New function.
7638         (mcore_register_name): New function.
7639         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7640         macros removed from tm-mcore.h.
7641         (mcore_dump_tdep): Add.
7642         (_initialize_mcore_tdep): Add gdbarch_register call.
7643
7644 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7645
7646         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7647         frameless_look_for_prologue, such that we actually call this
7648         function.
7649
7650 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7651
7652         * frame.h (frame_address_in_block): New function.
7653
7654         * blockframe.c (frame_address_in_block): New function extracted
7655         from get_frame_block().
7656         (get_frame_block): Use frame_address_in_block().
7657         (block_innermost_frame): Use frame_address_in_block() to match
7658         the frame pc address against the block boundaries rather than
7659         the frame pc directly. This prevents a failure when a frame pc
7660         is actually a return-address pointing immediately after the end
7661         of the given block. 
7662
7663 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7664
7665         * MAINTAINERS: Add self under write after approval. 
7666
7667 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7668
7669         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7670         used in architecture vector. The default is
7671         m68k_local_breakpoint_from_pc.
7672         (m68k_local_breakpoint_from_pc): Add.
7673         (enum): Add register numbers from tm-m68k.h.
7674         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7675         vector.  
7676         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7677         GDB_MULTI_ARCH_PARTIAL.
7678         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7679         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7680         m68k-tdep.c.
7681         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7682         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7683         to enum in m68k-tdep.c
7684
7685 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7686
7687         * solib-osf.c (open_map): Compute the list of shared libraries
7688         loaded by the inferior, rather than the list of libraries loaded
7689         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7690         the wrong shared libraries...
7691
7692 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7693
7694         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7695         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7696         macros.
7697         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7698         Remove functions.
7699         (FRAMELESS_SIGNAL): Remove function.
7700         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7701         i386_linux_saved_pc_after_call): Removed.
7702         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7703         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7704         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7705
7706         * i386-tdep.c (i386_frameless_signal_p): New function.
7707         (i386_frame_chain): Deal with frameless signals.
7708         (i386_sigtramp_saved_sp): New function.
7709         (i386_frame_saved_pc): Deal with frameless signals.
7710         (i386_saved_pc_after_call): Make sure the correct value is
7711         returned just after entry into a sigtramp.
7712         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7713         i386fbsd4_sc_sp_offset): New variables.
7714         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7715         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7716         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7717         similiar to what we already did for sc_pc_offset.
7718         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7719         tdep->sc_sp_offset.
7720
7721         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7722
7723 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7724
7725         * config/i386/tm-x86-64linux.h: New.
7726         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7727         definitions.
7728         * config/i386/nm-x86-64.h: Rename to ...
7729         * config/i386/nm-x86-64linux.h: ... this one.
7730         * config/i386/x86-64linux.mh: Reflect the above change.
7731         
7732 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7733
7734         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7735         with sigcontext_addr.  Add sc_sp_offset.
7736         (i386bsd_sigtramp_saved_pc): Remove prototype.
7737         (i386bsd_sicontext_addr): Add prototype.
7738         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7739         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7740         (i386_svr4_sigtramp_saved_pc): Removed.
7741         (i386_svr4_sigcontext_addr): New function.
7742         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7743         Initialize tdep->sigcontext_addr instead.  Initialize
7744         tdep->sc_pc_offset and tdep->sc_sp_offset.
7745         (i386_gdbarch_init): Likewise.
7746         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7747         any more.
7748         (i386bsd_sigtramp_saved_pc): Remove function.
7749         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7750         Initialize tdep->sigcontext_addr instead.  Initialize
7751         tdep->sc_pc_offset.
7752         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7753         of tdep->sigtramp_saved_pc.
7754         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7755         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7756         instead.
7757
7758         * i386-tdep.c (i386_frameless_function_invocation,
7759         i386_frame_num_args, i386_frame_init_saved_regs,
7760         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7761         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7762         i386_extract_return_value, i386_store_return_value,
7763         i386_extract_struct_value_address, i386_register_virtual_type,
7764         i386_register_convertible, i386_register_convert_to_virtual,
7765         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7766         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7767         static.
7768
7769 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7770
7771         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7772
7773         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7774         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7775         this macro.  Include "value.h".
7776
7777 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7778
7779         * ada-exp.tab.c: remove as it's a generated file
7780         * ada-lex.c: remove as it's a generated file
7781                 
7782 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7783
7784         * config/i386/tm-i386.h (struct frame_info, struct
7785         frame_saved_regs, struct value, struct type): Remove forward
7786         declarations.
7787
7788         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7789         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7790         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7791         (FILL_FPXREGSET): Define.
7792
7793         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7794
7795         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7796         i[3456]86-*-netbsd* case.
7797         * config/i386/tm-obsd.h: Removed.
7798         * config/i386/obsd.mt: Removed.
7799         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7800         core-aout.o.
7801         (MH_CFLAGS): Add -DYYDEBUG=0.
7802
7803         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7804         i386nbsd_sc_pc_offset on OpenBSD too.
7805
7806         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7807         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7808         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7809         define.
7810         * i386bsd-tdep.c: Include "arch-utils.h".
7811         (i386bsd_aout_in_solib_call_trampoline): New function.
7812         (i386bsd_init_abi): Set in_solib_call_trampoline to
7813         i386bsd_aout_in_solib_call_trampoline.
7814         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7815         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7816
7817 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7818
7819         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7820         (struct obstack, struct bcache): Add opaque declarations.
7821         * Makefile.in (macrotab_h): Update
7822
7823 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7824
7825         * blockframe.c (generic_find_dummy_frame): Change return type to
7826         ``struct regcache''.
7827         (struct dummy_frame): Replace field ``registers'' with regcache, a
7828         struct regcache object.
7829         (generic_find_dummy_frame): Update.
7830         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7831         regcache_xmalloc and regcache_cpy.
7832         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7833         regcache_xfree.
7834         (deprecated_generic_find_dummy_frame): Update.
7835         (generic_read_register_dummy): Update.  Use
7836         regcache_read_as_address.
7837         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7838         (generic_get_saved_register): Update.  Use regcache_read.
7839
7840 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7841
7842         * Makefile.in (objfiles_h): Add $(bcache_h).
7843         * objfiles.h: Include "bcache.h".
7844
7845         * Makefile.in (symtab_h): Remove $(bcache_h).
7846         * symtab.h: Do not include "bcache.h".
7847
7848 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7849
7850         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7851         generic_func_frame_chain_valid.
7852
7853 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7854
7855         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7856         * config/i386/tm-fbsd.h: Likewise.
7857
7858 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7859
7860         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7861         generic_unwind_get_saved_register.
7862
7863 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7864
7865         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7866         * regcache.c (supply_register): Add missing argument to
7867         register_buffer call.
7868
7869 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7870
7871         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7872         Solaris /bin/grep does not not like it.  From Peter Schauer.
7873
7874 2002-06-26  Tom Tromey  <tromey@redhat.com>
7875
7876         * command.h (add_setshow_cmd): Declare.
7877         (add_setshow_cmd_full): Declare.
7878         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7879         returns void.  Use add_setshow_cmd_full.
7880         (add_setshow_cmd_full): New function.
7881         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7882         (add_setshow_boolean_cmd): Likewise.
7883
7884 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7885
7886         * config/vax/tm-vax.h: Protect from multiple inclusion.
7887         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7888         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7889         * config/vax/tm-vaxbsd.h: ...here.  New file.
7890         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7891
7892 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7893
7894         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7895         (BELIEVE_PCC_PROMOTION): Remove.
7896         (AP_REGNUM): Move to...
7897         * config/vax/nm-vax.h: ...here.
7898         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7899         (vax_breakpoint_from_pc): New function.
7900         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7901         and gdbarch_believe_pcc_promotion.
7902
7903 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7904
7905         * Makefile.in (vax_tdep_h): Define.  
7906         (vax-tdep.o): Use $(vax_tdep_h).
7907         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7908         (vax_dump_tdep): New function. 
7909         (_initialize_vax_tdep): Register vax_dump_tdep.
7910         * vax-tdep.h: Include osabi.h.     
7911         (struct gdbarch_tdep): New. 
7912
7913 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7914
7915         * frame.h (deprecated_generic_find_dummy_frame): Rename
7916         generic_find_dummy_frame.
7917         * blockframe.c (generic_find_dummy_frame): Make static.
7918         (deprecated_generic_find_dummy_frame): New function.
7919         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7920         generic_find_dummy_frame with deprecated_find_dummy_frame.
7921         (sh64_nofp_frame_init_saved_regs): Ditto.
7922         (sh_fp_frame_init_saved_regs): Ditto.
7923         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7924         (s390_frame_chain): Ditto.
7925         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7926
7927 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7928
7929         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7930         gdbarch vector are at the top.
7931         (NUM_REGS): Remove.
7932         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7933         (FRAME_ARGS_ADDRESS): Remove.
7934         (FRAME_LOCALS_ADDRESS): Remove.
7935         (FRAME_NUM_ARGS): Remove.
7936         (FRAME_ARGS_SKIP): Remove.  
7937         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7938         (m68k_gdbarch_init): Add gdbarch initializations for macros
7939         undefined in tm-m68k.h
7940
7941 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7942
7943         * monitor.h: Add the function regname to monitor_ops
7944         structure. This way NUM_REGS does not have to be a constant.
7945         * monitor.c (monitor_fetch_register): Added support for regname
7946         function. The function is called if the array regnames is NULL.
7947         (monitor_store_register): Same.
7948         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7949         regnames array.
7950         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7951         cpu32bug_cmds.regname to point to new function.
7952         * abug-rom.c (abug_regname): Same as above.
7953         (init_abug_cmds): Same.
7954         * dbug-rom.c (dbug_regname): Same as above.
7955         (init_dbug_cmds): Same.
7956         * remote-est.c (est_regname): Same. 
7957         (init_est_cmds): Same.
7958         * rom68k-rom.c (rom68k_regname): Same. 
7959         (init_rom68k_cmds): Same.
7960
7961 2002-06-25  Tom Tromey  <tromey@redhat.com>
7962
7963         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7964
7965 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7966
7967         * infrun.c (stop_registers): Change variable's type to ``struct
7968         regcache'''.
7969         (xmalloc_inferior_status): Delete function.
7970         (free_inferior_status): Delete function.
7971         (normal_stop): Use regcache_cpy.
7972         (struct inferior_status): Change type of fields ``stop_registers''
7973         and ``registers'' to ``struct regcache''.
7974         (write_inferior_status_register): Use regcache_write.
7975         (save_inferior_status): Instead of calling
7976         xmalloc_inferior_status, allocate the inf_status buffer directly.
7977         Use regcache_dup_no_passthrough and regcache_dup to save the
7978         buffers.
7979         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7980         Replace the stop_registers regcache instead of overriding it.  Use
7981         regcache_xfree.  Instead of calling free_inferior_status, xfree
7982         the buffer directly.
7983         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7984         free_inferior_status, xfree the buffer directly.
7985         (build_infrun): Use regcache_xmalloc.
7986         (_initialize_infrun): Delete redundant call to build_infrun.
7987
7988         * Makefile.in (infcmd.o): Add $(regcache_h).
7989
7990         * infcmd.c: Include "regcache.h".
7991         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7992         obtain the address of `stop_registers' register buffer.
7993         (print_return_value): Ditto.
7994
7995         * inferior.h (struct regcache): Add opaque declaration.
7996         (stop_registers): Change variable's declared type to ``struct
7997         regcache''.
7998
7999 2002-06-24  Tom Tromey  <tromey@redhat.com>
8000
8001         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8002         * target.c (initialize_targets): Fixed typo in
8003         trust-readonly-sections `show' documentation.
8004
8005         * main.c: Marked all strings with _().
8006
8007 2002-06-24  Don Howard  <dhoward@redhat.com>
8008
8009         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8010         that means max CORE_ADDR+1.
8011         (lookup_mem_region): Ditto.
8012         (mem_info_command): Ditto.
8013
8014 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8015
8016         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8017         (REGISTER_BYTES_OK): Remove.
8018         (REGISTER_BYTES): Remove.
8019         (STORE_STRUCT_RETURN): Remove.
8020         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8021         (STORE_RETURN_VALUE): Remove.
8022         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8023         (FRAME_CHAIN): Remove.
8024         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8025         (FRAME_SAVED_PC): Remove.  
8026         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8027         (m68k_store_struct_return): Add.
8028         (m68k_deprecated_extract_return_value): Add.
8029         (m68k_deprecated_extract_struct_value_address): Add.
8030         (m68k_store_return_value): Add.
8031         (m68k_frame_chain): Add.
8032         (m68k_frameless_function_invocation): Add.
8033         (m68k_frame_saved_pc): Add.
8034         (m68k_gdbarch_init): added set_gdbarch calls for new 
8035         functions and deleted macros.
8036
8037 2002-06-23  Tom Tromey  <tromey@redhat.com>
8038
8039         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8040         (ALLDEPFILES): Likewise.
8041         (udiheaders): Removed.
8042         (udip2soc.o): Likewise.
8043         (udi2go32.o): Likewise.
8044         (udr.o): Likewise.
8045         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8046
8047 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8048
8049         * infrun.c (_initialize_infrun): Delete unnecessary call to
8050         build_infrun.
8051
8052         * regcache.h: Update comments describing the regcache_cpy family
8053         of functions.
8054         (regcache_save, regcache_restore): Delete declaration.
8055         (regcache_save_no_passthrough): Delete declaration.
8056         (regcache_restore_no_passthrough): Delete declaration.
8057         * regcache.c (regcache_save): Delete function.
8058         (regcache_save_no_passthrough): Delete function.
8059         (regcache_restore): Delete function.
8060         (regcache_restore_no_passthrough): Delete function.
8061
8062 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8063
8064         * config/m68k/tm-m68k.h: Fix typo.
8065         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8066         (m68k_frame_init_saved_regs): Declare.
8067
8068 2002-06-21  Jim Blandy  <jimb@redhat.com>
8069
8070         Remove some vestiges of Harris 88k support.
8071         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8072         register numbering quirk.
8073         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8074         odd symbols occurring in Harris 88k ELF targets.
8075
8076 2002-06-21  Tom Tromey  <tromey@redhat.com>
8077
8078         * gdb_locale.h: New file.
8079         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8080         (defs_h): Added gdb_locale.h.
8081         * configure, config.in: Rebuilt.
8082         * configure.in (PACKAGE): Define.
8083         * defs.h: Include gdb_locale.h.
8084         * main.c (captured_main): Call setlocale, bindtextdomain,
8085         textdomain.
8086
8087 2002-06-21  Dave Brolley  <brolley@redhat.com>
8088
8089         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8090         * config/frv/frv.mt: New file.
8091         * config/frv/tm-frv.h: New file.
8092         * configure.tgt: Support frv-*-*.
8093         * Makefile.in (frv-tdep.o): New target.
8094         * frv-tdep.c: New file.
8095         * NEWS: Mention frv.
8096
8097 2002-06-21  Dave Brolley  <brolley@redhat.com>
8098
8099         * MAINTAINERS: Add self to "Write After Approval" list.
8100
8101 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8102
8103         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8104         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8105         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8106         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8107         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8108
8109         * m68k-tdep.c: Include arch-utils.h
8110         (m68k_register_raw_size): Add.
8111         (m68k_register_virtual_size): Add.
8112         (m68k_register_virtual_type): Add.
8113         (m68k_register_name): Add.
8114         (m68k_stack_align): Add.
8115         (m68k_register_byte): Add.
8116         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8117         tm-m68k.h.
8118
8119 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8120
8121         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8122         m68k_find_saved_regs.
8123         (m68k_pop_frame): Removed saved_regs structure, and replaced
8124         references to it with frame->saved_regs.
8125         (m68k_gdbarch_init): Added function calls to initialize the
8126         gdbarch structure.
8127         (m68k_fix_call_dummy): Add. 
8128         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8129         (CALL_DUMMY): Remove.
8130         (CALL_DUMMY_LENGTH): Remove.
8131         (CALL_DUMMY_START_OFFSET): Remove.
8132         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8133         (FIX_CALL_DUMMY): Remove.
8134         (PUSH_DUMMY_FRAME): Remove.
8135         (POP_FRAME): Remove.
8136
8137 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8138
8139         * parse.c (parse_fprintf): New function used to avoid calls to
8140         fprintf in bison parser generated debug code.
8141         * parser-defs.h: Declaration of new parse_fprintf function.
8142         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8143         Set YYDEBUG to 1 by default.
8144         Set YYFPRINTF as parse_fprintf.
8145
8146 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8147
8148         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8149         encoding anymore.
8150         (pointer_encoding, enum ptr_encoding): New.
8151         (execute_cfa_program): Take care about pointer encoding.        
8152         (dwarf2_build_frame_info): Only call parse_frame_info for 
8153         .debug_frame and .eh_frame.
8154         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8155         fixed augmentation handling, added relative addressing, 
8156         ignore duplicate FDEs. Added comments.
8157         * dwarf2cfi.c: Reindented.
8158         
8159 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8160
8161         * event-top.c (command_handler): Don't use space_at_cmd_start
8162         unless there is sbrk() on the host. Assign time and space data
8163         to union fields of the appropriate length.
8164
8165 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8166
8167         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8168         x86_64_register_name. Return type changed to 'const char *'.
8169         (x86_64_register_name2nr): Rename to x86_64_register_number.
8170         (x86_64_gdbarch_init): Update to reflect the change.
8171         * x86-64-tdep.h: Ditto.
8172         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8173         (supply_fpregset): Ditto.
8174
8175 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8176
8177         * regcache.h: Update copyright.
8178         (struct regcache, struct gdbarch): Add opaque declarations.
8179         (current_regcache): Declare global variable.
8180         (regcache_read, regcache_write): Add gdbarch parameter.
8181         (regcache_save, regcache_save_no_passthrough)
8182         (regcache_restore, regcache_restore_no_passthrough)
8183         (regcache_dup, regcache_dup_no_passthrough)
8184         (regcache_cpy, regcache_cpy_no_passthrough)
8185         (deprecated_grub_regcache_for_registers)
8186         (deprecated_grub_regcache_for_register_valid)
8187         (regcache_valid_p): Add function declarations.
8188         
8189         * regcache.c: Update copyright.
8190         (regcache_descr_handle): New global variable.
8191         (struct regcache_descr): Define.
8192         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8193         (regcache_descr, xfree_regcache_descr): New functions.
8194         (struct regcache): Define.
8195         (regcache_xmalloc, regcache_xfree): New functions.
8196         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8197         (regcache_dup, regcache_dup_no_passthrough): New functions.
8198         (regcache_valid_p, regcache_read_as_address): New functions.
8199         (deprecated_grub_regcache_for_registers): New function.
8200         (deprecated_grub_regcache_for_register_valid): New function.
8201         (current_regcache): New global variable.
8202         (register_buffer): Add regcache parameter.  Update calls.
8203         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8204         (read_register_gen, write_register_gen): Update register_buffer
8205         call.  Test for legacy_p instead of gdbarch_register_read_p or
8206         gdbarch_register_write_p.
8207         (regcache_collect): Update register_buffer call.
8208         (build_regcache): Rewrite.  Use deprecated grub functions.
8209         (regcache_save, regcache_save_no_passthrough): New functions.
8210         (regcache_restore, regcache_restore_no_passthrough): New
8211         functions.
8212         (_initialize_regcache): Create the regcache_data_handle. Swap
8213         current_regcache global variable.
8214         
8215         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8216         parameter to regcache_read and regcache_write calls.
8217         (sh4_register_read): Ditto.
8218         (sh64_pseudo_register_read): Ditto.
8219         (sh64_register_read): Ditto.
8220         (sh_pseudo_register_write): Ditto.
8221         (sh4_register_write): Ditto.
8222         (sh64_pseudo_register_write): Ditto.
8223         (sh64_register_write): Ditto.
8224
8225         * defs.h (XCALLOC): Define.
8226
8227 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8228
8229         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8230         * m68k-tdep.c (m68k_gdbarch_init): Added.
8231         (m68k_dump_tdep): Added.
8232
8233 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8234
8235         * ada-lang.c (fill_in_ada_prototype): Update comment.
8236
8237 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8238
8239         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8240         MIPS_ABI_LAST.
8241         (mips_abi_string, mips_abi_strings): New.
8242         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8243         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8244         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8245         O32 if no ABI is found.
8246         (mips_dump_tdep): Use mips_abi_strings.
8247         (mips_abi_update): New function.
8248         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8249         ``set mips abi'' and ``show mips abi''.  Check the size of
8250         mips_abi_strings.
8251
8252 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8253
8254         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8255         constant.
8256
8257 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8258
8259         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8260         current frame using only the first stack size adjustment. All
8261         subsequent size adjustments are not considered to be part of
8262         the "static" part of the current frame.
8263         Compute the address of the saved registers relative to the
8264         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8265         in use in this frame.
8266
8267 2002-06-18  Don Howard  <dhoward@redhat.com>
8268  
8269         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8270         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8271         suggesting this solution.
8272
8273 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8274
8275         * config/romp/xm-rtbsd.h: Delete file.
8276         * config/romp/rtbsd.mh: Delete file.
8277
8278 2002-06-18  Keith Seitz  <keiths@redhat.com>
8279
8280         * breakpoint.c (condition_command): Post breakpoint_modify
8281         when a condition is added to an existing breakpoint.
8282         (commands_command): Likewise for commands.
8283         (set_ignore_count): Likewise for ignore counts.
8284         If no tty, do not simply return, still need to send event
8285         notification.
8286         (ignore_command): Only print a newline if the command came
8287         from a tty.
8288         Don't call breakpoints_changed, since this is now properly
8289         handled by set_ignore_count.
8290
8291 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8292
8293         * MAINTAINERS: Note that cris-elf target can be compiled with
8294         -Werror.
8295         * cris-tdep.c (cris_register_name): Make return type constant.
8296         (cris_breakpoint_from_pc): Ditto.
8297
8298 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8299
8300         * frame.h (struct frame_info): Change type of context to 
8301         'struct context'.
8302
8303 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8304
8305         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8306         pointer.
8307         * gdbarch.h, gdbarch.c: Regenerate.
8308         * config/mips/tm-mips.h (mips_register_name): Update.
8309         * i386-tdep.h (i386_register_name): Update.
8310         * mips-tdep.c (mips_register_name): Update
8311         * alpha-tdep.c (alpha_register_name): Update.
8312         * arch-utils.c (legacy_register_name): Update.
8313         * arch-utils.h (legacy_register_name): Update.
8314         * avr-tdep.c (avr_register_name): Update.
8315         * ia64-tdep.c (ia64_register_name): Update.
8316         * i386-tdep.c (i386_register_name): Update.
8317         * sparc-tdep.c (sparc32_register_name): Update.
8318         (sparc64_register_name): Update.
8319         (sparclite_register_name): Update.
8320         (sparclet_register_name): Update.
8321         * sh-tdep.c (sh_generic_register_name): Update.
8322         (sh_sh_register_name): Update.
8323         (sh_sh3_register_name): Update.
8324         (sh_sh3e_register_name): Update.
8325         (sh_sh_dsp_register_name): Update.
8326         (sh_sh3_dsp_register_name): Update.
8327         (sh_sh4_register_name): Update.
8328         (sh_sh64_register_name): Update.
8329         * s390-tdep.c (s390_register_name): Update.
8330         * rs6000-tdep.c (rs6000_register_name): Update.
8331         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8332         (ns32k_register_name_32382): Update.
8333         * d10v-tdep.c (d10v_ts2_register_name): Update.
8334         (d10v_ts3_register_name): Update.
8335         * xstormy16-tdep.c (xstormy16_register_name): Update.
8336         * vax-tdep.c (vax_register_name): Update.
8337         * v850-tdep.c (v850_register_name): Update.
8338         * m68hc11-tdep.c (m68hc11_register_name): Update.
8339         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8340         (am33_register_name): Update.
8341
8342 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8343
8344         * m68k-tdep.c: Reindented.
8345
8346 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8347
8348         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8349         list of predefined types.
8350
8351 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8352
8353         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8354         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8355         REGISTER_CONVERT_TO_RAW): Remove defines.
8356         (i386_register_virtual_type, i386_register_convertible,
8357         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8358         Remove prototypes.
8359         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8360         macros mentioned above.
8361
8362         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8363         (i386lynx_saved_pc_after_call): Remove prototype.
8364         * i386ly-tdep.c: Include "i386-tdep.h".
8365         (i386lynx_saved_pc_after_call): Make static.  Use
8366         read_memory_nobpt instead of read_memory.  Use
8367         read_memory_unsigned_integer instead of read_memory_integer.
8368         (i386lynx_init_abi): New function.
8369         (i386lynx_coff_osabi_sniffer): New function.
8370         (_initialize_i386bsd_tdep): New function.
8371
8372         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8373         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8374         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8375         (i386_fix_call_dummy): Remove prototype.
8376         * i386-tdep.c (i386_call_dummy_words): New variable.
8377         (i386_gdbarch_init): Adjust for removal of the
8378         macros mentioned above.
8379
8380 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8381
8382         * command.h (add_setshow_auto_boolean_cmd): Replace
8383         add_set_auto_boolean_cmd.
8384         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8385         add_set_auto_boolean_cmd.
8386         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8387         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8388         mask-address'' command.
8389         (show_mask_address): Add cmd parameter.
8390         * remote.c (add_packet_config_cmd): Update.  Change type of
8391         set_func and show_func to cmd_sfunc_ftype.
8392         (_initialize_remote): Update `set remote Z-packet'
8393         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8394         (show_remote_protocol_e_packet_cmd): Ditto.
8395         (show_remote_protocol_E_packet_cmd): Ditto.
8396         (show_remote_protocol_P_packet_cmd): Ditto.
8397         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8398         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8399         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8400         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8401         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8402         (show_remote_protocol_Z_packet_cmd): Ditto.
8403         (show_remote_protocol_binary_download_cmd): Ditto.
8404         (show_remote_cmd): Pass NULL to all of above.
8405
8406 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8407
8408         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8409         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8410         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8411         POP_FRAME): Remove defines.
8412         (i386_push_arguments, i386_store_struct_return,
8413         i386_extract_return_value, i386_store_return_value,
8414         i386_extract_struct_value_address, i386_push_dummy_frame,
8415         i386_pop_frame): Renove prototypes.
8416         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8417         macros mentioned above.
8418
8419 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8420
8421         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8422         add_set_boolean_cmd.
8423         (add_setshow_cmd): New function.
8424         * command.h (add_setshow_boolean_cmd): Replace
8425         add_set_boolean_cmd.
8426         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8427         and ``set rdiromatzero''.
8428         * maint.c (_initialize_maint_cmds): Update commented out code.
8429         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8430         * target.c (initialize_targets): Update `set
8431         trust-readonly-sections'.
8432         * remote.c (_initialize_remote): Update `set remotebreak'.
8433
8434 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8435
8436         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8437         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8438         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8439         fit into multi-arch framework.
8440         (i386_breakpoint_from_pc): New function.
8441         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8442         above.
8443
8444         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8445         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8446         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8447         (i386_frameless_function_invocation, i386_frame_num_args,
8448         i386_frame_init_saved_regs): Remove prototypes.
8449         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8450         macros mentioned above.
8451
8452 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8453
8454         * cli/cli-decode.c (set_cmd_cfunc): Update.
8455         (set_cmd_sfunc): Update.
8456         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8457         (set_cmd_sfunc, set_cmd_cfunc): Update.
8458         * cli/cli-decode.h: Update.
8459
8460 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8461
8462         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8463         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8464
8465 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8466
8467         * defs.h (auto_boolean): Declare enum.
8468         * command.h (cmd_auto_boolean): Delete enum.
8469         * mips-tdep.c (mask_address_var): Update.
8470         (mips_mask_address_p): Update.
8471         (show_mask_address): Update.
8472         * remote.c (struct packet_config): Update.
8473         (update_packet_config): Update.
8474         (show_packet_config_cmd): Update.
8475         (packet_ok): Update.
8476         (add_packet_config_cmd): Update.
8477         (_initialize_remote): 
8478         * command.h: Update.
8479         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8480         (do_setshow_command): Update.
8481         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8482         * cli/cli-decode.h: Update.
8483
8484 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8485
8486         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8487         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8488         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8489         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8490         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8491         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8492
8493         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8494         list of DJGPP COFF targets.
8495
8496         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8497         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8498         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8499         (FP0_REGNUM): Remove define.
8500         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8501         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8502         (i386_register_virtual_size): Remove protoype.
8503         * i386-tdep.c (i386_register_virtual_size): Removed.
8504         (i386_extract_return_value, i386_store_return_value): Use
8505         FP0_REGNUM instead of NUM_FREGS to determine whether the
8506         floating-point registers are available.
8507         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8508         Adjust for removal of macros mentioned above.
8509
8510 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8511
8512         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8513         comments.
8514         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8515         Remove prototypes.
8516         (supply_gregset, fill_gregset): Remove use of register keyword and
8517         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8518         NUM_REGS and NUM_FREGS.
8519         (FPREGSET_FSAVE_OFFSET): Remove.
8520         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8521         NUM_FREGS to determine whether the floating-point registers are
8522         available.
8523
8524         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8525         gnu_store_registers): Replace usage of NUM_GREGS with
8526         I386_NUM_GREGS.
8527
8528         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8529         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8530         usage of NUM_GREGS with I386_NUM_GREGS.
8531
8532         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8533
8534         * i386bsd-nat.c: Include "i386-tdep.h".
8535         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8536         I386_NUM_GREGS.
8537
8538         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8539         and associated comment.  They no longer make any sense, since we
8540         don't use this file anymore on Linux.
8541
8542         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8543         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8544         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8545         elements in these arrays.
8546         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8547         MAX_NUM_REGS.
8548
8549 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8550
8551         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8552         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8553
8554 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8555
8556         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8557         EXTRACT_RETURN_VALUE.
8558         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8559         EXTRACT_STRUCT_VALUE_ADDRESS.
8560         * gdbarch.h, gdbarch.c: Regenerate.
8561         
8562         * values.c (value_being_returned): Handle
8563         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8564         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8565
8566         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8567         * arm-tdep.c (arm_gdbarch_init): Update.
8568         * avr-tdep.c (avr_gdbarch_init): Update.
8569         * cris-tdep.c (cris_gdbarch_init): Update.
8570         * d10v-tdep.c (d10v_gdbarch_init): Update.
8571         * ia64-tdep.c (ia64_gdbarch_init): Update.
8572         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8573         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8574         * s390-tdep.c (s390_gdbarch_init): Update.
8575         * sh-tdep.c (sh_gdbarch_init): Update.
8576         * s390-tdep.c (s390_gdbarch_init): Update.
8577         * sparc-tdep.c (sparc_gdbarch_init): Update.
8578         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8579         * v850-tdep.c (v850_gdbarch_init): Update.
8580         * vax-tdep.c (vax_gdbarch_init): Update.
8581         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8582         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8583
8584         * config/arc/tm-arc.h: Update.
8585         * config/d30v/tm-d30v.h: Update.
8586         * config/fr30/tm-fr30.h: Update.
8587         * config/h8300/tm-h8300.h: Update.
8588         * config/h8500/tm-h8500.h: Update.
8589         * config/i386/tm-i386.h: Update.
8590         * config/i386/tm-ptx.h: Update.
8591         * config/i386/tm-symmetry.h: Update.
8592         * config/i960/tm-i960.h: Update.
8593         * config/m32r/tm-m32r.h: Update.
8594         * config/m68k/tm-delta68.h: Update.
8595         * config/m68k/tm-linux.h: Update.
8596         * config/m68k/tm-m68k.h: Update.
8597         * config/m88k/tm-m88k.h: Update.
8598         * config/mcore/tm-mcore.h: Update.
8599         * config/mips/tm-mips.h: Update.
8600         * config/mn10200/tm-mn10200.h: Update.
8601         * config/pa/tm-hppa.h: Update.
8602         * config/pa/tm-hppa64.h: Update.
8603         * config/sparc/tm-sp64.h: Update.
8604         * config/sparc/tm-sparc.h: Update.
8605         * config/sparc/tm-sparclet.h: Update.
8606         * config/z8k/tm-z8k.h: Update.
8607
8608 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8609
8610         * Makefile.in (i386_linux_tdep_h): Define.
8611         (i386_tdep_h, i387_tdep_h): Define.
8612         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8613         $(i386_tdep_h) and $(i387_tdep_h).
8614         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8615
8616 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8617
8618         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8619         Already covered by the default.
8620
8621         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8622         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8623         (i386_gdbarch_init): Initialize long_double_format and long_double
8624         bit.
8625
8626         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8627         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8628         Move these to ...
8629         * config/i386/i386sol2.mh: ... here.
8630         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8631         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8632         (SIGCONTEXT_PC_OFFSET): Remove define.
8633         (IN_SIGTRAMP): Remove define.
8634         * i386-sol2-tdep.c: New file.
8635         
8636         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8637         * config/i386/tm-i386nw.h: Removed.
8638
8639         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8640         USE_STRUCT_CONVENTION): Remove defines.
8641         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8642         (get_longjmp_target): Remove prototype.
8643         (IN_SIGTRAMP): Remove define.
8644         (i386bsd_in_sigtramp): Remove prototype.
8645         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8646         function.  Update comment accordingly
8647         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8648         (FRAME_SAVED_PC): Remove define.
8649         (i386bsd_frame_saved_pc): Remove prototype.
8650         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8651         GET_LONGJMP_TARGET): Remove defines.
8652         (get_longjmp_target): Remove prototype.
8653         (IN_SIGTRAMP): Remove define.
8654         (i386bsd_in_sigtramp): Remove prototype.
8655         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8656         function.  Update comment accordingly
8657         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8658         (FRAME_SAVED_PC): Remove define.
8659         (i386bsd_frame_saved_pc): Remove prototype.
8660         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8661         Remove prototype.
8662         (USE_STRUCT_CONVENTION): Remove prototype.
8663         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8664         declaration.
8665         (_initialize_i386bsd_nat): Revise logic to determine some
8666         constants at compile time when compiling a native GDB.  Warn if
8667         things don't match up with what we expect.
8668         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8669         Remove variables.
8670         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8671         to use date stored in `struct gdbarch_tdep'.
8672         (i386bsd_sigcontext_offset): Remove varaible.
8673         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8674         stored in `struct gdbarch_tdep'.
8675         (i386bsd_frame_saved_pc): Make static.
8676         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8677         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8678         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8679         i386fbsd4_sc_pc_offset): New variables.
8680         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8681         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8682         functions.
8683         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8684         functions.
8685         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8686         Modify the value of i386fbsd_sigtramp_start and
8687         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8688         i386fbsd_sigtramp_end.
8689         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8690         function.
8691
8692         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8693         define to i386-linux-tdep.h.
8694         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8695         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8696         defines.
8697         (i386_linux_register_name, i386_linux_register_byte,
8698         i386_linux_register_raw_size): Remove prototypes.
8699         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8700         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8701         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8702         TARGET_WRITE_PC): Remove defines.
8703         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8704         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8705         i386_linux_write_pc): Remove prototypes.
8706         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8707         (get_longjmp_target): Remove prototype.
8708         * i386-linux-tdep.h: New file.
8709         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8710         * i386-linux-tdep.c: Include "i386-tdep.h" and
8711         "i386-linux-tdep.h".
8712         (i386_linux_register_name, i386_linux_register_byte,
8713         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8714         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8715         Make static.
8716         (i386_linux_init_abi): New function.
8717         (_initialize_i386_linux_tdep): New function.
8718
8719         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8720         (i386_saved_pc_after_call): Remove prototype.
8721         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8722         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8723         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8724         (i386_register_name, i386_stab_reg_to_regnum,
8725         i386_dwarf_reg_to_regnum): Remove prototypes.
8726         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8727         SIZEOF_SSE_REGS): Remove defines.
8728         (REGISTER_BYTES): Remove define.
8729         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8730         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8731         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8732         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8733         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8734         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8735         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8736         (get_longjmp_target): Remove prototype.
8737         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8738         (sigtramp_saved_pc): Remove define.
8739         (i386v4_sigtramp_saved_pc): Remove prototype.
8740         * config/i386/tm-go32.h (FRAME_CHAIN,
8741         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8742         (i386go32_frame_saved_pc): Remove prototype.
8743         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8744         (get_longjmp_target): Remove prototype.
8745         * i386-tdep.h: Include "osabi.h".
8746         (enum i386_abi): Removed.
8747         (enum struct_return): New enum.
8748         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8749         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8750         sc_pc_offset members.
8751         (i386_gdbarch_register_os_abi): Remove prototype.
8752         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8753         I386_SSE_NUM_REGS): New defines.
8754         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8755         I386_SSE_SIZEOF_REGS): New defines.
8756         (i386_register_name, i386_register_byte, i386_register_raw_size):
8757         New prototypes.
8758         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8759         (i386bsd_sigtramp_saved_pc): New prototype.
8760         * i386-tdep.c: Don't include "elf-bfd.h".
8761         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8762         i386_frame_chain, i386_saved_pc_after_call): Make static.
8763         (i386_frame_saved_pc): Rewrite to call architecture dependent
8764         function to deal with signal handlers.  Make static.
8765         (i386go32_frame_saved_pc): Removed.
8766         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8767         Removed.
8768         (i386_get_longjmp_target): New function.
8769         (default_struct_convention, pcc_struct_convention,
8770         reg_struct_convention, valid_conventions, struct_convention): New
8771         variables.
8772         (i386_use_struct_convention): New function.
8773         (i386v4_sigtramp_saved_pc): Renamed to
8774         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8775         (i386_pc_in_sigtramp): New function.
8776         (i386_abi_names): Removed.
8777         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8778         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8779         Removed.
8780         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8781         i386_gdbarch_register_os_abi): Removed.
8782         (struct i386_abi_handler): Removed.
8783         (i386_abi_handler_list): Removed.
8784         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8785         functions.
8786         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8787         i386_nw_init_abi): New functions.
8788         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8789         Use set_gdbarch_xxx() calls instead of relying on macros for a
8790         number of calls.
8791         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8792         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8793         Register the various architecture variants defined in this file.
8794
8795 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8796
8797         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8798         (struct main_type): Remove arg_types member.  Update comments for
8799         struct field.
8800         (TYPE_ARG_TYPES): Remove.
8801         (TYPE_FN_FIELD_ARGS): Update.
8802         (smash_to_method_type): Update prototype.
8803
8804         * c-typeprint.c (cp_type_print_method_args): Take method type
8805         instead of argument list.  Use new argument layout.  Simplify.
8806         (c_type_print_args): Use new argument layout.  Simplify.
8807         (c_type_print_base): Update call to cp_type_print_method_args.
8808         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8809         argument; use die->type instead.  Update call to
8810         smash_to_method_type.
8811         (read_structure_scope): Update call to dwarf2_add_member_fn.
8812         * gdbtypes.c (allocate_stub_method): Update comment.
8813         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8814         Use new argument layout.
8815         (check_stub_method): Use new argument layout.  Don't count
8816         void as an argument.
8817         (print_arg_types): Update comments.  Use new argument layout.
8818         (recursive_dump_type): Don't print arg_types member.
8819         * hpread.c (hpread_read_struct_type): Use new argument layout.
8820         (fixup_class_method_type): Likewise.
8821         (hpread_type_lookup): Likewise.
8822         * stabsread.c (read_type): Update calls to read_args and
8823         smash_to_method_type.
8824         (read_args): Use new argument layout.  Simplify.
8825         * valops.c (typecmp): Use new argument layout.  Update parameters
8826         and comments.  Simplify.
8827         (hand_function_call): Use new argument layout.
8828         (search_struct_method): Update call to typecmp.
8829         (find_overload_match): Use new argument layout.
8830
8831 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8832
8833         * NEWS: Mention multithreaded debug support for gdbserver.
8834
8835 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8836
8837         * MAINTAINERS: Mention NEWS.
8838
8839 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8840
8841         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8842         (struct mips_objfile_private, compare_pdr_entries): New.
8843         (non_heuristic_proc_desc): Read the ".pdr" section if it
8844         is present.
8845
8846 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8847
8848         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8849         (arm_debug): New static variable.
8850         (_initialize_arm_tdep): Add ``set debug arm'' command.
8851
8852 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8853
8854         * Makefile.in (sim_arm_h): Define.
8855         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8856         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8857         (arm_register_sim_regno): New function, map an internal REGNUM
8858         onto a simulator register number.
8859         (arm_gdbarch_init): Set register_sim_regno.
8860
8861 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8862
8863         * MAINTAINERS: Add self.
8864
8865 2002-06-11  Jim Blandy  <jimb@redhat.com>
8866
8867         * source.c (source_info): Mention whether the symtab has
8868         information about preprocessor macros.
8869
8870         Call the command `info macro', not `show macro'.
8871         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8872         Fix error message.
8873         (_initialize_macrocmd): Register `info_macro_command' in
8874         `infolist', not `showlist'.
8875
8876 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8877
8878         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8879         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8880         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8881         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8882         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8883         unconditionally.
8884         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8885         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8886         (_initialize_mips_tdep): Remove dead code.
8887         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8888         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8889         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8890         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8891         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8892         MIPS_LAST_FP_ARG_REGNUM): Remove.
8893
8894 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8895
8896         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8897         (unwind_tmp_obstack_free, parse_frame_info)
8898         (update_context, cfi_read_fp, cfi_write_fp)
8899         (cfi_frame_chain, cfi_init_extra_frame_info)
8900         (cfi_virtual_frame_pointer): Use the above function.
8901         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8902
8903 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8904
8905         * v850-tdep.c (v850_type_is_scalar): New function.
8906         (v850_use_struct_convention): Match current gcc implementation
8907         as close as possible.
8908         (v850_push_arguments): Fix stack_offset handling.  Don't write
8909         struct_addr into register.  This is done by v850_store_struct_return.
8910         (v850_extract_return_value): Care for structs.
8911         (v850_store_return_value): Ditto.
8912         (v850_store_struct_return): Actually write address.
8913
8914 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8915
8916         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8917         without debug information too.
8918
8919 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8920
8921         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8922         Make multi-arch pure.
8923         * gdbarch.h, gdbarch.c: Re-generate.
8924         * arm-tdep.c (arm_print_float_info): Update.
8925         * arch-utils.h (default_print_float_info): Update.
8926         * arch-utils.c (default_print_float_info): Update.
8927         * infcmd.c (float_info): Update call.
8928
8929 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8930
8931         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8932         the front of the initialize list.
8933
8934 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8935
8936         * infrun.c (struct inferior_status): Replace fields
8937         selected_frame_address and selected_level with field
8938         selected_frame_id.
8939         (save_inferior_status): Update.  Use get_frame_id.
8940         (struct restore_selected_frame_args): Delete.
8941         (restore_selected_frame): Update.  Use frame_find_by_id.
8942         (restore_inferior_status): Update.
8943
8944         * breakpoint.h (struct breakpoint): Change type of
8945         watchpoint_frame to frame_id.
8946         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8947         call to get_current_frame.
8948         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8949         get_current_frame.
8950         (watchpoint_check): Use frame_find_by_id.
8951
8952         * frame.h (record_selected_frame): Delete declaration.
8953         * stack.c (record_selected_frame): Delete function.
8954         
8955         * frame.h (struct frame_id): Define.
8956         (get_frame_id): Declare.
8957         (frame_find_by_id): Declare.
8958         * frame.c (frame_find_by_id): New function.
8959         (get_frame_id): New function.
8960
8961 2002-06-10  Andrey Volkov <avolkov@transas.com>
8962
8963         * ser-e7kpc.c: Fix duplicated define and call of 
8964         _initialize_ser_e7000pc
8965             
8966 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8967
8968         * signals/signals.c (target_signal_from_host): Fix #ifdef
8969         SIGRTMIN case.
8970         (do_target_signal_to_host): Likewise.
8971
8972 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8973
8974         * mips-tdep.c (mips_find_abi_section): New function.
8975         (mips_gdbarch_init): Call it.
8976
8977 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8978
8979         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8980         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8981         after Andrew's 2002-06-08 gdbarch change.
8982
8983 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8984
8985         * i386-linux-nat.c (suppy_gregset): Don't supply
8986         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8987         register cache.
8988         (fill_gregset): Don't fetch it under the same circumstances.
8989
8990 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8991
8992         * Makefile.in (callback_h): Define.
8993         (remote_sim_h): Update path to remote-sim.h.
8994         (remote-rdp.o): Add $(callback_h).
8995         (remote-sim.o): Use $(callback_h).
8996         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8997         * remote-rdp.c: Include "gdb/callback.h".
8998
8999 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9000
9001         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9002         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9003
9004 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9005
9006         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9007         * rdi-share/serpardr.c: Ditto.
9008         * rdi-share/unixcomm.c: Ditto.
9009         * rdi-share/serdrv.c: Ditto.
9010         * rdi-share/hostchan.h: Ditto.
9011         * rdi-share/hostchan.c: Ditto.
9012         * rdi-share/host.h: Ditto.
9013         * rdi-share/devsw.c: Ditto.
9014
9015         * objfiles.h: Change type of obj_private to void pointer.
9016         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9017         strcmp instead of STREQ, use LONGEST, do not use PTR
9018         * somsolib.c: Ditto.
9019
9020         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9021         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9022         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9023
9024 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9025
9026         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9027         (default_get_saved_register): Delete function.
9028         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9029         generic_unwind_get_saved_register.
9030         * gdbarch.h, gdbarch.c: Re-generate.
9031         
9032 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9033
9034         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9035         generic_func_frame_chain_valid.
9036         * gdbarch.h, gdbarch.c: Re-generate.
9037         * blockframe.c (generic_func_frame_chain_valid): Only check
9038         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9039         passing FP to PC_IN_CALL_DUMMY.
9040         Fix PR gdb/360.
9041
9042 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9043
9044         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9045         (register_gdbarch_data): Initialize init_p.
9046         (gdbarch_data): Initialize data pointer using the init function.
9047         (init_gdbarch_data): Delete function.
9048         (gdbarch_update_p): Update.
9049         (initialize_non_multiarch): Update.
9050         (struct gdbarch): Add field initialized_p.
9051         * gdbarch.h, gdbarch.c: Re-generate.
9052
9053 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9054
9055         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9056         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9057         better do the things actually here.
9058         * x86-64-tdep.c (x86_64_register_name2nr): New.
9059         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9060         (x86_64_gdbarch_init): Respect the above change.
9061         * x86-64-tdep.h (x86_64_register_name2nr)
9062         (x86_64_register_nr2name): Add prototypes.
9063         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9064
9065 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9066
9067         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9068         Delete extra braces and re-indent.
9069         (d10v_store_return_value): Char return values
9070         must be shifted over by one byte in R0.
9071         (d10v_extract_return_value): Delete extra braces, re-indent.
9072
9073 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9074
9075         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9076         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9077         (d10v_integer_to_address): Rewrite.
9078         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9079         the d10v specific functions which take care of converting to the
9080         correct space.
9081
9082 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9083
9084         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9085         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9086
9087 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9088
9089         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9090         includes.
9091         * config/tm-linux.h: Ditto.
9092         * config/alpha/tm-alphalinux.h: Ditto.
9093         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9094         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9095         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9096         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9097         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9098         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9099         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9100         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9101         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9102         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9103         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9104         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9105         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9106         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9107         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9108         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9109         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9110         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9111         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9112         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9113         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9114         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9115         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9116         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9117         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9118         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9119         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9120         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9121         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9122         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9123         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9124         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9125         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9126         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9127         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9128         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9129         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9130
9131 2002-05-04  Aidan Skinner <aidan@velvet.net>
9132
9133         * ada-exp.tab.c: New file
9134         * ada-exp.y: New file
9135         * ada-lang.c: New file
9136         * ada-lang.h: New file
9137         * ada-lex.c: New file
9138         * ada-lex.l: New file
9139         * ada-tasks.c: New file
9140         * ada-typeprint.c: New file
9141         * ada-valprint.c: New file
9142         
9143 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9144
9145         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9146         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9147
9148 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9149
9150         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9151         insetead of ppc-linux-tdep.o.
9152         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9153         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9154
9155 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9156
9157         2002-05-07 Christian Groessler <chris@groessler.org>
9158         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9159         bit register contents for little endian hosts.
9160
9161 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9162
9163         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9164         any maintainer.
9165
9166 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9167
9168         * gdbarch.h: Regenerate.
9169
9170 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9171
9172         * MAINTAINERS: Add everyone to write-after-approval list.
9173
9174 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9175
9176         * stack.c (frame_info): Use frame_register_unwind instead of
9177         saved_regs.  Mention when the SP is on the stack or in a register.
9178
9179         * frame.h (frame_register_unwind_ftype): Define.  Document.
9180         (struct frame_info): Add field register_unwind and
9181         register_unwind_cache.
9182         (frame_register_unwind): Declare.
9183         (generic_unwind_get_saved_register): Declare.
9184
9185         * frame.c (frame_register_unwind): New function.
9186         (generic_unwind_get_saved_register): New function.
9187
9188         * blockframe.c (generic_call_dummy_register_unwind): New function.
9189         (frame_saved_regs_register_unwind): New function.
9190         (set_unwind_by_pc): New function.
9191         (create_new_frame): New function.
9192         (get_prev_frame): New function.
9193
9194 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9195
9196         * a29k-share/: Delete directory.
9197         * remote-vx29k.c: Delete file.
9198
9199 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9200
9201         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9202         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9203
9204 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9205
9206         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9207         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9208         (sparc64nbsd-nat.o)
9209         (sparcnbsd-nat.o)
9210         (sparcnbsd-tdep.o): New dependency lists.
9211         * NEWS: Note new UltraSPARC NetBSD native configuration.
9212         * configure.host (sparc64-*-netbsd*): New host.
9213         * configure.tgt (sparc-*-netbsdelf*)
9214         (sparc-*-netbsd*): Set gdb_target to nbsd.
9215         (sparc64-*-netbsd*): New target.
9216         * sparc64nbsd-nat.c: New file.
9217         * sparcnbsd-nat.c: New file.
9218         * sparcnbsd-tdep.c: New file.
9219         * sparcnbsd-tdep.h: New file.
9220         * config/sparc/nbsd.mt: New file.
9221         * config/sparc/nbsd64.mh: New file.
9222         * config/sparc/nbsd64.mt: New file.
9223         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9224         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9225         (HOST_IPC): Remove.
9226         * config/sparc/nbsdaout.mt: Remove.
9227         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9228         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9229         (HOST_IPC): Remove.
9230         * config/sparc/nbsdelf.mt: Remove.
9231         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9232         sparc-nat.c compatiblity defines.
9233         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9234         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9235         * config/sparc/tm-nbsd64.h: New file.
9236         * config/sparc/tm-nbsdaout.h: Remove.
9237         * config/sparc/xm-nbsd.h: Remove.
9238
9239 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9240
9241         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9242         * sparc-tdep.c: Include osabi.h.
9243         (gdbarch_tdep): Add osabi member.
9244         (_initialize_sparc_tdep): Use gdbarch_register.
9245         (sparc_gdbarch_init): Use generic OS ABI framework.
9246         (sparc_dump_tdep): New function.
9247
9248 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9249
9250         * corefile.c (do_captured_read_memory_integer): Return non-zero
9251         result.
9252         (safe_read_memory_integer): Copy result of memory read when
9253         status is non-zero.  Also, add comments.
9254
9255 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9256
9257         * Makefile.in (ppc_tdep_h): Define.
9258         (ppc-linux-nat.o)
9259         (ppc-linux-tdep.o)
9260         (rs6000-tdep.o): Use $(ppc_tdep_h).
9261         (ppc-sysv-tdep.o)
9262         (ppcnbsd-nat.o)
9263         (ppcnbsd-tdep.o): New dependency lists.
9264         * ppc-tdep.h: Use generic OS ABI framework.
9265         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9266         (ppc_linux_init_abi): New functions.
9267         (ppc_sysv_abi_broken_use_struct_convention)
9268         (ppc_sysv_abi_use_struct_convention)
9269         (ppc_sysv_abi_push_arguments): Move to...
9270         * ppc-sysv-tdep.c: ...here.
9271         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9272         * rs6000-tdep.c (process_note_abi_tag_sections)
9273         (get_elfosabi): Remove.
9274         (rs6000_gdbarch_init): Use generic OS ABI framework.
9275         (rs6000_dump_tdep): New function.
9276         (_initialize_rs6000_tdep): Use gdbarch_register.
9277         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9278         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9279         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9280         of ppc-linux-tdep.o.
9281         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9282         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9283         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9284         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9285         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9286         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9287
9288 2002-05-29  Jim Blandy  <jimb@redhat.com>
9289
9290         * macroscope.c (default_macro_scope): Put `void' in empty argument
9291         list.
9292
9293 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9294
9295         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9296         * arch-utils.c: Include "sim-regno.h".
9297         * gdbarch.sh: Don't include "sim-regno.h".
9298         * gdbarch.h, gdbarch.c: Regenerate.
9299         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9300         here.
9301         * arch-utils.h (legacy_register_sim_regno): To here.
9302         * remote-sim.c (legacy_register_sim_regno): Move function from
9303         here.
9304         * arch-utils.c (legacy_register_sim_regno): To here.
9305
9306 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9307
9308         * sim-regno.h: New file.
9309         * Makefile.in (sim_regno_h): Define.
9310         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9311         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9312         (legacy_register_sim_regno): New function.
9313         (one2one_register_sim_regno): New function.
9314         (gdbsim_fetch_register): Rewrite.
9315         (gdbsim_store_register): Only store a register when
9316         REGISTER_SIM_REGNO is valid.
9317         * d10v-tdep.c: Include "sim-regno.h".
9318         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9319         (d10v_ts3_register_sim_regno): Ditto.
9320         * gdbarch.sh: Include "sim-regno.h".
9321         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9322         * gdbarch.h, gdbarch.c: Regenerate.
9323         * arch-utils.h (default_register_sim_regno): Delete declaration.
9324         * arch-utils.c (default_register_sim_regno): Delete function.
9325
9326 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9327
9328         * ppcnbsd-nat.c: Rewrite.
9329         * ppcnbsd-tdep.c: New file.
9330         * ppcnbsd-tdep.h: New file.
9331         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9332         solib.o, and solib-svr4.o.
9333         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9334         nbsd-tdep.o, and corelow.o.
9335
9336 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9337
9338         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9339         `tr' and `sed'.  Mention that `broken' targets are not expected to
9340         build.
9341
9342 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9343
9344         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9345         Let PC point right after the prologue before looking up symbols.
9346         
9347 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9348
9349         * i386-tdep.c (i386_register_virtual_type): Return 
9350         builtin_type_vec128i for SSE registers.
9351
9352         * gdbtypes.h (builtin_type_vec128i): Declare.
9353
9354         * gdbtypes.c (build_builtin_type_vec128i): New function.
9355         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9356         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9357         (build_gdbtypes): Initialize new builtin vector types.
9358         (_initialize_gdbtypes): Register new vector types with gdbarch.
9359
9360 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9361
9362         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9363         since it has been multi-arch'd.
9364         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9365         Move Alpha and VAX multi-arch news entries to same section
9366         as other multi-arch news.
9367
9368 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9369
9370         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9371         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9372         static.  Rename some register numbers to put them in ns32k-tdep
9373         private namespace.
9374         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9375         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9376         functions.
9377         (_initialize_ns32k_tdep): Use gdbarch_register.
9378         * ns32k-tdep.h: New file.
9379         * ns32knbsd-tdep.c: New file.
9380         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9381         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9382         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9383         REGISTER_BYTES, REGISTER_BYTE): Remove.
9384         * config/ns32k/tm-ns32k.h: New file.
9385         * config/ns32k/tm-umax.h: Remove.
9386
9387 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9388
9389         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9390         ns32k_store_struct_return, ns32k_extract_return_value,
9391         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9392         functions.
9393         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9394         ns32k_saved_pc_after_call.
9395         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9396         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9397         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9398         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9399         ns32k_extract_struct_value_address.
9400
9401 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9402
9403         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9404         ns32k_fix_call_dummy): New.
9405         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9406         ns32k_call_dummy_words.
9407         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9408         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9409         CALL_DUMMY_NARGS): Remove.
9410         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9411
9412 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9413
9414         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9415         ns32k_frame_saved_pc, ns32k_frame_args_address,
9416         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9417         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9418         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9419         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9420         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9421         (BREAKPOINT): Remove..
9422         (FRAME_CHAIN): Define as ns32k_frame_chain.
9423         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9424         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9425         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9426         (FRAME_FIND_SAVED_REGS): Remove.
9427         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9428         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9429         (POP_FRAME): Define as ns32k_pop_frame.
9430
9431 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9432
9433         * ns32k-tdep.c (ns32k_register_byte_32082,
9434         ns32k_register_byte_32382, ns32k_register_raw_size,
9435         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9436         functions.
9437         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9438         ns32k_register_byte_32382.
9439         * config/ns32k/tm-umax.h: Update copyright years.
9440         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9441         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9442         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9443         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9444         (ns32k_get_enter_addr): Fix prototype.
9445
9446 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9447
9448         * ns32k-tdep.c: Update copyright years.
9449         (ns32k_register_name_32082): New function.
9450         (ns32k_register_name_32382): Ditto.
9451         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9452         (REGISTER_NAME): Define as ns32k_register_name_32382.
9453         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9454         (REGISTER_NAME): Define as ns32k_register_name_32082.
9455
9456 2002-05-24  Jim Blandy  <jimb@redhat.com>
9457
9458         * dwarf2read.c (free_line_header): Use xfree, not free.
9459
9460 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9461
9462         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9463         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9464
9465 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9466
9467         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9468
9469 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9470
9471         From Ross Alexander at NEC Europe:
9472         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9473
9474 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9475
9476         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9477         for input, rather than parse_and_eval_address.  
9478
9479 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9480
9481         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9482         * Makefile.in (sim_d10v_h): Update definition.
9483
9484 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9485
9486         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9487         change `2002-05-22 Michael Snyder' below.
9488         (d10v_push_arguments): Ditto.
9489         (d10v_extract_return_value): Ditto.
9490
9491 2002-05-23  Jim Blandy  <jimb@redhat.com>
9492
9493         * macrotab.c (check_for_redefinition): Don't complain if the new
9494         definition is the same as the previous one.  Take more arguments
9495         to allow the comparison.
9496         (macro_define_object, macro_define_function): Pass more arguments
9497         to check_for_redefinition.
9498
9499 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9500
9501         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9502         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9503         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9504         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9505         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9506         Add a temp variable to save a call (and a memory read).
9507         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9508         if possible (so that PC_IN_CALL_DUMMY will work).
9509
9510 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9511
9512         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9513
9514 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9515
9516         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9517         fde->cie_ptr.
9518         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9519         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9520         so that frames of shared libraries are mapped correctly.
9521         (execute_stack_op): Change type of 'result' from ULONGEST to
9522         CORE_ADDR.
9523         
9524 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9525
9526         * config/alpha/tm-nbsd.h: Include solib.h.
9527
9528 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9529
9530         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9531         assumptions about the host's byte order.
9532
9533 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9534
9535         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9536         to dependency list.
9537         * alphanbsd-tdep.c: Include solib-svr4.h.
9538         * shnbsd-tdep.c: Ditto.
9539
9540 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9541
9542         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9543         nbsd-tdep.h to dependency list.
9544         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9545         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9546         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9547         nbsdaout.mh and nbsdelf.mh consistently.
9548         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9549         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9550         nbsdaout.mt and nbsdelf.mh consistently.
9551         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9552         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9553         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9554         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9555         a.out shared library stuff from here...
9556         * config/nm-nbsdaout.h: ...to here.
9557         * config/tm-nbsd.h: Remove.
9558         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9559         * config/arm/nbsd.mh: Remove.
9560         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9561         nbsd-tdep.o.
9562         * config/arm/nbsdaout.mh: New file. 
9563         * config/arm/nbsdelf.mh: New file.
9564         * config/arm/nm-nbsdaout.h: New file.
9565         * config/i386/nbsd.mh: Remove.
9566         * config/i386/nbsd.mt: Remove.
9567         * config/i386/nbsdaout.mh: New file.
9568         * config/i386/nbsdaout.mt: New file.
9569         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9570         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9571         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9572         i386_register_u_addr): Remove.
9573         * config/i386/nm-nbsdaout.h: New file.
9574         * config/i386/nm-nbsdelf.h: Remove.
9575         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9576         (USE_STRUCT_CONVENTION): Remove.
9577         * config/i386/tm-nbsdaout.h: New file.
9578         * config/i386/tm-nbsdelf.h: Remove.
9579         * config/m68k/nbsd.mh: Remove.
9580         * config/m68k/nbsd.mt: Remove.
9581         * config/m68k/nbsdaout.mh: New file.
9582         * config/m68k/nbsdaout.mt: New file. 
9583         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9584         * config/m68k/nm-nbsdaout.h: New file.
9585         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9586         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9587         * config/ns32k/nbsd.mh: Remove.
9588         * config/ns32k/nbsd.mt: Remove. 
9589         * config/ns32k/nbsdaout.mh: New file.
9590         * config/ns32k/nbsdaout.mt: New file.
9591         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9592         * config/ns32k/nm-nbsdaout.h: New file.
9593         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9594         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9595         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9596         (SVR4_SHARED_LIBS): Remove.
9597         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9598         * config/sparc/nbsd.mh: Remove.
9599         * config/sparc/nbsd.mt: Remove.
9600         * config/sparc/nbsdaout.mh: New file.
9601         * config/sparc/nbsdaout.mt: New file.
9602         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9603         * config/sparc/nbsdelf.mt: New file.
9604         * config/sparc/nm-nbsdaout.h: New file.   
9605         * config/sparc/nm-nbsdelf.h: Remove.
9606         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9607         * config/sparc/tm-nbsdaout.h: New file.
9608
9609 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9610
9611         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9612         mipsnbsd-tdep.c
9613         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9614
9615 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9616
9617         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9618         shnbsd-nat.c.
9619         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9620
9621 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9622
9623         * NEWS: Note new MIPS NetBSD native configuration. 
9624         * configure.host (mips*-*-netbsd*): New host. 
9625         * configure.tgt (mips*-*-netbsd*): New target. 
9626         * mipsnbsd-nat.c: New file.
9627         * mipsnbsd-tdep.c: New file.
9628         * mipsnbsd-tdep.h: New file.
9629         * config/mips/nbsd.mh: New file.
9630         * config/mips/nbsd.mt: New file.
9631         * config/mips/nm-nbsd.h: New file.
9632         * config/mips/tm-nbsd.h: New file.
9633
9634 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9635
9636         * Makefile.in (SFILES): Add osabi.c.
9637         (COMMON_OBS): Add osabi.o.
9638         (osabi.o): New dependency list.
9639         * osabi.c: New file.
9640         * osabi.h: New file.
9641         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9642
9643         * Makefile.in (alpha_tdep_h): Define and use instead of
9644         alpha-tdep.h.
9645         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9646         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9647         Remove.
9648         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9649         * alpha-tdep.h: Include osabi.h.
9650         (alpha_abi): Remove.
9651         (gdbarch_tdep): Use generic OS ABI framework.
9652         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9653         gdbarch_register_osabi.
9654         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9655         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9656         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9657
9658         * Makefile.in (sh_tdep_h): Add osabi.h.
9659         * sh-tdep.h (sh_osabi): Remove.
9660         (gdbarch_tdep): Use generic OS ABI framework.
9661         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9662         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9663         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9664         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9665
9666         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9667         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9668         gdbarch_register_osabi.
9669         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9670         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9671         (get_elfosabi): Rename to...
9672         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9673         ABI framework support routines.
9674         (arm_gdbarch_init): Use generic OS ABI framework.
9675         (arm_dump_tdep): Likewise.
9676         (_initialize_arm_tdep): Likewise.
9677         * arm-tdep.h: Include osabi.h.
9678         (arm_abi): Remove.
9679         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9680         osabi member.
9681         (arm_gdbarch_register_os_abi): Remove prototype.
9682         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9683         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9684
9685         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9686         * mips-tdep.c: Include osabi.h.
9687         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9688         OS ABI framework.
9689
9690 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9691
9692         * h8300-tdep.c: Fix formatting.
9693
9694 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9695
9696         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9697         printing vector registers.
9698
9699 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9700
9701         From Fernando Nasser:
9702         * remote.c (remote_async_open_1): Re-throw the exception when the
9703         connection fails.
9704         (remote_cisco_open): Ditto.
9705         (remote_open_1): Ditto.
9706
9707 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9708
9709         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9710         (remote_start_remote): Add uiout parameter.  Pass through to
9711         remote_start_remote_dummy.
9712         (remote_open_1): Use catch_exception instead of catch_errors.
9713         (remote_async_open_1): Ditto.
9714         (remote_cisco_open): Ditto.
9715
9716 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9717
9718         * remote.c (remote_start_remote): Replace PTR with void pointer.
9719         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9720         static.
9721
9722 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9723
9724         * gdb_indent.sh: Allow the script to be run in the sim directory.
9725
9726 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9727
9728         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9729         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9730
9731         * corelow.c (core_open): Only call set_gdbarch_from_file if
9732         exec_bfd is NULL.
9733
9734 2002-05-17  Andrey Volkov <avolkov@transas.com>
9735
9736         * h8300-tdep.c: Add support of EXR register
9737         * config/h8300/tm-h8300.h: Ditto. 
9738         
9739 2002-05-17  Andrey Volkov <avolkov@transas.com>
9740
9741         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9742         
9743 2002-05-17  Andrey Volkov <avolkov@transas.com>
9744
9745         * h8300-tdep.c: Change literal regnums to REGNO.
9746         
9747 2002-05-17  Jim Blandy  <jimb@redhat.com>
9748
9749         * NEWS: Note addition of macro support.
9750
9751         Expand preprocessor macros in C expressions.
9752         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9753         (scan_macro_expansion, scanning_macro_expansion,
9754         finished_macro_expansion): New function declarations.
9755         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9756         variable declarations.
9757         * parser-defs.h (expression_context_pc): New declaration.
9758         * parse.c (expression_context_pc): New variable.
9759         (parse_exp_1): Set expression_context_pc, as well as
9760         expression_context_block.
9761         * c-exp.y (yylex): If we're not already reading the result of a
9762         macro expansion, try to macro-expand the next token.  When we're
9763         done scanning a macro expansion, switch back to the mainline text.
9764         Commas and `if's in a macro's expansion don't terminate the input.
9765         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9766         (macro_original_text, macro_expanded_text,
9767         expression_macro_lookup_func, expression_macro_lookup_baton): New
9768         variables.
9769         (scan_macro_expansion, scanning_macro_expansion,
9770         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9771         c_preprocess_and_parse): New functions.
9772         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9773         c_preprocess_and_parse, instead of c_parse.
9774         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9775         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9776
9777 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9778
9779         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9780         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9781         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9782
9783 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9784
9785         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9786
9787 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9788
9789         * Makefile.in (sh_tdep_h): Define and use.
9790         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9791         register enum): Move to...
9792         * * sh-tdep.h: ...here.
9793         * sh-tdep.c: Include sh-tdep.h.
9794         * sh3-rom.c: Likewise.
9795         * shnbsd-tdep.c: Likewise.
9796
9797 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9798
9799         * arm-tdep.c: Spelling fix in comment.
9800
9801 2002-05-16  Jim Blandy  <jimb@redhat.com>
9802
9803         Add commands for manually expanding macros and showing their
9804         definitions.
9805         * macrocmd.c, macroscope.c, macroscope.h: New files.
9806         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9807         (macroscope_h): New variable.
9808         (HFILES_NO_SRCDIR): Add macroscope.h.
9809         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9810         (macroscope.o, macrocmd.o): New rules.
9811
9812         Teach the Dwarf 2 reader to read macro information.
9813         * dwarf2read.c: #include "macrotab.h".
9814         (dwarf_macinfo_buffer): New variable.
9815         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9816         dwarf_macinfo_size.
9817         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9818         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9819         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9820         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9821         dwarf2_macro_spaces_in_definition): New complaints.
9822         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9823         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9824         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9825         the partial symbol table.
9826         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9827         from what's recorded in the partial symbol table.
9828         (read_file_scope): If the compilation unit has a
9829         `DW_AT_macro_info' attribute, read its macro information.
9830         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9831
9832 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9833
9834         Fix PR gdb/546
9835         * ser-tcp.c: Don't include <netinet/udp.h>.
9836
9837 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9838
9839         * MAINTAINERS: Update my email address.
9840
9841 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9842
9843         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9844         include file of the same name.
9845
9846 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9847
9848         * configure.tgt: Mark v850 as multi-arched.
9849         * config/v850/tm-v850.h: Remove file.
9850         * config/v850/v850.mt: Eliminate TM_FILE.
9851
9852 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9853
9854         * v850-tdep.c: Full multi-arch.
9855         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9856         Define GDB_MULTI_ARCH to 2.
9857
9858 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9859
9860         * p-exp.y (current_type): New static variable.
9861         Carries the type of the expression at the position that is parsed.
9862         (push_current_type, pop_current_type): Two new functions. Used
9863         to store/restore current_type in expression on specific tokens.
9864         (search_field): New static variable. Set to one after parsing a point
9865         as at that point only a FIELDNAME token should be searched.
9866         (FIELDNAME): New token. After a point only a token belonging to 
9867         current_type type definition is allowed.
9868         (all over token rules): reset and change current_type according
9869         to rules.
9870         (exp '[' rule): insert implicit array index field if
9871         exp is a pascal string type.
9872
9873 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9874
9875         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9876         frame info.  Use frame_info's saved_regs instead of matching member
9877         in extra_frame_info throughout.
9878         (v850_frame_init_saved_regs): New function.
9879         (v850_init_extra_frame_info): Move most functionality into
9880         v850_frame_init_saved_regs().
9881         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9882         (v850_frame_find_saved_regs): Remove declaration.
9883         (FRAME_FIND_SAVED_REGS): Remove definition.
9884         (v850_frame_init_saved_regs): Add declaration.
9885         (FRAME_INIT_SAVED_REGS): Add definition.
9886
9887 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9888
9889         * v850-tdep.c: Begin multi-arch'ing v850.
9890         (v850_target_architecture_hook): Remove function.
9891         (v850_gdbarch_init): New function.  Add code previously in
9892         v850_target_architecture_hook().
9893         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9894         Call register_gdbarch_init() instead.
9895
9896 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9897
9898         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9899         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9900         (fixup_class_method_type): Likewise.
9901
9902 2002-05-15  Jim Blandy  <jimb@redhat.com>
9903
9904         Add macro structures to GDB's symbol tables.  Nobody puts anything
9905         in them yet.
9906         * symtab.h (struct symtab): New member: `macro_table'.
9907         * buildsym.h (pending_macros): New global variable.
9908         * buildsym.c: #include "macrotab.h".
9909         (buildsym_init): Initialize `pending_macros'.
9910         (end_symtab): If we found macro information while reading a CU's
9911         debugging info, do build a symtab structure for it.  Make the
9912         symtab point to the macro information, and clear the
9913         `pending_macros' pointer which held it while we were reading the
9914         debug info.
9915         (really_free_pendings): Free any pending macro table.
9916         * objfiles.h (struct objfile): New member: `macro_cache'.
9917         * objfiles.c (allocate_objfile): Set allocate and free functions
9918         for the macro cache's objstack.
9919         (free_objfile): Empty the macro cache's obstack.
9920         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9921         set new allocate and free functions for it.
9922         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9923         free functions for the macro cache's objstack.  (Why is this
9924         function building its own objfile?)
9925         * symmisc.c (print_objfile_statistics): Print statistics on the
9926         macro bcache.
9927         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9928
9929 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9930
9931         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9932         (REGISTER_U_ADDR): Delete definition.
9933         (arm_register_u_addr): Delete declaration.
9934
9935 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9936
9937         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9938         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9939
9940 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9941
9942         * regcache.c (register_valid): Revise comments refering to "Not
9943         available" and "unavailable".
9944         * frame.c (frame_register_read): Ditto.
9945         * findvar.c (value_of_register): Ditto.
9946
9947 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9948
9949         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9950         (remote-sim.o): Update dependencies.
9951         (d10v-tdep.o): Specify dependencies.
9952         (sim_d10v_h): Define.
9953
9954 2002-05-14  Jim Blandy  <jimb@redhat.com>
9955
9956         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9957         * macrotab.c (macro_lookup_inclusion, find_definition,
9958         new_macro_table): Same.
9959         
9960         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9961         not `! strcmp ()'.  This is a dubious improvement.
9962         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9963
9964         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9965         although it's not necessary, to avoid a warning.
9966
9967 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9968
9969         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9970         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9971         TYPE_INSTANCE_FLAGS.
9972         (struct main_type): New.
9973         (struct type): Move most members to struct main_type.  Change
9974         cv_type and as_type to new type_chain member.  Add instance_flags.
9975         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9976         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9977         (finish_cv_type): Remove prototype.
9978         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9979         Set TYPE_CHAIN.
9980         (alloc_type_instance): New function.
9981         (smash_type): New function.
9982         (make_pointer_type, make_reference_type, make_function_type)
9983         (smash_to_member_type, smash_to_method_type): Call smash_type.
9984         (make_qualified_type): New function.
9985         (make_type_with_address_space): Call make_qualified_type.
9986         (make_cv_type): Likewise.
9987         (finish_cv_type): Remove unnecessary function.
9988         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9989         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9990         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9991         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9992         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9993         * hpread.c (hpread_read_struct_type): Likewise.
9994         * stabsread.c (read_struct_type): Likewise.
9995
9996 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9997
9998         * configure.tgt: Add a catch all sh* target, for cases like
9999         sh[2,3,4]-elf and sh-hms.
10000
10001 2002-05-14  Keith Seitz  <keiths@redhat.com>
10002
10003         * event-loop.c (create_file_handler): Don't do anything but
10004         update data when we are given a fd which we are already
10005         monitoring.
10006
10007 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10008
10009         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10010         (update_context): Use __func__ in warnings.
10011         
10012 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10013
10014         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10015         and tcp_close to net_open and net_close.
10016         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10017         using UDP if requested.  Don't try to disable Nagle on UDP
10018         sockets.
10019         * remote.c (remote_serial_open): New function.  Warn about UDP.
10020         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10021
10022 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10023
10024         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10025
10026 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10027
10028         * configure.tgt: Remove sh-hms target.
10029         * MAINTAINERS: Don't list sh-hms as a separate target.
10030
10031 2002-05-13  Jim Blandy  <jimb@redhat.com>
10032
10033         Add first preprocessor macro-expansion files.
10034         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10035         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10036         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10037         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10038         (COMMON_OBS): Add macrotab.o, macroexp.o.
10039         (macroexp.o, macrotab.o): New rules.
10040
10041 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10042
10043         * config/m88k/tm-m88k.h: Update copyright.
10044         (m88k_target_write_pc): Declare
10045         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10046         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10047         (SHIFT_INST_REGS): Update definition.
10048         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10049         using old definition of TARGET_WRITE_PC.
10050         * regcache.c (generic_target_write_pc): Delete code handling
10051         NNPC_REGNUM.
10052         * gdbarch.sh (NNPC_REGNUM): Delete.
10053         * gdbarch.h, gdbarch.c: Regenerate.
10054
10055 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10056
10057         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10058         builtin reg number.
10059
10060 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10061
10062         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10063         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10064         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10065         access macros.
10066         * c-typeprint.c (cp_type_print_method_args): Likewise.
10067         (c_type_print_args): Likewise.
10068         * d10v-tdep.c (d10v_push_arguments): Likewise.
10069         (d10v_extract_return_value): Likewise.
10070         * expprint.c (print_subexp): Likewise.
10071         * gdbtypes.c (lookup_primitive_typename): Likewise.
10072         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10073         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10074         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10075         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10076         (TYPE_VECTOR): Likewise.
10077         * hpread.c (hpread_read_struct_type)
10078         (fix_static_member_physnames, fixup_class_method_type)
10079         (hpread_type_lookup): Likewise.
10080         * mdebugread.c (parse_symbol, parse_type): Likewise.
10081         * p-lang.c (is_pascal_string_type): Likewise.
10082         * valops.c (hand_function_call): Likewise.
10083         * x86-64-tdep.c (classify_argument): Likewise.
10084
10085         * hpread.c (hpread_read_function_type)
10086         (hpread_read_doc_function_type): Call replace_type.
10087         * dstread.c (create_new_type): Delete.
10088         (decode_dst_structure, process_dst_function): Call alloc_type.
10089         Use type access macros.
10090
10091 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10092
10093         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10094         the're not supported by the current architecture.
10095         (i387_fill_fxsave): Likewise.
10096
10097 2002-05-12  Fred Fish  <fnf@redhat.com>
10098
10099         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10100         sect_index_xxx members to index the first slot in section_offsets
10101         if all of the section_offsets are zero.
10102
10103 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10104
10105         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10106         checked in with last change.
10107
10108 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10109
10110         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10111         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10112         config.sub.
10113
10114 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10115
10116         * Makefile.in: Update dependencies.
10117
10118 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10119
10120         * language.c (local_hex_string_custom): Simplify.  Do not depend
10121         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10122
10123         * memattr.c (mem_info_command): Replace calls to
10124         longest_local_hex_string and longest_local_hex_string_custom.
10125         * buildsym.c (make_blockvector): Ditto.
10126         * solib.c (info_sharedlibrary_command): Ditto.
10127         * tracepoint.c (tracepoints_info): Ditto.
10128         * symtab.c (print_msymbol_info): Ditto.
10129
10130         * language.c (local_hex_string): Delete.
10131         (local_hex_string_custom): Delete.
10132         (longest_local_hex_string): Rename to local_hex_string.
10133         (longest_local_hex_string_custom): Rename to
10134         local_hex_string_custom.
10135         * language.h (local_hex_string): Change parameter type to LONGEST.
10136         (local_hex_string_custom): Ditto.
10137         (longest_local_hex_string): Delete declaration.
10138         (longest_local_hex_string_custom): Ditto.
10139
10140         * solib.c: Update copyright.
10141         * memattr.c: Update copyright.
10142         
10143 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10144
10145         * arch-utils.h (legacy_register_to_value): Declare.
10146         (legacy_value_to_register): Declare.
10147         (legacy_convert_register_p): Declare.
10148         * arch-utils.c (legacy_register_to_value): New function.
10149         (legacy_value_to_register): New function.
10150         (legacy_convert_register_p): New function.
10151
10152         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10153         (VALUE_TO_REGISTER): Define.
10154         (CONVERT_REGISTER_P): Define.
10155         * gdbarch.h, gdbarch.c: Regenerate.
10156
10157         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10158         VALUE_TO_REGISTER.
10159         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10160         CONVERT_REGISTER_P.
10161
10162 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10163             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10164
10165         * Makefile.in: Update dependencies for valops.c.
10166         * valops.c: Include "gdb_assert.h".
10167         (typecmp): Skip THIS parameter to methods.
10168         (find_method_list): Remove static_memfuncp argument,
10169         update callers.  Check for stub methods.
10170         (find_value_oload_method_list): Don't set *static_memfuncp.
10171         (find_overload_match): Don't check for stub methods.  Assert
10172         that methods are not stubbed.  Handle static methods.
10173         (value_find_oload_method_list): Remove static_memfuncp argument.
10174         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10175         to the argument list for static stub methods.
10176         * value.h (value_find_oload_method_list): Update prototype.
10177
10178 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10179
10180         * arch-utils.h (generic_register_size): Declare.
10181         (generic_register_raw_size, generic_register_virtual_size): Delete
10182         declarations.
10183         * arch-utils.c (generic_register_raw_size): Delete.
10184         (generic_register_size): New function.
10185         (generic_register_virtual_size): Delete.
10186
10187         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10188         default generic_register_size.
10189         * gdbarch.h, gdbarch.c: Re-generate.
10190         
10191         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10192         register_virtual_size.
10193         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10194         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10195
10196 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10197
10198         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10199         * gdbarch.h, gdbarch.c: Regenerate.
10200         * gnu-v3-abi.c: Update copyright.
10201         (vtable_address_point_offset): Update.
10202         (gnuv3_rtti_type): Update.
10203         (gnuv3_baseclass_offset): Update.
10204         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10205         (init_fetch_link_map_offsets): Update.
10206         * remote.c (get_remote_state): Update.
10207         
10208 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10209
10210         * TODO: Remove value_headof/value_from_vtable_info comment.
10211         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10212         * values.c (value_headof, value_from_vtable_info): Delete.
10213         * value.h (value_from_vtable_info): Delete prototype.
10214
10215 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10216
10217         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10218         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10219         $(gdb_regex_h).
10220         (gdb_assert_h): Define.
10221         (gdb_wait_h): Define.
10222         (gdb_regex_h): Define.
10223
10224 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10225
10226         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10227         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10228
10229 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10230
10231         * nbsd-tdep.c: Fix comment.
10232
10233 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10234
10235         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10236         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10237         (nbsd-tdep.o): New dependency list.
10238         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10239         nbsd-tdep.h.
10240         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10241         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10242         * nbsd-tdep.c: New file.
10243         * nbsd-tdep.h: New file.
10244         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10245         nbsd-tdep.h.
10246         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10247         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10248         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10249         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10250
10251 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10252
10253         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10254         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10255         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10256         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10257         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10258         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10259
10260 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10261
10262         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10263         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10264         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10265         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10266         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10267         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10268         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10269
10270 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10271
10272         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10273         fetch_elfcore_registers to...
10274         * i386nbsd-tdep.c: ...here.
10275         (i386nbsd_use_struct_convention): Rename to...
10276         (i386nbsd_aout_use_struct_convention): ...this.
10277         (i386nbsd_supply_reg): New function.
10278         (i386nbsd_fill_reg): New function.
10279         (fetch_core_registers): Use i386nbsd_supply_reg.
10280         (fetch_elfcore_registers): Likewise.
10281         (_initialize_i386nbsd_tdep): New function.
10282         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10283         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10284         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10285         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10286         (i386nbsd_aout_use_struct_convention): ...this.
10287
10288 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10289
10290         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10291         (store_inferior_registers): Use shnbsd_fill_reg.
10292         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10293         sh_nbsd_supply_register): Collapse into...
10294         (shnbsd_supply_reg): ...this.
10295         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10296         (shnbsd_fill_reg): ...this.
10297         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10298         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10299         (fetch_core_registers): Use shnbsd_supply_reg.
10300         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10301         (sh_nbsd_core_fns): Rename to...
10302         (shnbsd_core_fns): ...this.
10303         (sh_nbsd_elfcore_fns): Rename to...
10304         (shnbsd_elfcore_fns): ...this.
10305         (sh_nbsd_init_abi): Rename to...
10306         (shnbsd_init_abi): ...this.
10307         (_initialize_sh_nbsd_tdep): Rename to...
10308         (_initialize_shnbsd_tdep): ...this.
10309         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10310         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10311         sh_nbsd_fill_register): Remove prototypes.
10312         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10313
10314 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10315
10316         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10317         (i387-nat.o): Delete dependency list.
10318         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10319         (x86-64-linux-nat.o): Likewise.
10320         * i387-nat.c: Delete file, moving contents to...
10321         * i387-tdep.c: ...here.
10322         * i387-nat.h: Rename...
10323         * i387-tdep.h: ...to this.
10324         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10325         * i386-linux-nat.c: Likewise.
10326         * i386bsd-nat.c: Likewise.
10327         * i386gnu-nat.c: Likewise.
10328         * i386nbsd-nat.c: Likewise.
10329         * i386v4-nat.c: Likewise.
10330         * x86-64-linux-nat.c: Likewise.
10331         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10332         * config/i386/go32.mh (NATDEPFILES): Likewise.
10333         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10334         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10335         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10336         * config/i386/linux.mh (NATDEPFILES): Likewise.
10337         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10338         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10339         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10340         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10341
10342 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10343
10344         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10345         (alphanbsd-nat.o): Remove dependency list.
10346         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10347         * alphanbsd-nat.c: Delete.  Contents moved to...
10348         * alphanbsd-tdep.c: ...here.
10349         (_initialize_alphanbsd_tdep): Register core functions.
10350         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10351
10352 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10353
10354         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10355         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10356         (alphanbsd-nat.o): Likewise.
10357         (alphabsd-tdep.o): New dependency list.
10358         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10359         (fill_gregset): Use alphabsd_fill_reg.
10360         (supply_fpregset): Use alphabsd_supply_fpreg.
10361         (fill_fpregset): Use alphabsd_fill_fpreg.
10362         (fetch_inferior_registers): Use struct reg and struct fpreg
10363         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10364         and alphabsd_supply_fpreg.
10365         (store_inferior_registers): Use struct reg and struct fpreg
10366         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10367         and alphabsd_fill_fpreg.
10368         * alphabsd-tdep.c: New file.
10369         * alphabsd-tdep.h: New file.
10370         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10371         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10372         alphabsd_supply_fpreg.
10373         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10374         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10375
10376 2002-05-11  Eric Christopher  <echristo@redhat.com>
10377
10378         * mips-tdep.c (mips_double_register_type): Fix thinko.
10379         (mips_single_register_type): Ditto.
10380         * MAINTAINERS: Add self.
10381
10382 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10383
10384         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10385         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10386         right thing on architectures with different endianness and/or
10387         integer sizes.
10388
10389 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10390
10391         From Christian Limpach <chris@Pin.LU>
10392         * configure.in: Change sed expression which comments out
10393         NATDEPFILES to also comment out continuation lines.
10394         * configure: Regenerate.
10395
10396 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10397
10398         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10399         big patch.
10400
10401 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10402
10403         * sh-tdep.c: Include correct file.
10404
10405 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10406
10407         New support for sh64-elf (sh5) target.
10408
10409         * configure.tgt: For sh64-elf target, default to sh-elf.
10410
10411         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10412         (struct gdbarch_tdep): Add new fields for new registers and ABI
10413         info.
10414
10415         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10416         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10417         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10418         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10419         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10420         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10421         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10422         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10423         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10424         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10425         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10426         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10427         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10428         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10429         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10430         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10431         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10432         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10433         sign_extend, sh64_nofp_frame_init_saved_regs,
10434         sh64_init_extra_frame_info, sh64_get_saved_register,
10435         sh64_extract_struct_value_address, sh64_pop_frame,
10436         sh64_push_arguments, sh64_extract_return_value,
10437         sh64_store_return_value, sh64_show_media_regs,
10438         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10439         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10440         sh_sh64_register_virtual_type,
10441         sh_sh64_register_convert_to_virtual,
10442         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10443         sh64_register_read, sh64_pseudo_register_write,
10444         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10445         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10446         sh64_do_pseudo_register, sh_compact_do_registers_info,
10447         sh64_do_registers_info, sh_gdbarch_init): New functions.
10448
10449 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10450
10451         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10452
10453 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10454
10455         * linespec.c (decode_line_1): Check for a double quote after
10456         a filename correctly.
10457
10458 2002-05-10  Jim Blandy  <jimb@redhat.com>
10459
10460         Properly track the size of the current objfile's .debug_line section.
10461         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10462         (DWARF_LINE_SIZE): New macro.
10463         (dwarf2_build_psymtabs_hard): Record the line section's size in
10464         the partial symbol table.
10465         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10466         symbol table.
10467
10468 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10469
10470         * ia64-tdep.c: Handle breakpoints on L instruction type
10471         in MLX instruction bundle by moving the breakpoint to
10472         the third slot (X instruction type) as L holds only data.
10473
10474 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10475
10476         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10477         (process_one_symbol): Complain about discarding local symbols
10478         due to a misplaced N_LBRAC entry.
10479
10480 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10481
10482         From Daniel Berlin <dan@cgsoftware.com>
10483         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10484         decrease the depth we are at, in the case of templates.
10485
10486 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10487
10488         * mips-tdep.c (mips_float_register_type): New function.
10489         (mips_double_register_type): New function.
10490         (mips_print_register): Use them.
10491         (do_fp_register_row): Likewise.
10492
10493 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10494
10495         * signals/signals.c (signals): Remove conditional compilation around
10496         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10497         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10498
10499 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10500
10501         * remote-rdp.c (remote_rdp_can_run): Remove.
10502
10503 2002-05-09  Tom Tromey  <tromey@redhat.com>
10504
10505         * jv-valprint.c (java_val_print): Handle `char' as a special case
10506         of TYPE_CODE_INT.
10507
10508 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10509
10510         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10511         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10512         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10513         str r(0123),[sp,#nn].
10514         (arm_skip_prologue): Ditto.  Also make disassembly
10515         order-independent by placing it in a loop.
10516
10517 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10518
10519         * stabsread.c (read_type): Add recognition for new attribute:
10520         "@V;" means that an array type is actually a vector.
10521         This is analogous to the vector flag that's been added to dwarf2.
10522
10523 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10524
10525         * i386-tdep.h (i386_abi): New enum.
10526         (struct gdbarch_tdep): Replace os_ident member with abi.
10527         (i386_gdbarch_register_os_abi): New prototype.
10528         * i386-tdep.c (i386_abi_names): New array.
10529         (process_note_abi_tag_sections): Removed.
10530         (process_note_sections): New function.
10531         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10532         (struct i386_abi_handler): New struct.
10533         (i386_abi_handler_list): New variable.
10534         (i386_gdbarch_register_os_abi): New function.
10535         (i386_gdbarch_init): Adapt for the changes given above.
10536
10537 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * gregset.h: Say "GNU/Linux".
10540
10541 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10542
10543         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10544         (build_gdbtypes): Build builtin_type_v2_float.
10545         (_initialize_gdbtypes): Register new builtin type.
10546
10547 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10548
10549         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10550         (clear_gdbarch_swap): New function.
10551         (initialize_non_multiarch): Call.
10552         (gdbarch_update_p): Before calling init(), swap out and clear the
10553         existing architecture.
10554         * gdbarch.c: Regenerate.
10555
10556 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10557
10558         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10559         alphanbsd-tdep.c.
10560
10561 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10562
10563         * sh-nbsd-nat.c: Rename to...
10564         * shnbsd-nat.c: ...this.
10565         * sh-nbsd-tdep.c: Rename to...
10566         * shnbsd-tdep.c: ...this.
10567         * sh-nbsd-tdep.h: Rename to...
10568         * shnbsd-tdep.h: ...this.
10569         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10570         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10571
10572 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10573
10574         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10575         concatenation for command help messages.
10576
10577 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10578
10579         * NEWS: Note new sh*-*-netbsdelf* configuration.
10580         * configure.host: Set gdb_host_cpu to sh for all sh*.
10581         (sh*-*-netbsdelf*): New host.
10582         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10583         (sh*-*-netbsdelf*): New target.
10584         * sh-nbsd-nat.c: New file.
10585         * sh-nbsd-tdep.c: New file.
10586         * sh-nbsd-tdep.h: New file.
10587         * config/sh/nbsd.mh: New file.
10588         * config/sh/nbsd.mt: New file.
10589         * config/sh/nm-nbsd.h: New file.
10590         * config/sh/tm-nbsd.h: New file.
10591
10592 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10593
10594         * sh-tdep.c (sh_osabi_names): Declare.
10595         (process_note_abi_tag_sections): New function.
10596         (get_elfosabi): Ditto.
10597         (sh_gdbarch_register_os_abi): Ditto.
10598         (sh_dump_tdep): Ditto.
10599         _initialize_sh_tdep): Use gdbarch_register to register
10600         sh_gdbarch_init and sh_dump_tdep.
10601         * config/sh/tm-sh.h (sh_osabi): Declare.
10602         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10603
10604 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10605
10606         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10607         (thumb_scan_prologue): Ditto.
10608         (arm_find_callers_reg): Ditto.
10609         (arm_frame_chain): Ditto.
10610         (arm_init_extra_frame_info): Ditto.
10611         (arm_frame_saved_pc): Ditto.
10612         (arm_pop_frame): Ditto.
10613         (arm_push_return_address): New function.
10614         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10615         call_dummy_location, call_dummy_breakpoint_offset_p,
10616         call_dummy_breakpoint_offset, call_dummy_p,
10617         call_dummy_stack_adjust_p, call_dummy_words,
10618         sizeof_call_dummy_words, call_dummy_start_offset,
10619         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10620         call_dummy_address, push_return_address and push_dummy_frame for
10621         generic dummy frames.
10622
10623 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10624
10625         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10626         size computation for alloca.
10627         (sh_fp_frame_init_saved_regs): Likewise.
10628
10629 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10630
10631         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10632         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10633         * arm-tdep.c (arm_store_return_value): Use them.
10634         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10635         * remote-rdp.c (remote_rdp_fetch_register): Use
10636         ARM_MAX_REGISTER_RAW_SIZE.
10637         (remote_rdp_store_register): Likewise.
10638
10639 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10640
10641         * dwarf2cfi.c: Code cleanup, removed unused variables,
10642         added default labels to switch {} statements.
10643         * x86-64-tdep.c: Ditto.
10644         * x86-64-linux-nat.c: Ditto.
10645
10646 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10647
10648         * solib.h: Protect against multiple inclusion.
10649
10650 2002-05-06  Jim Blandy  <jimb@redhat.com>
10651
10652         Add first preprocessor macro-expansion files.
10653         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10654         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10655         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10656         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10657         (COMMON_OBS): Add macrotab.o, macroexp.o.
10658         (macroexp.o, macrotab.o): New rules.
10659
10660         Separate the job of reading the line number info statement program
10661         header (...expialidocious) out into its own function.
10662         * dwarf2read.c (struct line_head, struct filenames, struct
10663         directories): Replace with...
10664         (struct line_header): New structure, containing the full
10665         contents of the statement program header, including the
10666         include directory and file name tables.
10667         (read_file_scope): If we have line number info, instead of just
10668         calling dwarf_decode_lines to do all the work, call
10669         dwarf_decode_line_header first to get a `struct line_header'
10670         containing the data in the statement program header, and then
10671         pass that to dwarf_decode_lines, which will pick up where that
10672         left off.  Be sure to clean up the `struct line_header' object.
10673         (dwarf_decode_line_header, free_line_header, add_include_dir,
10674         add_file_name): New functions.
10675         (dwarf_decode_lines): Move all the code to read the statement
10676         program header into dwarf_decode_line_header.  Take the line
10677         header it built as the first argument, instead of the offset to
10678         the compilation unit's line number info.  Use the new `struct
10679         line_header' type instead of the old structures.  No need to do
10680         cleanups here now, since we don't allocate anything.
10681         (dwarf2_statement_list_fits_in_line_number_section,
10682         dwarf2_line_header_too_long): New complaints.
10683
10684 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10685
10686         * gdbtypes.c (init_vector_type): New function.
10687         (build_builtin_type_vec128): Simplify the representation of SIMD
10688         registers.
10689         (build_gdbtypes): Initialize new builtin vector types.
10690         (_initialize_gdbtypes): Register new vector types with gdbarch.
10691         (builtin_type_v4_float, builtin_type_v4_int32,
10692         builtin_type_v8_int16, builtin_type_v16_int8,
10693         builtin_type_v2_int32, builtin_type_v4_int16,
10694         builtin_type_v8_int8): New (renamed) SIMD types.
10695
10696 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10697
10698         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10699         (i387_fill_fxsave): Likewise.
10700
10701 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10702
10703         * alpha-tdep.c (alpha_extract_return_value): Don't use
10704         non-constant array size in prototype.
10705
10706 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10707
10708         From Brian Taylor <briant at model dot com>:
10709         * ui-out.c (ui_out_field_core_addr): Use the function
10710         longest_local_hex_string_custom'to format addresses > 32 bits
10711         wide.
10712
10713         * ui-out.c (ui_out_field_core_addr): Update comment.
10714
10715 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10716
10717         * stack.c (select_and_print_frame): Make static.  Delete the
10718         parameter `level'.
10719         (func_command): Update call.
10720         (select_frame_command): Delete code computing the frame level.
10721         * frame.h (select_and_print_frame): Delete declaration.
10722
10723 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10724
10725         * sparc-tdep.c (sparc_get_saved_register): Comment why
10726         get_prev_frame call is safe.
10727
10728 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10729
10730         * frame.h (select_frame): Delete level parameter.
10731         * stack.c (select_frame): Update.  Use frame_relative_level to
10732         obtain the frame's level.
10733         (select_and_print_frame): Update call.
10734         (select_frame_command): Ditto.
10735         (up_silently_base): Ditto.
10736         (down_silently_base): Ditto.
10737         * ocd.c (ocd_start_remote): Ditto.
10738         * remote-rdp.c (remote_rdp_open): Ditto.
10739         * remote-mips.c (mips_initialize): Ditto.
10740         (common_open): Ditto.
10741         * remote-e7000.c (e7000_start_remote): Ditto.
10742         * m3-nat.c (select_thread): Ditto.
10743         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10744         (child_get_current_exception_event): Ditto.
10745         * varobj.c (varobj_create): Ditto.
10746         (varobj_update): Ditto.
10747         (c_value_of_root): Ditto.
10748         * tracepoint.c (finish_tfind_command): Ditto.
10749         * corelow.c (core_open): Ditto.
10750         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10751         * thread.c (info_threads_command): Ditto.
10752         (switch_to_thread): Ditto.
10753         * infrun.c (normal_stop): Ditto.
10754         (restore_selected_frame): Ditto.
10755         (restore_inferior_status): Ditto.
10756         * breakpoint.c (insert_breakpoints): Ditto.
10757         (watchpoint_check): Ditto.
10758         (bpstat_stop_status): Ditto.
10759         (do_enable_breakpoint): Ditto.
10760         * blockframe.c (flush_cached_frames): Ditto.
10761         (reinit_frame_cache): Ditto.
10762
10763 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10764
10765         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10766         maintainer.
10767
10768 2002-05-04  Jim Blandy  <jimb@redhat.com>
10769
10770         * gdbtypes.c (replace_type): Doc fix.
10771
10772 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10773
10774         * valprint.c (strcat_longest): Delete commented out function.
10775         Update copyright.
10776
10777 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10778
10779         * MAINTAINERS: Mark a29k as deleted.
10780         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10781         Move new configurations to the top.
10782         * configure.tgt: Remove a29k.
10783         * config/a29k/tm-vx29k.h: Delete.
10784         * config/a29k/vx29k.mt: Delete.
10785         * config/a29k/tm-a29k.h: Delete.
10786         * config/a29k/a29k-udi.mt: Delete.
10787         * config/a29k/a29k.mt: Delete.
10788         * a29k-tdep.c: Delete.
10789         * remote-udi.c: Delete.
10790         * remote-mm.c: Delete.
10791         * remote-eb.c: Delete.
10792         * remote-adapt.c: Delete.
10793         * Makefile.in: Remove obsolete code.
10794         * config/s390/s390x.mt: Ditto.
10795         * config/s390/s390.mt: Ditto.
10796         * config/sparc/sparclynx.mh: Ditto.
10797         * config/sparc/linux.mh: Ditto.
10798         * config/pa/hppaosf.mh: Ditto.
10799         * config/pa/hppabsd.mh: Ditto.
10800         * config/ns32k/nbsd.mt: Ditto.
10801         * config/mips/vr5000.mt: Ditto.
10802         * config/m68k/sun3os4.mh: Ditto.
10803         * config/m68k/nbsd.mt: Ditto.
10804         * config/m68k/m68klynx.mh: Ditto.
10805         * config/m32r/m32r.mt: Ditto.
10806         * config/i386/x86-64linux.mt: Ditto.
10807         * config/i386/nbsdelf.mt: Ditto.
10808         * config/i386/nbsd.mt: Ditto.
10809         * config/i386/i386lynx.mh: Ditto.
10810
10811 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10812
10813         * target.c (debug_print_register): New function.  Handle oversize
10814         registers.
10815         (debug_to_fetch_registers): Call.
10816         (debug_to_store_registers): Call.
10817
10818 2002-05-03  Jim Blandy  <jimb@redhat.com>
10819
10820         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10821         (read_type): Doc fix.
10822         * gdbtypes.c (replace_type): Doc fix.
10823
10824         * stabsread.c (multiply_defined_struct): New complaint.
10825         (read_struct_type): If the type we were passed isn't empty, or
10826         incomplete, don't read the new struct type into it; complain,
10827         and return the original type unchanged.  Take a new `type_code'
10828         argument, which is the type code for the new type.
10829         (read_type): Rather than storing the type's type code here, pass
10830         it as an argument to read_struct_type, and let that take care of
10831         storing it.  That way, we don't overwrite the original type code,
10832         so read_struct_type can use it to decide whether we're overwriting
10833         something we shouldn't.
10834         (complain_about_struct_wipeout): New function.
10835
10836 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10837
10838         * gdbarch.sh: Assert that gdbarch is non-NULL.
10839         * gdbarch.c: Regenerate.
10840
10841 2002-05-03  Jason Merrill  <jason@redhat.com>
10842
10843         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10844         and return NULL.
10845
10846 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10847
10848         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10849         (x86_64_dwarf2gdb_regno_map_length),
10850         (x86_64_dwarf2_reg_to_regnum): Added.
10851         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10852         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10853         (_initialize_x86_64_tdep): Synced with the change above.
10854         (x86_64_skip_prologue): Reformulated message.
10855
10856 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10857
10858         * f-exp.y: Also use new prev_lexptr variable
10859         to improve error reporting. Based on Michael Snyder
10860         2002-04-24 dated patch to c-exp.y.
10861         * jv-exp.y: Likewise.
10862         * m2-exp.y: Likewise.
10863
10864 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10865
10866         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10867         we are dealing with vectors.
10868
10869 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10870
10871         * config/m68k/tm-nbsd.h: Obvious fix,
10872         correct machine name.
10873
10874 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10875
10876         * p-typeprint.c (pascal_type_print_base): Add support
10877         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10878
10879 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10880
10881         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10882         for fondamental pascal 'char' type.
10883
10884 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10885
10886         * p-lang.h (is_pascal_string_type): Declaration changed,
10887         new sixth argument of type char ** added.
10888         * p-lang.c (is_pascal_string_type): Implementation
10889         changed. Args length_pos, length_size, string_pos, char_size
10890         can now be NULL. New argument arrayname set to the field
10891         name of the char array. Return value set to char array
10892         field index plus one.
10893         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10894         is_pascal_string_type function.
10895
10896 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10897
10898         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10899         <cagney@redhat.com> change.
10900         * gdbarch.c: Regenerate.
10901
10902 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10903
10904         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10905         before probing for a new one.  Detect errorenous gdbarch_init
10906         functions.
10907         * gdbarch.c: Regenerate.
10908
10909 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10910
10911         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10912         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10913         * config/v850/tm-v850.h: Ditto.  Update copyright.
10914
10915 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10916
10917         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10918         current_gdbarch.
10919
10920 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10921
10922         * arm-tdep.c: Whitespace clean-ups.
10923         (arm_skip_prologue): Fix thinko; two lines
10924         should have been removed as part of 4/24 change.
10925
10926 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10927
10928         * rs6000-tdep.c: Added comment describing how fpscr register
10929         numbers were chosen.
10930
10931 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10932
10933         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10934
10935 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10936
10937         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10938         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10939         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10940
10941 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10942
10943         From Louis Hamilton <hamilton@redhat.com>:
10944         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10945         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10946         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10947         not bfd-private xcoff data, to determine wordsize.
10948         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10949
10950 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10951
10952         GDB 5.2 released from 5.2 branch.
10953
10954 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10955
10956         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10957         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10958         (x86_64_register_info_table): Added comments with register numbers.
10959
10960 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10961
10962         * rs6000-tdep.c (rs6000_extract_return_value,
10963         rs6000_store_return_value): Handle returning vectors.
10964         (rs6000_gdbarch_init): Use
10965         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10966         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10967         New function.
10968         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10969         vectors.
10970         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10971         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10972
10973 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10974
10975         * hpread.c (hpread_psymtab_to_symtab_1,
10976         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10977         with fprintf_unfiltered (gdb_stderr,...).
10978
10979 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10980
10981         * remote-array.c (printf_monitor, write_monitor,
10982         array_insert_breakpoint, array_remove_breakpoint ):
10983         Replace fprintf (stderr,...
10984         with fprintf_unfiltered (gdb_stderr,....
10985         * remote-es.c: Likewise.
10986         * remote-os9k.c: Likewise.
10987         * remote-st.c: Likewise.
10988
10989 2002-04-28  Andreas Schwab  <schwab@suse.de>
10990
10991         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10992         linux-proc.o and gcore.o.
10993
10994 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10995
10996         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10997         code without frame pointers.
10998
10999 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11000
11001         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11002         ON_STACK is needed.
11003
11004 2002-04-26  Ben Elliston  <bje@redhat.com>
11005
11006         * target.c (do_xfer_memory): Correct reference to the new option
11007         "trust-readonly-sections".
11008
11009 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11010
11011         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11012         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11013         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11014         vectors.
11015         (read_array_type): Record the fact that this array type is really a
11016         vector (i.e. are passed in by value).
11017
11018 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11019
11020         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11021         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11022         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11023         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11024         * alpha-linux-tdep.c: Include frame.h.
11025         (alpha_linux_sigcontext_addr): New function.
11026         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11027         alpha_linux_sigcontext_addr.
11028         * alpha-osf1-tdep.c: Include gdbcore.h.
11029         (alpha_osf1_sigcontext_addr): New function.
11030         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11031         alpha_osf1_sigcontext_addr.
11032         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11033         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11034
11035 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11036
11037         * stack.c (selected_frame_level):
11038         (select_frame): Do not set selected_frame_level.
11039         * frame.h (selected_frame_level): Delete declaration.
11040
11041 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11042
11043         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11044         convert_from_func_ptr-addr when AIX / PowerOpen.
11045
11046 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11047
11048         * valops.c (hand_function_call): Call
11049         generic_save_call_dummy_addr.
11050         * frame.h (generic_save_call_dummy_addr): Declare.
11051         * blockframe.c (struct dummy_frame): Add fields call_lo and
11052         call_hi.
11053         (generic_find_dummy_frame): Check for PC in range call_lo to
11054         call_hi instead of entry_point_address.
11055         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11056         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11057         (generic_save_call_dummy_addr): New function.
11058
11059 2002-04-24  David S. Miller  <davem@redhat.com>
11060
11061         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11062         sparc_skip_prologue.
11063         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11064         information to find prologue when possible.
11065         (sparc_prologue_frameless_p): Call examine_prologue directly.
11066         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11067         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11068         second argument.
11069         (SKIP_PROLOGUE): Likewise.
11070
11071 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11072
11073         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11074         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11075         indicate that the condition it was testing is always true.
11076         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11077         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11078         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11079
11080 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11081
11082         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11083         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11084         tdep->jb_pc and tdep->jb_elt_size.
11085         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11086         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11087         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11088         * alpha-nat.c (get_longjmp_target): Remove.
11089         (JB_ELEMENT_SIZE): Ditto.
11090         (JB_PC): Ditto.
11091         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11092         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11093         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11094         to alpha_get_longjmp_target.
11095         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11096         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11097         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11098
11099 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11100
11101         * README: Update to GDB 5.2.
11102
11103 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11104
11105         * gdbarch.sh (LC_ALL): Set to `c'.
11106
11107 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11108
11109         * avr-tdep.c: Ran through gdb_indent.sh.
11110
11111 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11112
11113         * MAINTAINERS: Add myself as AVR maintainer.
11114         * NEWS: Note new target avr.
11115
11116 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11117
11118         * Makefile.in: Add support for AVR target.
11119         * configure.tgt: Add support for AVR target.
11120         * avr-tdep.c: New file
11121         * config/avr/avr.mt: New file.
11122
11123 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11124
11125         * MAINTAINERS: Add myself to write-after-approval.
11126
11127 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11128
11129         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11130         with fprintf_unfiltered (gdb_stderr,....
11131
11132 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11133
11134         Fix PR gdb/508.
11135         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11136
11137 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11138
11139         * p-exp.y: Also use new prev_lexptr variable
11140         to improve error reporting. Based on Michael Snyder
11141         2002-04-24 dated patch to c-exp.y.
11142
11143 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11144
11145         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11146         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11147         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11148         to 0.
11149         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11150         and struct value.
11151         (FUNCTION_START_OFFSET): Remove.
11152         (BREAKPOINT): Ditto.
11153
11154 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11155
11156         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11157         * NEWS: Ditto.
11158
11159 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11160
11161         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11162         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11163         alpha_linux_pc_in_sigtramp.
11164         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11165         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11166         alpha_osf1_pc_in_sigtramp.
11167         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11168         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11169         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11170         alphafbsd_pc_in_sigtramp.
11171         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11172         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11173         alphanbsd_pc_in_sigtramp.
11174         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11175         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11176
11177 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11178
11179         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11180
11181 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11182
11183         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11184         alphanbsd-tdep.c.
11185         (alphanbsd-nat.o): New dependency list.
11186         (alphanbsd-tdep.o): Ditto.
11187         * NEWS: Note new native NetBSD/alpha configuration.
11188         * alphanbsd-nat.c: New file.
11189         * alphanbsd-tdep.c: Ditto.
11190         * configure.host (alpha*-*-netbsd*): New host.
11191         * configure.tgt (alpha*-*-netbsd*): New target.
11192         * config/alpha/nbsd.mh: New file.
11193         * config/alpha/nbsd.mt: Ditto.
11194         * config/alpha/nm-nbsd.h: Ditto.
11195         * config/alpha/tm-nbsd.h: Ditto.
11196
11197 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11198
11199         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11200         (alpha-osf1-tdep.o): New dependency list.
11201         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11202         and skip_sigtramp_frame members.
11203         * alpha-linux-tdep.c: Include gdbcore.h.
11204         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11205         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11206         * alpha-osf1-tdep.c: New file.
11207         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11208         alpha-osf1-dep.c.
11209         (alpha_frame_past_sigtramp_frame): New function.
11210         (alpha_dynamic_sigtramp_offset): Ditto.
11211         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11212         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11213         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11214         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11215         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11216         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11217         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11218         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11219         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11220         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11221         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11222         to find_solib_trampoline_target.
11223         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11224         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11225         (SKIP_TRAMPOLINE_CODE): Remove.
11226         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11227         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11228         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11229         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11230         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11231         (PROC_SIGTRAMP_MAGIC): Ditto.
11232         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11233         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11234         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11235         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11236         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11237
11238 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11239
11240         * NEWS: Note that Alpha targets are now multi-arch.
11241
11242 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11243
11244         * parser-defs.h (prev_lexptr): New external variable.
11245         * parse.c (parse_exp_1): Set prev_lexptr to null before
11246         calling the language-specific parser.
11247         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11248         (yyerror): Use prev_lexptr in error reporting.
11249
11250 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11251
11252         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11253         * gregset.h: If FILL_FPXREGSET is defined, provide
11254         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11255         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11256         is defined, call fill_fpxregset.
11257
11258 2002-04-24  Roland McGrath  <roland@frob.com>
11259
11260         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11261         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11262         (supply_gregset, supply_fpregset): New functions.
11263
11264         * gnu-nat.c (gnu_find_memory_regions): New function.
11265         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11266         (gnu_xfer_memory): Add a cast.
11267
11268 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11269
11270         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11271         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11272         of argument regs ("str r(0123), [r11, #-nn"]).
11273         (arm_skip_prologue): Better handling for frameless functions.
11274         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11275         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11276
11277 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11278
11279         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11280         NUM_PSEUDO_REGS can be used.
11281
11282 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11283
11284         * arch-utils.h: Update copyright.
11285
11286         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11287         * gdbarch.h, gdbarch.c: Re-generate.
11288
11289         * inferior.h (IN_SIGTRAMP): Delete definition.
11290         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11291         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11292
11293         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11294         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11295         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11296         (find_proc_framesize): Ditto.
11297         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11298         (alpha_init_extra_frame_info): Ditto.
11299         * infrun.c (handle_inferior_event): Ditto.
11300         (handle_inferior_event): Ditto.
11301         (check_sigtramp2): Ditto.
11302         * blockframe.c (create_new_frame): Ditto.
11303         (get_prev_frame): Ditto.
11304         * ppc-linux-tdep.c: Update comments.
11305         * i386-linux-tdep.c: Update comments.
11306         * breakpoint.c (bpstat_what): Update comment.
11307
11308 2002-04-24  David S. Miller  <davem@redhat.com>
11309
11310         * i960-tdep.c (register_in_window_p): New function.
11311         (i960_find_saved_register): Use it instead of
11312         REGISTER_IN_WINDOW_P.
11313         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11314
11315         * symtab.h (find_stab_function_addr): Kill extern.
11316         * minsyms.c (find_stab_function_addr): Remove from here...
11317         * dbxread.c: ... to here, and mark it static.
11318
11319 2002-04-20  David S. Miller  <davem@redhat.com>
11320
11321         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11322         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11323
11324 2002-04-21  David S. Miller  <davem@redhat.com>
11325
11326         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11327         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11328         (vx_write_register): Likewise.
11329
11330 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11331
11332         * source.c (is_regular_file): New function.
11333         (openp): Check wether file to open is a regular file
11334         to avoid opening directories.
11335
11336 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11337
11338         * findvar.c (extract_signed_integer): Cast printf argument
11339         to suppress format warning.
11340         (extract_unsigned_integer): Likewise.
11341         * infcmd.c (registers_info): Likewise.
11342         * top.c (get_prompt_1): Likewise.
11343         * valops.c (value_assign): Likewise.
11344         * valprint.c (print_decimal): Likewise.
11345
11346 2002-04-22  H.J. Lu  (hjl@gnu.org)
11347
11348         * c-exp.y (typebase): Support
11349
11350         [long|long long|short] [signed|unsigned] [int|]
11351
11352         and
11353
11354         signed [long|long long|short] int
11355
11356 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11357
11358         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11359         and vax-tdep.h.
11360         * vax-tdep.h: New file.
11361         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11362         Make several routines static.
11363         (vax_get_saved_register): New function.
11364         (vax_gdbarch_init): New function.
11365         (_initialize_vax_tdep): Register vax_gdbarch_init.
11366         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11367         Remove macros now under the control of gdbarch.
11368
11369 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11370
11371         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11372         Some whitespace and coding standards tweaks.
11373
11374 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11375
11376         * vax-tdep.c: Include regcache.h.
11377         (vax_call_dummy_words): New.
11378         (sizeof_vax_call_dummy_words): New.
11379         (vax_fix_call_dummy): New function.
11380         (vax_saved_pc_after_call): Ditto.
11381         * config/vax/tm-vax.h: Don't include regcache.h.
11382         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11383         (CALL_DUMMY): Remove.
11384         (CALL_DUMMY_WORDS): Define.
11385         (SIZEOF_CALL_DUMMY_WORDS): Define.
11386         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11387
11388 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11389
11390         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11391
11392 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11393
11394         * vax-tdep.c (vax_frame_chain): New function.
11395         (vax_push_dummy_frame): Ditto.
11396         (vax_pop_frame): Ditto.
11397         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11398         (FRAMELESS_FUNCTION_INVOCATION): Use
11399         generic_frameless_function_invocation_not.
11400         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11401         (POP_FRAME): Use vax_pop_frame.
11402
11403 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11404
11405         * vax-tdep.c (vax_store_struct_return): New function.
11406         (vax_extract_return_value): Ditto.
11407         (vax_store_return_value): Ditto.
11408         (vax_extract_struct_value_address): Ditto.
11409         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11410         vax_store_struct_return.
11411         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11412         (STORE_RETURN_VALUE): Use vax_store_return_value.
11413         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11414
11415 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11416
11417         * vax-tdep.c (vax_frame_saved_pc): New function.
11418         (vax_frame_args_address_correct): Ditto.
11419         (vax_frame_args_address): Ditto.
11420         (vax_frame_locals_address): Ditto.
11421         (vax_frame_num_args): Move code to be in proximity to
11422         other frame-related functions.
11423         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11424         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11425         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11426         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11427         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11428
11429 2002-04-22  H.J. Lu  (hjl@gnu.org)
11430
11431         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11432         includedir.
11433
11434 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11435
11436         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11437         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11438         (FRAME_INIT_SAVED_REGS): New macro.
11439
11440 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11441
11442         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11443
11444 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11445
11446         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11447         where needed.
11448         (fetch_osf_core_registers): Likewise.
11449         (supply_gregset): Likewise.
11450
11451 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11452
11453         * symfile.h (get_section_index): Define.
11454         * symfile.c (get_section_index): New function.
11455         * mdebugread.c (SC_IS_SBSS): New macro.
11456         (SC_IS_BSS): Return true for the scBss storage class only, as
11457         the scSBss storage class refers to the .sbss section.
11458         (parse_partial_symbols): Discard the symbols which associated
11459         section does not exist.
11460         Make sure to use the .sbss section index for symbols which
11461         storage class is scBss, rather than using the .bss section index.
11462
11463 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11464
11465         * vax-tdep.c: Update copyright years.
11466         (vax_register_name): New function.
11467         (vax_register_byte): Ditto.
11468         (vax_register_raw_size): Ditto.
11469         (vax_register_virtual_size): Ditto.
11470         (vax_register_virtual_type): Ditto.
11471         * config/vax/tm-vax.h: Update copyright years.
11472         (REGISTER_NAMES): Remove.
11473         (REGISTER_NAME): Define.
11474         (REGISTER_BYTE): Use vax_register_byte.
11475         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11476         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11477         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11478
11479 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11480
11481         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11482         declaration
11483         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11484
11485 2002-04-21  David S. Miller  <davem@redhat.com>
11486
11487         * arch-utils.c (generic_prologue_frameless_p): Kill
11488         SKIP_PROLOGUE_FRAMELESS_P code.
11489         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11490         references.
11491         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11492         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11493         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11494         references.
11495         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11496         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11497         (sparc_gdbarch_init): Pass it to
11498         set_gdbarch_prologue_frameless_p.
11499
11500 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11501
11502         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11503         (alphabsd-nat.o): New dependency list.
11504
11505 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11506
11507         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11508         alphafbsd-tdep.c.
11509         (alpha-linux-tdep.o): New dependency list.
11510         (alphafbsd-tdep.o): Likewise.
11511
11512 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11513
11514         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11515         to here...
11516         * alpha-tdep.c: ...from here.
11517         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11518
11519 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11520
11521         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11522         prototype from here...
11523         * alpha-tdep.h: ...to here.
11524
11525 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11526
11527         * frame.h (selected_frame_level): Document as deprecated.
11528         (frame_relative_level): Declare.
11529         * stack.c (frame_relative_level): New function.
11530         (selected_frame_level): Document as deprecated.
11531         (select_frame): Do not set the selected_frame_level.
11532
11533         * stack.c (frame_info, record_selected_frame): Update.
11534         (frame_command, current_frame_command): Update.
11535         (up_silently_base, up_command, down_silently_base): Update.
11536         (down_command): Update.
11537         * inflow.c (kill_command): Update.
11538         * tracepoint.c (finish_tfind_command): Update.
11539         * corelow.c (core_open): Update.
11540         * thread.c (info_threads_command): Update.
11541         (do_captured_thread_select): Update.
11542         * infcmd.c (finish_command): Update.
11543         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11544
11545 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11546
11547         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11548
11549 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11550
11551         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11552         type const.
11553
11554 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11555
11556         * alphafbsd-tdep.c: Update copyright years.  Include
11557         alpha-tdep.h.
11558         (alphafbsd_use_struct_convention): Make static.
11559         (alphafbsd_init_abi): New function.
11560         (_initialize_alphafbsd_tdep): New function.
11561         * config/alpha/tm-fbsd.h: Update copyright years.
11562         (USE_STRUCT_CONVENTION): Remove.
11563
11564 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11565
11566         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11567         an Alpha ABI variant.
11568         (alpha_abi_handler_list): Declare.
11569         (alpha_gdbarch_register_os_abi): New function.
11570         (alpha_gdbarch_init): Give registered ABI variant handlers a
11571         chance to tweak the gdbarch once we have set up defaults.
11572         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11573
11574 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11575
11576         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11577         to standard_coerce_float_to_double.
11578         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11579
11580 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11581
11582         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11583         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11584         from gdbarch_tdep rather than a constant.
11585         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11586         the default text address for all Alpha Unix ABIs.
11587         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11588         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11589
11590 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11591
11592         * alpha-tdep.h: New file.  Includes several Alpha target constants
11593         taken from...
11594         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11595         let gdbarch deal with.
11596         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11597         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11598         to dependency list.
11599         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11600         Alpha target register names.
11601         * alphabsd-nat.c: Likewise.
11602         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11603         Alpha target register names.  Make serveral routines static.
11604         (alpha_get_saved_register): New function.
11605         (alpha_abi_names): New.
11606         (process_note_abi_tag_sections): New function.
11607         (get_elfosabi): New function.
11608         (alpha_gdbarch_init): New function.
11609         (alpha_dump_tdep): New function.
11610         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11611
11612 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11613
11614         * frame.c (find_saved_register): Delete #ifdef
11615         HAVE_REGISTER_WINDOWS code.
11616         * config/sparc/tm-sparc.h: Update comments.
11617         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11618
11619 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11620
11621         * i960-tdep.c (i960_find_saved_register): New function.
11622         (i960_get_saved_register): New function.
11623         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11624         (i960_get_saved_register): Declare.
11625         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11626
11627 2002-04-20  David S. Miller  <davem@redhat.com>
11628
11629         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11630
11631 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11632
11633         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11634         instead of NUM_PSEUDO_REGS.
11635
11636 2002-04-20  David S. Miller  <davem@redhat.com>
11637
11638         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11639         GDB_MULTI_ARCH_PARTIAL
11640         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11641         define, let tm-sp64.h do it.
11642
11643 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11644
11645         * frame.c (find_saved_register): Avoid a NULL pointer
11646         dereference and actually walk the frame list.
11647
11648 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11649
11650         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11651         sorted in most most-recent-used order.  Document.
11652         * gdbarch.h, gdbarch.c: Regenerate.
11653
11654 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11655
11656         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11657         instead of ->prev.
11658         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11659         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11660         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11661         instead of ->prev.
11662
11663 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11664
11665         Fix PR gdb/471.
11666         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11667         (build_builtin_type_vec128): Ditto.
11668         (append_composite_type_field): Fix calculation of type length in
11669         union case.
11670
11671 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11672
11673         * config/djgpp/README: Update.
11674
11675         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11676         compiler warnings.
11677
11678 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11679
11680         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11681         (alpha_setup_arbitrary_frame): ...to this.
11682         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11683         for alpha_setup_arbitrary_frame.
11684
11685 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11686
11687         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11688         * gdbarch.h, gdbarch.c: Regenerate.
11689
11690         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11691         * target.h (memory_breakpoint_from_pc): Update declaration.
11692         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11693
11694         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11695         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11696         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11697         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11698         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11699         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11700         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11701         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11702         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11703         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11704         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11705         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11706
11707         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11708         const pointer.
11709         * monitor.c (monitor_insert_breakpoint): Ditto.
11710         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11711
11712         * config/mcore/tm-mcore.h: Update copyright.
11713         * mem-break.c: Ditto.
11714         * xstormy16-tdep.c: Ditto.
11715
11716 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11717
11718         * p-exp.y: Add precedence rule for '^' token.
11719         This removes the shift/reduce conflicts.
11720         Remove the comment concerning these shift/reduce conflicts.
11721
11722 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11723
11724         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11725         (registers_powerpc_nofp): New register set for processors
11726         without floating point unit.
11727
11728 2002-04-18  David S. Miller  <davem@redhat.com>
11729
11730         * MAINTAINERS: Add myself to write-after-approval.
11731
11732 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11733
11734         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11735
11736 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11737
11738         * rs6000-tdep.c (frame_initial_stack_address): Use
11739         frame_register_read to read the alloca_reg.
11740
11741 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11742
11743         * frame.c (find_saved_register): Find saved registers in the next
11744         not prev frame.
11745         Fix PR gdb/365.
11746
11747 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11748
11749         * gdbarch.sh (LANG): Set to ``c''.
11750
11751 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11752
11753         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11754
11755 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11756
11757         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11758         Update copyright.
11759
11760         * hpread.c (hpread_get_lntt): Add declaration.
11761         Also fix PR gdb/391.
11762
11763 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11764
11765         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11766         * aclocal.m4, configure: Re-generate.
11767         Fix PR gdb/391.
11768
11769 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11770
11771         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11772         instead of tm_print_insn.
11773
11774 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11775
11776         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11777
11778 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11779
11780         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11781         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11782         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11783
11784 2002-04-12  Don Howard  <dhoward@redhat.com>
11785
11786         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11787         max_user_call_depth.
11788         (init_cmd_lists): Initialize the new value;
11789         * cli/cli-script.c (execute_user_command): Limit the call depth of
11790         user defined commands.  This avoids a core-dump when user commands
11791         are infinitly recursive.
11792
11793 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11794
11795         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11796         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11797         from tdep struct instead of DEFAULT_LR_SAVE.
11798         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11799         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11800         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11801
11802 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11803
11804         * Remote.c: Spelling fix.
11805         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11806         If no symbol found for "sbrk", try "_sbrk".
11807         (make_output_phdrs): Use bfd_section_name.
11808         (gcore_copy_callback): Use bfd_section_name.
11809         * eval.c: Indentation fix-ups.
11810         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11811         in case it gets applied to an address that is already
11812         in the instruction space.
11813         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11814         * symfile.c: Fix indentation, long lines.
11815         * source.c: White space fix-up.
11816
11817 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11818
11819         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11820         * frame.c (frame_register_read): New function.  Return non-zero on
11821         success.
11822         (read_relative_register_raw_bytes_for_frame): Delete.
11823         (read_relative_register_raw_bytes): Delete.
11824         * frame.h (frame_register_read): Declare.
11825         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11826         * sh-tdep.c: Ditto.
11827         * infcmd.c (do_registers_info): Ditto.
11828         * hppa-tdep.c: Ditto.
11829         * rs6000-tdep.c: Ditto.
11830         * h8500-tdep.c: Ditto.
11831         * mips-tdep.c: Ditto.
11832         * h8300-tdep.c: Ditto.
11833         * z8k-tdep.c: Ditto.
11834
11835 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11836
11837         From Jimi X <jimix@watson.ibm.com>:
11838         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11839         64-bit SysV ABI.
11840
11841 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11842
11843         From Jimi X <jimix@watson.ibm.com>:
11844         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11845         bfd info.
11846
11847 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11848
11849         From Jimi X <jimix@watson.ibm.com>:
11850         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11851         register sets for these processor variants.
11852
11853 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11854
11855         * regformats/reg-ppc.dat: Support FPSCR.
11856
11857 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11858
11859         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11860         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11861         Add fpscr as an invalid/unfetchable register.
11862         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11863         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11864         (fill_fpregset): Add support for register fpscr.
11865         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11866         (fill_gregset): Account for the fact that register ``mq'' might
11867         not exist.
11868         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11869         (registers_power): Add fpscr to register set at slot 71.
11870         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11871         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11872
11873 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11874
11875         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11876         * configure: Regenerate.
11877         * config.in: Regenerate.
11878         * acconfig.h: Add define for _SYSCALL32.
11879         * core-sol2.c: Remove #define _SYSCALL32.
11880         * solib-legacy.c: Remove #define _SYSCALL32.
11881
11882 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11883
11884         * stack.c (select_frame): Cleanup internal error message, do not
11885         use %p.
11886
11887 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11888
11889         * stack.c (select_frame): Check that selected_frame and the
11890         specified level are as expected.
11891         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11892         Update copyright.
11893         * frame.h (struct frame_info): Add field `level'.  Update
11894         copyright.
11895         Work-in-progress PR gdb/464.
11896
11897 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11898
11899         * maint.c (maint_print_section_info): Rename print_section_info.
11900         (print_bfd_section_info, print_objfile_section_info): Update.
11901         * inferior.h (struct gdbarch): Add opaque declaration.
11902         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11903         * gdbarch.h: Regenerate.
11904
11905 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11906
11907         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11908         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11909         (kernel_u_size): Added.
11910         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11911         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11912
11913 2002-04-04  Jim Ingham  <jingham@apple.com>
11914
11915        * valarith.c (find_size_for_pointer_math): New function, either returns
11916        the size for a pointer's target, returns 1 for void *, or errors for
11917        incomplete types.
11918        (value_add, value_sub): use find_size_for_pointer_math.
11919
11920 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11921
11922         * linux-low.c (linux_look_up_symbols): New hook.
11923         (linux_target_ops): Add linux_look_up_symbols.
11924         * remote-utils.c (decode_address): New function.
11925         (look_up_one_symbol): New function.
11926         * server.c (handle_query): Call target look_up_symbols hook.
11927         * server.h (look_up_one_symbol): Add prototype.
11928         * target.h (struct target_ops): Add look_up_symbols hook.
11929
11930 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11931
11932         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11933         override FP_REGNUM with frame->fp.  Update copyright.
11934         * parse.c (num_std_regs, std_regs): Delete.
11935         (target_map_name_to_register): Do not search std_regs.  Update
11936         function description.
11937         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11938         declarations.  Update copyright.
11939         Fix PR gdb/251.
11940
11941 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11942
11943         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11944         after the last symbol in a block.
11945
11946 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11947
11948         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11949         is non zero as a found symbol.
11950
11951 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11952
11953         * findvar.c: Include "builtin-regs.h".
11954         (value_of_register): Call value_of_builtin_reg when applicable.
11955         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11956         (target_map_name_to_register): Call
11957         builtin_reg_map_name_to_regnum.
11958         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11959         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11960         (builtin_regs_h): Define.
11961         (builtin-regs.o): New target.
11962         (findvar.o): Add $(builtin_regs_h).
11963         * builtin-regs.c, builtin-regs.h: New files.
11964         * std-regs.c: New file.
11965         Partial fix for PR gdb/251.
11966
11967 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11968
11969         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11970         it's no longer required.
11971
11972 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11973
11974         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11975
11976 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11977
11978         From Jimi X <jimix@watson.ibm.com>:
11979         * rs6000-tdep.c (rs6000_software_single_step): Use
11980         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11981         and size.  Use target_insert_breakpoint() and
11982         target_remove_breakpoint() to insert and remove breakpoints
11983         instead of explicit memory reads and writes.
11984
11985 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11986
11987         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11988         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11989         ELF_OBJECT_FORMAT ifdef.
11990
11991 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11992
11993         From Jimi X <jimix@watson.ibm.com>:
11994         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11995
11996 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11997
11998         From Jimi X <jimix@watson.ibm.com>:
11999         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12000         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12001
12002 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12003
12004         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12005         s/asprintf/xasprintf/.
12006         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12007
12008 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12009
12010         I believe Jeff Law denies responsability for this one:
12011         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12012         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12013         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12014         Work-around for PR gdb/366.
12015
12016 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12017
12018         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12019         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12020         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12021
12022 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12023
12024         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12025         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12026         information.
12027
12028 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12029
12030         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12031         maintainer.
12032
12033 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12034
12035         * README (Reporting Bugs in GDB): Document the bug web page as the
12036         prefered way of submitting bugs.
12037         Fix PR gdb/402.
12038
12039 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12040
12041         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12042         -1.  Update comment.
12043         * gdbarch.h, gdbarch.c: Re-generate.
12044
12045 2002-04-07  Andreas Schwab  <schwab@suse.de>
12046
12047         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12048         buffer to regcache_collect.
12049
12050 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12051
12052         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12053         * gdbarch.c, gdbarch.h: Re-generate.
12054
12055 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12056
12057         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12058         declaration.  Fix -Werror.
12059
12060 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12061
12062         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12063         * gdbarch.c: Regenerate.
12064
12065 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12066
12067         * breakpoint.c (clear_command): Rewrite middle section to
12068         combine two loops with identical control conditions.
12069         Add a cleanup to eliminate a memory leak.
12070         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12071
12072 2002-04-05  H.J. Lu  (hjl@gnu.org)
12073
12074         * solib-svr4.c (bkpt_names): Add "__start".
12075
12076 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12077
12078         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12079         as test for 64 bit target.
12080
12081 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12082
12083         * h8500-tdep.c (h8500_write_fp): Delete function.
12084         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12085         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12086         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12087         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12088         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12089         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12090         (s390_write_fp):
12091         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12092         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12093         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12094         (d10v_write_fp): Delete function.
12095         * inferior.h (write_fp, generic_target_write_fp): Delete
12096         declarations.
12097         * regcache.c (generic_target_write_fp): Delete function.
12098         (write_fp): Delete function.
12099         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12100         * gdbarch.h, gdbarch.c: Regenerate.
12101         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12102         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12103         (sparc64_write_fp): Delete declaration.
12104         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12105         (h8500_write_fp): Delete declaration.
12106
12107 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12108
12109         * sparc-tdep.c (sparc64_write_fp): Delete.
12110         (sparc_push_dummy_frame): Replace write_fp call with code to store
12111         the FP directly.
12112         (sparc_gdbarch_init): Do not initialize write_fp.
12113
12114 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12115
12116         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12117         clause.
12118
12119 2002-03-29  Jim Blandy  <jimb@redhat.com>
12120
12121         * stack.c (get_selected_block): Add new argument `addr_in_block',
12122         used to return the exact code address we used to select the block,
12123         not just the block.
12124         * blockframe.c (get_frame_block, get_current_block): Same.
12125         * frame.h (get_frame_block, get_current_block,
12126         get_selected_block): Update declarations.
12127         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12128         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12129
12130 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12131
12132         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12133         warning message.
12134
12135 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12136
12137         * utils.c (xfullpath): New function.
12138         * defs.h (xfullpath): Add declaration.
12139         * source.c (openp): Use xfullpath in place of gdb_realpath to
12140         avoid resolving the basename part of filenames when the
12141         associated file is a symbolic link. This fixes a potential
12142         inconsistency between the filenames known to GDB and the
12143         filenames it prints in the annotations.
12144         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12145         to be able to match a filename with either the real filename, or
12146         the name of any symbolic link to this file.
12147         (lookup_partial_symtab): Ditto.
12148
12149 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12150
12151         * breakpoint.c: Add support for hardware breakpoints in overlays.
12152         (overlay_events_enabled): New state variable.
12153         (insert_breakpoints): Use overlay_events_enabled to decide
12154         whether to attempt to set a breakpoint at the overlay load addr.
12155         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12156         (remove_breakpoint): Use overlay_events_enabled to decide
12157         whether breakpoints need to be removed from overlay load addr.
12158         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12159         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12160         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12161         disable_overlay_breakpoints): Update overlay_events_enabled.
12162
12163 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12164
12165         * dwarf2read.c (struct function_range): New.
12166         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12167         (check_cu_functions): New.
12168         (read_file_scope): Initialize global function lists.
12169         Call dwarf_decode_line after processing children.
12170         (read_func_scope): Add to global function list.
12171         (dwarf_decode_lines): Call check_cu_functions everywhere
12172         record_line is called.  Call record_line with a linenumber
12173         of 0 to mark sequence ends.
12174
12175 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12176
12177         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12178         change sync with glibc.
12179
12180 2002-04-03  Jim Blandy  <jimb@redhat.com>
12181
12182         * configure.in: Call AC_C_INLINE.
12183         * configure: Regenerated.
12184
12185 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12186
12187         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12188         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12189
12190 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12191
12192         * NEWS: Mention gcore support on FreeBSD/i386.
12193
12194         * fbsd-proc.c: New file.
12195         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12196         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12197
12198         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12199         while statement.
12200
12201 2002-03-29  Jim Blandy  <jimb@redhat.com>
12202
12203         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12204         unescaped newlines in string literals, but newer ones don't.  So
12205         escape them.
12206
12207 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12208             Andrew Cagney <cagney@redhat.com>
12209
12210         * cli/cli-dump.c: New file.  Dump memory to file,
12211         restore file to memory.
12212         * cli/cli-dump.h: New file.
12213         * Makefile.in: Add rules, dependencies for cli-dump.o.
12214         * NEWS: Mention new commands.
12215
12216 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12217
12218         * symfile.c (symbol_file_add): Move test for null symbols to later.
12219
12220 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12221
12222         From veksler at il.ibm.com:
12223         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12224         the xstrduped original path.
12225         Fix PR gdb/417.
12226
12227 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12228
12229         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12230         * infcmd.c (_initialize_infcmd): Ditto.
12231         * language.c (_initialize_language): Ditto.
12232         * symfile.c (_initialize_symfile): Ditto.
12233         * top.c (_init_main): Ditto.
12234         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12235
12236 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12237
12238         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12239         vector registers handling.
12240         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12241         fields of frame data.
12242         (frame_get_saved_regs): Fill in information for AltiVec registers.
12243
12244 2002-03-27  Jim Blandy  <jimb@redhat.com>
12245
12246         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12247         a function; leave this macro here to invoke that function.
12248         (symbol_init_mangled_name): Declaration for that function.
12249         * symtab.c (symbol_init_mangled_name): New function.
12250
12251 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12252
12253         * valarith.c: Replace strerror with safe_strerror.
12254         * tracepoint.c: Ditto.
12255         * lin-lwp.c: Ditto.
12256         * go32-nat.c: Ditto.
12257         * inflow.c: Ditto.
12258         * gnu-nat.c: Ditto.
12259
12260 2002-03-27  Andreas Schwab  <schwab@suse.de>
12261
12262         * event-top.c (command_line_handler): Remove useless if.
12263
12264 2002-03-27  Andreas Jaeger  <aj@suse.de>
12265
12266         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12267         comment.
12268
12269 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12270
12271         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12272         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12273         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12274         (x86_64_linux_dr_get_status, supply_gregset),
12275         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12276         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12277         (x86_64_register_info_table): Add.
12278         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12279         (x86_64_register_raw_size, x86_64_register_virtual_type),
12280         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12281         general x86_64_register_info_table.
12282         (i386_gdbarch_init): gdbarch_register_bytes is now set
12283         dynamicaly during initialization.
12284         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12285         * gdbserver/linux-x86-64-low.c: Ditto.
12286
12287 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12288
12289         * gdbserver/server.c (main): Call target_signal_to_host_p
12290         and target_signal_to_host on signals received from the remote.
12291         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12292         target_signal_from_host on signals sent to the remote.
12293         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12294         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12295
12296 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12297
12298         * signals/signals.c: Include "server.h" in gdbserver build.
12299         (target_signal_from_name): Don't use STREQ.
12300         (_initialize_signals): Likewise.  Don't include function in
12301         gdbserver build.
12302
12303 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12304
12305         * signals.c: Moved to...
12306         * signals/signals.c: Here.
12307         * Makefile (signals.o): Update.
12308
12309 2002-03-26  Jeff Law (law@redhat.com)
12310
12311         * somread.c (som_symtab_read): Remove some commented out code and
12312         updated related comments.  Do not set the minimal symbol table to
12313         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12314         in a dynamic executable.
12315         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12316         where we are unable to find the minimal symbol for the given
12317         PC value.
12318
12319 2002-03-25  Jeff Law (law@redhat.com)
12320
12321         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12322
12323 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12324
12325         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12326
12327 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12328
12329         * command.h: Update copyright.
12330         (struct cmd_list_element): Replace definition with opaque
12331         declaration.
12332         (enum cmd_types): Document that it will eventually be moved to
12333         cli/cli-decode.h
12334         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12335         (MALLOCED_REPLACEMENT): Delete macro.
12336         * Makefile.in (cli_decode_h): Add $(command_h).
12337         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12338         * top.c: Include "cli/cli-decode.h".
12339         * completer.c: Include "cli/cli-decode.h".
12340         * maint.c: Include "cli/cli-decode.h".
12341         * cli/cli-decode.h: Include "command.h".
12342         (enum command_class): Delete.
12343         (enum cmd_types): Comment out.
12344         (enum cmd_auto_boolean): Delete.
12345         (enum var_types): Delete.
12346
12347 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12348
12349         * cli/cli-decode.c: Include "gdb_assert.h".
12350         (add_set_or_show_cmd): New static function.
12351         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12352         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12353         all fields, such as func, from the set command.
12354
12355 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12356
12357         * MAINTAINERS (sh-elf): Change warning flag to -w.
12358
12359 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12360
12361         * defs.h (error): Add printf format attribute.
12362         * thread-db.c (thread_from_lwp): Fix error format string.
12363         * stack.c (parse_frame_specification): Ditto.
12364         * cli/cli-decode.c (undef_cmd_error): Ditto.
12365         * scm-lang.c (scm_lookup_name): Ditto.
12366         * tracepoint.c (trace_error): Ditto.
12367         * remote-utils.c (usage): Ditto.
12368         * remote.c (compare_sections_command): Ditto.
12369         Fix PR gdb/328.
12370
12371 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12372
12373         * gdbtypes.c (append_composite_type_field): New function.
12374         (init_composite_type): New function.
12375         * gdbtypes.h (append_composite_type_field): Declare.
12376         (init_composite_type): Ditto.
12377
12378 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12379
12380         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12381         function.
12382         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12383         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12384         structure returning convention for SYSV ABI case, but not
12385         for GNU/Linux, FreeBSD, or NetBSD.
12386
12387 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12388
12389         * symtab.h (lookup_block_symbol): Add mangled_name argument
12390         to prototype.
12391
12392         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12393         with new mangled_name argument.
12394         * linespec.c (decode_line_1): Likewise.
12395         * valops (value_of_this): Likewise.
12396         * symtab.c (lookup_transparent_type): Likewise.
12397         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12398         (lookup_symbol): If we are given a mangled name, pass it down
12399         to lookup_symbol_aux.
12400         (lookup_block_symbol): If we are given a mangled name to check
12401         against, only return symbols which match it.
12402
12403 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12404
12405         * win32-nat.c (child_create_inferior): Check for proper shell to use
12406         here, in case the user changes it on the fly.
12407         (_initialize_inftarg): Remove shell path considerations.
12408
12409 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12410
12411         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12412         for gdbarch_max_register_raw_size and max_register_virtual_size.
12413         Adjust copyright year.
12414
12415 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12416
12417          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12418          in a function to cover the entire beginning of the function
12419          as well if it does not already.
12420
12421 2002-03-21  Tom Rix  <trix@redhat.com>
12422
12423         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12424         (rs6000_ptrace64): Renamed from ptrace64.
12425
12426 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12427
12428         * gdbserver/remote-utils.c (remote_open): Don't call
12429         getprotobyname, we're all using TCP here so just use
12430         IPPROTO_TCP.
12431         * gdbserver/gdbreplay.c (remote_open): Ditto.
12432
12433 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12434
12435         * regcache.c (_initialize_regcache): No need to call
12436         build_regcache() at this time; it gets called whenever
12437         the gdbarch changes.
12438
12439 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12440
12441         * sparc-nat.c:  Include sys/param.h where possible.
12442
12443 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12444
12445         Fix PR gdb/422.
12446         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12447         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12448         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12449         complex types.
12450         * stabsread.c (rs6000_builtin_type): Likewise.
12451         (read_sun_floating_type): Likewise.
12452
12453 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12454
12455         * stabsread.c (read_member_functions): Remove skip code for duplicate
12456         constructor/destructor methods.  Use standard parsing for these
12457         methods and just do not chain them to the list of methods after
12458         parsing.
12459
12460 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12461
12462         * coffread.c: Remove redundant static declarations.  Replace
12463         occurrences of `PTR' with `void *'.
12464         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12465         * top.h (quit_cover): Likewise.
12466         * defs.h (catch_errors): Likewise.
12467
12468 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12469
12470         * defs.h (XMALLOC): Define.
12471         * gdb-events.sh (XMALLOC): Delete macro.
12472         * gdb-events.c, gdb-events.h: Regenerate.
12473         * gdbarch.sh (XMALLOC): Delete macro.
12474         * gdbarch.c: Regenerate.
12475         * serial.c (XMALLOC): Delete macro.
12476         * ui-file.c (XMALLOC): Ditto.
12477         * ser-unix.h (XMALLOC): Ditto.
12478         * sh-tdep.c (XMALLOC): Ditto.
12479         * ui-out.c (XMALLOC): Ditto.
12480         * utils.c (XMALLOC): Ditto.
12481         * i386-tdep.c (XMALLOC): Ditto.
12482         * gdb-events.c (XMALLOC): Ditto.
12483         * d10v-tdep.c (XMALLOC): Ditto.
12484         * cli-out.c (XMALLOC): Ditto.
12485
12486         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12487         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12488         * ui-file.c, ui-out.c: Ditto.
12489
12490 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12491
12492         * command.h (struct cmd_list_element): Add field context.
12493         (set_cmd_context, get_cmd_context): Declare.
12494         * cli/cli-decode.h: Ditto.
12495         * cli/cli-decode.c (get_cmd_context): New function.
12496         (set_cmd_context): New function.
12497         (add_cmd): Initialize context.
12498         Part of fixing PR gdb/145 and PR gdb/146.
12499
12500 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12501
12502         * cli/cli-decode.c (cmd_type): New function.
12503         * command.h (cmd_type): Declare.
12504         * infrun.c (set_schedlock_func): Call function cmd_type.
12505         * kod.c (kod_set_os): Call cmd_type.
12506         * cris-tdep.c (cris_version_update): Use function cmd_type.
12507         (cris_mode_update, cris_abi_update): Ditto.
12508
12509         * command.h: (execute_cmd_post_hook): Declare.
12510         (execute_cmd_pre_hook): Declare.
12511         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12512         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12513         functions. Execute pre/post hook while ensuring that afterwords
12514         hook_in is cleared.
12515         * top.c (execute_command): Use execute_cmd_post_hook, and
12516         execute_cmd_pre_hook to execute pre/post commands.
12517         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12518         hook_stop_stub.
12519         (hook_stop_stub): Call execute_cmd_pre_hook.
12520
12521 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12522
12523         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12524         set'' and this leads to a core dump.  Move xstrdup of
12525         operating_system to after check that it is not NULL.
12526
12527 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12528
12529         * kod.c (kod_set_os): Remove unnecessary check that
12530         ``command->type'' is set_cmd.
12531
12532         * valprint.c (set_input_radix): Use input_radix.
12533         (set_output_radix): Use output_radix.
12534         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12535         isn't reverted.
12536
12537 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12538
12539         * value.h (struct value): Delete field ``substring_addr''.  Change
12540         aligner fields to force_doublest_align, force_longest_align,
12541         force_core_addr_align and force_pointer_aligh.
12542
12543         * value.h (struct value): Fix typo in above change.
12544
12545 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12546
12547         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12548         to fix internal_error from ``maintenance print architecture''.
12549
12550 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12551
12552         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12553         for gcc versions after gcc-2.8.1.
12554
12555 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12556
12557         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12558         for method resolution.  Restore adjustment of ``this'' pointer after
12559         calling value_struct_elt, which was accidentally removed during the
12560         HP merge.
12561
12562 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12563
12564         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12565         value_of_register.
12566         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12567         get_saved_register.
12568         * value.h (value_of_register): Update.
12569
12570 2002-03-14  Richard Henderson  <rth@redhat.com>
12571
12572         * configure.in: Detect declaration for canonicalize_file_name.
12573         * utils.c (canonicalize_file_name): Declare, if needed.
12574         (gdb_realpath): Prefer realpath if available and usable.
12575         * config.in, configure: Rebuild.
12576
12577 2002-03-14  Richard Henderson  <rth@redhat.com>
12578
12579         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12580         a constant array bound.
12581
12582         * MAINTAINERS: Add myself to write-after-approval.
12583
12584 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12585
12586         * symfile.c (syms_from_objfile): Return immediately if no syms.
12587         (symbol_file_add): Return immediately if no syms.
12588         (find_sym_fns): Return immediately if no syms.
12589
12590 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12591
12592         * gdbserver/remote-util.c (remote_open): Print remote-side's
12593         IP address when remote debugging over the network.
12594
12595 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12596
12597         * config/sparc/fbsd.mh: Fix copyright.
12598         * config/sparc/fbsd.mt: Likewise.
12599
12600 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12601
12602         * MAINTAINERS: Fix typo in name of gdb warnings option.
12603         (x86-64): Fix formating so that this can be parsed by awk.
12604
12605 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12606
12607         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12608         * defs.h: Include "gdb/signals.h".
12609         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12610
12611 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12612
12613         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12614         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12615         from x86-64-tdep.h
12616
12617 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12618             Don Howard <dhoward@redhat.com>
12619
12620         * mips-tdep.c (ST0_FR): Define.
12621         (mips2_fp_compat): New function, temporarily disabled.
12622         (mips_read_fp_register_single): New function.
12623         (mips_read_fp_register_double): New function.
12624         (mips_print_register): Use them.
12625         (do_fp_register_row): Likewise.
12626
12627 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12628
12629         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12630         approval''.
12631
12632 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12633
12634         * stabsread.c (read_member_functions): Fix is_stub test for
12635         static member functions, improve comment.
12636
12637 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12638
12639         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12640         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12641         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12642         commands that set boolean values.
12643         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12644         (arm_rdi_resume): Always initialize PC.
12645         (arm_rdi_open): Don't use rslt as a boolean.
12646         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12647         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12648         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12649         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12650
12651 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12652
12653         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12654         * configure: Rebuilt.
12655
12656 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12657
12658         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12659         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12660
12661 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12662
12663         * cli/cli-decode.c (set_cmd_completer): New function.
12664         * command.h (set_cmd_completer): Declare.
12665         * cli/cli-decode.h (set_cmd_completer): Ditto.
12666
12667         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12668         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12669         * win32-nat.c (_initialize_inftarg): Ditto.
12670         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12671         * proc-api.c (_initialize_proc_api): Ditto.
12672         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12673         * source.c (_initialize_source): Ditto.
12674         * exec.c (_initialize_exec): Ditto.
12675         * solib.c (_initialize_solib): Ditto.
12676         * top.c (init_main): Ditto.
12677         * tracepoint.c (_initialize_tracepoint): Ditto.
12678         * symfile.c (_initialize_symfile): Ditto.
12679         * printcmd.c (_initialize_printcmd): Ditto.
12680         * infcmd.c (_initialize_infcmd): Ditto.
12681         * corefile.c (_initialize_core): Ditto.
12682
12683 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12684
12685         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12686
12687 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12688
12689         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12690
12691 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12692
12693         * NEWS: Update headings, 5.2 has branched.
12694
12695 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12696
12697         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12698         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12699         (register_addr, REGISTER_RAW_SIZE): Likewise.
12700         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12701         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12702
12703 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12704
12705         * MAINTAINERS (x86-64): Add myself.
12706         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12707         changed value_ptr -> struct value *
12708
12709 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12710
12711         * configure.host (sparc64-*-freebsd): Add.
12712         * configure.tgt: Likewise.
12713         * config/sparc/fbsd.mh: New file.
12714         * config/sparc/fbsd.mt: Likewise.
12715         * config/sparc/nm-fbsd.h: Likewise.
12716         * config/sparc/tm-fbsd.h: Likewise.
12717
12718 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12719
12720         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12721         regformats/reg-s390x.dat.
12722
12723 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12724
12725         * utils.c: Add FIXME explaining true/false problem.
12726
12727 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12728
12729         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12730
12731 2002-02-28  Michael Chastain  <mec@shout.net>
12732
12733         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12734
12735 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12736
12737         * gdbserver/linux-s390-low.c: New file.
12738         * regformats/reg-s390.dat: New file.
12739         * regformats/reg-s390x.dat: New file.
12740         * gdbserver/configure.srv: Add S/390.
12741         * gdbserver/Makefile.in: Add S/390.
12742         * configure.tgt: Enable gdbserver for S/390.
12743
12744 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12745
12746         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12747         first line of the doc string for "info dos", except at the end of
12748         the sentence, since the short help stops at the first period.
12749
12750 2002-02-28  Jason Merrill  <jason@redhat.com>
12751
12752         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12753
12754 2002-02-27  Fred Fish  <fnf@redhat.com>
12755
12756         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12757         comment (dumy -> dummy).
12758
12759 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12760
12761         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12762
12763 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12764
12765       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12766
12767 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12768
12769         * gdbserver/acconfig.h: New file.
12770         * gdbserver/i387-fp.c: New file.
12771         * gdbserver/i387-fp.h: New file.
12772         * gdbserver/linux-x86-64.c: New file.
12773         * regformats/reg-x86-64.dat: New file.
12774         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12775         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12776         * gdbserver/configure.in: Add support for regsets.
12777         * gdbserver/config.in: Regenerate.
12778         * gdbserver/configure: Regenerate.
12779         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12780         * gdbserver/linux-low.h: New file.
12781         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12782         for regsets.
12783         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12784         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12785         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12786         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12787         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12788         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12789         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12790         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12791         * gdbserver/regcache.c (supply_register): New function.
12792         (supply_register_by_name): New function.
12793         (collect_register): New function.
12794         (collect_register_by_name): New function.
12795
12796 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12797
12798         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12799         (config.status): Add configure.srv dependency.
12800         (server_h): Add config.h dependency.
12801
12802 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12803
12804         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12805         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12806         * gdbserver/configure.srv: Change i386-*-linux* to use
12807         reg-i386-linux.o.
12808
12809 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12810
12811         * x86-64-tdep.c: Re-indent.  Update copyright date.
12812
12813 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12814
12815         From Michal Ludvig <mludvig@suse.cz>:
12816         * x86-64-tdep.c (value.h): Delete.
12817         (gdb_assert.h): Include.
12818         (x86_64_register_convert_to_virtual,
12819         x86_64_register_convert_to_raw ): Add check which lets only
12820         floating-point values to be converted.
12821         (value_push): Delete.
12822         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12823         (i386_gdbarch_init): Number of register_bytes fixed.
12824
12825 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12826
12827         * MAINTAINERS: Add x86-64 target.
12828
12829 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12830
12831         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12832         * osfsolib.c (solib_map_sections): Ditto.
12833         * irix5-nat.c (solib_map_sections): Ditto.
12834         * corelow.c (gdb_check_format): Ditto.
12835         * symfile.c (symfile_bfd_open): Ditto.
12836         * solib.c (solib_map_sections): Ditto.
12837         Fix PR gdb/354.
12838
12839 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12840
12841         * remote.c (_initialize_remote): By default, disable ``e'' and
12842         ``E'' step out-of-range packets.
12843
12844 2002-02-26  Andreas Schwab  <schwab@suse.de>
12845
12846         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12847         m68k_linux_frame_saved_pc.
12848         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12849         in_sigtramp.
12850         (SIGCONTEXT_PC_OFFSET): Remove.
12851         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12852         m68k_linux_sigtramp_saved_pc): New functions.
12853         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12854         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12855         (UCONTEXT_PC_OFFSET): Define.
12856         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12857         non-RT and RT signal trampolines.
12858
12859 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12860
12861         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12862         (TARGET_NBPG, STACK_END_ADDR): Delete
12863         (VARIABLES_INSIDE_BLOCK): Delete.
12864
12865 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12866
12867         * utils.c (perror_with_name): Make string parameter constant.
12868         (print_sys_errmsg): Ditto.
12869         (query): Ditto.
12870         * defs.h (perror_with_name): Update.
12871         (print_sys_errmsg): Update.
12872         (query): Update.
12873
12874 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12875
12876         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12877         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12878
12879 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12880
12881         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12882         if it already matches the current architecture from the exec file.
12883         Include arch-utils.h for gdbarch_info_init prototype.
12884         * Makefile.in (rs6000-nat.o): Update dependencies.
12885
12886 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12887
12888         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12889          list of exported variables.
12890
12891 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12892
12893         * gdbserver/configure.srv: New file.
12894         * gdbserver/configure.in: Use configure.srv instead
12895         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12896         from it.
12897         * gdbserver/configure: Regenerated.
12898         * gdbserver/terminal.h: New file.
12899         * gdbserver/Makefile.in: Update for configure changes.  Remove
12900         more unneeded include paths.
12901
12902 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12903
12904         From wiz at danbala:
12905         * config/sparc/tm-sp64.h: Fix grammar and typos.
12906         Fix PR gdb/287.
12907
12908 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12909
12910         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12911         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12912         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12913         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12914         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12915         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12916         * s390-tdep.c: Ditto.
12917         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12918         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12919         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12920         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12921         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12922         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12923         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12924         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12925         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12926         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12927         Fix PR gdb/378.
12928
12929 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12930
12931         * lin-thread.c: Delete file.
12932         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12933         to gdb_proc_service.h.
12934         * configure: Re-generate.
12935
12936         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12937         * serial.c (serial_open): Delete check for "ocd".
12938         Fix PR gdb/349.
12939
12940         * Makefile.in (linux-thread.o): Delete target.
12941         * linux-thread.c: Delete file.
12942
12943         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12944         renamed SH files to be consistent.
12945
12946         * symtab.c (sort_search_symbols): Use xfree.
12947
12948 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12949
12950         * arm-linux-tdep.c (arm_linux_init_abi): Register
12951         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12952         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12953         definition with undef, since we don't want the sysvr4 definition.
12954         (SKIP_TRAMPOLINE_CODE): Likewise.
12955
12956 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12957
12958         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12959
12960         * configure.in: (AC_CHECK_FUNCS) Added test for
12961         canonicalize_file_name Regenerated.
12962         * config.in, configure: Regenerated.
12963         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12964         defined use canonicalize_file_name.
12965
12966 2002-02-23  Michael Chastain  <mec@shout.net>
12967
12968         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12969
12970 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12971
12972         * README: Remove references to cygnus.com.
12973         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12974         dot com'' form.  Remove references to cygnus.com and sourceware.
12975
12976 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12977
12978         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12979         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12980         1003.1-2001 no longer allows "head -1".
12981         * gdb/Makefile.in (version.c): Likewise.
12982         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12983         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12984         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12985
12986 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12987
12988         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12989         * command.h (cmd_cfunc_eq): Declare.
12990         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12991
12992         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12993         ``struct cmd_list_element *''.
12994         * cli/cli-cmds.c (is_complete_command): Update.  Use
12995         cmd_cfunc_eq.
12996         * top.c (execute_command): Pass the command to
12997         is_complete_command.
12998         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12999
13000 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13001
13002         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13003         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13004         architecture defines.
13005         * s390-tdep.c (s390_gdbarch_init): Likewise.
13006
13007 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13008
13009         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13010         (arm_linux_push_arguments): Likewise.
13011         (arm_linux_init_abi): Register them.  Also register linux-specific
13012         call_dummy_words.
13013         (find_minsym_and_objfile): Use strcmp, not STREQ.
13014         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13015         (arm_linux_call_dummy_words): Delete declaration.
13016         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13017         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13018         declarations.
13019         (LOWEST_PC): Delete.
13020
13021 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13022
13023         * maint.c (print_section_info): Do not prepend `0x' to filepos
13024         output, it will be handled by local_hex_string_custom.
13025
13026 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13027
13028         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13029         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13030         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13031
13032 2002-02-22  Jim Blandy  <jimb@redhat.com>
13033
13034         Indicate that the bcache functions don't change the strings
13035         they're passed.
13036         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13037         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13038
13039 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13040
13041         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13042
13043 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13044
13045         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13046         find the complete path to a loaded DLL.
13047
13048 2002-02-21  Fred Fish  <fnf@redhat.com>
13049
13050         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13051         that marks the end of the range of a function, enter a line number
13052         entry that has a line number of zero and a PC offset that matches
13053         the end of the function.  This starts a range of PC's for which no
13054         line number information is known.
13055         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13056         PC's for which no line number info is found (line number is zero)
13057         then we didn't find any valid line information.
13058         * symtab.h: Document use of zero line number entry.
13059
13060 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13061
13062         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13063         (have_ptrace_getvrregs): Define for run time checks.
13064         (gdb_vrregset_t): New type for Altivec register handling.
13065         (fetch_register, store_register): Fetch/store altivec register
13066         when needed.
13067         (fetch_altivec_register, store_altivec_register): New functions.
13068         (supply_vrregset, fill_vrregset): New functions.
13069         (fetch_altivec_registers, store_altivec_registers): New functions.
13070         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13071         registers as well.
13072
13073 2002-02-21  Jiri Smid  <smid@suse.cz>
13074
13075         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13076
13077 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13078
13079         * Makefile.in (armnbsd-nat.o): Update dependencies.
13080         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13081         supply the integer register set.
13082         (supply_fparegset): New function.  Similar for FPA registers.
13083         (fetch_regs, fetch_fp_regs): Use them.
13084         (fetch_core_registers): Likewise.
13085         (fetch_elfcore_registers): New function.
13086         (arm_netbsd_elfcore_fns): New core-file type specification.
13087         (_initialize_arm_netbsd_nat): Register it.
13088
13089 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13090
13091         * armnbsd-nat.c: Include gdbcore.h.
13092         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13093         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13094         'void' to declaration, to shut up ARI.
13095         (fetch_core_registers): Make static.  Rewrite using supply_register.
13096         (arm_netbsd_core_fns): New core-file type specification.
13097         (_initialize_arm_netbsd_nat): New function.
13098
13099 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13100
13101         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13102         value.
13103
13104 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13105
13106         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13107         fails.
13108
13109 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13110
13111         * jv-exp.y (parse_number): Change type of implicit longs
13112         to builtin_type_uint64.
13113
13114 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13115
13116         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13117         to be an integer instead of a `union wait'.
13118
13119 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13120
13121         * mips-linux-nat.c: Call the operating system GNU/Linux.
13122         * mips-linux-tdep.c: Likewise.
13123         * mips-tdep.c: Likewise.
13124
13125 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13126
13127         Fix PR gdb/265.
13128         * jv-exp.y (parse_number): Handle 64-bit integers.
13129
13130 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13131
13132         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13133         AC_STDC_HEADERS to AC_HEADER_STDC.
13134         * gdbserver/configure: Regenerated.
13135
13136 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13137
13138         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13139         is defined.
13140         * sparc-tdep.c (get_longjmp_target): Likewise.
13141
13142 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13143
13144         * News: Add news about ARM and Multi-arch.  Mention the new target
13145         arm*-*-netbsd*.
13146
13147 2002-02-19  Jim Blandy  <jimb@redhat.com>
13148
13149         * stabsread.c (error_type_complaint): Improve error message.
13150
13151 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13152
13153         * gdbserver/README: Update documentation.
13154         * gdbserver/configure.in: Update configury to match documentation.
13155         * gdbserver/Makefile.in: Likewise.
13156         * gdbserver/configure: Regenerated.
13157         * gdbserver/aclocal.m4: New file, generated by aclocal.
13158         * gdbserver/config.in: New file, generated by autoheader.
13159
13160 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13161
13162         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13163         armnbsd-nat.c.
13164
13165 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13166
13167         * arm-tdep.h (enum arm_float_model): New enum.
13168         (struct gdbarch_tdep): Add fp_model.
13169         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13170         up floating-point conversions until we know the floating-point model
13171         in use by the inferior.  Don't complain about being unable to
13172         determine the ABI of the inferior when we don't have one.
13173         (arm_extract_return_value): Support different floating-point models.
13174         (arm_store_return_value): Likewise.
13175         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13176         ARM_FLOAT_SOFT.
13177         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13178
13179 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13180
13181         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13182         of ``current_gdbarch''.
13183
13184 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13185
13186         * armnbsd-nat.c : ANSIfy all function declarations.
13187         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13188         (fetch_inferior_registers): Re-implement in terms of above.
13189         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13190         (store_inferior_registers): Re-implement in terms of above.
13191
13192 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13193
13194         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13195         kernel.
13196         * arm-linux-tdep.c: Likewise.
13197         * config/arm/tm-linux.h: Likewise.
13198
13199 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13200
13201         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13202         * config/arm/nbsd.mt (TM_FILE): Delete.
13203         * config/arm/tm-nbsd.h: Delete.
13204
13205 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13206
13207         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13208         Initialize CALL_DUMMY_LENGTH.
13209
13210 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13211
13212         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13213         function.
13214         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13215         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13216         defines one thing and that is incorrect for this port.
13217         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13218
13219 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13220
13221         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13222
13223 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13224
13225         * win32-nat.c (display_selector): New function. Displays information
13226         about the information returned by GetThreadSelectorEntry API function.
13227         (display_selectors): New function. Displays the infomation of
13228         the selector given as argument, or of CS, DS ans FS selectors
13229         if no argument is given.
13230         ( _initialize_inftarg): Add "w32" as info prefix command.
13231         Add "info w32 selector" as command calling display_selectors.
13232
13233 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13234
13235         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13236         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13237         if not defined.
13238
13239 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13240
13241         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13242
13243 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13244
13245         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13246         (arm_fix_call_dummy): Call it.
13247         (arm_call_dummy_breakpoint_offset): Delete.
13248         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13249         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13250
13251 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13252
13253         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13254         Default to func_frame_chain_valid.
13255         * gdbarch.h, gdbarch.c: Re-generate.
13256         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13257
13258 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13259
13260         * ppc-linux-nat.c: Update copyright.
13261         (fetch_register, store_register): Add tid parameter, don't compute
13262         tid here.
13263         (fetch_ppc_registers, store_ppc_registers): Add tid
13264         parameter. Pass it along to callees.
13265         (fetch_inferior_registers, store_inferior_registers): Compute tid
13266         here, and pass it to calleed functions.
13267         (fill_gregset, supply_fpregset): Clean up formatting.
13268
13269 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13270
13271         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13272         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13273
13274 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13275
13276         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13277         * gdbarch.c gdbarch.h: Regenerate.
13278         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13279         function.
13280         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13281         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13282         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13283
13284         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13285         * arm-tdep.c (arm_get_longjmp_target): New function.
13286         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13287         this to a positive value register arm_get_longjmp_target as the
13288         longjmp handler.
13289         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13290         (arm_linux_init_abi): Set up longjmp description in tdep.
13291         * armnbsd-nat.c (get_longjmp_target): Delete.
13292         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13293         description in tdep.
13294         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13295         (get_longjmp_target): Delete declaration.
13296         (GET_LONGJMP_TARGET): Delete.
13297         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13298         (GET_LONGJMP_TARGET): Delete.
13299
13300 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13301
13302         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13303         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13304         of ``current_gdbarch''.
13305
13306 2002-02-17  Tom Tromey  <tromey@redhat.com>
13307
13308         * cli/cli-cmds.c (compare_strings): New function.
13309         (complete_command): Only print each unique item once.
13310         * completer.h (complete_line): Declare.
13311         * completer.c (complete_line): New function.
13312         (line_completion_function): Use it.
13313
13314 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13315
13316         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13317         * gdbarch.h, gdbarch.c: Re-generate.
13318
13319 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13320
13321         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13322
13323 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13324
13325         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13326         * valops.c (value_arg_coerce): Don't take the address of a reference
13327         to convert an argument to a reference.
13328
13329 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13330
13331         * win32-nat.c (get_image_name): New function.
13332         (handle_load_dll): Use get_image_name function.
13333         (get_child_debug_event): Avoid registering debug events until possibly
13334         execed process is started.
13335         (child_create_inferior): Allow invocation via shell so that command
13336         line redirection, etc.  works ok.
13337         (_initialize_inftarg): Add new command: "set shell" to control whether
13338         a shell is used to start a process.
13339
13340 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13341
13342         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13343         instead of find_register_by_number.
13344         (cannot_store_register): Likewise.
13345
13346 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13347
13348         * dwarf2read.c: Replace fprintf (stderr, ...) by
13349         fprintf_unfiltered (gdb_stderr, ...).
13350
13351 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13352
13353         * gdbserver/gdbserver.1: Document --attach.
13354
13355 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13356
13357         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13358         descriptions.
13359         * arm-tdep.c (arm_default_arm_le_breakpoint)
13360         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13361         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13362         traditional breakpoint defines.
13363         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13364         (arm_gdbarch_init): Initialize new breakpoint variables.
13365         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13366         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13367         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13368         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13369         code out to ...
13370         (arm_netbsd_init_abi_common): ... here; new function.
13371         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13372         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13373         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13374         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13375
13376 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13377
13378         * arm-tdep.h (enum arm_abi): New enum.
13379         (struct gdbarch_tdep): New structure.
13380         (LOWEST_PC): Provide a default.
13381         (arm_gdbarch_register_os_abi): Declare new function.
13382         * arm-tdep.c (arm_abi_names): New array.
13383         (process_note_abi_tag_sections): New function.
13384         (get_elfosabi): New function.
13385         (arm_gdbarch_register_os_abi): New function.
13386         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13387         support for that ABI has been built in, then call the appropriate
13388         configuration routine.  Use gdbarch_num_regs() to get the number
13389         of registers.
13390         (arm_dump_tdep): New function.
13391         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13392         place-holder functions.
13393         (_initialize_arm_tdep): Register them.
13394         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13395
13396         * armnbsd-tdep.c: New file.
13397         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13398         * config/arm/nbsd.mt (TDEPFILES): Add it.
13399         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13400
13401         * armnbsd-nat.c: Include regcache.h.
13402         * Makefile.in (armnbsd-nat.o): Update dependency list.
13403
13404         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13405
13406 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13407
13408         * gdbserver/Makefile.in: Fix typos in target rules.
13409
13410 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13411
13412         Fix part of PR gdb/267.
13413         * linespec.c (find_methods): Handle constructors specially for now.
13414
13415 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13416
13417         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13418         handling.
13419         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13420         standard_coerce_float_to_double().
13421
13422 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13423
13424         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13425         GDBINIT_FILENAME.
13426
13427 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13428
13429         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13430         find_variant_by_name, because it confuses the multiarch
13431         framework. Return NULL if there isn't an architecture with the
13432         user supplied name, instead of forcing a different one without
13433         recording the change with the multiarch machinery.
13434         (find_variant_by_name): Delete.
13435
13436 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13437
13438         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13439         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13440
13441 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13442
13443         * stack.c (print_frame_info_base): When calling
13444         print_frame_info_listing_hook, set current_source_symtab.
13445
13446 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13447
13448         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13449         and remove unused $(INCLUDE_DIR).
13450         Add regcache.c to OBS.
13451         Add generated register protocol files to clean target.
13452         Update dependencies for new objects, obsolete old target code.
13453
13454         * gdbserver/linux-low.c: Remove all platform-specific code to
13455         new files.  Remove various dead code.  Update to use regcache
13456         functionality.
13457         * gdbserver/remote-utils.c (fromhex): Add return statement
13458         to quiet warning.
13459         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13460         constant.
13461         (input_interrupt): Add integer parameter to match prototype
13462         of a signal handler.
13463         (outreg): Use register_data ().
13464         (prepare_resume_reply): Use gdbserver_expedite_regs.
13465         * gdbserver/server.c (main): Dynamically allocate own_buf because
13466         PBUFSIZ is no longer constant.  Use registers_to_string () and
13467         registers_from_string ().
13468         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13469         for error (), fatal (), and warning ().  Update definition of
13470         PBUFSIZ to use regcache functionality.  Add include guard.
13471         * gdbserver/utils.c (fatal): Add missing ``const''.
13472         (warning): New function.
13473
13474         * regformats/regdat.sh: Include "regcache.h" in generated files.
13475         Provide init_registers () function.
13476         * regformats/regdef.h: Add prototype for set_register_cache ().
13477         Add include guard.
13478
13479         * gdbserver/linux-arm-low.c: New file.
13480         * gdbserver/linux-i386-low.c: New file.
13481         * gdbserver/linux-ia64-low.c: New file.
13482         * gdbserver/linux-m68k-low.c: New file.
13483         * gdbserver/linux-mips-low.c: New file.
13484         * gdbserver/linux-ppc-low.c: New file.
13485         * gdbserver/linux-sh-low.c: New file.
13486
13487         * gdbserver/regcache.c: New file.
13488         * gdbserver/regcache.h: New file.
13489
13490         * gdbserver/low-linux.c: Removed obsolete file.
13491
13492 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13493
13494         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13495         * config/i386/linux.mt: Likewise.
13496         * config/ia64/linux.mt: Likewise.
13497         * config/m68k/linux.mh: Likewise.
13498         * config/powerpc/linux.mh: Likewise.
13499         * config/mips/linux.mt: Likewise.
13500
13501         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13502
13503         * config/i386/i386lynx.mh: Mark gdbserver variables
13504         as (currently) obsolete for this target.
13505         * config/i386/nbsd.mt: Likewise.
13506         * config/i386/nbsdelf.mt: Likewise.
13507         * config/m32r/m32r.mt: Likewise.
13508         * config/m68k/m68klynx.mh: Likewise.
13509         * config/m68k/nbsd.mt: Likewise.
13510         * config/m68k/sun3os4.mh: Likewise.
13511         * config/mips/vr5000.mt: Likewise.
13512         * config/ns32k/nbsd.mt: Likewise.
13513         * config/pa/hppabsd.mh: Likewise.
13514         * config/pa/hppaosf.mh: Likewise.
13515         * config/powerpc/nbsd.mt: Likewise.
13516         * config/rs6000/rs6000lynx.mh: Likewise.
13517         * config/s390/s390.mt: Likewise.
13518         * config/s390/s390x.mt: Likewise.
13519         * config/sparc/sparclynx.mh: Likewise.
13520         * config/sparc/sun4os4.mh: Likewise.
13521         * config/i386/x86-64linux.mt: Likewise.
13522         * config/sparc/linux.mh: Likewise.
13523
13524 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13525
13526         * configure.tgt: Configure gdbserver only for known working
13527         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13528         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13529         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13530         * configure: Regenerated.
13531
13532 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13533
13534         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13535
13536         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13537         (default_gcore_mach): Just return 0, work around a problem in bfd.
13538         (default_gcore_target): OK to return NULL if exec_bfd is null.
13539         (make_mem_sec): Use a cast, avoid a warning.
13540
13541         * procfs.c (find_memory_regions_callback): Use a cast instead of
13542         calling host_pointer_to_address (which complains if
13543         sizeof (host pointer) != sizeof (target pointer)).
13544         (procfs_make_note_section): Avoid overflow in psargs string.
13545
13546         * procfs.c (procfs_make_note_section): Make the default
13547         implementation return an error.
13548
13549 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13550
13551         * procfs.c (procfs_make_note_section): Provide a default definition
13552         (for alpha-dec-osf4.0f). Fix typos.
13553
13554 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13555
13556         * linux-proc.c: Add include of regcache.h.
13557         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13558
13559 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13560
13561         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13562         * memattr.c (create_mem_region): Disallow useless empty region.
13563         Regions are half-open intervals, so allow [A..B) [B..C) as
13564         non-overlapping.
13565
13566 2002-02-13  Michael Chastain <mec@shout.net>
13567
13568         * defs.h: Kill CONST_PTR.
13569         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13570         * c-lang.c (c_builtin_types): Likewise.
13571         * ch-lang.c (ch_builtin_types): Likewise.
13572         * f-lang.c (f_builtin_types): Likewise.
13573         * language.c (unknown_builtin_types): Likewise.
13574         * m2-lang.c (m2_builtin_types): Likewise.
13575         * p-lang.c (pascal_builtin_types): Likewise.
13576         * scm-lang.c (c_builtin_types): Likewise.
13577
13578 2002-02-13  Keith Seitz  <keiths@redhat.com>
13579
13580         * arm-tdep.h (arm_get_next_pc): Add declaration.
13581
13582 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13583
13584         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13585         with other related struct-returning functions.
13586         (arm_extract_struct_value_address): New function.
13587         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13588         initialize float_format, double_format and long_double_format as
13589         appropriate to the endianness of the target.
13590         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13591         (arm_use_struct_convention): Delete declaration.
13592         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13593
13594 2002-02-13  Keith Seitz  <keiths@redhat.com>
13595
13596         * defs.h (core_addr_to_string_nz): New function.
13597
13598 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13599
13600         Apply missing bits of 2002-01-15 patch.
13601         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13602         (fill_fpregset): Use i387_fill_fsave.
13603
13604 2002-02-12  Keith Seitz  <keiths@redhat.com>
13605
13606         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13607         (core_addr_to_string_nz): New function.
13608
13609 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13610
13611         * arm-linux-nat.c: Really include arm-tdep.h.
13612         * config/arm/tm-linux.h (struct type, struct value): Declare.
13613
13614 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13615
13616         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13617         (gcore section): Ifdef for Solaris and Unixware only.
13618         (procfs_do_thread_registers): Unixware needs one lwpstatus
13619         per thread (not one prstatus or pstatus).
13620         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13621         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13622         once before iterating over threads.
13623
13624 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13625
13626         * arm-tdep.h: New file.
13627         * arm-tdep.c: Include arm-tdep.h.
13628         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13629         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13630         (arm_print_float_info, arm_register_type, convert_to_extended)
13631         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13632         (arm_extract_return_value, arm_register_name): Make static.
13633         (arm_software_single_step): Similarly.  Fix types in declaration.
13634         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13635         (arm_store_return_value, arm_store_struct_return): New functions.
13636         (arm_gdbarch_init): Register the above functions.  Also register
13637         call_dummy_start_offset, sizeof_call_dummy_words,
13638         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13639         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13640         max_register_virtual_size, register_size.  Set up
13641         prologue_cache.saved_regs here, rather than ...
13642         (_initialize_arm_tdep): ... here.
13643         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13644         declarations.
13645         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13646         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13647         (arm_print_float_info, arm_register_type, convert_to_extended)
13648         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13649         (arm_extract_return_value, arm_register_name): Delete declarations.
13650         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13651         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13652         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13653         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13654         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13655         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13656         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13657         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13658         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13659         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13660         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13661         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13662         interface.
13663         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13664         * remote-rdi.c remote-rdp.c: Likewise.
13665         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13666         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13667         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13668         definition.
13669
13670         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13671         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13672         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13673         from non-ARM_ prefixed definitions.
13674         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13675         all uses of above.
13676         * remote-rdi.c remote-rdp.c: Likewise.
13677         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13678
13679 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13680
13681         * arm-tdep.c (arm_frameless_function_invocation)
13682         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13683         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13684         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13685         (arm_pop_frame, arm_get_next_pc): Make static.
13686         (arm_gdbarch_init): Register above in gdbarch structure.
13687         (arm_read_fp): Renamed from arm_target_read_fp.
13688         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13689         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13690         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13691         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13692         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13693         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13694         (arm_pc_is_thumb_dummy): Delete declarations.
13695         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13696         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13697         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13698         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13699
13700 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13701
13702         * symtab.c (compare_search_syms): New function.
13703         (sort_search_symbols): New function.
13704         (search_symbols): Sort symbols after searching rather than
13705         before.
13706
13707 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13708
13709         * NEWS: Linux -> GNU/Linux.
13710
13711 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13712
13713         * gdbarch.sh: For for level one methods, disallow a definition
13714         when partially multi-arched.  Add comments explaining rationale.
13715         * gdbarch.h: Re-generate.
13716
13717 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13718
13719         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13720         multi-arch partial.
13721
13722 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13723
13724         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13725         field.  Use diff -u.
13726         * gdbarch.c: Re-generate.
13727
13728 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13729
13730         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13731         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13732         partial.
13733
13734 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13735
13736         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13737         multi-arch partial.
13738         (PUSH_ARGUMENTS): Switch to using predefault.
13739         * gdbarch.c: Regenerate.
13740
13741 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13742
13743         * valops.c (PUSH_ARGUMENTS): Delete definition.
13744         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13745         partial.  Default to default_push_arguments.
13746         * gdbarch.h, gdbarch.c: Regenerate.
13747
13748 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13749
13750         * defs.h (throw_exception): Rename return_to_top_level.  Update
13751         comments.
13752         * utils.c (error_stream, internal_verror, quit): Ditto.
13753         * top.c (throw_exception, catcher): Ditto.
13754         * sparclet-rom.c (sparclet_load): Ditto.
13755         * remote.c (interrupt_query, minitelnet): Ditto.
13756         * remote-sds.c (interrupt_query): Ditto.
13757         * remote-mips.c (mips_error, mips_kill): Ditto.
13758         * ocd.c (interrupt_query): Ditto.
13759         * monitor.c (monitor_interrupt_query): Ditto.
13760         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13761         * target.h: Update comment.
13762
13763         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13764
13765 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13766
13767         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13768         default_double_format.
13769         * gdbarch.h, gdbarch.c: Re-generate.
13770         * findvar.c (floatformat_unknown): Delete variable definition.
13771         * doublest.h (floatformat_unknown): Delete variable declaration.
13772
13773 2002-02-09  Jim Blandy  <jimb@redhat.com>
13774
13775         * stabsread.c (read_type): Add code to parse Sun's syntax for
13776         prototyped function types.
13777
13778 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13779
13780         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13781         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13782
13783 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13784
13785         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13786         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13787         now _initialize_xcoffsolib gets called again and overrides the
13788         commands from solib.c in a native configuration.
13789
13790 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13791
13792         * doublest.c (store_typed_floating): Don't try to return a value.
13793         Fixes PR gdb/290.
13794
13795 2002-02-08  Jim Blandy  <jimb@redhat.com>
13796
13797         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13798         is prototyped and has no arguments, print its argument list as
13799         `(void)'.
13800
13801 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13802
13803         * MAINTAINERS (write-after-approval): Add myself.
13804         (paper-trail): I've escaped!
13805
13806 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13807
13808         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13809         changes.
13810         (_initialize_check_for_gdb_ini): Ditto.
13811
13812 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13813
13814         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13815         xaprintf -> xasprintf.
13816
13817 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13818
13819         * win32-nat.c: Remove use of printf and sprintf functions.
13820
13821 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13822
13823         * arm-tdep.c (arm_frame_chain_valid): Make static.
13824         (arm_push_arguments): Likewise.
13825         (arm_gdbarch_init): New function.
13826         (_initialize_arm_tdep): Call it.
13827         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13828         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13829         (FRAME_CHAIN_VALID): Delete.
13830         (arm_frame_chain_valid): Delete declaration.
13831         (PUSH_ARGUMENTS): Delete.
13832         (arm_push_arguments): Delete declaration.
13833         (CALL_DUMMY_P): Delete.
13834
13835 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13836             Corinna Vinschen  <vinschen@redhat.com>
13837
13838         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13839         on builtin float types.
13840
13841 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13842
13843         * utils.c: Include <curses.h> before "bfd.h".
13844         * tui/tui-hooks.c: Likewise.
13845         * tui/tui.c: Likewise.
13846         * tui/tuiCommand.c: Likewise.
13847         * tui/tuiData.c: Likewise.
13848         * tui/tuiDataWin.c: Likewise.
13849         * tui/tuiDisassem.c: Likewise.
13850         * tui/tuiGeneralWin.c: Likewise.
13851         * tui/tuiIO.c: Likewise.
13852         * tui/tuiLayout.c: Likewise.
13853         * tui/tuiRegs.c: Likewise.
13854         * tui/tuiSource.c: Likewise.
13855         * tui/tuiSourceWin.c: Likewise.
13856         * tui/tuiStack.c: Likewise.
13857         * tui/tuiWin.c: Likewise.
13858
13859 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13860
13861         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13862         to include space for pseudoregs as well. Update loops accordingly.
13863         (sh_fp_frame_init_saved_regs): Ditto.
13864         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13865
13866 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13867
13868         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13869         Add Richard Earnshaw to Arm maintainers.
13870
13871 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13872
13873         * defs.h (warning_begin): Delete declaration.
13874
13875         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13876         Delete macro.
13877
13878 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13879
13880         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13881         Logic bug, remove misplaced else.
13882
13883 2002-02-07  Klee Dienes  <klee@apple.com>
13884
13885         * fork-inferior.c (fork_inferior): Add '!' to the list of
13886         characters that need to be quoted when building a string for the
13887         shell.  Quote '!' specifically with a backslash, since CSH chokes
13888         when trying to evaluate "str!str".
13889
13890 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13891
13892         * rdi-share/host.h: Only provide a typedef for bool if it is not
13893         defined.
13894
13895 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13896
13897         * breakpoint.h (enum bptype): Add new overlay event bp type.
13898         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13899
13900         * breakpoint.c (create_internal_breakpoint): New function.
13901         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13902         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13903         (create_thread_event_breakpoint): Ditto.
13904         (create_solib_event_breakpoint): Ditto.
13905         (create_overlay_event_breakpoint): New function.
13906         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13907         (update_breakpoints_after_exec): Delete and re-initialize
13908         overlay event breakpoints after an exec.  Add FIXME comment
13909         about longjmp breakpoint.
13910         (print_it_typical): Ignore overlay event breakpoints.
13911         (print_one_breakpoint): Ditto.
13912         (mention): Ditto.
13913         (bpstat_what): Do not stop for overlay event breakpoints.
13914         (delete_breakpoint): Don't delete overlay event breakpoints.
13915         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13916         (breakpoint_re_set): Re-create overlay event breakpoint.
13917
13918         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13919         (overlay_manual_command): Disable overlay breakpoints.
13920         (overlay_off_command): Disable overlay breakpoints.
13921
13922 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13923
13924         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13925         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13926         to here from config/tm-arm.h.
13927         (coff_sym_is_thumb): Make static.
13928         (arm_elf_make_msymbol_special): New function.
13929         (arm_coff_make_msymbol_special): New function.
13930         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13931         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13932         (coff_sym_is_thumb): Delete declaration.
13933         (arm_elf_make_msymbol_special): Declare.
13934         (arm_coff_make_msymbol_special): Declare.
13935         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13936         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13937
13938 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13939
13940         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13941
13942 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13943
13944         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13945         * gdbarch.c gdbarch.h: Regenerate.
13946         * arch-utils.c (default_print_float_info): New function.
13947         * arch-utils.h (default_print_float_info): Prototype it.
13948         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13949         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13950         (PRINT_FLOAT_INFO): Document it.
13951
13952         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13953         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13954         (PRINT_FLOAT_INFO): Define.
13955
13956 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13957
13958         * win32-nat.c (_initialize_check_for_gdb_ini):
13959         Add typecast to sprintf argument to suppress a warning.
13960
13961 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13962
13963         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13964         to allow easier handling of pass state.
13965         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13966         that gives exception name and address.
13967         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13968         and set last_sig value to ourstatus->value.sig. Some missing
13969         exceptions added.
13970         (child_continue): Correctly report continue_status.
13971         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13972         TARGET_SIGNAL_0 (new default value).
13973         (child_resume): consider sig argument passed to decide if
13974         the exception should be passed to debuggee or not.
13975
13976 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13977
13978         * regcache.c (fetch_register): Call target_fetch_register
13979         only if we don't call FETCH_PSEUDO_REGISTER.
13980         (store_register): Call target_store_register only if we
13981         don't call STORE_PSEUDO_REGISTER.
13982
13983 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13984
13985         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13986         ELF_MAKE_MSYMBOL_SPECIAL.
13987         * gdbarch.c, gdbarch.h: Regenerate.
13988         * arch-utils.c (default_make_msymbol_special): New function.
13989         * arch-utils.h (default_make_msymbol_special): Export.
13990         * elfread.c (elf_symtab_read): Compile use of
13991         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13992         multiarched.
13993         * coffread.c (coff_symtab_read): Ditto, for
13994         COFF_MAKE_MSYMBOL_SPECIAL.
13995
13996 2002-02-05  Jim Blandy  <jimb@redhat.com>
13997
13998         * solib-svr4.c (svr4_truncate_ptr): New function.
13999         (svr4_relocate_section_addresses): Do the address arithmetic with
14000         the appropriate truncation for target addresses, even when
14001         CORE_ADDR is larger than a target address.
14002
14003 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14004
14005         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14006         to (int *).
14007
14008 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14009
14010         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14011         code.
14012
14013 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14014
14015         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14016
14017 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14018
14019         * gdbserver/linux-low.c: Remove unused include files.
14020
14021 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14022
14023         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14024         (read_inferior_memory): Use it.
14025         (write_inferior_memory): Likewise.
14026
14027 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14028
14029         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14030         grubbing through sys_errlist.
14031
14032 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14033
14034         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14035
14036 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14037         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14038
14039 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14040
14041         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14042         (do_sfunc, set_cmd_sfunc): New functions.
14043
14044         * command.h (struct cmd_list_element): Add field func.
14045         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14046         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14047         * cli/cli-decode.h: Ditto.
14048
14049         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14050         (help_all, help_cmd_list): Ditto.
14051         (find_cmd, complete_on_cmdlist): Ditto.
14052         * top.c (execute_command): Ditto.
14053
14054         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14055         function.sfunc.
14056
14057         * infcmd.c (notice_args_read): Fix function signature.
14058
14059         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14060         * cli/cli-decode.c (add_set_cmd): Ditto.
14061         * utils.c (initialize_utils): Ditto.
14062         * maint.c (_initialize_maint_cmds): Ditto.
14063         * infrun.c (_initialize_infrun): Ditto.
14064         * demangle.c (_initialize_demangler): Ditto.
14065         * remote.c (add_packet_config_cmd): Ditto.
14066         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14067         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14068         * proc-api.c (_initialize_proc_api): Ditto.
14069         * kod.c (_initialize_kod): Ditto.
14070         * valprint.c (_initialize_valprint): Ditto.
14071         * top.c (init_main): Ditto.
14072         * infcmd.c (_initialize_infcmd): Ditto.
14073         * corefile.c (_initialize_core): Ditto.
14074         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14075         * arch-utils.c (initialize_current_architecture): Ditto.
14076         (_initialize_gdbarch_utils): Ditto.
14077         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14078
14079         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14080         * wince.c (_initialize_inftarg): Ditto.
14081         * symfile.c (_initialize_symfile): Ditto.
14082         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14083         * language.c (_initialize_language): Ditto.
14084         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14085
14086 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14087
14088         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14089
14090 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14091
14092         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14093         Add rules for building the register data files.
14094
14095 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14096
14097         * regformats/regdat.sh: Add braces to the definition of
14098         expedite_regs_${arch}.
14099
14100 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14101
14102         * regformats/regdef.h (struct reg): Add comment describing the
14103         requirements for offset and size fields.
14104
14105 2002-02-04  Andreas Schwab  <schwab@suse.de>
14106
14107         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14108         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14109
14110 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14111
14112         * gdbarch.sh (copyright): Update years in generated header.
14113         (SMASH_TEXT_ADDRESS): Add rule.
14114         * gdbarch.h, gdbarch.c: Re-generate.
14115         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14116         * dbxread.c: Likewise.
14117         * dwarfread.c: Likewise.
14118         * elfread.c: Likewise.
14119         * somread.c: Likewise.
14120
14121         * arm-tdep.c (arm_smash_text_address): New function.
14122         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14123
14124 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14125
14126         Add support for hardware watchpoints on win32 native.
14127         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14128         CONTEXT_DEBUG_REGISTERS.
14129         (dr variable): New variable. Static array containing a local copy
14130         of debug registers.
14131         (debug_registers_changed): New variable.  Reflects when debug registers
14132         are changed and need to be written to inferior.
14133         (debug_registers_used): New variable. Reflects when any debug register
14134         was set, used when new threads are created.
14135         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14136         i386-nat code.
14137         (thread_rec): Set dr array if id is the thread of current_event .
14138         (child_continue, child_resume): Change the debug registers for all
14139         threads if debug_registers_changed.
14140         (child_add_thread): Change the debug registers if debug_registers_used.
14141         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14142         Link nm.h to new nm-cygwin.h file.
14143         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14144         of hardware registers.
14145
14146 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14147
14148         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14149         Restore behavour broken by 2002-01-20 Andrew Cagney
14150         <ac131313@redhat.com> IEEE_FLOAT removal.
14151
14152 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14153
14154         * c-valprint.c (c_val_print): Pass a proper valaddr to
14155         cp_print_class_method.
14156         * valops.c (search_struct_method): If there is only one method
14157         and args is NULL, return that method.
14158
14159 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14160
14161         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14162         accessing tag_name directly.
14163
14164 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14165
14166         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14167         of accessing tag_name directly.
14168
14169 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14170
14171         PR gdb/280
14172         * gdbtypes.c (replace_type): New function.
14173         * gdbtypes.h (replace_type): Add prototype.
14174         * stabsread.c (read_type): Use replace_type.
14175
14176 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14177
14178         * Makefile.in (memattr.o): Add missing dependencies rule.
14179
14180 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14181
14182         * breakpoint.c (break_at_finish_command): Really export.
14183         (break_at_finish_at_depth_command): Ditto.
14184         (tbreak_at_finish_command): Ditto.
14185         * hppa-tdep.c: Include completer.h.
14186         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14187         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14188
14189 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14190
14191         * utils.c (do_write): New function.
14192         (error_stream): Rewrite combining the code from error_begin and
14193         verror.
14194         (verror): Rewrite using error_stream.
14195         (error_begin): Delete function.
14196
14197 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14198
14199         * utils.c (error_begin): Make static.
14200         * defs.h (error_begin): Delete declaration.
14201
14202         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14203         (decode_line_1): Use cplusplus_error instead of error_begin,
14204         cplusplus_hint and return_to_top_level.
14205         * coffread.c (coff_symfile_read): Use error instead of error_begin
14206         and return_to_top_level.
14207         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14208
14209 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14210
14211         * language.h (type_error, range_error): Make string parameter
14212         constant.
14213         * language.c (warning_pre_print): Delete extern declaration.
14214         * dwarfread.c (warning_pre_print): Ditto.
14215         * language.c (type_error, range_error): Rewrite to use verror and
14216         vwarning instead of warning_begin.
14217
14218 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14219
14220         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14221         (set_ignore_count): Move misplaced comment back where it belongs.
14222
14223 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14224
14225         * command.h (NO_FUNCTION): Delete macro.
14226         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14227         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14228         * tracepoint.c (_initialize_tracepoint): Ditto.
14229         * cli/cli-decode.c (add_set_cmd): Ditto.
14230         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14231
14232 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14233
14234         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14235         Update ``this'' pointer when calling virtual functions.
14236
14237 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14238
14239         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14240         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14241
14242 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14243
14244         * regformats/reg-arm.dat: New file.
14245         * regformats/reg-i386.dat: New file.
14246         * regformats/reg-ia64.dat: New file.
14247         * regformats/reg-m68k.dat: New file.
14248         * regformats/reg-mips.dat: New file.
14249         * regformats/reg-ppc.dat: New file.
14250         * regformats/reg-sh.dat: New file.
14251         * regformats/regdef.h: New file.
14252         * regformats/regdat.sh: New file.
14253
14254 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14255
14256         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14257         (arm_frame_args_address, arm_frame_locals_address): New functions.
14258         (arm_frame_num_args): New function.
14259         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14260         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14261         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14262
14263 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14264
14265         * breakpoint.c (break_at_finish_command): Export.
14266         (break_at_finish_at_depth_command): Export.
14267         (tbreak_at_finish_command): Export.
14268         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14269         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14270         "txbreak" commands, which are HPPA specific.
14271
14272         * printcmd.c (disassemble_command): Remove an ancient
14273         artifact of an old merge.
14274
14275         * symfile.h (enum overlay_debugging_state):
14276         Define enum constant values for overlay mode.
14277         * symfile.c (overlay_debugging): Use enums instead of literals.
14278         (overlay_is_mapped, overlay_auto_command,
14279         overlay_manual_command): Ditto.
14280
14281         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14282         breakpoint_here_p, breakpoint_inserted_here_p,
14283         breakpoint_thread_match, bpstat_stop_status,
14284         describe_other_breakpoints, check_duplicates, clear_command):
14285         Coding standard fixes.
14286
14287         * target.c (target_xfer_memory): Add spaces, coding standard.
14288         (do_xfer_memory): Add missing line to trust-readonly
14289         code: check bfd SEC_READONLY flag for section.
14290
14291 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14292
14293         * PROBLEMS: Fix typo, 5.1->5.1.1.
14294
14295 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14296
14297         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14298         data symbols, since we search based on textlow and texthigh.
14299         (find_pc_sect_symtab): Likewise.
14300
14301 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14302
14303         * defs.h (vwarning): Declare.
14304         * utils.c (vwarning): New function.
14305         (warning): Call vwarning.
14306         (warning_begin): Delete function.
14307
14308         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14309         the warning message.
14310         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14311         warning_begin.
14312
14313 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14314
14315         * NEWS: Mention "set trust-readonly-sections" command.
14316         Mention generate-core-file command.
14317
14318 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14319
14320         * target.c: New command, "set trust-readonly-sections on".
14321         (do_xfer_memory): Honor the suggestion to trust readonly sections
14322         by reading them from the object file instead of from the target.
14323         (initialize_targets): Register command "set trust-readonly-sections".
14324
14325 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14326
14327         * parse.c (target_map_name_to_register): Simplify, search regs and
14328         pseudo-regs using a single loop.
14329
14330 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14331
14332         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14333
14334 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14335
14336         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14337         * config/i386/i386v42mp.mh: Add i387-nat.o .
14338         * i386v4-nat.c: Include i387-nat.h.
14339         (supply_fpregset): Use i387_supply_fsave.
14340         (fill_fpregset): Use i387_fill_fsave.
14341
14342 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14343
14344         * arm-tdep.c (arm_call_dummy_words): Define.
14345         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14346         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14347         (CALL_DUMMY_WORDS): Define.
14348         (arm_call_dummy_words): Declare.
14349         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14350         (arm_linux_call_dummy_words): Declare.
14351
14352 2002-01-30  Andreas Schwab  <schwab@suse.de>
14353
14354         * m68klinux-nat.c: Fix last change to use regcache_collect
14355         instead of referencing registers[] directly.
14356
14357 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14358
14359         * parse.c (target_map_name_to_register): Delete code wrapped in
14360         #ifdef REGISTER_NAME_ALIAS_HOOK.
14361
14362 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14363
14364         * regcache.c (legacy_read_register_gen): Need to be able to
14365         read pseudo-register as well as real register.
14366         (legacy_write_register_gen): Ditto.
14367
14368 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14369
14370         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14371         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14372         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14373         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14374         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14375         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14376         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14377         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14378         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14379         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14380         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14381         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14382         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14383         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14384         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14385         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14386         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14387         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14388         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14389         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14390
14391 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14392
14393         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14394         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14395         (initialize_current_architecture): Update target_byte_order using
14396         information from BFD.
14397         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14398         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14399
14400 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14401
14402         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14403         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14404
14405         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14406         #ifdef INVALID_FLOAT.
14407         * infcmd.c (do_registers_info): Ditto.
14408         * values.c (unpack_double): Ditto.  Add comment.
14409
14410         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14411         already commented out.
14412
14413 2002-01-26  Andreas Schwab  <schwab@suse.de>
14414
14415         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14416         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14417         registers and add support for PTRACE_GETREGS.
14418
14419 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14420
14421         GDB 5.1.1 released from 5.1 branch.
14422         * NEWS: Add 5.1.1 news.
14423         * README: Sync with 5.1 branch.
14424
14425 2002-01-23  Fred Fish  <fnf@redhat.com>
14426
14427         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14428         stabstring on initial malloc.  Reallocing will copy it for us,
14429         if necessary.
14430
14431 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14432
14433         * Makefile.in (hpread_h): Delete.
14434         (HFILES_NO_SRCDIR): Remove hpread.h.
14435         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14436         (hpread.o): Update dependencies.
14437         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14438
14439         * hp-psymtab-read.c: Remove file.
14440         * hp-symtab-read.c: Remove file.
14441         * hpread.h: Remove file.
14442
14443         * hpread.c: Merge all contents of hp-psymtab-read.c,
14444         hp-symtab-read.c and hpread.h into this file, as it was prior to
14445         January 1999.
14446
14447         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14448         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14449         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14450         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14451
14452 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14453
14454         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14455         fill_gregset): Call gdbarch_tdep() just once, assign result to
14456         variable and use that, instead of calling the function several
14457         times.
14458
14459 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14460
14461         * configure.host: Accept sparcv9 as alias for sparc64.
14462         * configure.tgt: Likewise.
14463
14464 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14465
14466         * solib-aix5.c (build_so_list_from_mapfile)
14467         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14468         arguments is not reversed.
14469         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14470         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14471
14472 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14473
14474         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14475         modified version of obsolete sh_fetch_pseudo_register.
14476         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14477         (sh4_register_read): New function.
14478         (sh_pseudo_register_write): New function. Renamed and modified
14479         version of obsolete sh_store_pseudo_register.
14480         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14481         (sh4_register_write): New function.
14482         (sh_gdbarch_init): Remove setting of gdbarch function
14483         fetch_pseudo_register and store_pseudo_register. Remove setting of
14484         register_convert_to_raw, register_convert_to_virtual,
14485         register_convertible.
14486         (sh_sh4_register_convertible): Delete. No longer needed. All is
14487         taken care by architecture specific functions
14488         register_read/register_write.
14489         (sh_sh4_register_convert_to_virtual): Make static.
14490         (sh_sh4_register_convert_to_raw): Ditto.
14491
14492 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14493
14494         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14495         (floatformat_is_nan, floatformat_mantissa): Ditto.
14496
14497         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14498         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14499         builtin_type_ieee_double_little,
14500         builtin_type_ieee_double_littlebyte_bigword,
14501         builtin_type_m68881_ext, builtin_type_i960_ext,
14502         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14503         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14504         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14505         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14506
14507 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14508
14509         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14510         parameter.  Set frameless flag if it exists and depended of
14511         whether the scanned function is frameless or not.
14512         (xstormy16_skip_prologue): If function is frameless, return
14513         result of xstormy16_scan_prologue().
14514         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14515         call.
14516
14517 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14518
14519         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14520         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14521         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14522         sh_sh4_register_byte, sh_sh4_register_raw_size,
14523         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14524         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14525         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14526         sh_store_pseudo_register, sh_do_pseudo_register): Call
14527         gdbarch_tdep() just once, assign result to variable and use that,
14528         instead of calling the function several times.
14529
14530 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14531
14532         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14533         macros instead of LAST_FPU_CTRL_REGNUM.
14534         (store_register): Likewise.
14535
14536 2002-01-21  Jim Blandy  <jimb@redhat.com>
14537
14538         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14539         is up-to-date before running the program, not just when a program
14540         exits.
14541
14542 2002-01-21  Fred Fish  <fnf@redhat.com>
14543
14544         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14545         when we have found all instructions we are looking for.
14546
14547 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14548
14549         * arm-tdep.c (arm_register_name): New function.
14550         (arm_registers_names): Make static.
14551         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14552         (arm_register_name): Declare.
14553         (REGISTER_NAME): Use it.
14554
14555 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14556             Kevin Buettner  <kevinb@redhat.com>
14557
14558         Convert arm targets to new FRAME interface.
14559         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14560         (arm_frame_find_save_regs): Delete.
14561         (arm_frame_init_saved_regs): New.
14562         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14563         Allocate extra_info as required.  Convert all uses of fsr.regs
14564         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14565         to use extra_info.
14566         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14567         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14568         (check_prologue_cache, save_prologue_cache): Likewise.
14569         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14570         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14571         (FRAME_FIND_SAVED_REGS): Delete.
14572         (arm_frame_find_saved_regs): Delete prototype.
14573         (arm_frame_init_saved_regs): New prototype.
14574         (FRAME_INIT_SAVED_REGS): Define.
14575
14576 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14577
14578         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14579
14580 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14581
14582         From Jeff Law <law@redhat.com>:
14583         * infttrace.c: Include <sys/pstat.h>.
14584         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14585         exec file if the ttrace equivalent fails.
14586
14587 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14588
14589         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14590         (closeLogFile): Ditto.
14591
14592 2002-01-20  Michael Chastain  <mec@shout.net>
14593
14594         * top.c (print_gdb_version): Bump copyright year to 2002.
14595
14596 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14597
14598         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14599         Zannoni and Eli Zaretskii.
14600
14601 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14602
14603         * buildsym.c: Update copyright years.
14604         * c-typeprint.c: Likewise.
14605         * dwarf2read.c: Likewise.
14606         * f-typeprint.c: Likewise.
14607         * gdbtypes.c: Likewise.
14608         * gdbtypes.h: Likewise.
14609         * hp-symtab-read.c: Likewise.
14610         * hpread.c: Likewise.
14611         * mdebugread.c: Likewise.
14612         * p-typeprint.c: Likewise.
14613
14614 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14615
14616         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14617         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14618         byte-order selectable.
14619         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14620         * arch-utils.c: Ditto.
14621         (set_endian): Ditto.
14622         (set_endian_from_file): Ditto.
14623         * gdbserver/low-sim.c (create_inferior): Ditto.
14624         * gdbarch.sh: Ditto.
14625         * gdbarch.h: Re-generate.
14626         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14627         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14628         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14629         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14630         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14631         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14632         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14633         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14634         macro definition.
14635         * config/mips/tm-wince.h: Remove #undef of macro
14636         TARGET_BYTE_ORDER_SELECTABLE.
14637         * config/sh/tm-wince.h: Ditto.
14638
14639 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14640
14641         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14642         member function fields.  Add accessor macro
14643         TYPE_FN_FIELD_ARTIFICIAL.
14644         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14645         * c-typeprint.c (c_type_print_base): Skip artificial member
14646         functions.
14647
14648 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14649
14650         * f-typeprint.c: Delete unused function f_type_print_args.
14651         * p-typeprint.c: Delete unused function pascal_type_print_args.
14652
14653 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14654
14655         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14656         comment.  Add ``artificial'' to ``union field_location''.
14657
14658         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14659
14660         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14661         * mdebugread.c (parse_symbol): Likewise.
14662         * stabsread.c (define_symbol): Likewise.
14663         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14664         initializing TYPE_FIELD_BITPOS to n (obsolete).
14665         (hpread_doc_function_type): Likewise.
14666         * hpread.c (hpread_function_type): Likewise.
14667
14668 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14669
14670         * configure.in (host_makefile_frag): Only require a host makefile
14671         fragment when a native build.
14672         * configure: Re-generate.
14673
14674 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14675
14676         * doublest.h (floatformat_from_type): Declare.
14677         * doublest.c (floatformat_from_type): New function.
14678         (convert_typed_floating): Use.
14679
14680         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14681         call to function floatformat_from_type.
14682
14683         * gdbarch.sh (IEEE_FLOAT): Delete.
14684         * gdbarch.h, gdbarch.c: Re-generate.
14685         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14686         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14687         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14688         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14689         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14690         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14691         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14692         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14693         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14694         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14695         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14696         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14697
14698         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14699         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14700         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14701         * sh-tdep.c (sh_gdbarch_init): Ditto.
14702         * mips-tdep.c (mips_gdbarch_init): Ditto.
14703         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14704         * cris-tdep.c (cris_gdbarch_init): Ditto.
14705
14706 2002-01-20  Jiri Smid  <smid@suse.cz>
14707
14708         * configure.host, configure.tgt: Support x86-64.
14709         * NEWS: Note new target x86-64.
14710
14711         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14712         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14713         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14714         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14715         x86-64-linux-nat.o): Fix dependencies.
14716
14717 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14718
14719         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14720         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14721         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14722         * config/sparc/xm-sun4os4.h: Delete file.
14723         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14724
14725 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14726
14727         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14728         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14729         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14730         * config/i386/i386lynx.mh (XM_FILE): Delete.
14731         * config/rs6000/xm-rs6000ly.h: Delete file.
14732         * config/sparc/xm-sparclynx.h: Delete file.
14733         * config/m68k/xm-m68klynx.h: Delete file.
14734         * config/i386/xm-i386lynx.h: Delete file.
14735         * config/xm-lynx.h: Delete file.
14736         * config/djgpp/fnchange.lst: Update.
14737
14738 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14739
14740         * alpha-tdep.c (alpha_register_byte): New function.
14741         (alpha_register_raw_size): Ditto.
14742         (alpha_register_virtual_size): Ditto.
14743         (alpha_skip_prologue_internal): Renamed from
14744         alpha_skip_prologue.
14745         (alpha_skip_prologue): New version that calls
14746         alpha_skip_prologue_internal.
14747         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14748         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14749         second argument from alpha_skip_prologue.
14750         (REGISTER_BYTE): Use alpha_register_byte.
14751         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14752         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14753         (FRAMELESS_FUNCTION_INVOCATION): Use
14754         generic_frameless_function_invocation_not.
14755         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14756         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14757
14758 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14759
14760         * config/mips/xm-news-mips.h: Delete file.
14761         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14762
14763         * config/m88k/xm-m88k.h: Delete file.
14764         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14765         * config/m88k/xm-delta88v4.h: Ditto.
14766         * config/m88k/xm-delta88.h: Ditto.
14767
14768         * config/alpha/xm-fbsd.h: Delete file.
14769         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14770
14771         * config/sparc/xm-sparc.h: Delete file.
14772         * Makefile.in (xm-sun4os4.h): Delete dependency.
14773         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14774         * config/sparc/xm-sun4os4.h: Ditto.
14775         * config/sparc/xm-linux.h: Ditto.
14776
14777         * config/i386/xm-windows.h: Delete file.
14778
14779 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14780
14781         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14782         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14783
14784 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14785
14786         * alpha-tdep.c (alpha_call_dummy_words): New.
14787         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14788         (CALL_DUMMY_P): Define.
14789         (CALL_DUMMY_WORDS): Define.
14790         (SIZEOF_CALL_DUMMY_WORDS): Define.
14791
14792 2002-01-19  Per Bothner  <per@bothner.com>
14793
14794         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14795         isn't NULL, which can happen with some gcj-3.x-produced code.
14796
14797 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14798
14799         * alpha-tdep.c (alpha_register_virtual_type): New function.
14800         (alpha_init_frame_pc_first): Ditto.
14801         (alpha_fix_call_dummy): Ditto.
14802         (alpha_store_struct_return): Ditto.
14803         (alpha_extract_struct_value_address): Ditto.
14804         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14805         alpha_register_virtual_type.
14806         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14807         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14808         alpha_extract_struct_value_address.
14809         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14810         (INIT_FRAME_PC): Use init_frame_pc_noop.
14811         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14812
14813 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14814
14815         * i386gnu-nat.c: Include "i386-tdep.h".
14816         (fetch_fpregs): Simplify code dealing with uninitialized floating
14817         point states such that it doesn't require FP7_REGNUM.
14818
14819 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14820
14821         * alpha-tdep.c (frame_extra_info): New.
14822         (alpha_find_saved_regs): Make static.  Use
14823         frame->extra_info.
14824         (alpha_frame_init_saved_regs): New function.
14825         (alpha_frame_saved_pc): Use frame->extra_info.
14826         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14827         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14828         (init_extra_frame_info): Rename to...
14829         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14830         (alpha_print_extra_frame_info): New function.
14831         (alpha_frame_locals_address): Ditto.
14832         (alpha_frame_args_address): Ditto.
14833         (alpha_pop_frame): Use frame->extra_info.
14834         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14835         alpha_frame_args_address.
14836         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14837         (alpha_find_saved_regs): Remove prototype.
14838         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14839         (EXTRA_FRAME_INFO): Remove.
14840         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14841         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14842
14843 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14844
14845         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14846         (alpha_cannot_fetch_register): Ditto.
14847         (alpha_cannot_store_register): Ditto.
14848         (alpha_register_convertible): Ditto.
14849         (alpha_use_struct_convention): Ditto.
14850         * config/alpha/tm-alpha.h: Update copyright years.
14851         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14852         (INNER_THAN): Use core_addr_lessthan.
14853         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14854         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14855         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14856         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14857         (FRAME_CHAIN): Remove unnecessary cast.
14858
14859 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14860
14861         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14862         obsolete.
14863
14864 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14865
14866         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14867         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14868         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14869         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14870         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14871         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14872         * x86-64-linux-nat.c: Ditto.
14873
14874 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14875
14876         * alpha-tdep.c (alpha_register_name): New function.
14877         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14878         (REGISTER_NAME): Define.
14879
14880 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14881
14882         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14883
14884 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14885
14886         * alpha-tdep.c: Update copyright years.
14887         (alpha_next_pc): New function.
14888         (alpha_software_single_step): Ditto.
14889         * config/alpha/tm-alpha.h: Add prototype for
14890         alpha_software_single_step.
14891
14892 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14893
14894         * alphabsd-nat.c: Update copyright years.
14895         (fill_gregset): Use regcache_collect.
14896         (fill_fpregset): Likewise.
14897         (fetch_inferior_registers): Only fetch integer registers
14898         if requested to do so.
14899         (store_inferior_registers): Only store integer registers
14900         if requested to do so.
14901
14902 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14903
14904         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14905         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14906         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14907         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14908         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14909         * config/arm/linux.mh (XDEPFILES): Delete.
14910         * config/arm/nbsd.mh (XDEPFILES): Delete.
14911         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14912         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14913         * config/i386/i386m3.mh (XDEPFILES): Delete.
14914         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14915         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14916         * config/i386/fbsd.mh (XDEPFILES): Delete.
14917         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14918         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14919         * config/i386/i386v4.mh (XDEPFILES): Delete.
14920         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14921         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14922         * config/i386/i386aix.mh (XDEPFILES): Delete.
14923         * config/i386/go32.mh (XDEPFILES): Delete.
14924         * config/i386/cygwin.mh (XDEPFILES): Delete.
14925         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14926         * config/i386/i386mach.mh (XDEPFILES): Delete.
14927         * config/i386/i386v32.mh (XDEPFILES): Delete.
14928         * config/i386/linux.mh (XDEPFILES): Delete.
14929         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14930         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14931         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14932         * config/i386/i386sco.mh (XDEPFILES): Delete.
14933         * config/i386/i386v.mh (XDEPFILES): Delete.
14934         * config/i386/nbsd.mh (XDEPFILES): Delete.
14935         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14936         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14937         * config/i386/symmetry.mh (XDEPFILES): Delete.
14938         * config/i386/obsd.mh (XDEPFILES): Delete.
14939         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14940         * config/ia64/linux.mh (XDEPFILES): Delete.
14941         * config/ia64/aix.mh (XDEPFILES): Delete.
14942         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14943         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14944         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14945         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14946         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14947         * config/m68k/linux.mh (XDEPFILES): Delete.
14948         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14949         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14950         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14951         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14952         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14953         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14954         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14955         * config/m88k/delta88.mh (XDEPFILES): Delete.
14956         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14957         * config/m88k/m88k.mh (XDEPFILES): Delete.
14958         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14959         * config/mips/linux.mh (XDEPFILES): Delete.
14960         * config/mips/irix6.mh (XDEPFILES): Delete.
14961         * config/mips/irix5.mh (XDEPFILES): Delete.
14962         * config/mips/irix4.mh (XDEPFILES): Delete.
14963         * config/mips/irix3.mh (XDEPFILES): Delete.
14964         * config/mips/decstation.mh (XDEPFILES): Delete.
14965         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14966         (NATDEPFILES): Move core-aout.o to here.
14967         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14968         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14969         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14970         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14971         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14972         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14973         * config/pa/hpux11.mh (XDEPFILES): Delete.
14974         * config/powerpc/aix.mh (XDEPFILES): Delete.
14975         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14976         * config/powerpc/linux.mh (XDEPFILES): Delete.
14977         * config/romp/rtbsd.mh: Rename XDEPFILES.
14978         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14979         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14980         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14981         * config/s390/s390.mh (XDEPFILES): Delete.
14982         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14983         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14984         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14985         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14986         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14987         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14988         * config/sparc/linux.mh (XDEPFILES): Delete.
14989         * config/vax/vaxult.mh (XDEPFILES): Delete.
14990         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14991         * Makefile.in (DEPFILES): Remove XDEPFILES.
14992
14993 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14994
14995         * utils.c (internal_verror): Fix comments, default is yes not no.
14996         Update queries to match.  Default to quit and dump core.
14997
14998 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14999
15000         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15001         copyright.
15002         * defs.h, event-top.c, gdbcmd.h: Ditto.
15003         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15004         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15005         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15006         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15007         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15008         * mi/mi-main.c:Ditto.
15009
15010         * stack.c, symfile.c: Update copyright.
15011
15012 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15013
15014         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15015         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15016         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15017         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15018
15019 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15020
15021         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15022         * gdbserver/low-lynx.c (myattach): Likewise.
15023         * gdbserver/low-nbsd.c (myattach): Likewise.
15024         * gdbserver/low-sim.c (myattach): Likewise.
15025         * gdbserver/low-sparc.c (myattach): Likewise.
15026         * gdbserver/low-sun3.c (myattach): Likewise.
15027
15028         * gdbserver/low-linux.c (myattach): New function.
15029
15030         * gdbserver/server.c (attach_inferior): New function.
15031         (main): Handle "--attach".
15032
15033 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15034
15035         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15036         maintainer.
15037
15038 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15039
15040         * c-typeprint.c (is_type_conversion_operator): Add additional
15041         check for non-conversion operators.
15042
15043 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15044
15045         * linux-proc.c: Add "info proc" command, a la procfs.c.
15046         (read_mapping): New function, abstract and re-use code.
15047         (linux_find_memory_regions): Use new func read_mapping.
15048         (linux_info_proc_cmd): New function, implement "info proc".
15049         (_initialize_linux_proc): Add new command "info proc".
15050
15051 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15052
15053         * symfile.c (generic_load): Use bfd_map_over_sections method
15054         instead of manipulating bfd structure members directly.
15055         (add_section_size_callback): New function, bfd sections callback
15056         used by generic_load.
15057         (load_sections_callback): New function, bfd sections callback
15058         used by generic_load.
15059
15060 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15061
15062         [Based on work by Jim Blandy]
15063         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15064         (builtin_type_vec128): Export.
15065         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15066         types.
15067         (builtin_type_vec128): New builtin type for 128 bit vector
15068         registers.
15069         (build_gdbtypes): Initialize builtin_type_v16qi and
15070         builtin_type_v8hi. Create the vec128 register builtin type
15071         structure.
15072         (build_builtin_type_vec128): New function.
15073         (_initialize_gdbtypes): Register builtin_type_v16qi and
15074         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15075         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15076         AltiVec register to new builtin type.
15077
15078 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15079
15080         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15081         to make_cv_type.
15082
15083 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15084
15085         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15086         CLEAN_UP_REGISTER_VALUE.
15087         * regcache.c (supply_register): Update only call.
15088
15089 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15090
15091         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15092         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15093         a29k-*-vxworks* targets as obsolete.
15094
15095 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15096
15097         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15098         until we can resolve portability issues.
15099         * gregset.h: Remove references to fpxregs.
15100         * gcore.c (gcore_command): Initialize note_sec to NULL.
15101
15102 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15103
15104         * signals.c (target_signal_to_name): Rewrite.  Only use
15105         signals[].name when in bounds and non-NULL.
15106
15107 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15108
15109         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15110         * signals.c (target_signal_to_name): Verify that SIG is within the
15111         bounds of the signals array.
15112
15113 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15114
15115         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15116
15117 2002-01-13  Keith Seitz  <keiths@redhat.com>
15118
15119         * stack.c (print_frame_info_base): Print the frame's pc
15120         only if when print_frame_info_listing_hook is not defined.
15121
15122 2002-01-13  Keith Seitz  <keiths@redhat.com>
15123
15124         * varobj.c (varobj_set_value): Make sure that there were no
15125         errors evaluating the object before attempting to set its
15126         value.
15127         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15128         so this offset adjustment is no longer necessary.
15129         (create_child): Don't set the error flag if the child is
15130         a CPLUS_FAKE_CHILD.
15131         (value_of_child): If value_fetch_lazy fails, return NULL
15132         so that callers will be notified that an error occurred.
15133         (c_value_of_variable): Delay check of variable's validity
15134         until later. We actually want all structs and unions to have
15135         the value "{...}".
15136         Do not return "???" for variables which could not be evaluated.
15137         This error condition must be returned to the caller so that it
15138         can get the error condition from gdb.
15139         (cplus_name_of_child): Adjust index for vptr before figuring
15140         out the name of the child.
15141         (cplus_value_of_child): If a child's (real) parent is not valid,
15142         don't even bother trying to give a value for it. Just return
15143         an error. Change all instances in this function.
15144         (cplus_type_of_child): If our parent is one of the "fake"
15145         parents, we need to get at the type of the real parent, and
15146         derive the child's true type using this information.
15147
15148 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15149
15150         From 2002-01-09 John Marshall <johnm@falch.net>:
15151         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15152         sources.redhat.com, and tweak some related URLs which had
15153         suffered from linkrot.
15154
15155 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15156
15157         From Jeff law:
15158         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15159         structures passed in registers.
15160
15161 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15162
15163         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15164         white space which prevented compilation.  Reported by DSK
15165         <dsk@student.unsw.edu.au>.
15166
15167 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15168
15169         * symfile.c (build_section_addr_info_from_section_tab):
15170         Use bfd access method instead of manipulating bfd directly.
15171         (syms_from_objfile): Ditto.
15172         (simple_overlay_update_1): Ditto.
15173         (simple_overlay_update): Ditto.
15174         (generic_load): Ditto.
15175         (overlay_unmapped_address): FIXME comment, bfd access methods.
15176         (sections_overlap): FIXME comment, bfd access methods.
15177         (pc_in_mapped_range): FIXME comment, bfd access methods.
15178         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15179         (section_is_mapped): FIXME comment, bfd access methods.
15180         (section_is_overlay): FIXME comment, bfd access methods.
15181
15182         * symfile.c (generic_load): Whitespace and long line cleanups.
15183         Remove duplicate variable, change several local variables to
15184         more appropriate data types.
15185         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15186
15187 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15188
15189         From Peter Schauer:
15190         * language.c (longest_local_hex_string_custom): Use phex_nz to
15191         convert NUM to a hex string.
15192
15193 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15194
15195         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15196         the function.
15197         Update Copyright year.
15198
15199 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15200
15201         * language.c (longest_raw_hex_string): Delete unused function.
15202
15203 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15204
15205         * MAINTAINERS (write-after-approval): Add myself.
15206         * dwarf2read.c (read_tag_string_type): Handling of
15207         DW_AT_byte_size.
15208         (read_tag_string_type): FORTRAN fix to prevent propagation of
15209         first string size.
15210         (set_cu_language): Handling of DW_LANG_Fortran95
15211
15212 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15213
15214         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15215         GETPID(inferior_ptid).
15216         (store_inferior_registers): Likewise.
15217
15218 2002-01-10  Jason Merrill  <jason@redhat.com>
15219
15220         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15221         Fix DW_OP_minus.
15222
15223 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15224
15225         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15226         and bfd/elf32-sh-nbsd.c.
15227
15228 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15229
15230         * NEWS: Mention --pid and corefile/proc-id behavior change.
15231
15232         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15233         * gcore.c: Include cli/cli-decode.h instead of command.h.
15234
15235         * main.c (captured_main): Add new command line option "--pid".
15236         If the second command line argument (following the symbol-file)
15237         begins with a digit, try to attach to it before trying to open
15238         it as a corefile.
15239         (print_gdb_help): Document the "--pid" argument.
15240
15241 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15242
15243         * completer.c (command_completer): New function.
15244
15245         * completer.h <command_completer>: Add prototype.
15246
15247         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15248         completer for the "help" command.
15249
15250 2002-01-09  Jason Merrill  <jason@redhat.com>
15251
15252         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15253
15254 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15255
15256         * i386-linux-nat.c (fill_fpxregset): Make global.
15257         (store_fpxregset): Ditto.
15258
15259         * gregset.h (gdb_fpxregset_t): Define.
15260         (supply_fpxregset): Prototype.
15261         (fill_fpxregset): Prototype.
15262
15263         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15264
15265 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15266
15267         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15268         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15269         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15270
15271 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15272
15273         * MAINTAINERS: Update target maintainer rules so that any
15274         Maintainer can approve a tested patch for a maintenance-only
15275         target.
15276
15277 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15278
15279         * MAINTAINERS (write-after-approval): Add myself.
15280
15281         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15282         IN_SIGTRAMP.
15283
15284 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15285
15286         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15287         real name of the executable, rather than the /proc name.
15288
15289 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15290
15291         Implement a "generate-core-file" command in gdb, save target state.
15292         * gcore.c: New file.  Implement new command 'generate-core-file'.
15293         Save a corefile image of the current state of the inferior.
15294         * linux-proc.c: Add linux-specific code for saving corefiles.
15295         * target.h (struct target_ops): Add new target vectors for saving
15296         corefiles; to_find_memory_regions and to_make_corefile_notes.
15297         (target_find_memory_regions): New macro.
15298         (target_make_corefile_notes): New macro.
15299         * target.c (update_current_target): Inherit new target methods.
15300         (dummy_find_memory_regions): New place-holder method.
15301         (dummy_make_corefile_notes): New place-holder method.
15302         (init_dummy_target): Initialize new dummy target vectors.
15303         * exec.c (exec_set_find_memory_regions): New function.
15304         Allow the exec_ops vector for memory regions to be taken over.
15305         (exec_make_note_section): New function, target vector method.
15306         * defs.h (exec_set_find_memory_regions): Export prototype.
15307         * procfs.c (proc_find_memory_regions): New function, corefile method.
15308         (procfs_make_note_section): New function, corefile method.
15309         (init_procfs_ops): Set new target vector pointers.
15310         (find_memory_regions_callback): New function.
15311         (procfs_do_thread_registers): New function.
15312         (procfs_corefile_thread_callback): New function.
15313         * sol-thread.c (sol_find_memory_regions): New function.
15314         (sol_make_note_section): New function.
15315         (init_sol_thread_ops): Initialize new target vectors.
15316         * inftarg.c (inftarg_set_find_memory_regions): New function.
15317         Allow to_find_memory_regions vector to be taken over.
15318         (inftarg_set_make_corefile_notes): New function.
15319         Allow to_make_corefile_notes vector to be taken over.
15320         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15321         interface layer if not target_has_execution (may be a corefile).
15322         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15323         * config/sparc/sun4sol2.mh: Ditto.
15324         * config/alpha/alpha-linux.mh: Ditto.
15325         * config/arm/linux.mh: Ditto.
15326         * config/i386/x86-64linux.mh: Ditto.
15327         * config/ia64/linux.mh: Ditto.
15328         * config/m68k/linux.mh: Ditto.
15329         * config/mips/linux.mh: Ditto.
15330         * config/powerpc/linux.mh: Ditto.
15331         * config/sparc/linux.mh: Ditto.
15332
15333 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15334
15335         * arm-linux-nat.c: Remove references to regcache.c internal data
15336         (registers[] and register_valid[]).
15337
15338 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15339
15340         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15341         so that attaching to a pid will automatically read the process's
15342         symbol file and shlibs.
15343         * Makefile.in: Add rule for linux-proc.o.
15344         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15345         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15346         * config/arm/linux.mh: Ditto.
15347         * config/i386/linux.mh: Ditto.
15348         * config/i386/x86-64linux.mh: Ditto.
15349         * config/ia64/linux.mh: Ditto.
15350         * config/m68k/linux.mh: Ditto.
15351         * config/mips/linux.mh: Ditto.
15352         * config/powerpc/linux.mh: Ditto.
15353         * config/sparc/linux.mh: Ditto.
15354
15355 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15356
15357         * win32-nat.c: Add i386-tdep.h dependency.
15358
15359 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15360
15361         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15362         instead of bfd_get_arch_size.  Don't bail out just because
15363         there's no exec_bfd.
15364
15365         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15366         * p-valprint.c (pascal_object_print_value): Ditto.
15367         * somread.c (som_symtab_read): Ditto.
15368         * symfile.c (simple_free_overlay_region_table): Ditto.
15369         * valops.c (value_assign): Ditto.
15370
15371         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15372         use tilde_expand and strerror for opening save-tracepoints file.
15373
15374         * thread-db.c (thread_db_new_objfile): Indendation fix.
15375
15376         * infptrace.c (GDB_MAX_ALLOCA): New define.
15377         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15378         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15379         can be overridden with whatever value is appropriate to the host).
15380         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15381         alloca to allocate potentially large buffer.
15382         * rs6000-nat.c (child_xfer_memory): Ditto.
15383         * symm-nat.c (child_xfer_memory): Ditto.
15384         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15385
15386 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15387
15388         From Nick Clifton  <nickc@redhat.com>
15389         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15390
15391 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15392
15393         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15394         Don't use exec_bfd if it's NULL.
15395
15396 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15397
15398         * valops.c (value_arg_coerce): Fix formatting.
15399
15400 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15401
15402         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15403         * gnu-nat.c: Ditto.
15404
15405 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15406
15407         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15408         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15409         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15410         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15411         z8k-coff have not been multi-arched.  Update z8k-coff build
15412         status.
15413
15414 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15415
15416         * MAINTAINERS: Mark a29k target as obsolete.
15417         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15418         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15419         comments.
15420         * NEWS: Note that a29k targets are obsolete.
15421         * a29k-tdep.c: Mark as obsolete.
15422         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15423         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15424         a29k-*-vxworks* targets as obsolete.
15425         * remote-adapt.c: Obsolete.
15426         * remote-eb.c: Obsolete.
15427         * remote-mm.c: Obsolete.
15428         * remote-udi.c: Obsolete.
15429         * config/a29k/a29k-udi.mt: Obsolete.
15430         * config/a29k/a29k.mt: Obsolete.
15431         * config/a29k/tm-a29k.h: Obsolete.
15432         * config/a29k/tm-vx29k.h: Obsolete.
15433         * config/a29k/vx29k.mt: Obsolete.
15434
15435 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15436
15437         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15438         with BFD_ENDIAN_BIG.
15439
15440 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15441
15442         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15443         * configure, config.in: Re-generate.
15444         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15445         * defs.h: Do not include <endian.h>.
15446
15447 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15448
15449         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15450         * config.in: Regenerate.
15451         * configure.in: Update copyright years.
15452         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15453         * configure: Regenerate.
15454         * i386bsd-nat.c: Update copyright years.
15455         (fill_gregset): Use regcache_collect.
15456         (fetch_inferior_registers): Only fetch integer registers
15457         if requested to do so.  Add support for XMM registers
15458         using PT_GETXMMREGS.
15459         (store_inferior_registers): Only store integer registers
15460         if requested to do so.  Add support for XMM registers
15461         using PT_SETXMMREGS.
15462         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15463         (store_inferior_registers): Remove.
15464         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15465         (fetch_elfcore_registers): New function.
15466         (i386nbsd_elfcore_fns): New.
15467         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15468         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15469         i386bsd-nat.o.
15470         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15471         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15472         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15473         * config/i386/tm-nbsd.h: Update copyright years.
15474         (HAVE_SSE_REGS): Define.
15475         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15476         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15477         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15478         (SIGCONTEXT_PC_OFFSET): Remove.
15479         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15480
15481 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15482
15483         * configure.tgt: Remove powerpc-*-macos* target.
15484         * config/m68k/xm-mpw.h: Delete file.
15485         * config/xm-mpw.h: Delete file.
15486         * ser-mac.c: Delete file.
15487         * mpw-make.sed: Delete file.
15488         * mpw-config.in: Delete file.
15489         * mac-xdep.c: Delete file.
15490         * mac-gdb.r: Delete file.
15491         * mac-defs.h: Delete file.
15492         * mac-nat.c: Delete file.
15493         * config/powerpc/macos.mh: Delete file.
15494         * config/powerpc/macos.mt: Delete file.
15495         * config/powerpc/nm-macos.h: Delete file.
15496         * config/powerpc/tm-macos.h: Delete file.
15497         * source.c (openp, open_source_file): Remove obsolete code.
15498         * top.c (gdb_readline): Ditto.
15499         * utils.c (query): Ditto.
15500         * event-top.c (display_gdb_prompt): Ditto.
15501         * Makefile.in (ser-mac.o): Delete obsolete target.
15502         * NEWS: Update.
15503
15504 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15505
15506         * defs.h (BIG_ENDIAN): Delete macro definition.
15507         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15508         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15509         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15510         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15511         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15512         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15513         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15514         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15515         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15516         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15517         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15518         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15519         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15520         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15521         * gdbarch.c: Re-generate.
15522
15523 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15524
15525         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15526         for core files.
15527
15528 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15529
15530         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15531
15532 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15533
15534         * value.h (value_ptr): Delete typedef.
15535
15536 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15537
15538         * i386nbsd-nat.c: Update copyright years.
15539         Include i386-tdep.h.
15540
15541 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15542
15543         * stabsread.c: Update copyright years.
15544
15545         From Debashis Mahata <debashis.mahata@wipro.com>:
15546         (read_struct_fields): Deal with Sun C compiler erroneous stab
15547         output for structs and unions.
15548         Fix PR gdb/269.
15549
15550 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15551
15552         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15553         prototype.
15554
15555 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15556
15557         * cp-abi.c: Fix whitespace.
15558         (baseclass_offset): New wrapper function.
15559         * cp-abi.h (baseclass_offset): Add prototype.
15560         (struct cp_abi_ops): Add baseclass_offset pointer.
15561
15562         * valops.c (vb_match): Move to...
15563         * gnu-v2-abi.c (vb_match): here.
15564         * valops.c (baseclass_offset): Move to...
15565         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15566
15567         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15568
15569         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15570         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15571         * hpacc-abi.c (init_hpacc_ops): Likewise.
15572
15573 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15574
15575         * valops.c (find_overload_match): Accept obj as a
15576         reference parameter.  Update it before returning.
15577         * value.h (find_overload_match): Update prototype.
15578         * eval.c (evaluate_subexp_standard): Pass object to
15579         find_overload_match by reference.
15580
15581 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15582
15583         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15584         register attribute from value declarations.
15585         * valops.c: Ditto.
15586         * value.h: Ditto.
15587         * scm-lang.c (scm_lookup_name): Ditto.
15588
15589 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15590
15591         Abstract the functionality of iterating over mapped memory
15592         regions into a general purpose iterator function.
15593         * procfs.c (iterate_over_mappings): New function, general purpose
15594         iterator for memory sections.
15595         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15596         (solib_mappings_callback): New function, callback for above.
15597         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15598         (info_mappings_callback): New function, callback for above.
15599
15600         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15601
15602 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15603
15604         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15605         * i386-tdep.c: Include "elf-bfd.h".
15606         (process_note_abi_tag_sections): New function.
15607         (i386_gdbarch_init): Add code to recognize various OS/ABI
15608         combinations.
15609
15610         * maint.c (_initialize_maint_cmds): Add missing \ in
15611         string-literal.
15612
15613 For older changes see ChangeLog-2001
15614 \f
15615 Local Variables:
15616 mode: change-log
15617 left-margin: 8
15618 fill-column: 74
15619 version-control: never
15620 End: