* mdebugread.c (parse_symbol): Skip stProc entries which storage
[external/binutils.git] / gdb / ChangeLog
1 2003-01-07  J. Brobecker  <brobecker@gnat.com>
2
3         * mdebugread.c (parse_symbol): Skip stProc entries which storage
4         class is not scText. These do not define "real" procedures.
5         (parse_partial_symbols): Likewise.
6
7 2003-01-06  Michael Snyder  <msnyder@redhat.com>
8
9         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10
11 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
12
13         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
15         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
16         deprecated_frame_xmalloc_with_cleanup.
17         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
18         deprecated_frame_xmalloc.
19         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
20         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
21
22 2003-01-06  Andrew Cagney  <cagney@redhat.com>
23
24         * x86-64-linux-tdep.c: Include "osabi.h".
25         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
26
27         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
28
29 2003-01-06  Andrew Cagney  <cagney@redhat.com>
30
31         * MAINTAINERS (Target Instruction Set Architectures): Update
32         arm-elf.  Can be built with -Werror, has been multiarched.
33
34         * value.h (unpack_long): Make buffer parameter constant.
35         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
36         * scm-lang.h (scm_parse): Ditto.
37         * defs.h (extract_typed_address, extract_address): Ditto.
38         (extract_long_unsigned_integer): Ditto.
39         * inferior.h (unsigned_pointer_to_address): Ditto.
40         (signed_pointer_to_address): Ditto.
41         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
42         * gdbarch.h, gdbarch.c: Regenerate.
43         * findvar.c (extract_long_unsigned_integer): Update.
44         (extract_address): Update.
45         (extract_typed_address): Update.
46         (unsigned_pointer_to_address): Update.
47         * values.c (unpack_long): Update.
48         (unpack_double): Update.
49         (unpack_pointer): Update.
50         (unpack_field_as_long): Update.
51         * d10v-tdep.c (d10v_pointer_to_address): Update.
52         * avr-tdep.c (avr_pointer_to_address): Update.
53         * scm-lang.c (scm_unpack): Update.
54         * findvar.c (signed_pointer_to_address): Update.
55
56 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
57
58         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
59         since it is in i386-tdep.c.
60
61 2003-01-06  J. Brobecker  <brobecker@gnat.com>
62
63         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
64         failure introduced in the previous change.
65
66 2003-01-05  Michael Chastain  <mec@shout.net>
67
68         * README: Remove references to deleted remote-*.c files:
69         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
70         remote-nrom.c, remote-os9k.c, remote-udi.c.
71
72 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
73
74         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
75         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
76         i386_get_longjmp_target.
77
78 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
79
80         * arm-tdep.c (prologue_cache): Change to a pointer.
81         (_initialize_arm_tdep): Allocate prologue_cache.
82         (check_prologue_cache): Update.
83         (save_prologue_cache): Update.
84         (arm_gdbarch_init): Update.
85
86 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
87
88         * stabsread.c (update_method_name_from_physname): Call complaint()
89         instead of error.
90
91 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
92
93         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
94         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
95         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
96
97         * blockframe.c: Include "gdbcmd.h" and "command.h".
98         (backtrace_below_main): New variable.
99         (file_frame_chain_valid, func_frame_chain_valid)
100         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
101         (generic_func_frame_chain_valid): Remove functions.
102         (frame_chain_valid, do_flush_frames_sfunc): New functions.
103         (_initialize_blockframe): New function.
104         * Makefile.in (blockframe.o): Update dependencies.
105         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
106         comment.  Call frame_chain_valid ().
107         * frame.h: Remove old prototypes.  Add prototype for
108         frame_chain_valid and update comments to match.
109         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
110         Remove old comment.
111         * gdbarch.h: Regenerated.
112         * gdbarch.c: Regenerated.
113
114         * alpha-tdep.c (alpha_gdbarch_init): Don't call
115         set_gdbarch_frame_chain_valid.
116         * avr-tdep.c (avr_gdbarch_init): Likewise.
117         * cris-tdep.c (cris_gdbarch_init): Likewise.
118         * frv-tdep.c (frv_gdbarch_init): Likewise.
119         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
120         * i386-tdep.c (i386_svr4_init_abi): Likewise.
121         (i386_nw_init_abi): Likewise.
122         (i386_gdbarch_init): Likewise.
123         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
124         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
125         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
126         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
127         * mips-tdep.c (mips_gdbarch_init): Likewise.
128         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
129         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
130         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
131         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
132         * s390-tdep.c (s390_gdbarch_init): Likewise.
133         * sh-tdep.c (sh_gdbarch_init): Likewise.
134         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
135         * v850-tdep.c (v850_gdbarch_init): Likewise.
136         * vax-tdep.c (vax_gdbarch_init): Likewise.
137         * x86-64-tdep.c (x86_64_init_abi): Likewise.
138
139         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
140         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
141         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
142         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
143         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
144         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
145         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
146         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
147
148 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
149
150         * Makefile.in (acconfig_h): Remove incorrect macro.
151         (config_h): Define.
152         (osabi.o): Update dependencies.
153         * configure.tgt: Set gdb_osabi based on target triplet.
154         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
155         * configure: Regenerated.
156         * config.in: Regenerated.
157         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
158         (GDB_OSABI_DEFAULT): Define if not already defined.
159         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
160         (set_osabi_string): New variables.
161         (gdbarch_register_osabi): Add new OS ABI to
162         gdb_osabi_available_names.
163         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
164         (set_osabi, show_osabi): New functions.
165         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
166
167 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
168
169         * arch-utils.c (gdbarch_info_init): Set osabi to
170         GDB_OSABI_UNINITIALIZED.
171         * gdbarch.sh: Add osabi to struct gdbarch and to struct
172         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
173         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
174         * gdbarch.c: Regenerated.
175         * gdbarch.h: Regenerated.
176         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
177         there's no BFD.
178         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
179         * osabi.h (enum gdb_osabi): Move to defs.h.
180         (gdbarch_init_osabi): Update prototype.
181         * defs.h (enum gdb_osabi): Moved here.
182         * Makefile.in: Update dependencies.
183
184         * alpha-tdep.h: Don't include "osabi.h".
185         (struct gdbarch_tdep): Remove osabi member.
186         * alpha-tdep.c: Include "osabi.h".
187         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
188         iterate over arches.  Update call to gdbarch_init_osabi.
189         (alpha_dump_tdep): Don't dump osabi.
190         * alpha-linux-tdep.c: Include "osabi.h".
191         * alpha-osf1-tdep.c: Include "osabi.h".
192         * alphafbsd-tdep.c: Include "osabi.h".
193         * alphanbsd-tdep.c: Include "osabi.h".
194
195         * arm-tdep.h: Don't include "osabi.h".
196         (struct gdbarch_tdep): Remove osabi member.
197         * arm-tdep.c: Include "osabi.h".
198         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
199         iterate over arches.  Update call to gdbarch_init_osabi.
200         (arm_dump_tdep): Don't dump osabi.
201         * arm-linux-tdep.c: Include "osabi.h".
202         * armnbsd-tdep.c: Include "osabi.h".
203
204         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
205         Update call to gdbarch_init_osabi.
206
207         * i386-tdep.h: Don't include "osabi.h".
208         (struct gdbarch_tdep): Remove osabi member.
209         * i386-tdep.c: Include "osabi.h".
210         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
211         iterate over arches.  Update call to gdbarch_init_osabi.
212         (i386_dump_tdep): Don't dump osabi.
213         * i386-linux-tdep.c: Include "osabi.h".
214         * i386-sol2-tdep.c: Include "osabi.h".
215         * i386bsd-tdep.c: Include "osabi.h".
216         * i386gnu-tdep.c: Include "osabi.h".
217         * i386ly-tdep.c: Include "osabi.h".
218         * i386nbsd-tdep.c: Include "osabi.h".
219         * i386obsd-tdep.c: Include "osabi.h".
220
221         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
222         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
223         check osabi when iterating over arches.  Update call to
224         gdbarch_init_osabi.
225         (mips_dump_tdep): Don't dump osabi.
226
227         * ns32k-tdep.h: Don't include "osabi.h".
228         (struct gdbarch_tdep): Remove.
229         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
230         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
231         allocate tdep.  Update call to gdbarch_init_osabi.
232         (ns32k_dump_tdep): Remove.
233         (_initialize_ns32k_tdep): Update call to gdbarch_register.
234         * ns32knbsd-tdep.c: Include "osabi.h".
235
236         * ppc-tdep.h: Don't include "osabi.h".
237         (struct gdbarch_tdep): Remove osabi member.
238         * rs6000-tdep.c: Include "osabi.h".
239         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
240         osabi when iterating over arches.  Update call to
241         gdbarch_init_osabi.
242         (rs6000_dump_tdep): Don't dump osabi.
243         * ppc-linux-tdep.c: Include "osabi.h".
244         * ppcnbsd-tdep.c: Include "osabi.h".
245
246         * sh-tdep.h: Don't include "osabi.h".
247         (struct gdbarch_tdep): Remove osabi member.
248         * sh-tdep.c: Include "osabi.h".
249         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
250         iterate over arches.  Update call to gdbarch_init_osabi.
251         (sh_dump_tdep): Don't dump osabi.
252         * shnbsd-tdep.c: Include "osabi.h".
253
254         * sparc-tdep.c: Include "osabi.h".
255         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
256         iterate over arches.  Update call to gdbarch_init_osabi.
257         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
258         tdep structure.
259
260         * vax-tdep.h: Don't include "osabi.h".
261         (struct gdbarch_tdep): Remove.
262         * vax-tdep.c: Include "osabi.h".
263         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
264         iterate over arches.  Don't allocate tdep.  Update call
265         to gdbarch_init_osabi.
266         (vax_dump_tdep): Remove.
267         (_initialize_vax_tdep): Update call to gdbarch_register.
268
269 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
270
271         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
272         entirely.
273         (breakpoint_re_set_one): Don't fetch the value for a disabled
274         watchpoint.
275
276 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
277
278         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
279         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
280         (COERCE_FLOAT_TO_DOUBLE): Remove.
281         * gdbarch.c: Regenerate.
282         * gdbarch.h: Regenerate.
283         * Makefile.in: Remove value_h from gdbarch_h.
284         * valops.c (coerce_float_to_double): New variable.
285         (default_coerce_float_to_double): Remove.
286         (standard_coerce_float_to_double): Remove.
287         (value_arg_coerce): Use coerce_float_to_double.
288         (_initialize_valops): Add "set coerce-float-to-double".
289         * value.h (default_coerce_float_to_double): Remove prototype.
290         (standard_coerce_float_to_double): Remove prototype.
291
292         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
293         prototyped.
294         * mdebugread.c (parse_symbol): Likewise.
295         * stabsread.c (define_symbol): Mark all functions as prototyped.
296
297         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
298         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
299         set_gdbarch_coerce_float_to_double.
300         * arm-tdep.c (arm_gdbarch_init): Likewise.
301         * frv-tdep.c (frv_gdbarch_init): Likewise.
302         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
303         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
304         * mips-tdep.c (mips_gdbarch_init): Likewise.
305         (mips_coerce_float_to_double): Remove.
306         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
307         (rs6000_coerce_float_to_double): Remove.
308         * s390-tdep.c (s390_gdbarch_init): Likewise.
309         * sh-tdep.c (sh_gdbarch_init): Likewise.
310         (sh_coerce_float_to_double): Remove.
311         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
312         (sparc_coerce_float_to_double): Remove.
313         * v850-tdep.c (v850_gdbarch_init): Likewise.
314         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
315         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
316         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
317         (hppa_coerce_float_to_double): Remove prototype.
318         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
319
320 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
321
322         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
323
324 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
325
326         Suggested by Stewart Brown <sb24@avaya.com>:
327         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
328         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
329         (c_type_print_varspec_suffix): Likewise.
330
331 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
332
333         * configure.in: Don't set and AC_SUBST SUBDIRS.
334         * configure: Regenerated.
335
336         * configure.in: Remove code dealing with shared libraries.
337         * Makefile.in: Remove HLDFLAGS and HLDENV.
338         * configure: Regenerated.
339
340 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
341
342         * frame.c (deprecated_frame_xmalloc): New function.
343         (deprecated_set_frame_saved_regs_hack): New function.
344         (deprecated_set_frame_extra_info_hack): New function.
345         * frame.h (deprecated_frame_xmalloc): Declare.
346         (deprecated_set_frame_saved_regs_hack): Declare.
347         (deprecated_set_frame_extra_info_hack): Declare.
348
349 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
350
351         * configure.in: Move code that provides the --enable-gdbtk option
352         right after the code that handles the --enable-tui option, and
353         polish it somewhat.
354         * configure: Regenerated.
355
356         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
357         AC_CHECK_FUNCS and remove the old check for pread64.
358         * acinclude.m4 (AC_GNU_SOURCE): New macro.
359         * acconfig.h (_GNU_SOURCE): Add.
360         (HAVE_PREAD64): Remove.
361         * configure, aclocal.m4, config.in: Regenerated.
362
363 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
364
365         * alpha-tdep.c: Use get_frame_saved_regs.
366         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
367         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
368         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
369         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
370         * vax-tdep.c, xstormy16-tdep.c: Ditto.
371
372 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
373
374         * configure.in: Remove all use of the SUBDIRS variable; add
375         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
376         code providing the --enable-multi-ice option, and move it right in
377         front of the code that checks whether gdbserver is supported.
378         Polish that too.
379         * configure: Regenerated.
380         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
381         @SUBDIRS@.
382
383 2003-01-03  Andrew Cagney  <cagney@redhat.com>
384
385         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
386         * avr-tdep.c, cris-tdep.c: Ditto.
387         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
388         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
389         
390 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
391
392         * configure.in: Remove --enable-netrom option.
393         * configure: Regenerated.
394
395 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
396
397         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
398         declaration for `struct re_pattern_buffer' instead.
399         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
400
401 2003-01-03  J. Brobecker  <brobecker@gnat.com>
402
403         * mdebugread.c (parse_symbol): Count until the stEnd matching
404         the structure name.
405
406 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
407
408         * configure.in: Remove --with-cpu option.
409         subscripts.  Remove evil changequotes here.
410         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
411         * config.in, configure: Regenerated.
412         
413         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
414         * configure.in: Cleanup section that sources GDB and BFD configure
415         subscripts.  Remove evil changequotes here.
416         * config.in, configure: Regenerated.
417
418 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
419
420         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
421         frame accessor methods.
422         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
423         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
424         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
425         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
426         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
427         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
428         * z8k-tdep.c: Ditto.
429         
430 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
431
432         * configure.in: Remove UI_OUT configuration code.
433         * ada-lang.c: Update assuming UI_OUT is always true.
434         * Makefile.in (UIOUT_CFLAGS): Remove.
435         * configure: Regenerated.
436         * TODO: Remove blurb about elimination of -DUI_OUT.
437
438         * configure.in: Move code that provides the --enable-gdbcli,
439         --enable-gdbmi options right before the code that handles the
440         --enable-tui option.  Polish a bit.
441         * configure: Regenerated.
442
443         * configure.in: Rewrite check for GNU regex and the
444         --without-included regex option, and move it into the "Checks for
445         library functions" section.  This makes us use the system regex
446         again by default on systems with version 2 of the GNU C library.
447         This was apparently broken.
448         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
449         * acconfig.h (USE_INCLUDED_REGEX): Remove.
450         * config.in, configure: Regenerated.
451
452         * configure.in: Move code that provides the --enable-tui option
453         before the "Checks for libraries" section.  Polish the code
454         somewhat and set need_curses to yes if we build the TUI.  Rewrite
455         code that looks for a library providing termcap functionality to
456         match more closely what's done in the Readline library, and move
457         it into to the "Checks for libraries" section.
458         * configure: Regenerated.
459         * Makefile.in (TERMCAP): Remove variable.
460         * config/i386/go32.mh (TERMCAP): Remove variable.
461
462 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
463
464         * MAINTAINERS: Mention gdb_mbuild.sh.
465         * gdb_mbuild.sh: Rewrite.
466
467 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
468
469         * configure.in: Fix typo in last change.
470         * config.in, configure: Regenerated.
471
472 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
473
474         * valarith.c (value_binop): Delete obsolete code and comments.
475         * configure.host: Ditto.
476         * buildsym.h (make_blockvector): Ditto.
477         * buildsym.c (make_blockvector): Ditto.
478         * defs.h (enum language): Ditto.
479         (chill_demangle): Ditto.
480         * elfread.c (elf_symtab_read): Ditto.
481         * dwarfread.c (CHILL_PRODUCER): Ditto.
482         (set_cu_language): Ditto.
483         (handle_producer): Ditto.
484         * expprint.c (print_subexp): Ditto.
485         * gdbtypes.c (chill_varying_type): Ditto.
486         * gdbtypes.h (builtin_type_chill_bool): Ditto.
487         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
488         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
489         (chill_varying_type): Ditto.
490         * language.h (_LANG_chill): Ditto.
491         * language.c (binop_result_type, integral_type): Ditto.
492         (character_type, string_type, structured_type): Ditto.
493         (lang_bool_type, binop_type_check): Ditto.
494         * stabsread.h (os9k_stabs): Ditto.
495         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
496         (define_symbol, read_type, read_struct_fields): Ditto.
497         (read_array_type, read_enum_type, read_huge_number): Ditto.
498         (read_range_type, start_stabs): Ditto.
499         * symfile.c (init_filename_language_table): Ditto.
500         (add_psymbol_with_dem_name_to_list): Ditto.
501         * symtab.c (symbol_init_language_specific): Ditto.
502         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
503         * symtab.h (struct general_symbol_info): Ditto.
504         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
505         * typeprint.c (typedef_print): Ditto.
506         * utils.c (fprintf_symbol_filtered): Ditto.
507         * valops.c (value_cast, search_struct_field, value_slice): Delete
508         obsolete code.
509         (varying_to_slice): Delete function.
510         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
511         (varying_to_slice): Delete declaration.
512         * MAINTAINERS: Update.
513
514 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
515
516         * configure.in: Reorganize "Checks for library functions section"
517         a bit.  Remove check for `btowc' and `isascii' functions.
518         * configure: Regenerated.
519
520         * acconfig.h (_MSE_INT_H): Remove.
521         * configure.in: Create "Checks for header files" section, and move
522         appropriate tests there.  Don't check for objlist.h, wchar.h,
523         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
524         misdetection fix.  Also add "Checks for types", "Checks for
525         compiler characteristics" and "Checks for library functions"
526         sections.
527         * config.in, configure: Regenerated.
528
529         * configure.in: Create "Checks for programs" section, and move
530         appropriate tests there.
531
532 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
533
534         * configure.in: Create "Checks for libraries" section, and move
535         appropriate tests there.  Cleanup check for wctype in libw.  Use
536         AC_SEARCH_LIBS to see whether we need libsocket.
537         * configure: Regenerated.
538
539 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
540
541         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
542         * config.in, configure: Regenerated.
543
544 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
545
546         * gdb_dirent.h: Cleanup and update code to match the example in
547         the Autoconf manual.
548         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
549         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
550         * configure: Regenerated.
551
552 2002-12-30  Adam Fedor  <fedor@gnu.org>
553
554         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
555         (yylex): Initialize c to avoid uninitialized warning.
556
557 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
558
559         * doc/fdl.texi: Revert the last change.
560
561 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
562
563         * tracepoint.c (ISATTY): Removed.
564
565 2002-12-26  J. Brobecker  <brobecker@gnat.com>
566
567         Continuing work to convert the hppa targets to multiarch partil.
568
569         * hppa-tdep.c: Add some missing forward declarations.
570         (frameless_function_invocation): Prefix the function name
571         by "hppa_" to avoid polluting the namespace.  Update all calls
572         to use the new function name.
573         (saved_pc_after_call): Ditto.
574         (init_extra_frame_info): Ditto.
575         (frame_chain): Ditto.
576         (push_dummy_frame): Ditto.
577         (target_read_pc): Ditto.
578         (target_write_pc): Ditto.
579         (in_solib_call_trampoline): Ditto.
580         (in_solib_return_trampoline): Ditto.
581         (skip_trampoline_code): Ditto.
582         (hppa_read_fp): New function, renamed from target_read_fp.
583         (hppa_target_read_fp): New function, using hppa_read_fp.
584         This function conforms to the function profile for the
585         READ_FP gdbarch method.
586         (hppa_extract_struct_value_address): New function, extracted
587         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
588         macro.
589         (hppa_frame_num_args): New function.
590         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
591
592         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
593         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
594         for the switch to multiarch partial.
595         Update some of the macros definitions to match some changes
596         described above in the name of the function they are calling.
597         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
598         not be straightforward to convert. Do now wrap it inside
599         "#if !... #endif" to remember that this macro has still not
600         been taken care of.
601         (FIX_CALL_DUMMY): Likewise.
602
603 2002-12-26  J. Brobecker  <brobecker@gnat.com>
604
605         Continuing work to convert the hppa targets to multiarch partial.
606
607         * hppa-tdep.c (hppa_register_raw_size): New function replacing
608         the body of macro REGISTER_RAW_SIZE.
609         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
610         config/pa/tm-hppah.h. These functions will be used to initialize
611         the gdbarch structure.
612         (hppa_hpux_pc_in_sigtramp): New function.
613         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
614         (hppa_hpux_frame_base_before_sigtramp): New function.
615         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
616         Add gdbcore.h #include.
617         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
618         of this gdbarch-eligible macro to a call to the new associated
619         function.
620         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
621         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
622         into a call to the new associated function.
623         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
624         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
625         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
626
627 2002-12-24  David Carlton  <carlton@math.stanford.edu>
628
629         * config/sparc/tm-sparc.h: Delete duplicate definition of
630         DEPRECATED_PC_IN_CALL_DUMMY.
631
632 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
633
634         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
635         $(gdb_assert_h).
636         * configure.tgt: Recognize mips64*-*-linux*.
637         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
638         (supply_32_bit_reg): New function.
639         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
640         (fill_gregset): Use regcache_collect() instead of
641         deprecated_registers[].
642         (register_addr): Change name to mips_linux_register_addr().
643         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
644         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
645         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
646         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
647         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
648         (MIPS64_LINUX_JB_PC): New defines.
649         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
650         (mips64_elf_fpregset_t): New typedefs.
651         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
652         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
653         (mips64_linux_register_addr, set_mips_linux_register_addr)
654         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
655         (init_register_addr_data)
656         New functions.
657         (fetch_core_registers): Add support for core file formats with 64-bit
658         registers.
659         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
660         (register_addr_data): New static global variable.
661         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
662         gdbarch_register_osabi() for each MIPS machine.
663         * config/mips/linux64.mt: New file.
664         * config/mips/tm-linux64.h: New file.
665
666 2002-12-23  Adam Fedor  <fedor@gnu.org>
667
668         * maint.c (maintenance_demangle): Add switch to demangle
669         ObjC language symbols as well.
670
671 2002-12-23  Adam Fedor  <fedor@gnu.org>
672
673         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
674         last argument from complaint function call.
675
676 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
677
678         * exec.c (print_section_info): Add FIXME comments regarding format
679         string choices.
680
681 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
682
683         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
684         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
685
686 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
687
688         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
689
690 2002-12-23  David Carlton  <carlton@math.stanford.edu>
691
692         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
693         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
694         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
695         information associated to a minsym, not lookup_symbol.
696
697 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
698
699         * x86-64-tdep.h (x86_64_init_abi): New prototype.
700         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
701         (x86_64_init_abi): Make non-static.  Set number of pseudo
702         registers to 0.
703         (x86_64_gdbarch_init): Remove function.
704         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
705         Remove code dealing with dissambly.
706         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
707         (_initialize_x86_64_linux_tdep): New function.
708         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
709         i386-tdep.o.
710
711 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
712
713         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
714         (struct gdb_osabi_handler): Remove member `arch'.  Add member
715         `arch_info'.
716         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
717         construct a `struct bfd_arch_info' and store it in the `struct
718         gdb_osabi_handler' that is created.
719         (gdbarch_init_osabi): Check for compatibility based on machine
720         type and architecture.
721         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
722         comment.
723         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
724         second argument in call to gdbarch_register_osabi.
725         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
726         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
727         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
728         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
729         * arm-tdep.c (_initialize_arm_tdep): Likewise.
730         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
731         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
732         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
733         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
734         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
735         * i386-tdep.c (_initialize_i386_tdep): Likewise.
736         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
737         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
738         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
739         _initialize_i386bsd_tdep and updated likewise.
740         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
741         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
742         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
743         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
744         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
745         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
746         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
747         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
748         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
749         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
750
751 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
752
753         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
754         DT_MIPS_RLD_MAP case for 64-bit targets.
755
756 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
757
758         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
759         ``temp_saved_regs'', not the pointer or other storage contiguous
760         to this pointer.
761
762 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
763
764         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
765         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
766         (mips_linux_get_longjmp_target): Delete declarations.
767         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
768         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
769         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
770         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
771         (mips_linux_get_longjmp_target)
772         (mips_linux_svr4_fetch_link_map_offsets): Make static.
773         (mips_linux_init_abi): New function.
774         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
775
776 2002-12-19  Keith Seitz  <keiths@redhat.com>
777
778         patch committed by Elena Zannoni  <ezannoni@redhat.com>
779         * thread.c (do_captured_list_thread_ids): Call prune_threads and
780         target_find_new_threads. Fix for PR mi/669.
781
782 2002-12-19  David Carlton  <carlton@math.stanford.edu>
783
784         * linespec.c (decode_line_1): Move code into decode_all_digits.
785         (decode_all_digits): New function.
786
787 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
788
789         * exec.c (print_section_info): Select a format string to use with
790         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
791
792 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
793
794         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
795         deprecated_update_current_frame_pc_hack.
796         (deprecated_update_frame_base_hack): New function.
797         * frame.h (deprecated_update_frame_pc_hack): Replace
798         (deprecated_update_frame_base_hack): Declare.
799         * infrun.c (normal_stop): Update.
800
801 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
802
803         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
804         frame_extra_info_zalloc.
805         (rs6000_frame_args_address): Use get_frame_extra_info.
806         (frame_get_saved_regs): Use get_frame_saved_regs.
807         (frame_initial_stack_address): Use get_frame_saved_regs and
808         get_frame_extra_info.
809         (frame_initial_stack_address): Use get_frame_extra_info.
810
811 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
812
813         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
814         array size.
815         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
816         checks for r3900_regnames[].
817
818 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
819
820         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
821         All uses changed
822         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
823
824 2002-12-17  David Carlton  <carlton@math.stanford.edu>
825
826         * symtab.c (lookup_partial_symbol): Don't search past the end of
827         the partial symbols.
828
829 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
830
831         * stack.c (frame_info): Use get_frame_saved_regs.
832         * breakpoint.c (until_break_command): Use get_frame_pc.
833
834 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
835
836         * buildsym.c (block_end_complaint, anon_block_end_complaint)
837         (innerblock_complaint, innerblock_anon_complaint)
838         (blockvector_complaint): Delete deprecated complaint structs.
839         (finish_block, make_blockvector, end_symtab): Replace calls
840         to complain() with calls to complaint().
841         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
842         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
843         (unexpected_type_complaint, bad_sclass_complaint)
844         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
845         Delete deprecated complaint structs.
846         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
847         Replace calls to complain() with calls to complaint().
848         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
849         (unknown_symtype_complaint, unknown_symchar_complaint)
850         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
851         (lbrac_mismatch_complaint, repeated_header_complaint)
852         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
853         Delete deprecated complaint structs.
854         (unknown_symtype_complaint, lbrac_mismatch_complaint)
855         (repeated_header_complaint)
856         (function_outside_compiliation_unit_complaint): New functions.
857         (add_old_header_file, find_corresponding_bincl_psymtab)
858         (set_namestring, find_stab_function_addr, read_dbx_symtab)
859         (process_one_symbol): Replace calls to complain() with, possibly
860         indirect, calls to complaint().
861         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
862         (unknown_attribute_form, unknown_attribute_length)
863         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
864         (const_ignored, botched_modified_type, op_deref2, op_deref4)
865         (basereg_not_handled, dup_user_type_allocation)
866         (dup_user_type_definition, missing_tag, bad_array_element_type)
867         (subscript_data_items, unhandled_array_subscript_format)
868         (unknown_array_subscript_format, not_row_major)
869         (missing_at_name): Delete deprecated complaint structs.
870         (bad_die_ref_complaint, unknown_attribute_form_complaint)
871         (dup_user_type_definition_complaint)
872         (bad_array_element_type_complaint): New functions.
873         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
874         (decode_subscript_data_item, dwarf_read_array_type)
875         (read_tag_string_type, read_subroutine_type, read_func_scope)
876         (locval, scan_partial_symbols, decode_modified_type)
877         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
878         (attribute_size): Replace calls to complain() with, possibly
879         indirect, calls to complaint().
880         * elfread.c (section_info_complaint, section_info_dup_complaint)
881         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
882         Delete deprecated complaint structs.
883         (elf_symtab_read, elfstab_offset_sections): Replace calls to
884         complain() with calls to complaint().
885         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
886         struct.
887         (stub_noname_complaint): New function.
888         (check_typedef, add_mangled_type): Replace calls to complain()
889         with calls to complaint().
890         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
891         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
892         (hpread_unhandled_type_complaint, hpread_struct_complaint)
893         (hpread_array_complaint, hpread_type_lookup_complaint)
894         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
895         (hpread_unhandled_common_complaint)
896         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
897         struct definitions and declarations.
898         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
899         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
900         Replace calls to complain() with, possibly indirect, calls to
901         complaint().
902         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
903         Likewise.
904         * mdebugread.c (bad_file_number_complaint, index_complaint)
905         (aux_index_complaint, block_index_complaint)
906         (unknown_ext_complaint, unknown_sym_complaint)
907         (unknown_st_complaint, block_overflow_complaint)
908         (basic_type_complaint, unknown_type_qual_complaint)
909         (array_index_type_complaint, bad_tag_guess_complaint)
910         (block_member_complaint, stEnd_complaint)
911         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
912         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
913         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
914         (bad_continued_complaint, bad_rfd_entry_complaint)
915         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
916         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
917         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
918         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
919         complaint structs.
920         (index_complaint, unknown_ext_complaint, basic_type_complaint)
921         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
922         (unexpected_type_code_complaint)
923         (function_outside_compilation_unit_complaint): New functions.
924         (parse_symbol, parse_type, upgrade_type, parse_procedure)
925         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
926         Replace calls to complain() with, possibly indirect calls to
927         complaint().
928         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
929         Delete deprecated complaint structs.
930         (lookup__objc_class, lookup_child_selector): Replace complain()
931         with complaint().
932         * remote-vx.c (cant_contact_target): Delete deprecated complaint
933         struct.
934         (vx_lookup_symbol): Replace complain() with complaint().
935         * stabsread.c (invalid_cpp_abbrev_complaint)
936         (invalid_cpp_type_complaint, member_fn_complaint)
937         (const_vol_complaint, error_type_complaint)
938         (invalid_member_complaint, range_type_base_complaint)
939         (reg_value_complaint, vtbl_notfound_complaint)
940         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
941         (unresolved_sym_chain_complaint, stabs_general_complaint)
942         (lrs_general_complaint, multiply_defined_struct): Delete
943         deprecated complaint structs.
944         (invalid_cpp_abbrev_complaint, ref_value_complaint)
945         (stabs_general_complaint, lrs_general_complaint)
946         (msg_unknown_complaint): New functions.
947         (dbx_lookup_type, read_cfront_baseclasses)
948         (read_cfront_member_functions, resolve_symbol_reference)
949         (define_symbol, resolve_live_range, add_live_range, read_type)
950         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
951         (read_one_struct_field, read_baseclasses, read_tilde_fields)
952         (read_cfront_static_fields, attach_fields_to_type)
953         (complain_about_struct_wipeout, read_range_type)
954         (common_block_start, common_block_end, cleanup_undefined_types)
955         (scan_file_globals): Replace complain() with complaint().
956         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
957         Delete deprecated complaint struct declarations.
958         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
959         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
960         (bf_not_found_complaint, ef_complaint, eb_complaint)
961         (function_outside_compilation_unit_complaint): New functions.
962         (record_include_begin, record_include_end, enter_line_range)
963         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
964         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
965         complain() with complaint().
966
967 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
968
969         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
970         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
971         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
972         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
973         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
974         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
975         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
976         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
977         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
978         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
979         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
980         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
981         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
982         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
983         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
984         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
985         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
986         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
987         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
988         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
989         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
990         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
991         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
992         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
993         * config/m88k/xm-dgux.h: Delete.
994         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
995         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
996         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
997         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
998         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
999         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1000         * ch-valprint.c: Delete.
1001         
1002 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1003
1004         * infrun.c (handle_inferior_event): Rearrange code to resume if
1005         no catchpoint triggers for an event.
1006
1007 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1008
1009         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1010         and TARGET_WAITKIND_VFORKED cases.
1011
1012 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1013
1014         * infrun.c (handle_inferior_event): Assume that catchpoints
1015         are not affected by DECR_PC_AFTER_BREAK.
1016
1017 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1018
1019         * target.c (update_current_target): Don't inherit DONT_USE.
1020         * target.h (struct target_ops): Remove DONT_USE.
1021         (target_next): Remove macro.
1022
1023 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1024
1025         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1026
1027 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1028
1029         * arm-tdep.c (convert_from_extended): New argument to hold the
1030         type of floating point result we want to convert to.  Make input 
1031         argument const.  Fix all callers.
1032         (convert_to_extended): Similarly.
1033         (arm_extract_return_value): Now takes a regcache argument.  Change
1034         code to use regcache accessor functions.  Correctly extract 
1035         smaller-than-word results on big-endian machines.
1036         (arm_store_return_value): Now takes a regcache argument.  Change
1037         code to use regcache accessor functions.  Correctly zero/sign extend
1038         smaller than word results before storing into r0.
1039         (arm_gdbarch_init): Register new-style extract_return_value and
1040         store_return_value functions.
1041
1042 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1043
1044         * thread-db.c (thread_from_lwp): Uniquify error msg.
1045         (lwp_from_thread): Ditto.
1046         (check_event): Ditto.
1047         (find_new_threads_callback): Ditto.
1048         (thread_db_pid_to_str): Ditto.
1049
1050 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1051
1052         * frame.h (get_frame_saved_regs): Declare.
1053         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1054         pointer.
1055         * frame.c (get_frame_saved_regs): New function.
1056         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1057
1058 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1059
1060         * frame.c (deprecated_update_current_frame_pc_hack): New
1061         function.
1062         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1063         * infrun.c (normal_stop): Use said function instead of directly
1064         modifying the frame's PC.
1065         
1066 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1067
1068         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1069
1070 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1071
1072         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1073         config/mips/tm-irix6.h (NUM_REGS): Delete.
1074         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1075         (temp_saved_regs): Declare as a pointer rather than an array.
1076         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1077         that ``temp_saved_regs'' has storage allocated to it and that
1078         it's the correct size.
1079
1080 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1081
1082         * defs.h (init_last_source_visited): New prototype.
1083         (add_path): Ditto.
1084         * source.c (add_path): New function that adds to a specified path.
1085         (mod_path): Change to call add_path.
1086         (init_last_source_visited): New function to allow interfaces to
1087         initialize static variable: last_source_visited.  Part of fix
1088         for PR gdb/741.
1089         * Makefile.in: Add support for mi/mi-cmd-env.c.
1090
1091 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1092
1093         * frame.h (frame_id_unwind): Declare.
1094         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1095         id_unwind_cache.
1096         (frame_id_unwind_ftype): Declare.
1097         * frame.c (frame_id_unwind): New function.
1098         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1099         (create_new_frame, get_prev_frame): Pass id_unwind to
1100         set_unwind_by_pc.
1101         (frame_saved_regs_id_unwind): New function.
1102         (frame_saved_regs_id_unwind): New function.
1103         * dummy-frame.c (dummy_frame_id_unwind): New function.
1104         (struct dummy_frame): Add field id.
1105         (generic_push_dummy_frame): Initialize `id'.
1106         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1107
1108 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1109
1110         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1111         pass that to set_momentary_breakpoint.  Move comments to where they
1112         belong.
1113         * frame.h (set_current_frame): Delete declaration.
1114         * frame.c (set_current_frame): Delete function.
1115
1116 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1117
1118         * frame.c (frame_extra_info_zalloc): New function.
1119         * frame.h (frame_extra_info_zalloc): Declare.
1120
1121 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1122
1123         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1124         in the previous prototype change to set_momentary_breakpoint.
1125
1126 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1127
1128         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1129         and saw_child_exec.
1130         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1131         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1132         (stop_stepping): Remove outdated check for child vfork events.
1133
1134 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1135
1136         * GDB 5.3 released from gdb_5_3-branch.
1137
1138 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1139
1140         * corelow.c (init_core_ops): Delete references to to_require_attach
1141         and to_require_detach.
1142         * exec.c (init_exec_ops): Likewise.
1143         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1144         hppa_require_detach directly.
1145         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1146         * inftarg.c (child_detach): Remove.
1147         (child_detach_from_process): Rename to child_detach, remove
1148         after_fork argument.
1149         (child_attach): Remove.
1150         (child_attach_to_process): Rename to child_attach, remove after_fork
1151         argument.
1152         (init_child_ops): Delete references to to_require_attach
1153         and to_require_detach.
1154         * infttrace.c (hppa_require_attach): Update comment.
1155         * target.c (cleanup_target, update_current_target)
1156         (init_dummy_target, setup_target_debug): Delete references to
1157         to_require_attach and to_require_detach.
1158         (find_default_require_detach, find_default_require_attach)
1159         (debug_to_require_attach, debug_to_require_detach): Remove
1160         functions.
1161         * target.h (struct target_ops): Remove to_require_attach
1162         and to_require_detach.
1163         (target_require_attach, target_require_detach): Delete macros.
1164         (find_default_require_detach, find_default_require_attach): Delete
1165         prototypes.
1166         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1167
1168 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1169
1170         * frame.c (get_frame_extra_info): New function.
1171         * frame.h (get_frame_extra_info): Declare.
1172
1173 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1174
1175         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1176         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1177         with `struct frame_id'.
1178         (set_longjmp_resume_breakpoint): Ditto.
1179         * infrun.c (handle_inferior_event): Update.
1180         * breakpoint.c (watch_command_1, until_break_command): Update.
1181         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1182         (handle_inferior_event, step_over_function): Update.
1183         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1184         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1185         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1186         * infcmd.c (finish_command, run_stack_dummy): Update.
1187
1188 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1189
1190         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1191         (dwarf2_non_const_array_bound_ignored)
1192         (dwarf2_missing_line_number_section)
1193         (dwarf2_statement_list_fits_in_line_number_section)
1194         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1195         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1196         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1197         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1198         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1199         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1200         (dwarf2_missing_member_fn_type_complaint)
1201         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1202         (dwarf2_const_value_length_mismatch)
1203         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1204         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1205         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1206         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1207         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1208         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1209         complaints using deprecated struct..
1210         (dwarf2_non_const_array_bound_ignored_complaint)
1211         (dwarf2_complex_location_expr_complaint)
1212         (dwarf2_unsupported_at_frame_base_complaint)
1213         (dwarf2_const_value_length_mismatch_complaint)
1214         (dwarf2_macros_too_long_complaint)
1215         (dwarf2_macro_malformed_definition_complaint)
1216         (dwarf2_invalid_attrib_class_complaint): New functions.
1217         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1218         (read_structure_scope, read_array_type, read_common_block)
1219         (read_tag_pointer_type, read_base_type, read_partial_die)
1220         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1221         (new_symbol, dwarf2_const_value, read_type_die)
1222         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1223         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1224         complain() with, possibly indirect, calls to complaint().
1225
1226 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1227
1228         * frame.c (deprecated_get_frame_saved_regs): Rename
1229         get_frame_saved_regs.
1230         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1231         * sparc-tdep.c: Update.
1232         * hppa-tdep.c: Update.
1233         * h8500-tdep.c: Update.
1234
1235 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1236
1237         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1238         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1239         ``char *'' for return and parameter types.
1240         * gdbarch.h, gdbarch.c: Regenerate.
1241         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1242         return type from ``char *'' to ``const char *''.
1243         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1244         const.
1245
1246 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1247
1248         * i386-tdep.c: Include "dummy-frame.h".
1249         (i386_frame_chain, i386_frame_saved_pc): Replace
1250         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1251         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1252
1253 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1254
1255         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1256         Change to a function with predicate.
1257         * gdbarch.h, gdbarch.c: Re-generate.
1258         * frame.c (get_prev_frame): Update.  Test
1259         DEPRECATED_INIT_FRAME_PC_P.
1260         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1261         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1262         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1263         * alpha-tdep.c (alpha_gdbarch_init): Update.
1264         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1265         * mips-tdep.c (mips_gdbarch_init): Update.
1266         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1267         * arm-tdep.c: Update comments.
1268         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1269         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1270         * frv-tdep.c (frv_gdbarch_init): Ditto.
1271         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1272         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1273         * s390-tdep.c (s390_gdbarch_init): Ditto.
1274         * v850-tdep.c (v850_gdbarch_init): Ditto.
1275         * vax-tdep.c (vax_gdbarch_init): Ditto.
1276         * sh-tdep.c (sh_gdbarch_init): Ditto.
1277         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1278         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1279         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1280         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1281         * i386-tdep.c (i386_gdbarch_init): Ditto.
1282         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1283         * cris-tdep.c (cris_gdbarch_init): Ditto.
1284         * avr-tdep.c (avr_gdbarch_init): Ditto.
1285         * arm-tdep.c (arm_gdbarch_init): Ditto.
1286         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1287         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1288
1289 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1290
1291         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1292         CHILD_FOLLOW_FORK.
1293         * hppah-nat.c (saved_vfork_pid): Add.
1294         (child_post_follow_vfork): Remove.
1295         (child_follow_fork): New function.
1296         (child_wait): Call detach_breakpoints after receiving the child vfork.
1297         Call child_resume directly instead of going through resume ().
1298         Make sure we have the exec before reporting the vfork.
1299         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1300         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1301         (follow_fork): New function.  Call target_follow_fork.
1302         (follow_inferior_reset_breakpoints): New function broken out from
1303         old follow_inferior_fork.
1304         (resume): Remove hack to follow exec after vfork.
1305         * inftarg.c (child_post_follow_vfork): Remove.
1306         (child_follow_fork): New function.
1307         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1308         * target.c (cleanup_target): Replace to_post_follow_vfork with
1309         to_follow_fork.
1310         (update_current_target): Likewise.
1311         (setup_target_debug): Likewise.
1312         (debug_to_post_follow_vfork): Remove.
1313         (debug_to_follow_fork): New function.
1314         * target.h (struct target_ops): Replace to_post_folow_vfork with
1315         to_follow_fork.
1316         (child_post_follow_vfork): Remove prototype.
1317         (child_follow_fork): Add prototype.
1318         (target_post_follow_vfork): Remove macro.
1319         (target_follow_fork): Add macro.
1320
1321 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1322
1323         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1324         (child_post_follow_vfork): Cancel pending exec event if we follow
1325         the parent.
1326         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1327         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1328         event at the following wait call if necessary.
1329         * infrun.c (follow_vfork): Don't follow_exec here.
1330         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1331         case about HP/UX 10.20.  Remove code pushed down to
1332         hppah-nat.c:child_wait.
1333         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1334         vfork_in_flight is set.
1335
1336 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1337
1338         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1339         for the parent's fork event.
1340         * infrun.c (handle_inferior_event): Only expect one fork event.
1341         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1342         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1343
1344 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1345
1346         * PROBLEMS: Delete reference to PR gdb/725.
1347         
1348         * MAINTAINERS (gdb.c++): Add David Carlton.
1349
1350 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1351
1352         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1353         * cli/cli-cmds.c: Ditto.
1354
1355 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1356
1357         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1358         function address in <>.
1359         * gdbarch.c: Re-generate.
1360
1361 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1362
1363         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1364
1365 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1366
1367         * linespec.c (symtab_from_filename): New function.
1368         (decode_line_1): Move code into symtab_from_filename.
1369
1370 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1371
1372         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1373
1374 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1375
1376         * f-valprint.c (info_common_command): Use get_frame_pc.
1377         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1378         * ax-gdb.c (agent_command): Ditto.
1379         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1380         (rs6000_pop_frame): Ditto.
1381         (rs6000_frameless_function_invocation): Ditto.
1382         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1383         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1384         * macroscope.c (default_macro_scope): Ditto.
1385         * stack.c (print_frame_info_base): Ditto.
1386         (print_frame, frame_info, print_frame_label_vars): Ditto.
1387         (return_command, func_command, get_frame_language): Ditto.
1388         * infcmd.c (finish_command): Ditto.
1389         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1390         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1391         (break_at_finish_at_depth_command_1): Ditto.
1392         (break_at_finish_command_1): Ditto.
1393         (until_break_command, get_catch_sals): Ditto.
1394         * blockframe.c (func_frame_chain_valid): Ditto.
1395         (frameless_look_for_prologue): Ditto.
1396         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1397
1398 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1399
1400         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1401         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1402
1403 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1404
1405         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1406         to pure functions.
1407         * gdbarch.h, gdbarch.c: Re-generate.
1408         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1409         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1410
1411         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1412         declaration to a function returning a CORE_ADDR.
1413         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1414         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1415         (init_frame_pc_default): Ditto.
1416         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1417         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1418         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1419         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1420         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1421         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1422
1423         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1424         to init_frame_pc_noop.
1425         (i386_interix_init_frame_pc): Delete function.
1426         * z8k-tdep.c (init_frame_pc): Delete function.
1427         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1428         (INIT_FRAME_PC_FIRST): Ditto.
1429         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1430         (INIT_FRAME_PC_FIRST): Ditto.
1431         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1432         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1433         init_frame_pc_noop.
1434         (INIT_FRAME_PC_FIRST): Convert to an expression.
1435         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1436
1437 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1438
1439         * blockframe.c: Use get_frame_base instead of directly accessing
1440         the `struct frame_info' member frame.
1441         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1442         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1443
1444 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1445
1446         * Makefile.in (readline_h): Define.
1447         (completer.o): Depend on readline_h.
1448         (corelow.o): Ditto.
1449         (event-top.o): Ditto.
1450         (exec.o): Ditto.
1451         (solib.o): Ditto.
1452         (source.o): Ditto. 
1453         (symfile.o): Ditto. 
1454         (symmisc.o): Ditto. 
1455         (top.o): Ditto.
1456         (tracepoint.o): Ditto. 
1457         (utils.o): Ditto.
1458         (cli-dump.o): Ditto.
1459         (tui-hooks.o): Ditto. 
1460         (tuiWin.o): Ditto. 
1461
1462 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1463
1464         More cleanup from import of readline 4.3.
1465         * completer.h (complete_line, readline_line_completion_function):
1466         Update prototypes.
1467         (line_completion_function): Removed, not used outside of completer.c.
1468         * completer.c (readline_line_completion_function,
1469         complete_function, line_completion_function): Use const for first
1470         parameter.
1471         (line_completion_function): Make static.
1472         (filename_completer): filename_completion_function is now called
1473         rl_filename_completion_function
1474         * corelow.c: Include <readline/readline.h>.
1475         * exec.c: Ditto.
1476         * solib.c: Ditto.
1477         * source.c: Ditto.
1478         * symfile.c: Ditto.
1479         * symmisc.c: Ditto.
1480         * top.c (init_main): No need to coerce
1481         readline_line_completion_function anymore.
1482         * cli/cli-dump.c: Include <readline/readline.h>.
1483
1484 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1485
1486         * stack.c (frame_info): Use get_prev_frame.
1487         * blockframe.c (frame_address_in_block): Ditto.
1488         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1489         (rs6000_frameless_function_invocation): Ditto.
1490         (rs6000_frame_saved_pc): Ditto.
1491         (rs6000_frame_chain): Ditto.
1492         * arch-utils.c (init_frame_pc_default): Ditto.
1493
1494 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1495
1496         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1497         Delete redundant definition.
1498
1499 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1500
1501         Import of readline 4.3:
1502         * cli/cli-cmds.c: Include readline/tilde.h.
1503         * cli/cli-setshow.c: Ditto.
1504         * defs.h: Don't declare tilde_expand anymore, since readline
1505         exports it.
1506
1507 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1508
1509         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1510         -Werror on this file.
1511
1512 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1513
1514         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1515         the format name.
1516         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1517         * gdbarch.c: Regenerate.
1518         
1519 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1520
1521         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1522         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1523         provide a default value.
1524         * gdbarch.h, gdbarch.c: Regenerate.
1525         * frame.c (get_prev_frame): Update.  Check
1526         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1527         * s390-tdep.c (s390_gdbarch_init): Update.
1528         * mips-tdep.c (mips_gdbarch_init): Update.
1529         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1530         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1531         * alpha-tdep.c (alpha_gdbarch_init): Update.
1532         
1533 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1534
1535         * ia64-linux-nat.c: Include gdb_string.h.
1536         * alpha-nat.c: Ditto.
1537         * ppc-linux-nat.c: Ditto.
1538         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1539         Update dependencies.
1540
1541 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1542
1543         * gdbthread.h: Include "frame.h".
1544         (struct thread_info): Replace step_frame_address with
1545         step_frame_id.
1546         * inferior.h: Include "frame.h".
1547         (step_frame_id): Replace external variable step_frame_address.
1548         * gdbthread.h (save_infrun_state): Replace step_frame_address
1549         parameter with step_frame_id parameter.
1550         (load_infrun_state): Ditto.
1551         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1552         * infcmd.c (step_frame_id, step_1, step_once): Update.
1553         * thread.c (load_infrun_state, save_infrun_state): Update.
1554         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1555         (handle_inferior_event, step_over_function): Update.
1556         (normal_stop, context_switch, restore_inferior_status): Update.
1557         (struct inferior_status): Replace step_frame_address with
1558         step_frame_id.
1559
1560 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1561
1562         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1563         DW_TAG_member as well as a declaration as being a C++ static data
1564         member.
1565         (read_structure_scope): Combine tests for DW_TAG_member and
1566         DW_TAG_variable.
1567
1568 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1569
1570         * linespec.c (decode_compound): New function.
1571         (decode_line_1): Move code into decode_compound.
1572
1573 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1574
1575         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1576         argument.
1577         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1578         the static block.  See PR gdb/804.
1579
1580 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1581
1582         * symtab.c (lookup_symbol_aux_block): New function.
1583         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1584
1585 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1586
1587         * gdbarch.sh: Dump the predicate function and macro values.
1588         (read): Print error on standard error.
1589         * gdbarch.c: Regenerate.
1590         
1591 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1592
1593         * Makefile.in (mips_tdep_h): Define.
1594         (mips-tdep.o): Add mips_tdep_h to dependency list.
1595         * mips-tdep.h: New file.
1596         * mips-tdep.c (mips-tdep.h): Include.
1597         (enum mips_abi): Move to mips-tdep.h.
1598         (mips_abi): New function.
1599
1600 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1601
1602         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1603
1604 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1605
1606         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1607         function.
1608         (lookup_symbol_aux_minsyms): New function.
1609
1610 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1611
1612         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1613
1614 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1615
1616         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1617         which is an obsolete macro name.
1618
1619 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1620
1621         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1622         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1623
1624 2002-12-03  H.J. Lu  (hjl@gnu.org)
1625
1626         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1627         (create_breakpoints): Make sure the addr_string field is not
1628         NULL.
1629
1630 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1631
1632         * sparc-nat.c (fetch_inferior_registers)
1633         (store_inferior_registers): Add comment on problem of LWP vs
1634         threads.
1635         
1636         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1637         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1638         (lin_lwp_store_registers): Remove.
1639         (init_lin_lwp_ops): Use fetch_inferior_registers
1640         and store_inferior_registers directly.
1641         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1642         (store_inferior_registers): Likewise.
1643         Fix PR gdb/725.
1644
1645 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1646
1647         * frame.h (get_frame_id): Convert to a function.
1648         (null_frame_id, frame_id_p): Declare.
1649         (frame_id_eq, frame_id_inner): Declare.
1650         (frame_id_build): New function.
1651         * frame.c (get_frame_id): Update.  Use null_frame_id.
1652         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1653         frame_id_inner.
1654         (null_frame_id, frame_id_p): Define.
1655         (frame_id_eq, frame_id_inner): Define.
1656         (frame_id_build): New function.
1657         * varobj.c (varobj_create): Update.
1658         (varobj_update): Update.
1659         * valops.c (value_assign): Update.
1660         (new_root_variable): Update.
1661         * infrun.c (save_inferior_status): Update.
1662         * breakpoint.c (watch_command_1): Update.
1663
1664 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1665
1666         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1667         (SNAP2): Likewise.
1668
1669 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1670
1671         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1672         patch.
1673
1674         * PROBLEMS: Mention PR gdb/725.
1675
1676 2002-12-03  Andreas Schwab  <schwab@suse.de>
1677
1678         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1679
1680 2002-12-02  Adam Fedor  <fedor@gnu.org>
1681             Klee Dienes  <kdienes@apple.com>
1682
1683         * objc-lang.c (objc_printstr): Add width arg to match
1684         printstr prototype.
1685         (compare_selectors): Add 'const' to arg types.
1686         (compare_classes): Likewise.
1687         (find_imps): Cast msym pointer to avoid compiler warning.
1688         (print_object_command): Validate the address before
1689         passing it to the print routine.
1690         (find_objc_msgcall_submethod): Change function argument to
1691         return an int.
1692         * objc-lang.h: Add 'extern' to all function declarations.
1693         (value_nsstring): Add declaration.
1694
1695 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1696
1697         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1698         Fixes a build failure on HP/UX.
1699
1700         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1701         failure on HP/UX. 
1702         (hpread_has_name): Advance declaration to avoid a compilation warning.
1703         (pst_syms_count): Add missing variable type. By change, the compiler
1704         was defaulting to int, which seems a good choice. Fixes a compilation
1705         warning.
1706         (pst_syms_size): Likewise.
1707  
1708 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1709
1710         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1711         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1712         later to set the proper gdbarch methods depending on the osabi.
1713         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1714
1715 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1716
1717         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1718         * osabi.c (gdb_osabi_name): Add strings images for the two new
1719         enum values.
1720         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1721
1722 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1723
1724         * MAINTAINERS (Java): Global maintainers are responible for Java.
1725         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1726         part Java maintainers.
1727
1728 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1729
1730         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1731         Fixes a compilation failure on AiX.
1732
1733 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1734
1735         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1736         why aix-thread.o is not listed.
1737
1738 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1739
1740         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1741         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1742         * gdbarch.h, gdbarch.c: Re-generate.
1743         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1744         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1745         * config/pa/tm-hppa.h, frame.h: Update.
1746         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1747         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1748         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1749         * cris-tdep.c, alpha-tdep.c: Update.
1750         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1751         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1752         (get_prev_frame): Ditto.
1753
1754 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1755
1756         * exec.c (xfer_memory): Replace boolean with int.
1757         * p-exp.y: Use 0 instead of false.
1758         * corelow.c (gdb_check_format): Change return type to int from
1759         boolean.
1760         * utils.c: Don't include <curses.h> or <term.h> first.
1761
1762 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1763
1764         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1765         (m68hc11_register_byte): Remove.
1766         (m68hc11_gdbarch_init): Don't set the above.
1767
1768 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1769
1770         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1771         by calling get_selected_frame.
1772         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1773         set_current_frame, create_new_frame, select_frame and
1774         get_current_frame.
1775         * remote-e7000.c (e7000_start_remote): Ditto.
1776         * remote-mips.c (common_open): Ditto
1777         * remote-rdp.c (remote_rdp_open): Ditto.
1778
1779 2002-11-29  Andreas Schwab  <schwab@suse.de>
1780
1781         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1782         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1783         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1784         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1785         read_memory_unsigned_integer instead of read_memory_integer when
1786         dealing with addresses and instruction opcodes.
1787         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1788         (m68k_linux_frame_saved_pc): Likewise.
1789
1790 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1791
1792         * stack.c (selected_frame, select_frame): Move from here ...
1793         * frame.c (selected_frame, select_frame): ... to here.  Include
1794         "language.h".
1795         * Makefile.in (frame.o): Update dependencies.
1796         * frame.c (get_selected_frame): New function.
1797         * frame.h (get_selected_frame): Declare.
1798         (deprecated_selected_frame): Rename selected_frame.
1799         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1800         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1801         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1802         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1803         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1804         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1805         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1806         * z8k-tdep.c, cli/cli-cmds.c: Update.
1807         
1808 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1809
1810         * frame.h (get_selected_block): Add comments.
1811
1812 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1813
1814         * frame.c (pc_notcurrent): New function.
1815         (find_frame_sal): New function.
1816         * frame.h (find_frame_sal): Declare.
1817         (struct symtab_and_line): Add opaque declaration.
1818         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1819         find_pc_line.
1820         (frame_info): Ditto.
1821         * ada-lang.c (find_printable_frame): Ditto.
1822
1823 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1824
1825         * configure.in: Check that the pthdebug library is recent enough
1826         before enabling thread support on native AiX.
1827         * configure: Regenerate.
1828
1829         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1830         from the list of object files as it is now appended by configure
1831         if thread support is enabled.
1832         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1833         if thread support is enabled.
1834
1835 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1836
1837         * stack.c (get_selected_block): In-line get_current_block.
1838         * frame.h (get_current_block): Delete declaration.
1839         * blockframe.c (get_current_block): Delete function.
1840
1841 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1842
1843         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1844         USE_GENERIC_DUMMY_FRAMES.
1845         * gdbarch.h, gdbarch.c: Regenerate.
1846         * valops.c, frame.c: Update.
1847         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1848         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1849         * config/pa/tm-hppa.h, blockframe.c: Update.
1850         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1851         * m68k-tdep.c, alpha-tdep.c: Ditto.
1852
1853         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1854         * mips-tdep.c: Ditto.
1855
1856 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1857
1858         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1859         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1860         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1861         * gdbarch.c, gdbarch.h: Re-generate.
1862         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1863         (CALL_DUMMY_LOCATION): Delete macro definition.
1864         (PC_IN_CALL_DUMMY): Delete macro definitions.
1865         
1866         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1867         default is already generic_pc_in_call_dummy.
1868         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1869         * v850-tdep.c (v850_gdbarch_init): Ditto.
1870         * sh-tdep.c (sh_gdbarch_init): Ditto.
1871         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1872         * mips-tdep.c (mips_gdbarch_init): Ditto.
1873         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1874         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1875         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1876         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1877         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1878         * avr-tdep.c (avr_gdbarch_init): Ditto.
1879         
1880         * arm-tdep.c (arm_gdbarch_init): Do not set
1881         use_generic_dummy_frames, default is already 1.
1882         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1883         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1884         * v850-tdep.c (v850_gdbarch_init): Ditto.
1885         * sh-tdep.c (sh_gdbarch_init): Ditto.
1886         * s390-tdep.c (s390_gdbarch_init): Ditto.
1887         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1888         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1889         * mips-tdep.c (mips_gdbarch_init): Ditto.
1890         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1891         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1892         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1893         * i386-tdep.c (i386_gdbarch_init): Ditto.
1894         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1895         * frv-tdep.c (frv_gdbarch_init): Ditto.
1896         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1897         * cris-tdep.c (cris_gdbarch_init): Ditto.
1898         * avr-tdep.c (avr_gdbarch_init): Ditto.
1899
1900         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1901         call_dummy_location, default is already AT_ENTRY_POINT.
1902         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1903         * v850-tdep.c (v850_gdbarch_init): Ditto.
1904         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1905         * sh-tdep.c (sh_gdbarch_init): Ditto.
1906         * s390-tdep.c (s390_gdbarch_init): Ditto.
1907         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1908         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1909         * mips-tdep.c (mips_gdbarch_init): Ditto.
1910         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1911         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1912         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1913         * i386-tdep.c (i386_gdbarch_init): Ditto.
1914         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1915         * frv-tdep.c (frv_gdbarch_init): Ditto.
1916         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1917         * cris-tdep.c (cris_gdbarch_init): Ditto.
1918         * avr-tdep.c (avr_gdbarch_init): Ditto.
1919         * arm-tdep.c (arm_gdbarch_init): Ditto.
1920         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1921
1922 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1923
1924         * frame.h: Update comments on set_current_frame, create_new_frame,
1925         flush_cached_frames, reinit_frame_cache, select_frame and
1926         selected_frame.
1927         
1928 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1929
1930         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1931         deprecated pc_in_call_dummy function.
1932         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1933         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1934         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1935         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1936         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1937
1938 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1939
1940         * Makefile.in: Remove Tix dependencies.
1941         * acinclude.m4: Ditto.
1942         * aclocal.m4: Ditto.
1943         * configure.in: Ditto.
1944         * configure: Regenerated.
1945         
1946 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1947
1948         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1949         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1950         * gdbarch.c: Re-generate.
1951         
1952 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1953
1954         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1955         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1956         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1957         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1958         pc_in_call_dummy_at_entry_point.
1959         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1960         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1961         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1962         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1963         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1964         pc_in_call_dummy_on_stack.
1965         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1966         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1967         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1968         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1969         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1970         
1971 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1972
1973         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1974         pc_in_call_dummy_before_text_end
1975         (deprecated_pc_in_call_dummy_after_text_end): Rename
1976         pc_in_call_dummy_after_text_end.
1977         (deprecated_pc_in_call_dummy_on_stack): Rename
1978         pc_in_call_dummy_on_stack.
1979         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1980         pc_in_call_dummy_at_entry_point.
1981         * m68k-tdep.c (m68k_gdbarch_init): Update.
1982         * s390-tdep.c (s390_gdbarch_init): Update.
1983         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1984         * vax-tdep.c (vax_gdbarch_init): Update.
1985         * sparc-tdep.c (sparc_gdbarch_init): Update.
1986         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1987         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1988         * i386-tdep.c (i386_gdbarch_init): Update.
1989         * frv-tdep.c (frv_gdbarch_init): Update.
1990         * cris-tdep.c (cris_gdbarch_init): Update.
1991         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1992         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1993         (deprecated_pc_in_call_dummy_after_text_end)
1994         (deprecated_pc_in_call_dummy_on_stack)
1995         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1996         * alpha-tdep.c (alpha_gdbarch_init): Update.
1997
1998 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1999
2000         * acconfig.h (HAVE_PREAD64): Add.
2001         * configure.in: Check for pread64.
2002         * config.in: Regenerated.
2003         * configure: Regenerated.
2004         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2005         * linux-proc.c (linux_proc_xfer_memory): New function.
2006         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2007
2008 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2009
2010         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2011         pdi's with no name.
2012
2013 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2014
2015         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2016         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2017
2018 2002-11-25  Jim Blandy  <jimb@redhat.com>
2019
2020         * symfile.c (init_objfile_sect_indices): New function.
2021         (default_symfile_offsets): Move the section-index-initializing
2022         stuff into init_objfile_sect_indices, and call that.
2023
2024         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2025         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2026
2027         * symfile.c (syms_from_objfile): Adjust indentation.
2028
2029         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2030         || info_verbose isn't true.
2031
2032 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2033
2034         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2035         default to get_frame_base.
2036         * gdbarch.h, gdbarch.c: Regenerate.
2037         * arch-utils.c (default_frame_address): Delete function.
2038         * arch-utils.h (default_frame_address): Delete declaration
2039
2040 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2041
2042         * varobj.c (find_frame_addr_in_frame_chain):
2043         Use get_frame_base instead of FRAME_FP,
2044         obvious fix.
2045
2046 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2047
2048         * frame.h (FRAME_FP): Delete macro.
2049         (get_frame_base): New function declaration.
2050         * frame.c (get_frame_base): New function.
2051         (get_frame_id): Use ->frame.
2052         (frame_find_by_id): Rewrite to use get_frame_id.
2053         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2054         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2055         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2056         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2057         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2058         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2059         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2060
2061 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2062
2063         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2064
2065 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2066
2067         * frame.c (set_unwind_by_pc): Revert change below, use
2068         PC_IN_CALL_DUMMY.
2069         (get_prev_frame): Ditto.
2070
2071 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2072
2073         * dummy-frame.c (pc_in_dummy_frame): New function.
2074         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2075         (find_dummy_frame): Update comment.
2076         (generic_pop_current_frame): Use get_frame_type.
2077         * dummy-frame.h (pc_in_dummy_frame): Declare.
2078         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2079         (create_new_frame): Use pc_in_dummy_frame.
2080         (get_prev_frame): Use pc_in_dummy_frame.
2081         (frame_saved_regs_register_unwind): Use get_prev_frame.
2082         (deprecated_generic_get_saved_register): Use get_prev_frame.
2083
2084 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2085
2086         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2087         from here ...
2088         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2089         (varobj_create): Note that frame ID should be used.
2090         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2091
2092 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2093
2094         * breakpoint.c: Include "gdb_assert.h".
2095         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2096         not being used.
2097         * Makefile.in (breakpoint.o): Update dependencies.
2098         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2099         deprecated_frame_in_dummy.
2100         * stack.c (print_frame_info_base): Ditto.
2101         (frame_info): Ditto.
2102         (print_frame_info_base): Ditto.  Delete dead code.
2103         
2104 2002-11-23  Andreas Schwab  <schwab@suse.de>
2105
2106         * Makefile.in (m68k_tdep_h): Define.
2107         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2108         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2109         * m68k-tdep.c: Move register number enum ...
2110         * m68k-tdep.h: ... to this new file and rename the constants from
2111         E_* to M68K_*.  All uses changed.
2112         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2113         * abug-rom.c: Include "m68k-tdep.h".  Use
2114         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2115         * cpu32bug-rom.c: Likewise.
2116         * dbug-rom.c: Likewise.
2117         * m68k-tdep.c: Likewise.
2118         * m68klinux-nat.c: Likewise.
2119         * remote-est.c: Likewise.
2120         * rom68k-rom.c: Likewise.
2121         * config/m68k/tm-linux.h: Likewise.
2122
2123 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2124
2125         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2126         dummy frame initialization code.
2127         * mips-tdep.c (mips_gdbarch_init): Ditto.
2128
2129 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2130
2131         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2132         attach will hang.
2133
2134 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2135
2136         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2137         to default_frame_address.
2138         * gdbarch.h, gdbarch.c: Re-generate.
2139
2140         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2141         or frame_locals_address to default_frame_address.
2142         * m68k-tdep.c (m68k_gdbarch_init): Update.
2143         * i386-tdep.c (i386_gdbarch_init): Update.
2144         * frv-tdep.c (frv_gdbarch_init): Update.
2145         * sh-tdep.c (sh_gdbarch_init): Update.
2146         * v850-tdep.c (v850_gdbarch_init): Update.
2147         * sparc-tdep.c (sparc_gdbarch_init): Update.
2148         * mips-tdep.c (mips_gdbarch_init): Update.
2149         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2150         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2151         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2152
2153         * cris-tdep.c (cris_frame_args_address): Delete function.
2154         (cris_frame_locals_address): Delete function.
2155         (cris_gdbarch_init): Do not set frame_args_address or
2156         frame_locals_address.
2157
2158 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2159
2160         * thread-db.c (thread_db_load): Tell the user what's going on
2161         if dlopen fails on libthread_db.
2162
2163 2002-11-23  Andreas Schwab  <schwab@suse.de>
2164
2165         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2166         invariant return values.
2167
2168 2002-11-22  Andreas Schwab  <schwab@suse.de>
2169
2170         * valops.c (value_slice): Move declaration of `offset' to avoid
2171         warning.
2172
2173 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2174
2175         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2176         (struct so_stuff): Add end_addr field.
2177         (register_loaded_dll): Calculate and store end address of loaded dll.
2178         (solib_address): New function.
2179         (child_solib_loaded_library_pathname): Pass carefully constructed
2180         section info to safe_symbol_file_add rather than ignoring it.
2181         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2182         DLL is loaded.
2183         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2184         (child_create_inferior): Fix a compiler warning.
2185         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2186         (solib_address): Declare new function.
2187
2188 2002-11-22  Andreas Schwab  <schwab@suse.de>
2189
2190         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2191         and FPS registers.
2192
2193 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2194
2195         * maint.c (_initialize_maint_cmds): Fix typo.  From
2196         Francesco Potorti` <pot@gnu.org>.
2197
2198 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2199
2200         * mips-tdep.c (mips_dump_tdep): Delete references to
2201         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2202         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2203         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2204         * printcmd.c (build_address_symbolic): Delete calls to
2205         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2206         (address_info): Ditto.
2207         Fix PR gdb/773.
2208         
2209 2002-11-19  Klee Dienes  <kdienes@apple.com>
2210             Adam Fedor  <fedor@gnu.org>
2211
2212         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2213         the ability to explicitly specify the quote characters and word
2214         break characters; if NULL is specified for either, use the old
2215         behavior of using the characters used by the completer.
2216         (skip_chars): New function.  Convenience wrapper around
2217         skip_quoted_chars to provide the original skip_chars behavior.
2218         * completer.h (skip_quoted_chars): Add prototype.
2219
2220 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2221
2222         Problems reported by Paul Eggert.
2223         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2224
2225 2002-11-19  Andreas Schwab  <schwab@suse.de>
2226
2227         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2228         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2229         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2230         (m68k_linux_frame_saved_pc): Move to ...
2231         * m68klinux-tdep.c: ... here.  New file.
2232         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2233         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2234
2235 2002-11-19  Adam Fedor  <fedor@gnu.org>
2236
2237         * objc-exp.y: Revert to old skip_quoted usage.
2238
2239 2002-11-19  Adam Fedor  <fedor@gnu.org>
2240
2241         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2242         (objc_lang_h): Define.
2243         (YYFILES): Add objc-exp.tab.c.
2244         (local-maintainer-clean): Remove objc-exp.tab.c.
2245         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2246         
2247 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2248
2249         * p-exp.y (typecast rule): Add automatic dereference of
2250         pascal classes if needed.
2251         (THIS): Set current_type.
2252         Automatically dereference pascal classes. 
2253         (typebase rule): Add ^typebase recognition.
2254
2255 2002-11-18  Adam Fedor  <fedor@gnu.org>
2256
2257         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2258         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2259         (op_name): Handle OP_OBJC_SELF.
2260         * Makefile.in (expprint.o): Add additional depends.
2261
2262 2002-11-18  Adam Fedor  <fedor@gnu.org>
2263
2264         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2265         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2266         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2267         * objc-exp.y: Likewise. 
2268
2269 2002-11-18  Adam Fedor  <fedor@gnu.org>
2270
2271         * gdb/parser-defs.h: (struct objc_class_str): New structure
2272         for parsing ObjC classes.
2273
2274 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2275
2276         * stack.c (frame_relative_level): Copy function from here ...
2277         * frame.c (frame_relative_level): ...to here.
2278
2279 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2280
2281         * frame.h (enum frame_type): Define.
2282         (get_frame_type): Declare.
2283         (struct frame_info): Add field `type'.  Delete field
2284         signal_handler_caller.
2285         (deprecated_set_frame_signal_handler_caller): Declare.
2286         * frame.c (get_frame_type): New function.
2287         (deprecated_set_frame_type): New function.
2288         (create_new_frame): Set the frame's type.
2289         (get_prev_frame): Similar.
2290         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2291         * s390-tdep.c: Ditto.
2292         * m68klinux-nat.c: Ditto.
2293         * ns32k-tdep.c: Ditto.
2294         * x86-64-linux-tdep.c: Ditto.
2295         * vax-tdep.c: Ditto.
2296         * rs6000-tdep.c: Ditto.
2297         * ppc-linux-tdep.c: Ditto.
2298         * i386-interix-tdep.c: Ditto.
2299         * mips-tdep.c: Ditto.
2300         * m68k-tdep.c: Ditto.
2301         * hppa-tdep.c: Ditto.
2302         * ia64-tdep.c: Ditto.
2303         * cris-tdep.c: Ditto.
2304         * arm-tdep.c: Ditto.
2305         * alpha-tdep.c: Ditto.
2306         * i386-tdep.c: Ditto.
2307         * stack.c: Ditto.
2308         * ada-lang.c: Ditto.
2309         * blockframe.c: Update.
2310         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2311         deprecated_set_frame_type instead of signal_handler_caller.
2312         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2313         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2314         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2315
2316 2002-11-18   Klee Dienes  <kdienes@apple.com>
2317
2318         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2319
2320 2002-11-18  Klee Dienes  <kdienes@apple.com>
2321
2322         * buildsym.c (pop_context): Add comment.
2323         
2324 2002-11-18  Klee Dienes  <kdienes@apple.com>
2325
2326         * buildsym.h (pop_context): Convert to function, defined in
2327         buildsym.c.
2328         * buildsym.c: Include gdb_assert.h.
2329         (pop_context): Implement as C function.  Add check for stack
2330         underflow.
2331         * dbxread.c (process_one_symbol): Complain and stop processing
2332         that symbol if we are already at the top of the context stack for
2333         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2334         when processing N_RBRAC.
2335
2336 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2337
2338         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2339         define.
2340         (struct target_waitstatus): Add opaque definition.
2341         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2342         * exec.c (init_exec_ops): Likewise.
2343         * fork-child.c (clone_and_follow_inferior): Remove.
2344         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2345         * inferior.h (clone_and_follow_inferior): Remove prototype.
2346         * infrun.c (follow_fork_mode_both): Remove.
2347         (follow_fork_mode_kind_names): Remove commented out "both".
2348         (follow_inferior_fork): Remove follow_fork_mode_both support.
2349         * inftarg.c (child_clone_and_follow_inferior): Remove.
2350         (child_post_follow_inferior_by_clone): Remove.
2351         (init_child_ops): Don't set to_clone_and_follow_inferior
2352         or to_post_follow_inferior_by_clone.
2353         * target.c (default_clone_and_follow_inferior): Remove.
2354         (cleanup_target): Don't set to_clone_and_follow_inferior
2355         or to_post_follow_inferior_by_clone.
2356         (find_default_clone_and_follow_inferior): Remove.
2357         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2358         (debug_to_clone_and_follow_inferior): Remove.
2359         (debug_to_post_follow_inferior_by_clone): Remove.
2360         (setup_target_debug): Don't set to_clone_and_follow_inferior
2361         or to_post_follow_inferior_by_clone.
2362         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2363         and to_post_follow_inferior_by_clone.
2364         (child_clone_and_follow_inferior): Remove prototype.
2365         (child_post_follow_inferior_by_clone): Remove prototype.
2366         (target_clone_and_follow_inferior): Remove macro.
2367         (target_post_follow_inferior_by_clone): Remove macro.
2368         (find_default_clone_and_follow_inferior): Remove prototype.
2369
2370 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2371
2372         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2373         inferior_has_vforked, and inferior_has_execd instead of
2374         target_has_forked, target_has_vforked, and target_has_execd.
2375         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2376         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2377         (CHILD_WAIT): Define.
2378         (child_wait): Add prototype.
2379         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2380         Add prototype.
2381         (hpux_has_vforked): Likewise, from child_has_vforked.
2382         (hpux_has_execd): Likewise, from child_has_execd.
2383         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2384         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2385         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2386         and hpux_has_syscall_event instead of the target hooks.
2387         * infrun.c (inferior_has_forked, inferior_has_vforked)
2388         (inferior_has_execd): New functions.
2389         * inftarg.c (not_same_real_pid): Remove.
2390         (child_wait): Remove references to not_same_real_pid,
2391         target_has_forked, target_has_vforked, target_has_execd,
2392         and target_has_syscall_event.
2393         (child_has_forked, child_has_vforked, child_has_execd)
2394         (child_has_syscall_event): Remove.
2395         (init_child_ops): Remove references to child_has_forked,
2396         child_has_vforked, child_has_execd, and child_has_syscall_event.
2397         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2398         (hpux_has_vforked): Likewise, from child_has_vforked.
2399         (hpux_has_execd): Likewise, from child_has_execd.
2400         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2401         * target.c (cleanup_target): Remove references to
2402         to_has_forked, to_has_vforked, to_has_execd, and
2403         to_has_syscall_event.
2404         (update_current_target): Likewise.
2405         (setup_target_debug): Likewise.
2406         (debug_to_has_forked): Remove.
2407         (debug_to_has_vforked): Remove.
2408         (debug_to_has_execd): Remove.
2409         (debug_to_has_syscall_event): Remove.
2410         * target.h (struct target_ops): Remove to_has_forked.
2411         to_has_vforked, to_has_execd, and to_has_syscall_event.
2412         (child_has_forked, child_has_vforked, child_has_execd)
2413         (child_has_syscall_event): Remove prototypes.
2414         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2415         prototypes.
2416         (target_has_forked, target_has_vforked, target_has_execd)
2417         (target_has_syscall_event): Remove macros.
2418
2419 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2420
2421         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2422         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2423         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2424         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2425         * target.c (cleanup_target): Remove reference to
2426         to_can_follow_vfork_prior_to_exec.
2427         (update_current_target): Likewise.
2428         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2429         (setup_target_debug): Remove reference to
2430         to_can_follow_vfork_prior_to_exec.
2431         * target.h (struct target_ops): Remove
2432         to_can_follow_vfork_prior_to_exec.
2433         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2434         (target_can_follow_vfork_prior_to_exec): Remove definition.
2435         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2436         define.
2437         * infrun.c (follow_vfork_when_exec): Remove.
2438         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2439         (follow_exec): Likewise.
2440         (handle_inferior_event): Likewise.
2441         (keep_going): Likewise.
2442
2443 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2444
2445         * frame.c (generic_unwind_get_saved_register): Make static.
2446         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2447         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2448         defaults to generic_unwind_get_saved_register.
2449         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2450         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2451         * frv-tdep.c (frv_gdbarch_init): Ditto.
2452         * i386-tdep.c (i386_gdbarch_init): Ditto.
2453         * s390-tdep.c (s390_gdbarch_init): Ditto.
2454         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2455         * v850-tdep.c (v850_gdbarch_init): Ditto.
2456         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2457         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2458         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2459
2460 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2461
2462         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2463         i386-tdep.c.
2464
2465 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2466
2467         * frame.h (sigtramp_saved_pc): Delete declaration.
2468         * blockframe.c (sigtramp_saved_pc): Delete function.
2469         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2470         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2471         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2472         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2473
2474 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2475
2476         * frame.c (frame_pc_unwind): New function.
2477         (frame_saved_regs_pc_unwind): New function.
2478         (frame_register_unwind): Pass unwind_cache instead of
2479         register_unwind_cache.
2480         (set_unwind_by_pc): Add unwind_pc parameter, set.
2481         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2482         (get_prev_frame): Ditto.
2483         * frame.h (frame_pc_unwind_ftype): Declare.
2484         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2485         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2486         (frame_pc_unwind): Declare.
2487         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2488         (struct dummy_frame): Add comment mentioning that values are for
2489         previous frame.
2490         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2491         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2492         (generic_file_frame_chain_valid): Ditto.
2493         * stack.c (frame_info): Ditto.
2494
2495 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2496
2497         * linespec.c (locate_first_half): New function.
2498         (decode_line_1): Move code into locate_first_half.
2499
2500 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2501
2502         * complaints.h: Add comment explaining how to eliminate a
2503         deprecated_complain call.
2504         * complaints.h: Fix spelling errors.
2505
2506 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2507
2508         * printcmd.c: Remove #include "disasm.h".
2509
2510 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2511
2512         * frame.h: Move the most relevant interface functions to the start
2513         of the file.
2514
2515 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2516
2517         * regcache.h (deprecated_registers): Rename registers.
2518         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2519         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2520         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2521         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2522         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2523         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2524         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2525         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2526         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2527         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2528         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2529         * v850ice.c: Update.
2530
2531 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2532
2533         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2534         NULL buffer.
2535
2536 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2537
2538         * regcache.h (deprecated_read_register_bytes): Rename
2539         read_register_bytes.
2540         (deprecated_write_register_bytes): Rename write_register_bytes.
2541         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2542         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2543         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2544         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2545         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2546         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2547         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2548         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2549         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2550         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2551         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2552         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2553         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2554         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2555
2556 2002-11-13  Jim Blandy  <jimb@redhat.com>
2557
2558         * findvar.c (read_var_value): Doc fix.
2559
2560 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2561
2562         * regcache.c (struct regcache): Replace passthough_p with
2563         readonly_p.
2564         (regcache_xmalloc): Initialize readonly_p.
2565         (build_regcache): Initialize readonly_p.
2566         (regcache_save): New function.
2567         (regcache_restore): New function.
2568         (regcache_cpy): Re-implement using regcache_save and
2569         regcache_restore.
2570         (regcache_raw_read): Update.
2571         (regcache_cooked_read): When a read-only cache, checked for cached
2572         pseudo register values.
2573         (regcache_raw_write): Assert that the cache is not read-only.
2574         Remove code handling a non-passthrough cache.
2575         * regcache.h (regcache_save): Declare.
2576         (regcache_restore): Declare.
2577
2578 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2579
2580         * regcache.c (struct regcache_descr): Add fields
2581         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2582         (init_legacy_regcache_descr): Compute the size of a cooked
2583         register cache and then assign that to sizeof_raw_registers.  Set
2584         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2585         (init_legacy_regcache_descr): Ditto.
2586
2587 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2588
2589         * regcache.c (register_buffer): Move to near start of file, update
2590         description.
2591         (regcache_raw_read): Use.
2592         (regcache_raw_write): Use.
2593         (struct regcache): Rename raw_registers to registers and
2594         raw_register_valid_p to register_valid_p.
2595         (regcache_xmalloc): Update.
2596         (regcache_xfree): Update.
2597         (register_buffer): Update.
2598         (regcache_cpy): Update.
2599         (regcache_cpy_no_passthrough): Update.
2600         (regcache_valid_p): Update.
2601         (deprecated_grub_regcache_for_registers): Update.
2602         (deprecated_grub_regcache_for_register_valid): Update.
2603         (set_register_cached): Update.
2604         (regcache_raw_write): Update.
2605
2606 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2607
2608         * p-exp.y (name_not_typename): Use copy_name to
2609         set current_type variable for fields of THIS.
2610
2611 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2612
2613         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2614         * monitor.c (init_base_monitor_ops): Likewise.
2615         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2616         * remote-array.c (init_array_ops): Likewise.
2617         * remote-e7000.c (init_e7000_ops): Likewise.
2618         * remote-es.c (init_es1800_ops): Likewise.
2619         (init_es1800_child_ops): Likewise.
2620         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2621         * remote-sim.c (init_gdbsim_ops): Likewise.
2622         * remote-st.c (init_st2000_ops): Likewise.
2623         * sol-thread.c (init_sol_core_ops): Likewise.
2624         (init_sol_thread_ops): Likewise.
2625         * v850ice.c (init_850ice_ops): Likewise.
2626         * win32-nat.c (init_child_ops): Likewise.
2627         * wince.c (init_child_ops): Likewise.
2628
2629 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2630
2631         * utils.c (gdb_realpath): Make rp a constant pointer.
2632
2633 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2634
2635         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2636         a constant buffer; cannonicalize_file_name(); realpath() with a
2637         pathconf() defined buffer, xstrdup().
2638
2639 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2640
2641         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2642         to hang2.C; hang3.c to hang3.C.
2643
2644 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2645
2646         * findvar.c (read_var_value): Reenable TLS code.
2647
2648 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2649             Jim Blandy  <jimb@redhat.com>
2650         
2651         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2652         * target.c (update_current_target): Add
2653         to_get_thread_local_address.
2654         * target.h (to_get_thread_local_address): Export.
2655         (target_get_thread_local_address): Define.
2656         (target_get_thread_local_address_p): Define.
2657         * thread-db.c: Include solib-svr4.h.
2658         (td_thr_tls_get_addr_p): Define.
2659         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2660         (thread_db_get_thread_local_address): New function.
2661         (init_thread_db_ops): Initialize to_get_thread_local_address.
2662         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2663         * configure: Regenerate.
2664         * config.in: Regenerate.
2665
2666 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2667
2668         * linespec.c (set_flags): New function.
2669         (decode_line_1): Move code into set_flags.
2670
2671 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2672
2673         * linespec.c (decode_line_1): Move chunks of code to separate
2674         functions.
2675         (initialize_defaults): New function.
2676         (decode_indirect): New function.
2677
2678 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2679
2680         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2681         instead of void_code_ptr.
2682         (sigtramp_saved_pc): Ditto.
2683
2684         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2685         i386_fp_regnum_p.
2686
2687 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2688
2689         * gdbtypes.h (struct main_type): Move artificial flag out of
2690         loc.  New member of ``struct field'' named static_kind.  Reduce
2691         overloaded meaning of bitsize.
2692         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2693         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2694         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2695
2696         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2697         new fields.
2698         (template_to_fixed_record_type, template_to_static_fixed_type)
2699         (to_record_with_fixed_variant_part): Likewise.
2700         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2701         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2702         * dwarfread.c (struct_type, enum_type): Likewise.
2703         * hpread.c (hpread_read_enum_type)
2704         (hpread_read_function_type, hpread_read_doc_function_type)
2705         (hpread_read_struct_type): Likewise.
2706         * mdebugread.c (parse_symbol): Likewise.
2707
2708 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2709
2710         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2711         * stack.c (print_frame_info_base): Update.
2712         (print_frame_info_base, frame_info): Update.
2713         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2714         (sparc_frame_saved_pc): Update.
2715         * ada-lang.c (find_printable_frame): Update.
2716         * breakpoint.c (deprecated_frame_in_dummy): Update.
2717         
2718 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2719
2720         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2721         defined.
2722         (regmap): Extend to cover all registers.
2723         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2724         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2725         definitions.
2726         (fetch_register, sore_register): Simplify.
2727         (old_fetch_inferior_registers, old_store_inferior_registers):
2728         Remove functions.
2729         (cannot_fetch_register, cannot_store_register): Change
2730         implementation to use regmap array to decide which registers
2731         cannot be fetched/stored.  This removes $orig_eax from the
2732         registers that cannot be fetched/stored.
2733         (fetch_inferior_registers): Call fetch_register directly instead
2734         of calling old_fetch_inferior_registers.
2735         (store_inferior_registers): Call store_register directly instead
2736         of calling old_store_inferior_registers.
2737         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2738         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2739         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2740
2741 2002-11-09  Klee Dienes  <kdienes@apple.com>
2742
2743         * i387-tdep.c (i387_supply_register): When called with NULL as a
2744         buffer, mark the register as not provided (to mirror the behavior
2745         of supply_register).
2746         (i387_supply_fxsave): Ditto.
2747         (i387_supply_fsave): Ditto (inherits the behavior from
2748         i387_supply_register).
2749
2750 2002-11-09  Klee Dienes  <kdienes@apple.com>
2751
2752         * blockframe.c (sigtramp_saved_pc): Use
2753         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2754         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2755         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2756         
2757 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2758
2759         * frame.c (get_prev_frame): Test prev_p to identify a previously
2760         unwound frame.  Initialize prev_p.
2761         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2762         comment.
2763
2764 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2765
2766         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2767         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2768         more comments.  Zap dead code.
2769
2770 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2771
2772         * infcmd.c (print_vector_info, print_float_info): Move code that
2773         checks whether the target has any registers and whether there is a
2774         selected frame up, such that it is also used if a target provides
2775         multi-arch definitions of these functions.
2776
2777 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2778
2779         * Makefile.in (DESTDIR): Define.
2780         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2781         prefix.
2782
2783         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2784         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2785
2786 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2787
2788         * i386-linux-tdep.c: Include "reggroups.h".
2789         (i386_linux_register_reggroup_p): New function.
2790         (i386_linux_init_abi): Set register_reggroup_p to
2791         i386_linux_register_reggroup_p.
2792         * i386-tdep.h (i386_register_reggroup_p): Declare.
2793         * i386-tdep.c: Include "reggroups.h".
2794         (i386_init_reggroups): New function.
2795         (i386_add_reggroups): New function.
2796         (i386_register_reggroup_p): New function.
2797         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2798         (_initialize_i386_tdep): Call i386_init_reggroups.
2799         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2800         specific reggroups.
2801
2802 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2803
2804         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2805         request that's available in *BSD.
2806
2807         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2808
2809         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2810         FDOFF_REGNUM.
2811
2812 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2813
2814         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2815         * dummy-frame.c (find_dummy_frame): Rename
2816         generic_find_dummy_frame, make static.  Return the dummy frame
2817         instead of the regcache.
2818         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2819         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2820         (dummy_frame_register_unwind): Rename
2821         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2822         * dummy-frame.h (dummy_frame_register_unwind): Rename
2823         generic_call_dummy_register_unwind.
2824
2825 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2826
2827         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2828         except the inclusion of "i386/tm-i386.h", to...
2829         * config/i386/nm-i386v42mp.h: ...here.
2830         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2831
2832 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2833
2834         * Makefile.in (frame.o): Update dependencies.
2835         * blockframe.c (current_frame, frame_obstack_alloc)
2836         (frame_saved_regs_zalloc, get_current_frame)
2837         (set_current_frame, create_new_frame)
2838         (set_unwind_by_pc, get_next_frame)
2839         (flush_cached_frames, reinit_frame_cache)
2840         (frame_saved_regs_register_unwind)
2841         (deprecated_generic_get_saved_register)
2842         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2843         (_initialize_blockframe): Move frame code from here...
2844         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2845         "annotate.h" and "dummy-frame.h".
2846         (_initialize_frame): New function.
2847
2848 2002-11-08  Jim Blandy  <jimb@redhat.com>
2849
2850         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2851         when we finish a function a context.
2852         * buildsym.h (outermost_context_p): New macro.
2853         (Bug analyzed by David Edelsohn.)
2854
2855 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2856
2857         * blockframe.c: Include "dummy-frame.h".
2858         (struct dummy_frame, dummy_frame_stack)
2859         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2860         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2861         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2862         (generic_save_call_dummy_addr, generic_pop_current_frame)
2863         (generic_pop_dummy_frame, generic_fix_call_dummy)
2864         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2865         dummy frame code from here...
2866         * dummy-frame.c: ...to here.  New file.
2867         * dummy-frame.h: New file.
2868         (generic_call_dummy_register_unwind): Declare.
2869         (generic_find_dummy_frame): Declare.
2870         * Makefile.in (SFILES): Add dummy-frame.c.
2871         (dummy-frame.o): Specify dependencies.
2872         (dummy_frame_h): Define.
2873         (COMMON_OBS): Add dummy-frame.o.
2874         (blockframe.o): Update dependencies.
2875
2876 2002-11-08  Jim Blandy  <jimb@redhat.com>
2877
2878         * dwarf2read.c (read_func_scope): Restore local_symbols and
2879         param_symbols after we finish the function context.  (Based on a
2880         patch from David Edelsohn.)
2881
2882 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2883
2884         * linespec.c (symbol_found): New function.
2885         (minsym_found): New function.
2886         (decode_line_1): Separate out some code into separate functions.
2887
2888 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2889
2890         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2891         the benefit of the interix target.
2892         * i386-tdep.h (i386_frameless_signal_p): Declare.
2893
2894 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2895
2896         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2897         declaration that snuck in from change below.
2898
2899 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2900
2901         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2902         all callers.
2903         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2904         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2905         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2906         (i386_mxcsr_regnum_p): new function.  Use instead of
2907         MXCSR_REGNUM_P.
2908         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2909         (i386_sse_regnum_p): Declare.
2910         (i386_mxcsr_regnum_p): Declare.
2911         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2912         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2913         (IS_FP_REGNUM): Update definition.
2914         (IS_FPU_CTRL_REGNUM): Update definition..
2915         (IS_SSE_REGNUM): Update definition..
2916         * i386v-nat.c (register_u_addr): Update.
2917         * go32-nat.c (fetch_register): Update.
2918         (store_register): Update.
2919
2920 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2921
2922         Preparation work to convert the hppa targets to multiarch partial.
2923
2924         * hppa-tdep.c: Add new functions replacing macro bodies from
2925         config/pa/tm-hppa.h. These function will be used to initialize
2926         the gdbarch structure. Import some comments from tm-hppa.h,
2927         and place them where appropriate, to avoid loosing them when
2928         we cleanup this file.
2929         (hppa_reg_struct_has_addr): New function.
2930         (hppa_inner_than): New function.
2931         (hppa_stack_align): New function.
2932         (hppa_pc_requires_run_before_use): New function.
2933         (hppa_instruction_nullified): New function.
2934         (hppa_register_byte): New function.
2935         (hppa_register_virtual_type): New function.
2936         (hppa_store_struct_return): New function.
2937         (hppa_cannot_store_register): New function.
2938         (hppa_frame_args_address): New function.
2939         (hppa_frame_locals_address): New function.
2940         (hppa_smash_text_address): New function.
2941         (hppa_coerce_float_to_double): New function. Requires the inclusion
2942         of "language.h".
2943
2944         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2945
2946         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2947         gdbarch-eligible macro to a call to the new associated function
2948         created in hppa-tdep.c.
2949         (INNER_THAN): Likewise.
2950         (STACK_ALIGN): Likewise.
2951         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2952         (INSTRUCTION_NULLIFIED): Likewise.
2953         (REGISTER_BYTE): Likewise.
2954         (REGISTER_VIRTUAL_TYPE): Likewise.
2955         (STORE_STRUCT_RETURN): Likewise.
2956         (CANNOT_STORE_REGISTER): Likewise.
2957         (FRAME_ARGS_ADDRESS): Likewise.
2958         (FRAME_LOCALS_ADDRESS): Likewise.
2959         (SMASH_TEXT_ADDRESS): Likewise.
2960         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2961         (ABOUT_TO_RETURN): Delete, as no longer used.
2962
2963 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2964
2965         * printcmd.c (disassemble_command): Remove obsolete function.
2966         (_initialize_printcmd): Do not create disassemble command here.
2967         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2968         disassemble command.
2969         (init_cli_cmds): Create disassemble command here instead.
2970
2971 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2972
2973         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2974
2975 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2976
2977         * regcache.h (regcache_cooked_read_using_offset_hack)
2978         (regcache_cooked_write_using_offset_hack): Delete declarations.
2979         (register_changed): Delete declaration.
2980         * regcache.c (regcache_cooked_read_using_offset_hack)
2981         (regcache_cooked_write_using_offset_hack): Delete functions.
2982         (cooked_xfer_using_offset_hack): Delete function.
2983         (register_changed): Delete function.
2984
2985 2002-11-07  Jim Blandy  <jimb@redhat.com>
2986
2987         * macroscope.c: #include "complaints.h".
2988         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2989         but not in the macro table.
2990         * Makefile.in (macroscope.o): Record dependency.
2991
2992 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2993
2994         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2995
2996 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2997
2998         * regcache.c (deprecated_registers_fetched): Update.
2999         * regcache.h (deprecated_registers_fetched): Rename
3000         registers_fetched.
3001         * remote-vxsparc.c (vx_read_register): Update.
3002         * remote-vxmips.c (vx_read_register): Update.
3003         * remote-vx68.c (vx_read_register): Update.
3004         * irix5-nat.c (fetch_core_registers): Update.
3005         * mipsm3-nat.c (fetch_inferior_registers): Update.
3006         * sun3-nat.c (fetch_inferior_registers): Update.
3007         * symm-nat.c (fetch_inferior_registers): Update.
3008         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3009         (fetch_core_registers): Update.
3010         (fetch_kcore_registers): Update.
3011         * mips-nat.c (fetch_inferior_registers): Update.
3012         * corelow.c (get_core_registers): Update.
3013         * a68v-nat.c (fetch_inferior_registers): Update.
3014
3015 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3016
3017         Put in place the framework necessary for multiarching the hppa targets.
3018         * hppa-tdep.c (hppa_gdbarch_init): New function.
3019         (hppa_dump_tdep): New function.
3020         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3021         tdep structure dumper.
3022         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3023         until the multi-arching conversion has partially been completed.
3024
3025 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3026
3027         * valops.c (value_assign): Merge lval_register case into
3028         lval_reg_frame_relative.  Use frame_register and
3029         regcache_cooked_write instead of get_saved_register and
3030         write_register_bytes.  After flushing the register cache, try to
3031         re-select the selected frame.
3032
3033 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3034
3035         * regcache.h (deprecated_register_valid): Rename register_valid.
3036         * regcache.c: Update.
3037         * ia64-aix-nat.c: Update.
3038         * i386gnu-nat.c: Update.
3039         * alpha-nat.c: Update.
3040         * sparc-nat.c: Update.
3041         * lynx-nat.c: Update.
3042         * remote-mips.c: Update.
3043
3044 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3045
3046         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3047         to end of file, to be more consistent with the pratice followed
3048         by other targets.
3049
3050 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3051
3052         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3053         (print_float_info): Print registers in float_reggroup.
3054         (print_vector_info): Print registers in vector_reggroup.
3055         (default_print_registers_info): When all, print registers in
3056         all_reggroup.  Otherwize, print registers in general_reggroup.
3057         (registers_info): Rewrite.  Add support for register groups.
3058         Eliminate a goto.
3059
3060 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3061
3062         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3063         ages.
3064         (symtab_symbol_info): Remove eons old ifdeffed out code.
3065         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3066         command.
3067
3068 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3069
3070         * c-exp.y: Add missing semi-colons.
3071         * f-exp.y: Add missing semi-colons.
3072         * m2-exp.y: Add missing semi-colons.
3073         * p-exp.y: Add missing semi-colons.
3074         Add empty action to start rule to avoid a type clash error when
3075         building with bison >= 1.50.
3076
3077 2002-11-06  Jim Blandy  <jimb@redhat.com>
3078
3079         * macrotab.h (struct macro_source_file): Doc fix.
3080
3081 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3082
3083         * varobj.c (child_exists, cplus_number_of_children): Change
3084         STREQ macro references to strcmp.
3085         (cplus_name_of_child): Change code to handle the fact that
3086         fields are not necessarily contiguous with regards to their 
3087         access control. This is a fix for PR gdb/792.
3088
3089 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3090
3091         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3092         * gdbarch.h, gdbarch.c: Regnerate.
3093         * frame.h (frame_register): Declare.
3094         * frame.c (frame_register): New function.
3095         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3096         GET_SAVED_REGISTER, otherwize call
3097         generic_unwind_get_saved_register.
3098         (frame_register_read): Use frame_register instead of
3099         get_saved_register.
3100
3101 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3102         
3103         From Jim Ingham  <jingham@apple.com>:
3104         * event-top.c (gdb_disable_readline): New function.
3105         (_initialize_event_loop): Move comment.
3106
3107 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3108
3109         * event-loop.c (start_event_loop): Add comment.
3110         Update copyright.
3111
3112 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3113
3114         * infcmd.c (default_print_registers_info): Do not call
3115         PRINT_REGISTER_HOOK.
3116
3117 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3118
3119         * sparc-tdep.c (sparc_print_register_hook): Make static.
3120         (sparc_print_registers_info): New function.
3121         (sparc_do_registers_info): New function.
3122         (sparclet_print_registers_info): New function.
3123         (sparclet_do_registers_info): New function.
3124         (do_sparc_print_registers_info): New function.
3125         (sparc_print_registers): New static function, clone of infcmd.c's
3126         default_print_registers_info.
3127         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3128         (sparclet_do_registers_info): Declare.
3129         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3130         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3131         Re-define.
3132         (sparc_do_registers_info): Declare.
3133         (PRINT_REGISTER_HOOK): Delete macro.
3134         (sparc_print_register_hook): Delete declaration.
3135
3136 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3137
3138         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3139         functions.
3140         (lookup_symbol_aux_local): New function.
3141         (lookup_symbol_aux_symtabs): New function.
3142         (lookup_symbol_aux_psymtabs): New function.
3143
3144 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3145
3146         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3147         previous values of 'objfile' and 'block'.
3148
3149 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3150
3151         * values.c (value_change_enclosing_type): Set 
3152         enclosing_type field correctly also for the case where 
3153         more memory needs to be allocated.
3154
3155 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3156
3157         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3158         of puts_filtered.
3159
3160         * i387-tdep.c (i387_print_float_info): Replace calls to
3161         register_read and deprecated_read_register_gen with calls to
3162         frame_register_read, and make the necessary adjustments to the
3163         surrounding code.
3164
3165 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3166
3167         * gdbarch.sh (register_reggroup_p): Allow default value.
3168         * gdbarch.h, gdbarch.c: Regenerate.
3169
3170 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3171
3172         * regcache.h: Add coment indicating replacements for deprecated
3173         functions.
3174
3175 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3176
3177         * reggroups.h, reggroups.c: New files.
3178         * regcache.c: Include "reggroups.h".
3179         (enum regcache_dump_what): Add `regcache_dump_groups'.
3180         (regcache_dump): Contract size of the "Type" column.  When
3181         specified, dump the register's groups.
3182         (maintenance_print_register_groups): New function.
3183         (_initialize_regcache): Add command `maint print register-groups'.
3184         * Makefile.in (COMMON_OBS): Add reggroups.o
3185         (SFILES): Add reggroups.c.
3186         (reggroups_h): Define.
3187         (regcache.o, gdbarch.o): Update dependencies.
3188         (reggroups.o): Specify dependencies.
3189         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3190         Add opaque declaration for `struct reggroup' in generated .h file.
3191         Include "reggroups.h" in generated .c file.
3192         gdbarch.h, gdbarch.c: Re-generate.
3193
3194 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3195
3196         * regcache.h (deprecated_read_register_gen): Rename
3197         read_register_gen.
3198         (deprecated_write_register_gen): Rename write_register_gen.
3199         * i387-tdep.c: Update.
3200         * x86-64-linux-nat.c: Update
3201         * wince.c: Update.
3202         * thread-db.c: Update.
3203         * win32-nat.c: Update.
3204         * mips-tdep.c: Update.
3205         * d10v-tdep.c: Update.
3206         * cris-tdep.c: Update.
3207         * remote-sim.c: Update.
3208         * remote-rdi.c: Update.
3209         * remote-rdp.c: Update.
3210         * frame.c: Update.
3211         * target.c: Update.
3212         * blockframe.c: Update.
3213         * x86-64-tdep.c: Update.
3214         * xstormy16-tdep.c: Update.
3215         * sh-tdep.c: Update.
3216         * s390-tdep.c: Update.
3217         * rs6000-tdep.c: Update.
3218         * sparc-tdep.c: Update.
3219         * i386-tdep.c: Update.
3220         * dwarf2cfi.c: Update.
3221         * regcache.c: Update.
3222
3223 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3224
3225         New interix-specific files:
3226         * config/i386/nm-interix.h: New file.
3227         * config/i386/interix.mh: New file.
3228         * config/i386/interix.mt: New file.
3229         * i386-interix-nat.c: New file.
3230         * i386-interix-tdep.c: New file.
3231
3232 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3233
3234         * frame.h (deprecated_generic_get_saved_register): Rename
3235         generic_get_saved_register.
3236         * blockframe.c (deprecated_generic_get_saved_register): Update.
3237         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3238         (xstormy16_frame_saved_register): Update.
3239         * sh-tdep.c (sh_gdbarch_init): Update.
3240         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3241         * ia64-tdep.c (ia64_get_saved_register): Update.
3242         * cris-tdep.c (cris_gdbarch_init): Update.
3243         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3244         * arm-tdep.c (arm_gdbarch_init): Update.
3245
3246 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3247
3248         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3249
3250 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3251
3252         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3253         trampolines in sigaction.
3254
3255 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3256
3257         * h8300-tdep.c: Include "gdb_assert.h".
3258         (h8300_print_register): Add gdbarch, file and frame parameters.
3259         Use frame_read_unsigned_register to read the register's value.
3260         Use fprintf_filtered to display output.
3261         (h8300_print_registers_info): Replace h8300_do_registers_info.
3262         (h8300_gdbarch_init): Set print_registers_info.
3263
3264 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3265
3266         * frame.c (frame_read_unsigned_register): New function.
3267         (frame_read_signed_register): New function.
3268         * frame.h (frame_read_unsigned_register): Declare.
3269         (frame_read_signed_register): Declare.
3270
3271 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3272
3273         * h8500-tdep.c (h8500_print_registers_info): New static function,
3274         clone of infcmd.c's default_print_registers_info.
3275         (h8500_do_registers_info): New funtion.
3276         (h8500_print_register_hook): Rename print_register_hook, make
3277         static.
3278
3279         * config/h8500/tm-h8500.h: Update copyright.
3280         (DEPRECATED_DO_REGISTERS_INFO): Define.
3281         (h8500_do_registers_info: Declare.
3282         (PRINT_REGISTER_HOOK): Delete macro.
3283         (print_register_hook): Delete function.
3284
3285 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3286
3287         * z8k-tdep.c (z8k_print_register_hook): Make static.
3288         (z8k_print_registers_info): New static function, clone of
3289         infcmd.c's default_print_registers_info.
3290         (z8k_do_registers_info): New function.  Wrap
3291         z8k_print_registers_info.
3292         * config/z8k/tm-z8k.h: Update copyright.
3293         (PRINT_REGISTER_HOOK): Delete macro.
3294         (z8k_print_register_hook): Delete declaration.
3295         (DEPRECATED_DO_REGISTERS_INFO): Define.
3296         (z8k_do_registers_info): Declare.
3297
3298 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3299
3300         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3301         as this is already provided by value.h, and was actually causing
3302         a compilation error because of a conflict in parameter type
3303         declaration due to a missing const keyword.
3304         (low_text_segment_addres): Fix a compilation warning.
3305
3306 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3307
3308         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3309         registers without a name.
3310         (mips_linux_cannot_store_register): Don't store registers without
3311         a name.
3312
3313 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3314
3315         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3316         out.)
3317         * symtab.h: Delete prototype for find_addr_symbol.
3318
3319 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3320
3321         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3322         DO_REGISTERS_INFO.
3323         gdbarch.h, gdbarch.c: Re-generate.
3324         * infcmd.c (default_print_registers_info): Update reference.
3325         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3326         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3327         * sh-tdep.c (sh_gdbarch_init): Ditto.
3328         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3329         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3330
3331 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3332
3333         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3334         cfi_init_extra_frame_info.
3335         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3336         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3337
3338         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3339         target where necessary.  Add more comments and remove the ones
3340         that don't provide any useful information.
3341
3342         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3343         deprecated_read_register_dummy with
3344         frame_unwind_unsigned_register.
3345
3346         * i386-tdep.c (i386_extract_struct_value_address): Use
3347         regcache_raw_read_unsigned instead of
3348         regcache_cooked_read_unsigned since we know that the register
3349         we're reading isn't a pseudo register.  Rename variable 'val' into
3350         the more descriptive 'addr'.
3351
3352         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3353         (x86_64_push_return_address): Add comment.
3354         (x86_64_pop_frame): Make static.
3355         (examine_argument): Clarify comment.
3356         (x86_64_skip_prologue): Make prolog_expact variable static.
3357
3358         * dwarf2cfi.c: Fix some formatting problems.
3359         (context_cpy, read_encoded_pointer): Clarify comments.
3360
3361         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3362         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3363         i386 target back into x86_64_gdbarch_init.  Add some comments and
3364         remove meaningless ones.
3365
3366 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3367
3368         * complaints.h (struct deprecated_complaint): Rename `struct
3369         complaint'.
3370         * complaints.c (complain): Update.
3371         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3372         incorrect comment indicating that "symfile.h" was being included
3373         for the `struct complaint' definition.
3374         * remote-vx.c: Update.
3375         * objc-lang.c: Update.
3376         * xcoffread.c: Update.
3377         * hpread.c: Update.
3378         * mdebugread.c: Update.
3379         * stabsread.c: Update.
3380         * dwarf2read.c: Update.
3381         * dwarfread.c: Update.
3382         * elfread.c: Update.
3383         * coffread.c: Update.
3384         * stabsread.h: Update.
3385         * dbxread.c: Update.
3386         * buildsym.c: Update.
3387         * gdbtypes.c: Update.
3388         * macrotab.c: Update.
3389
3390 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3391
3392         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3393         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3394         (x86_64_init_abi): ...new function.
3395
3396         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3397         * i386v-nat.c: Include "i386-tdep.h".
3398
3399 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3400
3401         * gdbtypes.c (address_space_name_to_int): Update.
3402         (address_space_int_to_name): Update.
3403         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3404         multi-arch predicate.
3405         (address_class_name_to_type_flags): Ditto.
3406         * gdbarch.h, gdbarch.c: Re-generate.
3407         
3408         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3409
3410 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3411
3412         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3413
3414 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3415
3416         * symtab.h (INIT_SAL): Delete macro.
3417         (init_sal): Export.
3418         * symtab.c (init_sal): New function.
3419
3420         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3421         to init_sal function call.
3422         (find_sal_from_funcs_and_line): Ditto.
3423         (all_sals_for_line): Ditto. 
3424         * breakpoint.c (create_internal_breakpoint): Ditto. 
3425         (create_fork_vfork_event_catchpoint): Ditto. 
3426         (create_exec_event_catchpoint): Ditto. 
3427         (parse_breakpoint_sals): Ditto. 
3428         (watch_command_1): Ditto. 
3429         (handle_gnu_4_16_catch_command): Ditto.
3430         (clear_command): Ditto. 
3431         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3432         * infcmd.c (run_stack_dummy): Ditto. 
3433         * infrun.c (process_event_stop_test): Ditto.
3434         (check_sigtramp2): Ditto.
3435         (step_over_function): Ditto. 
3436         * linespec.c (decode_line_2): Ditto. 
3437         (decode_line_1): Ditto. 
3438         * source.c (line_info): Ditto. 
3439         * symtab.c (find_pc_sect_line): Ditto.
3440
3441 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3442
3443         * dwarf2cfi.c (struct context)
3444         (struct context_reg): Moved to dwarf2cfi.h
3445         (context_alloc, frame_state_alloc, context_cpy):
3446         Made extern instead of static, removed prototypes.
3447         * dwarf2cfi.h (struct context)
3448         (struct context_reg): New, moved from dwarf2cfi.c
3449         (context_alloc, frame_state_alloc, context_cpy):
3450         New prototypes.
3451         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3452         Changed from static to extern.
3453         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3454         (LINUX_SIGCONTEXT_FP_OFFSET)
3455         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3456         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3457         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3458         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3459         set_gdbarch_*() calls now use x86-64 specific functions 
3460         instead of DWARF2 CFI ones.
3461         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3462         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3463         (x86_64_init_extra_frame_info): New prototypes.
3464         
3465 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3466
3467         * linespec.c: #include "parser-defs.h".
3468         Delete prototype for find_template_name_end.
3469         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3470
3471 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3472
3473         * NEWS: add recent mi fixes.
3474         * varobj.c (struct varobj): Add new "updated" flag.
3475         (new_variable): Default "updated" flag to 0.
3476         (varobj_set_value): Set "updated" flag to 1 if value
3477         changes.
3478         (varobj_update): Check varobj "updated" flag before
3479         comparing old and refreshed values.  Fix for
3480         PR gdb/702.
3481
3482 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3483
3484         * parse.c (parse_exp_1): Use BLOCK_START.
3485         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3486         SYMBOL_BLOCK_VALUE.
3487         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3488
3489 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3490
3491         * symtab.c: Delete cplusplus_hint.
3492         Delete prototype for find_template_name_end.
3493
3494 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3495
3496         * symtab.h: Update comment.
3497
3498 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3499
3500         * printcmd.c (address_info): Restore quotes in output.
3501         * valops.c (value_of_local): Restore quotes in error message.
3502
3503 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3504
3505         * symtab.c (symbol_demangled_name): New function.
3506         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3507         turning most of it into a function.
3508         (symbol_demangled_name): Export.
3509
3510 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3511
3512         * valops.c (value_of_local): Restore quotes in error message.
3513
3514 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3515
3516         * symtab.c (symbol_init_language_specific): New function.
3517         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3518         turning most of it into a function.
3519         (symbol_init_language_specific): Export.
3520
3521 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3522
3523         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3524         (dwarf_attr_name): Ditto.
3525         (dwarf_type_encoding_name): Ditto.
3526         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3527         (process_die): Handle DW_TAG_namespace,
3528         DW_TAG_imported_declaration, DW_TAG_imported_module.
3529         (read_namespace): New function.
3530
3531 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3532
3533         * configure.in: Define NEW_PROC_API on Interix too.
3534         * configure: Regenerate.
3535
3536 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3537
3538         * configure: Regenerate using the proper version of autoconf.
3539
3540 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3541
3542         * findvar.c (read_var_value): Temporarily disable TLS code, until
3543         complete TLS support is added.
3544
3545 2002-10-21  Jim Blandy  <jimb@redhat.com>
3546             Elena Zannoni  <ezannoni@redhat.com>
3547
3548         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3549         for thread local storage locations.
3550         (struct symbol): Add objfile field.
3551         (SYMBOL_OBJFILE): Define.
3552         * dwarf2read.c (is_thread_local): New static variable.
3553         (new_symbol): If variable is in thread local fill in address class
3554         and objfile appropriately.
3555         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3556         stack operation.
3557         * printcmd.c (address_info): Print the information for thread
3558         local storage variable.
3559         * findvar.c (read_var_value): In case of thread local variable,
3560         defer to the target vector code to compute address.
3561
3562 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3563
3564         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3565         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3566
3567 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3568
3569         * symtab.h (address_class):  Rename
3570         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3571         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3572         * printcmd.c (address_info): Ditto.
3573         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3574
3575 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3576
3577         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3578         DBREG_DRX macro to acces debug registers.
3579
3580         * Makefile.in (i386obsd-tdep.o): New target.
3581
3582         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3583         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3584
3585         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3586         * config/i386/obsd.mt: New file.
3587         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3588         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3589         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3590         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3591         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3592         * i386obsd-tdep.c: New file.
3593
3594 2002-10-19  Adam Fedor  <fedor@gnu.org>
3595
3596         * objc-exp.y (name_not_typename): Fix invalid comment.  
3597
3598 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3599
3600         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3601         to allocate partial syms and macro byte caches.
3602
3603 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3604
3605         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3606
3607 2002-10-18  Adam Fedor  <fedor@gnu.org>
3608
3609         * stabsread.c (find_name_end): New function.
3610         (define_symbol): Use it.
3611
3612 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3613
3614         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3615         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3616         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3617         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3618
3619 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3620
3621         * symfile.h: Add opaque declaration for struct obstack.
3622         Declare obsavestring to take a const char *.
3623         * symfile.c (obsavestring): Make first argument a const char *.
3624
3625 2002-10-16  Adam Fedor  <fedor@gnu.org>
3626
3627         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3628         names when matching breakpoints in current file.
3629
3630 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3631
3632         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3633         (read_tag_pointer_type): Add address class support.
3634         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3635         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3636         New methods.
3637         * gdbarch.h, gdbarch.c: Regenerate.
3638         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3639         (make_type_with_address_space, recursive_type_dump): Add address
3640         class support.
3641         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3642         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3643         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3644
3645 2002-10-16  Klee Dienes  <kdienes@apple.com>
3646
3647         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3648         to get the last character of a char[] buffer, not
3649         name[sizeof(vptr_name)-1].
3650
3651 2002-10-14  Adam Fedor  <fedor@gnu.org>
3652
3653         * symtab.h: New objc_specific struct.
3654         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3655         (SYMBOL_DEMANGLED_NAME): Likewise.
3656
3657 2002-10-14  Adam Fedor  <fedor@gnu.org>
3658
3659         * symfile.c (init_filename_language_table): Add ObjC file extension.
3660
3661 2002-10-14  Adam Fedor  <fedor@gnu.org>
3662
3663         * utils.c (puts_filtered_tabular): New function.
3664         (fprintf_symbol_filtered): Get ObjC demangled name.
3665         * defs.h (puts_filtered_tabular): Declared.
3666
3667 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3668
3669         * c-lang.h (c_type_print_varspec_prefix): Delete.
3670         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3671         ``need_post_space'' parameter.  Adjust all callers.
3672
3673 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3674  
3675         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3676         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3677         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3678         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3679
3680 2002-10-13  Adam Fedor  <fedor@gnu.org>
3681
3682         * source.c (print_source_lines): Update comments.
3683
3684 2002-10-13  Adam Fedor  <fedor@gnu.org>
3685
3686         * valops.c (value_of_local): New function.
3687         (value_of_this): Use it.
3688         * value.h (value_of_local): Declared.
3689
3690 2002-10-13  Adam Fedor  <fedor@gnu.org>
3691
3692         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3693         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3694
3695 2002-10-12  Adam Fedor  <fedor@gnu.org>
3696
3697         * language.c (binop_result_type): Add language_objc to case.
3698         (integral_type): Likewise.
3699         (character_type): Likewise.
3700         (string_type): Likewise.
3701         (boolean_type): Likewise.
3702         (structured_type): Likewise.
3703         (binop_type_check): Likewise.
3704
3705 2002-10-11  Adam Fedor  <fedor@gnu.org>
3706
3707         * printcmd.c (address_info): Print 'self' for ObjC.
3708
3709 2002-10-11  Adam Fedor  <fedor@gnu.org>
3710
3711         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3712         OP_SELF.
3713
3714 2002-10-11  Adam Fedor  <fedor@gnu.org>
3715
3716         * language.h (CAST_IS_CONVERSION): Add language_objc.
3717
3718 2002-10-11  Adam Fedor  <fedor@gnu.org>
3719
3720         * defs.h (enum language): Add language_objc.
3721
3722 2002-10-11  Klee Dienes  <kdienes@apple.com>
3723
3724         * corefile.c (read_memory_typed_address): New function.
3725         * gdbcore.h (read_memory_typed_address): Add prototype.
3726         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3727         to read a value destined for a CORE_ADDR, not read_memory_integer.
3728         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3729         (f77_get_dynamic_lowerbound): Ditto.
3730
3731 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3732
3733         * utils.c (string_to_core_addr): After turning string into
3734         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3735         which will do necessary sign-extension, etc.
3736
3737 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3738
3739         * c-exp.y (THIS): Delete token and grammar rule.
3740         (yylex): Don't return THIS.
3741         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3742         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3743         * demangle.c (cplus_markers): Update comment.  Put '$'
3744         first.  Remove CPLUS_MARKER.
3745         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3746         * jv-exp.y (THIS): Delete token and grammar rule.
3747         (yylex): Don't return THIS.
3748         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3749         * objc-exp.y (THIS): Delete token and grammar rule.
3750         (yylex): Don't return THIS.
3751         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3752         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3753         (read_member_functions): Likewise for opname.
3754         (read_tilde_fields): Use is_cplus_marker.
3755
3756         * defs.h (CPLUS_MARKER): Don't define.
3757         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3758         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3759         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3760         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3761         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3762
3763         * config/i386/tm-i386v4.h: Delete file.
3764         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3765         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3766         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3767         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3768         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3769         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3770         * config/i386/i386v4.mt (TM_FILE): Likewise.
3771         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3772
3773 2002-10-10  Marko Mlinar  <markom@opencores.org>
3774
3775         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3776         accidentially not commited 2002-10-09
3777         * gdbarch.h, gdbarch.c: Re-generate.
3778
3779 2002-10-09  Marko Mlinar  <markom@opencores.org>
3780
3781         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3782         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3783         * gdbarch.h, gdbarch.c: Re-generate.
3784
3785 2002-10-08  Petr Sorfa <petrs@caldera.com>
3786
3787         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3788
3789         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3790         so we can work on more than one compilation unit at a time.  This
3791         helps prepare GDB to handle inter-CU die references.
3792         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3793         the code to be defined before struct comp_unit_head.
3794         (comp_unit_head): Added new members - offset, cu_head,
3795         begin_die, next and dwarf2_abbrevs.
3796         (dwarf2_abbrevs): Removed single static var; now member of
3797         struct comp_unit_head.
3798         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3799         members.
3800         (psymtab_to_symtab_1): Changed to work with the new
3801         struct comp_unit_head.
3802         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3803         constructs the dwarf2_abbrevs[] inside the cu_header.
3804         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3805         dwarf2_abbrev table to clean up.
3806         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3807         handling of dwarf2_abbrevs inside the cu_header.
3808         (read_partial_die): Now supports the call to the new
3809         dwarf2_lookup_abbrev.
3810         (read_full_die): Now supports the call to the new
3811         dwarf2_lookup_abbrev.
3812
3813 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3814
3815         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3816         insure that shell variables, such as "transformed_name" are propagated
3817         to later shell statements in rule.
3818
3819 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3820
3821         * config/i386/nm-i386sco.h: Add protection against
3822         multiple-inclusion.  Include "i386/nm-i386v.h".
3823         (REGISTER_U_ADDR): Remove define.
3824         (i386_register_u_addr): Remove prototype.
3825
3826 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3827
3828         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3829         before treating it as a single-step event.
3830
3831 2002-10-03  Adam Fedor  <fedor@gnu.org>
3832
3833         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3834         (objc_demangle): Remove assignment in if statements, Replace
3835         free with xfree.
3836         (add_msglist): Likewise.
3837         (end_msglist): Likewise.
3838         (complare_selectors): Likewise.
3839         (selectors_info): Likewise.
3840         (compare_classes): Likewise.
3841         (classes_info): Likewise.
3842         (print_object_command): Likewise.
3843         (find_objc_msgcall_submethod): Replace PTR with void *.
3844         * objc-lang.h: Remove check for __STDC__.
3845
3846 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3847
3848         * ui-out.h (ui_out_field_fmt_int): New prototype.
3849         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3850         of field width and alignment.
3851         * stack.c (print_frame_info_base): When printing frame level, use
3852         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3853         PR gdb/192
3854
3855 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3856
3857         * MAINTAINERS: Add self to Write After Approval list.
3858
3859 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3860
3861         * infcmd.c (interrupt_target_command_wrapper): Delete.
3862         (interrupt_target_command): Make non static.
3863         (nofp_registers_info): Make static.
3864         * stack.c (return_command_wrapper): Delete.
3865         (return_command): Make non static.
3866
3867 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3868
3869         * event-top.c (gdb_setup_readline): New function. Code moved from
3870         _initialize_event_loop().
3871         (_initialize_event_loop): Call gdb_setup_readline().
3872
3873 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3874
3875         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3876         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3877         * gdbarch.h, gdbarch.c: Re-generate.
3878
3879 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3880
3881         Fix PR gdb/778
3882         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3883         before recursing.
3884         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3885         of fill_in_vptr_fieldno.
3886
3887 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3888
3889         * inferior.h (registers_info, stepi_command, nexti_command,
3890         continue_command, interrupt_target_command): Export from infcmd.c.
3891         * frame.h (args_info, selected_frame_level_changed_hook,
3892         return_command): Export from stack.c.
3893         * v850ice.c (stepi_command, nexti_command, continue_command): use
3894         prototypes from inferior.h.
3895         * tracepoint.c (registers_info, args_info, locals_info): Use
3896         prototypes from frame.h and inferior.h.
3897         * Makefile.in (mi-main.o): Add dependency on frame.h.
3898
3899 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3900
3901         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3902         value in register 3 adjusted by ppc_gp0_regnum.
3903
3904         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3905
3906 2002-10-02  Marko Mlinar <markom@opencores.org>
3907
3908         * MAINTAINERS: Add myself to the Write After Approval list.
3909
3910 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3911
3912         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3913         of the section for the N64 ABI, fixed.
3914
3915         * config/mips/tm-irix6.h: Include solib.h.
3916
3917 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3918
3919         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3920         GNU operators.
3921
3922 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3923
3924         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3925         and that "mi0" syntax has been removed.
3926
3927 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3928
3929         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3930         * ppc-sysv-tdep.c: #include "gdb_string.h".
3931         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3932         pacify GCC.
3933
3934 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3935
3936         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3937         "vrsave"'s register number.
3938
3939 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3940
3941         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3942         use frame_unwind_signed_register to obtain the PC.
3943         (mips_frame_chain): Handle a generic dummy frame.
3944         (mips_init_extra_frame_info): When a generic dummy frame, don't
3945         re-compute the frame base.
3946         (mips_pop_frame): Handle generic dummy frames.
3947         (mips_gdbarch_init): When generic dummy frames, set
3948         use_generic_dummy_frames, push_dummy_frame to
3949         generic_push_dummy_frame, pc_in_call_dummy to
3950         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3951         generic_save_dummy_frame_tos.
3952
3953 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3954
3955         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3956         against TOP when TOP was explictly set.
3957         (generic_push_dummy_frame): Set TOP to zero.
3958
3959 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3960
3961         * event-loop.c (start_event_loop): Rename variable 'result' to
3962         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3963
3964 2002-09-30  Keith Seitz  <keiths@redhat.com>
3965
3966         * gdb-events.sh (selected_thread_changed): New event.
3967         * gdb-events.c: Regenerated.
3968         * gdb-events.h: Regenerated.
3969
3970 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3971
3972         * MAINTAINERS: Add self to Write After Approval list.
3973
3974 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3975
3976         * disasm.c: New file.  
3977         * disasm.h: New file.  
3978         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3979         (compare_lines): Ditto.
3980         (dump_insns): Ditto.
3981         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3982         argument.
3983         (do_assembly_only): Ditto.
3984         (do_disassembly): Renamed to gdb_disassembly and moved to
3985         disasm.c.  Sdded uiout argument.
3986         * Makefile.in: Add new files.  Reorder SFILES list. Update
3987         dependencies.  Include libgdb.a later in the insight executable.
3988
3989 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3990
3991         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3992         bfd/elf64-alpha-fbsd.c.
3993
3994 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3995
3996         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3997         i386gnu-tdep.c.
3998
3999 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4000
4001         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4002         __FUNCTION__.
4003         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4004         function name.
4005         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4006         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4007         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4008         (S_msg_sig_post_reply): Ditto.
4009         
4010 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4011
4012         * sh-tdep.c (sh_use_struct_convention): Use definition according
4013         to ABI.
4014         (sh_push_arguments): Store in register with correct endianess.
4015         (sh_default_store_return_value): Ditto.
4016         (sh_gdbarch_init): Set sizeof long double to 8.
4017
4018 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4019
4020         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4021         Fix some whitespace problems.
4022
4023 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4024
4025         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4026         (mcore-tdep.o): Ditto.
4027         (ns32k-tdep.o): Ditto.
4028         (ns32knbsd-tdep.o): Ditto.
4029         (sh3-rom.o): Ditto.
4030         (vax-tdep.o): Ditto.
4031         * cris-tdep.c: #include "gdb_string.h"
4032         * mcore-tdep.c: Ditto.
4033         * ns32k-tdep.c: Ditto.
4034         * ns32knbsd-tdep.c: Ditto.
4035         * sh3-rom.c: Ditto.
4036         * vax-tdep.c: Ditto.
4037
4038 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4039
4040         * config/djgpp/fnchange.lst: Add entries for
4041         gdb/testsuite/gdb.c++/m-static files.
4042
4043 2002-09-27  Jim Wilson  <wilson@redhat.com>
4044
4045         * MAINTAINERS: Add myself to the Write After Approval list.
4046
4047 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4048
4049         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4050
4051
4052 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4053
4054         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4055         frame.
4056
4057 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4058
4059         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4060         (rs6000_struct_return_address): Delete variable.
4061         (rs6000_store_struct_return): Update.
4062         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4063         deprecated_extract_struct_value_address.
4064         (rs6000_frame_align): New function.
4065         (rs6000_gdbarch_init): Set frame_align.
4066
4067 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4068
4069         From Grace Sainsbury <graces@redhat.com>:
4070         * Makefile.in (gdbtk-main.o): New target.
4071         (gdb.o): New target.
4072         (main_h): Define.
4073         (main.o): Update dependencies.
4074         (gdb$(EXEEXT)): Add gdb.o.
4075         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4076         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4077         (SUBDIR_GDBTK_CLEAN): Set.
4078         (install-gdbtk): Install the insight binary.
4079         (uninstall-gdbtk): New target.
4080         (all-gdbtk, clean-gdbtk): New rule.
4081         * top.c (use_windows): Default to zero.
4082         * main.c: Include "main.h".
4083         (main): Delete.
4084         (struct captured_main_args): Delete.
4085         (gdb_main): New function.
4086         * main.h: New file.
4087         * gdb.c: New File.
4088
4089 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4090
4091         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4092         (frame_map_regnum_to_name): New function.
4093         (frame_map_name_to_regnum): New function.
4094         * frame.h (frame_map_name_to_regnum): Declare.
4095         (frame_map_regnum_to_name): Declare.
4096         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4097         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4098         * parse.c: Do not include "builtin-regs.h".
4099         (target_map_name_to_register): Delete function.
4100         (write_dollar_variable): Use frame_map_name_to_regnum.
4101         * parser-defs.h (target_map_name_to_register): Delete declaration.
4102         * expprint.c: Include "frame.h".
4103         (print_subexp): Use frame_map_regnum_to_name.
4104         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4105         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4106
4107 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4108
4109         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4110         wasn't saved, and the next innermost frame is a dummy, return the
4111         dummy frame's link register.
4112
4113 2002-09-24  Jim Blandy  <jimb@redhat.com>
4114
4115         Fix from Paul Breed:
4116         * main.c (captured_main): Add a `break' after the case for 'b'.
4117
4118 2002-09-24  Keith Seitz  <keiths@redhat.com>
4119
4120         * varobj.c (c_type_of_child): Use get_target_type instead
4121         of TYPE_TARGET_TYPE.
4122
4123 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4124
4125         * source.c (get_current_or_default_source_symtab_and_line): Remove
4126         function.
4127         (set_default_source_symtab_and_line): New function. Attempts to
4128         determine a source file to list lines from if one is not currently
4129         defined.
4130         (get_current_source_symtab_and_line): Initialize sal.pc and
4131         sal.end fields.
4132         (set_current_source_symtab_and_line): Mark argument as const.
4133         * source.h: Update declarations and comments.
4134         * linespec.c (decode_line_1): Replace call to removed routine above.
4135         * stack.c (print_frame_info_base): Ditto.
4136         * cli/cli-cmds.c (edit_command): Ditto.
4137         (list_command): Ditto.
4138
4139 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4140
4141         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4142         sal.pc and sal.end fields.
4143         (get_current_or_default_source_symtab_and_line): Ditto.
4144         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4145         so we do not cause a new source symtab to be searched for (reverting an
4146         unintentional change from the 2002-09-20 patch).
4147         * scm-lang.c (scm_unpac): Ditto.
4148
4149 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4150
4151         * complaints.c (symfile_explanations): Remove new-line from
4152         ``isolated_message''.
4153         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4154         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4155
4156 2002-09-20  Nick Clifton  <nickc@redhat.com>
4157         
4158         * NEWS: Announce that V850EA ISA is no longer supported.
4159         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4160
4161 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4162
4163         * Makefile.in (c-lang.o): Correct dependencies.
4164         (utils.o): Gather dependencies.
4165         (charset.o): Move.
4166         * c-lang.c: #include "gdb_string.h"
4167
4168 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4169
4170         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4171         * cli/cli-cmds.c (list_command): New function.  Implements the new
4172         cli edit command.
4173         (_init_cli_cmds): Add new command definition.
4174         * gdb.1: Document edit command.
4175         * doc/gdb.texinfo: Document edit command.
4176
4177 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4178
4179         * source.c: Make global variables current_source_symtab and
4180         current_source_line static.
4181         (list_command): Moved to cli/cli-cmds.c.
4182         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4183         (get_first_line_listed): New accessor function.
4184         (get_lines_to_list): New accessor function.
4185         (get_current_source_symtab_and_line): New function. Retrieves the
4186         position in the source code that we consider current.
4187         (get_current_or_default_source_symtab_and_line): New function.
4188         Like the above but attempts to determine a default position if one
4189         is not currently defined.
4190         (set_current_source_symtab_and_line): New function. Sets the source
4191         code position considered current and returns the previously set one.
4192         (clear_current_source_symtab_and_line): Reset stored information about
4193         a current source line.
4194         (_initialize_source): Remove registration for the "list" command and
4195         its alias.
4196         * source.h: Add declarations for the new functions above.
4197         * symtab.h: Remove declarations for the global variables mentioned
4198         above.
4199         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4200         obtain current source line.
4201         * linespec.c (decode_line_1): Ditto.
4202         * macroscope.c (default_macro_scope): Ditto.
4203         * scm-lang.c (scm_unpac): Ditto.
4204         * stack.c (print_frame_info_base): Ditto.
4205         * symfile.c (clear_symtab_users): Ditto.
4206         * symtab.c (decode_line_spec): Ditto.
4207         * cli/cli-cmds.c (list_command): Moved here from source.c.
4208         (ambiguous_line_spec): Moved here from source.c.
4209         (_init_cli_cmds): Add definition for "list" and its alias.
4210         * Makefile.in: Update dependencies.
4211
4212 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4213
4214         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4215         with what gcc thinks is correct.
4216
4217 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4218
4219         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4220         multiple register push instruction.
4221
4222 2002-09-19  Jim Blandy  <jimb@redhat.com>
4223
4224         Add support for distinct host and target character sets.
4225         * charset.c, charset.h: New files.
4226         * c-exp.y: #include "charset.h".
4227         (yylex): Convert character and string literals to the target
4228         character set, before returning them as the semantic value of the
4229         token.
4230         * c-lang.c: #include "charset.h".
4231         (c_emit_char): Use charset-specific methods to recognize
4232         characters with backslash escape forms, to decide which characters
4233         to print literally and which to print using numeric escape
4234         sequences, and to convert target characters to host characters
4235         before printing.
4236         * utils.c: #include "charset.h".
4237         (no_control_char_error): New function.
4238         (parse_escape): Use charset-specific methods to recognize
4239         backslash escapes, parse `control character' notation, and convert
4240         characters from the host character set to the target character set.
4241         * configure.in: Set the default host character set.
4242         Check where to find iconv, and what its argument types might be.
4243         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4244         * Makefile.in (SFILES): List charset.c.
4245         (COMMON_OBS): List charset.o.   
4246         (charset.o): New rule.
4247         (charset_h): New header dependency variable.
4248         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4249         (LIBICONV): New variable, set by configure.
4250         (CLIBS): Include $(LIBICONV) here.
4251         * aclocal.m4, config.in, configure: Regenerated.
4252
4253 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4254
4255         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4256         bison 1.35 warning.
4257
4258 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4259
4260         * gdb_mbuild.sh: New file.
4261
4262 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4263
4264         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4265
4266 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4267
4268         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4269         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4270         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4271         valops.c, value.h: Revert previous change.
4272         
4273 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4274
4275         Preliminary support for Objective-C:
4276         * defs.h (language_objc): New enum value.
4277         (puts_filtered_tabular): Declaration only, exported from utils.c.
4278         (skip_quoted): Delete, declared in completer.h.
4279         * c-exp.y: Include completer.h.
4280         * p-exp.y: Ditto.
4281         * jv-exp.y: Ditto.
4282         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4283         New operator enum values.
4284         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4285         * language.c (binop_result_type): Handle language_objc case.
4286         (integral_type, character_type, string_type, boolean_type,
4287         structured_type, binop_type_check): Ditto.
4288         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4289         (struct objc_specific): Add to general_symbol_info.
4290         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4291         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4292         * parser-defs.h (struct objc_class_str): New struct type.
4293         (start_msglist, end_msglist, add_msglist): Declaration only,
4294         exported from objc-lang.c.
4295         * value.h (value_of_local, value_nsstring, 
4296         call_function_by_hand_expecting_type): Exported from valops.c.
4297         * valops.c (find_function_addr): Export.
4298         (call_function_by_hand_expecting_type): New function.
4299         (value_of_local): New function.
4300         * symfile.c (init_filename_language_table): Add ".m" extension
4301         for Objective-C.
4302         * utils.c (puts_filtered_tabular): New function.
4303         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4304         (set/show demangle): Extend help-string to refer to ObjC.
4305         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4306         * stabsread.c (symbol_reference_defined): Objective-C symbols
4307         may contain colons: make allowances when scanning stabs strings
4308         for colons.
4309         (objc_find_colon): New function.
4310         * printcmd.c (address_info): If language == objc then print
4311         "self" instead of "this".
4312         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4313         OP_NSSTRING, and OP_SELF.
4314         (prefixify_subexp): Ditto.
4315         * source.c (print_source_lines): Mention objc in comment.
4316         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4317         method names.
4318
4319 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4320
4321         * complaints.h: Update copyright.
4322         (struct complaints): Declare.
4323         (struct complaint): Make `message' constant.
4324         (internal_complaint): Declare.
4325         (complaint): Declare.
4326         (complaint_root): Delete declaration.
4327         (symfile_complaints): Delete declaration.
4328         (struct complaints): Add opaque declaration.
4329         (clear_complaints): Add a complaints parameter.
4330         * complaints.c: Update copyright.
4331         (enum complaint_series): Define.
4332         (complaint_root): Delete.
4333         (struct complaints): Define.
4334         (complaint_sentinel, symfile_complaint_book): New variables.
4335         (symfile_explanations, symfile_complaints): New variables.
4336         New variables.
4337         (get_complaints): New function.
4338         (vcomplaint): New function.
4339         (complaint): New function.
4340         (internal_complaint): New function.
4341         (complain): Call vcomplain with symfile_complaint.
4342         (clear_complaints): Rewrite.
4343         (_initialize_complaints): Use add_setshow_command.
4344         * Makefile.in (complaints.o): Update dependencies.
4345         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4346         to call to clear_complaints.
4347         (new_symfile_objfile, reread_symbols): Ditto.
4348         (oldsyms_complaint): Delete.
4349         (empty_symtab_complaint, unknown_option_complaint): Delete.
4350         (free_named_symtabs): Use complaint instead of complain.
4351
4352 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4353
4354         Contributed by Apple Computer, Inc.  Merged with current sources
4355         by Adam Fedor <fedor@doc.com> [cagney].
4356         
4357         * objc-lang.c: First clean-up round: comments, indentation.
4358         * objc-lang.h: Ditto.
4359         * objc-lang.y: Ditto.
4360
4361 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4362
4363         * maint.c (maintenance_internal_error): Print the parameter as the
4364         error message.
4365         (maintenance_internal_warning): New function.
4366         (_initialize_maint_cmds): Add command `maint internal-warning'.
4367
4368         * defs.h (internal_warning, internal_vwarning): Declare.
4369         * utils.c (struct internal_problem): Define.
4370         (internal_vproblem): New function.
4371         (internal_warning): New function.
4372         (internal_vwarning): New function.
4373         (internal_warning_problem, internal_error_problem): New variables.
4374         (internal_verror): Just call internal_vproblem.
4375
4376 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4377
4378         * objc-lang.c: New file, support for Objective-C.
4379         Preliminary check-in, not yet integrated into gdb.
4380         * objc-lang.h: New file.
4381         * objc-exp.y:  New file.
4382
4383 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4384
4385         * infrun.c (signal_stop_update): Convert definition to ISO C.
4386         (signal_print_update): Ditto.
4387         (signal_pass_update): Ditto.
4388         * inflow.c (terminal_save_ours): Ditto.
4389
4390         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4391         comments.
4392         
4393         * config/djgpp/fnchange.lst: Handle name clashes between
4394         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4395         bfd/coff-tic80.c.
4396
4397         * i386-linux-tdep.h: Fix tipo.
4398
4399 2002-09-18  Adam Fedor  <fedor@gnu.org>
4400
4401         * MAINTAINERS: Add myself to the Write After Approval list.
4402
4403 2002-09-18  Jim Blandy  <jimb@redhat.com>
4404
4405         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4406         texthigh and textlow to reader-specific structs caused
4407         objfile_relocate to miss them.  This is fixable, but the work that
4408         the change was supposed to prepare GDB for never got done anyway.
4409
4410 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4411
4412         * MAINTAINERS: Alphabetize Write After Approval list.
4413
4414 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4415
4416         Fix PR gdb/709
4417         * values.c (value_static_field): Call read_var_value.
4418
4419 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4420
4421         * valops.c (hand_function_call): Align the initial stack pointer
4422         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4423         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4424         return value.
4425         * mips-tdep.c (mips_frame_align): New function.
4426         (mips_gdbarch_init): Set frame_align.
4427         * gdbarch.sh (FRAME_ALIGN): New method.
4428         * gdbarch.h, gdbarch.c: Re-generate.
4429
4430 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4431
4432         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4433         registers.
4434
4435 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4436
4437         * NEWS: Mention that MIPS $fp behavior changed.
4438         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4439         reference to FP_REGNUM.
4440         (mipsnbsd_cannot_store_register): Ditto.
4441         * mips-linux-nat.c: Update copyright.
4442         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4443         (mips_linux_cannot_store_register): Ditto.
4444         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4445         * config/mips/tm-mips.h: Update copyright.
4446         (FP_REGNUM): Delete macro.
4447         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4448         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4449         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4450         (mips_r3041_reg_names, mips_r3051_reg_names)
4451         (mips_r3081_reg_names): Replace "fp" with "".
4452         Fix PR gdb/480.
4453
4454 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4455
4456         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4457         generic_read_register_dummy() (PR gdb/703).
4458         (avr_push_return_address): #if 0 out unused vars.
4459         (avr_gdbarch_init): Enable use of avr_push_return_address().
4460
4461 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4462
4463         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4464         RTE will take care of it.
4465
4466 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4467
4468         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4469         invalid, return SP_REGNUM.
4470
4471 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4472
4473         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4474         point registers without sign extension.
4475
4476 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4477
4478         * blockframe.c (deprecated_read_register_dummy): Rename
4479         generic_read_register_dummy.
4480         * frame.c (frame_unwind_signed_register): New function.
4481         (frame_unwind_unsigned_register): New function.
4482         * frame.h (frame_unwind_signed_register): Declare.
4483         (frame_unwind_unsigned_register): Declare.
4484         (deprecated_read_register_dummy): Rename
4485         generic_read_register_dummy.
4486
4487         * h8300-tdep.c (h8300_frame_chain): Update.
4488         (h8300_frame_saved_pc): Update.
4489         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4490         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4491         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4492         (s390_frame_chain): Update.
4493         * v850-tdep.c (v850_find_callers_reg): Update.
4494         (v850_frame_saved_pc): Update.
4495         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4496         (m32r_find_callers_reg): Update.
4497         (m32r_frame_saved_pc): Update.
4498         * sh-tdep.c (sh_find_callers_reg): Update.
4499         (sh64_get_saved_pr): Update.
4500         (sh_init_extra_frame_info): Update.
4501         (sh_init_extra_frame_info): Update.
4502         (sh64_init_extra_frame_info): Update.
4503         (sh64_init_extra_frame_info): Update.
4504         * mcore-tdep.c (mcore_find_callers_reg): Update.
4505         (mcore_frame_saved_pc): Update.
4506         (mcore_init_extra_frame_info): Update.
4507         * i386-tdep.c (i386_frame_saved_pc): Update.
4508         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4509         (ia64_init_extra_frame_info): Update.
4510         (ia64_init_extra_frame_info): Update.
4511         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4512         * cris-tdep.c (cris_init_extra_frame_info): Update.
4513         * avr-tdep.c (avr_frame_chain): Update.
4514         (avr_init_extra_frame_info): Update.
4515         (avr_frame_saved_pc): Update.
4516         * arm-tdep.c (arm_find_callers_reg): Update.
4517         (arm_init_extra_frame_info): Update.
4518         (arm_frame_saved_pc): Update.
4519
4520 2002-09-17  Tom Tromey  <tromey@redhat.com>
4521
4522         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4523         is "'".
4524
4525 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4526
4527         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4528         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4529         NEXT_PROLOGUE_INSN.
4530         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4531         NEXT_PROLOGUE_INSN.
4532
4533 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4534
4535         * osfsolib.c: Remove file, replaced by solib-osf.c.
4536         * Makefile.in: Remove compilation rules for osfsolib.c.
4537
4538 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4539
4540         * cp-valprint.c (cp_print_class_method): Correct args to
4541         check_stub_method_group.
4542
4543 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4544
4545         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4546         `set architecture'.  Unify naming convention of functions.
4547         (h8300_skip_prologue): Improve prologue analysis.
4548         (h8300_push_arguments): Rewritten to more closely match GCC's
4549         bizarre argument-passing behavior, along with the comment describing
4550         said behavior.
4551         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4552         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4553         sim, remote-e7000.c, remote-hms.c and remote.c
4554
4555 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4556
4557         * i386-tdep.c (gdb_print_insn_i386): Removed.
4558         (i386_print_insn): New function.
4559         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4560         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4561         tm_print_insn_info.
4562
4563 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4564
4565         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4566         zero.
4567
4568 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4569
4570         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4571         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4572         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4573
4574 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4575
4576         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4577
4578 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4579
4580         * gdbtypes.c (check_stub_method): Make static.
4581         (check_stub_method_group): New function.
4582         * gdbtypes.h: Update prototypes.
4583         * cp-support.c: New file.
4584         * cp-support.h: New file.
4585
4586         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4587         (update_method_name_from_physname): New function.
4588         (read_member_functions): Correct method names for operators
4589         and v3 constructors/destructors.  Separate v2 constructors and
4590         destructors.
4591         * Makefile.in (stabsread.o): Update dependencies.
4592         (SFILES): Add cp-support.c.
4593         (COMMON_OBS): Add cp-support.o.
4594         (cp_support_h, cp-support.o): Add.
4595
4596         * cp-valprint.c (cp_print_class_method): Call
4597         check_stub_method_group instead of check_stub_method.  Remove
4598         extraneous QUITs.
4599         * p-valprint.c (pascal_object_print_class_method): Likewise.
4600         * valops.c (search_struct_method): Likewise.
4601         (find_method_list, value_struct_elt_for_reference): Likewise.
4602
4603 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4604
4605         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4606         * gdbarch.h, gdbarch.c: Regenerate.
4607
4608 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4609
4610         * frame.c (find_saved_register): Delete function.
4611         * frame.h (find_saved_register): Delete declaration.
4612         Fix PR gdb/631.
4613
4614 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4615
4616         * mips-tdep.c (read_next_frame_reg): Re-hack using
4617         frame_register_unwind.
4618
4619 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4620
4621         * mips-tdep.c (mips_get_saved_register): Re-hack using
4622         frame_register_unwind.
4623
4624 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4625
4626         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4627         vector. Will be useful for Interix.  
4628         * gdbarch.h, gdbarch.c: Regenerate.
4629
4630         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4631         name of the malloc function by NAME_OF_MALLOC.
4632
4633 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4634
4635         * value.h (find_function_in_inferior): Add const keyword to
4636         one of the parameters. Allows us to invoke this function with
4637         a const char *.
4638         * valops.c (find_function_in_inferior): Likewise.
4639
4640 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4641
4642         * exec.c (xfer_memory): Fix compilation warning with old versions
4643         of GCC.
4644         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4645
4646 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4647
4648         * symtab.h: Run through gdb_indent.h.
4649         Add 2002 to Copyright year list.
4650
4651 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4652
4653         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4654         mach constants.
4655         * MAINTAINERS: Add myself to write after approval list.
4656
4657 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4658
4659         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4660
4661 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4662
4663         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4664         Interix.
4665
4666 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4667
4668         * procfs.c (do_detach): Clear current signal, not just fault.
4669         Corrects problem with breakpoint trap signal leaking to detached
4670         process on Tru64.
4671
4672 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4673
4674         * buildsym.c (finish_block): Protect against null pointer.
4675
4676 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4677
4678         * infcmd.c (default_print_registers_info): Send all output to
4679         ``file'' instead of ``gdb_stdout''.
4680
4681 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4682
4683         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4684         LONGEST, and use signed register read (addresses are sign-
4685         extended for mips).
4686
4687 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4688
4689         * event-loop.c (gdb_do_one_event): Make public.
4690         * event-loop.h (gdb_do_one_event): Declare.
4691
4692 2002-09-10  Jeff Law  <law@redhat.com>
4693
4694         * infttrace.c (child_resume): Simplify and rework to avoid
4695         TT_PROC_CONTINUE.
4696
4697 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4698
4699         * printcmd.c (print_scalar_formatted): "len" is the number of
4700         target bytes, NOT the number of target bits.
4701
4702 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4703
4704         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4705         * top.c (init_main): Set rl_terminal_name.
4706
4707 2002-09-08  Aidan Skinner <aidan@velvet.net>
4708
4709         * ada-lang.c (ada_array_bound, ada_type_match,
4710         _initialize_ada_language): Fix K&R definitions.
4711         * ada-tasks.c (get_current_task): Fix K&R definitions.
4712         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4713                         
4714 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4715
4716         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4717         Add XP.
4718
4719 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4720
4721         * i386-tdep.c (i386_register_virtual_type,
4722         i386_register_convertible, i386_register_convert_to_virtual,
4723         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4724         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4725         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4726         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4727         Don't set push_arguments twice.
4728
4729         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4730         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4731         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4732         sigtramp_end to NULL.
4733         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4734         defines.
4735         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4736
4737         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4738         whitespace.
4739
4740         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4741         * gdbarch.h, gdbarch.c: Re-generate.
4742         * blockframe.c (find_pc_sect_partial_function): Convert to use
4743         SIGTRAMP_START_P predicate.
4744
4745 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4746
4747         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4748         generic_dummy_frame method and old method.  Also distinguish
4749         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4750         (arm_extract_return_value): Use new regcache method.
4751
4752         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4753         adjustment that doesn't conform to the ABI.
4754         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4755         saved regcache, not from current regcache.
4756
4757 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4758
4759         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4760         * README: Update.
4761
4762 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4763
4764         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4765         if arm_apcs_32 is false.
4766
4767 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4768
4769         GDB 5.3 branch created.
4770
4771 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4772
4773         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4774         generic_unwind_get_saved_register.
4775
4776 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4777
4778         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4779         argument (PR gdb/653).  Update call to smash_to_method_type.
4780         (read_structure_scope): Update call to dwarf2_add_member_fn.
4781
4782 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4783
4784         * x86-64-linux-tdep.c: Include gdb_string.h
4785         * x86-64-linux-nat.c: Ditto.
4786
4787 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4788
4789         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4790         when YYDEBUG is set to 1.  
4791         * c-exp.y: Likewise.
4792         * f-exp.y: Likewise.
4793         * jv-exp.y: Likewise.
4794         * m2-exp.y: Likewise.
4795         * p-exp.y: Likewise.
4796
4797 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4798
4799         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4800         dependency list.
4801         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4802         solib_svr4_fetch_link_map_offsets to
4803         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4804         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4805         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4806         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4807         solib-svr4.o, and solib-legacy.o.
4808         * config/i386/tm-nbsd.h: Include solib.h.
4809
4810 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4811
4812         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4813         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4814         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4815         comment noting that this needs its own target configuration.
4816         * config/i386/nbsd.mt: New file.
4817         * config/i386/nbsdaout.mt: Remove.
4818         * config/i386/nbsdelf.mt: Ditto.
4819         * config/i386/tm-nbsdaout.h: Ditto. 
4820
4821 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4822
4823         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4824         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4825         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4826         tdep->sigtramp_end.
4827         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4828         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4829         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4830
4831 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4832
4833         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4834         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4835         * i386-tdep.h (i386bsd_init_abi): New prototype.
4836         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4837         function declaration.
4838         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4839         for NetBSD-a.out or NetBSD-ELF.
4840         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4841         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4842         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4843         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4844         and nbsd-tdep.h.
4845         (i386nbsd_pc_in_sigtramp): New function.
4846         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4847         i386nbsd_pc_in_sigtramp.
4848         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4849         and i386nbsdelf_init_abi OS ABI handlers.
4850         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4851         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4852
4853 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4854
4855         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4856         registers if the target really has them.
4857
4858 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4859
4860         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4861         than nbsd-tdep.h.
4862
4863 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4864
4865         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4866         list.
4867         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4868         (alphanbsd_skip_sigtramp_frame): New functions. 
4869         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4870         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4871         to alphanbsd_sigcontext_addr. 
4872
4873 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4874
4875         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4876         list.
4877         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4878         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4879         nbsd_pc_in_sigtramp. 
4880         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4881         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4882         * nbsd-tdep.c: Include gdb_string.h.
4883         (nbsd_pc_in_sigtramp): New function. 
4884         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4885         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4886         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4887         ppcnbsd_pc_in_sigtramp. 
4888         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4889         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4890         shnbsd_pc_in_sigtramp. 
4891         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4892         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4893         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4894
4895 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4896
4897         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4898         watchpoints to NULL.
4899         (insert_breakpoints): set val field of watchpoints if NULL.
4900
4901
4902 2002-08-29  Jim Blandy  <jimb@redhat.com>
4903
4904         * symtab.c (lookup_symbol_aux): In the cases where we find a
4905         minimal symbol of an appropriate name and use its address to
4906         select a symtab to read and search, use `name' (as passed to us)
4907         as the demangled name when searching the symtab's global and
4908         static blocks, not the minsym's name.
4909
4910 2002-08-29  Keith Seitz  <keiths@redhat.com>
4911
4912         * stack.c (print_frame_info_base): Always set current_source_symtab
4913         and current_source_line.
4914
4915 2002-08-29  Donn Terry  <donnte@microsoft.com>
4916
4917         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4918
4919 2002-08-28  Keith Seitz  <keiths@redhat.com>
4920
4921         * stack.c (select_frame): Add FIXME concerning selected-frame
4922         events.
4923         (select_frame_command): Send selected-frame-level-changed
4924         event notification, but only if the level actually changed.
4925         (up_silently_base): Add selected-frame-level-changed event
4926         notification.
4927         (down_silently_base): Likewise.
4928
4929 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4930
4931         * Makefile.in: Update dependencies for all gdb/*.c files.
4932
4933 2002-08-27  Tom Tromey  <tromey@redhat.com>
4934
4935         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4936         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4937         Update dependencies.
4938         * i387-tdep.c: Include gdb_string.h.
4939         * osabi.c: Likewise.
4940         * i386-linux-nat.c: Likewise.
4941         * lin-lwp.c: Likewise.
4942         * ax-gdb.c: Likewise.
4943         * signals/signals.c: Likewise.
4944         * jv-valprint.c: Likewise.
4945         * p-lang.c: Likewise.
4946         * c-valprint.c: Likewise.
4947         * cp-abi.c: Likewise.
4948
4949 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4950
4951         * cli/cli-script.h (copy_command_lines): Export.
4952         * breakpoint.c: Include cli/cli-script.h.
4953         * Makefile.in (breakpoint.o): Update dependencies.
4954
4955 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4956
4957         * breakpoint.c (insert_breakpoints): Protect all references
4958         to 'process_warning'.  Shorten long lines.
4959
4960 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4961
4962         * cli/cli-script.c (copy_command_lines): New function.
4963         * defs.h (copy_command_lines): Export.
4964         * testsuite/gdb.base/commands.exp: New tests for commands
4965         attached to a temporary breakpoint, and for commands that
4966         delete the breakpoint they are attached to.
4967         
4968 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4969
4970         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4971         pointer to the breakpoint commands struct, make a new copy
4972         of the struct and point to that.
4973         (bpstat_clear): Free the commands struct.
4974         (bpstat_clear_actions): Free the commands struct.
4975         (bpstat_do_actions): Free the command actions.  Also execute
4976         the local cleanups, instead of deleting them.
4977         (delete_breakpoint): Leave the commands field of the bpstat
4978         chain alone -- it will be freed later.
4979
4980 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4981
4982         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4983         deleted in 2002-08-20 commit.  This function is still used by
4984         ppc-linux-nat.c.
4985
4986 2002-08-26  Keith Seitz  <keiths@redhat.com>
4987
4988         * gdb-events.sh: Add selected-frame-level-changed event.
4989         * gdb-events.c: Regenerated.
4990         * gdb-events.h: Regenerated.
4991         
4992 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4993
4994         Fix PR gdb/393:
4995         * inflow.c (terminal_save_ours): New function to save terminal
4996         settings.
4997         * inferior.h (terminal_save_ours): Declare.
4998         * target.c (debug_to_terminal_save_ours): New function.
4999         (cleanup_target): Defaults to_terminal_save_ours.
5000         (update_current_target): Inherit to_terminal_save_ours.
5001         (setup_target_debug): Set to_terminal_save_ours.
5002         * target.h (target_terminal_save_ours): New to save terminal settings.
5003         (target_ops): New member to_terminal_save_ours.
5004         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5005         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5006         * inftarg.c (init_child_ops): Likewise.
5007         * m3-nat.c (init_m3_ops): Likewise.
5008         * procfs.c (init_procfs_ops): Likewise.
5009         * wince.c (init_child_ops): Likewise.
5010         * win32-nat.c (init_child_ops): Likewise.
5011         * sol-thread.c (init_sol_thread_ops): Likewise.
5012
5013 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5014
5015         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5016         use regcache_* functions.
5017         (i386_gdbarch_init): Set store_return_value instead of
5018         deprecated_store_return_value.
5019
5020         * regcache.c (regcache_raw_write_signed,
5021         regcache_raw_write_unsigned): New functions.
5022         * regcache.h (regcache_raw_write_signed,
5023         regcache_raw_write_unsigned): New prototypes.
5024
5025 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5026
5027         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5028         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5029         source file dependencies.  Cleanup corresponding generator rules.
5030
5031 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5032
5033         * regcache.h (register_offset_hack): Declare.
5034         (regcache_cooked_read_using_offset_hack): Declare.
5035         (regcache_cooked_write_using_offset_hack): Declare.
5036
5037         * regcache.c (register_offset_hack): New function.
5038         (regcache_cooked_read_using_offset_hack): New function.
5039         (regcache_cooked_write_using_offset_hack): New function.
5040         (regcache_dump): Check that the registers, according to their
5041         offset, are packed hard against each other.
5042         (cooked_xfer_using_offset_hack): New function.
5043
5044 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5045
5046         * regcache.c (struct regcache_descr): Add field register_type.
5047         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5048         in as a parameter
5049         (init_regcache_descr): Initialize register_type.  Pass the descr
5050         to init_legacy_regcache_descr.  Use register_type instead of
5051         REGISTER_VIRTUAL_TYPE.
5052         (register_type): New function.
5053         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5054         * regcache.h (register_type): Declare.
5055
5056 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5057
5058         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5059         instead of deprecated_store_return_value.  Fix fallout from
5060         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5061
5062 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5063
5064         * regcache.c (max_register_size): New function.
5065         (init_legacy_regcache_descr): Ensure that max_register_size is
5066         large enough for REGISTER_VIRTUAL_SIZE.
5067         * regcache.h (max_register_size): Declare.
5068
5069 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5070
5071         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5072         store_return_value.
5073         (e500_extract_return_value): Change type of valbuf pointer to
5074         void.
5075
5076 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5077
5078         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5079         workaround.
5080
5081         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5082         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5083         long long) to prevent compiler warning on 64-bit systems.
5084
5085 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5086
5087         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5088         (DEPRECATED_STORE_RETURN_VALUE): New method.
5089         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5090         * gdbarch.h, gdbarch.c: Re-generate.
5091
5092         * values.c (set_return_value): Pass current_regcache to
5093         STORE_RETURN_VALUE.
5094         * arch-utils.h (legacy_store_return_value): Declare.
5095         * arch-utils.c (legacy_store_return_value): New function.
5096         (legacy_extract_return_value): Update parameters.
5097
5098         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5099         STORE_RETURN_VALUE.
5100         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5101         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5102         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5103         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5104         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5105         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5106         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5107         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5108         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5109         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5110
5111         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5112         * i386-tdep.c (i386_extract_return_value): Update.
5113         * arch-utils.c (legacy_extract_return_value): Update.
5114         * frv-tdep.c (frv_gdbarch_init): Update.
5115         * cris-tdep.c (cris_gdbarch_init): Update.
5116         * d10v-tdep.c (d10v_gdbarch_init): Update.
5117         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5118         * m68k-tdep.c (m68k_gdbarch_init): Update.
5119         * mcore-tdep.c (mcore_gdbarch_init): Update.
5120         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5121         * s390-tdep.c (s390_gdbarch_init): Update.
5122         * sparc-tdep.c (sparc_gdbarch_init): Update.
5123         * sh-tdep.c (sh_gdbarch_init): Update.
5124         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5125         * v850-tdep.c (v850_gdbarch_init): Update.
5126         * avr-tdep.c (avr_gdbarch_init): Update.
5127         * ia64-tdep.c (ia64_gdbarch_init): Update.
5128         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5129         * vax-tdep.c (vax_gdbarch_init): Update.
5130         * alpha-tdep.c (alpha_gdbarch_init): Update.
5131         * arm-tdep.c (arm_gdbarch_init): Update.
5132         * mips-tdep.c (mips_gdbarch_init): Update.
5133         * i386-tdep.c (i386_gdbarch_init): Update.
5134
5135 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5136
5137         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5138         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5139
5140 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5141
5142         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5143         problems.
5144
5145 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5146
5147         * infrun.c (handle_inferior_event): Move a comment outside of a
5148         function call, in order to avoid indent reformatting this part
5149         of the code in an unreadable way.
5150
5151 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5152
5153         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5154         when breakpoints fail. Move general breakpoint error messages to
5155         insert_breakpoints.  
5156         * breakpoint.c (insert_breakpoints): Change warnings when
5157         breakpoints are nto inserted to specify the type. Remove call to
5158         memory_error when hardware breakpoints can't be inserted. Remove
5159         multiple calls to warning so all messages are sent to the user at
5160         once.
5161         (delete_breakpoints): Make insert error messsages more explicit.
5162
5163 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5164
5165         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5166         gdbserver/ChangeLog.
5167
5168 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5169
5170         * i386-tdep.c: Include "objfiles.h".
5171         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5172         skip_trampoline_code.
5173         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5174         (CPLUS_MARKER): Define to '.'.
5175
5176         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5177         member.
5178         (linux_corefile_thread_callback): Increase args->num_notes.
5179         (linux_make_note_section): Initialize thread_args.num_notes, and
5180         use it to determine whether notes for any threads were created.
5181
5182 2002-08-23  Donn Terry  <donnte@microsoft.com>
5183
5184         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5185         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5186         and PCUNKILL.
5187         (write_with_trace): Conditionalize out the switch branch handling
5188         PCSHOLD if the corresponding macro is not defined. Likewise for
5189         PRSABORT and PRSTOP.
5190         This change will be needed by the Interix port.
5191
5192 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5193
5194         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5195         write_register wherever possible instead of manipulating the
5196         register bytes directly.
5197         Assign VALUE_CONTENTS to a variable and use that.
5198         The GPR numbers are now dependent on the architecture.
5199         
5200 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5201
5202         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5203         ev_offset fields.
5204         (skip_prologue): Add support for BookE/e500 instructions.
5205         (e500_extract_return_value): New function.
5206         (frame_get_saved_regs): Add support for saving ev registers and
5207         pseudo gpr's.
5208         (e500_store_return_value): New function.
5209         (rs6000_gdbarch_init): Move up default intializations of
5210         deprecated_extract_return_value and store_return_value.  Overwrite
5211         init of store_return_value with e500 specific version.
5212         Set extract_return_value for e500.
5213         
5214 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5215
5216         * blockframe.c (generic_call_dummy_register_unwind): Use
5217         regcache_cooked_read to catch cases in which the variable is
5218         stored in a pseudo register.
5219
5220 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5221
5222         * NEWS: Mention that the i960 has been made obsolete.
5223         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5224         i960-tdep.c
5225         (remote-nrom.o): Obsolete target.
5226         (remote-nindy.o, i960-tdep.o): Ditto.
5227         * remote-nrom.c: Make file obsolete.
5228         * remote-nindy.c, remote-vx960.c: Ditto.
5229         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5230         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5231         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5232         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5233         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5234         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5235         i960-*-vxworks* obsolete.
5236         * MAINTAINERS: Note that the i960 is obsolete.
5237
5238 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5239
5240         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5241         detach to allow reinitialization.
5242
5243 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5244
5245         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5246         attempt).
5247
5248 2002-08-22  Jim Blandy  <jimb@redhat.com>
5249
5250         * coffread.c (coff_symfile_read): Don't try to read the line
5251         number table from disk if the image file doesn't have a symbol
5252         table; we'll never actually look at the info anyway, and Windows
5253         ships DLL's with bogus file offsets for the line number data.
5254
5255 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5256
5257         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5258         an e500 executable.
5259
5260 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5261
5262         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5263         (MSYMBOL_SIZE): Replace macro with function.
5264         (DEFAULT_MIPS_TYPE): Delete unused macro.
5265         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5266         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5267
5268 2002-08-21  Jim Blandy  <jimb@redhat.com>
5269
5270         * valops.c (value_cast): Simplify and correct logic for doing a
5271         static cast from a pointer to a base class to a pointer to a
5272         derived class.
5273
5274 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5275
5276         * infcmd.c (default_print_registers_info): Replace
5277         do_registers_info.
5278         (registers_info): Use gdbarch_print_registers_info instead of
5279         DO_REGISTERS_INFO.
5280         * inferior.h (default_print_registers_info): Replace
5281         do_registers_info.
5282         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5283         (DO_REGISTERS_INFO): Change to a predicate function.
5284         * gdbarch.h, gdbarch.c: Regenerate.
5285         
5286 2002-08-21  Keith Seitz  <keiths@redhat.com>
5287
5288         * gdb-events.sh: Add target-changed event.
5289         * gdb-events.c: Regenerated.
5290         * gdb-events.c: Regenerated.
5291         * valops.c (value_assign): Add target-changed event notification
5292         to inlval_register, lval_memory, and lval_reg_frame_relative.
5293
5294 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5295
5296         * NEWS: Add an entry regarding the improvement of the next/step
5297         operation on Alpha Tru64 multi-processor machines.
5298
5299 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5300
5301         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5302         directores.
5303         * Makefile.in: Update all _h macro definitions.
5304         * Makefile.in (install-gdbtk): Move to install section.
5305         (rdi-share/libangsd.a): Move to end of file.
5306
5307 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5308
5309         * frame.c (frame_register_unwind): When a register, set addrp to
5310         the register's byte.
5311
5312 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5313
5314         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5315         used locally, so move them from the target machine header to here.
5316         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5317         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5318         Make static.
5319         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5320
5321 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5322
5323         * NEWS: Mention that the Apollo line was made obsolete.
5324         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5325         m68*-hp-hpux* obsolete.
5326         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5327         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5328         * buildsym.c (make_blockvector): Make static.
5329         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5330         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5331         (ALLDEPFILES): Remove dstread.c.
5332         (dstread.o): Obsolete make rule.
5333         * dstread.c: Makefile obsolete.
5334         * dst.h: Ditto.
5335         * config/m68k/hp300hpux.mt: Ditto.
5336         * config/m68k/hp300hpux.mh: Ditto.
5337         * config/m68k/hp300bsd.mt: Ditto.
5338         * config/m68k/hp300bsd.mh: Ditto.
5339         * config/m68k/apollo68b.mt: Ditto.
5340         * config/m68k/apollo68v.mh: Ditto.
5341         * config/m68k/apollo68b.mh: Ditto.
5342
5343 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5344
5345         * mips-tdep.c (mips_in_return_stub): Make static.
5346         (mips_gdbarch_init): Set in_solib_return_trampoline.
5347         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5348
5349 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5350
5351         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5352         * gdbarch.c, gdbarch.h: Regenerate.
5353         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5354         Add.
5355         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5356
5357 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5358
5359         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5360         (mips_gdbarch_init): Set skip_trampoline_code, 
5361         in_solib_call_trampoline.
5362         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5363         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5364
5365 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5366
5367         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5368
5369         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5370         vector type for ev registers.
5371         (e500_pseudo_register_read): New function.
5372         (e500_pseudo_register_write): New function.
5373         (e500_dwarf2_reg_to_regnum): New function.
5374         (PPC_UISA_NOFP_SPRS): New macro.
5375         (PPC_EV_REGS): New macro.
5376         (PPC_GPRS_PSEUDO_REGS): New macro.
5377         (registers_e500): New register set for e500.
5378         (variants): Add e500 variant.
5379         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5380         before setting architectural dependent variations.  Initialize ev
5381         registers numbers.  Add case for e500 architecture.  Set the
5382         number of pseudo registers.
5383
5384 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5385
5386         * rs6000-tdep.c: Clean up comments.
5387
5388 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5389
5390         * h8300-tdep.c: Re-indent file.
5391
5392 2002-08-20  Jim Blandy  <jimb@redhat.com>
5393
5394         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5395         default for this.
5396
5397 2002-08-20  Keith Seitz  <keiths@redhat.com>
5398
5399         * breakpoints.c (watch_command_1): Use internal breakpoint
5400         when setting a watchpoint_scope breakpoint.
5401
5402 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5403
5404         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5405         (build_builtin_type_vec64i): Ditto.
5406         (build_builtin_type_vec128): Ditto.
5407         (build_builtin_type_vec128i): Ditto.
5408
5409 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5410
5411         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5412         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5413         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5414         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5415         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5416         CALL_DUMMY_ADDRESS): Delete.
5417         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5418         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5419         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5420         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5421         push_return_address.
5422         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5423         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5424         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5425         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5426         mips_n32n64_push_arguments, mips_push_return_address,
5427         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5428         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5429
5430 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5431
5432         * mips-tdep.c (mips_frame_num_args): New function.
5433         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5434         frame_saved_pc, frame_args_address, frame_locals_address, 
5435         frame_num_args, and frame_args_skip.
5436         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5437         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5438         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5439         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5440
5441 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5442
5443         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5444         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5445         * mips-tdep.c (mips_store_struct_return): New function.
5446         (mips_extract_struct_value_address): New function.
5447         (mips_gdbarch_init): Set store_struct_return and
5448         extract_struct_value_address.
5449
5450 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5451
5452         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5453         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5454         (read_file_scope): Check that line_header is nonzero before
5455         decoding macro information.
5456
5457 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5458
5459         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5460         flag the general-purpose registers as floating-point on targets
5461         that don't support the floating-point registers.
5462
5463 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5464
5465         * rs6000-tdep.c (altivec_register_p): Delete.
5466         (rs6000_do_altivec_registers): Delete.
5467         (rs6000_altivec_registers_info): Delete.
5468         (rs6000_do_registers_info): Delete.
5469         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5470         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5471
5472 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5473
5474         * infcmd.c (do_registers_info): Print vector registers in hex
5475         format only.
5476         (print_vector_info): Check that printing registers
5477         makes sense.
5478         (print_float_info): Ditto.
5479
5480 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5481
5482         * mips-tdep.c (mips_gdbarch_init): Update.
5483         (mips_o32_extract_return_value): Rewrite.
5484         (mips_o32_store_return_value): Rewrite.
5485         (mips_o32_xfer_return_value): New function.
5486         (mips_xfer_register): Tweak debug print message.  Allow for
5487         buf_offset when dumping the value transfered.
5488
5489 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5490
5491         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5492         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5493         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5494         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5495         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5496
5497 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5498
5499         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5500
5501 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5502
5503         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5504         register.
5505         (P): New macro to define a register as a pseudo register.
5506         (R, R4, R8, R16, FR32, R64, R0): Updated.
5507         (struct variant): Add new fields for number of pseudo registers
5508         and number of total registers.
5509         (tot_num_registers): New macro replacing....
5510         (num_registers): ...deleted macro.
5511         (num_registers): New function.
5512         (num_pseudo_registers): New function.
5513         (variants): Update all variants to intialize new fields correctly.
5514         Postpone initialization of number of pseudo regs and real regs.
5515         (init_variants): New function.
5516         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5517         registers offsets.
5518
5519 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5520
5521         * valops.c (search_struct_field): Change error message to treat
5522         return value of 0 from value_static_field as meaning that field is
5523         optimized out.
5524         (value_struct_elt_for_reference): Ditto.
5525         * values.c (value_static_field): Treat an unresolved location the
5526         same as a nonexistent symbol.  Fix PR gdb/635.
5527         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5528         enclosed.  Fix PR gdb/574.
5529         * MAINTAINERS: Add self to Write After Approval list.
5530
5531 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5532
5533         * mips-tdep.c (mips_xfer_register): New function.
5534         (mips_n32n64_extract_return_value): Rewrite.
5535         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5536         instead of deprecated_extract_return_value.
5537
5538 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5539
5540         * rs6000-tdep.c (TDEP): Delete macro.
5541         (branch_dest): Replace use of TDEP macro with its body.
5542         (rs6000_pop_frame): Ditto.
5543         (rs6000_push_arguments): Ditto.
5544         (rs6000_skip_trampoline_code): Ditto.
5545         (rs6000_frame_saved_pc): Ditto.
5546         (rs6000_frame_chain): Ditto.
5547         (rs6000_register_name): Ditto.
5548         (rs6000_register_byte): Ditto.
5549         (rs6000_register_raw_size): Ditto.
5550         (rs6000_register_virtual_type): Ditto.
5551         (rs6000_register_convertible): Ditto.
5552         (rs6000_convert_from_func_ptr_addr): Ditto.
5553
5554 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5555
5556         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5557         conditionally.
5558         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5559         MIPS_LINUX_JB_ELEMENT_SIZE.
5560         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5561         for MAX_REGISTER_RAW_SIZE arrays.
5562         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5563         MIPS_LINUX_JB_ELEMENT_SIZE.
5564
5565 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5566
5567         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5568
5569 2002-08-19  Aidan Skinner <aidan@velvet.net>
5570
5571         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5572         ada-valprint.c ada-tasks.c.
5573         (YYFILES): Add ada-exp.y.
5574         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5575         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5576         (ada-exp.tab.o): New target.
5577                 
5578 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5579
5580         * regcache.c (regcache_xfer_part): New function.
5581         (regcache_raw_read_part): New function.
5582         (regcache_raw_write_part): New function.
5583         (regcache_cooked_read_part): New function.
5584         (regcache_cooked_write_part): New function.
5585         * regcache.h (regcache_raw_read_part): Declare.
5586         (regcache_raw_write_part): Declare.
5587         (regcache_cooked_read_part): Declare.
5588         (regcache_cooked_write_part): Declare.
5589
5590 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5591
5592         * remote.c (remote_open_1): Add async_p.
5593         (remote_async_open_1): Delete.
5594         (open_remote_target): Delete.
5595         (remote_open, extended_remote_open): Update calls to remote_open_1.
5596         (remote_async_open, extended_remote_async_open): Call
5597         remote_open_1 instead of remote_async_open_1.
5598
5599 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5600
5601         * blockframe.c: Fix a few coding standard violations.
5602
5603 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5604
5605         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5606         here from ...
5607         * config/i386/tm-i386sco5.h: ... here.  File removed.
5608         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5609
5610         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5611         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5612         (TM_FILE): Set to tm-i386.h.
5613         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5614         * config/i386/tm-i386v.h: Remove file.
5615         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5616         instead of "i386/tm-i386v.h".
5617         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5618         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5619         "i386/tm-i386v.h".
5620         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5621         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5622         "i386/tm-i386.h".
5623
5624 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5625
5626         * config/i386/nm-i386v.h: Add protection against
5627         multiple-inclusion.
5628         (i386_register_u_addr): Remove prototype.
5629         (register_u_addr): New prototype.
5630         (REGISTER_U_ADDR): Redefine accordingly.
5631         * i386v-nat.c: Improve several comments.
5632         (i386_register_u_addr): Change signature and rename to
5633         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5634         ubase variable.
5635
5636 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5637
5638         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5639         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5640         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5641         deprecated_extract_return_value.
5642         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5643         rename mips_o32o64_push_arguments.
5644         (mips_gdbarch_init): Update.
5645         (mips_extract_return_value): Delete.
5646         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5647         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5648         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5649         (mips_n32n64_extract_return_value): Clone
5650         mips_extract_return_value.
5651         (mips_store_return_value): Delete.
5652         (mips_o32_store_return_value): Clone mips_store_return_value.
5653         (mips_o64_store_return_value): Clone mips_store_return_value.
5654         (mips_eabi_store_return_value): Clone mips_store_return_value.
5655         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5656
5657 2002-08-18  Aidan Skinner <aidan@velvet.net>
5658
5659         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5660         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5661                 
5662 2002-08-18  Aidan Skinner <aidan@velvet.net>
5663
5664         * ada-lang.c: Run through gdb_indent.sh.
5665         * ada-lang.h: Run through gdb_indent.sh.
5666         * ada-tasks.c: Run through gdb_indent.sh.
5667         * ada-typeprint.c: Run through gdb_indent.sh.
5668         * ada-valprint.c: Run through gdb_indent.sh.
5669
5670 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5671
5672         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5673         ABI.
5674
5675 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5676
5677         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5678
5679         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5680         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5681
5682         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5683         write_register_gen instead of write_register_bytes.
5684
5685         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5686         i[3456]-*-osf1mk* configurations have been made obsolete.
5687         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5688         i[3456]86-*-osf1mk* hosts obsolete.
5689         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5690         targets obsolete.
5691         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5692         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5693         config/i386/i386m3.mt, config/i386/nm-m3.h,
5694         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5695         config/i386/i386mk.mh, config/i386/i386mk.mt,
5696         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5697         obsolete.
5698         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5699         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5700         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5701
5702 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5703
5704         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5705         (hppa_value_returned_from_stack): Declare.
5706         (hppa_extract_return_value): Declare.
5707         * config/pa/hppa.mt: New file.
5708         * configure.tgt: Recognize hppa*-*-*.
5709         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5710
5711 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5712
5713         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5714         comment.
5715
5716 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5717
5718         * top.c (gdb_rl_operate_and_get_next): Make sure
5719         operate-and-get-next functions correctly even when the history
5720         list is completely filled.
5721
5722 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5723
5724         * MAINTAINERS (Target Instruction Set Architectures): Rename
5725         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5726         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5727         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5728         already listed under Host/Native.
5729
5730         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5731         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5732         mips*-*-*.
5733
5734 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5735
5736         * config/ia64/ia64.mt: New file.
5737         * config/alpha/alpha.mt: New file.
5738         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5739         ia64-linux-gnu.  Mention that ia64-elf is broken.
5740         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5741
5742 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5743
5744         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5745         generic_func_frame_valid instead of func_frame_valid.
5746
5747 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5748
5749         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5750         procfs appears to be broken when debugging on multi-processor
5751         machines. So enable software single stepping in order to avoid
5752         using the procfs interface to do next/step operations, using
5753         internal breakpoints instead.
5754
5755         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5756         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5757         make this pc address equal to the value it would have if the
5758         system stepping capability was used. Also set a new flag used
5759         to ensure that we don't readjust the PC one more time later.
5760
5761         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5762         address by DECR_PC_AFTER_BREAK when software single step is
5763         in use for this architecture, as this has already been taken
5764         care of in handle_inferior_event().
5765
5766 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5767
5768         * infrun.c (handle_inferior_event): Minor reformatting, to make
5769         a rather long condition expression easier to read.
5770
5771 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5772
5773         * Makefile.in (gdbtk.o): Move to end of file.
5774         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5775         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5776         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5777         (gdbtk-wrapper.o, gdbres.o): Ditto.
5778
5779 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5780
5781         * Makefile.in (copying.o): Separate out compile rule.
5782         (hpux-thread.o, procfs.o, signals.o): Ditto.
5783         (v850ice.o, z8k-tdep.o): Ditto.
5784         (tui-file.o): Move to TUI section.
5785         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5786         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5787
5788 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5789
5790         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5791         skip_trampoline_code, for better namespace-proofing.   
5792
5793         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5794
5795 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5796
5797         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5798
5799 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5800
5801         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5802         signal, check whether we hit a breakpoint before checking for a
5803         single step breakpoint. Otherwise, GDB fails to notice that a
5804         breakpoint has been hit when stepping onto a breakpoint.
5805
5806 2002-08-16  Keith Seitz  <keiths@redhat.com>
5807
5808         * gdb-events.sh (clear_gdb_event_hooks): New function.
5809         * gdb-events.c: Regenerate.
5810         * gdb-events.h: Regenerate.
5811
5812 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5813
5814         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5815         not_a_sw_breakpoint.
5816         * breakpoint.h (bpstat_stop_status): Add parameter names.
5817
5818 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5819
5820         * remote.c (remote_insert_hw_breakpoint)
5821         (remote_remove_hw_breakpoint): Fix calculation of length field
5822         for Z-packet.
5823
5824 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5825
5826         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5827         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5828         (supply_fpregset): Ditto.
5829         
5830         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5831         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5832         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5833         (TARGET_READ_SP): Delete.
5834         (DO_REGISTERS_INFO): Delete.
5835         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5836         Delete.
5837         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5838         from macros to functions.
5839
5840         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5841         (mips_register_convertible, mips_register_convert_to_virtual,
5842         mips_register_convert_to_raw): Make static.
5843         (mips_read_sp): New function.
5844         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5845         (mips_do_registers_info): Make static.
5846         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5847         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5848         (mips_register_convert_from_type, mips_register_convert_to_type):
5849         New functions.
5850         (mips_gdbarch_init): Set up function_start_offset, 
5851         register_virtual_size, pc_in_sigtramp.
5852
5853 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5854
5855         * infcmd.c (vector_info): New function.
5856         (_initialize_infcmd): Add command "info vector".
5857         (print_vector_info): New function.
5858
5859         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5860         * gdbarch.h, gdbarch.c: Regenerate.
5861
5862 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5863
5864         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5865         ``print_all''.  Only print vector registers when ``print_all''.
5866
5867 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5868
5869         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5870         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5871
5872         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5873         Add `args' parameter.
5874         * gdbarch.h, gdbarch.c: Regenerate.
5875         
5876         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5877         
5878         * infcmd.c (float_info): Call print_float_info.
5879         (print_float_info): New function.  By default, print the
5880         floating-point registers.
5881
5882         * arch-utils.h (default_print_float_info): Delete declaration.
5883         * arch-utils.c (default_print_float_info): Delete function.
5884         
5885 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5886
5887         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5888         out define.
5889
5890         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5891         FRAME.
5892
5893         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5894         * configure.host: Make i[3456]86-*-aix host obsolete.
5895         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5896         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5897         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5898         config/i386/xm-i386aix.h: Make files obsolete.
5899         * i386aix-nat.c: Make file obsolete.
5900         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5901         (i386aix-nat.o): Make target obsolete.
5902
5903         * config/i386/nm-gnu.h: Removed.
5904         * config/i386/nm-i386gnu.h: New file.
5905         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5906         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5907         Moved here from ...
5908         * config/i386/tm-i386gnu.h: ... here.  Removed.
5909         * config/i386/xm-i386gnu.h: Removed.
5910         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5911         (NAT_FILE): Set to nm-i386gnu.h.
5912         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5913         * i386-tdep.c: New file.
5914         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5915         (i386gnu-tdep.o): Specify dependencies.
5916
5917 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5918
5919         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5920         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5921         Adjust a few comments to reflect reality a bit closer.
5922         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5923         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5924         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5925         target_insert_watchpoint, target_remove_watchpoint):
5926         Move defines to ...
5927         * config/i386/nm-i386sco5.h: ... here.
5928         (kernel_u_size): Add prototype.  Improve a few comments and add
5929         protection against multiple inclusion.
5930         
5931         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5932         out define.
5933
5934         * uw-thread.c (SP_ARG0): Define if not already defined.
5935         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5936
5937         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5938
5939         * config/i386/tm-i386.h: Don't include "regcache.h".
5940
5941         * i387-tdep.h (i387_print_float_info): New prototype.
5942         * i387-tdep.c (print_i387_value, print_i387_ext,
5943         print_i387_status_word, print_i387_control_word): Add `struct
5944         ui_file *' argument and use it for output.
5945         (i387_print_float_info): Renamed from i387_float_info.  Add
5946         `struct gdbarch *' and `struct ui_file *' arguments and use the
5947         latter for output.
5948         * i386-tdep.c: Include "i387-tdep.h".
5949         (i386_gdbarch_init): Set print_float_info.
5950         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5951         (FLOAT_INFO): Remove define.
5952
5953 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5954
5955         * mips-tdep.c (mips_push_arguments): Rename to
5956         mips_eabi_push_arguments, and tune for EABI.
5957         (MIPS_REGS_HAVE_HOME_P): Delete.
5958         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5959         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5960         Delete references to mips_regs_have_home_p.
5961
5962 2002-08-14  Keith Seitz  <keiths@redhat.com>
5963
5964         * Makefile.in (install-gdbtk): Create insight plugin directory.
5965         Install plugins.tcl file.
5966
5967 2002-08-14  Keith Seitz  <keiths@redhat.com>
5968
5969         * configure.in: Move SUBDIRS to near top of the file so that
5970         --enable options may add things to it.
5971         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5972         * configure: Regenerate.
5973
5974 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5975
5976         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5977         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5978         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5979
5980 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5981
5982         * vax-tdep.c (vax_get_saved_register): Delete function.
5983         (vax_gdbarch_init): Update.
5984         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5985         (ns32k_gdbarch_init): Update.
5986         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5987         (alpha_gdbarch_init): Update.
5988
5989 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5990
5991         * regcache.c (init_regcache_descr): Overallocate the
5992         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5993         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5994         nr_raw_registers.
5995         (set_register_cached): Add range checking assertions.  Use
5996         current_regcache.
5997
5998 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5999
6000         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6001         numbers for MMX registers.
6002
6003 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6004
6005         * i386-tdep.c (i386_gdbarch_init): Use
6006         generic_unwind_get_saved_register.
6007
6008 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6009
6010         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6011         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6012         target vector.
6013         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6014         Delete.  Add comment regarding this now-deleted target method.
6015
6016 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6017
6018         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6019         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6020         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6021         real PC and the page number (if it's within the memory bank window).
6022         (m68hc11_pseudo_register_write): Likewise when saving.
6023         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6024         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6025         (m68hc11_register_raw_size): And use 32-bit for it.
6026         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6027         16K memory bank is used by the prog; also use the virtual pc.
6028
6029 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6030
6031         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6032         (m68hc11_gdbarch_init): Install it in gdbarch.
6033         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6034         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6035         (MSYMBOL_SIZE): New for documentation.
6036         (insn_return_kind): Enum to specify how a function returns.
6037         (frame_extra_info): Cleanup and record the return mode.
6038         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6039         register in address computation.
6040         (m68hc11_get_return_insn): New to obtain the return instruction used
6041         by the function.
6042         (m68hc11_frame_init_saved_regs): Take into account the return
6043         instruction used by the function for far and interrupt functions.
6044         (m68hc11_init_extra_frame_info): Take into account page register.
6045         (m68hc11_frame_args_address): Adjust according to the return mode.
6046         (show_regs): Print page register only when it's used.
6047
6048 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6049
6050         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6051         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6052         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6053         registers.
6054         (m68hc11_register_raw_size): Likewise.
6055
6056 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6057
6058         * i386-tdep.c (i386_register_name): Handle mmx registers.
6059         (mmx_regnum_p): New function.
6060         (i386_mmx_names): New array.
6061         (mmx_num_regs): New variable.
6062         (i386_pseudo_register_read): New function.
6063         (i386_pseudo_register_write): New function.
6064         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6065
6066         * regcache.c (regcache_raw_read_unsigned): New function.
6067         (regcache_raw_read_signed): New function.
6068         * regcache.h (regcache_raw_read_unsigned): Declare.
6069         (regcache_raw_read_signed): Declare.
6070
6071 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6072
6073         * regcache.c (regcache_raw_read_as_address): Delete function.
6074         (regcache_cooked_read_signed): New function.
6075         (regcache_cooked_read_unsigned): New function.
6076         * regcache.h (regcache_cooked_read_signed): Declare.
6077         (regcache_cooked_read_unsigned): Declare.
6078         (regcache_raw_read_as_address): Delete declaration.
6079
6080         * blockframe.c (generic_read_register_dummy): Use
6081         regcache_cooked_read_unsigned.
6082         * i386-tdep.c (i386_extract_struct_value_address): Use
6083         regcache_cooked_read_unsigned.
6084
6085 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6086
6087         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6088         double sizes according to ELF ABI flags.
6089         (gdbarch_tdep): Record elf_flags.
6090
6091 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6092
6093         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6094         (m6812_prolog): They can appear in 68HC12 function prologue.
6095         (m68hc11_frame_chain): Cleanup.
6096
6097 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6098
6099         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6100         declarations.
6101         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6102         (i386_linux_register_raw_size): Delete function.
6103         (i386_linux_init_abi): Update.
6104         * i386-tdep.c (i386_register_raw_size): Delete function.
6105         (i386_register_byte): Delete function.
6106         (i386_gdbarch_init): Update.
6107         (i386_register_size): Delete array.
6108         (i386_register_offset): Delete array.
6109
6110         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6111         (REGISTER_RAW_SIZE): Delete macro.
6112         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6113         (REGISTER_BYTE): Delete macro.
6114
6115 2002-08-11  Aidan Skinner <aidan@velvet.net>
6116
6117         * ada-lang.c (ada_lookup_partial_symbol)
6118         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6119         prototype names so that grep ^func works properly.
6120
6121         * ada-lang.c (ada_array_element_type)
6122         (ada_lookup_partial_symbol): Fix typos in parameter list.
6123
6124         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6125         Fix prototype names so that grep ^func works properly.
6126         
6127 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6128             Elena Zannoni  <ezannoni@redhat.com>
6129             Martin M. Hunt  <hunt@redhat.com>
6130
6131         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6132         (build_builtin_type_vec128i): Set the vector bit.
6133         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6134         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6135         (build_builtin_type_vec64): New function.
6136         (build_builtin_type_vec64i): New function.
6137         (build_gdbtypes): Initialize builtin_type_vec64 and
6138         builtin_type_vec64i.
6139
6140 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6141
6142         * regcache.c (regcache_dump): Compare the register offset
6143         with REGISTER_BYTE.
6144         * arch-utils.c (generic_register_byte): New function.
6145         * arch-utils.h (generic_register_byte): Declare.
6146         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6147         * gdbarch.h, gdbarch.c: Regenerate.
6148
6149 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6150
6151         * regcache.c: Include "gdbcmd.h"
6152         (_initialize_regcache): Add commands "maintenance print
6153         registers", "maintenance print raw-registers" and "maintenance
6154         print cooked-registers".
6155         (enum regcache_dump_what): Define.
6156         (dump_endian_bytes): New function.
6157         (regcache_dump): New function.
6158         (regcache_print): New function.
6159         (maintenance_print_registers): New function.
6160         (maintenance_print_raw_registers): New function.
6161         (maintenance_print_cooked_registers): New function.
6162         * Makefile.in (regcache.o): Update dependencies.
6163
6164 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6165
6166         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6167         (mips_push_arguments): Correct some comments.  Use paddr_nz
6168         for printing addresses in debug output.  Replace static
6169         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6170         (mips_n32n64_push_arguments): New function, cloned from
6171         mips_push_arguments and tuned for the n32/n64 ABI.
6172         (mips_push_register): Buffer needs dynamic allocation.
6173         (mips_print_register): Ditto.
6174         (do_gp_register_row): Ditto.
6175         (mips_store_return_value): Ditto.
6176         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6177
6178 2002-08-09  Don Howard  <dhoward@redhat.com>
6179
6180         * memattr.c (mem_info_command): Print special case of upper bound
6181         as max CORE_ADDR + 1.
6182
6183 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6184
6185         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6186         returns structs by ref if they're too big to fit in two registers.
6187
6188 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6189
6190         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6191         saved regs value.
6192         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6193         mips_find_saved_regs().
6194         (mips_pop_frame): Likewise.
6195
6196 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6197
6198         * blockframe.c (frame_saved_regs_register_unwind): Revise
6199         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6200         frames are in use.
6201
6202 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6203         
6204         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6205         T-packets; the 'a' is not taken as a register number.
6206         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6207         (remote_stopped_data_address): New functions; add to target
6208         vector.
6209         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6210         prototypes to match other implementations of this
6211         function. replace integer argument with pointer -- the length
6212         field in the Z-packet is the length of what is pointed to or 1 if
6213         pointer is null. Add to target vector.
6214         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6215         target vector.
6216
6217         From Mark Salter:
6218         * remote.c (remote_wait): Add support to extract optional
6219         watchpoint information from T-packet. Ignore unrecognized
6220         optional info in T-packet.
6221         (remote_async_wait): Ditto.
6222
6223 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6224
6225         * cli/cli-dump.c: Change fopen modes to use binary open modes
6226         as defined in include/fopen-bin.h throughout.
6227
6228 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6229
6230         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6231
6232 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6233
6234         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6235         assertion failure by returning early after a warning.
6236
6237 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6238
6239         * mips-tdep.c (mips_find_saved_regs): Make static.
6240         (mips_frame_init_saved_regs): New function.
6241         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6242         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6243         (mips_find_saved_regs): Delete declaration.
6244
6245 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6246
6247         * remote.c (remote_wait, remote_async_wait): Change
6248         thread_num from int to ULONGEST.
6249         (unpack_varlen_hex): Change result parameter from
6250         int * to ULONGEST *.
6251
6252 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6253
6254         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6255         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6256         powerpc*-*-*.
6257         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6258
6259 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6260
6261         * gcore.c (override_derive_stack_segment): Delete variable.
6262         (preempt_derive_stack_segment): Delete function.
6263         (derive_stack_segment): Delete function.
6264         (default_derive_stack_segment): Renamed to derive_stack_segment.
6265         (override_derive_heap_segment): Delete variable.
6266         (preempt_derive_heap_segment): Delete function.
6267         (derive_heap_segment): Delete function.
6268         (default_derive_heap_segment): Rename to derive_heap_segment.
6269
6270 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6271
6272         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6273         * mips-tdep.c (mips_EABI_use_struct_convention, 
6274         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6275         New functions.  (mips_use_struct_convention): Delete.
6276         (mips_gdbarch_init): set use_gdbarch_convention.
6277
6278 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6279
6280         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6281         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6282         mips_o32_reg_struct_has_addr): New functions.
6283         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6284
6285 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6286
6287         * regcache.c (pseudo_register): Delete function.
6288         (fetch_register): Delete function.
6289         (store_register): Delete function.
6290         (regcache_raw_read, legacy_read_register_gen): Use
6291         target_fetch_registers instead of fetch_register.
6292         (legacy_write_register_gen, regcache_raw_write): Use
6293         target_store_register instead of store_register.
6294         (write_register_bytes): Ditto.
6295
6296         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6297         (STORE_PSEUDO_REGISTER): Delete.
6298         * gdbarch.h, gdbarch.c: Regenerate.
6299
6300 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6301
6302         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6303         write dump file binary.
6304
6305 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6306
6307         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6308         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6309         (mips_gdbarch_init): Set N32 target to be mips64.
6310
6311 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6312
6313         * frame.c (find_saved_register): Break out of loop once saved
6314         register address is found.  Don't mention sparc in loop comment
6315         anymore.
6316
6317 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6318
6319         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6320         mips_default_saved_regsize to 8.
6321
6322 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6323
6324         * gcore.c: Do not include <sys/procfs.h>.
6325         * Makefile.in (gcore.o): Update dependencies.
6326
6327 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6328
6329         * configure.tgt: Make arc-*-* obsolete.
6330         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6331         * MAINTAINERS: Make arc-elf obsolete.
6332         * arc-tdep.c: Make file obsolete.
6333         * config/arc/arc.mt: Ditto.
6334         * config/arc/tm-arc.h: Ditto.
6335
6336 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6337
6338         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6339
6340 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6341
6342         * mcore-tdep.c (mcore_gdbarch_init): Use
6343         generic_unwind_get_saved_register instead of
6344         generic_get_saved_register.
6345         * v850-tdep.c (v850_gdbarch_init): Ditto.
6346         * frv-tdep.c (frv_gdbarch_init): Ditto.
6347         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6348         * s390-tdep.c (s390_gdbarch_init): Ditto.
6349         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6350         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6351         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6352
6353 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6354
6355         * objfiles.h: Add missing #include "symfile.h"
6356
6357         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6358
6359 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6360
6361         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6362         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6363         of FIELD_BITSIZE.
6364
6365 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6366
6367         * NEWS: Cleanup and nitpick.
6368
6369 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6370
6371         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6372
6373 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6374
6375         * Makefile.in (gdbtk-bp.o): Update dependencies.
6376         (gdbtk-register.o): Ditto.
6377         (gdbtk-varobj.o): Ditto.
6378
6379 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6380
6381         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6382         m68hc11_fetch_pseudo_register.
6383         (m68hc11_pseudo_register_write): Replace
6384         m68hc11_store_pseudo_register.
6385         (m68hc11_gdbarch_init): Update.
6386
6387 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6388
6389         * gdbarch.sh: Include "gdb_string.h".
6390         * gdbarch.c: Regenerate.
6391
6392         * regcache.c: Include "gdb_string.h".
6393         * ax-general.c: Ditto.
6394         * varobj.c: Ditto.
6395         * std-regs.c: Ditto.
6396         * fbsd-proc.c: Ditto.
6397         * thread.c: Ditto.
6398
6399         * Makefile.in (regcache.o): Update dependencies.
6400         (thread.o, gdbarch.o): Ditto.
6401         (ax-general.o, gdbarch.o): Ditto.
6402         (varobj.o, std-regs.o): Ditto.
6403         (fbsd-proc.o): Specify dependencies.
6404
6405 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6406
6407         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6408         regnum.
6409         (regcache_cooked_write): Ditto.
6410
6411 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6412
6413         * regcache.c (regcache_cooked_read): New function.
6414         (regcache_cooked_write): New function.
6415         (read_register_gen): Rewrite using regcache_cooked_read.
6416         (write_register_gen): Rewrite using regcache_cooked_write.
6417
6418         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6419         Declare.
6420
6421 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6422
6423         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6424         Replace the architecture methods register_read and register_write.
6425         * gdbarch.h, gdbarch.c: Regenerate.
6426         * regcache.c (init_regcache_descr): Update.
6427         (read_register_gen): Update.
6428         (write_register_gen): Update.
6429         (supply_register): Update comment.
6430
6431         * sh-tdep.c (sh_gdbarch_init): Update.
6432         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6433         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6434         pointer.  Update code.
6435         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6436         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6437         void pointer.  Update code.
6438         (sh64_register_write): Delete.
6439         (sh4_register_read): Delete.
6440         (sh64_register_read): Delete.
6441         (sh4_register_write): Delete.
6442         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6443         void pointer, `to' parameter a void pointer.
6444         (sh_sh64_register_convert_to_raw): Ditto.
6445
6446 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6447
6448         * mips-tdep.c (mips_register_virtual_type): Use architecture
6449         invariant return values.
6450
6451 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6452
6453         * linux-proc.c: Include "gdb_string.h".
6454         * Makefile.in (linux-proc.o): Update dependency list.
6455
6456 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6457
6458         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6459         comment.
6460
6461 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6462
6463         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6464         to_insert_watchpoint, to_remove_watchpoint,
6465         to_stopped_by_watchpoint, to_stopped_data_address,
6466         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6467         target vecctor. Define their corresponding macros so they call
6468         them.
6469         
6470         * target.c: Add default and debug versions of for
6471         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6472         to_insert_watchpoint, to_remove_watchpoint,
6473         to_stopped_by_watchpoint, to_stopped_data_address,
6474         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6475
6476 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6477
6478         * mips-tdep.c (mips_register_virtual_type): New function.
6479         (mips_gdbarch_init): Register mips_register_virtual_type()
6480         with gdbarch machinery.
6481         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6482         this file instead of tm-bigmips.h.
6483         (MIPS_REGSIZE): Delete this macro.
6484         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6485         multiarch version in mips-tdep.c will be found.
6486
6487 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6488
6489         * NEWS: Menion that CHILL has been made obsolete.
6490
6491         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6492         * stabsread.c (read_range_type): Ditto.
6493         * gdbtypes.h: Ditto.
6494         * language.c (binop_type_check): Ditto.
6495         (binop_result_type): Ditto.
6496         (integral_type): Ditto.
6497         (character_type): Ditto.
6498         (string_type): Ditto.
6499         (boolean_type): Ditto.
6500         (structured_type): Ditto.
6501         (lang_bool_type): Ditto.
6502         (binop_type_check): Ditto.
6503         * language.h (_LANG_chill): Ditto.
6504         * dwarfread.c (set_cu_language): Ditto.
6505         * dwarfread.c (CHILL_PRODUCER): Ditto.
6506         * dwarfread.c (handle_producer): Ditto.
6507         * expression.h (enum exp_opcode): Ditto.
6508         * eval.c: Ditto for comments.
6509         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6510         * expprint.c (print_subexp): Ditto.
6511         (print_subexp): Ditto.
6512         * valops.c (value_cast): Ditto.
6513         (search_struct_field): Ditto.
6514         * value.h (COERCE_VARYING_ARRAY): Ditto.
6515         * symfile.c (init_filename_language_table): Ditto.
6516         (add_psymbol_with_dem_name_to_list): Ditto.
6517         * valarith.c (value_binop): Ditto.
6518         (value_neg): Ditto.
6519         * valops.c (value_slice): Ditto.
6520         * symtab.h (union language_specific): Ditto.
6521         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6522         (SYMBOL_DEMANGLED_NAME): Ditto.
6523         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6524         * defs.h (enum language): Ditto.
6525         * symtab.c (got_symtab): Ditto.
6526         * utils.c (fprintf_symbol_filtered): Ditto.
6527
6528         * ch-typeprint.c: Make file obsolete.
6529         * ch-valprint.c: Make file obsolete.
6530         * ch-lang.h: Make file obsolete.
6531         * ch-exp.c: Make file obsolete.
6532         * ch-lang.c: Make file obsolete.
6533
6534         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6535         CHILL_LIB.
6536         (TARGET_FLAGS_TO_PASS): Ditto.
6537         (CHILLFLAGS): Obsolete.
6538         (CHILL): Obsolete.
6539         (CHILL_FOR_TARGET): Obsolete.
6540         (CHILL_LIB): Obsolete.
6541         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6542         ch-valprint.c.
6543         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6544         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6545         ch-lang.o.
6546         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6547         targets.
6548
6549 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6550
6551         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6552         This does not change anything at the moment, but will be helpful
6553         later when full Ada support is integrated.
6554
6555 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6556
6557         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6558         help message.
6559
6560 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6561
6562         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6563         and save it in a local variable.  Use variable in later test.
6564
6565 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6566
6567         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6568         test.  (Thanks to Daniel Jacobowitz.)
6569         
6570 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6571
6572         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6573         (mips_abi_strings): Add "n64".
6574         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6575
6576 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6577
6578         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6579         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6580
6581 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6582
6583         * utils.c (host_pointer_to_address, address_to_host_pointer):
6584         Use gdb_assert() instead of explicit call to internal_error().
6585
6586 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6587
6588         * Makefile.in (rs6000-nat.o): Update dependencies.
6589
6590         From Nicholas Duffek:
6591         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6592         (aix-thread.o): New rule.
6593         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6594         * config/powerpc/aix432.mh: New file.
6595
6596 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6597
6598         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6599         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6600         (fetch_core_registers, ppc_linux_supply_gregset)
6601         (ppc_linux_supply_fpregset): New functions.
6602         (ppc_linux_regset_core_fns): New.
6603         (_initialize_ppc_linux_tdep): Call add_core_fns.
6604         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6605         and ppc_linux_supply_gregset.
6606         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6607         (supply_fpregset): Call ppc_linux_supply_fpregset.
6608         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6609         corelow.o.
6610         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6611
6612 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6613
6614         * symtab.c (lookup_symbol): Demangle before lowercasing.
6615
6616 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6617
6618         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6619         declaration.
6620         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6621         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6622         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6623         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6624         "gdb_string.h".
6625         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6626         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6627         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6628         (avr-tdep.o, mon960-rom.o): Ditto.
6629         (aout_stabs_gnu_h): Define.
6630         (symtab_h): Remove $(gdb_obstack_h).
6631
6632 2002-07-30  Jim Blandy  <jimb@redhat.com>
6633
6634         Patch from David Carlton <carlton@math.stanford.edu>:
6635         * gdbinit.in: Move the `dir' commands that add GDB's own source
6636         directory to the search path to the end, so that the `gdb' source
6637         directory will be searched first.
6638
6639 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6640
6641         * gdb_obstack.h: New file.
6642         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6643         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6644         * objfiles.h: Include "gdb_obstack.h".
6645         * Makefile.in (gdb_obstack_h): Define.
6646         (symtab_h): Add $(gdb_obstack_h).
6647         (objfiles_h): Add $(gdb_obstack_h).
6648         
6649         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6650         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6651         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6652         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6653         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6654         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6655         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6656         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6657
6658         * Makefile.in (bcache.o): Update dependencies.
6659         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6660         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6661         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6662         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6663         (stabsread.o, symfile.o, symmisc.o): Ditto.
6664         (symtab.o, typeprint.o, macroexp.o): Ditto.
6665         (macrotab.o, mdebugread.o): Ditto.
6666         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6667         (coff_ecoff_h, aout_aout64_h): Define.
6668         (aout_stabs_gnu_h, libaout_h): Define.
6669
6670 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6671
6672         * regcache.c (struct regcache_descr): Rename nr_registers to
6673         nr_cooked_registers.  Revise comments describing the structure
6674         member fields.
6675         (init_regcache_descr): Update.
6676         (init_legacy_regcache_descr): Update.
6677         (read_register_gen, write_register_gen): When a cooked register in
6678         the raw register range, directly access the value from the raw
6679         register cache.
6680
6681 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6682
6683         * z8k-tdep.c: Do not include "obstack.h".
6684         * h8300-tdep.c, h8500-tdep.c: Ditto.
6685         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6686         * valprint.c, v850-tdep.c: Ditto.
6687         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6688         * mn10200-tdep.c: Ditto.
6689
6690         * Makefile.in (z8k-tdep.o): Update dependencies.
6691         (m68hc11-tdep.o, valprint.o): Ditto.
6692         (v850-tdep.o, d10v-tdep.o): Ditto.
6693         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6694         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6695         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6696         (sh_opc_h, gdb_sim_sh_h): Define.
6697         (elf_sh_h, elf_bfd_h): Define.
6698         (opcode_m68hc11_h): Define.
6699         (OPCODES_SRC, OPCODES_DIR): define.
6700         (OPCODES): Use $(OPCODES_DIR).
6701         (gdb_sim_d10v_h): Rename sim_d10v_h.
6702         (gdb_sim_arm_h): Rename sim_arm_h.
6703
6704 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6705
6706         * utils.c (host_pointer_to_address, address_to_host_pointer):
6707         Change internal_error() message to indicate function responsible
6708         for the error.
6709
6710 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6711
6712         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6713         calls to local_hex_string_custom().
6714
6715 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6716
6717         * irix5-nat.c: Move IRIX shared library support from here...
6718         * solib-irix.c: ...to here.  Revised substantially to work with
6719         generic solib framework.
6720
6721         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6722         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6723         * mips-irix-tdep.c: New file.
6724
6725         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6726         (mips-irix-tdep.o, solib-irix.o): New rules.
6727         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6728         solib-irix.o.
6729         * config/mips/irix6.mt (TDEPFILES): Likewise.
6730         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6731
6732 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6733
6734         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6735         disabled (via ``#if 0'') includes.
6736
6737 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6738
6739         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6740         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6741         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6742         Add support for the fpscr register.
6743         * rs6000-nat.c (regmap, fetch_inferior_registers)
6744         (store_inferior_registers, fetch_core_registers): Likewise.
6745
6746 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6747
6748         * rs6000-nat.c (language.h): Include.
6749         (special_regs): Delete this array.
6750         (regmap): New function.
6751         (fetch_register, store_register):  Use regmap() to map gdb
6752         register numbers to ptrace register numbers.  Also, use
6753         outputs from regmap() to make decisions regarding type of
6754         ptrace() call to make.  In particular, don't compare against
6755         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6756         (fetch_inferior_registers, store_inferior_registers): Where
6757         possible, obtain register numbers from tdep struct.  Don't
6758         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6759         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6760         (LAST_UISA_SP_REGNUM): Delete.
6761         
6762 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6763
6764         * rs6000-nat.c (ppc-tdep.h): Include.
6765         (fetch_registers, store_register, fetch_core_registers): Don't
6766         access registers[] directly.  Instead, use supply_register() or
6767         regcache_collect() as appropriate.
6768         (find_toc_address): Format hex address with local_hex_string().
6769
6770 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6771
6772         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6773         bfd/elf32-frv.c.
6774
6775 2002-07-24  Tom Tromey  <tromey@redhat.com>
6776
6777         * jv-exp.y: Marked all strings with _().
6778         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6779         internal_error.
6780         (MethodInvocation, CastExpression, parse_number, yyerror,
6781         java_type_from_name, push_expression_name, yylex): Typo fixes.
6782
6783 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6784
6785         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6786         (tee_file_flush, tee_file_write, tee_file_fputs)
6787         (tee_file_isatty): New.
6788         * ui-file.h (tee_file_new): Add prototype.
6789
6790 2002-07-24  Aidan Skinner <aidan@velvet.net>
6791
6792         * ada-lang.c: Change k&r style function definitions to prototyped
6793         form.
6794         * ada-typeprint.c: Change k&r style function definitions to prototyped
6795         form.
6796         * ada-valprint.c: Change k&r style function definitions to prototyped
6797         form.
6798         
6799 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6800
6801         * README: Remove reference to remote-bug.
6802         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6803         remote-bug.c.
6804         (m88k-nat.o): Delete rule.
6805         (m88k-tdep.o): Delete rule.
6806         (remote-bug.o): Delete rule.
6807         * MAINTAINERS: Mark as obsolete.
6808         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6809         * m88k-tdep.c: Make file obsolete.
6810         * config/m88k/m88k.mh: Ditto.
6811         * config/m88k/delta88v4.mh: Ditto.
6812         * config/m88k/delta88v4.mt: Ditto.
6813         * config/m88k/delta88.mt: Ditto.
6814         * config/m88k/delta88.mh: Ditto.
6815         * remote-bug.c: Ditto.
6816         * config/m88k/tm-delta88.h: Ditto.
6817         * config/m88k/nm-delta88v4.h: Ditto.
6818         * config/m88k/xm-delta88.h: Ditto.
6819         * config/m88k/xm-dgux.h: Ditto.
6820         * config/m88k/tm-m88k.h: Ditto.
6821         * config/m88k/nm-m88k.h: Ditto.
6822         * config/m88k/tm-delta88v4.h: Ditto.
6823         * m88k-nat.c: Ditto.
6824         * cxux-nat.c: Ditto.
6825         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6826         and m88*-*-* obsolete.
6827         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6828         m88*-*-* obsolete.
6829
6830 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6831
6832         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6833         constant.  Same for local pointer variables.
6834         (extract_signed_integer): Ditto.
6835         * defs.h (extract_unsigned_integer): Update.
6836         (extract_signed_integer): Update.
6837
6838 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6839
6840         * regcache.c (regcache_raw_write): Change buf parameter to a
6841         constant void pointer.
6842         (regcache_raw_read): Change buf parameter to a void pointer.
6843         (legacy_write_register_gen): Change myaddr parameter a constant
6844         void pointer.
6845         (supply_register): Change val parameter to a const void pointer.
6846         * regcache.h (regcache_raw_write): Update declaration.
6847         (regcache_raw_read): Update declaration.
6848         (supply_register): Update declaration.
6849
6850 2002-07-24  Tom Tromey  <tromey@redhat.com>
6851
6852         * defs.h (gdb_readline_wrapper): Declare.
6853         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6854         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6855         * top.c (gdb_readline_wrapper): New function.
6856         (command_line_input): Use it.
6857
6858 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6859
6860         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6861         regcache_read and regcache_write.
6862         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6863         * regcache.c: Update.
6864         * sh-tdep.c (sh64_push_arguments): Update comment.
6865         (sh_pseudo_register_read): Update.
6866         (sh_pseudo_register_write): Update.
6867         (sh4_register_read): Update.
6868         (sh4_register_write): Update.
6869         (sh64_pseudo_register_read): Update.
6870         (sh64_pseudo_register_write): Update.
6871         (sh64_register_read): Update.
6872         (sh64_register_write): Update.
6873         * i386-tdep.c (i386_extract_return_value): Update.
6874         (i386_extract_struct_value_address): Update.
6875         (i386_extract_return_value): Update.
6876         * blockframe.c (generic_read_register_dummy): Update.
6877         (generic_call_dummy_register_unwind): Update
6878         * infrun.c (write_inferior_status_register): Update.
6879
6880 2002-07-23  Jim Blandy  <jimb@redhat.com>
6881
6882         * parser-defs.h (expression_context_pc): Make this extern.
6883         (Thanks to Michael Snyder.)
6884
6885 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6886
6887         GDB 5.2.1 released from 5.2 branch.
6888         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6889         * README: Update to mention 5.2.1.
6890
6891 2002-07-23  Mark Salter  <msalter@redhat.com>
6892
6893         * remote.c (remote_read_bytes): Fix check for error.
6894
6895 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6896
6897         * aix-thread.c (language.h): Include.
6898         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6899         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6900         Print newlines at end of debug messages.
6901         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6902         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6903
6904 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6905
6906         * aix-thread.c (ppc-tdep.h): Include.
6907         (special_register_p): New function.
6908         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6909         (store_regs_user_thread): Use register number information from
6910         gdbarch_tdep struct instead of hardcoded offsets relative to
6911         FIRST_UISA_SP_REGNUM.
6912         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6913         special_register_p() instead of using FPLAST_REGNUM and
6914         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6915         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6916         will be MQ's register number.
6917
6918 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6919
6920         * aix-thread.c (ops): Rename to aix_thread_ops.
6921         (base_ops): Rename to base_target.
6922         (ops_attach): Rename to aix_thread_attach.
6923         (ops_detach): Rename to aix_thread_detach.
6924         (ops_resume): Rename to aix_thread_detach.
6925         (ops_wait):   Rename to aix_thread_wait.
6926         (ops_kill):   Rename to aix_thread_kill.
6927         (init_ops):   Rename to init_aix_thread_ops.
6928         (ops_fetch_register): Rename to aix_thread_fetch_register.
6929         (ops_store_register): Rename to aix_thread_store_register.
6930         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6931         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6932         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6933         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6934         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6935         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6936         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6937         (store_regs_lib):  Rename to store_regs_user_thread.
6938         (store_regs_kern): Rename to store_regs_kernel_thread.
6939
6940 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6941
6942         * aix-thread.c (ops_prepare_to_store): Eliminate.
6943         (init_ops): Don't initialize ops.prepare_to_store.
6944         (store_regs_kern): Pre-fetch register buffers from child, 
6945         because some registers may not be in the cache.  Copy
6946         regs from register cache only if they are cached.
6947         (store_regs_lib): Copy regs from register cache only
6948         if they are cached.
6949         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6950         fill_gprs64): Ditto.
6951
6952 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6953
6954         * aix-thread.c (gdb_assert.h): Include.
6955         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6956         register sizes (from register cache) match size of buffer holding
6957         register data.
6958         (fill_sprs32): Change parameter types to match those in the ptrace()
6959         buffer.
6960         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6961         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6962
6963 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6964
6965         * aix-thread.c (supply_sprs64): Cosmetic change.
6966         (supply_sprs32): Cosmetic change.
6967         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6968         (fill_sprs64): Use regcache_collect instead of read_register.
6969         (store_regs_lib): Use regcache_collect instead of 
6970         read_register.  Use fill_sprs32 instead of fill_sprs64,
6971         if debugging a 32-bit architecture.
6972         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6973         out of the register cache, instead of passing a pointer into
6974         the register cache directly to ptrace.  Use regcache_collect
6975         insteaad of read_register.
6976         (ops_prepare_to_store): Use target_read_registers instead
6977         of read_register_bytes.
6978
6979 2002-07-20  Aidan Skinner <aidan@velvet.net>
6980
6981         * MAINTAINERS: Add self under write after approval. 
6982                 
6983 2002-07-20  Aidan Skinner <aidan@velvet.net>
6984
6985         * ada-tasks.c: Change k&r style function definitions to prototyped
6986         form.
6987                 
6988 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6989
6990         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6991         * x86-64-tdep.c: Include "objfiles.h".
6992         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6993         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6994
6995 2002-07-17  Michal Ludvig  <michal@suse.cz>
6996
6997         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6998         (update_context): Initialise cfa variable.
6999
7000 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7001
7002         * aix-thread.c: Shorten some long lines.  
7003         Bring comments into line with code spec.
7004
7005 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7006
7007         * infrun.c: Re-indent using gdb_indent.sh.
7008
7009 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7010
7011         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7012         Leave the indentation temporarily untouched, to minimize the diffs.
7013
7014 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7015
7016         * stabsread.c: Make os9k sections of the code obsolete,
7017         for real this time.
7018         * stabsread.h: Make os9k sections of the code obsolete.
7019
7020 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7021
7022         * linux-low.c (regsets_store_inferior_registers): Add free()
7023         at the end of a loop to prevent memory leak.
7024         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7025         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7026         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7027         line a comment.
7028         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7029
7030 2002-07-17  Jim Blandy  <jimb@redhat.com>
7031
7032         * macrocmd.c (info_macro_command): Remove newline from error
7033         message.
7034
7035 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7036
7037         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7038         (sh_gdbarch_init): Use it for sh-dsp.
7039
7040 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7041
7042         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7043         64-bit DWARF2 format.
7044
7045 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7046
7047         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7048         <sys/proc.h> when not available.
7049
7050 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7051
7052         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7053         * stabsread.c: Make os9k sections of the code obsolete.
7054         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7055         * config/i386/i386os9k.mt: Make file obsolete.
7056         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7057         (COMMON_OBS): Remove os9kread.o
7058         (SFILES): Remove os9kread.c.
7059         (os9kread.o, remote-os9k.o): Make target obsolete.
7060         * remote-os9k.c: Make file obsolete.
7061         * os9kread.c: Make file obsolete.
7062         * Makefile.in
7063
7064 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7065
7066         * NEWS: Mention that the FR30 has been made obsolete.
7067         * fr30-tdep.c: Make file obsolete.
7068         * config/fr30/tm-fr30.h: Ditto.
7069         * config/fr30/fr30.mt: Ditto.
7070         * configure.tgt: Make fr30-*-elf obsolete.
7071         * MAINTAINERS: Make fr30-elf obsolete.
7072
7073 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7074
7075         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7076         found is not inside a section.
7077
7078 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7079
7080         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7081         strerror().
7082         (pdc_realloc): Use xrealloc() instead of realloc().
7083
7084 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7085
7086         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7087         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7088         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7089         macros.
7090
7091 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7092
7093         * aix-thread.c (ptrace_check): Eliminate goto.
7094         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7095         problem.
7096
7097 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7098
7099         * aix-thread.c (gdbcmd.h): Include.
7100         (DEBUG, DBG, DBG2, dbg): Eliminate.
7101         (debug_aix_thread): New static global.
7102         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7103         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7104         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7105         invocations to DBG and DBG2 macros to test against
7106         ``debug_aix_thread'' and call fprintf_unfiltered().
7107         (_initialize_aix_thread): Add new command "set debug aix-thread".
7108
7109 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7110
7111         From Gerhard Tonn <TON@de.ibm.com>:
7112         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7113         instead of supply_register.
7114
7115 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7116
7117         * dwarf2cfi.c: Include "gdb_assert.h".
7118         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7119         non-NULL.
7120         (update_context): Do not use __func__.  Add missing ``break''.
7121         (update_context): Do not use __func__.
7122
7123 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7124
7125         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7126         and its setting.  Set gdbarch instruction printing functions
7127         directly.  For non-rs6000 case use new function
7128         gdb_print_insn_powerpc.
7129         (gdb_print_insn_powerpc): New function.
7130
7131 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7132
7133         * NEWS: Mention that the d30v has been marked obsolete.
7134         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7135         * configure.tgt: Mark d30v-*-* as obsolete.
7136         * d30v-tdep.c: Mark file as obsolete.
7137         * config/d30v/d30v.mt: Ditto.
7138         * config/d30v/tm-d30v.h: Ditto.
7139
7140 2002-07-13  Aidan Skinner <aidan@velvet.net>
7141
7142         * ada-tasks.c (add_task_entry): replace calls to
7143         malloc() with xmalloc
7144         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7145         
7146         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7147         ada_finish_decode_line_1, all_sals_for_line
7148         ada_breakpoint_rewrite): replace calls to free() with xfree()
7149                 
7150 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7151
7152         From Nicholas Duffek (with minor changes by Martin Hunt, 
7153         Louis Hamilton, and Kevin Buettner):
7154         * aix-thread.c: New file.
7155
7156 2002-07-12  Petr Sorfa <petrs@caldera.com>
7157
7158         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7159         complaint for invalid attribute class or form.
7160         (read_func_scope): DW_AT_frame_base
7161         better handling of DW_AT_block*.
7162         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7163         better handling of DW_AT_block*.
7164         (read_common_block): DW_AT_location
7165         better handling of DW_AT_block*.
7166         (read_partial_die): DW_AT_location better handling
7167         of DW_AT_block*.
7168         (new_symbol): DW_AT_external better handling of
7169         DW_AT_block*. Proper initialization of variable
7170         "addr".
7171         (attr_form_is_block): New function that returns true
7172         if the attribute's form is of DW_FORM_block*.
7173
7174 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7175
7176         * valops.c (find_method_list): Remove comment about
7177         removed STATIC_MEMFUNCP argument.
7178         (value_find_oload_method_list): Likewise.
7179
7180 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7181
7182         From Nicholas Duffek:
7183         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7184         target_new_objfile_hook.
7185
7186 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7187
7188         From Nicholas Duffek:
7189         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7190         csect.
7191
7192 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7193
7194         * MAINTAINERS: Mention --enable-sim-build-warnings.
7195         (m68hc11-elf): Disable sim build warnings.
7196         (m32r-elf): Mark as broken obsolete candidate.
7197         (x86_64-linux-gnu): Mark as buildable with -Werror.
7198         (arm-elf): Change -w to ``,'' which enables warnings but not
7199         -Werror.
7200
7201 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7202
7203         * bcache.h: Update copyright.
7204         (struct bstring, struct bcache): Move definition to "bcache.c".
7205         Replaced by opaque declaration.
7206         (bcache_xfree): Replace free_bcache.
7207         (bcache_xmalloc, bcache_memory_used): Declare.
7208         
7209         * bcache.c: Update copyright.
7210         (struct bstring, struct bcache): Moved to here from "bcache.h".
7211         Update comments.
7212         (bcache_xmalloc, bcache_memory_used): New functions.
7213         (bcache_xfree): Replace function free_bcache.
7214         
7215         * Makefile.in (objfiles.o): Add $(bcache_h).
7216         (objfiles_h): Remove $(bcache_h).
7217         (symfile.o): Add $(bcache_h).
7218
7219         * symmisc.c: Update copyright.
7220         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7221         (print_objfile_statistics): Use bcache_memory_used.
7222
7223         * symfile.c: Include "bcache.h".
7224         (reread_symbols): Use bcache_xfree.
7225         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7226         (add_psymbol_to_list): Pass psymbol_cache by value.
7227         (add_psymbol_with_dem_name_to_list): Ditto.
7228
7229         * objfiles.h: Update copyright.
7230         (struct bcache): Declare opaque.  Do not include "bcache.h".
7231         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7232         bcache'' pointers.
7233         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7234
7235         * objfiles.c: Include "bcache.h".  Update copyright.
7236         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7237         macro_cache.
7238         (free_objfile): Use bcache_xfree.
7239
7240 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7241
7242         * monitor.c (monitor_fetch_register): Make name a constant.
7243         (monitor_store_register): Same.
7244
7245 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7246
7247         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7248         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7249         (finish_block) For non-function blocks, hash the symbol table.  For
7250         function blocks, mark the symbol table as unhashed.
7251         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7252         (msymbol_hash_iw): Likewise.
7253         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7254         value.
7255         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7256         (lookup_minimal_symbol): Likewise for both.
7257         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7258         hashtable.
7259         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7260         (ALL_BLOCK_SYMBOLS): Update.
7261         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7262         (struct symbol): Add `hash_next' pointer.
7263         * symtab.c (lookup_block_symbol): Search using the hash table when
7264         possible.
7265         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7266         (search_symbols, find_addr_symbol): Likewise.
7267
7268         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7269         (read_dst_symtab): Likewise.
7270         * jv-lang.c (get_java_class_symtab): Likewise.
7271         * mdebugread.c: Include "gdb_assert.h".
7272         (shrink_block): Assert that the block being modified is not hashed.
7273         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7274         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7275         symbols.
7276         (dump_symtab): Recognize hashed blocks.
7277         * printcmd.c (print_frame_args):  Assert that function blocks do not
7278         have hashed symbol tables.
7279         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7280         (fill_in_ada_prototype, debug_print_block): Likewise.
7281         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7282
7283 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7284
7285         * stack.c (print_frame): Use result of frame_address_in_block()
7286         instead of fi->pc when evaluating symbols.
7287         (backtrace_command_1): Ditto.
7288
7289 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7290
7291         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7292         Make static.
7293
7294         * arm-tdep.c (arm_register_name): Make return type constant.
7295
7296 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7297
7298         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7299         prototype.
7300         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7301         * s390-tdep.c (s390_fp_regnum): Ditto.
7302         (s390_read_fp): Ditto.
7303         (s390_pop_frame): Ditto.
7304         (_initialize_s390_tdep): Ditto.
7305         * remote.c (get_remote_state): Ditto.
7306         * procfs.c (mappingflags): Ditto.
7307         * memattr.c (_initialize_mem): Ditto.
7308         * mcore-tdep.c (mcore_pop_frame): Ditto.
7309         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7310         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7311         * language.c (set_case_str): Ditto.
7312         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7313         * frv-tdep.c (new_variant): Ditto.
7314         (frv_stopped_data_address): Ditto.
7315         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7316         (context_alloc): Ditto.
7317         (frame_state_alloc): Ditto.
7318         (unwind_tmp_obstack_init): Ditto.
7319         (unwind_tmp_obstack_free): Ditto.
7320         (cfi_read_fp): Ditto.
7321         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7322         (cris_pop_frame): Ditto.
7323         * c-lang.c (scanning_macro_expansion): Ditto.
7324         (finished_macro_expansion): Ditto.
7325         (c_preprocess_and_parse): Ditto.
7326         * gdbarch.sh: Ditto.
7327         * gdbarch.h, gdbarch.c: Regenerate.
7328         * config/mn10200/tm-mn10200.h: Adjust indentation.
7329         * target.c: Adjust indentation.
7330         * symtab.h: Adjust indentation.
7331         * stabsread.h: Adjust indentation.
7332         * remote-es.c: Adjust indentation.
7333         * os9kread.c: Adjust indentation.
7334
7335 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7336         
7337         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7338         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7339
7340 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7341         
7342         * NEWS: Mention m68k, mcore multi-arching.  
7343         * MAINTAINERS: Change status of m68k, mcore to reflect
7344         multi-arching.
7345
7346 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7347
7348         * valops.c (find_overload_match): Free oload_syms.
7349
7350 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7351
7352         Define HAVE_SYS_PROC_H if sys/proc.h exists
7353         * configure.in: Add check for sys/proc.h
7354         * config.in: Regenerate.
7355         * configure: Regenerate.
7356
7357 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7358
7359         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7360         #if !GDB_MULTI_ARCH. 
7361
7362 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7363
7364         * config.in, configure: Regenerate.
7365
7366 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7367
7368         * dwarf2cfi.c: Include "gcore.h".
7369         (execute_stack_op): Fix implementation of the
7370         DW_OP_deref and DW_OP_deref_size operators by letting do their
7371         lookup in the target.
7372
7373 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7374
7375         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7376         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7377         tdep->sc_sp_offset.
7378
7379 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7380
7381         Fix PR gdb/595, gdb/602
7382         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7383         Don't call value_cast, just read the vtable pointer; update comments
7384         to match.
7385
7386 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7387
7388         * config/mcore/tm-mcore.h: Remove file.
7389         * config/mcore/mcore.mt: Remove definition of TM_FILE
7390         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7391
7392 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7393
7394         * i386bsd-tdep.c: Include "gdb_string.h".
7395
7396 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7397
7398         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7399         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7400         mcore-tdep.
7401         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7402         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7403         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7404         (RETVAL_REGNUM): Move macros from tm-mcore.h
7405         (mcore_reg_struct_has_addr): New function.
7406         (mcore_gdbarch_init): Added initializations for the macros removed
7407         from tm-mcore.h.
7408
7409 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7410
7411         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7412         traditonal string branding within the ELF header.
7413
7414 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7415
7416         * symtab.c (remove_params): New function.
7417         (make_symbol_overload_list): Use it instead of cplus_demangle.
7418         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7419
7420 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7421
7422         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7423
7424         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7425         New variables.
7426         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7427         and tdep->sigtramp_end.
7428         * i386obsd-nat.c: New file.
7429         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7430
7431         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7432         Don't call get_current_frame().
7433
7434 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7435
7436         * i386-nat.c (child_post_startup_inferior): New function
7437         calling i386_cleanup_dregs if
7438         I386_USE_GENERIC_WATCHPOINTS is defined.
7439         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7440         conditional to acknowledge that i386-nat.c has its
7441         own child_post_startup_inferior function.
7442
7443 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7444
7445         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7446         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7447         instead of MAX_REGISTER_RAW_SIZE.
7448         (i386_extract_return_value, i386_extract_struct_value_address):
7449         Convert to use regcache.
7450         (i386_gdbarch_init): Set max_register_raw_size and
7451         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7452         Set extract_return_value and extract_struct_value_address instead
7453         of their deprecated variants.
7454
7455         Convert i386 target to generic dummy frames.
7456         * i386-tdep.c: Include "symfile.h".
7457         (i386_frameless_signal_p): Consider a function to be frameless if
7458         the pc points at the first instruction of the function.
7459         (i386_frame_chain): Handle (generic) call dummies.
7460         (i386_frame_saved_pc): Likewise.
7461         (i386_frame_init_saved_regs): Remove code dealing with call
7462         dummies on the stack.
7463         (i386_push_dummy_frame): Removed.
7464         (i386_call_dummy_words): Removed.
7465         (i386_fix_call_dummy): Removed.
7466         (i386_push_return_address): New function.
7467         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7468         parameter, and don't call get_current_frame.
7469         (i386_pop_frame): New function.
7470         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7471         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7472         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7473         call_dummy_length to 0, set call_dummy_words to NULL, set
7474         sizeof_call_dummy_words to 0, set fix_call_dummy to
7475         generic_fix_call_dummy, set pc_in_call_dummy to
7476         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7477         generic_push_dummy_frame, set push_return_address to
7478         i386_push_return_address and set frame_chain_valid to
7479         generic_file_frame_chain_valid.
7480
7481 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7482
7483         * gdbarch.sh (struct regcache): Add opaque declaration.
7484         (EXTRACT_RETURN_VALUE): New architecture method.
7485         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7486         * gdbarch.h, gdbarch.c: Regenerate.
7487         * arch-utils.c (legacy_extract_return_value): New function.
7488         * arch-utils.h (legacy_extract_return_value): Declare.
7489         * values.c (value_being_returned): Re-enable code handling
7490         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7491         deprecated_grub_regcache_for_registers call to block handling
7492         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7493         (EXTRACT_RETURN_VALUE): Do not define.
7494
7495 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7496
7497         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7498         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7499         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7500         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7501         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7502         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7503         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7504         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7505         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7506         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7507         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7508         argument so the function fits the prototype in the architecture
7509         vector.
7510         (mcore_pop_frame): Remove argument so the function fits the
7511         prototype. Use get_current_frame instead of the argument.
7512         (mcore_push_arguments): Change type of struct_return so the
7513         function can be used in the architecture vector.
7514         (mcore_store_struct_return): Add.
7515         (mcore_frame_init_saved_regs): Add.
7516         (mcore_gdbarch_init): Add function calls to replace the macros
7517         removed from tm-mcore.h
7518
7519 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7520
7521         * infcmd.c (print_return_value): Remove compatibility code calling
7522         deprecated_grub_regcache_for_registers.
7523         
7524         * values.c: Include "regcache.h".
7525         (value_being_returned): Update.  Use
7526         deprecated_grub_regcache_for_registers to extract the register
7527         buffer address.  
7528         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7529         ``struct regcache''.
7530         * Makefile.in (values.o): Add dependency on $(regcache_h).
7531
7532         * inferior.h (run_stack_dummy): Change type of second parameter to
7533         a ``struct regcache''.
7534         * valops.c (hand_function_call): Change type of retbuf to ``struct
7535         regcache''.  Allocate using regcache_xmalloc, clean using
7536         make_cleanup_regcache_xfree.
7537         * infcmd.c (run_stack_dummy): Update.  Use
7538         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7539
7540         * regcache.c (do_regcache_xfree): New function.
7541         (make_cleanup_regcache_xfree): New function.
7542         * regcache.h (make_cleanup_regcache_xfree): Declare.
7543
7544 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7545
7546         * event-top.c (command_line_handler): Don't read past
7547         beginning of buffer.
7548
7549 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7550         
7551         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7552         struct frame_id. 
7553         (varobj_create): Store frame_id for root.
7554         (varobj_gen_name): Use xasprintf.
7555         (varobj_update): Save and restore frame using get_frame_id() and
7556         frame_find_by_id().
7557         (create_child): Use xasprintf.
7558         (new_root_variable): Initialize frame_id.
7559         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7560         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7561         to prevent memory leak.
7562
7563 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7564
7565         * valops.c (hand_function_call): Move declaration of retbuf to
7566         start of function, allocate using malloc, add a cleanup but before
7567         the inf_status cleanup, cleanup the buffer.  Rename local variable
7568         old_chain to inf_status_cleanup.
7569
7570 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7571
7572         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7573
7574         * cli/cli-decode.c (cmd_func_p): New function.
7575         (cmd_func): New function.
7576
7577         * command.h: Add cmd_func() and cmd_func_p().   
7578         
7579 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7580
7581         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7582         (REGISTER_SIZE): Remove.
7583         (MAX_REGISTER_RAW_SIZE): Remove.
7584         (REGISTER_VIRTUAL_TYPE): Remove.
7585         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7586         (REGISTER_NAME): Remove.
7587         (USE_GENERIC_DUMMY_FRAMES): Remove.
7588         (CALL_DUMMY): Remove.
7589         (CALL_DUMMY_START_OFFSET): Remove.
7590         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7591         (CALL_DUMMY_LOCATION): Remove.
7592         (FIX_CALL_DUMMY): Remove.
7593         (CALL_DUMMY_ADDRESS): Remove.
7594         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7595         (SAVE_DUMMY_FRAME_TOS): Remove.
7596         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7597         (mcore_register_virtual_type): New function.
7598         (mcore_register_byte): New function.
7599         (mcore_register_size): New function.
7600         (mcore_register_name): New function.
7601         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7602         macros removed from tm-mcore.h.
7603         (mcore_dump_tdep): Add.
7604         (_initialize_mcore_tdep): Add gdbarch_register call.
7605
7606 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7607
7608         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7609         frameless_look_for_prologue, such that we actually call this
7610         function.
7611
7612 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7613
7614         * frame.h (frame_address_in_block): New function.
7615
7616         * blockframe.c (frame_address_in_block): New function extracted
7617         from get_frame_block().
7618         (get_frame_block): Use frame_address_in_block().
7619         (block_innermost_frame): Use frame_address_in_block() to match
7620         the frame pc address against the block boundaries rather than
7621         the frame pc directly. This prevents a failure when a frame pc
7622         is actually a return-address pointing immediately after the end
7623         of the given block. 
7624
7625 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7626
7627         * MAINTAINERS: Add self under write after approval. 
7628
7629 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7630
7631         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7632         used in architecture vector. The default is
7633         m68k_local_breakpoint_from_pc.
7634         (m68k_local_breakpoint_from_pc): Add.
7635         (enum): Add register numbers from tm-m68k.h.
7636         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7637         vector.  
7638         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7639         GDB_MULTI_ARCH_PARTIAL.
7640         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7641         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7642         m68k-tdep.c.
7643         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7644         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7645         to enum in m68k-tdep.c
7646
7647 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7648
7649         * solib-osf.c (open_map): Compute the list of shared libraries
7650         loaded by the inferior, rather than the list of libraries loaded
7651         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7652         the wrong shared libraries...
7653
7654 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7655
7656         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7657         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7658         macros.
7659         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7660         Remove functions.
7661         (FRAMELESS_SIGNAL): Remove function.
7662         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7663         i386_linux_saved_pc_after_call): Removed.
7664         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7665         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7666         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7667
7668         * i386-tdep.c (i386_frameless_signal_p): New function.
7669         (i386_frame_chain): Deal with frameless signals.
7670         (i386_sigtramp_saved_sp): New function.
7671         (i386_frame_saved_pc): Deal with frameless signals.
7672         (i386_saved_pc_after_call): Make sure the correct value is
7673         returned just after entry into a sigtramp.
7674         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7675         i386fbsd4_sc_sp_offset): New variables.
7676         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7677         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7678         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7679         similiar to what we already did for sc_pc_offset.
7680         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7681         tdep->sc_sp_offset.
7682
7683         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7684
7685 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7686
7687         * config/i386/tm-x86-64linux.h: New.
7688         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7689         definitions.
7690         * config/i386/nm-x86-64.h: Rename to ...
7691         * config/i386/nm-x86-64linux.h: ... this one.
7692         * config/i386/x86-64linux.mh: Reflect the above change.
7693         
7694 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7695
7696         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7697         with sigcontext_addr.  Add sc_sp_offset.
7698         (i386bsd_sigtramp_saved_pc): Remove prototype.
7699         (i386bsd_sicontext_addr): Add prototype.
7700         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7701         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7702         (i386_svr4_sigtramp_saved_pc): Removed.
7703         (i386_svr4_sigcontext_addr): New function.
7704         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7705         Initialize tdep->sigcontext_addr instead.  Initialize
7706         tdep->sc_pc_offset and tdep->sc_sp_offset.
7707         (i386_gdbarch_init): Likewise.
7708         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7709         any more.
7710         (i386bsd_sigtramp_saved_pc): Remove function.
7711         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7712         Initialize tdep->sigcontext_addr instead.  Initialize
7713         tdep->sc_pc_offset.
7714         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7715         of tdep->sigtramp_saved_pc.
7716         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7717         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7718         instead.
7719
7720         * i386-tdep.c (i386_frameless_function_invocation,
7721         i386_frame_num_args, i386_frame_init_saved_regs,
7722         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7723         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7724         i386_extract_return_value, i386_store_return_value,
7725         i386_extract_struct_value_address, i386_register_virtual_type,
7726         i386_register_convertible, i386_register_convert_to_virtual,
7727         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7728         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7729         static.
7730
7731 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7732
7733         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7734
7735         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7736         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7737         this macro.  Include "value.h".
7738
7739 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7740
7741         * ada-exp.tab.c: remove as it's a generated file
7742         * ada-lex.c: remove as it's a generated file
7743                 
7744 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7745
7746         * config/i386/tm-i386.h (struct frame_info, struct
7747         frame_saved_regs, struct value, struct type): Remove forward
7748         declarations.
7749
7750         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7751         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7752         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7753         (FILL_FPXREGSET): Define.
7754
7755         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7756
7757         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7758         i[3456]86-*-netbsd* case.
7759         * config/i386/tm-obsd.h: Removed.
7760         * config/i386/obsd.mt: Removed.
7761         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7762         core-aout.o.
7763         (MH_CFLAGS): Add -DYYDEBUG=0.
7764
7765         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7766         i386nbsd_sc_pc_offset on OpenBSD too.
7767
7768         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7769         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7770         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7771         define.
7772         * i386bsd-tdep.c: Include "arch-utils.h".
7773         (i386bsd_aout_in_solib_call_trampoline): New function.
7774         (i386bsd_init_abi): Set in_solib_call_trampoline to
7775         i386bsd_aout_in_solib_call_trampoline.
7776         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7777         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7778
7779 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7780
7781         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7782         (struct obstack, struct bcache): Add opaque declarations.
7783         * Makefile.in (macrotab_h): Update
7784
7785 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7786
7787         * blockframe.c (generic_find_dummy_frame): Change return type to
7788         ``struct regcache''.
7789         (struct dummy_frame): Replace field ``registers'' with regcache, a
7790         struct regcache object.
7791         (generic_find_dummy_frame): Update.
7792         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7793         regcache_xmalloc and regcache_cpy.
7794         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7795         regcache_xfree.
7796         (deprecated_generic_find_dummy_frame): Update.
7797         (generic_read_register_dummy): Update.  Use
7798         regcache_read_as_address.
7799         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7800         (generic_get_saved_register): Update.  Use regcache_read.
7801
7802 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7803
7804         * Makefile.in (objfiles_h): Add $(bcache_h).
7805         * objfiles.h: Include "bcache.h".
7806
7807         * Makefile.in (symtab_h): Remove $(bcache_h).
7808         * symtab.h: Do not include "bcache.h".
7809
7810 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7811
7812         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7813         generic_func_frame_chain_valid.
7814
7815 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7816
7817         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7818         * config/i386/tm-fbsd.h: Likewise.
7819
7820 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7821
7822         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7823         generic_unwind_get_saved_register.
7824
7825 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7826
7827         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7828         * regcache.c (supply_register): Add missing argument to
7829         register_buffer call.
7830
7831 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7832
7833         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7834         Solaris /bin/grep does not not like it.  From Peter Schauer.
7835
7836 2002-06-26  Tom Tromey  <tromey@redhat.com>
7837
7838         * command.h (add_setshow_cmd): Declare.
7839         (add_setshow_cmd_full): Declare.
7840         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7841         returns void.  Use add_setshow_cmd_full.
7842         (add_setshow_cmd_full): New function.
7843         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7844         (add_setshow_boolean_cmd): Likewise.
7845
7846 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7847
7848         * config/vax/tm-vax.h: Protect from multiple inclusion.
7849         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7850         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7851         * config/vax/tm-vaxbsd.h: ...here.  New file.
7852         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7853
7854 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7855
7856         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7857         (BELIEVE_PCC_PROMOTION): Remove.
7858         (AP_REGNUM): Move to...
7859         * config/vax/nm-vax.h: ...here.
7860         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7861         (vax_breakpoint_from_pc): New function.
7862         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7863         and gdbarch_believe_pcc_promotion.
7864
7865 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7866
7867         * Makefile.in (vax_tdep_h): Define.  
7868         (vax-tdep.o): Use $(vax_tdep_h).
7869         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7870         (vax_dump_tdep): New function. 
7871         (_initialize_vax_tdep): Register vax_dump_tdep.
7872         * vax-tdep.h: Include osabi.h.     
7873         (struct gdbarch_tdep): New. 
7874
7875 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7876
7877         * frame.h (deprecated_generic_find_dummy_frame): Rename
7878         generic_find_dummy_frame.
7879         * blockframe.c (generic_find_dummy_frame): Make static.
7880         (deprecated_generic_find_dummy_frame): New function.
7881         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7882         generic_find_dummy_frame with deprecated_find_dummy_frame.
7883         (sh64_nofp_frame_init_saved_regs): Ditto.
7884         (sh_fp_frame_init_saved_regs): Ditto.
7885         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7886         (s390_frame_chain): Ditto.
7887         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7888
7889 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7890
7891         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7892         gdbarch vector are at the top.
7893         (NUM_REGS): Remove.
7894         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7895         (FRAME_ARGS_ADDRESS): Remove.
7896         (FRAME_LOCALS_ADDRESS): Remove.
7897         (FRAME_NUM_ARGS): Remove.
7898         (FRAME_ARGS_SKIP): Remove.  
7899         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7900         (m68k_gdbarch_init): Add gdbarch initializations for macros
7901         undefined in tm-m68k.h
7902
7903 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7904
7905         * monitor.h: Add the function regname to monitor_ops
7906         structure. This way NUM_REGS does not have to be a constant.
7907         * monitor.c (monitor_fetch_register): Added support for regname
7908         function. The function is called if the array regnames is NULL.
7909         (monitor_store_register): Same.
7910         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7911         regnames array.
7912         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7913         cpu32bug_cmds.regname to point to new function.
7914         * abug-rom.c (abug_regname): Same as above.
7915         (init_abug_cmds): Same.
7916         * dbug-rom.c (dbug_regname): Same as above.
7917         (init_dbug_cmds): Same.
7918         * remote-est.c (est_regname): Same. 
7919         (init_est_cmds): Same.
7920         * rom68k-rom.c (rom68k_regname): Same. 
7921         (init_rom68k_cmds): Same.
7922
7923 2002-06-25  Tom Tromey  <tromey@redhat.com>
7924
7925         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7926
7927 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7928
7929         * infrun.c (stop_registers): Change variable's type to ``struct
7930         regcache'''.
7931         (xmalloc_inferior_status): Delete function.
7932         (free_inferior_status): Delete function.
7933         (normal_stop): Use regcache_cpy.
7934         (struct inferior_status): Change type of fields ``stop_registers''
7935         and ``registers'' to ``struct regcache''.
7936         (write_inferior_status_register): Use regcache_write.
7937         (save_inferior_status): Instead of calling
7938         xmalloc_inferior_status, allocate the inf_status buffer directly.
7939         Use regcache_dup_no_passthrough and regcache_dup to save the
7940         buffers.
7941         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7942         Replace the stop_registers regcache instead of overriding it.  Use
7943         regcache_xfree.  Instead of calling free_inferior_status, xfree
7944         the buffer directly.
7945         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7946         free_inferior_status, xfree the buffer directly.
7947         (build_infrun): Use regcache_xmalloc.
7948         (_initialize_infrun): Delete redundant call to build_infrun.
7949
7950         * Makefile.in (infcmd.o): Add $(regcache_h).
7951
7952         * infcmd.c: Include "regcache.h".
7953         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7954         obtain the address of `stop_registers' register buffer.
7955         (print_return_value): Ditto.
7956
7957         * inferior.h (struct regcache): Add opaque declaration.
7958         (stop_registers): Change variable's declared type to ``struct
7959         regcache''.
7960
7961 2002-06-24  Tom Tromey  <tromey@redhat.com>
7962
7963         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7964         * target.c (initialize_targets): Fixed typo in
7965         trust-readonly-sections `show' documentation.
7966
7967         * main.c: Marked all strings with _().
7968
7969 2002-06-24  Don Howard  <dhoward@redhat.com>
7970
7971         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7972         that means max CORE_ADDR+1.
7973         (lookup_mem_region): Ditto.
7974         (mem_info_command): Ditto.
7975
7976 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7977
7978         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7979         (REGISTER_BYTES_OK): Remove.
7980         (REGISTER_BYTES): Remove.
7981         (STORE_STRUCT_RETURN): Remove.
7982         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7983         (STORE_RETURN_VALUE): Remove.
7984         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7985         (FRAME_CHAIN): Remove.
7986         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7987         (FRAME_SAVED_PC): Remove.  
7988         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7989         (m68k_store_struct_return): Add.
7990         (m68k_deprecated_extract_return_value): Add.
7991         (m68k_deprecated_extract_struct_value_address): Add.
7992         (m68k_store_return_value): Add.
7993         (m68k_frame_chain): Add.
7994         (m68k_frameless_function_invocation): Add.
7995         (m68k_frame_saved_pc): Add.
7996         (m68k_gdbarch_init): added set_gdbarch calls for new 
7997         functions and deleted macros.
7998
7999 2002-06-23  Tom Tromey  <tromey@redhat.com>
8000
8001         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8002         (ALLDEPFILES): Likewise.
8003         (udiheaders): Removed.
8004         (udip2soc.o): Likewise.
8005         (udi2go32.o): Likewise.
8006         (udr.o): Likewise.
8007         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8008
8009 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8010
8011         * infrun.c (_initialize_infrun): Delete unnecessary call to
8012         build_infrun.
8013
8014         * regcache.h: Update comments describing the regcache_cpy family
8015         of functions.
8016         (regcache_save, regcache_restore): Delete declaration.
8017         (regcache_save_no_passthrough): Delete declaration.
8018         (regcache_restore_no_passthrough): Delete declaration.
8019         * regcache.c (regcache_save): Delete function.
8020         (regcache_save_no_passthrough): Delete function.
8021         (regcache_restore): Delete function.
8022         (regcache_restore_no_passthrough): Delete function.
8023
8024 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8025
8026         * config/m68k/tm-m68k.h: Fix typo.
8027         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8028         (m68k_frame_init_saved_regs): Declare.
8029
8030 2002-06-21  Jim Blandy  <jimb@redhat.com>
8031
8032         Remove some vestiges of Harris 88k support.
8033         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8034         register numbering quirk.
8035         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8036         odd symbols occurring in Harris 88k ELF targets.
8037
8038 2002-06-21  Tom Tromey  <tromey@redhat.com>
8039
8040         * gdb_locale.h: New file.
8041         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8042         (defs_h): Added gdb_locale.h.
8043         * configure, config.in: Rebuilt.
8044         * configure.in (PACKAGE): Define.
8045         * defs.h: Include gdb_locale.h.
8046         * main.c (captured_main): Call setlocale, bindtextdomain,
8047         textdomain.
8048
8049 2002-06-21  Dave Brolley  <brolley@redhat.com>
8050
8051         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8052         * config/frv/frv.mt: New file.
8053         * config/frv/tm-frv.h: New file.
8054         * configure.tgt: Support frv-*-*.
8055         * Makefile.in (frv-tdep.o): New target.
8056         * frv-tdep.c: New file.
8057         * NEWS: Mention frv.
8058
8059 2002-06-21  Dave Brolley  <brolley@redhat.com>
8060
8061         * MAINTAINERS: Add self to "Write After Approval" list.
8062
8063 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8064
8065         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8066         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8067         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8068         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8069         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8070
8071         * m68k-tdep.c: Include arch-utils.h
8072         (m68k_register_raw_size): Add.
8073         (m68k_register_virtual_size): Add.
8074         (m68k_register_virtual_type): Add.
8075         (m68k_register_name): Add.
8076         (m68k_stack_align): Add.
8077         (m68k_register_byte): Add.
8078         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8079         tm-m68k.h.
8080
8081 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8082
8083         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8084         m68k_find_saved_regs.
8085         (m68k_pop_frame): Removed saved_regs structure, and replaced
8086         references to it with frame->saved_regs.
8087         (m68k_gdbarch_init): Added function calls to initialize the
8088         gdbarch structure.
8089         (m68k_fix_call_dummy): Add. 
8090         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8091         (CALL_DUMMY): Remove.
8092         (CALL_DUMMY_LENGTH): Remove.
8093         (CALL_DUMMY_START_OFFSET): Remove.
8094         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8095         (FIX_CALL_DUMMY): Remove.
8096         (PUSH_DUMMY_FRAME): Remove.
8097         (POP_FRAME): Remove.
8098
8099 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8100
8101         * parse.c (parse_fprintf): New function used to avoid calls to
8102         fprintf in bison parser generated debug code.
8103         * parser-defs.h: Declaration of new parse_fprintf function.
8104         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8105         Set YYDEBUG to 1 by default.
8106         Set YYFPRINTF as parse_fprintf.
8107
8108 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8109
8110         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8111         encoding anymore.
8112         (pointer_encoding, enum ptr_encoding): New.
8113         (execute_cfa_program): Take care about pointer encoding.        
8114         (dwarf2_build_frame_info): Only call parse_frame_info for 
8115         .debug_frame and .eh_frame.
8116         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8117         fixed augmentation handling, added relative addressing, 
8118         ignore duplicate FDEs. Added comments.
8119         * dwarf2cfi.c: Reindented.
8120         
8121 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8122
8123         * event-top.c (command_handler): Don't use space_at_cmd_start
8124         unless there is sbrk() on the host. Assign time and space data
8125         to union fields of the appropriate length.
8126
8127 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8128
8129         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8130         x86_64_register_name. Return type changed to 'const char *'.
8131         (x86_64_register_name2nr): Rename to x86_64_register_number.
8132         (x86_64_gdbarch_init): Update to reflect the change.
8133         * x86-64-tdep.h: Ditto.
8134         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8135         (supply_fpregset): Ditto.
8136
8137 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8138
8139         * regcache.h: Update copyright.
8140         (struct regcache, struct gdbarch): Add opaque declarations.
8141         (current_regcache): Declare global variable.
8142         (regcache_read, regcache_write): Add gdbarch parameter.
8143         (regcache_save, regcache_save_no_passthrough)
8144         (regcache_restore, regcache_restore_no_passthrough)
8145         (regcache_dup, regcache_dup_no_passthrough)
8146         (regcache_cpy, regcache_cpy_no_passthrough)
8147         (deprecated_grub_regcache_for_registers)
8148         (deprecated_grub_regcache_for_register_valid)
8149         (regcache_valid_p): Add function declarations.
8150         
8151         * regcache.c: Update copyright.
8152         (regcache_descr_handle): New global variable.
8153         (struct regcache_descr): Define.
8154         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8155         (regcache_descr, xfree_regcache_descr): New functions.
8156         (struct regcache): Define.
8157         (regcache_xmalloc, regcache_xfree): New functions.
8158         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8159         (regcache_dup, regcache_dup_no_passthrough): New functions.
8160         (regcache_valid_p, regcache_read_as_address): New functions.
8161         (deprecated_grub_regcache_for_registers): New function.
8162         (deprecated_grub_regcache_for_register_valid): New function.
8163         (current_regcache): New global variable.
8164         (register_buffer): Add regcache parameter.  Update calls.
8165         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8166         (read_register_gen, write_register_gen): Update register_buffer
8167         call.  Test for legacy_p instead of gdbarch_register_read_p or
8168         gdbarch_register_write_p.
8169         (regcache_collect): Update register_buffer call.
8170         (build_regcache): Rewrite.  Use deprecated grub functions.
8171         (regcache_save, regcache_save_no_passthrough): New functions.
8172         (regcache_restore, regcache_restore_no_passthrough): New
8173         functions.
8174         (_initialize_regcache): Create the regcache_data_handle. Swap
8175         current_regcache global variable.
8176         
8177         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8178         parameter to regcache_read and regcache_write calls.
8179         (sh4_register_read): Ditto.
8180         (sh64_pseudo_register_read): Ditto.
8181         (sh64_register_read): Ditto.
8182         (sh_pseudo_register_write): Ditto.
8183         (sh4_register_write): Ditto.
8184         (sh64_pseudo_register_write): Ditto.
8185         (sh64_register_write): Ditto.
8186
8187         * defs.h (XCALLOC): Define.
8188
8189 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8190
8191         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8192         * m68k-tdep.c (m68k_gdbarch_init): Added.
8193         (m68k_dump_tdep): Added.
8194
8195 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8196
8197         * ada-lang.c (fill_in_ada_prototype): Update comment.
8198
8199 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8200
8201         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8202         MIPS_ABI_LAST.
8203         (mips_abi_string, mips_abi_strings): New.
8204         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8205         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8206         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8207         O32 if no ABI is found.
8208         (mips_dump_tdep): Use mips_abi_strings.
8209         (mips_abi_update): New function.
8210         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8211         ``set mips abi'' and ``show mips abi''.  Check the size of
8212         mips_abi_strings.
8213
8214 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8215
8216         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8217         constant.
8218
8219 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8220
8221         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8222         current frame using only the first stack size adjustment. All
8223         subsequent size adjustments are not considered to be part of
8224         the "static" part of the current frame.
8225         Compute the address of the saved registers relative to the
8226         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8227         in use in this frame.
8228
8229 2002-06-18  Don Howard  <dhoward@redhat.com>
8230  
8231         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8232         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8233         suggesting this solution.
8234
8235 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8236
8237         * config/romp/xm-rtbsd.h: Delete file.
8238         * config/romp/rtbsd.mh: Delete file.
8239
8240 2002-06-18  Keith Seitz  <keiths@redhat.com>
8241
8242         * breakpoint.c (condition_command): Post breakpoint_modify
8243         when a condition is added to an existing breakpoint.
8244         (commands_command): Likewise for commands.
8245         (set_ignore_count): Likewise for ignore counts.
8246         If no tty, do not simply return, still need to send event
8247         notification.
8248         (ignore_command): Only print a newline if the command came
8249         from a tty.
8250         Don't call breakpoints_changed, since this is now properly
8251         handled by set_ignore_count.
8252
8253 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8254
8255         * MAINTAINERS: Note that cris-elf target can be compiled with
8256         -Werror.
8257         * cris-tdep.c (cris_register_name): Make return type constant.
8258         (cris_breakpoint_from_pc): Ditto.
8259
8260 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8261
8262         * frame.h (struct frame_info): Change type of context to 
8263         'struct context'.
8264
8265 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8266
8267         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8268         pointer.
8269         * gdbarch.h, gdbarch.c: Regenerate.
8270         * config/mips/tm-mips.h (mips_register_name): Update.
8271         * i386-tdep.h (i386_register_name): Update.
8272         * mips-tdep.c (mips_register_name): Update
8273         * alpha-tdep.c (alpha_register_name): Update.
8274         * arch-utils.c (legacy_register_name): Update.
8275         * arch-utils.h (legacy_register_name): Update.
8276         * avr-tdep.c (avr_register_name): Update.
8277         * ia64-tdep.c (ia64_register_name): Update.
8278         * i386-tdep.c (i386_register_name): Update.
8279         * sparc-tdep.c (sparc32_register_name): Update.
8280         (sparc64_register_name): Update.
8281         (sparclite_register_name): Update.
8282         (sparclet_register_name): Update.
8283         * sh-tdep.c (sh_generic_register_name): Update.
8284         (sh_sh_register_name): Update.
8285         (sh_sh3_register_name): Update.
8286         (sh_sh3e_register_name): Update.
8287         (sh_sh_dsp_register_name): Update.
8288         (sh_sh3_dsp_register_name): Update.
8289         (sh_sh4_register_name): Update.
8290         (sh_sh64_register_name): Update.
8291         * s390-tdep.c (s390_register_name): Update.
8292         * rs6000-tdep.c (rs6000_register_name): Update.
8293         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8294         (ns32k_register_name_32382): Update.
8295         * d10v-tdep.c (d10v_ts2_register_name): Update.
8296         (d10v_ts3_register_name): Update.
8297         * xstormy16-tdep.c (xstormy16_register_name): Update.
8298         * vax-tdep.c (vax_register_name): Update.
8299         * v850-tdep.c (v850_register_name): Update.
8300         * m68hc11-tdep.c (m68hc11_register_name): Update.
8301         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8302         (am33_register_name): Update.
8303
8304 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8305
8306         * m68k-tdep.c: Reindented.
8307
8308 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8309
8310         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8311         list of predefined types.
8312
8313 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8314
8315         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8316         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8317         REGISTER_CONVERT_TO_RAW): Remove defines.
8318         (i386_register_virtual_type, i386_register_convertible,
8319         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8320         Remove prototypes.
8321         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8322         macros mentioned above.
8323
8324         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8325         (i386lynx_saved_pc_after_call): Remove prototype.
8326         * i386ly-tdep.c: Include "i386-tdep.h".
8327         (i386lynx_saved_pc_after_call): Make static.  Use
8328         read_memory_nobpt instead of read_memory.  Use
8329         read_memory_unsigned_integer instead of read_memory_integer.
8330         (i386lynx_init_abi): New function.
8331         (i386lynx_coff_osabi_sniffer): New function.
8332         (_initialize_i386bsd_tdep): New function.
8333
8334         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8335         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8336         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8337         (i386_fix_call_dummy): Remove prototype.
8338         * i386-tdep.c (i386_call_dummy_words): New variable.
8339         (i386_gdbarch_init): Adjust for removal of the
8340         macros mentioned above.
8341
8342 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8343
8344         * command.h (add_setshow_auto_boolean_cmd): Replace
8345         add_set_auto_boolean_cmd.
8346         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8347         add_set_auto_boolean_cmd.
8348         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8349         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8350         mask-address'' command.
8351         (show_mask_address): Add cmd parameter.
8352         * remote.c (add_packet_config_cmd): Update.  Change type of
8353         set_func and show_func to cmd_sfunc_ftype.
8354         (_initialize_remote): Update `set remote Z-packet'
8355         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8356         (show_remote_protocol_e_packet_cmd): Ditto.
8357         (show_remote_protocol_E_packet_cmd): Ditto.
8358         (show_remote_protocol_P_packet_cmd): Ditto.
8359         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8360         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8361         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8362         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8363         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8364         (show_remote_protocol_Z_packet_cmd): Ditto.
8365         (show_remote_protocol_binary_download_cmd): Ditto.
8366         (show_remote_cmd): Pass NULL to all of above.
8367
8368 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8369
8370         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8371         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8372         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8373         POP_FRAME): Remove defines.
8374         (i386_push_arguments, i386_store_struct_return,
8375         i386_extract_return_value, i386_store_return_value,
8376         i386_extract_struct_value_address, i386_push_dummy_frame,
8377         i386_pop_frame): Renove prototypes.
8378         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8379         macros mentioned above.
8380
8381 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8382
8383         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8384         add_set_boolean_cmd.
8385         (add_setshow_cmd): New function.
8386         * command.h (add_setshow_boolean_cmd): Replace
8387         add_set_boolean_cmd.
8388         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8389         and ``set rdiromatzero''.
8390         * maint.c (_initialize_maint_cmds): Update commented out code.
8391         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8392         * target.c (initialize_targets): Update `set
8393         trust-readonly-sections'.
8394         * remote.c (_initialize_remote): Update `set remotebreak'.
8395
8396 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8397
8398         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8399         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8400         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8401         fit into multi-arch framework.
8402         (i386_breakpoint_from_pc): New function.
8403         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8404         above.
8405
8406         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8407         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8408         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8409         (i386_frameless_function_invocation, i386_frame_num_args,
8410         i386_frame_init_saved_regs): Remove prototypes.
8411         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8412         macros mentioned above.
8413
8414 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8415
8416         * cli/cli-decode.c (set_cmd_cfunc): Update.
8417         (set_cmd_sfunc): Update.
8418         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8419         (set_cmd_sfunc, set_cmd_cfunc): Update.
8420         * cli/cli-decode.h: Update.
8421
8422 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8423
8424         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8425         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8426
8427 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8428
8429         * defs.h (auto_boolean): Declare enum.
8430         * command.h (cmd_auto_boolean): Delete enum.
8431         * mips-tdep.c (mask_address_var): Update.
8432         (mips_mask_address_p): Update.
8433         (show_mask_address): Update.
8434         * remote.c (struct packet_config): Update.
8435         (update_packet_config): Update.
8436         (show_packet_config_cmd): Update.
8437         (packet_ok): Update.
8438         (add_packet_config_cmd): Update.
8439         (_initialize_remote): 
8440         * command.h: Update.
8441         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8442         (do_setshow_command): Update.
8443         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8444         * cli/cli-decode.h: Update.
8445
8446 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8447
8448         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8449         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8450         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8451         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8452         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8453         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8454
8455         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8456         list of DJGPP COFF targets.
8457
8458         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8459         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8460         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8461         (FP0_REGNUM): Remove define.
8462         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8463         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8464         (i386_register_virtual_size): Remove protoype.
8465         * i386-tdep.c (i386_register_virtual_size): Removed.
8466         (i386_extract_return_value, i386_store_return_value): Use
8467         FP0_REGNUM instead of NUM_FREGS to determine whether the
8468         floating-point registers are available.
8469         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8470         Adjust for removal of macros mentioned above.
8471
8472 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8473
8474         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8475         comments.
8476         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8477         Remove prototypes.
8478         (supply_gregset, fill_gregset): Remove use of register keyword and
8479         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8480         NUM_REGS and NUM_FREGS.
8481         (FPREGSET_FSAVE_OFFSET): Remove.
8482         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8483         NUM_FREGS to determine whether the floating-point registers are
8484         available.
8485
8486         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8487         gnu_store_registers): Replace usage of NUM_GREGS with
8488         I386_NUM_GREGS.
8489
8490         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8491         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8492         usage of NUM_GREGS with I386_NUM_GREGS.
8493
8494         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8495
8496         * i386bsd-nat.c: Include "i386-tdep.h".
8497         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8498         I386_NUM_GREGS.
8499
8500         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8501         and associated comment.  They no longer make any sense, since we
8502         don't use this file anymore on Linux.
8503
8504         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8505         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8506         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8507         elements in these arrays.
8508         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8509         MAX_NUM_REGS.
8510
8511 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8512
8513         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8514         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8515
8516 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8517
8518         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8519         EXTRACT_RETURN_VALUE.
8520         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8521         EXTRACT_STRUCT_VALUE_ADDRESS.
8522         * gdbarch.h, gdbarch.c: Regenerate.
8523         
8524         * values.c (value_being_returned): Handle
8525         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8526         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8527
8528         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8529         * arm-tdep.c (arm_gdbarch_init): Update.
8530         * avr-tdep.c (avr_gdbarch_init): Update.
8531         * cris-tdep.c (cris_gdbarch_init): Update.
8532         * d10v-tdep.c (d10v_gdbarch_init): Update.
8533         * ia64-tdep.c (ia64_gdbarch_init): Update.
8534         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8535         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8536         * s390-tdep.c (s390_gdbarch_init): Update.
8537         * sh-tdep.c (sh_gdbarch_init): Update.
8538         * s390-tdep.c (s390_gdbarch_init): Update.
8539         * sparc-tdep.c (sparc_gdbarch_init): Update.
8540         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8541         * v850-tdep.c (v850_gdbarch_init): Update.
8542         * vax-tdep.c (vax_gdbarch_init): Update.
8543         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8544         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8545
8546         * config/arc/tm-arc.h: Update.
8547         * config/d30v/tm-d30v.h: Update.
8548         * config/fr30/tm-fr30.h: Update.
8549         * config/h8300/tm-h8300.h: Update.
8550         * config/h8500/tm-h8500.h: Update.
8551         * config/i386/tm-i386.h: Update.
8552         * config/i386/tm-ptx.h: Update.
8553         * config/i386/tm-symmetry.h: Update.
8554         * config/i960/tm-i960.h: Update.
8555         * config/m32r/tm-m32r.h: Update.
8556         * config/m68k/tm-delta68.h: Update.
8557         * config/m68k/tm-linux.h: Update.
8558         * config/m68k/tm-m68k.h: Update.
8559         * config/m88k/tm-m88k.h: Update.
8560         * config/mcore/tm-mcore.h: Update.
8561         * config/mips/tm-mips.h: Update.
8562         * config/mn10200/tm-mn10200.h: Update.
8563         * config/pa/tm-hppa.h: Update.
8564         * config/pa/tm-hppa64.h: Update.
8565         * config/sparc/tm-sp64.h: Update.
8566         * config/sparc/tm-sparc.h: Update.
8567         * config/sparc/tm-sparclet.h: Update.
8568         * config/z8k/tm-z8k.h: Update.
8569
8570 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8571
8572         * Makefile.in (i386_linux_tdep_h): Define.
8573         (i386_tdep_h, i387_tdep_h): Define.
8574         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8575         $(i386_tdep_h) and $(i387_tdep_h).
8576         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8577
8578 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8579
8580         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8581         Already covered by the default.
8582
8583         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8584         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8585         (i386_gdbarch_init): Initialize long_double_format and long_double
8586         bit.
8587
8588         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8589         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8590         Move these to ...
8591         * config/i386/i386sol2.mh: ... here.
8592         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8593         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8594         (SIGCONTEXT_PC_OFFSET): Remove define.
8595         (IN_SIGTRAMP): Remove define.
8596         * i386-sol2-tdep.c: New file.
8597         
8598         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8599         * config/i386/tm-i386nw.h: Removed.
8600
8601         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8602         USE_STRUCT_CONVENTION): Remove defines.
8603         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8604         (get_longjmp_target): Remove prototype.
8605         (IN_SIGTRAMP): Remove define.
8606         (i386bsd_in_sigtramp): Remove prototype.
8607         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8608         function.  Update comment accordingly
8609         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8610         (FRAME_SAVED_PC): Remove define.
8611         (i386bsd_frame_saved_pc): Remove prototype.
8612         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8613         GET_LONGJMP_TARGET): Remove defines.
8614         (get_longjmp_target): Remove prototype.
8615         (IN_SIGTRAMP): Remove define.
8616         (i386bsd_in_sigtramp): Remove prototype.
8617         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8618         function.  Update comment accordingly
8619         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8620         (FRAME_SAVED_PC): Remove define.
8621         (i386bsd_frame_saved_pc): Remove prototype.
8622         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8623         Remove prototype.
8624         (USE_STRUCT_CONVENTION): Remove prototype.
8625         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8626         declaration.
8627         (_initialize_i386bsd_nat): Revise logic to determine some
8628         constants at compile time when compiling a native GDB.  Warn if
8629         things don't match up with what we expect.
8630         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8631         Remove variables.
8632         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8633         to use date stored in `struct gdbarch_tdep'.
8634         (i386bsd_sigcontext_offset): Remove varaible.
8635         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8636         stored in `struct gdbarch_tdep'.
8637         (i386bsd_frame_saved_pc): Make static.
8638         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8639         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8640         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8641         i386fbsd4_sc_pc_offset): New variables.
8642         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8643         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8644         functions.
8645         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8646         functions.
8647         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8648         Modify the value of i386fbsd_sigtramp_start and
8649         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8650         i386fbsd_sigtramp_end.
8651         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8652         function.
8653
8654         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8655         define to i386-linux-tdep.h.
8656         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8657         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8658         defines.
8659         (i386_linux_register_name, i386_linux_register_byte,
8660         i386_linux_register_raw_size): Remove prototypes.
8661         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8662         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8663         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8664         TARGET_WRITE_PC): Remove defines.
8665         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8666         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8667         i386_linux_write_pc): Remove prototypes.
8668         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8669         (get_longjmp_target): Remove prototype.
8670         * i386-linux-tdep.h: New file.
8671         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8672         * i386-linux-tdep.c: Include "i386-tdep.h" and
8673         "i386-linux-tdep.h".
8674         (i386_linux_register_name, i386_linux_register_byte,
8675         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8676         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8677         Make static.
8678         (i386_linux_init_abi): New function.
8679         (_initialize_i386_linux_tdep): New function.
8680
8681         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8682         (i386_saved_pc_after_call): Remove prototype.
8683         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8684         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8685         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8686         (i386_register_name, i386_stab_reg_to_regnum,
8687         i386_dwarf_reg_to_regnum): Remove prototypes.
8688         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8689         SIZEOF_SSE_REGS): Remove defines.
8690         (REGISTER_BYTES): Remove define.
8691         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8692         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8693         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8694         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8695         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8696         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8697         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8698         (get_longjmp_target): Remove prototype.
8699         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8700         (sigtramp_saved_pc): Remove define.
8701         (i386v4_sigtramp_saved_pc): Remove prototype.
8702         * config/i386/tm-go32.h (FRAME_CHAIN,
8703         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8704         (i386go32_frame_saved_pc): Remove prototype.
8705         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8706         (get_longjmp_target): Remove prototype.
8707         * i386-tdep.h: Include "osabi.h".
8708         (enum i386_abi): Removed.
8709         (enum struct_return): New enum.
8710         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8711         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8712         sc_pc_offset members.
8713         (i386_gdbarch_register_os_abi): Remove prototype.
8714         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8715         I386_SSE_NUM_REGS): New defines.
8716         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8717         I386_SSE_SIZEOF_REGS): New defines.
8718         (i386_register_name, i386_register_byte, i386_register_raw_size):
8719         New prototypes.
8720         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8721         (i386bsd_sigtramp_saved_pc): New prototype.
8722         * i386-tdep.c: Don't include "elf-bfd.h".
8723         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8724         i386_frame_chain, i386_saved_pc_after_call): Make static.
8725         (i386_frame_saved_pc): Rewrite to call architecture dependent
8726         function to deal with signal handlers.  Make static.
8727         (i386go32_frame_saved_pc): Removed.
8728         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8729         Removed.
8730         (i386_get_longjmp_target): New function.
8731         (default_struct_convention, pcc_struct_convention,
8732         reg_struct_convention, valid_conventions, struct_convention): New
8733         variables.
8734         (i386_use_struct_convention): New function.
8735         (i386v4_sigtramp_saved_pc): Renamed to
8736         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8737         (i386_pc_in_sigtramp): New function.
8738         (i386_abi_names): Removed.
8739         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8740         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8741         Removed.
8742         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8743         i386_gdbarch_register_os_abi): Removed.
8744         (struct i386_abi_handler): Removed.
8745         (i386_abi_handler_list): Removed.
8746         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8747         functions.
8748         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8749         i386_nw_init_abi): New functions.
8750         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8751         Use set_gdbarch_xxx() calls instead of relying on macros for a
8752         number of calls.
8753         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8754         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8755         Register the various architecture variants defined in this file.
8756
8757 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8758
8759         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8760         (struct main_type): Remove arg_types member.  Update comments for
8761         struct field.
8762         (TYPE_ARG_TYPES): Remove.
8763         (TYPE_FN_FIELD_ARGS): Update.
8764         (smash_to_method_type): Update prototype.
8765
8766         * c-typeprint.c (cp_type_print_method_args): Take method type
8767         instead of argument list.  Use new argument layout.  Simplify.
8768         (c_type_print_args): Use new argument layout.  Simplify.
8769         (c_type_print_base): Update call to cp_type_print_method_args.
8770         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8771         argument; use die->type instead.  Update call to
8772         smash_to_method_type.
8773         (read_structure_scope): Update call to dwarf2_add_member_fn.
8774         * gdbtypes.c (allocate_stub_method): Update comment.
8775         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8776         Use new argument layout.
8777         (check_stub_method): Use new argument layout.  Don't count
8778         void as an argument.
8779         (print_arg_types): Update comments.  Use new argument layout.
8780         (recursive_dump_type): Don't print arg_types member.
8781         * hpread.c (hpread_read_struct_type): Use new argument layout.
8782         (fixup_class_method_type): Likewise.
8783         (hpread_type_lookup): Likewise.
8784         * stabsread.c (read_type): Update calls to read_args and
8785         smash_to_method_type.
8786         (read_args): Use new argument layout.  Simplify.
8787         * valops.c (typecmp): Use new argument layout.  Update parameters
8788         and comments.  Simplify.
8789         (hand_function_call): Use new argument layout.
8790         (search_struct_method): Update call to typecmp.
8791         (find_overload_match): Use new argument layout.
8792
8793 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8794
8795         * NEWS: Mention multithreaded debug support for gdbserver.
8796
8797 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8798
8799         * MAINTAINERS: Mention NEWS.
8800
8801 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8802
8803         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8804         (struct mips_objfile_private, compare_pdr_entries): New.
8805         (non_heuristic_proc_desc): Read the ".pdr" section if it
8806         is present.
8807
8808 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8809
8810         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8811         (arm_debug): New static variable.
8812         (_initialize_arm_tdep): Add ``set debug arm'' command.
8813
8814 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8815
8816         * Makefile.in (sim_arm_h): Define.
8817         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8818         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8819         (arm_register_sim_regno): New function, map an internal REGNUM
8820         onto a simulator register number.
8821         (arm_gdbarch_init): Set register_sim_regno.
8822
8823 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8824
8825         * MAINTAINERS: Add self.
8826
8827 2002-06-11  Jim Blandy  <jimb@redhat.com>
8828
8829         * source.c (source_info): Mention whether the symtab has
8830         information about preprocessor macros.
8831
8832         Call the command `info macro', not `show macro'.
8833         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8834         Fix error message.
8835         (_initialize_macrocmd): Register `info_macro_command' in
8836         `infolist', not `showlist'.
8837
8838 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8839
8840         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8841         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8842         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8843         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8844         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8845         unconditionally.
8846         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8847         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8848         (_initialize_mips_tdep): Remove dead code.
8849         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8850         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8851         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8852         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8853         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8854         MIPS_LAST_FP_ARG_REGNUM): Remove.
8855
8856 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8857
8858         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8859         (unwind_tmp_obstack_free, parse_frame_info)
8860         (update_context, cfi_read_fp, cfi_write_fp)
8861         (cfi_frame_chain, cfi_init_extra_frame_info)
8862         (cfi_virtual_frame_pointer): Use the above function.
8863         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8864
8865 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8866
8867         * v850-tdep.c (v850_type_is_scalar): New function.
8868         (v850_use_struct_convention): Match current gcc implementation
8869         as close as possible.
8870         (v850_push_arguments): Fix stack_offset handling.  Don't write
8871         struct_addr into register.  This is done by v850_store_struct_return.
8872         (v850_extract_return_value): Care for structs.
8873         (v850_store_return_value): Ditto.
8874         (v850_store_struct_return): Actually write address.
8875
8876 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8877
8878         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8879         without debug information too.
8880
8881 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8882
8883         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8884         Make multi-arch pure.
8885         * gdbarch.h, gdbarch.c: Re-generate.
8886         * arm-tdep.c (arm_print_float_info): Update.
8887         * arch-utils.h (default_print_float_info): Update.
8888         * arch-utils.c (default_print_float_info): Update.
8889         * infcmd.c (float_info): Update call.
8890
8891 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8892
8893         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8894         the front of the initialize list.
8895
8896 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8897
8898         * infrun.c (struct inferior_status): Replace fields
8899         selected_frame_address and selected_level with field
8900         selected_frame_id.
8901         (save_inferior_status): Update.  Use get_frame_id.
8902         (struct restore_selected_frame_args): Delete.
8903         (restore_selected_frame): Update.  Use frame_find_by_id.
8904         (restore_inferior_status): Update.
8905
8906         * breakpoint.h (struct breakpoint): Change type of
8907         watchpoint_frame to frame_id.
8908         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8909         call to get_current_frame.
8910         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8911         get_current_frame.
8912         (watchpoint_check): Use frame_find_by_id.
8913
8914         * frame.h (record_selected_frame): Delete declaration.
8915         * stack.c (record_selected_frame): Delete function.
8916         
8917         * frame.h (struct frame_id): Define.
8918         (get_frame_id): Declare.
8919         (frame_find_by_id): Declare.
8920         * frame.c (frame_find_by_id): New function.
8921         (get_frame_id): New function.
8922
8923 2002-06-10  Andrey Volkov <avolkov@transas.com>
8924
8925         * ser-e7kpc.c: Fix duplicated define and call of 
8926         _initialize_ser_e7000pc
8927             
8928 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8929
8930         * signals/signals.c (target_signal_from_host): Fix #ifdef
8931         SIGRTMIN case.
8932         (do_target_signal_to_host): Likewise.
8933
8934 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8935
8936         * mips-tdep.c (mips_find_abi_section): New function.
8937         (mips_gdbarch_init): Call it.
8938
8939 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8940
8941         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8942         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8943         after Andrew's 2002-06-08 gdbarch change.
8944
8945 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8946
8947         * i386-linux-nat.c (suppy_gregset): Don't supply
8948         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8949         register cache.
8950         (fill_gregset): Don't fetch it under the same circumstances.
8951
8952 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8953
8954         * Makefile.in (callback_h): Define.
8955         (remote_sim_h): Update path to remote-sim.h.
8956         (remote-rdp.o): Add $(callback_h).
8957         (remote-sim.o): Use $(callback_h).
8958         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8959         * remote-rdp.c: Include "gdb/callback.h".
8960
8961 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8962
8963         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8964         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8965
8966 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8967
8968         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8969         * rdi-share/serpardr.c: Ditto.
8970         * rdi-share/unixcomm.c: Ditto.
8971         * rdi-share/serdrv.c: Ditto.
8972         * rdi-share/hostchan.h: Ditto.
8973         * rdi-share/hostchan.c: Ditto.
8974         * rdi-share/host.h: Ditto.
8975         * rdi-share/devsw.c: Ditto.
8976
8977         * objfiles.h: Change type of obj_private to void pointer.
8978         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8979         strcmp instead of STREQ, use LONGEST, do not use PTR
8980         * somsolib.c: Ditto.
8981
8982         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8983         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8984         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8985
8986 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8987
8988         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8989         (default_get_saved_register): Delete function.
8990         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8991         generic_unwind_get_saved_register.
8992         * gdbarch.h, gdbarch.c: Re-generate.
8993         
8994 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8995
8996         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8997         generic_func_frame_chain_valid.
8998         * gdbarch.h, gdbarch.c: Re-generate.
8999         * blockframe.c (generic_func_frame_chain_valid): Only check
9000         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9001         passing FP to PC_IN_CALL_DUMMY.
9002         Fix PR gdb/360.
9003
9004 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9005
9006         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9007         (register_gdbarch_data): Initialize init_p.
9008         (gdbarch_data): Initialize data pointer using the init function.
9009         (init_gdbarch_data): Delete function.
9010         (gdbarch_update_p): Update.
9011         (initialize_non_multiarch): Update.
9012         (struct gdbarch): Add field initialized_p.
9013         * gdbarch.h, gdbarch.c: Re-generate.
9014
9015 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9016
9017         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9018         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9019         better do the things actually here.
9020         * x86-64-tdep.c (x86_64_register_name2nr): New.
9021         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9022         (x86_64_gdbarch_init): Respect the above change.
9023         * x86-64-tdep.h (x86_64_register_name2nr)
9024         (x86_64_register_nr2name): Add prototypes.
9025         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9026
9027 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9028
9029         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9030         Delete extra braces and re-indent.
9031         (d10v_store_return_value): Char return values
9032         must be shifted over by one byte in R0.
9033         (d10v_extract_return_value): Delete extra braces, re-indent.
9034
9035 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9036
9037         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9038         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9039         (d10v_integer_to_address): Rewrite.
9040         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9041         the d10v specific functions which take care of converting to the
9042         correct space.
9043
9044 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9045
9046         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9047         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9048
9049 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9050
9051         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9052         includes.
9053         * config/tm-linux.h: Ditto.
9054         * config/alpha/tm-alphalinux.h: Ditto.
9055         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9056         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9057         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9058         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9059         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9060         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9061         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9062         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9063         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9064         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9065         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9066         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9067         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9068         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9069         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9070         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9071         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9072         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9073         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9074         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9075         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9076         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9077         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9078         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9079         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9080         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9081         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9082         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9083         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9084         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9085         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9086         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9087         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9088         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9089         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9090         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9091         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9092
9093 2002-05-04  Aidan Skinner <aidan@velvet.net>
9094
9095         * ada-exp.tab.c: New file
9096         * ada-exp.y: New file
9097         * ada-lang.c: New file
9098         * ada-lang.h: New file
9099         * ada-lex.c: New file
9100         * ada-lex.l: New file
9101         * ada-tasks.c: New file
9102         * ada-typeprint.c: New file
9103         * ada-valprint.c: New file
9104         
9105 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9106
9107         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9108         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9109
9110 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9111
9112         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9113         insetead of ppc-linux-tdep.o.
9114         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9115         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9116
9117 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9118
9119         2002-05-07 Christian Groessler <chris@groessler.org>
9120         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9121         bit register contents for little endian hosts.
9122
9123 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9124
9125         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9126         any maintainer.
9127
9128 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9129
9130         * gdbarch.h: Regenerate.
9131
9132 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9133
9134         * MAINTAINERS: Add everyone to write-after-approval list.
9135
9136 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9137
9138         * stack.c (frame_info): Use frame_register_unwind instead of
9139         saved_regs.  Mention when the SP is on the stack or in a register.
9140
9141         * frame.h (frame_register_unwind_ftype): Define.  Document.
9142         (struct frame_info): Add field register_unwind and
9143         register_unwind_cache.
9144         (frame_register_unwind): Declare.
9145         (generic_unwind_get_saved_register): Declare.
9146
9147         * frame.c (frame_register_unwind): New function.
9148         (generic_unwind_get_saved_register): New function.
9149
9150         * blockframe.c (generic_call_dummy_register_unwind): New function.
9151         (frame_saved_regs_register_unwind): New function.
9152         (set_unwind_by_pc): New function.
9153         (create_new_frame): New function.
9154         (get_prev_frame): New function.
9155
9156 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9157
9158         * a29k-share/: Delete directory.
9159         * remote-vx29k.c: Delete file.
9160
9161 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9162
9163         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9164         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9165
9166 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9167
9168         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9169         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9170         (sparc64nbsd-nat.o)
9171         (sparcnbsd-nat.o)
9172         (sparcnbsd-tdep.o): New dependency lists.
9173         * NEWS: Note new UltraSPARC NetBSD native configuration.
9174         * configure.host (sparc64-*-netbsd*): New host.
9175         * configure.tgt (sparc-*-netbsdelf*)
9176         (sparc-*-netbsd*): Set gdb_target to nbsd.
9177         (sparc64-*-netbsd*): New target.
9178         * sparc64nbsd-nat.c: New file.
9179         * sparcnbsd-nat.c: New file.
9180         * sparcnbsd-tdep.c: New file.
9181         * sparcnbsd-tdep.h: New file.
9182         * config/sparc/nbsd.mt: New file.
9183         * config/sparc/nbsd64.mh: New file.
9184         * config/sparc/nbsd64.mt: New file.
9185         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9186         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9187         (HOST_IPC): Remove.
9188         * config/sparc/nbsdaout.mt: Remove.
9189         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9190         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9191         (HOST_IPC): Remove.
9192         * config/sparc/nbsdelf.mt: Remove.
9193         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9194         sparc-nat.c compatiblity defines.
9195         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9196         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9197         * config/sparc/tm-nbsd64.h: New file.
9198         * config/sparc/tm-nbsdaout.h: Remove.
9199         * config/sparc/xm-nbsd.h: Remove.
9200
9201 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9202
9203         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9204         * sparc-tdep.c: Include osabi.h.
9205         (gdbarch_tdep): Add osabi member.
9206         (_initialize_sparc_tdep): Use gdbarch_register.
9207         (sparc_gdbarch_init): Use generic OS ABI framework.
9208         (sparc_dump_tdep): New function.
9209
9210 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9211
9212         * corefile.c (do_captured_read_memory_integer): Return non-zero
9213         result.
9214         (safe_read_memory_integer): Copy result of memory read when
9215         status is non-zero.  Also, add comments.
9216
9217 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9218
9219         * Makefile.in (ppc_tdep_h): Define.
9220         (ppc-linux-nat.o)
9221         (ppc-linux-tdep.o)
9222         (rs6000-tdep.o): Use $(ppc_tdep_h).
9223         (ppc-sysv-tdep.o)
9224         (ppcnbsd-nat.o)
9225         (ppcnbsd-tdep.o): New dependency lists.
9226         * ppc-tdep.h: Use generic OS ABI framework.
9227         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9228         (ppc_linux_init_abi): New functions.
9229         (ppc_sysv_abi_broken_use_struct_convention)
9230         (ppc_sysv_abi_use_struct_convention)
9231         (ppc_sysv_abi_push_arguments): Move to...
9232         * ppc-sysv-tdep.c: ...here.
9233         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9234         * rs6000-tdep.c (process_note_abi_tag_sections)
9235         (get_elfosabi): Remove.
9236         (rs6000_gdbarch_init): Use generic OS ABI framework.
9237         (rs6000_dump_tdep): New function.
9238         (_initialize_rs6000_tdep): Use gdbarch_register.
9239         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9240         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9241         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9242         of ppc-linux-tdep.o.
9243         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9244         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9245         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9246         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9247         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9248         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9249
9250 2002-05-29  Jim Blandy  <jimb@redhat.com>
9251
9252         * macroscope.c (default_macro_scope): Put `void' in empty argument
9253         list.
9254
9255 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9256
9257         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9258         * arch-utils.c: Include "sim-regno.h".
9259         * gdbarch.sh: Don't include "sim-regno.h".
9260         * gdbarch.h, gdbarch.c: Regenerate.
9261         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9262         here.
9263         * arch-utils.h (legacy_register_sim_regno): To here.
9264         * remote-sim.c (legacy_register_sim_regno): Move function from
9265         here.
9266         * arch-utils.c (legacy_register_sim_regno): To here.
9267
9268 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9269
9270         * sim-regno.h: New file.
9271         * Makefile.in (sim_regno_h): Define.
9272         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9273         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9274         (legacy_register_sim_regno): New function.
9275         (one2one_register_sim_regno): New function.
9276         (gdbsim_fetch_register): Rewrite.
9277         (gdbsim_store_register): Only store a register when
9278         REGISTER_SIM_REGNO is valid.
9279         * d10v-tdep.c: Include "sim-regno.h".
9280         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9281         (d10v_ts3_register_sim_regno): Ditto.
9282         * gdbarch.sh: Include "sim-regno.h".
9283         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9284         * gdbarch.h, gdbarch.c: Regenerate.
9285         * arch-utils.h (default_register_sim_regno): Delete declaration.
9286         * arch-utils.c (default_register_sim_regno): Delete function.
9287
9288 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9289
9290         * ppcnbsd-nat.c: Rewrite.
9291         * ppcnbsd-tdep.c: New file.
9292         * ppcnbsd-tdep.h: New file.
9293         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9294         solib.o, and solib-svr4.o.
9295         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9296         nbsd-tdep.o, and corelow.o.
9297
9298 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9299
9300         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9301         `tr' and `sed'.  Mention that `broken' targets are not expected to
9302         build.
9303
9304 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9305
9306         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9307         Let PC point right after the prologue before looking up symbols.
9308         
9309 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9310
9311         * i386-tdep.c (i386_register_virtual_type): Return 
9312         builtin_type_vec128i for SSE registers.
9313
9314         * gdbtypes.h (builtin_type_vec128i): Declare.
9315
9316         * gdbtypes.c (build_builtin_type_vec128i): New function.
9317         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9318         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9319         (build_gdbtypes): Initialize new builtin vector types.
9320         (_initialize_gdbtypes): Register new vector types with gdbarch.
9321
9322 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9323
9324         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9325         since it has been multi-arch'd.
9326         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9327         Move Alpha and VAX multi-arch news entries to same section
9328         as other multi-arch news.
9329
9330 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9331
9332         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9333         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9334         static.  Rename some register numbers to put them in ns32k-tdep
9335         private namespace.
9336         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9337         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9338         functions.
9339         (_initialize_ns32k_tdep): Use gdbarch_register.
9340         * ns32k-tdep.h: New file.
9341         * ns32knbsd-tdep.c: New file.
9342         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9343         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9344         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9345         REGISTER_BYTES, REGISTER_BYTE): Remove.
9346         * config/ns32k/tm-ns32k.h: New file.
9347         * config/ns32k/tm-umax.h: Remove.
9348
9349 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9350
9351         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9352         ns32k_store_struct_return, ns32k_extract_return_value,
9353         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9354         functions.
9355         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9356         ns32k_saved_pc_after_call.
9357         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9358         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9359         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9360         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9361         ns32k_extract_struct_value_address.
9362
9363 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9364
9365         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9366         ns32k_fix_call_dummy): New.
9367         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9368         ns32k_call_dummy_words.
9369         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9370         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9371         CALL_DUMMY_NARGS): Remove.
9372         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9373
9374 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9375
9376         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9377         ns32k_frame_saved_pc, ns32k_frame_args_address,
9378         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9379         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9380         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9381         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9382         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9383         (BREAKPOINT): Remove..
9384         (FRAME_CHAIN): Define as ns32k_frame_chain.
9385         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9386         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9387         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9388         (FRAME_FIND_SAVED_REGS): Remove.
9389         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9390         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9391         (POP_FRAME): Define as ns32k_pop_frame.
9392
9393 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9394
9395         * ns32k-tdep.c (ns32k_register_byte_32082,
9396         ns32k_register_byte_32382, ns32k_register_raw_size,
9397         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9398         functions.
9399         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9400         ns32k_register_byte_32382.
9401         * config/ns32k/tm-umax.h: Update copyright years.
9402         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9403         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9404         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9405         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9406         (ns32k_get_enter_addr): Fix prototype.
9407
9408 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9409
9410         * ns32k-tdep.c: Update copyright years.
9411         (ns32k_register_name_32082): New function.
9412         (ns32k_register_name_32382): Ditto.
9413         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9414         (REGISTER_NAME): Define as ns32k_register_name_32382.
9415         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9416         (REGISTER_NAME): Define as ns32k_register_name_32082.
9417
9418 2002-05-24  Jim Blandy  <jimb@redhat.com>
9419
9420         * dwarf2read.c (free_line_header): Use xfree, not free.
9421
9422 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9423
9424         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9425         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9426
9427 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9428
9429         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9430
9431 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9432
9433         From Ross Alexander at NEC Europe:
9434         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9435
9436 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9437
9438         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9439         for input, rather than parse_and_eval_address.  
9440
9441 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9442
9443         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9444         * Makefile.in (sim_d10v_h): Update definition.
9445
9446 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9447
9448         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9449         change `2002-05-22 Michael Snyder' below.
9450         (d10v_push_arguments): Ditto.
9451         (d10v_extract_return_value): Ditto.
9452
9453 2002-05-23  Jim Blandy  <jimb@redhat.com>
9454
9455         * macrotab.c (check_for_redefinition): Don't complain if the new
9456         definition is the same as the previous one.  Take more arguments
9457         to allow the comparison.
9458         (macro_define_object, macro_define_function): Pass more arguments
9459         to check_for_redefinition.
9460
9461 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9462
9463         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9464         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9465         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9466         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9467         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9468         Add a temp variable to save a call (and a memory read).
9469         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9470         if possible (so that PC_IN_CALL_DUMMY will work).
9471
9472 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9473
9474         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9475
9476 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9477
9478         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9479         fde->cie_ptr.
9480         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9481         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9482         so that frames of shared libraries are mapped correctly.
9483         (execute_stack_op): Change type of 'result' from ULONGEST to
9484         CORE_ADDR.
9485         
9486 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9487
9488         * config/alpha/tm-nbsd.h: Include solib.h.
9489
9490 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9491
9492         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9493         assumptions about the host's byte order.
9494
9495 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9496
9497         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9498         to dependency list.
9499         * alphanbsd-tdep.c: Include solib-svr4.h.
9500         * shnbsd-tdep.c: Ditto.
9501
9502 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9503
9504         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9505         nbsd-tdep.h to dependency list.
9506         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9507         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9508         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9509         nbsdaout.mh and nbsdelf.mh consistently.
9510         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9511         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9512         nbsdaout.mt and nbsdelf.mh consistently.
9513         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9514         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9515         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9516         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9517         a.out shared library stuff from here...
9518         * config/nm-nbsdaout.h: ...to here.
9519         * config/tm-nbsd.h: Remove.
9520         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9521         * config/arm/nbsd.mh: Remove.
9522         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9523         nbsd-tdep.o.
9524         * config/arm/nbsdaout.mh: New file. 
9525         * config/arm/nbsdelf.mh: New file.
9526         * config/arm/nm-nbsdaout.h: New file.
9527         * config/i386/nbsd.mh: Remove.
9528         * config/i386/nbsd.mt: Remove.
9529         * config/i386/nbsdaout.mh: New file.
9530         * config/i386/nbsdaout.mt: New file.
9531         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9532         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9533         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9534         i386_register_u_addr): Remove.
9535         * config/i386/nm-nbsdaout.h: New file.
9536         * config/i386/nm-nbsdelf.h: Remove.
9537         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9538         (USE_STRUCT_CONVENTION): Remove.
9539         * config/i386/tm-nbsdaout.h: New file.
9540         * config/i386/tm-nbsdelf.h: Remove.
9541         * config/m68k/nbsd.mh: Remove.
9542         * config/m68k/nbsd.mt: Remove.
9543         * config/m68k/nbsdaout.mh: New file.
9544         * config/m68k/nbsdaout.mt: New file. 
9545         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9546         * config/m68k/nm-nbsdaout.h: New file.
9547         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9548         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9549         * config/ns32k/nbsd.mh: Remove.
9550         * config/ns32k/nbsd.mt: Remove. 
9551         * config/ns32k/nbsdaout.mh: New file.
9552         * config/ns32k/nbsdaout.mt: New file.
9553         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9554         * config/ns32k/nm-nbsdaout.h: New file.
9555         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9556         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9557         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9558         (SVR4_SHARED_LIBS): Remove.
9559         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9560         * config/sparc/nbsd.mh: Remove.
9561         * config/sparc/nbsd.mt: Remove.
9562         * config/sparc/nbsdaout.mh: New file.
9563         * config/sparc/nbsdaout.mt: New file.
9564         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9565         * config/sparc/nbsdelf.mt: New file.
9566         * config/sparc/nm-nbsdaout.h: New file.   
9567         * config/sparc/nm-nbsdelf.h: Remove.
9568         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9569         * config/sparc/tm-nbsdaout.h: New file.
9570
9571 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9572
9573         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9574         mipsnbsd-tdep.c
9575         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9576
9577 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9578
9579         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9580         shnbsd-nat.c.
9581         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9582
9583 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9584
9585         * NEWS: Note new MIPS NetBSD native configuration. 
9586         * configure.host (mips*-*-netbsd*): New host. 
9587         * configure.tgt (mips*-*-netbsd*): New target. 
9588         * mipsnbsd-nat.c: New file.
9589         * mipsnbsd-tdep.c: New file.
9590         * mipsnbsd-tdep.h: New file.
9591         * config/mips/nbsd.mh: New file.
9592         * config/mips/nbsd.mt: New file.
9593         * config/mips/nm-nbsd.h: New file.
9594         * config/mips/tm-nbsd.h: New file.
9595
9596 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9597
9598         * Makefile.in (SFILES): Add osabi.c.
9599         (COMMON_OBS): Add osabi.o.
9600         (osabi.o): New dependency list.
9601         * osabi.c: New file.
9602         * osabi.h: New file.
9603         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9604
9605         * Makefile.in (alpha_tdep_h): Define and use instead of
9606         alpha-tdep.h.
9607         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9608         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9609         Remove.
9610         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9611         * alpha-tdep.h: Include osabi.h.
9612         (alpha_abi): Remove.
9613         (gdbarch_tdep): Use generic OS ABI framework.
9614         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9615         gdbarch_register_osabi.
9616         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9617         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9618         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9619
9620         * Makefile.in (sh_tdep_h): Add osabi.h.
9621         * sh-tdep.h (sh_osabi): Remove.
9622         (gdbarch_tdep): Use generic OS ABI framework.
9623         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9624         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9625         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9626         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9627
9628         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9629         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9630         gdbarch_register_osabi.
9631         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9632         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9633         (get_elfosabi): Rename to...
9634         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9635         ABI framework support routines.
9636         (arm_gdbarch_init): Use generic OS ABI framework.
9637         (arm_dump_tdep): Likewise.
9638         (_initialize_arm_tdep): Likewise.
9639         * arm-tdep.h: Include osabi.h.
9640         (arm_abi): Remove.
9641         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9642         osabi member.
9643         (arm_gdbarch_register_os_abi): Remove prototype.
9644         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9645         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9646
9647         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9648         * mips-tdep.c: Include osabi.h.
9649         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9650         OS ABI framework.
9651
9652 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9653
9654         * h8300-tdep.c: Fix formatting.
9655
9656 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9657
9658         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9659         printing vector registers.
9660
9661 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9662
9663         From Fernando Nasser:
9664         * remote.c (remote_async_open_1): Re-throw the exception when the
9665         connection fails.
9666         (remote_cisco_open): Ditto.
9667         (remote_open_1): Ditto.
9668
9669 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9670
9671         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9672         (remote_start_remote): Add uiout parameter.  Pass through to
9673         remote_start_remote_dummy.
9674         (remote_open_1): Use catch_exception instead of catch_errors.
9675         (remote_async_open_1): Ditto.
9676         (remote_cisco_open): Ditto.
9677
9678 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9679
9680         * remote.c (remote_start_remote): Replace PTR with void pointer.
9681         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9682         static.
9683
9684 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9685
9686         * gdb_indent.sh: Allow the script to be run in the sim directory.
9687
9688 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9689
9690         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9691         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9692
9693         * corelow.c (core_open): Only call set_gdbarch_from_file if
9694         exec_bfd is NULL.
9695
9696 2002-05-17  Andrey Volkov <avolkov@transas.com>
9697
9698         * h8300-tdep.c: Add support of EXR register
9699         * config/h8300/tm-h8300.h: Ditto. 
9700         
9701 2002-05-17  Andrey Volkov <avolkov@transas.com>
9702
9703         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9704         
9705 2002-05-17  Andrey Volkov <avolkov@transas.com>
9706
9707         * h8300-tdep.c: Change literal regnums to REGNO.
9708         
9709 2002-05-17  Jim Blandy  <jimb@redhat.com>
9710
9711         * NEWS: Note addition of macro support.
9712
9713         Expand preprocessor macros in C expressions.
9714         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9715         (scan_macro_expansion, scanning_macro_expansion,
9716         finished_macro_expansion): New function declarations.
9717         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9718         variable declarations.
9719         * parser-defs.h (expression_context_pc): New declaration.
9720         * parse.c (expression_context_pc): New variable.
9721         (parse_exp_1): Set expression_context_pc, as well as
9722         expression_context_block.
9723         * c-exp.y (yylex): If we're not already reading the result of a
9724         macro expansion, try to macro-expand the next token.  When we're
9725         done scanning a macro expansion, switch back to the mainline text.
9726         Commas and `if's in a macro's expansion don't terminate the input.
9727         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9728         (macro_original_text, macro_expanded_text,
9729         expression_macro_lookup_func, expression_macro_lookup_baton): New
9730         variables.
9731         (scan_macro_expansion, scanning_macro_expansion,
9732         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9733         c_preprocess_and_parse): New functions.
9734         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9735         c_preprocess_and_parse, instead of c_parse.
9736         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9737         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9738
9739 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9740
9741         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9742         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9743         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9744
9745 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9746
9747         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9748
9749 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9750
9751         * Makefile.in (sh_tdep_h): Define and use.
9752         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9753         register enum): Move to...
9754         * * sh-tdep.h: ...here.
9755         * sh-tdep.c: Include sh-tdep.h.
9756         * sh3-rom.c: Likewise.
9757         * shnbsd-tdep.c: Likewise.
9758
9759 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9760
9761         * arm-tdep.c: Spelling fix in comment.
9762
9763 2002-05-16  Jim Blandy  <jimb@redhat.com>
9764
9765         Add commands for manually expanding macros and showing their
9766         definitions.
9767         * macrocmd.c, macroscope.c, macroscope.h: New files.
9768         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9769         (macroscope_h): New variable.
9770         (HFILES_NO_SRCDIR): Add macroscope.h.
9771         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9772         (macroscope.o, macrocmd.o): New rules.
9773
9774         Teach the Dwarf 2 reader to read macro information.
9775         * dwarf2read.c: #include "macrotab.h".
9776         (dwarf_macinfo_buffer): New variable.
9777         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9778         dwarf_macinfo_size.
9779         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9780         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9781         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9782         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9783         dwarf2_macro_spaces_in_definition): New complaints.
9784         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9785         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9786         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9787         the partial symbol table.
9788         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9789         from what's recorded in the partial symbol table.
9790         (read_file_scope): If the compilation unit has a
9791         `DW_AT_macro_info' attribute, read its macro information.
9792         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9793
9794 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9795
9796         Fix PR gdb/546
9797         * ser-tcp.c: Don't include <netinet/udp.h>.
9798
9799 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9800
9801         * MAINTAINERS: Update my email address.
9802
9803 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9804
9805         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9806         include file of the same name.
9807
9808 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9809
9810         * configure.tgt: Mark v850 as multi-arched.
9811         * config/v850/tm-v850.h: Remove file.
9812         * config/v850/v850.mt: Eliminate TM_FILE.
9813
9814 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9815
9816         * v850-tdep.c: Full multi-arch.
9817         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9818         Define GDB_MULTI_ARCH to 2.
9819
9820 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9821
9822         * p-exp.y (current_type): New static variable.
9823         Carries the type of the expression at the position that is parsed.
9824         (push_current_type, pop_current_type): Two new functions. Used
9825         to store/restore current_type in expression on specific tokens.
9826         (search_field): New static variable. Set to one after parsing a point
9827         as at that point only a FIELDNAME token should be searched.
9828         (FIELDNAME): New token. After a point only a token belonging to 
9829         current_type type definition is allowed.
9830         (all over token rules): reset and change current_type according
9831         to rules.
9832         (exp '[' rule): insert implicit array index field if
9833         exp is a pascal string type.
9834
9835 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9836
9837         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9838         frame info.  Use frame_info's saved_regs instead of matching member
9839         in extra_frame_info throughout.
9840         (v850_frame_init_saved_regs): New function.
9841         (v850_init_extra_frame_info): Move most functionality into
9842         v850_frame_init_saved_regs().
9843         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9844         (v850_frame_find_saved_regs): Remove declaration.
9845         (FRAME_FIND_SAVED_REGS): Remove definition.
9846         (v850_frame_init_saved_regs): Add declaration.
9847         (FRAME_INIT_SAVED_REGS): Add definition.
9848
9849 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9850
9851         * v850-tdep.c: Begin multi-arch'ing v850.
9852         (v850_target_architecture_hook): Remove function.
9853         (v850_gdbarch_init): New function.  Add code previously in
9854         v850_target_architecture_hook().
9855         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9856         Call register_gdbarch_init() instead.
9857
9858 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9859
9860         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9861         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9862         (fixup_class_method_type): Likewise.
9863
9864 2002-05-15  Jim Blandy  <jimb@redhat.com>
9865
9866         Add macro structures to GDB's symbol tables.  Nobody puts anything
9867         in them yet.
9868         * symtab.h (struct symtab): New member: `macro_table'.
9869         * buildsym.h (pending_macros): New global variable.
9870         * buildsym.c: #include "macrotab.h".
9871         (buildsym_init): Initialize `pending_macros'.
9872         (end_symtab): If we found macro information while reading a CU's
9873         debugging info, do build a symtab structure for it.  Make the
9874         symtab point to the macro information, and clear the
9875         `pending_macros' pointer which held it while we were reading the
9876         debug info.
9877         (really_free_pendings): Free any pending macro table.
9878         * objfiles.h (struct objfile): New member: `macro_cache'.
9879         * objfiles.c (allocate_objfile): Set allocate and free functions
9880         for the macro cache's objstack.
9881         (free_objfile): Empty the macro cache's obstack.
9882         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9883         set new allocate and free functions for it.
9884         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9885         free functions for the macro cache's objstack.  (Why is this
9886         function building its own objfile?)
9887         * symmisc.c (print_objfile_statistics): Print statistics on the
9888         macro bcache.
9889         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9890
9891 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9892
9893         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9894         (REGISTER_U_ADDR): Delete definition.
9895         (arm_register_u_addr): Delete declaration.
9896
9897 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9898
9899         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9900         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9901
9902 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9903
9904         * regcache.c (register_valid): Revise comments refering to "Not
9905         available" and "unavailable".
9906         * frame.c (frame_register_read): Ditto.
9907         * findvar.c (value_of_register): Ditto.
9908
9909 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9910
9911         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9912         (remote-sim.o): Update dependencies.
9913         (d10v-tdep.o): Specify dependencies.
9914         (sim_d10v_h): Define.
9915
9916 2002-05-14  Jim Blandy  <jimb@redhat.com>
9917
9918         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9919         * macrotab.c (macro_lookup_inclusion, find_definition,
9920         new_macro_table): Same.
9921         
9922         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9923         not `! strcmp ()'.  This is a dubious improvement.
9924         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9925
9926         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9927         although it's not necessary, to avoid a warning.
9928
9929 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9930
9931         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9932         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9933         TYPE_INSTANCE_FLAGS.
9934         (struct main_type): New.
9935         (struct type): Move most members to struct main_type.  Change
9936         cv_type and as_type to new type_chain member.  Add instance_flags.
9937         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9938         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9939         (finish_cv_type): Remove prototype.
9940         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9941         Set TYPE_CHAIN.
9942         (alloc_type_instance): New function.
9943         (smash_type): New function.
9944         (make_pointer_type, make_reference_type, make_function_type)
9945         (smash_to_member_type, smash_to_method_type): Call smash_type.
9946         (make_qualified_type): New function.
9947         (make_type_with_address_space): Call make_qualified_type.
9948         (make_cv_type): Likewise.
9949         (finish_cv_type): Remove unnecessary function.
9950         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9951         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9952         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9953         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9954         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9955         * hpread.c (hpread_read_struct_type): Likewise.
9956         * stabsread.c (read_struct_type): Likewise.
9957
9958 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9959
9960         * configure.tgt: Add a catch all sh* target, for cases like
9961         sh[2,3,4]-elf and sh-hms.
9962
9963 2002-05-14  Keith Seitz  <keiths@redhat.com>
9964
9965         * event-loop.c (create_file_handler): Don't do anything but
9966         update data when we are given a fd which we are already
9967         monitoring.
9968
9969 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9970
9971         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9972         (update_context): Use __func__ in warnings.
9973         
9974 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9975
9976         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9977         and tcp_close to net_open and net_close.
9978         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9979         using UDP if requested.  Don't try to disable Nagle on UDP
9980         sockets.
9981         * remote.c (remote_serial_open): New function.  Warn about UDP.
9982         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9983
9984 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9985
9986         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9987
9988 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9989
9990         * configure.tgt: Remove sh-hms target.
9991         * MAINTAINERS: Don't list sh-hms as a separate target.
9992
9993 2002-05-13  Jim Blandy  <jimb@redhat.com>
9994
9995         Add first preprocessor macro-expansion files.
9996         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9997         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9998         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9999         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10000         (COMMON_OBS): Add macrotab.o, macroexp.o.
10001         (macroexp.o, macrotab.o): New rules.
10002
10003 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10004
10005         * config/m88k/tm-m88k.h: Update copyright.
10006         (m88k_target_write_pc): Declare
10007         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10008         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10009         (SHIFT_INST_REGS): Update definition.
10010         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10011         using old definition of TARGET_WRITE_PC.
10012         * regcache.c (generic_target_write_pc): Delete code handling
10013         NNPC_REGNUM.
10014         * gdbarch.sh (NNPC_REGNUM): Delete.
10015         * gdbarch.h, gdbarch.c: Regenerate.
10016
10017 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10018
10019         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10020         builtin reg number.
10021
10022 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10023
10024         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10025         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10026         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10027         access macros.
10028         * c-typeprint.c (cp_type_print_method_args): Likewise.
10029         (c_type_print_args): Likewise.
10030         * d10v-tdep.c (d10v_push_arguments): Likewise.
10031         (d10v_extract_return_value): Likewise.
10032         * expprint.c (print_subexp): Likewise.
10033         * gdbtypes.c (lookup_primitive_typename): Likewise.
10034         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10035         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10036         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10037         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10038         (TYPE_VECTOR): Likewise.
10039         * hpread.c (hpread_read_struct_type)
10040         (fix_static_member_physnames, fixup_class_method_type)
10041         (hpread_type_lookup): Likewise.
10042         * mdebugread.c (parse_symbol, parse_type): Likewise.
10043         * p-lang.c (is_pascal_string_type): Likewise.
10044         * valops.c (hand_function_call): Likewise.
10045         * x86-64-tdep.c (classify_argument): Likewise.
10046
10047         * hpread.c (hpread_read_function_type)
10048         (hpread_read_doc_function_type): Call replace_type.
10049         * dstread.c (create_new_type): Delete.
10050         (decode_dst_structure, process_dst_function): Call alloc_type.
10051         Use type access macros.
10052
10053 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10054
10055         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10056         the're not supported by the current architecture.
10057         (i387_fill_fxsave): Likewise.
10058
10059 2002-05-12  Fred Fish  <fnf@redhat.com>
10060
10061         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10062         sect_index_xxx members to index the first slot in section_offsets
10063         if all of the section_offsets are zero.
10064
10065 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10066
10067         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10068         checked in with last change.
10069
10070 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10071
10072         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10073         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10074         config.sub.
10075
10076 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10077
10078         * Makefile.in: Update dependencies.
10079
10080 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10081
10082         * language.c (local_hex_string_custom): Simplify.  Do not depend
10083         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10084
10085         * memattr.c (mem_info_command): Replace calls to
10086         longest_local_hex_string and longest_local_hex_string_custom.
10087         * buildsym.c (make_blockvector): Ditto.
10088         * solib.c (info_sharedlibrary_command): Ditto.
10089         * tracepoint.c (tracepoints_info): Ditto.
10090         * symtab.c (print_msymbol_info): Ditto.
10091
10092         * language.c (local_hex_string): Delete.
10093         (local_hex_string_custom): Delete.
10094         (longest_local_hex_string): Rename to local_hex_string.
10095         (longest_local_hex_string_custom): Rename to
10096         local_hex_string_custom.
10097         * language.h (local_hex_string): Change parameter type to LONGEST.
10098         (local_hex_string_custom): Ditto.
10099         (longest_local_hex_string): Delete declaration.
10100         (longest_local_hex_string_custom): Ditto.
10101
10102         * solib.c: Update copyright.
10103         * memattr.c: Update copyright.
10104         
10105 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10106
10107         * arch-utils.h (legacy_register_to_value): Declare.
10108         (legacy_value_to_register): Declare.
10109         (legacy_convert_register_p): Declare.
10110         * arch-utils.c (legacy_register_to_value): New function.
10111         (legacy_value_to_register): New function.
10112         (legacy_convert_register_p): New function.
10113
10114         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10115         (VALUE_TO_REGISTER): Define.
10116         (CONVERT_REGISTER_P): Define.
10117         * gdbarch.h, gdbarch.c: Regenerate.
10118
10119         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10120         VALUE_TO_REGISTER.
10121         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10122         CONVERT_REGISTER_P.
10123
10124 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10125             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10126
10127         * Makefile.in: Update dependencies for valops.c.
10128         * valops.c: Include "gdb_assert.h".
10129         (typecmp): Skip THIS parameter to methods.
10130         (find_method_list): Remove static_memfuncp argument,
10131         update callers.  Check for stub methods.
10132         (find_value_oload_method_list): Don't set *static_memfuncp.
10133         (find_overload_match): Don't check for stub methods.  Assert
10134         that methods are not stubbed.  Handle static methods.
10135         (value_find_oload_method_list): Remove static_memfuncp argument.
10136         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10137         to the argument list for static stub methods.
10138         * value.h (value_find_oload_method_list): Update prototype.
10139
10140 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10141
10142         * arch-utils.h (generic_register_size): Declare.
10143         (generic_register_raw_size, generic_register_virtual_size): Delete
10144         declarations.
10145         * arch-utils.c (generic_register_raw_size): Delete.
10146         (generic_register_size): New function.
10147         (generic_register_virtual_size): Delete.
10148
10149         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10150         default generic_register_size.
10151         * gdbarch.h, gdbarch.c: Re-generate.
10152         
10153         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10154         register_virtual_size.
10155         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10156         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10157
10158 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10159
10160         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10161         * gdbarch.h, gdbarch.c: Regenerate.
10162         * gnu-v3-abi.c: Update copyright.
10163         (vtable_address_point_offset): Update.
10164         (gnuv3_rtti_type): Update.
10165         (gnuv3_baseclass_offset): Update.
10166         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10167         (init_fetch_link_map_offsets): Update.
10168         * remote.c (get_remote_state): Update.
10169         
10170 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10171
10172         * TODO: Remove value_headof/value_from_vtable_info comment.
10173         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10174         * values.c (value_headof, value_from_vtable_info): Delete.
10175         * value.h (value_from_vtable_info): Delete prototype.
10176
10177 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10178
10179         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10180         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10181         $(gdb_regex_h).
10182         (gdb_assert_h): Define.
10183         (gdb_wait_h): Define.
10184         (gdb_regex_h): Define.
10185
10186 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10187
10188         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10189         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10190
10191 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10192
10193         * nbsd-tdep.c: Fix comment.
10194
10195 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10196
10197         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10198         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10199         (nbsd-tdep.o): New dependency list.
10200         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10201         nbsd-tdep.h.
10202         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10203         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10204         * nbsd-tdep.c: New file.
10205         * nbsd-tdep.h: New file.
10206         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10207         nbsd-tdep.h.
10208         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10209         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10210         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10211         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10212
10213 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10214
10215         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10216         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10217         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10218         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10219         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10220         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10221
10222 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10223
10224         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10225         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10226         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10227         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10228         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10229         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10230         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10231
10232 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10233
10234         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10235         fetch_elfcore_registers to...
10236         * i386nbsd-tdep.c: ...here.
10237         (i386nbsd_use_struct_convention): Rename to...
10238         (i386nbsd_aout_use_struct_convention): ...this.
10239         (i386nbsd_supply_reg): New function.
10240         (i386nbsd_fill_reg): New function.
10241         (fetch_core_registers): Use i386nbsd_supply_reg.
10242         (fetch_elfcore_registers): Likewise.
10243         (_initialize_i386nbsd_tdep): New function.
10244         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10245         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10246         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10247         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10248         (i386nbsd_aout_use_struct_convention): ...this.
10249
10250 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10251
10252         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10253         (store_inferior_registers): Use shnbsd_fill_reg.
10254         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10255         sh_nbsd_supply_register): Collapse into...
10256         (shnbsd_supply_reg): ...this.
10257         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10258         (shnbsd_fill_reg): ...this.
10259         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10260         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10261         (fetch_core_registers): Use shnbsd_supply_reg.
10262         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10263         (sh_nbsd_core_fns): Rename to...
10264         (shnbsd_core_fns): ...this.
10265         (sh_nbsd_elfcore_fns): Rename to...
10266         (shnbsd_elfcore_fns): ...this.
10267         (sh_nbsd_init_abi): Rename to...
10268         (shnbsd_init_abi): ...this.
10269         (_initialize_sh_nbsd_tdep): Rename to...
10270         (_initialize_shnbsd_tdep): ...this.
10271         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10272         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10273         sh_nbsd_fill_register): Remove prototypes.
10274         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10275
10276 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10277
10278         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10279         (i387-nat.o): Delete dependency list.
10280         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10281         (x86-64-linux-nat.o): Likewise.
10282         * i387-nat.c: Delete file, moving contents to...
10283         * i387-tdep.c: ...here.
10284         * i387-nat.h: Rename...
10285         * i387-tdep.h: ...to this.
10286         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10287         * i386-linux-nat.c: Likewise.
10288         * i386bsd-nat.c: Likewise.
10289         * i386gnu-nat.c: Likewise.
10290         * i386nbsd-nat.c: Likewise.
10291         * i386v4-nat.c: Likewise.
10292         * x86-64-linux-nat.c: Likewise.
10293         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10294         * config/i386/go32.mh (NATDEPFILES): Likewise.
10295         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10296         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10297         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10298         * config/i386/linux.mh (NATDEPFILES): Likewise.
10299         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10300         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10301         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10302         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10303
10304 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10305
10306         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10307         (alphanbsd-nat.o): Remove dependency list.
10308         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10309         * alphanbsd-nat.c: Delete.  Contents moved to...
10310         * alphanbsd-tdep.c: ...here.
10311         (_initialize_alphanbsd_tdep): Register core functions.
10312         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10313
10314 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10315
10316         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10317         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10318         (alphanbsd-nat.o): Likewise.
10319         (alphabsd-tdep.o): New dependency list.
10320         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10321         (fill_gregset): Use alphabsd_fill_reg.
10322         (supply_fpregset): Use alphabsd_supply_fpreg.
10323         (fill_fpregset): Use alphabsd_fill_fpreg.
10324         (fetch_inferior_registers): Use struct reg and struct fpreg
10325         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10326         and alphabsd_supply_fpreg.
10327         (store_inferior_registers): Use struct reg and struct fpreg
10328         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10329         and alphabsd_fill_fpreg.
10330         * alphabsd-tdep.c: New file.
10331         * alphabsd-tdep.h: New file.
10332         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10333         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10334         alphabsd_supply_fpreg.
10335         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10336         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10337
10338 2002-05-11  Eric Christopher  <echristo@redhat.com>
10339
10340         * mips-tdep.c (mips_double_register_type): Fix thinko.
10341         (mips_single_register_type): Ditto.
10342         * MAINTAINERS: Add self.
10343
10344 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10345
10346         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10347         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10348         right thing on architectures with different endianness and/or
10349         integer sizes.
10350
10351 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10352
10353         From Christian Limpach <chris@Pin.LU>
10354         * configure.in: Change sed expression which comments out
10355         NATDEPFILES to also comment out continuation lines.
10356         * configure: Regenerate.
10357
10358 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10359
10360         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10361         big patch.
10362
10363 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10364
10365         * sh-tdep.c: Include correct file.
10366
10367 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10368
10369         New support for sh64-elf (sh5) target.
10370
10371         * configure.tgt: For sh64-elf target, default to sh-elf.
10372
10373         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10374         (struct gdbarch_tdep): Add new fields for new registers and ABI
10375         info.
10376
10377         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10378         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10379         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10380         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10381         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10382         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10383         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10384         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10385         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10386         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10387         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10388         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10389         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10390         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10391         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10392         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10393         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10394         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10395         sign_extend, sh64_nofp_frame_init_saved_regs,
10396         sh64_init_extra_frame_info, sh64_get_saved_register,
10397         sh64_extract_struct_value_address, sh64_pop_frame,
10398         sh64_push_arguments, sh64_extract_return_value,
10399         sh64_store_return_value, sh64_show_media_regs,
10400         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10401         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10402         sh_sh64_register_virtual_type,
10403         sh_sh64_register_convert_to_virtual,
10404         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10405         sh64_register_read, sh64_pseudo_register_write,
10406         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10407         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10408         sh64_do_pseudo_register, sh_compact_do_registers_info,
10409         sh64_do_registers_info, sh_gdbarch_init): New functions.
10410
10411 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10412
10413         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10414
10415 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10416
10417         * linespec.c (decode_line_1): Check for a double quote after
10418         a filename correctly.
10419
10420 2002-05-10  Jim Blandy  <jimb@redhat.com>
10421
10422         Properly track the size of the current objfile's .debug_line section.
10423         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10424         (DWARF_LINE_SIZE): New macro.
10425         (dwarf2_build_psymtabs_hard): Record the line section's size in
10426         the partial symbol table.
10427         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10428         symbol table.
10429
10430 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10431
10432         * ia64-tdep.c: Handle breakpoints on L instruction type
10433         in MLX instruction bundle by moving the breakpoint to
10434         the third slot (X instruction type) as L holds only data.
10435
10436 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10437
10438         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10439         (process_one_symbol): Complain about discarding local symbols
10440         due to a misplaced N_LBRAC entry.
10441
10442 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10443
10444         From Daniel Berlin <dan@cgsoftware.com>
10445         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10446         decrease the depth we are at, in the case of templates.
10447
10448 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10449
10450         * mips-tdep.c (mips_float_register_type): New function.
10451         (mips_double_register_type): New function.
10452         (mips_print_register): Use them.
10453         (do_fp_register_row): Likewise.
10454
10455 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10456
10457         * signals/signals.c (signals): Remove conditional compilation around
10458         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10459         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10460
10461 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10462
10463         * remote-rdp.c (remote_rdp_can_run): Remove.
10464
10465 2002-05-09  Tom Tromey  <tromey@redhat.com>
10466
10467         * jv-valprint.c (java_val_print): Handle `char' as a special case
10468         of TYPE_CODE_INT.
10469
10470 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10471
10472         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10473         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10474         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10475         str r(0123),[sp,#nn].
10476         (arm_skip_prologue): Ditto.  Also make disassembly
10477         order-independent by placing it in a loop.
10478
10479 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10480
10481         * stabsread.c (read_type): Add recognition for new attribute:
10482         "@V;" means that an array type is actually a vector.
10483         This is analogous to the vector flag that's been added to dwarf2.
10484
10485 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10486
10487         * i386-tdep.h (i386_abi): New enum.
10488         (struct gdbarch_tdep): Replace os_ident member with abi.
10489         (i386_gdbarch_register_os_abi): New prototype.
10490         * i386-tdep.c (i386_abi_names): New array.
10491         (process_note_abi_tag_sections): Removed.
10492         (process_note_sections): New function.
10493         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10494         (struct i386_abi_handler): New struct.
10495         (i386_abi_handler_list): New variable.
10496         (i386_gdbarch_register_os_abi): New function.
10497         (i386_gdbarch_init): Adapt for the changes given above.
10498
10499 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10500
10501         * gregset.h: Say "GNU/Linux".
10502
10503 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10504
10505         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10506         (build_gdbtypes): Build builtin_type_v2_float.
10507         (_initialize_gdbtypes): Register new builtin type.
10508
10509 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10510
10511         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10512         (clear_gdbarch_swap): New function.
10513         (initialize_non_multiarch): Call.
10514         (gdbarch_update_p): Before calling init(), swap out and clear the
10515         existing architecture.
10516         * gdbarch.c: Regenerate.
10517
10518 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10519
10520         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10521         alphanbsd-tdep.c.
10522
10523 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10524
10525         * sh-nbsd-nat.c: Rename to...
10526         * shnbsd-nat.c: ...this.
10527         * sh-nbsd-tdep.c: Rename to...
10528         * shnbsd-tdep.c: ...this.
10529         * sh-nbsd-tdep.h: Rename to...
10530         * shnbsd-tdep.h: ...this.
10531         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10532         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10533
10534 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10535
10536         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10537         concatenation for command help messages.
10538
10539 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10540
10541         * NEWS: Note new sh*-*-netbsdelf* configuration.
10542         * configure.host: Set gdb_host_cpu to sh for all sh*.
10543         (sh*-*-netbsdelf*): New host.
10544         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10545         (sh*-*-netbsdelf*): New target.
10546         * sh-nbsd-nat.c: New file.
10547         * sh-nbsd-tdep.c: New file.
10548         * sh-nbsd-tdep.h: New file.
10549         * config/sh/nbsd.mh: New file.
10550         * config/sh/nbsd.mt: New file.
10551         * config/sh/nm-nbsd.h: New file.
10552         * config/sh/tm-nbsd.h: New file.
10553
10554 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10555
10556         * sh-tdep.c (sh_osabi_names): Declare.
10557         (process_note_abi_tag_sections): New function.
10558         (get_elfosabi): Ditto.
10559         (sh_gdbarch_register_os_abi): Ditto.
10560         (sh_dump_tdep): Ditto.
10561         _initialize_sh_tdep): Use gdbarch_register to register
10562         sh_gdbarch_init and sh_dump_tdep.
10563         * config/sh/tm-sh.h (sh_osabi): Declare.
10564         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10565
10566 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10567
10568         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10569         (thumb_scan_prologue): Ditto.
10570         (arm_find_callers_reg): Ditto.
10571         (arm_frame_chain): Ditto.
10572         (arm_init_extra_frame_info): Ditto.
10573         (arm_frame_saved_pc): Ditto.
10574         (arm_pop_frame): Ditto.
10575         (arm_push_return_address): New function.
10576         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10577         call_dummy_location, call_dummy_breakpoint_offset_p,
10578         call_dummy_breakpoint_offset, call_dummy_p,
10579         call_dummy_stack_adjust_p, call_dummy_words,
10580         sizeof_call_dummy_words, call_dummy_start_offset,
10581         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10582         call_dummy_address, push_return_address and push_dummy_frame for
10583         generic dummy frames.
10584
10585 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10586
10587         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10588         size computation for alloca.
10589         (sh_fp_frame_init_saved_regs): Likewise.
10590
10591 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10592
10593         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10594         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10595         * arm-tdep.c (arm_store_return_value): Use them.
10596         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10597         * remote-rdp.c (remote_rdp_fetch_register): Use
10598         ARM_MAX_REGISTER_RAW_SIZE.
10599         (remote_rdp_store_register): Likewise.
10600
10601 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10602
10603         * dwarf2cfi.c: Code cleanup, removed unused variables,
10604         added default labels to switch {} statements.
10605         * x86-64-tdep.c: Ditto.
10606         * x86-64-linux-nat.c: Ditto.
10607
10608 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10609
10610         * solib.h: Protect against multiple inclusion.
10611
10612 2002-05-06  Jim Blandy  <jimb@redhat.com>
10613
10614         Add first preprocessor macro-expansion files.
10615         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10616         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10617         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10618         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10619         (COMMON_OBS): Add macrotab.o, macroexp.o.
10620         (macroexp.o, macrotab.o): New rules.
10621
10622         Separate the job of reading the line number info statement program
10623         header (...expialidocious) out into its own function.
10624         * dwarf2read.c (struct line_head, struct filenames, struct
10625         directories): Replace with...
10626         (struct line_header): New structure, containing the full
10627         contents of the statement program header, including the
10628         include directory and file name tables.
10629         (read_file_scope): If we have line number info, instead of just
10630         calling dwarf_decode_lines to do all the work, call
10631         dwarf_decode_line_header first to get a `struct line_header'
10632         containing the data in the statement program header, and then
10633         pass that to dwarf_decode_lines, which will pick up where that
10634         left off.  Be sure to clean up the `struct line_header' object.
10635         (dwarf_decode_line_header, free_line_header, add_include_dir,
10636         add_file_name): New functions.
10637         (dwarf_decode_lines): Move all the code to read the statement
10638         program header into dwarf_decode_line_header.  Take the line
10639         header it built as the first argument, instead of the offset to
10640         the compilation unit's line number info.  Use the new `struct
10641         line_header' type instead of the old structures.  No need to do
10642         cleanups here now, since we don't allocate anything.
10643         (dwarf2_statement_list_fits_in_line_number_section,
10644         dwarf2_line_header_too_long): New complaints.
10645
10646 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10647
10648         * gdbtypes.c (init_vector_type): New function.
10649         (build_builtin_type_vec128): Simplify the representation of SIMD
10650         registers.
10651         (build_gdbtypes): Initialize new builtin vector types.
10652         (_initialize_gdbtypes): Register new vector types with gdbarch.
10653         (builtin_type_v4_float, builtin_type_v4_int32,
10654         builtin_type_v8_int16, builtin_type_v16_int8,
10655         builtin_type_v2_int32, builtin_type_v4_int16,
10656         builtin_type_v8_int8): New (renamed) SIMD types.
10657
10658 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10659
10660         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10661         (i387_fill_fxsave): Likewise.
10662
10663 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10664
10665         * alpha-tdep.c (alpha_extract_return_value): Don't use
10666         non-constant array size in prototype.
10667
10668 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10669
10670         From Brian Taylor <briant at model dot com>:
10671         * ui-out.c (ui_out_field_core_addr): Use the function
10672         longest_local_hex_string_custom'to format addresses > 32 bits
10673         wide.
10674
10675         * ui-out.c (ui_out_field_core_addr): Update comment.
10676
10677 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10678
10679         * stack.c (select_and_print_frame): Make static.  Delete the
10680         parameter `level'.
10681         (func_command): Update call.
10682         (select_frame_command): Delete code computing the frame level.
10683         * frame.h (select_and_print_frame): Delete declaration.
10684
10685 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10686
10687         * sparc-tdep.c (sparc_get_saved_register): Comment why
10688         get_prev_frame call is safe.
10689
10690 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10691
10692         * frame.h (select_frame): Delete level parameter.
10693         * stack.c (select_frame): Update.  Use frame_relative_level to
10694         obtain the frame's level.
10695         (select_and_print_frame): Update call.
10696         (select_frame_command): Ditto.
10697         (up_silently_base): Ditto.
10698         (down_silently_base): Ditto.
10699         * ocd.c (ocd_start_remote): Ditto.
10700         * remote-rdp.c (remote_rdp_open): Ditto.
10701         * remote-mips.c (mips_initialize): Ditto.
10702         (common_open): Ditto.
10703         * remote-e7000.c (e7000_start_remote): Ditto.
10704         * m3-nat.c (select_thread): Ditto.
10705         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10706         (child_get_current_exception_event): Ditto.
10707         * varobj.c (varobj_create): Ditto.
10708         (varobj_update): Ditto.
10709         (c_value_of_root): Ditto.
10710         * tracepoint.c (finish_tfind_command): Ditto.
10711         * corelow.c (core_open): Ditto.
10712         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10713         * thread.c (info_threads_command): Ditto.
10714         (switch_to_thread): Ditto.
10715         * infrun.c (normal_stop): Ditto.
10716         (restore_selected_frame): Ditto.
10717         (restore_inferior_status): Ditto.
10718         * breakpoint.c (insert_breakpoints): Ditto.
10719         (watchpoint_check): Ditto.
10720         (bpstat_stop_status): Ditto.
10721         (do_enable_breakpoint): Ditto.
10722         * blockframe.c (flush_cached_frames): Ditto.
10723         (reinit_frame_cache): Ditto.
10724
10725 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10726
10727         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10728         maintainer.
10729
10730 2002-05-04  Jim Blandy  <jimb@redhat.com>
10731
10732         * gdbtypes.c (replace_type): Doc fix.
10733
10734 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10735
10736         * valprint.c (strcat_longest): Delete commented out function.
10737         Update copyright.
10738
10739 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10740
10741         * MAINTAINERS: Mark a29k as deleted.
10742         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10743         Move new configurations to the top.
10744         * configure.tgt: Remove a29k.
10745         * config/a29k/tm-vx29k.h: Delete.
10746         * config/a29k/vx29k.mt: Delete.
10747         * config/a29k/tm-a29k.h: Delete.
10748         * config/a29k/a29k-udi.mt: Delete.
10749         * config/a29k/a29k.mt: Delete.
10750         * a29k-tdep.c: Delete.
10751         * remote-udi.c: Delete.
10752         * remote-mm.c: Delete.
10753         * remote-eb.c: Delete.
10754         * remote-adapt.c: Delete.
10755         * Makefile.in: Remove obsolete code.
10756         * config/s390/s390x.mt: Ditto.
10757         * config/s390/s390.mt: Ditto.
10758         * config/sparc/sparclynx.mh: Ditto.
10759         * config/sparc/linux.mh: Ditto.
10760         * config/pa/hppaosf.mh: Ditto.
10761         * config/pa/hppabsd.mh: Ditto.
10762         * config/ns32k/nbsd.mt: Ditto.
10763         * config/mips/vr5000.mt: Ditto.
10764         * config/m68k/sun3os4.mh: Ditto.
10765         * config/m68k/nbsd.mt: Ditto.
10766         * config/m68k/m68klynx.mh: Ditto.
10767         * config/m32r/m32r.mt: Ditto.
10768         * config/i386/x86-64linux.mt: Ditto.
10769         * config/i386/nbsdelf.mt: Ditto.
10770         * config/i386/nbsd.mt: Ditto.
10771         * config/i386/i386lynx.mh: Ditto.
10772
10773 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10774
10775         * target.c (debug_print_register): New function.  Handle oversize
10776         registers.
10777         (debug_to_fetch_registers): Call.
10778         (debug_to_store_registers): Call.
10779
10780 2002-05-03  Jim Blandy  <jimb@redhat.com>
10781
10782         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10783         (read_type): Doc fix.
10784         * gdbtypes.c (replace_type): Doc fix.
10785
10786         * stabsread.c (multiply_defined_struct): New complaint.
10787         (read_struct_type): If the type we were passed isn't empty, or
10788         incomplete, don't read the new struct type into it; complain,
10789         and return the original type unchanged.  Take a new `type_code'
10790         argument, which is the type code for the new type.
10791         (read_type): Rather than storing the type's type code here, pass
10792         it as an argument to read_struct_type, and let that take care of
10793         storing it.  That way, we don't overwrite the original type code,
10794         so read_struct_type can use it to decide whether we're overwriting
10795         something we shouldn't.
10796         (complain_about_struct_wipeout): New function.
10797
10798 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10799
10800         * gdbarch.sh: Assert that gdbarch is non-NULL.
10801         * gdbarch.c: Regenerate.
10802
10803 2002-05-03  Jason Merrill  <jason@redhat.com>
10804
10805         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10806         and return NULL.
10807
10808 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10809
10810         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10811         (x86_64_dwarf2gdb_regno_map_length),
10812         (x86_64_dwarf2_reg_to_regnum): Added.
10813         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10814         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10815         (_initialize_x86_64_tdep): Synced with the change above.
10816         (x86_64_skip_prologue): Reformulated message.
10817
10818 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10819
10820         * f-exp.y: Also use new prev_lexptr variable
10821         to improve error reporting. Based on Michael Snyder
10822         2002-04-24 dated patch to c-exp.y.
10823         * jv-exp.y: Likewise.
10824         * m2-exp.y: Likewise.
10825
10826 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10827
10828         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10829         we are dealing with vectors.
10830
10831 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10832
10833         * config/m68k/tm-nbsd.h: Obvious fix,
10834         correct machine name.
10835
10836 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10837
10838         * p-typeprint.c (pascal_type_print_base): Add support
10839         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10840
10841 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10842
10843         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10844         for fondamental pascal 'char' type.
10845
10846 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10847
10848         * p-lang.h (is_pascal_string_type): Declaration changed,
10849         new sixth argument of type char ** added.
10850         * p-lang.c (is_pascal_string_type): Implementation
10851         changed. Args length_pos, length_size, string_pos, char_size
10852         can now be NULL. New argument arrayname set to the field
10853         name of the char array. Return value set to char array
10854         field index plus one.
10855         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10856         is_pascal_string_type function.
10857
10858 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10859
10860         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10861         <cagney@redhat.com> change.
10862         * gdbarch.c: Regenerate.
10863
10864 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10865
10866         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10867         before probing for a new one.  Detect errorenous gdbarch_init
10868         functions.
10869         * gdbarch.c: Regenerate.
10870
10871 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10872
10873         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10874         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10875         * config/v850/tm-v850.h: Ditto.  Update copyright.
10876
10877 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10878
10879         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10880         current_gdbarch.
10881
10882 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10883
10884         * arm-tdep.c: Whitespace clean-ups.
10885         (arm_skip_prologue): Fix thinko; two lines
10886         should have been removed as part of 4/24 change.
10887
10888 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10889
10890         * rs6000-tdep.c: Added comment describing how fpscr register
10891         numbers were chosen.
10892
10893 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10894
10895         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10896
10897 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10898
10899         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10900         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10901         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10902
10903 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10904
10905         From Louis Hamilton <hamilton@redhat.com>:
10906         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10907         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10908         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10909         not bfd-private xcoff data, to determine wordsize.
10910         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10911
10912 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10913
10914         GDB 5.2 released from 5.2 branch.
10915
10916 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10917
10918         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10919         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10920         (x86_64_register_info_table): Added comments with register numbers.
10921
10922 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10923
10924         * rs6000-tdep.c (rs6000_extract_return_value,
10925         rs6000_store_return_value): Handle returning vectors.
10926         (rs6000_gdbarch_init): Use
10927         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10928         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10929         New function.
10930         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10931         vectors.
10932         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10933         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10934
10935 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10936
10937         * hpread.c (hpread_psymtab_to_symtab_1,
10938         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10939         with fprintf_unfiltered (gdb_stderr,...).
10940
10941 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10942
10943         * remote-array.c (printf_monitor, write_monitor,
10944         array_insert_breakpoint, array_remove_breakpoint ):
10945         Replace fprintf (stderr,...
10946         with fprintf_unfiltered (gdb_stderr,....
10947         * remote-es.c: Likewise.
10948         * remote-os9k.c: Likewise.
10949         * remote-st.c: Likewise.
10950
10951 2002-04-28  Andreas Schwab  <schwab@suse.de>
10952
10953         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10954         linux-proc.o and gcore.o.
10955
10956 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10957
10958         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10959         code without frame pointers.
10960
10961 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10962
10963         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10964         ON_STACK is needed.
10965
10966 2002-04-26  Ben Elliston  <bje@redhat.com>
10967
10968         * target.c (do_xfer_memory): Correct reference to the new option
10969         "trust-readonly-sections".
10970
10971 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10972
10973         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10974         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10975         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10976         vectors.
10977         (read_array_type): Record the fact that this array type is really a
10978         vector (i.e. are passed in by value).
10979
10980 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10981
10982         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10983         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10984         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10985         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10986         * alpha-linux-tdep.c: Include frame.h.
10987         (alpha_linux_sigcontext_addr): New function.
10988         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10989         alpha_linux_sigcontext_addr.
10990         * alpha-osf1-tdep.c: Include gdbcore.h.
10991         (alpha_osf1_sigcontext_addr): New function.
10992         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10993         alpha_osf1_sigcontext_addr.
10994         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10995         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10996
10997 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10998
10999         * stack.c (selected_frame_level):
11000         (select_frame): Do not set selected_frame_level.
11001         * frame.h (selected_frame_level): Delete declaration.
11002
11003 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11004
11005         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11006         convert_from_func_ptr-addr when AIX / PowerOpen.
11007
11008 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11009
11010         * valops.c (hand_function_call): Call
11011         generic_save_call_dummy_addr.
11012         * frame.h (generic_save_call_dummy_addr): Declare.
11013         * blockframe.c (struct dummy_frame): Add fields call_lo and
11014         call_hi.
11015         (generic_find_dummy_frame): Check for PC in range call_lo to
11016         call_hi instead of entry_point_address.
11017         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11018         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11019         (generic_save_call_dummy_addr): New function.
11020
11021 2002-04-24  David S. Miller  <davem@redhat.com>
11022
11023         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11024         sparc_skip_prologue.
11025         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11026         information to find prologue when possible.
11027         (sparc_prologue_frameless_p): Call examine_prologue directly.
11028         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11029         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11030         second argument.
11031         (SKIP_PROLOGUE): Likewise.
11032
11033 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11034
11035         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11036         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11037         indicate that the condition it was testing is always true.
11038         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11039         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11040         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11041
11042 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11043
11044         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11045         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11046         tdep->jb_pc and tdep->jb_elt_size.
11047         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11048         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11049         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11050         * alpha-nat.c (get_longjmp_target): Remove.
11051         (JB_ELEMENT_SIZE): Ditto.
11052         (JB_PC): Ditto.
11053         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11054         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11055         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11056         to alpha_get_longjmp_target.
11057         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11058         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11059         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11060
11061 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11062
11063         * README: Update to GDB 5.2.
11064
11065 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11066
11067         * gdbarch.sh (LC_ALL): Set to `c'.
11068
11069 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11070
11071         * avr-tdep.c: Ran through gdb_indent.sh.
11072
11073 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11074
11075         * MAINTAINERS: Add myself as AVR maintainer.
11076         * NEWS: Note new target avr.
11077
11078 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11079
11080         * Makefile.in: Add support for AVR target.
11081         * configure.tgt: Add support for AVR target.
11082         * avr-tdep.c: New file
11083         * config/avr/avr.mt: New file.
11084
11085 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11086
11087         * MAINTAINERS: Add myself to write-after-approval.
11088
11089 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11090
11091         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11092         with fprintf_unfiltered (gdb_stderr,....
11093
11094 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11095
11096         Fix PR gdb/508.
11097         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11098
11099 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11100
11101         * p-exp.y: Also use new prev_lexptr variable
11102         to improve error reporting. Based on Michael Snyder
11103         2002-04-24 dated patch to c-exp.y.
11104
11105 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11106
11107         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11108         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11109         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11110         to 0.
11111         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11112         and struct value.
11113         (FUNCTION_START_OFFSET): Remove.
11114         (BREAKPOINT): Ditto.
11115
11116 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11117
11118         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11119         * NEWS: Ditto.
11120
11121 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11122
11123         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11124         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11125         alpha_linux_pc_in_sigtramp.
11126         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11127         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11128         alpha_osf1_pc_in_sigtramp.
11129         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11130         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11131         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11132         alphafbsd_pc_in_sigtramp.
11133         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11134         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11135         alphanbsd_pc_in_sigtramp.
11136         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11137         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11138
11139 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11140
11141         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11142
11143 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11144
11145         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11146         alphanbsd-tdep.c.
11147         (alphanbsd-nat.o): New dependency list.
11148         (alphanbsd-tdep.o): Ditto.
11149         * NEWS: Note new native NetBSD/alpha configuration.
11150         * alphanbsd-nat.c: New file.
11151         * alphanbsd-tdep.c: Ditto.
11152         * configure.host (alpha*-*-netbsd*): New host.
11153         * configure.tgt (alpha*-*-netbsd*): New target.
11154         * config/alpha/nbsd.mh: New file.
11155         * config/alpha/nbsd.mt: Ditto.
11156         * config/alpha/nm-nbsd.h: Ditto.
11157         * config/alpha/tm-nbsd.h: Ditto.
11158
11159 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11160
11161         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11162         (alpha-osf1-tdep.o): New dependency list.
11163         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11164         and skip_sigtramp_frame members.
11165         * alpha-linux-tdep.c: Include gdbcore.h.
11166         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11167         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11168         * alpha-osf1-tdep.c: New file.
11169         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11170         alpha-osf1-dep.c.
11171         (alpha_frame_past_sigtramp_frame): New function.
11172         (alpha_dynamic_sigtramp_offset): Ditto.
11173         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11174         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11175         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11176         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11177         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11178         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11179         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11180         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11181         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11182         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11183         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11184         to find_solib_trampoline_target.
11185         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11186         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11187         (SKIP_TRAMPOLINE_CODE): Remove.
11188         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11189         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11190         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11191         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11192         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11193         (PROC_SIGTRAMP_MAGIC): Ditto.
11194         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11195         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11196         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11197         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11198         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11199
11200 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11201
11202         * NEWS: Note that Alpha targets are now multi-arch.
11203
11204 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11205
11206         * parser-defs.h (prev_lexptr): New external variable.
11207         * parse.c (parse_exp_1): Set prev_lexptr to null before
11208         calling the language-specific parser.
11209         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11210         (yyerror): Use prev_lexptr in error reporting.
11211
11212 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11213
11214         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11215         * gregset.h: If FILL_FPXREGSET is defined, provide
11216         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11217         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11218         is defined, call fill_fpxregset.
11219
11220 2002-04-24  Roland McGrath  <roland@frob.com>
11221
11222         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11223         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11224         (supply_gregset, supply_fpregset): New functions.
11225
11226         * gnu-nat.c (gnu_find_memory_regions): New function.
11227         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11228         (gnu_xfer_memory): Add a cast.
11229
11230 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11231
11232         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11233         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11234         of argument regs ("str r(0123), [r11, #-nn"]).
11235         (arm_skip_prologue): Better handling for frameless functions.
11236         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11237         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11238
11239 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11240
11241         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11242         NUM_PSEUDO_REGS can be used.
11243
11244 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11245
11246         * arch-utils.h: Update copyright.
11247
11248         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11249         * gdbarch.h, gdbarch.c: Re-generate.
11250
11251         * inferior.h (IN_SIGTRAMP): Delete definition.
11252         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11253         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11254
11255         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11256         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11257         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11258         (find_proc_framesize): Ditto.
11259         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11260         (alpha_init_extra_frame_info): Ditto.
11261         * infrun.c (handle_inferior_event): Ditto.
11262         (handle_inferior_event): Ditto.
11263         (check_sigtramp2): Ditto.
11264         * blockframe.c (create_new_frame): Ditto.
11265         (get_prev_frame): Ditto.
11266         * ppc-linux-tdep.c: Update comments.
11267         * i386-linux-tdep.c: Update comments.
11268         * breakpoint.c (bpstat_what): Update comment.
11269
11270 2002-04-24  David S. Miller  <davem@redhat.com>
11271
11272         * i960-tdep.c (register_in_window_p): New function.
11273         (i960_find_saved_register): Use it instead of
11274         REGISTER_IN_WINDOW_P.
11275         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11276
11277         * symtab.h (find_stab_function_addr): Kill extern.
11278         * minsyms.c (find_stab_function_addr): Remove from here...
11279         * dbxread.c: ... to here, and mark it static.
11280
11281 2002-04-20  David S. Miller  <davem@redhat.com>
11282
11283         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11284         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11285
11286 2002-04-21  David S. Miller  <davem@redhat.com>
11287
11288         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11289         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11290         (vx_write_register): Likewise.
11291
11292 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11293
11294         * source.c (is_regular_file): New function.
11295         (openp): Check wether file to open is a regular file
11296         to avoid opening directories.
11297
11298 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11299
11300         * findvar.c (extract_signed_integer): Cast printf argument
11301         to suppress format warning.
11302         (extract_unsigned_integer): Likewise.
11303         * infcmd.c (registers_info): Likewise.
11304         * top.c (get_prompt_1): Likewise.
11305         * valops.c (value_assign): Likewise.
11306         * valprint.c (print_decimal): Likewise.
11307
11308 2002-04-22  H.J. Lu  (hjl@gnu.org)
11309
11310         * c-exp.y (typebase): Support
11311
11312         [long|long long|short] [signed|unsigned] [int|]
11313
11314         and
11315
11316         signed [long|long long|short] int
11317
11318 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11319
11320         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11321         and vax-tdep.h.
11322         * vax-tdep.h: New file.
11323         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11324         Make several routines static.
11325         (vax_get_saved_register): New function.
11326         (vax_gdbarch_init): New function.
11327         (_initialize_vax_tdep): Register vax_gdbarch_init.
11328         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11329         Remove macros now under the control of gdbarch.
11330
11331 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11332
11333         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11334         Some whitespace and coding standards tweaks.
11335
11336 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11337
11338         * vax-tdep.c: Include regcache.h.
11339         (vax_call_dummy_words): New.
11340         (sizeof_vax_call_dummy_words): New.
11341         (vax_fix_call_dummy): New function.
11342         (vax_saved_pc_after_call): Ditto.
11343         * config/vax/tm-vax.h: Don't include regcache.h.
11344         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11345         (CALL_DUMMY): Remove.
11346         (CALL_DUMMY_WORDS): Define.
11347         (SIZEOF_CALL_DUMMY_WORDS): Define.
11348         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11349
11350 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11351
11352         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11353
11354 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11355
11356         * vax-tdep.c (vax_frame_chain): New function.
11357         (vax_push_dummy_frame): Ditto.
11358         (vax_pop_frame): Ditto.
11359         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11360         (FRAMELESS_FUNCTION_INVOCATION): Use
11361         generic_frameless_function_invocation_not.
11362         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11363         (POP_FRAME): Use vax_pop_frame.
11364
11365 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11366
11367         * vax-tdep.c (vax_store_struct_return): New function.
11368         (vax_extract_return_value): Ditto.
11369         (vax_store_return_value): Ditto.
11370         (vax_extract_struct_value_address): Ditto.
11371         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11372         vax_store_struct_return.
11373         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11374         (STORE_RETURN_VALUE): Use vax_store_return_value.
11375         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11376
11377 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11378
11379         * vax-tdep.c (vax_frame_saved_pc): New function.
11380         (vax_frame_args_address_correct): Ditto.
11381         (vax_frame_args_address): Ditto.
11382         (vax_frame_locals_address): Ditto.
11383         (vax_frame_num_args): Move code to be in proximity to
11384         other frame-related functions.
11385         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11386         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11387         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11388         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11389         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11390
11391 2002-04-22  H.J. Lu  (hjl@gnu.org)
11392
11393         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11394         includedir.
11395
11396 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11397
11398         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11399         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11400         (FRAME_INIT_SAVED_REGS): New macro.
11401
11402 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11403
11404         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11405
11406 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11407
11408         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11409         where needed.
11410         (fetch_osf_core_registers): Likewise.
11411         (supply_gregset): Likewise.
11412
11413 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11414
11415         * symfile.h (get_section_index): Define.
11416         * symfile.c (get_section_index): New function.
11417         * mdebugread.c (SC_IS_SBSS): New macro.
11418         (SC_IS_BSS): Return true for the scBss storage class only, as
11419         the scSBss storage class refers to the .sbss section.
11420         (parse_partial_symbols): Discard the symbols which associated
11421         section does not exist.
11422         Make sure to use the .sbss section index for symbols which
11423         storage class is scBss, rather than using the .bss section index.
11424
11425 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11426
11427         * vax-tdep.c: Update copyright years.
11428         (vax_register_name): New function.
11429         (vax_register_byte): Ditto.
11430         (vax_register_raw_size): Ditto.
11431         (vax_register_virtual_size): Ditto.
11432         (vax_register_virtual_type): Ditto.
11433         * config/vax/tm-vax.h: Update copyright years.
11434         (REGISTER_NAMES): Remove.
11435         (REGISTER_NAME): Define.
11436         (REGISTER_BYTE): Use vax_register_byte.
11437         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11438         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11439         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11440
11441 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11442
11443         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11444         declaration
11445         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11446
11447 2002-04-21  David S. Miller  <davem@redhat.com>
11448
11449         * arch-utils.c (generic_prologue_frameless_p): Kill
11450         SKIP_PROLOGUE_FRAMELESS_P code.
11451         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11452         references.
11453         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11454         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11455         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11456         references.
11457         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11458         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11459         (sparc_gdbarch_init): Pass it to
11460         set_gdbarch_prologue_frameless_p.
11461
11462 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11463
11464         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11465         (alphabsd-nat.o): New dependency list.
11466
11467 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11468
11469         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11470         alphafbsd-tdep.c.
11471         (alpha-linux-tdep.o): New dependency list.
11472         (alphafbsd-tdep.o): Likewise.
11473
11474 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11475
11476         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11477         to here...
11478         * alpha-tdep.c: ...from here.
11479         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11480
11481 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11482
11483         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11484         prototype from here...
11485         * alpha-tdep.h: ...to here.
11486
11487 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11488
11489         * frame.h (selected_frame_level): Document as deprecated.
11490         (frame_relative_level): Declare.
11491         * stack.c (frame_relative_level): New function.
11492         (selected_frame_level): Document as deprecated.
11493         (select_frame): Do not set the selected_frame_level.
11494
11495         * stack.c (frame_info, record_selected_frame): Update.
11496         (frame_command, current_frame_command): Update.
11497         (up_silently_base, up_command, down_silently_base): Update.
11498         (down_command): Update.
11499         * inflow.c (kill_command): Update.
11500         * tracepoint.c (finish_tfind_command): Update.
11501         * corelow.c (core_open): Update.
11502         * thread.c (info_threads_command): Update.
11503         (do_captured_thread_select): Update.
11504         * infcmd.c (finish_command): Update.
11505         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11506
11507 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11508
11509         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11510
11511 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11512
11513         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11514         type const.
11515
11516 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11517
11518         * alphafbsd-tdep.c: Update copyright years.  Include
11519         alpha-tdep.h.
11520         (alphafbsd_use_struct_convention): Make static.
11521         (alphafbsd_init_abi): New function.
11522         (_initialize_alphafbsd_tdep): New function.
11523         * config/alpha/tm-fbsd.h: Update copyright years.
11524         (USE_STRUCT_CONVENTION): Remove.
11525
11526 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11527
11528         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11529         an Alpha ABI variant.
11530         (alpha_abi_handler_list): Declare.
11531         (alpha_gdbarch_register_os_abi): New function.
11532         (alpha_gdbarch_init): Give registered ABI variant handlers a
11533         chance to tweak the gdbarch once we have set up defaults.
11534         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11535
11536 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11537
11538         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11539         to standard_coerce_float_to_double.
11540         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11541
11542 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11543
11544         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11545         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11546         from gdbarch_tdep rather than a constant.
11547         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11548         the default text address for all Alpha Unix ABIs.
11549         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11550         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11551
11552 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11553
11554         * alpha-tdep.h: New file.  Includes several Alpha target constants
11555         taken from...
11556         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11557         let gdbarch deal with.
11558         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11559         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11560         to dependency list.
11561         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11562         Alpha target register names.
11563         * alphabsd-nat.c: Likewise.
11564         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11565         Alpha target register names.  Make serveral routines static.
11566         (alpha_get_saved_register): New function.
11567         (alpha_abi_names): New.
11568         (process_note_abi_tag_sections): New function.
11569         (get_elfosabi): New function.
11570         (alpha_gdbarch_init): New function.
11571         (alpha_dump_tdep): New function.
11572         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11573
11574 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11575
11576         * frame.c (find_saved_register): Delete #ifdef
11577         HAVE_REGISTER_WINDOWS code.
11578         * config/sparc/tm-sparc.h: Update comments.
11579         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11580
11581 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11582
11583         * i960-tdep.c (i960_find_saved_register): New function.
11584         (i960_get_saved_register): New function.
11585         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11586         (i960_get_saved_register): Declare.
11587         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11588
11589 2002-04-20  David S. Miller  <davem@redhat.com>
11590
11591         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11592
11593 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11594
11595         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11596         instead of NUM_PSEUDO_REGS.
11597
11598 2002-04-20  David S. Miller  <davem@redhat.com>
11599
11600         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11601         GDB_MULTI_ARCH_PARTIAL
11602         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11603         define, let tm-sp64.h do it.
11604
11605 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11606
11607         * frame.c (find_saved_register): Avoid a NULL pointer
11608         dereference and actually walk the frame list.
11609
11610 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11611
11612         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11613         sorted in most most-recent-used order.  Document.
11614         * gdbarch.h, gdbarch.c: Regenerate.
11615
11616 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11617
11618         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11619         instead of ->prev.
11620         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11621         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11622         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11623         instead of ->prev.
11624
11625 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11626
11627         Fix PR gdb/471.
11628         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11629         (build_builtin_type_vec128): Ditto.
11630         (append_composite_type_field): Fix calculation of type length in
11631         union case.
11632
11633 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11634
11635         * config/djgpp/README: Update.
11636
11637         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11638         compiler warnings.
11639
11640 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11641
11642         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11643         (alpha_setup_arbitrary_frame): ...to this.
11644         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11645         for alpha_setup_arbitrary_frame.
11646
11647 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11648
11649         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11650         * gdbarch.h, gdbarch.c: Regenerate.
11651
11652         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11653         * target.h (memory_breakpoint_from_pc): Update declaration.
11654         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11655
11656         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11657         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11658         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11659         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11660         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11661         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11662         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11663         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11664         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11665         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11666         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11667         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11668
11669         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11670         const pointer.
11671         * monitor.c (monitor_insert_breakpoint): Ditto.
11672         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11673
11674         * config/mcore/tm-mcore.h: Update copyright.
11675         * mem-break.c: Ditto.
11676         * xstormy16-tdep.c: Ditto.
11677
11678 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11679
11680         * p-exp.y: Add precedence rule for '^' token.
11681         This removes the shift/reduce conflicts.
11682         Remove the comment concerning these shift/reduce conflicts.
11683
11684 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11685
11686         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11687         (registers_powerpc_nofp): New register set for processors
11688         without floating point unit.
11689
11690 2002-04-18  David S. Miller  <davem@redhat.com>
11691
11692         * MAINTAINERS: Add myself to write-after-approval.
11693
11694 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11695
11696         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11697
11698 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11699
11700         * rs6000-tdep.c (frame_initial_stack_address): Use
11701         frame_register_read to read the alloca_reg.
11702
11703 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11704
11705         * frame.c (find_saved_register): Find saved registers in the next
11706         not prev frame.
11707         Fix PR gdb/365.
11708
11709 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11710
11711         * gdbarch.sh (LANG): Set to ``c''.
11712
11713 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11714
11715         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11716
11717 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11718
11719         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11720         Update copyright.
11721
11722         * hpread.c (hpread_get_lntt): Add declaration.
11723         Also fix PR gdb/391.
11724
11725 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11726
11727         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11728         * aclocal.m4, configure: Re-generate.
11729         Fix PR gdb/391.
11730
11731 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11732
11733         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11734         instead of tm_print_insn.
11735
11736 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11737
11738         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11739
11740 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11741
11742         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11743         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11744         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11745
11746 2002-04-12  Don Howard  <dhoward@redhat.com>
11747
11748         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11749         max_user_call_depth.
11750         (init_cmd_lists): Initialize the new value;
11751         * cli/cli-script.c (execute_user_command): Limit the call depth of
11752         user defined commands.  This avoids a core-dump when user commands
11753         are infinitly recursive.
11754
11755 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11756
11757         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11758         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11759         from tdep struct instead of DEFAULT_LR_SAVE.
11760         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11761         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11762         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11763
11764 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11765
11766         * Remote.c: Spelling fix.
11767         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11768         If no symbol found for "sbrk", try "_sbrk".
11769         (make_output_phdrs): Use bfd_section_name.
11770         (gcore_copy_callback): Use bfd_section_name.
11771         * eval.c: Indentation fix-ups.
11772         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11773         in case it gets applied to an address that is already
11774         in the instruction space.
11775         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11776         * symfile.c: Fix indentation, long lines.
11777         * source.c: White space fix-up.
11778
11779 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11780
11781         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11782         * frame.c (frame_register_read): New function.  Return non-zero on
11783         success.
11784         (read_relative_register_raw_bytes_for_frame): Delete.
11785         (read_relative_register_raw_bytes): Delete.
11786         * frame.h (frame_register_read): Declare.
11787         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11788         * sh-tdep.c: Ditto.
11789         * infcmd.c (do_registers_info): Ditto.
11790         * hppa-tdep.c: Ditto.
11791         * rs6000-tdep.c: Ditto.
11792         * h8500-tdep.c: Ditto.
11793         * mips-tdep.c: Ditto.
11794         * h8300-tdep.c: Ditto.
11795         * z8k-tdep.c: Ditto.
11796
11797 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11798
11799         From Jimi X <jimix@watson.ibm.com>:
11800         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11801         64-bit SysV ABI.
11802
11803 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11804
11805         From Jimi X <jimix@watson.ibm.com>:
11806         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11807         bfd info.
11808
11809 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11810
11811         From Jimi X <jimix@watson.ibm.com>:
11812         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11813         register sets for these processor variants.
11814
11815 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11816
11817         * regformats/reg-ppc.dat: Support FPSCR.
11818
11819 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11820
11821         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11822         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11823         Add fpscr as an invalid/unfetchable register.
11824         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11825         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11826         (fill_fpregset): Add support for register fpscr.
11827         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11828         (fill_gregset): Account for the fact that register ``mq'' might
11829         not exist.
11830         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11831         (registers_power): Add fpscr to register set at slot 71.
11832         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11833         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11834
11835 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11836
11837         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11838         * configure: Regenerate.
11839         * config.in: Regenerate.
11840         * acconfig.h: Add define for _SYSCALL32.
11841         * core-sol2.c: Remove #define _SYSCALL32.
11842         * solib-legacy.c: Remove #define _SYSCALL32.
11843
11844 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11845
11846         * stack.c (select_frame): Cleanup internal error message, do not
11847         use %p.
11848
11849 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11850
11851         * stack.c (select_frame): Check that selected_frame and the
11852         specified level are as expected.
11853         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11854         Update copyright.
11855         * frame.h (struct frame_info): Add field `level'.  Update
11856         copyright.
11857         Work-in-progress PR gdb/464.
11858
11859 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11860
11861         * maint.c (maint_print_section_info): Rename print_section_info.
11862         (print_bfd_section_info, print_objfile_section_info): Update.
11863         * inferior.h (struct gdbarch): Add opaque declaration.
11864         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11865         * gdbarch.h: Regenerate.
11866
11867 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11868
11869         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11870         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11871         (kernel_u_size): Added.
11872         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11873         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11874
11875 2002-04-04  Jim Ingham  <jingham@apple.com>
11876
11877        * valarith.c (find_size_for_pointer_math): New function, either returns
11878        the size for a pointer's target, returns 1 for void *, or errors for
11879        incomplete types.
11880        (value_add, value_sub): use find_size_for_pointer_math.
11881
11882 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11883
11884         * linux-low.c (linux_look_up_symbols): New hook.
11885         (linux_target_ops): Add linux_look_up_symbols.
11886         * remote-utils.c (decode_address): New function.
11887         (look_up_one_symbol): New function.
11888         * server.c (handle_query): Call target look_up_symbols hook.
11889         * server.h (look_up_one_symbol): Add prototype.
11890         * target.h (struct target_ops): Add look_up_symbols hook.
11891
11892 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11893
11894         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11895         override FP_REGNUM with frame->fp.  Update copyright.
11896         * parse.c (num_std_regs, std_regs): Delete.
11897         (target_map_name_to_register): Do not search std_regs.  Update
11898         function description.
11899         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11900         declarations.  Update copyright.
11901         Fix PR gdb/251.
11902
11903 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11904
11905         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11906         after the last symbol in a block.
11907
11908 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11909
11910         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11911         is non zero as a found symbol.
11912
11913 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11914
11915         * findvar.c: Include "builtin-regs.h".
11916         (value_of_register): Call value_of_builtin_reg when applicable.
11917         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11918         (target_map_name_to_register): Call
11919         builtin_reg_map_name_to_regnum.
11920         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11921         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11922         (builtin_regs_h): Define.
11923         (builtin-regs.o): New target.
11924         (findvar.o): Add $(builtin_regs_h).
11925         * builtin-regs.c, builtin-regs.h: New files.
11926         * std-regs.c: New file.
11927         Partial fix for PR gdb/251.
11928
11929 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11930
11931         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11932         it's no longer required.
11933
11934 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11935
11936         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11937
11938 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11939
11940         From Jimi X <jimix@watson.ibm.com>:
11941         * rs6000-tdep.c (rs6000_software_single_step): Use
11942         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11943         and size.  Use target_insert_breakpoint() and
11944         target_remove_breakpoint() to insert and remove breakpoints
11945         instead of explicit memory reads and writes.
11946
11947 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11948
11949         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11950         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11951         ELF_OBJECT_FORMAT ifdef.
11952
11953 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11954
11955         From Jimi X <jimix@watson.ibm.com>:
11956         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11957
11958 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11959
11960         From Jimi X <jimix@watson.ibm.com>:
11961         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11962         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11963
11964 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11965
11966         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11967         s/asprintf/xasprintf/.
11968         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11969
11970 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11971
11972         I believe Jeff Law denies responsability for this one:
11973         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11974         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11975         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11976         Work-around for PR gdb/366.
11977
11978 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11979
11980         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11981         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11982         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11983
11984 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11985
11986         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11987         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11988         information.
11989
11990 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11991
11992         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11993         maintainer.
11994
11995 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11996
11997         * README (Reporting Bugs in GDB): Document the bug web page as the
11998         prefered way of submitting bugs.
11999         Fix PR gdb/402.
12000
12001 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12002
12003         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12004         -1.  Update comment.
12005         * gdbarch.h, gdbarch.c: Re-generate.
12006
12007 2002-04-07  Andreas Schwab  <schwab@suse.de>
12008
12009         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12010         buffer to regcache_collect.
12011
12012 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12013
12014         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12015         * gdbarch.c, gdbarch.h: Re-generate.
12016
12017 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12018
12019         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12020         declaration.  Fix -Werror.
12021
12022 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12023
12024         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12025         * gdbarch.c: Regenerate.
12026
12027 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12028
12029         * breakpoint.c (clear_command): Rewrite middle section to
12030         combine two loops with identical control conditions.
12031         Add a cleanup to eliminate a memory leak.
12032         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12033
12034 2002-04-05  H.J. Lu  (hjl@gnu.org)
12035
12036         * solib-svr4.c (bkpt_names): Add "__start".
12037
12038 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12039
12040         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12041         as test for 64 bit target.
12042
12043 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12044
12045         * h8500-tdep.c (h8500_write_fp): Delete function.
12046         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12047         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12048         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12049         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12050         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12051         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12052         (s390_write_fp):
12053         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12054         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12055         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12056         (d10v_write_fp): Delete function.
12057         * inferior.h (write_fp, generic_target_write_fp): Delete
12058         declarations.
12059         * regcache.c (generic_target_write_fp): Delete function.
12060         (write_fp): Delete function.
12061         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12062         * gdbarch.h, gdbarch.c: Regenerate.
12063         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12064         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12065         (sparc64_write_fp): Delete declaration.
12066         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12067         (h8500_write_fp): Delete declaration.
12068
12069 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12070
12071         * sparc-tdep.c (sparc64_write_fp): Delete.
12072         (sparc_push_dummy_frame): Replace write_fp call with code to store
12073         the FP directly.
12074         (sparc_gdbarch_init): Do not initialize write_fp.
12075
12076 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12077
12078         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12079         clause.
12080
12081 2002-03-29  Jim Blandy  <jimb@redhat.com>
12082
12083         * stack.c (get_selected_block): Add new argument `addr_in_block',
12084         used to return the exact code address we used to select the block,
12085         not just the block.
12086         * blockframe.c (get_frame_block, get_current_block): Same.
12087         * frame.h (get_frame_block, get_current_block,
12088         get_selected_block): Update declarations.
12089         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12090         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12091
12092 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12093
12094         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12095         warning message.
12096
12097 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12098
12099         * utils.c (xfullpath): New function.
12100         * defs.h (xfullpath): Add declaration.
12101         * source.c (openp): Use xfullpath in place of gdb_realpath to
12102         avoid resolving the basename part of filenames when the
12103         associated file is a symbolic link. This fixes a potential
12104         inconsistency between the filenames known to GDB and the
12105         filenames it prints in the annotations.
12106         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12107         to be able to match a filename with either the real filename, or
12108         the name of any symbolic link to this file.
12109         (lookup_partial_symtab): Ditto.
12110
12111 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12112
12113         * breakpoint.c: Add support for hardware breakpoints in overlays.
12114         (overlay_events_enabled): New state variable.
12115         (insert_breakpoints): Use overlay_events_enabled to decide
12116         whether to attempt to set a breakpoint at the overlay load addr.
12117         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12118         (remove_breakpoint): Use overlay_events_enabled to decide
12119         whether breakpoints need to be removed from overlay load addr.
12120         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12121         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12122         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12123         disable_overlay_breakpoints): Update overlay_events_enabled.
12124
12125 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12126
12127         * dwarf2read.c (struct function_range): New.
12128         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12129         (check_cu_functions): New.
12130         (read_file_scope): Initialize global function lists.
12131         Call dwarf_decode_line after processing children.
12132         (read_func_scope): Add to global function list.
12133         (dwarf_decode_lines): Call check_cu_functions everywhere
12134         record_line is called.  Call record_line with a linenumber
12135         of 0 to mark sequence ends.
12136
12137 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12138
12139         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12140         change sync with glibc.
12141
12142 2002-04-03  Jim Blandy  <jimb@redhat.com>
12143
12144         * configure.in: Call AC_C_INLINE.
12145         * configure: Regenerated.
12146
12147 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12148
12149         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12150         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12151
12152 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12153
12154         * NEWS: Mention gcore support on FreeBSD/i386.
12155
12156         * fbsd-proc.c: New file.
12157         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12158         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12159
12160         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12161         while statement.
12162
12163 2002-03-29  Jim Blandy  <jimb@redhat.com>
12164
12165         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12166         unescaped newlines in string literals, but newer ones don't.  So
12167         escape them.
12168
12169 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12170             Andrew Cagney <cagney@redhat.com>
12171
12172         * cli/cli-dump.c: New file.  Dump memory to file,
12173         restore file to memory.
12174         * cli/cli-dump.h: New file.
12175         * Makefile.in: Add rules, dependencies for cli-dump.o.
12176         * NEWS: Mention new commands.
12177
12178 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12179
12180         * symfile.c (symbol_file_add): Move test for null symbols to later.
12181
12182 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12183
12184         From veksler at il.ibm.com:
12185         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12186         the xstrduped original path.
12187         Fix PR gdb/417.
12188
12189 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12190
12191         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12192         * infcmd.c (_initialize_infcmd): Ditto.
12193         * language.c (_initialize_language): Ditto.
12194         * symfile.c (_initialize_symfile): Ditto.
12195         * top.c (_init_main): Ditto.
12196         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12197
12198 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12199
12200         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12201         vector registers handling.
12202         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12203         fields of frame data.
12204         (frame_get_saved_regs): Fill in information for AltiVec registers.
12205
12206 2002-03-27  Jim Blandy  <jimb@redhat.com>
12207
12208         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12209         a function; leave this macro here to invoke that function.
12210         (symbol_init_mangled_name): Declaration for that function.
12211         * symtab.c (symbol_init_mangled_name): New function.
12212
12213 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12214
12215         * valarith.c: Replace strerror with safe_strerror.
12216         * tracepoint.c: Ditto.
12217         * lin-lwp.c: Ditto.
12218         * go32-nat.c: Ditto.
12219         * inflow.c: Ditto.
12220         * gnu-nat.c: Ditto.
12221
12222 2002-03-27  Andreas Schwab  <schwab@suse.de>
12223
12224         * event-top.c (command_line_handler): Remove useless if.
12225
12226 2002-03-27  Andreas Jaeger  <aj@suse.de>
12227
12228         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12229         comment.
12230
12231 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12232
12233         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12234         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12235         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12236         (x86_64_linux_dr_get_status, supply_gregset),
12237         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12238         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12239         (x86_64_register_info_table): Add.
12240         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12241         (x86_64_register_raw_size, x86_64_register_virtual_type),
12242         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12243         general x86_64_register_info_table.
12244         (i386_gdbarch_init): gdbarch_register_bytes is now set
12245         dynamicaly during initialization.
12246         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12247         * gdbserver/linux-x86-64-low.c: Ditto.
12248
12249 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12250
12251         * gdbserver/server.c (main): Call target_signal_to_host_p
12252         and target_signal_to_host on signals received from the remote.
12253         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12254         target_signal_from_host on signals sent to the remote.
12255         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12256         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12257
12258 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12259
12260         * signals/signals.c: Include "server.h" in gdbserver build.
12261         (target_signal_from_name): Don't use STREQ.
12262         (_initialize_signals): Likewise.  Don't include function in
12263         gdbserver build.
12264
12265 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12266
12267         * signals.c: Moved to...
12268         * signals/signals.c: Here.
12269         * Makefile (signals.o): Update.
12270
12271 2002-03-26  Jeff Law (law@redhat.com)
12272
12273         * somread.c (som_symtab_read): Remove some commented out code and
12274         updated related comments.  Do not set the minimal symbol table to
12275         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12276         in a dynamic executable.
12277         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12278         where we are unable to find the minimal symbol for the given
12279         PC value.
12280
12281 2002-03-25  Jeff Law (law@redhat.com)
12282
12283         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12284
12285 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12286
12287         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12288
12289 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12290
12291         * command.h: Update copyright.
12292         (struct cmd_list_element): Replace definition with opaque
12293         declaration.
12294         (enum cmd_types): Document that it will eventually be moved to
12295         cli/cli-decode.h
12296         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12297         (MALLOCED_REPLACEMENT): Delete macro.
12298         * Makefile.in (cli_decode_h): Add $(command_h).
12299         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12300         * top.c: Include "cli/cli-decode.h".
12301         * completer.c: Include "cli/cli-decode.h".
12302         * maint.c: Include "cli/cli-decode.h".
12303         * cli/cli-decode.h: Include "command.h".
12304         (enum command_class): Delete.
12305         (enum cmd_types): Comment out.
12306         (enum cmd_auto_boolean): Delete.
12307         (enum var_types): Delete.
12308
12309 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12310
12311         * cli/cli-decode.c: Include "gdb_assert.h".
12312         (add_set_or_show_cmd): New static function.
12313         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12314         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12315         all fields, such as func, from the set command.
12316
12317 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12318
12319         * MAINTAINERS (sh-elf): Change warning flag to -w.
12320
12321 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12322
12323         * defs.h (error): Add printf format attribute.
12324         * thread-db.c (thread_from_lwp): Fix error format string.
12325         * stack.c (parse_frame_specification): Ditto.
12326         * cli/cli-decode.c (undef_cmd_error): Ditto.
12327         * scm-lang.c (scm_lookup_name): Ditto.
12328         * tracepoint.c (trace_error): Ditto.
12329         * remote-utils.c (usage): Ditto.
12330         * remote.c (compare_sections_command): Ditto.
12331         Fix PR gdb/328.
12332
12333 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12334
12335         * gdbtypes.c (append_composite_type_field): New function.
12336         (init_composite_type): New function.
12337         * gdbtypes.h (append_composite_type_field): Declare.
12338         (init_composite_type): Ditto.
12339
12340 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12341
12342         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12343         function.
12344         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12345         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12346         structure returning convention for SYSV ABI case, but not
12347         for GNU/Linux, FreeBSD, or NetBSD.
12348
12349 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12350
12351         * symtab.h (lookup_block_symbol): Add mangled_name argument
12352         to prototype.
12353
12354         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12355         with new mangled_name argument.
12356         * linespec.c (decode_line_1): Likewise.
12357         * valops (value_of_this): Likewise.
12358         * symtab.c (lookup_transparent_type): Likewise.
12359         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12360         (lookup_symbol): If we are given a mangled name, pass it down
12361         to lookup_symbol_aux.
12362         (lookup_block_symbol): If we are given a mangled name to check
12363         against, only return symbols which match it.
12364
12365 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12366
12367         * win32-nat.c (child_create_inferior): Check for proper shell to use
12368         here, in case the user changes it on the fly.
12369         (_initialize_inftarg): Remove shell path considerations.
12370
12371 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12372
12373         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12374         for gdbarch_max_register_raw_size and max_register_virtual_size.
12375         Adjust copyright year.
12376
12377 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12378
12379          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12380          in a function to cover the entire beginning of the function
12381          as well if it does not already.
12382
12383 2002-03-21  Tom Rix  <trix@redhat.com>
12384
12385         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12386         (rs6000_ptrace64): Renamed from ptrace64.
12387
12388 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12389
12390         * gdbserver/remote-utils.c (remote_open): Don't call
12391         getprotobyname, we're all using TCP here so just use
12392         IPPROTO_TCP.
12393         * gdbserver/gdbreplay.c (remote_open): Ditto.
12394
12395 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12396
12397         * regcache.c (_initialize_regcache): No need to call
12398         build_regcache() at this time; it gets called whenever
12399         the gdbarch changes.
12400
12401 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12402
12403         * sparc-nat.c:  Include sys/param.h where possible.
12404
12405 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12406
12407         Fix PR gdb/422.
12408         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12409         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12410         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12411         complex types.
12412         * stabsread.c (rs6000_builtin_type): Likewise.
12413         (read_sun_floating_type): Likewise.
12414
12415 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12416
12417         * stabsread.c (read_member_functions): Remove skip code for duplicate
12418         constructor/destructor methods.  Use standard parsing for these
12419         methods and just do not chain them to the list of methods after
12420         parsing.
12421
12422 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12423
12424         * coffread.c: Remove redundant static declarations.  Replace
12425         occurrences of `PTR' with `void *'.
12426         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12427         * top.h (quit_cover): Likewise.
12428         * defs.h (catch_errors): Likewise.
12429
12430 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12431
12432         * defs.h (XMALLOC): Define.
12433         * gdb-events.sh (XMALLOC): Delete macro.
12434         * gdb-events.c, gdb-events.h: Regenerate.
12435         * gdbarch.sh (XMALLOC): Delete macro.
12436         * gdbarch.c: Regenerate.
12437         * serial.c (XMALLOC): Delete macro.
12438         * ui-file.c (XMALLOC): Ditto.
12439         * ser-unix.h (XMALLOC): Ditto.
12440         * sh-tdep.c (XMALLOC): Ditto.
12441         * ui-out.c (XMALLOC): Ditto.
12442         * utils.c (XMALLOC): Ditto.
12443         * i386-tdep.c (XMALLOC): Ditto.
12444         * gdb-events.c (XMALLOC): Ditto.
12445         * d10v-tdep.c (XMALLOC): Ditto.
12446         * cli-out.c (XMALLOC): Ditto.
12447
12448         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12449         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12450         * ui-file.c, ui-out.c: Ditto.
12451
12452 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12453
12454         * command.h (struct cmd_list_element): Add field context.
12455         (set_cmd_context, get_cmd_context): Declare.
12456         * cli/cli-decode.h: Ditto.
12457         * cli/cli-decode.c (get_cmd_context): New function.
12458         (set_cmd_context): New function.
12459         (add_cmd): Initialize context.
12460         Part of fixing PR gdb/145 and PR gdb/146.
12461
12462 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12463
12464         * cli/cli-decode.c (cmd_type): New function.
12465         * command.h (cmd_type): Declare.
12466         * infrun.c (set_schedlock_func): Call function cmd_type.
12467         * kod.c (kod_set_os): Call cmd_type.
12468         * cris-tdep.c (cris_version_update): Use function cmd_type.
12469         (cris_mode_update, cris_abi_update): Ditto.
12470
12471         * command.h: (execute_cmd_post_hook): Declare.
12472         (execute_cmd_pre_hook): Declare.
12473         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12474         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12475         functions. Execute pre/post hook while ensuring that afterwords
12476         hook_in is cleared.
12477         * top.c (execute_command): Use execute_cmd_post_hook, and
12478         execute_cmd_pre_hook to execute pre/post commands.
12479         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12480         hook_stop_stub.
12481         (hook_stop_stub): Call execute_cmd_pre_hook.
12482
12483 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12484
12485         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12486         set'' and this leads to a core dump.  Move xstrdup of
12487         operating_system to after check that it is not NULL.
12488
12489 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12490
12491         * kod.c (kod_set_os): Remove unnecessary check that
12492         ``command->type'' is set_cmd.
12493
12494         * valprint.c (set_input_radix): Use input_radix.
12495         (set_output_radix): Use output_radix.
12496         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12497         isn't reverted.
12498
12499 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12500
12501         * value.h (struct value): Delete field ``substring_addr''.  Change
12502         aligner fields to force_doublest_align, force_longest_align,
12503         force_core_addr_align and force_pointer_aligh.
12504
12505         * value.h (struct value): Fix typo in above change.
12506
12507 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12508
12509         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12510         to fix internal_error from ``maintenance print architecture''.
12511
12512 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12513
12514         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12515         for gcc versions after gcc-2.8.1.
12516
12517 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12518
12519         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12520         for method resolution.  Restore adjustment of ``this'' pointer after
12521         calling value_struct_elt, which was accidentally removed during the
12522         HP merge.
12523
12524 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12525
12526         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12527         value_of_register.
12528         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12529         get_saved_register.
12530         * value.h (value_of_register): Update.
12531
12532 2002-03-14  Richard Henderson  <rth@redhat.com>
12533
12534         * configure.in: Detect declaration for canonicalize_file_name.
12535         * utils.c (canonicalize_file_name): Declare, if needed.
12536         (gdb_realpath): Prefer realpath if available and usable.
12537         * config.in, configure: Rebuild.
12538
12539 2002-03-14  Richard Henderson  <rth@redhat.com>
12540
12541         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12542         a constant array bound.
12543
12544         * MAINTAINERS: Add myself to write-after-approval.
12545
12546 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12547
12548         * symfile.c (syms_from_objfile): Return immediately if no syms.
12549         (symbol_file_add): Return immediately if no syms.
12550         (find_sym_fns): Return immediately if no syms.
12551
12552 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12553
12554         * gdbserver/remote-util.c (remote_open): Print remote-side's
12555         IP address when remote debugging over the network.
12556
12557 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12558
12559         * config/sparc/fbsd.mh: Fix copyright.
12560         * config/sparc/fbsd.mt: Likewise.
12561
12562 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12563
12564         * MAINTAINERS: Fix typo in name of gdb warnings option.
12565         (x86-64): Fix formating so that this can be parsed by awk.
12566
12567 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12568
12569         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12570         * defs.h: Include "gdb/signals.h".
12571         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12572
12573 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12574
12575         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12576         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12577         from x86-64-tdep.h
12578
12579 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12580             Don Howard <dhoward@redhat.com>
12581
12582         * mips-tdep.c (ST0_FR): Define.
12583         (mips2_fp_compat): New function, temporarily disabled.
12584         (mips_read_fp_register_single): New function.
12585         (mips_read_fp_register_double): New function.
12586         (mips_print_register): Use them.
12587         (do_fp_register_row): Likewise.
12588
12589 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12590
12591         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12592         approval''.
12593
12594 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12595
12596         * stabsread.c (read_member_functions): Fix is_stub test for
12597         static member functions, improve comment.
12598
12599 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12600
12601         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12602         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12603         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12604         commands that set boolean values.
12605         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12606         (arm_rdi_resume): Always initialize PC.
12607         (arm_rdi_open): Don't use rslt as a boolean.
12608         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12609         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12610         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12611         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12612
12613 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12614
12615         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12616         * configure: Rebuilt.
12617
12618 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12619
12620         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12621         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12622
12623 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12624
12625         * cli/cli-decode.c (set_cmd_completer): New function.
12626         * command.h (set_cmd_completer): Declare.
12627         * cli/cli-decode.h (set_cmd_completer): Ditto.
12628
12629         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12630         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12631         * win32-nat.c (_initialize_inftarg): Ditto.
12632         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12633         * proc-api.c (_initialize_proc_api): Ditto.
12634         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12635         * source.c (_initialize_source): Ditto.
12636         * exec.c (_initialize_exec): Ditto.
12637         * solib.c (_initialize_solib): Ditto.
12638         * top.c (init_main): Ditto.
12639         * tracepoint.c (_initialize_tracepoint): Ditto.
12640         * symfile.c (_initialize_symfile): Ditto.
12641         * printcmd.c (_initialize_printcmd): Ditto.
12642         * infcmd.c (_initialize_infcmd): Ditto.
12643         * corefile.c (_initialize_core): Ditto.
12644
12645 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12646
12647         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12648
12649 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12650
12651         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12652
12653 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12654
12655         * NEWS: Update headings, 5.2 has branched.
12656
12657 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12658
12659         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12660         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12661         (register_addr, REGISTER_RAW_SIZE): Likewise.
12662         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12663         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12664
12665 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12666
12667         * MAINTAINERS (x86-64): Add myself.
12668         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12669         changed value_ptr -> struct value *
12670
12671 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12672
12673         * configure.host (sparc64-*-freebsd): Add.
12674         * configure.tgt: Likewise.
12675         * config/sparc/fbsd.mh: New file.
12676         * config/sparc/fbsd.mt: Likewise.
12677         * config/sparc/nm-fbsd.h: Likewise.
12678         * config/sparc/tm-fbsd.h: Likewise.
12679
12680 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12681
12682         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12683         regformats/reg-s390x.dat.
12684
12685 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12686
12687         * utils.c: Add FIXME explaining true/false problem.
12688
12689 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12690
12691         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12692
12693 2002-02-28  Michael Chastain  <mec@shout.net>
12694
12695         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12696
12697 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12698
12699         * gdbserver/linux-s390-low.c: New file.
12700         * regformats/reg-s390.dat: New file.
12701         * regformats/reg-s390x.dat: New file.
12702         * gdbserver/configure.srv: Add S/390.
12703         * gdbserver/Makefile.in: Add S/390.
12704         * configure.tgt: Enable gdbserver for S/390.
12705
12706 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12707
12708         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12709         first line of the doc string for "info dos", except at the end of
12710         the sentence, since the short help stops at the first period.
12711
12712 2002-02-28  Jason Merrill  <jason@redhat.com>
12713
12714         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12715
12716 2002-02-27  Fred Fish  <fnf@redhat.com>
12717
12718         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12719         comment (dumy -> dummy).
12720
12721 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12722
12723         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12724
12725 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12726
12727       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12728
12729 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12730
12731         * gdbserver/acconfig.h: New file.
12732         * gdbserver/i387-fp.c: New file.
12733         * gdbserver/i387-fp.h: New file.
12734         * gdbserver/linux-x86-64.c: New file.
12735         * regformats/reg-x86-64.dat: New file.
12736         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12737         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12738         * gdbserver/configure.in: Add support for regsets.
12739         * gdbserver/config.in: Regenerate.
12740         * gdbserver/configure: Regenerate.
12741         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12742         * gdbserver/linux-low.h: New file.
12743         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12744         for regsets.
12745         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12746         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12747         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12748         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12749         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12750         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12751         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12752         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12753         * gdbserver/regcache.c (supply_register): New function.
12754         (supply_register_by_name): New function.
12755         (collect_register): New function.
12756         (collect_register_by_name): New function.
12757
12758 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12759
12760         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12761         (config.status): Add configure.srv dependency.
12762         (server_h): Add config.h dependency.
12763
12764 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12765
12766         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12767         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12768         * gdbserver/configure.srv: Change i386-*-linux* to use
12769         reg-i386-linux.o.
12770
12771 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12772
12773         * x86-64-tdep.c: Re-indent.  Update copyright date.
12774
12775 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12776
12777         From Michal Ludvig <mludvig@suse.cz>:
12778         * x86-64-tdep.c (value.h): Delete.
12779         (gdb_assert.h): Include.
12780         (x86_64_register_convert_to_virtual,
12781         x86_64_register_convert_to_raw ): Add check which lets only
12782         floating-point values to be converted.
12783         (value_push): Delete.
12784         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12785         (i386_gdbarch_init): Number of register_bytes fixed.
12786
12787 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12788
12789         * MAINTAINERS: Add x86-64 target.
12790
12791 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12792
12793         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12794         * osfsolib.c (solib_map_sections): Ditto.
12795         * irix5-nat.c (solib_map_sections): Ditto.
12796         * corelow.c (gdb_check_format): Ditto.
12797         * symfile.c (symfile_bfd_open): Ditto.
12798         * solib.c (solib_map_sections): Ditto.
12799         Fix PR gdb/354.
12800
12801 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12802
12803         * remote.c (_initialize_remote): By default, disable ``e'' and
12804         ``E'' step out-of-range packets.
12805
12806 2002-02-26  Andreas Schwab  <schwab@suse.de>
12807
12808         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12809         m68k_linux_frame_saved_pc.
12810         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12811         in_sigtramp.
12812         (SIGCONTEXT_PC_OFFSET): Remove.
12813         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12814         m68k_linux_sigtramp_saved_pc): New functions.
12815         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12816         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12817         (UCONTEXT_PC_OFFSET): Define.
12818         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12819         non-RT and RT signal trampolines.
12820
12821 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12822
12823         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12824         (TARGET_NBPG, STACK_END_ADDR): Delete
12825         (VARIABLES_INSIDE_BLOCK): Delete.
12826
12827 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12828
12829         * utils.c (perror_with_name): Make string parameter constant.
12830         (print_sys_errmsg): Ditto.
12831         (query): Ditto.
12832         * defs.h (perror_with_name): Update.
12833         (print_sys_errmsg): Update.
12834         (query): Update.
12835
12836 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12837
12838         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12839         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12840
12841 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12842
12843         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12844         if it already matches the current architecture from the exec file.
12845         Include arch-utils.h for gdbarch_info_init prototype.
12846         * Makefile.in (rs6000-nat.o): Update dependencies.
12847
12848 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12849
12850         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12851          list of exported variables.
12852
12853 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12854
12855         * gdbserver/configure.srv: New file.
12856         * gdbserver/configure.in: Use configure.srv instead
12857         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12858         from it.
12859         * gdbserver/configure: Regenerated.
12860         * gdbserver/terminal.h: New file.
12861         * gdbserver/Makefile.in: Update for configure changes.  Remove
12862         more unneeded include paths.
12863
12864 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12865
12866         From wiz at danbala:
12867         * config/sparc/tm-sp64.h: Fix grammar and typos.
12868         Fix PR gdb/287.
12869
12870 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12871
12872         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12873         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12874         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12875         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12876         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12877         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12878         * s390-tdep.c: Ditto.
12879         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12880         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12881         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12882         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12883         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12884         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12885         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12886         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12887         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12888         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12889         Fix PR gdb/378.
12890
12891 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12892
12893         * lin-thread.c: Delete file.
12894         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12895         to gdb_proc_service.h.
12896         * configure: Re-generate.
12897
12898         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12899         * serial.c (serial_open): Delete check for "ocd".
12900         Fix PR gdb/349.
12901
12902         * Makefile.in (linux-thread.o): Delete target.
12903         * linux-thread.c: Delete file.
12904
12905         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12906         renamed SH files to be consistent.
12907
12908         * symtab.c (sort_search_symbols): Use xfree.
12909
12910 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12911
12912         * arm-linux-tdep.c (arm_linux_init_abi): Register
12913         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12914         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12915         definition with undef, since we don't want the sysvr4 definition.
12916         (SKIP_TRAMPOLINE_CODE): Likewise.
12917
12918 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12919
12920         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12921
12922         * configure.in: (AC_CHECK_FUNCS) Added test for
12923         canonicalize_file_name Regenerated.
12924         * config.in, configure: Regenerated.
12925         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12926         defined use canonicalize_file_name.
12927
12928 2002-02-23  Michael Chastain  <mec@shout.net>
12929
12930         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12931
12932 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12933
12934         * README: Remove references to cygnus.com.
12935         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12936         dot com'' form.  Remove references to cygnus.com and sourceware.
12937
12938 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12939
12940         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12941         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12942         1003.1-2001 no longer allows "head -1".
12943         * gdb/Makefile.in (version.c): Likewise.
12944         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12945         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12946         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12947
12948 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12949
12950         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12951         * command.h (cmd_cfunc_eq): Declare.
12952         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12953
12954         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12955         ``struct cmd_list_element *''.
12956         * cli/cli-cmds.c (is_complete_command): Update.  Use
12957         cmd_cfunc_eq.
12958         * top.c (execute_command): Pass the command to
12959         is_complete_command.
12960         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12961
12962 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12963
12964         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12965         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12966         architecture defines.
12967         * s390-tdep.c (s390_gdbarch_init): Likewise.
12968
12969 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12970
12971         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12972         (arm_linux_push_arguments): Likewise.
12973         (arm_linux_init_abi): Register them.  Also register linux-specific
12974         call_dummy_words.
12975         (find_minsym_and_objfile): Use strcmp, not STREQ.
12976         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12977         (arm_linux_call_dummy_words): Delete declaration.
12978         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12979         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12980         declarations.
12981         (LOWEST_PC): Delete.
12982
12983 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12984
12985         * maint.c (print_section_info): Do not prepend `0x' to filepos
12986         output, it will be handled by local_hex_string_custom.
12987
12988 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12989
12990         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12991         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12992         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12993
12994 2002-02-22  Jim Blandy  <jimb@redhat.com>
12995
12996         Indicate that the bcache functions don't change the strings
12997         they're passed.
12998         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12999         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13000
13001 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13002
13003         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13004
13005 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13006
13007         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13008         find the complete path to a loaded DLL.
13009
13010 2002-02-21  Fred Fish  <fnf@redhat.com>
13011
13012         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13013         that marks the end of the range of a function, enter a line number
13014         entry that has a line number of zero and a PC offset that matches
13015         the end of the function.  This starts a range of PC's for which no
13016         line number information is known.
13017         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13018         PC's for which no line number info is found (line number is zero)
13019         then we didn't find any valid line information.
13020         * symtab.h: Document use of zero line number entry.
13021
13022 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13023
13024         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13025         (have_ptrace_getvrregs): Define for run time checks.
13026         (gdb_vrregset_t): New type for Altivec register handling.
13027         (fetch_register, store_register): Fetch/store altivec register
13028         when needed.
13029         (fetch_altivec_register, store_altivec_register): New functions.
13030         (supply_vrregset, fill_vrregset): New functions.
13031         (fetch_altivec_registers, store_altivec_registers): New functions.
13032         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13033         registers as well.
13034
13035 2002-02-21  Jiri Smid  <smid@suse.cz>
13036
13037         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13038
13039 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13040
13041         * Makefile.in (armnbsd-nat.o): Update dependencies.
13042         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13043         supply the integer register set.
13044         (supply_fparegset): New function.  Similar for FPA registers.
13045         (fetch_regs, fetch_fp_regs): Use them.
13046         (fetch_core_registers): Likewise.
13047         (fetch_elfcore_registers): New function.
13048         (arm_netbsd_elfcore_fns): New core-file type specification.
13049         (_initialize_arm_netbsd_nat): Register it.
13050
13051 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13052
13053         * armnbsd-nat.c: Include gdbcore.h.
13054         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13055         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13056         'void' to declaration, to shut up ARI.
13057         (fetch_core_registers): Make static.  Rewrite using supply_register.
13058         (arm_netbsd_core_fns): New core-file type specification.
13059         (_initialize_arm_netbsd_nat): New function.
13060
13061 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13062
13063         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13064         value.
13065
13066 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13067
13068         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13069         fails.
13070
13071 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13072
13073         * jv-exp.y (parse_number): Change type of implicit longs
13074         to builtin_type_uint64.
13075
13076 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13077
13078         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13079         to be an integer instead of a `union wait'.
13080
13081 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13082
13083         * mips-linux-nat.c: Call the operating system GNU/Linux.
13084         * mips-linux-tdep.c: Likewise.
13085         * mips-tdep.c: Likewise.
13086
13087 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13088
13089         Fix PR gdb/265.
13090         * jv-exp.y (parse_number): Handle 64-bit integers.
13091
13092 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13093
13094         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13095         AC_STDC_HEADERS to AC_HEADER_STDC.
13096         * gdbserver/configure: Regenerated.
13097
13098 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13099
13100         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13101         is defined.
13102         * sparc-tdep.c (get_longjmp_target): Likewise.
13103
13104 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13105
13106         * News: Add news about ARM and Multi-arch.  Mention the new target
13107         arm*-*-netbsd*.
13108
13109 2002-02-19  Jim Blandy  <jimb@redhat.com>
13110
13111         * stabsread.c (error_type_complaint): Improve error message.
13112
13113 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13114
13115         * gdbserver/README: Update documentation.
13116         * gdbserver/configure.in: Update configury to match documentation.
13117         * gdbserver/Makefile.in: Likewise.
13118         * gdbserver/configure: Regenerated.
13119         * gdbserver/aclocal.m4: New file, generated by aclocal.
13120         * gdbserver/config.in: New file, generated by autoheader.
13121
13122 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13123
13124         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13125         armnbsd-nat.c.
13126
13127 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13128
13129         * arm-tdep.h (enum arm_float_model): New enum.
13130         (struct gdbarch_tdep): Add fp_model.
13131         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13132         up floating-point conversions until we know the floating-point model
13133         in use by the inferior.  Don't complain about being unable to
13134         determine the ABI of the inferior when we don't have one.
13135         (arm_extract_return_value): Support different floating-point models.
13136         (arm_store_return_value): Likewise.
13137         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13138         ARM_FLOAT_SOFT.
13139         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13140
13141 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13142
13143         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13144         of ``current_gdbarch''.
13145
13146 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13147
13148         * armnbsd-nat.c : ANSIfy all function declarations.
13149         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13150         (fetch_inferior_registers): Re-implement in terms of above.
13151         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13152         (store_inferior_registers): Re-implement in terms of above.
13153
13154 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13155
13156         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13157         kernel.
13158         * arm-linux-tdep.c: Likewise.
13159         * config/arm/tm-linux.h: Likewise.
13160
13161 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13162
13163         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13164         * config/arm/nbsd.mt (TM_FILE): Delete.
13165         * config/arm/tm-nbsd.h: Delete.
13166
13167 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13168
13169         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13170         Initialize CALL_DUMMY_LENGTH.
13171
13172 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13173
13174         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13175         function.
13176         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13177         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13178         defines one thing and that is incorrect for this port.
13179         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13180
13181 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13182
13183         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13184
13185 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13186
13187         * win32-nat.c (display_selector): New function. Displays information
13188         about the information returned by GetThreadSelectorEntry API function.
13189         (display_selectors): New function. Displays the infomation of
13190         the selector given as argument, or of CS, DS ans FS selectors
13191         if no argument is given.
13192         ( _initialize_inftarg): Add "w32" as info prefix command.
13193         Add "info w32 selector" as command calling display_selectors.
13194
13195 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13196
13197         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13198         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13199         if not defined.
13200
13201 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13202
13203         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13204
13205 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13206
13207         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13208         (arm_fix_call_dummy): Call it.
13209         (arm_call_dummy_breakpoint_offset): Delete.
13210         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13211         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13212
13213 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13214
13215         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13216         Default to func_frame_chain_valid.
13217         * gdbarch.h, gdbarch.c: Re-generate.
13218         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13219
13220 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13221
13222         * ppc-linux-nat.c: Update copyright.
13223         (fetch_register, store_register): Add tid parameter, don't compute
13224         tid here.
13225         (fetch_ppc_registers, store_ppc_registers): Add tid
13226         parameter. Pass it along to callees.
13227         (fetch_inferior_registers, store_inferior_registers): Compute tid
13228         here, and pass it to calleed functions.
13229         (fill_gregset, supply_fpregset): Clean up formatting.
13230
13231 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13232
13233         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13234         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13235
13236 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13237
13238         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13239         * gdbarch.c gdbarch.h: Regenerate.
13240         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13241         function.
13242         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13243         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13244         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13245
13246         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13247         * arm-tdep.c (arm_get_longjmp_target): New function.
13248         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13249         this to a positive value register arm_get_longjmp_target as the
13250         longjmp handler.
13251         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13252         (arm_linux_init_abi): Set up longjmp description in tdep.
13253         * armnbsd-nat.c (get_longjmp_target): Delete.
13254         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13255         description in tdep.
13256         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13257         (get_longjmp_target): Delete declaration.
13258         (GET_LONGJMP_TARGET): Delete.
13259         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13260         (GET_LONGJMP_TARGET): Delete.
13261
13262 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13263
13264         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13265         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13266         of ``current_gdbarch''.
13267
13268 2002-02-17  Tom Tromey  <tromey@redhat.com>
13269
13270         * cli/cli-cmds.c (compare_strings): New function.
13271         (complete_command): Only print each unique item once.
13272         * completer.h (complete_line): Declare.
13273         * completer.c (complete_line): New function.
13274         (line_completion_function): Use it.
13275
13276 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13277
13278         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13279         * gdbarch.h, gdbarch.c: Re-generate.
13280
13281 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13282
13283         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13284
13285 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13286
13287         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13288         * valops.c (value_arg_coerce): Don't take the address of a reference
13289         to convert an argument to a reference.
13290
13291 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13292
13293         * win32-nat.c (get_image_name): New function.
13294         (handle_load_dll): Use get_image_name function.
13295         (get_child_debug_event): Avoid registering debug events until possibly
13296         execed process is started.
13297         (child_create_inferior): Allow invocation via shell so that command
13298         line redirection, etc.  works ok.
13299         (_initialize_inftarg): Add new command: "set shell" to control whether
13300         a shell is used to start a process.
13301
13302 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13303
13304         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13305         instead of find_register_by_number.
13306         (cannot_store_register): Likewise.
13307
13308 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13309
13310         * dwarf2read.c: Replace fprintf (stderr, ...) by
13311         fprintf_unfiltered (gdb_stderr, ...).
13312
13313 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13314
13315         * gdbserver/gdbserver.1: Document --attach.
13316
13317 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13318
13319         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13320         descriptions.
13321         * arm-tdep.c (arm_default_arm_le_breakpoint)
13322         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13323         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13324         traditional breakpoint defines.
13325         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13326         (arm_gdbarch_init): Initialize new breakpoint variables.
13327         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13328         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13329         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13330         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13331         code out to ...
13332         (arm_netbsd_init_abi_common): ... here; new function.
13333         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13334         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13335         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13336         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13337
13338 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13339
13340         * arm-tdep.h (enum arm_abi): New enum.
13341         (struct gdbarch_tdep): New structure.
13342         (LOWEST_PC): Provide a default.
13343         (arm_gdbarch_register_os_abi): Declare new function.
13344         * arm-tdep.c (arm_abi_names): New array.
13345         (process_note_abi_tag_sections): New function.
13346         (get_elfosabi): New function.
13347         (arm_gdbarch_register_os_abi): New function.
13348         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13349         support for that ABI has been built in, then call the appropriate
13350         configuration routine.  Use gdbarch_num_regs() to get the number
13351         of registers.
13352         (arm_dump_tdep): New function.
13353         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13354         place-holder functions.
13355         (_initialize_arm_tdep): Register them.
13356         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13357
13358         * armnbsd-tdep.c: New file.
13359         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13360         * config/arm/nbsd.mt (TDEPFILES): Add it.
13361         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13362
13363         * armnbsd-nat.c: Include regcache.h.
13364         * Makefile.in (armnbsd-nat.o): Update dependency list.
13365
13366         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13367
13368 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13369
13370         * gdbserver/Makefile.in: Fix typos in target rules.
13371
13372 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13373
13374         Fix part of PR gdb/267.
13375         * linespec.c (find_methods): Handle constructors specially for now.
13376
13377 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13378
13379         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13380         handling.
13381         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13382         standard_coerce_float_to_double().
13383
13384 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13385
13386         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13387         GDBINIT_FILENAME.
13388
13389 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13390
13391         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13392         find_variant_by_name, because it confuses the multiarch
13393         framework. Return NULL if there isn't an architecture with the
13394         user supplied name, instead of forcing a different one without
13395         recording the change with the multiarch machinery.
13396         (find_variant_by_name): Delete.
13397
13398 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13399
13400         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13401         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13402
13403 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13404
13405         * stack.c (print_frame_info_base): When calling
13406         print_frame_info_listing_hook, set current_source_symtab.
13407
13408 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13409
13410         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13411         and remove unused $(INCLUDE_DIR).
13412         Add regcache.c to OBS.
13413         Add generated register protocol files to clean target.
13414         Update dependencies for new objects, obsolete old target code.
13415
13416         * gdbserver/linux-low.c: Remove all platform-specific code to
13417         new files.  Remove various dead code.  Update to use regcache
13418         functionality.
13419         * gdbserver/remote-utils.c (fromhex): Add return statement
13420         to quiet warning.
13421         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13422         constant.
13423         (input_interrupt): Add integer parameter to match prototype
13424         of a signal handler.
13425         (outreg): Use register_data ().
13426         (prepare_resume_reply): Use gdbserver_expedite_regs.
13427         * gdbserver/server.c (main): Dynamically allocate own_buf because
13428         PBUFSIZ is no longer constant.  Use registers_to_string () and
13429         registers_from_string ().
13430         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13431         for error (), fatal (), and warning ().  Update definition of
13432         PBUFSIZ to use regcache functionality.  Add include guard.
13433         * gdbserver/utils.c (fatal): Add missing ``const''.
13434         (warning): New function.
13435
13436         * regformats/regdat.sh: Include "regcache.h" in generated files.
13437         Provide init_registers () function.
13438         * regformats/regdef.h: Add prototype for set_register_cache ().
13439         Add include guard.
13440
13441         * gdbserver/linux-arm-low.c: New file.
13442         * gdbserver/linux-i386-low.c: New file.
13443         * gdbserver/linux-ia64-low.c: New file.
13444         * gdbserver/linux-m68k-low.c: New file.
13445         * gdbserver/linux-mips-low.c: New file.
13446         * gdbserver/linux-ppc-low.c: New file.
13447         * gdbserver/linux-sh-low.c: New file.
13448
13449         * gdbserver/regcache.c: New file.
13450         * gdbserver/regcache.h: New file.
13451
13452         * gdbserver/low-linux.c: Removed obsolete file.
13453
13454 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13455
13456         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13457         * config/i386/linux.mt: Likewise.
13458         * config/ia64/linux.mt: Likewise.
13459         * config/m68k/linux.mh: Likewise.
13460         * config/powerpc/linux.mh: Likewise.
13461         * config/mips/linux.mt: Likewise.
13462
13463         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13464
13465         * config/i386/i386lynx.mh: Mark gdbserver variables
13466         as (currently) obsolete for this target.
13467         * config/i386/nbsd.mt: Likewise.
13468         * config/i386/nbsdelf.mt: Likewise.
13469         * config/m32r/m32r.mt: Likewise.
13470         * config/m68k/m68klynx.mh: Likewise.
13471         * config/m68k/nbsd.mt: Likewise.
13472         * config/m68k/sun3os4.mh: Likewise.
13473         * config/mips/vr5000.mt: Likewise.
13474         * config/ns32k/nbsd.mt: Likewise.
13475         * config/pa/hppabsd.mh: Likewise.
13476         * config/pa/hppaosf.mh: Likewise.
13477         * config/powerpc/nbsd.mt: Likewise.
13478         * config/rs6000/rs6000lynx.mh: Likewise.
13479         * config/s390/s390.mt: Likewise.
13480         * config/s390/s390x.mt: Likewise.
13481         * config/sparc/sparclynx.mh: Likewise.
13482         * config/sparc/sun4os4.mh: Likewise.
13483         * config/i386/x86-64linux.mt: Likewise.
13484         * config/sparc/linux.mh: Likewise.
13485
13486 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13487
13488         * configure.tgt: Configure gdbserver only for known working
13489         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13490         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13491         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13492         * configure: Regenerated.
13493
13494 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13495
13496         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13497
13498         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13499         (default_gcore_mach): Just return 0, work around a problem in bfd.
13500         (default_gcore_target): OK to return NULL if exec_bfd is null.
13501         (make_mem_sec): Use a cast, avoid a warning.
13502
13503         * procfs.c (find_memory_regions_callback): Use a cast instead of
13504         calling host_pointer_to_address (which complains if
13505         sizeof (host pointer) != sizeof (target pointer)).
13506         (procfs_make_note_section): Avoid overflow in psargs string.
13507
13508         * procfs.c (procfs_make_note_section): Make the default
13509         implementation return an error.
13510
13511 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13512
13513         * procfs.c (procfs_make_note_section): Provide a default definition
13514         (for alpha-dec-osf4.0f). Fix typos.
13515
13516 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13517
13518         * linux-proc.c: Add include of regcache.h.
13519         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13520
13521 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13522
13523         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13524         * memattr.c (create_mem_region): Disallow useless empty region.
13525         Regions are half-open intervals, so allow [A..B) [B..C) as
13526         non-overlapping.
13527
13528 2002-02-13  Michael Chastain <mec@shout.net>
13529
13530         * defs.h: Kill CONST_PTR.
13531         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13532         * c-lang.c (c_builtin_types): Likewise.
13533         * ch-lang.c (ch_builtin_types): Likewise.
13534         * f-lang.c (f_builtin_types): Likewise.
13535         * language.c (unknown_builtin_types): Likewise.
13536         * m2-lang.c (m2_builtin_types): Likewise.
13537         * p-lang.c (pascal_builtin_types): Likewise.
13538         * scm-lang.c (c_builtin_types): Likewise.
13539
13540 2002-02-13  Keith Seitz  <keiths@redhat.com>
13541
13542         * arm-tdep.h (arm_get_next_pc): Add declaration.
13543
13544 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13545
13546         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13547         with other related struct-returning functions.
13548         (arm_extract_struct_value_address): New function.
13549         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13550         initialize float_format, double_format and long_double_format as
13551         appropriate to the endianness of the target.
13552         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13553         (arm_use_struct_convention): Delete declaration.
13554         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13555
13556 2002-02-13  Keith Seitz  <keiths@redhat.com>
13557
13558         * defs.h (core_addr_to_string_nz): New function.
13559
13560 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13561
13562         Apply missing bits of 2002-01-15 patch.
13563         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13564         (fill_fpregset): Use i387_fill_fsave.
13565
13566 2002-02-12  Keith Seitz  <keiths@redhat.com>
13567
13568         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13569         (core_addr_to_string_nz): New function.
13570
13571 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13572
13573         * arm-linux-nat.c: Really include arm-tdep.h.
13574         * config/arm/tm-linux.h (struct type, struct value): Declare.
13575
13576 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13577
13578         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13579         (gcore section): Ifdef for Solaris and Unixware only.
13580         (procfs_do_thread_registers): Unixware needs one lwpstatus
13581         per thread (not one prstatus or pstatus).
13582         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13583         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13584         once before iterating over threads.
13585
13586 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13587
13588         * arm-tdep.h: New file.
13589         * arm-tdep.c: Include arm-tdep.h.
13590         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13591         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13592         (arm_print_float_info, arm_register_type, convert_to_extended)
13593         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13594         (arm_extract_return_value, arm_register_name): Make static.
13595         (arm_software_single_step): Similarly.  Fix types in declaration.
13596         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13597         (arm_store_return_value, arm_store_struct_return): New functions.
13598         (arm_gdbarch_init): Register the above functions.  Also register
13599         call_dummy_start_offset, sizeof_call_dummy_words,
13600         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13601         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13602         max_register_virtual_size, register_size.  Set up
13603         prologue_cache.saved_regs here, rather than ...
13604         (_initialize_arm_tdep): ... here.
13605         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13606         declarations.
13607         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13608         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13609         (arm_print_float_info, arm_register_type, convert_to_extended)
13610         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13611         (arm_extract_return_value, arm_register_name): Delete declarations.
13612         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13613         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13614         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13615         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13616         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13617         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13618         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13619         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13620         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13621         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13622         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13623         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13624         interface.
13625         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13626         * remote-rdi.c remote-rdp.c: Likewise.
13627         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13628         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13629         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13630         definition.
13631
13632         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13633         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13634         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13635         from non-ARM_ prefixed definitions.
13636         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13637         all uses of above.
13638         * remote-rdi.c remote-rdp.c: Likewise.
13639         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13640
13641 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13642
13643         * arm-tdep.c (arm_frameless_function_invocation)
13644         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13645         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13646         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13647         (arm_pop_frame, arm_get_next_pc): Make static.
13648         (arm_gdbarch_init): Register above in gdbarch structure.
13649         (arm_read_fp): Renamed from arm_target_read_fp.
13650         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13651         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13652         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13653         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13654         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13655         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13656         (arm_pc_is_thumb_dummy): Delete declarations.
13657         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13658         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13659         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13660         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13661
13662 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13663
13664         * symtab.c (compare_search_syms): New function.
13665         (sort_search_symbols): New function.
13666         (search_symbols): Sort symbols after searching rather than
13667         before.
13668
13669 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13670
13671         * NEWS: Linux -> GNU/Linux.
13672
13673 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13674
13675         * gdbarch.sh: For for level one methods, disallow a definition
13676         when partially multi-arched.  Add comments explaining rationale.
13677         * gdbarch.h: Re-generate.
13678
13679 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13680
13681         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13682         multi-arch partial.
13683
13684 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13685
13686         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13687         field.  Use diff -u.
13688         * gdbarch.c: Re-generate.
13689
13690 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13691
13692         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13693         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13694         partial.
13695
13696 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13697
13698         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13699         multi-arch partial.
13700         (PUSH_ARGUMENTS): Switch to using predefault.
13701         * gdbarch.c: Regenerate.
13702
13703 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13704
13705         * valops.c (PUSH_ARGUMENTS): Delete definition.
13706         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13707         partial.  Default to default_push_arguments.
13708         * gdbarch.h, gdbarch.c: Regenerate.
13709
13710 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13711
13712         * defs.h (throw_exception): Rename return_to_top_level.  Update
13713         comments.
13714         * utils.c (error_stream, internal_verror, quit): Ditto.
13715         * top.c (throw_exception, catcher): Ditto.
13716         * sparclet-rom.c (sparclet_load): Ditto.
13717         * remote.c (interrupt_query, minitelnet): Ditto.
13718         * remote-sds.c (interrupt_query): Ditto.
13719         * remote-mips.c (mips_error, mips_kill): Ditto.
13720         * ocd.c (interrupt_query): Ditto.
13721         * monitor.c (monitor_interrupt_query): Ditto.
13722         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13723         * target.h: Update comment.
13724
13725         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13726
13727 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13728
13729         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13730         default_double_format.
13731         * gdbarch.h, gdbarch.c: Re-generate.
13732         * findvar.c (floatformat_unknown): Delete variable definition.
13733         * doublest.h (floatformat_unknown): Delete variable declaration.
13734
13735 2002-02-09  Jim Blandy  <jimb@redhat.com>
13736
13737         * stabsread.c (read_type): Add code to parse Sun's syntax for
13738         prototyped function types.
13739
13740 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13741
13742         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13743         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13744
13745 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13746
13747         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13748         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13749         now _initialize_xcoffsolib gets called again and overrides the
13750         commands from solib.c in a native configuration.
13751
13752 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13753
13754         * doublest.c (store_typed_floating): Don't try to return a value.
13755         Fixes PR gdb/290.
13756
13757 2002-02-08  Jim Blandy  <jimb@redhat.com>
13758
13759         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13760         is prototyped and has no arguments, print its argument list as
13761         `(void)'.
13762
13763 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13764
13765         * MAINTAINERS (write-after-approval): Add myself.
13766         (paper-trail): I've escaped!
13767
13768 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13769
13770         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13771         changes.
13772         (_initialize_check_for_gdb_ini): Ditto.
13773
13774 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13775
13776         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13777         xaprintf -> xasprintf.
13778
13779 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13780
13781         * win32-nat.c: Remove use of printf and sprintf functions.
13782
13783 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13784
13785         * arm-tdep.c (arm_frame_chain_valid): Make static.
13786         (arm_push_arguments): Likewise.
13787         (arm_gdbarch_init): New function.
13788         (_initialize_arm_tdep): Call it.
13789         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13790         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13791         (FRAME_CHAIN_VALID): Delete.
13792         (arm_frame_chain_valid): Delete declaration.
13793         (PUSH_ARGUMENTS): Delete.
13794         (arm_push_arguments): Delete declaration.
13795         (CALL_DUMMY_P): Delete.
13796
13797 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13798             Corinna Vinschen  <vinschen@redhat.com>
13799
13800         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13801         on builtin float types.
13802
13803 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13804
13805         * utils.c: Include <curses.h> before "bfd.h".
13806         * tui/tui-hooks.c: Likewise.
13807         * tui/tui.c: Likewise.
13808         * tui/tuiCommand.c: Likewise.
13809         * tui/tuiData.c: Likewise.
13810         * tui/tuiDataWin.c: Likewise.
13811         * tui/tuiDisassem.c: Likewise.
13812         * tui/tuiGeneralWin.c: Likewise.
13813         * tui/tuiIO.c: Likewise.
13814         * tui/tuiLayout.c: Likewise.
13815         * tui/tuiRegs.c: Likewise.
13816         * tui/tuiSource.c: Likewise.
13817         * tui/tuiSourceWin.c: Likewise.
13818         * tui/tuiStack.c: Likewise.
13819         * tui/tuiWin.c: Likewise.
13820
13821 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13822
13823         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13824         to include space for pseudoregs as well. Update loops accordingly.
13825         (sh_fp_frame_init_saved_regs): Ditto.
13826         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13827
13828 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13829
13830         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13831         Add Richard Earnshaw to Arm maintainers.
13832
13833 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13834
13835         * defs.h (warning_begin): Delete declaration.
13836
13837         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13838         Delete macro.
13839
13840 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13841
13842         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13843         Logic bug, remove misplaced else.
13844
13845 2002-02-07  Klee Dienes  <klee@apple.com>
13846
13847         * fork-inferior.c (fork_inferior): Add '!' to the list of
13848         characters that need to be quoted when building a string for the
13849         shell.  Quote '!' specifically with a backslash, since CSH chokes
13850         when trying to evaluate "str!str".
13851
13852 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13853
13854         * rdi-share/host.h: Only provide a typedef for bool if it is not
13855         defined.
13856
13857 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13858
13859         * breakpoint.h (enum bptype): Add new overlay event bp type.
13860         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13861
13862         * breakpoint.c (create_internal_breakpoint): New function.
13863         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13864         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13865         (create_thread_event_breakpoint): Ditto.
13866         (create_solib_event_breakpoint): Ditto.
13867         (create_overlay_event_breakpoint): New function.
13868         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13869         (update_breakpoints_after_exec): Delete and re-initialize
13870         overlay event breakpoints after an exec.  Add FIXME comment
13871         about longjmp breakpoint.
13872         (print_it_typical): Ignore overlay event breakpoints.
13873         (print_one_breakpoint): Ditto.
13874         (mention): Ditto.
13875         (bpstat_what): Do not stop for overlay event breakpoints.
13876         (delete_breakpoint): Don't delete overlay event breakpoints.
13877         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13878         (breakpoint_re_set): Re-create overlay event breakpoint.
13879
13880         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13881         (overlay_manual_command): Disable overlay breakpoints.
13882         (overlay_off_command): Disable overlay breakpoints.
13883
13884 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13885
13886         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13887         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13888         to here from config/tm-arm.h.
13889         (coff_sym_is_thumb): Make static.
13890         (arm_elf_make_msymbol_special): New function.
13891         (arm_coff_make_msymbol_special): New function.
13892         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13893         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13894         (coff_sym_is_thumb): Delete declaration.
13895         (arm_elf_make_msymbol_special): Declare.
13896         (arm_coff_make_msymbol_special): Declare.
13897         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13898         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13899
13900 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13901
13902         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13903
13904 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13905
13906         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13907         * gdbarch.c gdbarch.h: Regenerate.
13908         * arch-utils.c (default_print_float_info): New function.
13909         * arch-utils.h (default_print_float_info): Prototype it.
13910         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13911         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13912         (PRINT_FLOAT_INFO): Document it.
13913
13914         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13915         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13916         (PRINT_FLOAT_INFO): Define.
13917
13918 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13919
13920         * win32-nat.c (_initialize_check_for_gdb_ini):
13921         Add typecast to sprintf argument to suppress a warning.
13922
13923 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13924
13925         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13926         to allow easier handling of pass state.
13927         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13928         that gives exception name and address.
13929         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13930         and set last_sig value to ourstatus->value.sig. Some missing
13931         exceptions added.
13932         (child_continue): Correctly report continue_status.
13933         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13934         TARGET_SIGNAL_0 (new default value).
13935         (child_resume): consider sig argument passed to decide if
13936         the exception should be passed to debuggee or not.
13937
13938 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13939
13940         * regcache.c (fetch_register): Call target_fetch_register
13941         only if we don't call FETCH_PSEUDO_REGISTER.
13942         (store_register): Call target_store_register only if we
13943         don't call STORE_PSEUDO_REGISTER.
13944
13945 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13946
13947         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13948         ELF_MAKE_MSYMBOL_SPECIAL.
13949         * gdbarch.c, gdbarch.h: Regenerate.
13950         * arch-utils.c (default_make_msymbol_special): New function.
13951         * arch-utils.h (default_make_msymbol_special): Export.
13952         * elfread.c (elf_symtab_read): Compile use of
13953         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13954         multiarched.
13955         * coffread.c (coff_symtab_read): Ditto, for
13956         COFF_MAKE_MSYMBOL_SPECIAL.
13957
13958 2002-02-05  Jim Blandy  <jimb@redhat.com>
13959
13960         * solib-svr4.c (svr4_truncate_ptr): New function.
13961         (svr4_relocate_section_addresses): Do the address arithmetic with
13962         the appropriate truncation for target addresses, even when
13963         CORE_ADDR is larger than a target address.
13964
13965 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13966
13967         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13968         to (int *).
13969
13970 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13971
13972         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13973         code.
13974
13975 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13976
13977         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13978
13979 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13980
13981         * gdbserver/linux-low.c: Remove unused include files.
13982
13983 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13984
13985         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13986         (read_inferior_memory): Use it.
13987         (write_inferior_memory): Likewise.
13988
13989 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13990
13991         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13992         grubbing through sys_errlist.
13993
13994 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13995
13996         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13997
13998 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13999         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14000
14001 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14002
14003         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14004         (do_sfunc, set_cmd_sfunc): New functions.
14005
14006         * command.h (struct cmd_list_element): Add field func.
14007         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14008         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14009         * cli/cli-decode.h: Ditto.
14010
14011         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14012         (help_all, help_cmd_list): Ditto.
14013         (find_cmd, complete_on_cmdlist): Ditto.
14014         * top.c (execute_command): Ditto.
14015
14016         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14017         function.sfunc.
14018
14019         * infcmd.c (notice_args_read): Fix function signature.
14020
14021         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14022         * cli/cli-decode.c (add_set_cmd): Ditto.
14023         * utils.c (initialize_utils): Ditto.
14024         * maint.c (_initialize_maint_cmds): Ditto.
14025         * infrun.c (_initialize_infrun): Ditto.
14026         * demangle.c (_initialize_demangler): Ditto.
14027         * remote.c (add_packet_config_cmd): Ditto.
14028         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14029         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14030         * proc-api.c (_initialize_proc_api): Ditto.
14031         * kod.c (_initialize_kod): Ditto.
14032         * valprint.c (_initialize_valprint): Ditto.
14033         * top.c (init_main): Ditto.
14034         * infcmd.c (_initialize_infcmd): Ditto.
14035         * corefile.c (_initialize_core): Ditto.
14036         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14037         * arch-utils.c (initialize_current_architecture): Ditto.
14038         (_initialize_gdbarch_utils): Ditto.
14039         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14040
14041         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14042         * wince.c (_initialize_inftarg): Ditto.
14043         * symfile.c (_initialize_symfile): Ditto.
14044         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14045         * language.c (_initialize_language): Ditto.
14046         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14047
14048 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14049
14050         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14051
14052 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14053
14054         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14055         Add rules for building the register data files.
14056
14057 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14058
14059         * regformats/regdat.sh: Add braces to the definition of
14060         expedite_regs_${arch}.
14061
14062 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14063
14064         * regformats/regdef.h (struct reg): Add comment describing the
14065         requirements for offset and size fields.
14066
14067 2002-02-04  Andreas Schwab  <schwab@suse.de>
14068
14069         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14070         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14071
14072 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14073
14074         * gdbarch.sh (copyright): Update years in generated header.
14075         (SMASH_TEXT_ADDRESS): Add rule.
14076         * gdbarch.h, gdbarch.c: Re-generate.
14077         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14078         * dbxread.c: Likewise.
14079         * dwarfread.c: Likewise.
14080         * elfread.c: Likewise.
14081         * somread.c: Likewise.
14082
14083         * arm-tdep.c (arm_smash_text_address): New function.
14084         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14085
14086 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14087
14088         Add support for hardware watchpoints on win32 native.
14089         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14090         CONTEXT_DEBUG_REGISTERS.
14091         (dr variable): New variable. Static array containing a local copy
14092         of debug registers.
14093         (debug_registers_changed): New variable.  Reflects when debug registers
14094         are changed and need to be written to inferior.
14095         (debug_registers_used): New variable. Reflects when any debug register
14096         was set, used when new threads are created.
14097         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14098         i386-nat code.
14099         (thread_rec): Set dr array if id is the thread of current_event .
14100         (child_continue, child_resume): Change the debug registers for all
14101         threads if debug_registers_changed.
14102         (child_add_thread): Change the debug registers if debug_registers_used.
14103         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14104         Link nm.h to new nm-cygwin.h file.
14105         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14106         of hardware registers.
14107
14108 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14109
14110         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14111         Restore behavour broken by 2002-01-20 Andrew Cagney
14112         <ac131313@redhat.com> IEEE_FLOAT removal.
14113
14114 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14115
14116         * c-valprint.c (c_val_print): Pass a proper valaddr to
14117         cp_print_class_method.
14118         * valops.c (search_struct_method): If there is only one method
14119         and args is NULL, return that method.
14120
14121 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14122
14123         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14124         accessing tag_name directly.
14125
14126 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14127
14128         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14129         of accessing tag_name directly.
14130
14131 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14132
14133         PR gdb/280
14134         * gdbtypes.c (replace_type): New function.
14135         * gdbtypes.h (replace_type): Add prototype.
14136         * stabsread.c (read_type): Use replace_type.
14137
14138 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14139
14140         * Makefile.in (memattr.o): Add missing dependencies rule.
14141
14142 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14143
14144         * breakpoint.c (break_at_finish_command): Really export.
14145         (break_at_finish_at_depth_command): Ditto.
14146         (tbreak_at_finish_command): Ditto.
14147         * hppa-tdep.c: Include completer.h.
14148         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14149         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14150
14151 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14152
14153         * utils.c (do_write): New function.
14154         (error_stream): Rewrite combining the code from error_begin and
14155         verror.
14156         (verror): Rewrite using error_stream.
14157         (error_begin): Delete function.
14158
14159 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14160
14161         * utils.c (error_begin): Make static.
14162         * defs.h (error_begin): Delete declaration.
14163
14164         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14165         (decode_line_1): Use cplusplus_error instead of error_begin,
14166         cplusplus_hint and return_to_top_level.
14167         * coffread.c (coff_symfile_read): Use error instead of error_begin
14168         and return_to_top_level.
14169         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14170
14171 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14172
14173         * language.h (type_error, range_error): Make string parameter
14174         constant.
14175         * language.c (warning_pre_print): Delete extern declaration.
14176         * dwarfread.c (warning_pre_print): Ditto.
14177         * language.c (type_error, range_error): Rewrite to use verror and
14178         vwarning instead of warning_begin.
14179
14180 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14181
14182         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14183         (set_ignore_count): Move misplaced comment back where it belongs.
14184
14185 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14186
14187         * command.h (NO_FUNCTION): Delete macro.
14188         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14189         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14190         * tracepoint.c (_initialize_tracepoint): Ditto.
14191         * cli/cli-decode.c (add_set_cmd): Ditto.
14192         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14193
14194 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14195
14196         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14197         Update ``this'' pointer when calling virtual functions.
14198
14199 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14200
14201         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14202         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14203
14204 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14205
14206         * regformats/reg-arm.dat: New file.
14207         * regformats/reg-i386.dat: New file.
14208         * regformats/reg-ia64.dat: New file.
14209         * regformats/reg-m68k.dat: New file.
14210         * regformats/reg-mips.dat: New file.
14211         * regformats/reg-ppc.dat: New file.
14212         * regformats/reg-sh.dat: New file.
14213         * regformats/regdef.h: New file.
14214         * regformats/regdat.sh: New file.
14215
14216 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14217
14218         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14219         (arm_frame_args_address, arm_frame_locals_address): New functions.
14220         (arm_frame_num_args): New function.
14221         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14222         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14223         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14224
14225 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14226
14227         * breakpoint.c (break_at_finish_command): Export.
14228         (break_at_finish_at_depth_command): Export.
14229         (tbreak_at_finish_command): Export.
14230         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14231         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14232         "txbreak" commands, which are HPPA specific.
14233
14234         * printcmd.c (disassemble_command): Remove an ancient
14235         artifact of an old merge.
14236
14237         * symfile.h (enum overlay_debugging_state):
14238         Define enum constant values for overlay mode.
14239         * symfile.c (overlay_debugging): Use enums instead of literals.
14240         (overlay_is_mapped, overlay_auto_command,
14241         overlay_manual_command): Ditto.
14242
14243         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14244         breakpoint_here_p, breakpoint_inserted_here_p,
14245         breakpoint_thread_match, bpstat_stop_status,
14246         describe_other_breakpoints, check_duplicates, clear_command):
14247         Coding standard fixes.
14248
14249         * target.c (target_xfer_memory): Add spaces, coding standard.
14250         (do_xfer_memory): Add missing line to trust-readonly
14251         code: check bfd SEC_READONLY flag for section.
14252
14253 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14254
14255         * PROBLEMS: Fix typo, 5.1->5.1.1.
14256
14257 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14258
14259         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14260         data symbols, since we search based on textlow and texthigh.
14261         (find_pc_sect_symtab): Likewise.
14262
14263 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14264
14265         * defs.h (vwarning): Declare.
14266         * utils.c (vwarning): New function.
14267         (warning): Call vwarning.
14268         (warning_begin): Delete function.
14269
14270         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14271         the warning message.
14272         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14273         warning_begin.
14274
14275 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14276
14277         * NEWS: Mention "set trust-readonly-sections" command.
14278         Mention generate-core-file command.
14279
14280 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14281
14282         * target.c: New command, "set trust-readonly-sections on".
14283         (do_xfer_memory): Honor the suggestion to trust readonly sections
14284         by reading them from the object file instead of from the target.
14285         (initialize_targets): Register command "set trust-readonly-sections".
14286
14287 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14288
14289         * parse.c (target_map_name_to_register): Simplify, search regs and
14290         pseudo-regs using a single loop.
14291
14292 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14293
14294         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14295
14296 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14297
14298         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14299         * config/i386/i386v42mp.mh: Add i387-nat.o .
14300         * i386v4-nat.c: Include i387-nat.h.
14301         (supply_fpregset): Use i387_supply_fsave.
14302         (fill_fpregset): Use i387_fill_fsave.
14303
14304 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14305
14306         * arm-tdep.c (arm_call_dummy_words): Define.
14307         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14308         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14309         (CALL_DUMMY_WORDS): Define.
14310         (arm_call_dummy_words): Declare.
14311         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14312         (arm_linux_call_dummy_words): Declare.
14313
14314 2002-01-30  Andreas Schwab  <schwab@suse.de>
14315
14316         * m68klinux-nat.c: Fix last change to use regcache_collect
14317         instead of referencing registers[] directly.
14318
14319 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14320
14321         * parse.c (target_map_name_to_register): Delete code wrapped in
14322         #ifdef REGISTER_NAME_ALIAS_HOOK.
14323
14324 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14325
14326         * regcache.c (legacy_read_register_gen): Need to be able to
14327         read pseudo-register as well as real register.
14328         (legacy_write_register_gen): Ditto.
14329
14330 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14331
14332         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14333         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14334         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14335         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14336         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14337         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14338         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14339         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14340         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14341         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14342         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14343         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14344         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14345         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14346         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14347         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14348         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14349         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14350         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14351         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14352
14353 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14354
14355         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14356         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14357         (initialize_current_architecture): Update target_byte_order using
14358         information from BFD.
14359         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14360         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14361
14362 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14363
14364         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14365         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14366
14367         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14368         #ifdef INVALID_FLOAT.
14369         * infcmd.c (do_registers_info): Ditto.
14370         * values.c (unpack_double): Ditto.  Add comment.
14371
14372         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14373         already commented out.
14374
14375 2002-01-26  Andreas Schwab  <schwab@suse.de>
14376
14377         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14378         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14379         registers and add support for PTRACE_GETREGS.
14380
14381 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14382
14383         GDB 5.1.1 released from 5.1 branch.
14384         * NEWS: Add 5.1.1 news.
14385         * README: Sync with 5.1 branch.
14386
14387 2002-01-23  Fred Fish  <fnf@redhat.com>
14388
14389         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14390         stabstring on initial malloc.  Reallocing will copy it for us,
14391         if necessary.
14392
14393 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14394
14395         * Makefile.in (hpread_h): Delete.
14396         (HFILES_NO_SRCDIR): Remove hpread.h.
14397         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14398         (hpread.o): Update dependencies.
14399         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14400
14401         * hp-psymtab-read.c: Remove file.
14402         * hp-symtab-read.c: Remove file.
14403         * hpread.h: Remove file.
14404
14405         * hpread.c: Merge all contents of hp-psymtab-read.c,
14406         hp-symtab-read.c and hpread.h into this file, as it was prior to
14407         January 1999.
14408
14409         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14410         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14411         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14412         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14413
14414 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14415
14416         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14417         fill_gregset): Call gdbarch_tdep() just once, assign result to
14418         variable and use that, instead of calling the function several
14419         times.
14420
14421 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14422
14423         * configure.host: Accept sparcv9 as alias for sparc64.
14424         * configure.tgt: Likewise.
14425
14426 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14427
14428         * solib-aix5.c (build_so_list_from_mapfile)
14429         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14430         arguments is not reversed.
14431         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14432         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14433
14434 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14435
14436         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14437         modified version of obsolete sh_fetch_pseudo_register.
14438         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14439         (sh4_register_read): New function.
14440         (sh_pseudo_register_write): New function. Renamed and modified
14441         version of obsolete sh_store_pseudo_register.
14442         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14443         (sh4_register_write): New function.
14444         (sh_gdbarch_init): Remove setting of gdbarch function
14445         fetch_pseudo_register and store_pseudo_register. Remove setting of
14446         register_convert_to_raw, register_convert_to_virtual,
14447         register_convertible.
14448         (sh_sh4_register_convertible): Delete. No longer needed. All is
14449         taken care by architecture specific functions
14450         register_read/register_write.
14451         (sh_sh4_register_convert_to_virtual): Make static.
14452         (sh_sh4_register_convert_to_raw): Ditto.
14453
14454 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14455
14456         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14457         (floatformat_is_nan, floatformat_mantissa): Ditto.
14458
14459         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14460         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14461         builtin_type_ieee_double_little,
14462         builtin_type_ieee_double_littlebyte_bigword,
14463         builtin_type_m68881_ext, builtin_type_i960_ext,
14464         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14465         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14466         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14467         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14468
14469 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14470
14471         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14472         parameter.  Set frameless flag if it exists and depended of
14473         whether the scanned function is frameless or not.
14474         (xstormy16_skip_prologue): If function is frameless, return
14475         result of xstormy16_scan_prologue().
14476         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14477         call.
14478
14479 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14480
14481         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14482         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14483         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14484         sh_sh4_register_byte, sh_sh4_register_raw_size,
14485         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14486         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14487         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14488         sh_store_pseudo_register, sh_do_pseudo_register): Call
14489         gdbarch_tdep() just once, assign result to variable and use that,
14490         instead of calling the function several times.
14491
14492 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14493
14494         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14495         macros instead of LAST_FPU_CTRL_REGNUM.
14496         (store_register): Likewise.
14497
14498 2002-01-21  Jim Blandy  <jimb@redhat.com>
14499
14500         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14501         is up-to-date before running the program, not just when a program
14502         exits.
14503
14504 2002-01-21  Fred Fish  <fnf@redhat.com>
14505
14506         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14507         when we have found all instructions we are looking for.
14508
14509 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14510
14511         * arm-tdep.c (arm_register_name): New function.
14512         (arm_registers_names): Make static.
14513         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14514         (arm_register_name): Declare.
14515         (REGISTER_NAME): Use it.
14516
14517 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14518             Kevin Buettner  <kevinb@redhat.com>
14519
14520         Convert arm targets to new FRAME interface.
14521         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14522         (arm_frame_find_save_regs): Delete.
14523         (arm_frame_init_saved_regs): New.
14524         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14525         Allocate extra_info as required.  Convert all uses of fsr.regs
14526         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14527         to use extra_info.
14528         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14529         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14530         (check_prologue_cache, save_prologue_cache): Likewise.
14531         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14532         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14533         (FRAME_FIND_SAVED_REGS): Delete.
14534         (arm_frame_find_saved_regs): Delete prototype.
14535         (arm_frame_init_saved_regs): New prototype.
14536         (FRAME_INIT_SAVED_REGS): Define.
14537
14538 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14539
14540         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14541
14542 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14543
14544         From Jeff Law <law@redhat.com>:
14545         * infttrace.c: Include <sys/pstat.h>.
14546         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14547         exec file if the ttrace equivalent fails.
14548
14549 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14550
14551         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14552         (closeLogFile): Ditto.
14553
14554 2002-01-20  Michael Chastain  <mec@shout.net>
14555
14556         * top.c (print_gdb_version): Bump copyright year to 2002.
14557
14558 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14559
14560         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14561         Zannoni and Eli Zaretskii.
14562
14563 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14564
14565         * buildsym.c: Update copyright years.
14566         * c-typeprint.c: Likewise.
14567         * dwarf2read.c: Likewise.
14568         * f-typeprint.c: Likewise.
14569         * gdbtypes.c: Likewise.
14570         * gdbtypes.h: Likewise.
14571         * hp-symtab-read.c: Likewise.
14572         * hpread.c: Likewise.
14573         * mdebugread.c: Likewise.
14574         * p-typeprint.c: Likewise.
14575
14576 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14577
14578         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14579         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14580         byte-order selectable.
14581         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14582         * arch-utils.c: Ditto.
14583         (set_endian): Ditto.
14584         (set_endian_from_file): Ditto.
14585         * gdbserver/low-sim.c (create_inferior): Ditto.
14586         * gdbarch.sh: Ditto.
14587         * gdbarch.h: Re-generate.
14588         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14589         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14590         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14591         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14592         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14593         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14594         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14595         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14596         macro definition.
14597         * config/mips/tm-wince.h: Remove #undef of macro
14598         TARGET_BYTE_ORDER_SELECTABLE.
14599         * config/sh/tm-wince.h: Ditto.
14600
14601 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14602
14603         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14604         member function fields.  Add accessor macro
14605         TYPE_FN_FIELD_ARTIFICIAL.
14606         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14607         * c-typeprint.c (c_type_print_base): Skip artificial member
14608         functions.
14609
14610 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14611
14612         * f-typeprint.c: Delete unused function f_type_print_args.
14613         * p-typeprint.c: Delete unused function pascal_type_print_args.
14614
14615 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14616
14617         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14618         comment.  Add ``artificial'' to ``union field_location''.
14619
14620         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14621
14622         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14623         * mdebugread.c (parse_symbol): Likewise.
14624         * stabsread.c (define_symbol): Likewise.
14625         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14626         initializing TYPE_FIELD_BITPOS to n (obsolete).
14627         (hpread_doc_function_type): Likewise.
14628         * hpread.c (hpread_function_type): Likewise.
14629
14630 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14631
14632         * configure.in (host_makefile_frag): Only require a host makefile
14633         fragment when a native build.
14634         * configure: Re-generate.
14635
14636 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14637
14638         * doublest.h (floatformat_from_type): Declare.
14639         * doublest.c (floatformat_from_type): New function.
14640         (convert_typed_floating): Use.
14641
14642         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14643         call to function floatformat_from_type.
14644
14645         * gdbarch.sh (IEEE_FLOAT): Delete.
14646         * gdbarch.h, gdbarch.c: Re-generate.
14647         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14648         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14649         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14650         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14651         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14652         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14653         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14654         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14655         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14656         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14657         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14658         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14659
14660         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14661         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14662         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14663         * sh-tdep.c (sh_gdbarch_init): Ditto.
14664         * mips-tdep.c (mips_gdbarch_init): Ditto.
14665         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14666         * cris-tdep.c (cris_gdbarch_init): Ditto.
14667
14668 2002-01-20  Jiri Smid  <smid@suse.cz>
14669
14670         * configure.host, configure.tgt: Support x86-64.
14671         * NEWS: Note new target x86-64.
14672
14673         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14674         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14675         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14676         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14677         x86-64-linux-nat.o): Fix dependencies.
14678
14679 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14680
14681         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14682         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14683         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14684         * config/sparc/xm-sun4os4.h: Delete file.
14685         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14686
14687 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14688
14689         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14690         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14691         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14692         * config/i386/i386lynx.mh (XM_FILE): Delete.
14693         * config/rs6000/xm-rs6000ly.h: Delete file.
14694         * config/sparc/xm-sparclynx.h: Delete file.
14695         * config/m68k/xm-m68klynx.h: Delete file.
14696         * config/i386/xm-i386lynx.h: Delete file.
14697         * config/xm-lynx.h: Delete file.
14698         * config/djgpp/fnchange.lst: Update.
14699
14700 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14701
14702         * alpha-tdep.c (alpha_register_byte): New function.
14703         (alpha_register_raw_size): Ditto.
14704         (alpha_register_virtual_size): Ditto.
14705         (alpha_skip_prologue_internal): Renamed from
14706         alpha_skip_prologue.
14707         (alpha_skip_prologue): New version that calls
14708         alpha_skip_prologue_internal.
14709         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14710         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14711         second argument from alpha_skip_prologue.
14712         (REGISTER_BYTE): Use alpha_register_byte.
14713         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14714         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14715         (FRAMELESS_FUNCTION_INVOCATION): Use
14716         generic_frameless_function_invocation_not.
14717         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14718         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14719
14720 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14721
14722         * config/mips/xm-news-mips.h: Delete file.
14723         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14724
14725         * config/m88k/xm-m88k.h: Delete file.
14726         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14727         * config/m88k/xm-delta88v4.h: Ditto.
14728         * config/m88k/xm-delta88.h: Ditto.
14729
14730         * config/alpha/xm-fbsd.h: Delete file.
14731         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14732
14733         * config/sparc/xm-sparc.h: Delete file.
14734         * Makefile.in (xm-sun4os4.h): Delete dependency.
14735         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14736         * config/sparc/xm-sun4os4.h: Ditto.
14737         * config/sparc/xm-linux.h: Ditto.
14738
14739         * config/i386/xm-windows.h: Delete file.
14740
14741 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14742
14743         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14744         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14745
14746 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14747
14748         * alpha-tdep.c (alpha_call_dummy_words): New.
14749         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14750         (CALL_DUMMY_P): Define.
14751         (CALL_DUMMY_WORDS): Define.
14752         (SIZEOF_CALL_DUMMY_WORDS): Define.
14753
14754 2002-01-19  Per Bothner  <per@bothner.com>
14755
14756         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14757         isn't NULL, which can happen with some gcj-3.x-produced code.
14758
14759 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14760
14761         * alpha-tdep.c (alpha_register_virtual_type): New function.
14762         (alpha_init_frame_pc_first): Ditto.
14763         (alpha_fix_call_dummy): Ditto.
14764         (alpha_store_struct_return): Ditto.
14765         (alpha_extract_struct_value_address): Ditto.
14766         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14767         alpha_register_virtual_type.
14768         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14769         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14770         alpha_extract_struct_value_address.
14771         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14772         (INIT_FRAME_PC): Use init_frame_pc_noop.
14773         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14774
14775 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14776
14777         * i386gnu-nat.c: Include "i386-tdep.h".
14778         (fetch_fpregs): Simplify code dealing with uninitialized floating
14779         point states such that it doesn't require FP7_REGNUM.
14780
14781 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14782
14783         * alpha-tdep.c (frame_extra_info): New.
14784         (alpha_find_saved_regs): Make static.  Use
14785         frame->extra_info.
14786         (alpha_frame_init_saved_regs): New function.
14787         (alpha_frame_saved_pc): Use frame->extra_info.
14788         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14789         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14790         (init_extra_frame_info): Rename to...
14791         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14792         (alpha_print_extra_frame_info): New function.
14793         (alpha_frame_locals_address): Ditto.
14794         (alpha_frame_args_address): Ditto.
14795         (alpha_pop_frame): Use frame->extra_info.
14796         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14797         alpha_frame_args_address.
14798         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14799         (alpha_find_saved_regs): Remove prototype.
14800         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14801         (EXTRA_FRAME_INFO): Remove.
14802         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14803         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14804
14805 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14806
14807         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14808         (alpha_cannot_fetch_register): Ditto.
14809         (alpha_cannot_store_register): Ditto.
14810         (alpha_register_convertible): Ditto.
14811         (alpha_use_struct_convention): Ditto.
14812         * config/alpha/tm-alpha.h: Update copyright years.
14813         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14814         (INNER_THAN): Use core_addr_lessthan.
14815         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14816         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14817         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14818         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14819         (FRAME_CHAIN): Remove unnecessary cast.
14820
14821 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14822
14823         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14824         obsolete.
14825
14826 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14827
14828         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14829         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14830         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14831         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14832         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14833         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14834         * x86-64-linux-nat.c: Ditto.
14835
14836 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14837
14838         * alpha-tdep.c (alpha_register_name): New function.
14839         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14840         (REGISTER_NAME): Define.
14841
14842 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14843
14844         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14845
14846 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14847
14848         * alpha-tdep.c: Update copyright years.
14849         (alpha_next_pc): New function.
14850         (alpha_software_single_step): Ditto.
14851         * config/alpha/tm-alpha.h: Add prototype for
14852         alpha_software_single_step.
14853
14854 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14855
14856         * alphabsd-nat.c: Update copyright years.
14857         (fill_gregset): Use regcache_collect.
14858         (fill_fpregset): Likewise.
14859         (fetch_inferior_registers): Only fetch integer registers
14860         if requested to do so.
14861         (store_inferior_registers): Only store integer registers
14862         if requested to do so.
14863
14864 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14865
14866         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14867         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14868         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14869         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14870         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14871         * config/arm/linux.mh (XDEPFILES): Delete.
14872         * config/arm/nbsd.mh (XDEPFILES): Delete.
14873         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14874         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14875         * config/i386/i386m3.mh (XDEPFILES): Delete.
14876         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14877         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14878         * config/i386/fbsd.mh (XDEPFILES): Delete.
14879         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14880         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14881         * config/i386/i386v4.mh (XDEPFILES): Delete.
14882         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14883         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14884         * config/i386/i386aix.mh (XDEPFILES): Delete.
14885         * config/i386/go32.mh (XDEPFILES): Delete.
14886         * config/i386/cygwin.mh (XDEPFILES): Delete.
14887         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14888         * config/i386/i386mach.mh (XDEPFILES): Delete.
14889         * config/i386/i386v32.mh (XDEPFILES): Delete.
14890         * config/i386/linux.mh (XDEPFILES): Delete.
14891         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14892         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14893         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14894         * config/i386/i386sco.mh (XDEPFILES): Delete.
14895         * config/i386/i386v.mh (XDEPFILES): Delete.
14896         * config/i386/nbsd.mh (XDEPFILES): Delete.
14897         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14898         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14899         * config/i386/symmetry.mh (XDEPFILES): Delete.
14900         * config/i386/obsd.mh (XDEPFILES): Delete.
14901         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14902         * config/ia64/linux.mh (XDEPFILES): Delete.
14903         * config/ia64/aix.mh (XDEPFILES): Delete.
14904         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14905         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14906         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14907         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14908         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14909         * config/m68k/linux.mh (XDEPFILES): Delete.
14910         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14911         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14912         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14913         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14914         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14915         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14916         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14917         * config/m88k/delta88.mh (XDEPFILES): Delete.
14918         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14919         * config/m88k/m88k.mh (XDEPFILES): Delete.
14920         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14921         * config/mips/linux.mh (XDEPFILES): Delete.
14922         * config/mips/irix6.mh (XDEPFILES): Delete.
14923         * config/mips/irix5.mh (XDEPFILES): Delete.
14924         * config/mips/irix4.mh (XDEPFILES): Delete.
14925         * config/mips/irix3.mh (XDEPFILES): Delete.
14926         * config/mips/decstation.mh (XDEPFILES): Delete.
14927         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14928         (NATDEPFILES): Move core-aout.o to here.
14929         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14930         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14931         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14932         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14933         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14934         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14935         * config/pa/hpux11.mh (XDEPFILES): Delete.
14936         * config/powerpc/aix.mh (XDEPFILES): Delete.
14937         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14938         * config/powerpc/linux.mh (XDEPFILES): Delete.
14939         * config/romp/rtbsd.mh: Rename XDEPFILES.
14940         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14941         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14942         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14943         * config/s390/s390.mh (XDEPFILES): Delete.
14944         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14945         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14946         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14947         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14948         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14949         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14950         * config/sparc/linux.mh (XDEPFILES): Delete.
14951         * config/vax/vaxult.mh (XDEPFILES): Delete.
14952         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14953         * Makefile.in (DEPFILES): Remove XDEPFILES.
14954
14955 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14956
14957         * utils.c (internal_verror): Fix comments, default is yes not no.
14958         Update queries to match.  Default to quit and dump core.
14959
14960 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14961
14962         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14963         copyright.
14964         * defs.h, event-top.c, gdbcmd.h: Ditto.
14965         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14966         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14967         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14968         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14969         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14970         * mi/mi-main.c:Ditto.
14971
14972         * stack.c, symfile.c: Update copyright.
14973
14974 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14975
14976         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14977         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14978         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14979         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14980
14981 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14982
14983         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14984         * gdbserver/low-lynx.c (myattach): Likewise.
14985         * gdbserver/low-nbsd.c (myattach): Likewise.
14986         * gdbserver/low-sim.c (myattach): Likewise.
14987         * gdbserver/low-sparc.c (myattach): Likewise.
14988         * gdbserver/low-sun3.c (myattach): Likewise.
14989
14990         * gdbserver/low-linux.c (myattach): New function.
14991
14992         * gdbserver/server.c (attach_inferior): New function.
14993         (main): Handle "--attach".
14994
14995 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14996
14997         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14998         maintainer.
14999
15000 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15001
15002         * c-typeprint.c (is_type_conversion_operator): Add additional
15003         check for non-conversion operators.
15004
15005 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15006
15007         * linux-proc.c: Add "info proc" command, a la procfs.c.
15008         (read_mapping): New function, abstract and re-use code.
15009         (linux_find_memory_regions): Use new func read_mapping.
15010         (linux_info_proc_cmd): New function, implement "info proc".
15011         (_initialize_linux_proc): Add new command "info proc".
15012
15013 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15014
15015         * symfile.c (generic_load): Use bfd_map_over_sections method
15016         instead of manipulating bfd structure members directly.
15017         (add_section_size_callback): New function, bfd sections callback
15018         used by generic_load.
15019         (load_sections_callback): New function, bfd sections callback
15020         used by generic_load.
15021
15022 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15023
15024         [Based on work by Jim Blandy]
15025         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15026         (builtin_type_vec128): Export.
15027         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15028         types.
15029         (builtin_type_vec128): New builtin type for 128 bit vector
15030         registers.
15031         (build_gdbtypes): Initialize builtin_type_v16qi and
15032         builtin_type_v8hi. Create the vec128 register builtin type
15033         structure.
15034         (build_builtin_type_vec128): New function.
15035         (_initialize_gdbtypes): Register builtin_type_v16qi and
15036         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15037         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15038         AltiVec register to new builtin type.
15039
15040 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15041
15042         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15043         to make_cv_type.
15044
15045 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15046
15047         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15048         CLEAN_UP_REGISTER_VALUE.
15049         * regcache.c (supply_register): Update only call.
15050
15051 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15052
15053         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15054         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15055         a29k-*-vxworks* targets as obsolete.
15056
15057 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15058
15059         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15060         until we can resolve portability issues.
15061         * gregset.h: Remove references to fpxregs.
15062         * gcore.c (gcore_command): Initialize note_sec to NULL.
15063
15064 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15065
15066         * signals.c (target_signal_to_name): Rewrite.  Only use
15067         signals[].name when in bounds and non-NULL.
15068
15069 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15070
15071         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15072         * signals.c (target_signal_to_name): Verify that SIG is within the
15073         bounds of the signals array.
15074
15075 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15076
15077         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15078
15079 2002-01-13  Keith Seitz  <keiths@redhat.com>
15080
15081         * stack.c (print_frame_info_base): Print the frame's pc
15082         only if when print_frame_info_listing_hook is not defined.
15083
15084 2002-01-13  Keith Seitz  <keiths@redhat.com>
15085
15086         * varobj.c (varobj_set_value): Make sure that there were no
15087         errors evaluating the object before attempting to set its
15088         value.
15089         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15090         so this offset adjustment is no longer necessary.
15091         (create_child): Don't set the error flag if the child is
15092         a CPLUS_FAKE_CHILD.
15093         (value_of_child): If value_fetch_lazy fails, return NULL
15094         so that callers will be notified that an error occurred.
15095         (c_value_of_variable): Delay check of variable's validity
15096         until later. We actually want all structs and unions to have
15097         the value "{...}".
15098         Do not return "???" for variables which could not be evaluated.
15099         This error condition must be returned to the caller so that it
15100         can get the error condition from gdb.
15101         (cplus_name_of_child): Adjust index for vptr before figuring
15102         out the name of the child.
15103         (cplus_value_of_child): If a child's (real) parent is not valid,
15104         don't even bother trying to give a value for it. Just return
15105         an error. Change all instances in this function.
15106         (cplus_type_of_child): If our parent is one of the "fake"
15107         parents, we need to get at the type of the real parent, and
15108         derive the child's true type using this information.
15109
15110 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15111
15112         From 2002-01-09 John Marshall <johnm@falch.net>:
15113         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15114         sources.redhat.com, and tweak some related URLs which had
15115         suffered from linkrot.
15116
15117 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15118
15119         From Jeff law:
15120         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15121         structures passed in registers.
15122
15123 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15124
15125         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15126         white space which prevented compilation.  Reported by DSK
15127         <dsk@student.unsw.edu.au>.
15128
15129 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15130
15131         * symfile.c (build_section_addr_info_from_section_tab):
15132         Use bfd access method instead of manipulating bfd directly.
15133         (syms_from_objfile): Ditto.
15134         (simple_overlay_update_1): Ditto.
15135         (simple_overlay_update): Ditto.
15136         (generic_load): Ditto.
15137         (overlay_unmapped_address): FIXME comment, bfd access methods.
15138         (sections_overlap): FIXME comment, bfd access methods.
15139         (pc_in_mapped_range): FIXME comment, bfd access methods.
15140         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15141         (section_is_mapped): FIXME comment, bfd access methods.
15142         (section_is_overlay): FIXME comment, bfd access methods.
15143
15144         * symfile.c (generic_load): Whitespace and long line cleanups.
15145         Remove duplicate variable, change several local variables to
15146         more appropriate data types.
15147         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15148
15149 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15150
15151         From Peter Schauer:
15152         * language.c (longest_local_hex_string_custom): Use phex_nz to
15153         convert NUM to a hex string.
15154
15155 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15156
15157         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15158         the function.
15159         Update Copyright year.
15160
15161 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15162
15163         * language.c (longest_raw_hex_string): Delete unused function.
15164
15165 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15166
15167         * MAINTAINERS (write-after-approval): Add myself.
15168         * dwarf2read.c (read_tag_string_type): Handling of
15169         DW_AT_byte_size.
15170         (read_tag_string_type): FORTRAN fix to prevent propagation of
15171         first string size.
15172         (set_cu_language): Handling of DW_LANG_Fortran95
15173
15174 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15175
15176         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15177         GETPID(inferior_ptid).
15178         (store_inferior_registers): Likewise.
15179
15180 2002-01-10  Jason Merrill  <jason@redhat.com>
15181
15182         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15183         Fix DW_OP_minus.
15184
15185 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15186
15187         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15188         and bfd/elf32-sh-nbsd.c.
15189
15190 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15191
15192         * NEWS: Mention --pid and corefile/proc-id behavior change.
15193
15194         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15195         * gcore.c: Include cli/cli-decode.h instead of command.h.
15196
15197         * main.c (captured_main): Add new command line option "--pid".
15198         If the second command line argument (following the symbol-file)
15199         begins with a digit, try to attach to it before trying to open
15200         it as a corefile.
15201         (print_gdb_help): Document the "--pid" argument.
15202
15203 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15204
15205         * completer.c (command_completer): New function.
15206
15207         * completer.h <command_completer>: Add prototype.
15208
15209         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15210         completer for the "help" command.
15211
15212 2002-01-09  Jason Merrill  <jason@redhat.com>
15213
15214         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15215
15216 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15217
15218         * i386-linux-nat.c (fill_fpxregset): Make global.
15219         (store_fpxregset): Ditto.
15220
15221         * gregset.h (gdb_fpxregset_t): Define.
15222         (supply_fpxregset): Prototype.
15223         (fill_fpxregset): Prototype.
15224
15225         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15226
15227 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15228
15229         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15230         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15231         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15232
15233 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15234
15235         * MAINTAINERS: Update target maintainer rules so that any
15236         Maintainer can approve a tested patch for a maintenance-only
15237         target.
15238
15239 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15240
15241         * MAINTAINERS (write-after-approval): Add myself.
15242
15243         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15244         IN_SIGTRAMP.
15245
15246 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15247
15248         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15249         real name of the executable, rather than the /proc name.
15250
15251 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15252
15253         Implement a "generate-core-file" command in gdb, save target state.
15254         * gcore.c: New file.  Implement new command 'generate-core-file'.
15255         Save a corefile image of the current state of the inferior.
15256         * linux-proc.c: Add linux-specific code for saving corefiles.
15257         * target.h (struct target_ops): Add new target vectors for saving
15258         corefiles; to_find_memory_regions and to_make_corefile_notes.
15259         (target_find_memory_regions): New macro.
15260         (target_make_corefile_notes): New macro.
15261         * target.c (update_current_target): Inherit new target methods.
15262         (dummy_find_memory_regions): New place-holder method.
15263         (dummy_make_corefile_notes): New place-holder method.
15264         (init_dummy_target): Initialize new dummy target vectors.
15265         * exec.c (exec_set_find_memory_regions): New function.
15266         Allow the exec_ops vector for memory regions to be taken over.
15267         (exec_make_note_section): New function, target vector method.
15268         * defs.h (exec_set_find_memory_regions): Export prototype.
15269         * procfs.c (proc_find_memory_regions): New function, corefile method.
15270         (procfs_make_note_section): New function, corefile method.
15271         (init_procfs_ops): Set new target vector pointers.
15272         (find_memory_regions_callback): New function.
15273         (procfs_do_thread_registers): New function.
15274         (procfs_corefile_thread_callback): New function.
15275         * sol-thread.c (sol_find_memory_regions): New function.
15276         (sol_make_note_section): New function.
15277         (init_sol_thread_ops): Initialize new target vectors.
15278         * inftarg.c (inftarg_set_find_memory_regions): New function.
15279         Allow to_find_memory_regions vector to be taken over.
15280         (inftarg_set_make_corefile_notes): New function.
15281         Allow to_make_corefile_notes vector to be taken over.
15282         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15283         interface layer if not target_has_execution (may be a corefile).
15284         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15285         * config/sparc/sun4sol2.mh: Ditto.
15286         * config/alpha/alpha-linux.mh: Ditto.
15287         * config/arm/linux.mh: Ditto.
15288         * config/i386/x86-64linux.mh: Ditto.
15289         * config/ia64/linux.mh: Ditto.
15290         * config/m68k/linux.mh: Ditto.
15291         * config/mips/linux.mh: Ditto.
15292         * config/powerpc/linux.mh: Ditto.
15293         * config/sparc/linux.mh: Ditto.
15294
15295 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15296
15297         * arm-linux-nat.c: Remove references to regcache.c internal data
15298         (registers[] and register_valid[]).
15299
15300 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15301
15302         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15303         so that attaching to a pid will automatically read the process's
15304         symbol file and shlibs.
15305         * Makefile.in: Add rule for linux-proc.o.
15306         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15307         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15308         * config/arm/linux.mh: Ditto.
15309         * config/i386/linux.mh: Ditto.
15310         * config/i386/x86-64linux.mh: Ditto.
15311         * config/ia64/linux.mh: Ditto.
15312         * config/m68k/linux.mh: Ditto.
15313         * config/mips/linux.mh: Ditto.
15314         * config/powerpc/linux.mh: Ditto.
15315         * config/sparc/linux.mh: Ditto.
15316
15317 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15318
15319         * win32-nat.c: Add i386-tdep.h dependency.
15320
15321 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15322
15323         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15324         instead of bfd_get_arch_size.  Don't bail out just because
15325         there's no exec_bfd.
15326
15327         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15328         * p-valprint.c (pascal_object_print_value): Ditto.
15329         * somread.c (som_symtab_read): Ditto.
15330         * symfile.c (simple_free_overlay_region_table): Ditto.
15331         * valops.c (value_assign): Ditto.
15332
15333         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15334         use tilde_expand and strerror for opening save-tracepoints file.
15335
15336         * thread-db.c (thread_db_new_objfile): Indendation fix.
15337
15338         * infptrace.c (GDB_MAX_ALLOCA): New define.
15339         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15340         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15341         can be overridden with whatever value is appropriate to the host).
15342         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15343         alloca to allocate potentially large buffer.
15344         * rs6000-nat.c (child_xfer_memory): Ditto.
15345         * symm-nat.c (child_xfer_memory): Ditto.
15346         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15347
15348 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15349
15350         From Nick Clifton  <nickc@redhat.com>
15351         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15352
15353 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15354
15355         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15356         Don't use exec_bfd if it's NULL.
15357
15358 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15359
15360         * valops.c (value_arg_coerce): Fix formatting.
15361
15362 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15363
15364         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15365         * gnu-nat.c: Ditto.
15366
15367 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15368
15369         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15370         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15371         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15372         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15373         z8k-coff have not been multi-arched.  Update z8k-coff build
15374         status.
15375
15376 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15377
15378         * MAINTAINERS: Mark a29k target as obsolete.
15379         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15380         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15381         comments.
15382         * NEWS: Note that a29k targets are obsolete.
15383         * a29k-tdep.c: Mark as obsolete.
15384         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15385         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15386         a29k-*-vxworks* targets as obsolete.
15387         * remote-adapt.c: Obsolete.
15388         * remote-eb.c: Obsolete.
15389         * remote-mm.c: Obsolete.
15390         * remote-udi.c: Obsolete.
15391         * config/a29k/a29k-udi.mt: Obsolete.
15392         * config/a29k/a29k.mt: Obsolete.
15393         * config/a29k/tm-a29k.h: Obsolete.
15394         * config/a29k/tm-vx29k.h: Obsolete.
15395         * config/a29k/vx29k.mt: Obsolete.
15396
15397 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15398
15399         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15400         with BFD_ENDIAN_BIG.
15401
15402 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15403
15404         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15405         * configure, config.in: Re-generate.
15406         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15407         * defs.h: Do not include <endian.h>.
15408
15409 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15410
15411         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15412         * config.in: Regenerate.
15413         * configure.in: Update copyright years.
15414         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15415         * configure: Regenerate.
15416         * i386bsd-nat.c: Update copyright years.
15417         (fill_gregset): Use regcache_collect.
15418         (fetch_inferior_registers): Only fetch integer registers
15419         if requested to do so.  Add support for XMM registers
15420         using PT_GETXMMREGS.
15421         (store_inferior_registers): Only store integer registers
15422         if requested to do so.  Add support for XMM registers
15423         using PT_SETXMMREGS.
15424         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15425         (store_inferior_registers): Remove.
15426         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15427         (fetch_elfcore_registers): New function.
15428         (i386nbsd_elfcore_fns): New.
15429         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15430         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15431         i386bsd-nat.o.
15432         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15433         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15434         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15435         * config/i386/tm-nbsd.h: Update copyright years.
15436         (HAVE_SSE_REGS): Define.
15437         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15438         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15439         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15440         (SIGCONTEXT_PC_OFFSET): Remove.
15441         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15442
15443 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15444
15445         * configure.tgt: Remove powerpc-*-macos* target.
15446         * config/m68k/xm-mpw.h: Delete file.
15447         * config/xm-mpw.h: Delete file.
15448         * ser-mac.c: Delete file.
15449         * mpw-make.sed: Delete file.
15450         * mpw-config.in: Delete file.
15451         * mac-xdep.c: Delete file.
15452         * mac-gdb.r: Delete file.
15453         * mac-defs.h: Delete file.
15454         * mac-nat.c: Delete file.
15455         * config/powerpc/macos.mh: Delete file.
15456         * config/powerpc/macos.mt: Delete file.
15457         * config/powerpc/nm-macos.h: Delete file.
15458         * config/powerpc/tm-macos.h: Delete file.
15459         * source.c (openp, open_source_file): Remove obsolete code.
15460         * top.c (gdb_readline): Ditto.
15461         * utils.c (query): Ditto.
15462         * event-top.c (display_gdb_prompt): Ditto.
15463         * Makefile.in (ser-mac.o): Delete obsolete target.
15464         * NEWS: Update.
15465
15466 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15467
15468         * defs.h (BIG_ENDIAN): Delete macro definition.
15469         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15470         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15471         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15472         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15473         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15474         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15475         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15476         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15477         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15478         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15479         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15480         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15481         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15482         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15483         * gdbarch.c: Re-generate.
15484
15485 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15486
15487         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15488         for core files.
15489
15490 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15491
15492         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15493
15494 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15495
15496         * value.h (value_ptr): Delete typedef.
15497
15498 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15499
15500         * i386nbsd-nat.c: Update copyright years.
15501         Include i386-tdep.h.
15502
15503 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15504
15505         * stabsread.c: Update copyright years.
15506
15507         From Debashis Mahata <debashis.mahata@wipro.com>:
15508         (read_struct_fields): Deal with Sun C compiler erroneous stab
15509         output for structs and unions.
15510         Fix PR gdb/269.
15511
15512 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15513
15514         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15515         prototype.
15516
15517 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15518
15519         * cp-abi.c: Fix whitespace.
15520         (baseclass_offset): New wrapper function.
15521         * cp-abi.h (baseclass_offset): Add prototype.
15522         (struct cp_abi_ops): Add baseclass_offset pointer.
15523
15524         * valops.c (vb_match): Move to...
15525         * gnu-v2-abi.c (vb_match): here.
15526         * valops.c (baseclass_offset): Move to...
15527         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15528
15529         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15530
15531         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15532         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15533         * hpacc-abi.c (init_hpacc_ops): Likewise.
15534
15535 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15536
15537         * valops.c (find_overload_match): Accept obj as a
15538         reference parameter.  Update it before returning.
15539         * value.h (find_overload_match): Update prototype.
15540         * eval.c (evaluate_subexp_standard): Pass object to
15541         find_overload_match by reference.
15542
15543 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15544
15545         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15546         register attribute from value declarations.
15547         * valops.c: Ditto.
15548         * value.h: Ditto.
15549         * scm-lang.c (scm_lookup_name): Ditto.
15550
15551 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15552
15553         Abstract the functionality of iterating over mapped memory
15554         regions into a general purpose iterator function.
15555         * procfs.c (iterate_over_mappings): New function, general purpose
15556         iterator for memory sections.
15557         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15558         (solib_mappings_callback): New function, callback for above.
15559         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15560         (info_mappings_callback): New function, callback for above.
15561
15562         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15563
15564 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15565
15566         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15567         * i386-tdep.c: Include "elf-bfd.h".
15568         (process_note_abi_tag_sections): New function.
15569         (i386_gdbarch_init): Add code to recognize various OS/ABI
15570         combinations.
15571
15572         * maint.c (_initialize_maint_cmds): Add missing \ in
15573         string-literal.
15574
15575 For older changes see ChangeLog-2001
15576 \f
15577 Local Variables:
15578 mode: change-log
15579 left-margin: 8
15580 fill-column: 74
15581 version-control: never
15582 End: