2003-01-06 Andrew Cagney <cagney@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-06  Andrew Cagney  <cagney@redhat.com>
2
3         * MAINTAINERS (Target Instruction Set Architectures): Update
4         arm-elf.  Can be built with -Werror, has been multiarched.
5
6         * value.h (unpack_long): Make buffer parameter constant.
7         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8         * scm-lang.h (scm_parse): Ditto.
9         * defs.h (extract_typed_address, extract_address): Ditto.
10         (extract_long_unsigned_integer): Ditto.
11         * inferior.h (unsigned_pointer_to_address): Ditto.
12         (signed_pointer_to_address): Ditto.
13         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14         * gdbarch.h, gdbarch.c: Regenerate.
15         * findvar.c (extract_long_unsigned_integer): Update.
16         (extract_address): Update.
17         (extract_typed_address): Update.
18         (unsigned_pointer_to_address): Update.
19         * values.c (unpack_long): Update.
20         (unpack_double): Update.
21         (unpack_pointer): Update.
22         (unpack_field_as_long): Update.
23         * d10v-tdep.c (d10v_pointer_to_address): Update.
24         * avr-tdep.c (avr_pointer_to_address): Update.
25         * scm-lang.c (scm_unpack): Update.
26         * findvar.c (signed_pointer_to_address): Update.
27
28 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
29
30         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
31         since it is in i386-tdep.c.
32
33 2003-01-06  J. Brobecker  <brobecker@gnat.com>
34
35         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
36         failure introduced in the previous change.
37
38 2003-01-05  Michael Chastain  <mec@shout.net>
39
40         * README: Remove references to deleted remote-*.c files:
41         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
42         remote-nrom.c, remote-os9k.c, remote-udi.c.
43
44 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
45
46         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
47         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
48         i386_get_longjmp_target.
49
50 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
51
52         * arm-tdep.c (prologue_cache): Change to a pointer.
53         (_initialize_arm_tdep): Allocate prologue_cache.
54         (check_prologue_cache): Update.
55         (save_prologue_cache): Update.
56         (arm_gdbarch_init): Update.
57
58 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
59
60         * stabsread.c (update_method_name_from_physname): Call complaint()
61         instead of error.
62
63 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
64
65         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
66         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
67         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
68
69         * blockframe.c: Include "gdbcmd.h" and "command.h".
70         (backtrace_below_main): New variable.
71         (file_frame_chain_valid, func_frame_chain_valid)
72         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
73         (generic_func_frame_chain_valid): Remove functions.
74         (frame_chain_valid, do_flush_frames_sfunc): New functions.
75         (_initialize_blockframe): New function.
76         * Makefile.in (blockframe.o): Update dependencies.
77         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
78         comment.  Call frame_chain_valid ().
79         * frame.h: Remove old prototypes.  Add prototype for
80         frame_chain_valid and update comments to match.
81         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
82         Remove old comment.
83         * gdbarch.h: Regenerated.
84         * gdbarch.c: Regenerated.
85
86         * alpha-tdep.c (alpha_gdbarch_init): Don't call
87         set_gdbarch_frame_chain_valid.
88         * avr-tdep.c (avr_gdbarch_init): Likewise.
89         * cris-tdep.c (cris_gdbarch_init): Likewise.
90         * frv-tdep.c (frv_gdbarch_init): Likewise.
91         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
92         * i386-tdep.c (i386_svr4_init_abi): Likewise.
93         (i386_nw_init_abi): Likewise.
94         (i386_gdbarch_init): Likewise.
95         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
96         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
97         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
98         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
99         * mips-tdep.c (mips_gdbarch_init): Likewise.
100         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
101         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
102         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
103         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
104         * s390-tdep.c (s390_gdbarch_init): Likewise.
105         * sh-tdep.c (sh_gdbarch_init): Likewise.
106         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
107         * v850-tdep.c (v850_gdbarch_init): Likewise.
108         * vax-tdep.c (vax_gdbarch_init): Likewise.
109         * x86-64-tdep.c (x86_64_init_abi): Likewise.
110
111         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
112         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
113         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
114         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
115         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
116         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
117         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
118         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
119
120 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
121
122         * Makefile.in (acconfig_h): Remove incorrect macro.
123         (config_h): Define.
124         (osabi.o): Update dependencies.
125         * configure.tgt: Set gdb_osabi based on target triplet.
126         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
127         * configure: Regenerated.
128         * config.in: Regenerated.
129         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
130         (GDB_OSABI_DEFAULT): Define if not already defined.
131         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
132         (set_osabi_string): New variables.
133         (gdbarch_register_osabi): Add new OS ABI to
134         gdb_osabi_available_names.
135         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
136         (set_osabi, show_osabi): New functions.
137         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
138
139 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
140
141         * arch-utils.c (gdbarch_info_init): Set osabi to
142         GDB_OSABI_UNINITIALIZED.
143         * gdbarch.sh: Add osabi to struct gdbarch and to struct
144         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
145         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
146         * gdbarch.c: Regenerated.
147         * gdbarch.h: Regenerated.
148         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
149         there's no BFD.
150         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
151         * osabi.h (enum gdb_osabi): Move to defs.h.
152         (gdbarch_init_osabi): Update prototype.
153         * defs.h (enum gdb_osabi): Moved here.
154         * Makefile.in: Update dependencies.
155
156         * alpha-tdep.h: Don't include "osabi.h".
157         (struct gdbarch_tdep): Remove osabi member.
158         * alpha-tdep.c: Include "osabi.h".
159         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
160         iterate over arches.  Update call to gdbarch_init_osabi.
161         (alpha_dump_tdep): Don't dump osabi.
162         * alpha-linux-tdep.c: Include "osabi.h".
163         * alpha-osf1-tdep.c: Include "osabi.h".
164         * alphafbsd-tdep.c: Include "osabi.h".
165         * alphanbsd-tdep.c: Include "osabi.h".
166
167         * arm-tdep.h: Don't include "osabi.h".
168         (struct gdbarch_tdep): Remove osabi member.
169         * arm-tdep.c: Include "osabi.h".
170         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
171         iterate over arches.  Update call to gdbarch_init_osabi.
172         (arm_dump_tdep): Don't dump osabi.
173         * arm-linux-tdep.c: Include "osabi.h".
174         * armnbsd-tdep.c: Include "osabi.h".
175
176         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
177         Update call to gdbarch_init_osabi.
178
179         * i386-tdep.h: Don't include "osabi.h".
180         (struct gdbarch_tdep): Remove osabi member.
181         * i386-tdep.c: Include "osabi.h".
182         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
183         iterate over arches.  Update call to gdbarch_init_osabi.
184         (i386_dump_tdep): Don't dump osabi.
185         * i386-linux-tdep.c: Include "osabi.h".
186         * i386-sol2-tdep.c: Include "osabi.h".
187         * i386bsd-tdep.c: Include "osabi.h".
188         * i386gnu-tdep.c: Include "osabi.h".
189         * i386ly-tdep.c: Include "osabi.h".
190         * i386nbsd-tdep.c: Include "osabi.h".
191         * i386obsd-tdep.c: Include "osabi.h".
192
193         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
194         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
195         check osabi when iterating over arches.  Update call to
196         gdbarch_init_osabi.
197         (mips_dump_tdep): Don't dump osabi.
198
199         * ns32k-tdep.h: Don't include "osabi.h".
200         (struct gdbarch_tdep): Remove.
201         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
202         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
203         allocate tdep.  Update call to gdbarch_init_osabi.
204         (ns32k_dump_tdep): Remove.
205         (_initialize_ns32k_tdep): Update call to gdbarch_register.
206         * ns32knbsd-tdep.c: Include "osabi.h".
207
208         * ppc-tdep.h: Don't include "osabi.h".
209         (struct gdbarch_tdep): Remove osabi member.
210         * rs6000-tdep.c: Include "osabi.h".
211         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
212         osabi when iterating over arches.  Update call to
213         gdbarch_init_osabi.
214         (rs6000_dump_tdep): Don't dump osabi.
215         * ppc-linux-tdep.c: Include "osabi.h".
216         * ppcnbsd-tdep.c: Include "osabi.h".
217
218         * sh-tdep.h: Don't include "osabi.h".
219         (struct gdbarch_tdep): Remove osabi member.
220         * sh-tdep.c: Include "osabi.h".
221         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
222         iterate over arches.  Update call to gdbarch_init_osabi.
223         (sh_dump_tdep): Don't dump osabi.
224         * shnbsd-tdep.c: Include "osabi.h".
225
226         * sparc-tdep.c: Include "osabi.h".
227         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
228         iterate over arches.  Update call to gdbarch_init_osabi.
229         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
230         tdep structure.
231
232         * vax-tdep.h: Don't include "osabi.h".
233         (struct gdbarch_tdep): Remove.
234         * vax-tdep.c: Include "osabi.h".
235         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
236         iterate over arches.  Don't allocate tdep.  Update call
237         to gdbarch_init_osabi.
238         (vax_dump_tdep): Remove.
239         (_initialize_vax_tdep): Update call to gdbarch_register.
240
241 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
242
243         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
244         entirely.
245         (breakpoint_re_set_one): Don't fetch the value for a disabled
246         watchpoint.
247
248 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
249
250         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
251         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
252         (COERCE_FLOAT_TO_DOUBLE): Remove.
253         * gdbarch.c: Regenerate.
254         * gdbarch.h: Regenerate.
255         * Makefile.in: Remove value_h from gdbarch_h.
256         * valops.c (coerce_float_to_double): New variable.
257         (default_coerce_float_to_double): Remove.
258         (standard_coerce_float_to_double): Remove.
259         (value_arg_coerce): Use coerce_float_to_double.
260         (_initialize_valops): Add "set coerce-float-to-double".
261         * value.h (default_coerce_float_to_double): Remove prototype.
262         (standard_coerce_float_to_double): Remove prototype.
263
264         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
265         prototyped.
266         * mdebugread.c (parse_symbol): Likewise.
267         * stabsread.c (define_symbol): Mark all functions as prototyped.
268
269         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
270         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
271         set_gdbarch_coerce_float_to_double.
272         * arm-tdep.c (arm_gdbarch_init): Likewise.
273         * frv-tdep.c (frv_gdbarch_init): Likewise.
274         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
275         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
276         * mips-tdep.c (mips_gdbarch_init): Likewise.
277         (mips_coerce_float_to_double): Remove.
278         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
279         (rs6000_coerce_float_to_double): Remove.
280         * s390-tdep.c (s390_gdbarch_init): Likewise.
281         * sh-tdep.c (sh_gdbarch_init): Likewise.
282         (sh_coerce_float_to_double): Remove.
283         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
284         (sparc_coerce_float_to_double): Remove.
285         * v850-tdep.c (v850_gdbarch_init): Likewise.
286         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
287         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
288         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
289         (hppa_coerce_float_to_double): Remove prototype.
290         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
291
292 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
293
294         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
295
296 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
297
298         Suggested by Stewart Brown <sb24@avaya.com>:
299         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
300         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
301         (c_type_print_varspec_suffix): Likewise.
302
303 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
304
305         * configure.in: Don't set and AC_SUBST SUBDIRS.
306         * configure: Regenerated.
307
308         * configure.in: Remove code dealing with shared libraries.
309         * Makefile.in: Remove HLDFLAGS and HLDENV.
310         * configure: Regenerated.
311
312 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
313
314         * frame.c (deprecated_frame_xmalloc): New function.
315         (deprecated_set_frame_saved_regs_hack): New function.
316         (deprecated_set_frame_extra_info_hack): New function.
317         * frame.h (deprecated_frame_xmalloc): Declare.
318         (deprecated_set_frame_saved_regs_hack): Declare.
319         (deprecated_set_frame_extra_info_hack): Declare.
320
321 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
322
323         * configure.in: Move code that provides the --enable-gdbtk option
324         right after the code that handles the --enable-tui option, and
325         polish it somewhat.
326         * configure: Regenerated.
327
328         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
329         AC_CHECK_FUNCS and remove the old check for pread64.
330         * acinclude.m4 (AC_GNU_SOURCE): New macro.
331         * acconfig.h (_GNU_SOURCE): Add.
332         (HAVE_PREAD64): Remove.
333         * configure, aclocal.m4, config.in: Regenerated.
334
335 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
336
337         * alpha-tdep.c: Use get_frame_saved_regs.
338         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
339         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
340         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
341         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
342         * vax-tdep.c, xstormy16-tdep.c: Ditto.
343
344 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
345
346         * configure.in: Remove all use of the SUBDIRS variable; add
347         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
348         code providing the --enable-multi-ice option, and move it right in
349         front of the code that checks whether gdbserver is supported.
350         Polish that too.
351         * configure: Regenerated.
352         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
353         @SUBDIRS@.
354
355 2003-01-03  Andrew Cagney  <cagney@redhat.com>
356
357         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
358         * avr-tdep.c, cris-tdep.c: Ditto.
359         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
360         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
361         
362 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
363
364         * configure.in: Remove --enable-netrom option.
365         * configure: Regenerated.
366
367 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
368
369         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
370         declaration for `struct re_pattern_buffer' instead.
371         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
372
373 2003-01-03  J. Brobecker  <brobecker@gnat.com>
374
375         * mdebugread.c (parse_symbol): Count until the stEnd matching
376         the structure name.
377
378 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
379
380         * configure.in: Remove --with-cpu option.
381         subscripts.  Remove evil changequotes here.
382         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
383         * config.in, configure: Regenerated.
384         
385         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
386         * configure.in: Cleanup section that sources GDB and BFD configure
387         subscripts.  Remove evil changequotes here.
388         * config.in, configure: Regenerated.
389
390 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
391
392         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
393         frame accessor methods.
394         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
395         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
396         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
397         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
398         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
399         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
400         * z8k-tdep.c: Ditto.
401         
402 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
403
404         * configure.in: Remove UI_OUT configuration code.
405         * ada-lang.c: Update assuming UI_OUT is always true.
406         * Makefile.in (UIOUT_CFLAGS): Remove.
407         * configure: Regenerated.
408         * TODO: Remove blurb about elimination of -DUI_OUT.
409
410         * configure.in: Move code that provides the --enable-gdbcli,
411         --enable-gdbmi options right before the code that handles the
412         --enable-tui option.  Polish a bit.
413         * configure: Regenerated.
414
415         * configure.in: Rewrite check for GNU regex and the
416         --without-included regex option, and move it into the "Checks for
417         library functions" section.  This makes us use the system regex
418         again by default on systems with version 2 of the GNU C library.
419         This was apparently broken.
420         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
421         * acconfig.h (USE_INCLUDED_REGEX): Remove.
422         * config.in, configure: Regenerated.
423
424         * configure.in: Move code that provides the --enable-tui option
425         before the "Checks for libraries" section.  Polish the code
426         somewhat and set need_curses to yes if we build the TUI.  Rewrite
427         code that looks for a library providing termcap functionality to
428         match more closely what's done in the Readline library, and move
429         it into to the "Checks for libraries" section.
430         * configure: Regenerated.
431         * Makefile.in (TERMCAP): Remove variable.
432         * config/i386/go32.mh (TERMCAP): Remove variable.
433
434 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
435
436         * MAINTAINERS: Mention gdb_mbuild.sh.
437         * gdb_mbuild.sh: Rewrite.
438
439 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
440
441         * configure.in: Fix typo in last change.
442         * config.in, configure: Regenerated.
443
444 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
445
446         * valarith.c (value_binop): Delete obsolete code and comments.
447         * configure.host: Ditto.
448         * buildsym.h (make_blockvector): Ditto.
449         * buildsym.c (make_blockvector): Ditto.
450         * defs.h (enum language): Ditto.
451         (chill_demangle): Ditto.
452         * elfread.c (elf_symtab_read): Ditto.
453         * dwarfread.c (CHILL_PRODUCER): Ditto.
454         (set_cu_language): Ditto.
455         (handle_producer): Ditto.
456         * expprint.c (print_subexp): Ditto.
457         * gdbtypes.c (chill_varying_type): Ditto.
458         * gdbtypes.h (builtin_type_chill_bool): Ditto.
459         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
460         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
461         (chill_varying_type): Ditto.
462         * language.h (_LANG_chill): Ditto.
463         * language.c (binop_result_type, integral_type): Ditto.
464         (character_type, string_type, structured_type): Ditto.
465         (lang_bool_type, binop_type_check): Ditto.
466         * stabsread.h (os9k_stabs): Ditto.
467         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
468         (define_symbol, read_type, read_struct_fields): Ditto.
469         (read_array_type, read_enum_type, read_huge_number): Ditto.
470         (read_range_type, start_stabs): Ditto.
471         * symfile.c (init_filename_language_table): Ditto.
472         (add_psymbol_with_dem_name_to_list): Ditto.
473         * symtab.c (symbol_init_language_specific): Ditto.
474         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
475         * symtab.h (struct general_symbol_info): Ditto.
476         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
477         * typeprint.c (typedef_print): Ditto.
478         * utils.c (fprintf_symbol_filtered): Ditto.
479         * valops.c (value_cast, search_struct_field, value_slice): Delete
480         obsolete code.
481         (varying_to_slice): Delete function.
482         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
483         (varying_to_slice): Delete declaration.
484         * MAINTAINERS: Update.
485
486 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
487
488         * configure.in: Reorganize "Checks for library functions section"
489         a bit.  Remove check for `btowc' and `isascii' functions.
490         * configure: Regenerated.
491
492         * acconfig.h (_MSE_INT_H): Remove.
493         * configure.in: Create "Checks for header files" section, and move
494         appropriate tests there.  Don't check for objlist.h, wchar.h,
495         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
496         misdetection fix.  Also add "Checks for types", "Checks for
497         compiler characteristics" and "Checks for library functions"
498         sections.
499         * config.in, configure: Regenerated.
500
501         * configure.in: Create "Checks for programs" section, and move
502         appropriate tests there.
503
504 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
505
506         * configure.in: Create "Checks for libraries" section, and move
507         appropriate tests there.  Cleanup check for wctype in libw.  Use
508         AC_SEARCH_LIBS to see whether we need libsocket.
509         * configure: Regenerated.
510
511 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
512
513         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
514         * config.in, configure: Regenerated.
515
516 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
517
518         * gdb_dirent.h: Cleanup and update code to match the example in
519         the Autoconf manual.
520         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
521         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
522         * configure: Regenerated.
523
524 2002-12-30  Adam Fedor  <fedor@gnu.org>
525
526         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
527         (yylex): Initialize c to avoid uninitialized warning.
528
529 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
530
531         * doc/fdl.texi: Revert the last change.
532
533 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
534
535         * tracepoint.c (ISATTY): Removed.
536
537 2002-12-26  J. Brobecker  <brobecker@gnat.com>
538
539         Continuing work to convert the hppa targets to multiarch partil.
540
541         * hppa-tdep.c: Add some missing forward declarations.
542         (frameless_function_invocation): Prefix the function name
543         by "hppa_" to avoid polluting the namespace.  Update all calls
544         to use the new function name.
545         (saved_pc_after_call): Ditto.
546         (init_extra_frame_info): Ditto.
547         (frame_chain): Ditto.
548         (push_dummy_frame): Ditto.
549         (target_read_pc): Ditto.
550         (target_write_pc): Ditto.
551         (in_solib_call_trampoline): Ditto.
552         (in_solib_return_trampoline): Ditto.
553         (skip_trampoline_code): Ditto.
554         (hppa_read_fp): New function, renamed from target_read_fp.
555         (hppa_target_read_fp): New function, using hppa_read_fp.
556         This function conforms to the function profile for the
557         READ_FP gdbarch method.
558         (hppa_extract_struct_value_address): New function, extracted
559         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
560         macro.
561         (hppa_frame_num_args): New function.
562         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
563
564         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
565         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
566         for the switch to multiarch partial.
567         Update some of the macros definitions to match some changes
568         described above in the name of the function they are calling.
569         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
570         not be straightforward to convert. Do now wrap it inside
571         "#if !... #endif" to remember that this macro has still not
572         been taken care of.
573         (FIX_CALL_DUMMY): Likewise.
574
575 2002-12-26  J. Brobecker  <brobecker@gnat.com>
576
577         Continuing work to convert the hppa targets to multiarch partial.
578
579         * hppa-tdep.c (hppa_register_raw_size): New function replacing
580         the body of macro REGISTER_RAW_SIZE.
581         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
582         config/pa/tm-hppah.h. These functions will be used to initialize
583         the gdbarch structure.
584         (hppa_hpux_pc_in_sigtramp): New function.
585         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
586         (hppa_hpux_frame_base_before_sigtramp): New function.
587         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
588         Add gdbcore.h #include.
589         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
590         of this gdbarch-eligible macro to a call to the new associated
591         function.
592         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
593         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
594         into a call to the new associated function.
595         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
596         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
597         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
598
599 2002-12-24  David Carlton  <carlton@math.stanford.edu>
600
601         * config/sparc/tm-sparc.h: Delete duplicate definition of
602         DEPRECATED_PC_IN_CALL_DUMMY.
603
604 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
605
606         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
607         $(gdb_assert_h).
608         * configure.tgt: Recognize mips64*-*-linux*.
609         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
610         (supply_32_bit_reg): New function.
611         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
612         (fill_gregset): Use regcache_collect() instead of
613         deprecated_registers[].
614         (register_addr): Change name to mips_linux_register_addr().
615         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
616         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
617         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
618         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
619         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
620         (MIPS64_LINUX_JB_PC): New defines.
621         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
622         (mips64_elf_fpregset_t): New typedefs.
623         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
624         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
625         (mips64_linux_register_addr, set_mips_linux_register_addr)
626         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
627         (init_register_addr_data)
628         New functions.
629         (fetch_core_registers): Add support for core file formats with 64-bit
630         registers.
631         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
632         (register_addr_data): New static global variable.
633         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
634         gdbarch_register_osabi() for each MIPS machine.
635         * config/mips/linux64.mt: New file.
636         * config/mips/tm-linux64.h: New file.
637
638 2002-12-23  Adam Fedor  <fedor@gnu.org>
639
640         * maint.c (maintenance_demangle): Add switch to demangle
641         ObjC language symbols as well.
642
643 2002-12-23  Adam Fedor  <fedor@gnu.org>
644
645         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
646         last argument from complaint function call.
647
648 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
649
650         * exec.c (print_section_info): Add FIXME comments regarding format
651         string choices.
652
653 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
654
655         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
656         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
657
658 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
659
660         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
661
662 2002-12-23  David Carlton  <carlton@math.stanford.edu>
663
664         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
665         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
666         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
667         information associated to a minsym, not lookup_symbol.
668
669 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
670
671         * x86-64-tdep.h (x86_64_init_abi): New prototype.
672         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
673         (x86_64_init_abi): Make non-static.  Set number of pseudo
674         registers to 0.
675         (x86_64_gdbarch_init): Remove function.
676         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
677         Remove code dealing with dissambly.
678         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
679         (_initialize_x86_64_linux_tdep): New function.
680         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
681         i386-tdep.o.
682
683 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
684
685         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
686         (struct gdb_osabi_handler): Remove member `arch'.  Add member
687         `arch_info'.
688         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
689         construct a `struct bfd_arch_info' and store it in the `struct
690         gdb_osabi_handler' that is created.
691         (gdbarch_init_osabi): Check for compatibility based on machine
692         type and architecture.
693         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
694         comment.
695         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
696         second argument in call to gdbarch_register_osabi.
697         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
698         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
699         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
700         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
701         * arm-tdep.c (_initialize_arm_tdep): Likewise.
702         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
703         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
704         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
705         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
706         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
707         * i386-tdep.c (_initialize_i386_tdep): Likewise.
708         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
709         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
710         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
711         _initialize_i386bsd_tdep and updated likewise.
712         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
713         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
714         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
715         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
716         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
717         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
718         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
719         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
720         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
721         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
722
723 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
724
725         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
726         DT_MIPS_RLD_MAP case for 64-bit targets.
727
728 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
729
730         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
731         ``temp_saved_regs'', not the pointer or other storage contiguous
732         to this pointer.
733
734 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
735
736         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
737         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
738         (mips_linux_get_longjmp_target): Delete declarations.
739         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
740         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
741         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
742         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
743         (mips_linux_get_longjmp_target)
744         (mips_linux_svr4_fetch_link_map_offsets): Make static.
745         (mips_linux_init_abi): New function.
746         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
747
748 2002-12-19  Keith Seitz  <keiths@redhat.com>
749
750         patch committed by Elena Zannoni  <ezannoni@redhat.com>
751         * thread.c (do_captured_list_thread_ids): Call prune_threads and
752         target_find_new_threads. Fix for PR mi/669.
753
754 2002-12-19  David Carlton  <carlton@math.stanford.edu>
755
756         * linespec.c (decode_line_1): Move code into decode_all_digits.
757         (decode_all_digits): New function.
758
759 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
760
761         * exec.c (print_section_info): Select a format string to use with
762         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
763
764 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
765
766         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
767         deprecated_update_current_frame_pc_hack.
768         (deprecated_update_frame_base_hack): New function.
769         * frame.h (deprecated_update_frame_pc_hack): Replace
770         (deprecated_update_frame_base_hack): Declare.
771         * infrun.c (normal_stop): Update.
772
773 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
774
775         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
776         frame_extra_info_zalloc.
777         (rs6000_frame_args_address): Use get_frame_extra_info.
778         (frame_get_saved_regs): Use get_frame_saved_regs.
779         (frame_initial_stack_address): Use get_frame_saved_regs and
780         get_frame_extra_info.
781         (frame_initial_stack_address): Use get_frame_extra_info.
782
783 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
784
785         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
786         array size.
787         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
788         checks for r3900_regnames[].
789
790 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
791
792         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
793         All uses changed
794         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
795
796 2002-12-17  David Carlton  <carlton@math.stanford.edu>
797
798         * symtab.c (lookup_partial_symbol): Don't search past the end of
799         the partial symbols.
800
801 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
802
803         * stack.c (frame_info): Use get_frame_saved_regs.
804         * breakpoint.c (until_break_command): Use get_frame_pc.
805
806 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
807
808         * buildsym.c (block_end_complaint, anon_block_end_complaint)
809         (innerblock_complaint, innerblock_anon_complaint)
810         (blockvector_complaint): Delete deprecated complaint structs.
811         (finish_block, make_blockvector, end_symtab): Replace calls
812         to complain() with calls to complaint().
813         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
814         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
815         (unexpected_type_complaint, bad_sclass_complaint)
816         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
817         Delete deprecated complaint structs.
818         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
819         Replace calls to complain() with calls to complaint().
820         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
821         (unknown_symtype_complaint, unknown_symchar_complaint)
822         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
823         (lbrac_mismatch_complaint, repeated_header_complaint)
824         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
825         Delete deprecated complaint structs.
826         (unknown_symtype_complaint, lbrac_mismatch_complaint)
827         (repeated_header_complaint)
828         (function_outside_compiliation_unit_complaint): New functions.
829         (add_old_header_file, find_corresponding_bincl_psymtab)
830         (set_namestring, find_stab_function_addr, read_dbx_symtab)
831         (process_one_symbol): Replace calls to complain() with, possibly
832         indirect, calls to complaint().
833         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
834         (unknown_attribute_form, unknown_attribute_length)
835         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
836         (const_ignored, botched_modified_type, op_deref2, op_deref4)
837         (basereg_not_handled, dup_user_type_allocation)
838         (dup_user_type_definition, missing_tag, bad_array_element_type)
839         (subscript_data_items, unhandled_array_subscript_format)
840         (unknown_array_subscript_format, not_row_major)
841         (missing_at_name): Delete deprecated complaint structs.
842         (bad_die_ref_complaint, unknown_attribute_form_complaint)
843         (dup_user_type_definition_complaint)
844         (bad_array_element_type_complaint): New functions.
845         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
846         (decode_subscript_data_item, dwarf_read_array_type)
847         (read_tag_string_type, read_subroutine_type, read_func_scope)
848         (locval, scan_partial_symbols, decode_modified_type)
849         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
850         (attribute_size): Replace calls to complain() with, possibly
851         indirect, calls to complaint().
852         * elfread.c (section_info_complaint, section_info_dup_complaint)
853         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
854         Delete deprecated complaint structs.
855         (elf_symtab_read, elfstab_offset_sections): Replace calls to
856         complain() with calls to complaint().
857         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
858         struct.
859         (stub_noname_complaint): New function.
860         (check_typedef, add_mangled_type): Replace calls to complain()
861         with calls to complaint().
862         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
863         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
864         (hpread_unhandled_type_complaint, hpread_struct_complaint)
865         (hpread_array_complaint, hpread_type_lookup_complaint)
866         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
867         (hpread_unhandled_common_complaint)
868         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
869         struct definitions and declarations.
870         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
871         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
872         Replace calls to complain() with, possibly indirect, calls to
873         complaint().
874         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
875         Likewise.
876         * mdebugread.c (bad_file_number_complaint, index_complaint)
877         (aux_index_complaint, block_index_complaint)
878         (unknown_ext_complaint, unknown_sym_complaint)
879         (unknown_st_complaint, block_overflow_complaint)
880         (basic_type_complaint, unknown_type_qual_complaint)
881         (array_index_type_complaint, bad_tag_guess_complaint)
882         (block_member_complaint, stEnd_complaint)
883         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
884         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
885         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
886         (bad_continued_complaint, bad_rfd_entry_complaint)
887         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
888         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
889         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
890         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
891         complaint structs.
892         (index_complaint, unknown_ext_complaint, basic_type_complaint)
893         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
894         (unexpected_type_code_complaint)
895         (function_outside_compilation_unit_complaint): New functions.
896         (parse_symbol, parse_type, upgrade_type, parse_procedure)
897         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
898         Replace calls to complain() with, possibly indirect calls to
899         complaint().
900         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
901         Delete deprecated complaint structs.
902         (lookup__objc_class, lookup_child_selector): Replace complain()
903         with complaint().
904         * remote-vx.c (cant_contact_target): Delete deprecated complaint
905         struct.
906         (vx_lookup_symbol): Replace complain() with complaint().
907         * stabsread.c (invalid_cpp_abbrev_complaint)
908         (invalid_cpp_type_complaint, member_fn_complaint)
909         (const_vol_complaint, error_type_complaint)
910         (invalid_member_complaint, range_type_base_complaint)
911         (reg_value_complaint, vtbl_notfound_complaint)
912         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
913         (unresolved_sym_chain_complaint, stabs_general_complaint)
914         (lrs_general_complaint, multiply_defined_struct): Delete
915         deprecated complaint structs.
916         (invalid_cpp_abbrev_complaint, ref_value_complaint)
917         (stabs_general_complaint, lrs_general_complaint)
918         (msg_unknown_complaint): New functions.
919         (dbx_lookup_type, read_cfront_baseclasses)
920         (read_cfront_member_functions, resolve_symbol_reference)
921         (define_symbol, resolve_live_range, add_live_range, read_type)
922         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
923         (read_one_struct_field, read_baseclasses, read_tilde_fields)
924         (read_cfront_static_fields, attach_fields_to_type)
925         (complain_about_struct_wipeout, read_range_type)
926         (common_block_start, common_block_end, cleanup_undefined_types)
927         (scan_file_globals): Replace complain() with complaint().
928         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
929         Delete deprecated complaint struct declarations.
930         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
931         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
932         (bf_not_found_complaint, ef_complaint, eb_complaint)
933         (function_outside_compilation_unit_complaint): New functions.
934         (record_include_begin, record_include_end, enter_line_range)
935         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
936         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
937         complain() with complaint().
938
939 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
940
941         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
942         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
943         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
944         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
945         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
946         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
947         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
948         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
949         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
950         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
951         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
952         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
953         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
954         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
955         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
956         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
957         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
958         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
959         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
960         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
961         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
962         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
963         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
964         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
965         * config/m88k/xm-dgux.h: Delete.
966         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
967         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
968         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
969         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
970         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
971         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
972         * ch-valprint.c: Delete.
973         
974 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
975
976         * infrun.c (handle_inferior_event): Rearrange code to resume if
977         no catchpoint triggers for an event.
978
979 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
980
981         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
982         and TARGET_WAITKIND_VFORKED cases.
983
984 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
985
986         * infrun.c (handle_inferior_event): Assume that catchpoints
987         are not affected by DECR_PC_AFTER_BREAK.
988
989 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
990
991         * target.c (update_current_target): Don't inherit DONT_USE.
992         * target.h (struct target_ops): Remove DONT_USE.
993         (target_next): Remove macro.
994
995 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
996
997         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
998
999 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1000
1001         * arm-tdep.c (convert_from_extended): New argument to hold the
1002         type of floating point result we want to convert to.  Make input 
1003         argument const.  Fix all callers.
1004         (convert_to_extended): Similarly.
1005         (arm_extract_return_value): Now takes a regcache argument.  Change
1006         code to use regcache accessor functions.  Correctly extract 
1007         smaller-than-word results on big-endian machines.
1008         (arm_store_return_value): Now takes a regcache argument.  Change
1009         code to use regcache accessor functions.  Correctly zero/sign extend
1010         smaller than word results before storing into r0.
1011         (arm_gdbarch_init): Register new-style extract_return_value and
1012         store_return_value functions.
1013
1014 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1015
1016         * thread-db.c (thread_from_lwp): Uniquify error msg.
1017         (lwp_from_thread): Ditto.
1018         (check_event): Ditto.
1019         (find_new_threads_callback): Ditto.
1020         (thread_db_pid_to_str): Ditto.
1021
1022 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1023
1024         * frame.h (get_frame_saved_regs): Declare.
1025         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1026         pointer.
1027         * frame.c (get_frame_saved_regs): New function.
1028         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1029
1030 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1031
1032         * frame.c (deprecated_update_current_frame_pc_hack): New
1033         function.
1034         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1035         * infrun.c (normal_stop): Use said function instead of directly
1036         modifying the frame's PC.
1037         
1038 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1039
1040         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1041
1042 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1043
1044         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1045         config/mips/tm-irix6.h (NUM_REGS): Delete.
1046         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1047         (temp_saved_regs): Declare as a pointer rather than an array.
1048         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1049         that ``temp_saved_regs'' has storage allocated to it and that
1050         it's the correct size.
1051
1052 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1053
1054         * defs.h (init_last_source_visited): New prototype.
1055         (add_path): Ditto.
1056         * source.c (add_path): New function that adds to a specified path.
1057         (mod_path): Change to call add_path.
1058         (init_last_source_visited): New function to allow interfaces to
1059         initialize static variable: last_source_visited.  Part of fix
1060         for PR gdb/741.
1061         * Makefile.in: Add support for mi/mi-cmd-env.c.
1062
1063 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1064
1065         * frame.h (frame_id_unwind): Declare.
1066         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1067         id_unwind_cache.
1068         (frame_id_unwind_ftype): Declare.
1069         * frame.c (frame_id_unwind): New function.
1070         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1071         (create_new_frame, get_prev_frame): Pass id_unwind to
1072         set_unwind_by_pc.
1073         (frame_saved_regs_id_unwind): New function.
1074         (frame_saved_regs_id_unwind): New function.
1075         * dummy-frame.c (dummy_frame_id_unwind): New function.
1076         (struct dummy_frame): Add field id.
1077         (generic_push_dummy_frame): Initialize `id'.
1078         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1079
1080 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1081
1082         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1083         pass that to set_momentary_breakpoint.  Move comments to where they
1084         belong.
1085         * frame.h (set_current_frame): Delete declaration.
1086         * frame.c (set_current_frame): Delete function.
1087
1088 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1089
1090         * frame.c (frame_extra_info_zalloc): New function.
1091         * frame.h (frame_extra_info_zalloc): Declare.
1092
1093 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1094
1095         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1096         in the previous prototype change to set_momentary_breakpoint.
1097
1098 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1099
1100         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1101         and saw_child_exec.
1102         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1103         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1104         (stop_stepping): Remove outdated check for child vfork events.
1105
1106 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1107
1108         * GDB 5.3 released from gdb_5_3-branch.
1109
1110 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1111
1112         * corelow.c (init_core_ops): Delete references to to_require_attach
1113         and to_require_detach.
1114         * exec.c (init_exec_ops): Likewise.
1115         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1116         hppa_require_detach directly.
1117         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1118         * inftarg.c (child_detach): Remove.
1119         (child_detach_from_process): Rename to child_detach, remove
1120         after_fork argument.
1121         (child_attach): Remove.
1122         (child_attach_to_process): Rename to child_attach, remove after_fork
1123         argument.
1124         (init_child_ops): Delete references to to_require_attach
1125         and to_require_detach.
1126         * infttrace.c (hppa_require_attach): Update comment.
1127         * target.c (cleanup_target, update_current_target)
1128         (init_dummy_target, setup_target_debug): Delete references to
1129         to_require_attach and to_require_detach.
1130         (find_default_require_detach, find_default_require_attach)
1131         (debug_to_require_attach, debug_to_require_detach): Remove
1132         functions.
1133         * target.h (struct target_ops): Remove to_require_attach
1134         and to_require_detach.
1135         (target_require_attach, target_require_detach): Delete macros.
1136         (find_default_require_detach, find_default_require_attach): Delete
1137         prototypes.
1138         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1139
1140 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1141
1142         * frame.c (get_frame_extra_info): New function.
1143         * frame.h (get_frame_extra_info): Declare.
1144
1145 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1146
1147         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1148         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1149         with `struct frame_id'.
1150         (set_longjmp_resume_breakpoint): Ditto.
1151         * infrun.c (handle_inferior_event): Update.
1152         * breakpoint.c (watch_command_1, until_break_command): Update.
1153         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1154         (handle_inferior_event, step_over_function): Update.
1155         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1156         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1157         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1158         * infcmd.c (finish_command, run_stack_dummy): Update.
1159
1160 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1161
1162         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1163         (dwarf2_non_const_array_bound_ignored)
1164         (dwarf2_missing_line_number_section)
1165         (dwarf2_statement_list_fits_in_line_number_section)
1166         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1167         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1168         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1169         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1170         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1171         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1172         (dwarf2_missing_member_fn_type_complaint)
1173         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1174         (dwarf2_const_value_length_mismatch)
1175         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1176         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1177         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1178         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1179         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1180         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1181         complaints using deprecated struct..
1182         (dwarf2_non_const_array_bound_ignored_complaint)
1183         (dwarf2_complex_location_expr_complaint)
1184         (dwarf2_unsupported_at_frame_base_complaint)
1185         (dwarf2_const_value_length_mismatch_complaint)
1186         (dwarf2_macros_too_long_complaint)
1187         (dwarf2_macro_malformed_definition_complaint)
1188         (dwarf2_invalid_attrib_class_complaint): New functions.
1189         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1190         (read_structure_scope, read_array_type, read_common_block)
1191         (read_tag_pointer_type, read_base_type, read_partial_die)
1192         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1193         (new_symbol, dwarf2_const_value, read_type_die)
1194         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1195         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1196         complain() with, possibly indirect, calls to complaint().
1197
1198 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1199
1200         * frame.c (deprecated_get_frame_saved_regs): Rename
1201         get_frame_saved_regs.
1202         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1203         * sparc-tdep.c: Update.
1204         * hppa-tdep.c: Update.
1205         * h8500-tdep.c: Update.
1206
1207 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1208
1209         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1210         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1211         ``char *'' for return and parameter types.
1212         * gdbarch.h, gdbarch.c: Regenerate.
1213         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1214         return type from ``char *'' to ``const char *''.
1215         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1216         const.
1217
1218 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1219
1220         * i386-tdep.c: Include "dummy-frame.h".
1221         (i386_frame_chain, i386_frame_saved_pc): Replace
1222         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1223         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1224
1225 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1226
1227         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1228         Change to a function with predicate.
1229         * gdbarch.h, gdbarch.c: Re-generate.
1230         * frame.c (get_prev_frame): Update.  Test
1231         DEPRECATED_INIT_FRAME_PC_P.
1232         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1233         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1234         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1235         * alpha-tdep.c (alpha_gdbarch_init): Update.
1236         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1237         * mips-tdep.c (mips_gdbarch_init): Update.
1238         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1239         * arm-tdep.c: Update comments.
1240         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1241         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1242         * frv-tdep.c (frv_gdbarch_init): Ditto.
1243         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1244         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1245         * s390-tdep.c (s390_gdbarch_init): Ditto.
1246         * v850-tdep.c (v850_gdbarch_init): Ditto.
1247         * vax-tdep.c (vax_gdbarch_init): Ditto.
1248         * sh-tdep.c (sh_gdbarch_init): Ditto.
1249         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1250         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1251         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1252         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1253         * i386-tdep.c (i386_gdbarch_init): Ditto.
1254         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1255         * cris-tdep.c (cris_gdbarch_init): Ditto.
1256         * avr-tdep.c (avr_gdbarch_init): Ditto.
1257         * arm-tdep.c (arm_gdbarch_init): Ditto.
1258         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1259         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1260
1261 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1262
1263         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1264         CHILD_FOLLOW_FORK.
1265         * hppah-nat.c (saved_vfork_pid): Add.
1266         (child_post_follow_vfork): Remove.
1267         (child_follow_fork): New function.
1268         (child_wait): Call detach_breakpoints after receiving the child vfork.
1269         Call child_resume directly instead of going through resume ().
1270         Make sure we have the exec before reporting the vfork.
1271         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1272         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1273         (follow_fork): New function.  Call target_follow_fork.
1274         (follow_inferior_reset_breakpoints): New function broken out from
1275         old follow_inferior_fork.
1276         (resume): Remove hack to follow exec after vfork.
1277         * inftarg.c (child_post_follow_vfork): Remove.
1278         (child_follow_fork): New function.
1279         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1280         * target.c (cleanup_target): Replace to_post_follow_vfork with
1281         to_follow_fork.
1282         (update_current_target): Likewise.
1283         (setup_target_debug): Likewise.
1284         (debug_to_post_follow_vfork): Remove.
1285         (debug_to_follow_fork): New function.
1286         * target.h (struct target_ops): Replace to_post_folow_vfork with
1287         to_follow_fork.
1288         (child_post_follow_vfork): Remove prototype.
1289         (child_follow_fork): Add prototype.
1290         (target_post_follow_vfork): Remove macro.
1291         (target_follow_fork): Add macro.
1292
1293 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1294
1295         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1296         (child_post_follow_vfork): Cancel pending exec event if we follow
1297         the parent.
1298         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1299         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1300         event at the following wait call if necessary.
1301         * infrun.c (follow_vfork): Don't follow_exec here.
1302         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1303         case about HP/UX 10.20.  Remove code pushed down to
1304         hppah-nat.c:child_wait.
1305         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1306         vfork_in_flight is set.
1307
1308 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1309
1310         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1311         for the parent's fork event.
1312         * infrun.c (handle_inferior_event): Only expect one fork event.
1313         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1314         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1315
1316 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1317
1318         * PROBLEMS: Delete reference to PR gdb/725.
1319         
1320         * MAINTAINERS (gdb.c++): Add David Carlton.
1321
1322 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1323
1324         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1325         * cli/cli-cmds.c: Ditto.
1326
1327 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1328
1329         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1330         function address in <>.
1331         * gdbarch.c: Re-generate.
1332
1333 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1334
1335         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1336
1337 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1338
1339         * linespec.c (symtab_from_filename): New function.
1340         (decode_line_1): Move code into symtab_from_filename.
1341
1342 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1343
1344         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1345
1346 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1347
1348         * f-valprint.c (info_common_command): Use get_frame_pc.
1349         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1350         * ax-gdb.c (agent_command): Ditto.
1351         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1352         (rs6000_pop_frame): Ditto.
1353         (rs6000_frameless_function_invocation): Ditto.
1354         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1355         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1356         * macroscope.c (default_macro_scope): Ditto.
1357         * stack.c (print_frame_info_base): Ditto.
1358         (print_frame, frame_info, print_frame_label_vars): Ditto.
1359         (return_command, func_command, get_frame_language): Ditto.
1360         * infcmd.c (finish_command): Ditto.
1361         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1362         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1363         (break_at_finish_at_depth_command_1): Ditto.
1364         (break_at_finish_command_1): Ditto.
1365         (until_break_command, get_catch_sals): Ditto.
1366         * blockframe.c (func_frame_chain_valid): Ditto.
1367         (frameless_look_for_prologue): Ditto.
1368         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1369
1370 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1371
1372         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1373         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1374
1375 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1376
1377         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1378         to pure functions.
1379         * gdbarch.h, gdbarch.c: Re-generate.
1380         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1381         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1382
1383         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1384         declaration to a function returning a CORE_ADDR.
1385         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1386         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1387         (init_frame_pc_default): Ditto.
1388         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1389         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1390         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1391         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1392         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1393         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1394
1395         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1396         to init_frame_pc_noop.
1397         (i386_interix_init_frame_pc): Delete function.
1398         * z8k-tdep.c (init_frame_pc): Delete function.
1399         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1400         (INIT_FRAME_PC_FIRST): Ditto.
1401         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1402         (INIT_FRAME_PC_FIRST): Ditto.
1403         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1404         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1405         init_frame_pc_noop.
1406         (INIT_FRAME_PC_FIRST): Convert to an expression.
1407         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1408
1409 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1410
1411         * blockframe.c: Use get_frame_base instead of directly accessing
1412         the `struct frame_info' member frame.
1413         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1414         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1415
1416 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1417
1418         * Makefile.in (readline_h): Define.
1419         (completer.o): Depend on readline_h.
1420         (corelow.o): Ditto.
1421         (event-top.o): Ditto.
1422         (exec.o): Ditto.
1423         (solib.o): Ditto.
1424         (source.o): Ditto. 
1425         (symfile.o): Ditto. 
1426         (symmisc.o): Ditto. 
1427         (top.o): Ditto.
1428         (tracepoint.o): Ditto. 
1429         (utils.o): Ditto.
1430         (cli-dump.o): Ditto.
1431         (tui-hooks.o): Ditto. 
1432         (tuiWin.o): Ditto. 
1433
1434 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1435
1436         More cleanup from import of readline 4.3.
1437         * completer.h (complete_line, readline_line_completion_function):
1438         Update prototypes.
1439         (line_completion_function): Removed, not used outside of completer.c.
1440         * completer.c (readline_line_completion_function,
1441         complete_function, line_completion_function): Use const for first
1442         parameter.
1443         (line_completion_function): Make static.
1444         (filename_completer): filename_completion_function is now called
1445         rl_filename_completion_function
1446         * corelow.c: Include <readline/readline.h>.
1447         * exec.c: Ditto.
1448         * solib.c: Ditto.
1449         * source.c: Ditto.
1450         * symfile.c: Ditto.
1451         * symmisc.c: Ditto.
1452         * top.c (init_main): No need to coerce
1453         readline_line_completion_function anymore.
1454         * cli/cli-dump.c: Include <readline/readline.h>.
1455
1456 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1457
1458         * stack.c (frame_info): Use get_prev_frame.
1459         * blockframe.c (frame_address_in_block): Ditto.
1460         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1461         (rs6000_frameless_function_invocation): Ditto.
1462         (rs6000_frame_saved_pc): Ditto.
1463         (rs6000_frame_chain): Ditto.
1464         * arch-utils.c (init_frame_pc_default): Ditto.
1465
1466 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1467
1468         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1469         Delete redundant definition.
1470
1471 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1472
1473         Import of readline 4.3:
1474         * cli/cli-cmds.c: Include readline/tilde.h.
1475         * cli/cli-setshow.c: Ditto.
1476         * defs.h: Don't declare tilde_expand anymore, since readline
1477         exports it.
1478
1479 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1480
1481         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1482         -Werror on this file.
1483
1484 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1485
1486         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1487         the format name.
1488         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1489         * gdbarch.c: Regenerate.
1490         
1491 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1492
1493         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1494         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1495         provide a default value.
1496         * gdbarch.h, gdbarch.c: Regenerate.
1497         * frame.c (get_prev_frame): Update.  Check
1498         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1499         * s390-tdep.c (s390_gdbarch_init): Update.
1500         * mips-tdep.c (mips_gdbarch_init): Update.
1501         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1502         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1503         * alpha-tdep.c (alpha_gdbarch_init): Update.
1504         
1505 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1506
1507         * ia64-linux-nat.c: Include gdb_string.h.
1508         * alpha-nat.c: Ditto.
1509         * ppc-linux-nat.c: Ditto.
1510         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1511         Update dependencies.
1512
1513 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1514
1515         * gdbthread.h: Include "frame.h".
1516         (struct thread_info): Replace step_frame_address with
1517         step_frame_id.
1518         * inferior.h: Include "frame.h".
1519         (step_frame_id): Replace external variable step_frame_address.
1520         * gdbthread.h (save_infrun_state): Replace step_frame_address
1521         parameter with step_frame_id parameter.
1522         (load_infrun_state): Ditto.
1523         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1524         * infcmd.c (step_frame_id, step_1, step_once): Update.
1525         * thread.c (load_infrun_state, save_infrun_state): Update.
1526         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1527         (handle_inferior_event, step_over_function): Update.
1528         (normal_stop, context_switch, restore_inferior_status): Update.
1529         (struct inferior_status): Replace step_frame_address with
1530         step_frame_id.
1531
1532 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1533
1534         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1535         DW_TAG_member as well as a declaration as being a C++ static data
1536         member.
1537         (read_structure_scope): Combine tests for DW_TAG_member and
1538         DW_TAG_variable.
1539
1540 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1541
1542         * linespec.c (decode_compound): New function.
1543         (decode_line_1): Move code into decode_compound.
1544
1545 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1546
1547         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1548         argument.
1549         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1550         the static block.  See PR gdb/804.
1551
1552 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1553
1554         * symtab.c (lookup_symbol_aux_block): New function.
1555         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1556
1557 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1558
1559         * gdbarch.sh: Dump the predicate function and macro values.
1560         (read): Print error on standard error.
1561         * gdbarch.c: Regenerate.
1562         
1563 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1564
1565         * Makefile.in (mips_tdep_h): Define.
1566         (mips-tdep.o): Add mips_tdep_h to dependency list.
1567         * mips-tdep.h: New file.
1568         * mips-tdep.c (mips-tdep.h): Include.
1569         (enum mips_abi): Move to mips-tdep.h.
1570         (mips_abi): New function.
1571
1572 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1573
1574         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1575
1576 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1577
1578         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1579         function.
1580         (lookup_symbol_aux_minsyms): New function.
1581
1582 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1583
1584         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1585
1586 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1587
1588         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1589         which is an obsolete macro name.
1590
1591 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1592
1593         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1594         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1595
1596 2002-12-03  H.J. Lu  (hjl@gnu.org)
1597
1598         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1599         (create_breakpoints): Make sure the addr_string field is not
1600         NULL.
1601
1602 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1603
1604         * sparc-nat.c (fetch_inferior_registers)
1605         (store_inferior_registers): Add comment on problem of LWP vs
1606         threads.
1607         
1608         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1609         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1610         (lin_lwp_store_registers): Remove.
1611         (init_lin_lwp_ops): Use fetch_inferior_registers
1612         and store_inferior_registers directly.
1613         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1614         (store_inferior_registers): Likewise.
1615         Fix PR gdb/725.
1616
1617 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1618
1619         * frame.h (get_frame_id): Convert to a function.
1620         (null_frame_id, frame_id_p): Declare.
1621         (frame_id_eq, frame_id_inner): Declare.
1622         (frame_id_build): New function.
1623         * frame.c (get_frame_id): Update.  Use null_frame_id.
1624         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1625         frame_id_inner.
1626         (null_frame_id, frame_id_p): Define.
1627         (frame_id_eq, frame_id_inner): Define.
1628         (frame_id_build): New function.
1629         * varobj.c (varobj_create): Update.
1630         (varobj_update): Update.
1631         * valops.c (value_assign): Update.
1632         (new_root_variable): Update.
1633         * infrun.c (save_inferior_status): Update.
1634         * breakpoint.c (watch_command_1): Update.
1635
1636 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1637
1638         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1639         (SNAP2): Likewise.
1640
1641 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1642
1643         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1644         patch.
1645
1646         * PROBLEMS: Mention PR gdb/725.
1647
1648 2002-12-03  Andreas Schwab  <schwab@suse.de>
1649
1650         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1651
1652 2002-12-02  Adam Fedor  <fedor@gnu.org>
1653             Klee Dienes  <kdienes@apple.com>
1654
1655         * objc-lang.c (objc_printstr): Add width arg to match
1656         printstr prototype.
1657         (compare_selectors): Add 'const' to arg types.
1658         (compare_classes): Likewise.
1659         (find_imps): Cast msym pointer to avoid compiler warning.
1660         (print_object_command): Validate the address before
1661         passing it to the print routine.
1662         (find_objc_msgcall_submethod): Change function argument to
1663         return an int.
1664         * objc-lang.h: Add 'extern' to all function declarations.
1665         (value_nsstring): Add declaration.
1666
1667 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1668
1669         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1670         Fixes a build failure on HP/UX.
1671
1672         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1673         failure on HP/UX. 
1674         (hpread_has_name): Advance declaration to avoid a compilation warning.
1675         (pst_syms_count): Add missing variable type. By change, the compiler
1676         was defaulting to int, which seems a good choice. Fixes a compilation
1677         warning.
1678         (pst_syms_size): Likewise.
1679  
1680 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1681
1682         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1683         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1684         later to set the proper gdbarch methods depending on the osabi.
1685         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1686
1687 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1688
1689         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1690         * osabi.c (gdb_osabi_name): Add strings images for the two new
1691         enum values.
1692         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1693
1694 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1695
1696         * MAINTAINERS (Java): Global maintainers are responible for Java.
1697         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1698         part Java maintainers.
1699
1700 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1701
1702         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1703         Fixes a compilation failure on AiX.
1704
1705 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1706
1707         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1708         why aix-thread.o is not listed.
1709
1710 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1711
1712         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1713         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1714         * gdbarch.h, gdbarch.c: Re-generate.
1715         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1716         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1717         * config/pa/tm-hppa.h, frame.h: Update.
1718         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1719         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1720         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1721         * cris-tdep.c, alpha-tdep.c: Update.
1722         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1723         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1724         (get_prev_frame): Ditto.
1725
1726 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1727
1728         * exec.c (xfer_memory): Replace boolean with int.
1729         * p-exp.y: Use 0 instead of false.
1730         * corelow.c (gdb_check_format): Change return type to int from
1731         boolean.
1732         * utils.c: Don't include <curses.h> or <term.h> first.
1733
1734 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1735
1736         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1737         (m68hc11_register_byte): Remove.
1738         (m68hc11_gdbarch_init): Don't set the above.
1739
1740 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1741
1742         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1743         by calling get_selected_frame.
1744         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1745         set_current_frame, create_new_frame, select_frame and
1746         get_current_frame.
1747         * remote-e7000.c (e7000_start_remote): Ditto.
1748         * remote-mips.c (common_open): Ditto
1749         * remote-rdp.c (remote_rdp_open): Ditto.
1750
1751 2002-11-29  Andreas Schwab  <schwab@suse.de>
1752
1753         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1754         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1755         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1756         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1757         read_memory_unsigned_integer instead of read_memory_integer when
1758         dealing with addresses and instruction opcodes.
1759         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1760         (m68k_linux_frame_saved_pc): Likewise.
1761
1762 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1763
1764         * stack.c (selected_frame, select_frame): Move from here ...
1765         * frame.c (selected_frame, select_frame): ... to here.  Include
1766         "language.h".
1767         * Makefile.in (frame.o): Update dependencies.
1768         * frame.c (get_selected_frame): New function.
1769         * frame.h (get_selected_frame): Declare.
1770         (deprecated_selected_frame): Rename selected_frame.
1771         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1772         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1773         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1774         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1775         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1776         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1777         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1778         * z8k-tdep.c, cli/cli-cmds.c: Update.
1779         
1780 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1781
1782         * frame.h (get_selected_block): Add comments.
1783
1784 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1785
1786         * frame.c (pc_notcurrent): New function.
1787         (find_frame_sal): New function.
1788         * frame.h (find_frame_sal): Declare.
1789         (struct symtab_and_line): Add opaque declaration.
1790         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1791         find_pc_line.
1792         (frame_info): Ditto.
1793         * ada-lang.c (find_printable_frame): Ditto.
1794
1795 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1796
1797         * configure.in: Check that the pthdebug library is recent enough
1798         before enabling thread support on native AiX.
1799         * configure: Regenerate.
1800
1801         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1802         from the list of object files as it is now appended by configure
1803         if thread support is enabled.
1804         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1805         if thread support is enabled.
1806
1807 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1808
1809         * stack.c (get_selected_block): In-line get_current_block.
1810         * frame.h (get_current_block): Delete declaration.
1811         * blockframe.c (get_current_block): Delete function.
1812
1813 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1814
1815         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1816         USE_GENERIC_DUMMY_FRAMES.
1817         * gdbarch.h, gdbarch.c: Regenerate.
1818         * valops.c, frame.c: Update.
1819         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1820         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1821         * config/pa/tm-hppa.h, blockframe.c: Update.
1822         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1823         * m68k-tdep.c, alpha-tdep.c: Ditto.
1824
1825         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1826         * mips-tdep.c: Ditto.
1827
1828 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1829
1830         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1831         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1832         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1833         * gdbarch.c, gdbarch.h: Re-generate.
1834         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1835         (CALL_DUMMY_LOCATION): Delete macro definition.
1836         (PC_IN_CALL_DUMMY): Delete macro definitions.
1837         
1838         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1839         default is already generic_pc_in_call_dummy.
1840         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1841         * v850-tdep.c (v850_gdbarch_init): Ditto.
1842         * sh-tdep.c (sh_gdbarch_init): Ditto.
1843         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1844         * mips-tdep.c (mips_gdbarch_init): Ditto.
1845         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1846         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1847         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1848         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1849         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1850         * avr-tdep.c (avr_gdbarch_init): Ditto.
1851         
1852         * arm-tdep.c (arm_gdbarch_init): Do not set
1853         use_generic_dummy_frames, default is already 1.
1854         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1855         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1856         * v850-tdep.c (v850_gdbarch_init): Ditto.
1857         * sh-tdep.c (sh_gdbarch_init): Ditto.
1858         * s390-tdep.c (s390_gdbarch_init): Ditto.
1859         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1860         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1861         * mips-tdep.c (mips_gdbarch_init): Ditto.
1862         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1863         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1864         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1865         * i386-tdep.c (i386_gdbarch_init): Ditto.
1866         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1867         * frv-tdep.c (frv_gdbarch_init): Ditto.
1868         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1869         * cris-tdep.c (cris_gdbarch_init): Ditto.
1870         * avr-tdep.c (avr_gdbarch_init): Ditto.
1871
1872         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1873         call_dummy_location, default is already AT_ENTRY_POINT.
1874         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1875         * v850-tdep.c (v850_gdbarch_init): Ditto.
1876         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1877         * sh-tdep.c (sh_gdbarch_init): Ditto.
1878         * s390-tdep.c (s390_gdbarch_init): Ditto.
1879         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1880         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1881         * mips-tdep.c (mips_gdbarch_init): Ditto.
1882         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1883         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1884         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1885         * i386-tdep.c (i386_gdbarch_init): Ditto.
1886         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1887         * frv-tdep.c (frv_gdbarch_init): Ditto.
1888         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1889         * cris-tdep.c (cris_gdbarch_init): Ditto.
1890         * avr-tdep.c (avr_gdbarch_init): Ditto.
1891         * arm-tdep.c (arm_gdbarch_init): Ditto.
1892         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1893
1894 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1895
1896         * frame.h: Update comments on set_current_frame, create_new_frame,
1897         flush_cached_frames, reinit_frame_cache, select_frame and
1898         selected_frame.
1899         
1900 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1901
1902         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1903         deprecated pc_in_call_dummy function.
1904         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1905         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1906         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1907         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1908         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1909
1910 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1911
1912         * Makefile.in: Remove Tix dependencies.
1913         * acinclude.m4: Ditto.
1914         * aclocal.m4: Ditto.
1915         * configure.in: Ditto.
1916         * configure: Regenerated.
1917         
1918 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1919
1920         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1921         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1922         * gdbarch.c: Re-generate.
1923         
1924 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1925
1926         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1927         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1928         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1929         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1930         pc_in_call_dummy_at_entry_point.
1931         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1932         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1933         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1934         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1935         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1936         pc_in_call_dummy_on_stack.
1937         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1938         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1939         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1940         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1941         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1942         
1943 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1944
1945         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1946         pc_in_call_dummy_before_text_end
1947         (deprecated_pc_in_call_dummy_after_text_end): Rename
1948         pc_in_call_dummy_after_text_end.
1949         (deprecated_pc_in_call_dummy_on_stack): Rename
1950         pc_in_call_dummy_on_stack.
1951         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1952         pc_in_call_dummy_at_entry_point.
1953         * m68k-tdep.c (m68k_gdbarch_init): Update.
1954         * s390-tdep.c (s390_gdbarch_init): Update.
1955         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1956         * vax-tdep.c (vax_gdbarch_init): Update.
1957         * sparc-tdep.c (sparc_gdbarch_init): Update.
1958         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1959         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1960         * i386-tdep.c (i386_gdbarch_init): Update.
1961         * frv-tdep.c (frv_gdbarch_init): Update.
1962         * cris-tdep.c (cris_gdbarch_init): Update.
1963         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1964         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1965         (deprecated_pc_in_call_dummy_after_text_end)
1966         (deprecated_pc_in_call_dummy_on_stack)
1967         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1968         * alpha-tdep.c (alpha_gdbarch_init): Update.
1969
1970 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1971
1972         * acconfig.h (HAVE_PREAD64): Add.
1973         * configure.in: Check for pread64.
1974         * config.in: Regenerated.
1975         * configure: Regenerated.
1976         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1977         * linux-proc.c (linux_proc_xfer_memory): New function.
1978         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1979
1980 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1981
1982         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1983         pdi's with no name.
1984
1985 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1986
1987         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1988         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1989
1990 2002-11-25  Jim Blandy  <jimb@redhat.com>
1991
1992         * symfile.c (init_objfile_sect_indices): New function.
1993         (default_symfile_offsets): Move the section-index-initializing
1994         stuff into init_objfile_sect_indices, and call that.
1995
1996         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1997         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1998
1999         * symfile.c (syms_from_objfile): Adjust indentation.
2000
2001         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2002         || info_verbose isn't true.
2003
2004 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2005
2006         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2007         default to get_frame_base.
2008         * gdbarch.h, gdbarch.c: Regenerate.
2009         * arch-utils.c (default_frame_address): Delete function.
2010         * arch-utils.h (default_frame_address): Delete declaration
2011
2012 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2013
2014         * varobj.c (find_frame_addr_in_frame_chain):
2015         Use get_frame_base instead of FRAME_FP,
2016         obvious fix.
2017
2018 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2019
2020         * frame.h (FRAME_FP): Delete macro.
2021         (get_frame_base): New function declaration.
2022         * frame.c (get_frame_base): New function.
2023         (get_frame_id): Use ->frame.
2024         (frame_find_by_id): Rewrite to use get_frame_id.
2025         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2026         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2027         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2028         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2029         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2030         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2031         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2032
2033 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2034
2035         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2036
2037 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2038
2039         * frame.c (set_unwind_by_pc): Revert change below, use
2040         PC_IN_CALL_DUMMY.
2041         (get_prev_frame): Ditto.
2042
2043 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2044
2045         * dummy-frame.c (pc_in_dummy_frame): New function.
2046         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2047         (find_dummy_frame): Update comment.
2048         (generic_pop_current_frame): Use get_frame_type.
2049         * dummy-frame.h (pc_in_dummy_frame): Declare.
2050         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2051         (create_new_frame): Use pc_in_dummy_frame.
2052         (get_prev_frame): Use pc_in_dummy_frame.
2053         (frame_saved_regs_register_unwind): Use get_prev_frame.
2054         (deprecated_generic_get_saved_register): Use get_prev_frame.
2055
2056 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2057
2058         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2059         from here ...
2060         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2061         (varobj_create): Note that frame ID should be used.
2062         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2063
2064 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2065
2066         * breakpoint.c: Include "gdb_assert.h".
2067         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2068         not being used.
2069         * Makefile.in (breakpoint.o): Update dependencies.
2070         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2071         deprecated_frame_in_dummy.
2072         * stack.c (print_frame_info_base): Ditto.
2073         (frame_info): Ditto.
2074         (print_frame_info_base): Ditto.  Delete dead code.
2075         
2076 2002-11-23  Andreas Schwab  <schwab@suse.de>
2077
2078         * Makefile.in (m68k_tdep_h): Define.
2079         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2080         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2081         * m68k-tdep.c: Move register number enum ...
2082         * m68k-tdep.h: ... to this new file and rename the constants from
2083         E_* to M68K_*.  All uses changed.
2084         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2085         * abug-rom.c: Include "m68k-tdep.h".  Use
2086         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2087         * cpu32bug-rom.c: Likewise.
2088         * dbug-rom.c: Likewise.
2089         * m68k-tdep.c: Likewise.
2090         * m68klinux-nat.c: Likewise.
2091         * remote-est.c: Likewise.
2092         * rom68k-rom.c: Likewise.
2093         * config/m68k/tm-linux.h: Likewise.
2094
2095 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2096
2097         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2098         dummy frame initialization code.
2099         * mips-tdep.c (mips_gdbarch_init): Ditto.
2100
2101 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2102
2103         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2104         attach will hang.
2105
2106 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2107
2108         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2109         to default_frame_address.
2110         * gdbarch.h, gdbarch.c: Re-generate.
2111
2112         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2113         or frame_locals_address to default_frame_address.
2114         * m68k-tdep.c (m68k_gdbarch_init): Update.
2115         * i386-tdep.c (i386_gdbarch_init): Update.
2116         * frv-tdep.c (frv_gdbarch_init): Update.
2117         * sh-tdep.c (sh_gdbarch_init): Update.
2118         * v850-tdep.c (v850_gdbarch_init): Update.
2119         * sparc-tdep.c (sparc_gdbarch_init): Update.
2120         * mips-tdep.c (mips_gdbarch_init): Update.
2121         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2122         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2123         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2124
2125         * cris-tdep.c (cris_frame_args_address): Delete function.
2126         (cris_frame_locals_address): Delete function.
2127         (cris_gdbarch_init): Do not set frame_args_address or
2128         frame_locals_address.
2129
2130 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2131
2132         * thread-db.c (thread_db_load): Tell the user what's going on
2133         if dlopen fails on libthread_db.
2134
2135 2002-11-23  Andreas Schwab  <schwab@suse.de>
2136
2137         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2138         invariant return values.
2139
2140 2002-11-22  Andreas Schwab  <schwab@suse.de>
2141
2142         * valops.c (value_slice): Move declaration of `offset' to avoid
2143         warning.
2144
2145 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2146
2147         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2148         (struct so_stuff): Add end_addr field.
2149         (register_loaded_dll): Calculate and store end address of loaded dll.
2150         (solib_address): New function.
2151         (child_solib_loaded_library_pathname): Pass carefully constructed
2152         section info to safe_symbol_file_add rather than ignoring it.
2153         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2154         DLL is loaded.
2155         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2156         (child_create_inferior): Fix a compiler warning.
2157         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2158         (solib_address): Declare new function.
2159
2160 2002-11-22  Andreas Schwab  <schwab@suse.de>
2161
2162         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2163         and FPS registers.
2164
2165 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2166
2167         * maint.c (_initialize_maint_cmds): Fix typo.  From
2168         Francesco Potorti` <pot@gnu.org>.
2169
2170 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2171
2172         * mips-tdep.c (mips_dump_tdep): Delete references to
2173         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2174         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2175         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2176         * printcmd.c (build_address_symbolic): Delete calls to
2177         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2178         (address_info): Ditto.
2179         Fix PR gdb/773.
2180         
2181 2002-11-19  Klee Dienes  <kdienes@apple.com>
2182             Adam Fedor  <fedor@gnu.org>
2183
2184         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2185         the ability to explicitly specify the quote characters and word
2186         break characters; if NULL is specified for either, use the old
2187         behavior of using the characters used by the completer.
2188         (skip_chars): New function.  Convenience wrapper around
2189         skip_quoted_chars to provide the original skip_chars behavior.
2190         * completer.h (skip_quoted_chars): Add prototype.
2191
2192 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2193
2194         Problems reported by Paul Eggert.
2195         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2196
2197 2002-11-19  Andreas Schwab  <schwab@suse.de>
2198
2199         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2200         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2201         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2202         (m68k_linux_frame_saved_pc): Move to ...
2203         * m68klinux-tdep.c: ... here.  New file.
2204         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2205         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2206
2207 2002-11-19  Adam Fedor  <fedor@gnu.org>
2208
2209         * objc-exp.y: Revert to old skip_quoted usage.
2210
2211 2002-11-19  Adam Fedor  <fedor@gnu.org>
2212
2213         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2214         (objc_lang_h): Define.
2215         (YYFILES): Add objc-exp.tab.c.
2216         (local-maintainer-clean): Remove objc-exp.tab.c.
2217         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2218         
2219 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2220
2221         * p-exp.y (typecast rule): Add automatic dereference of
2222         pascal classes if needed.
2223         (THIS): Set current_type.
2224         Automatically dereference pascal classes. 
2225         (typebase rule): Add ^typebase recognition.
2226
2227 2002-11-18  Adam Fedor  <fedor@gnu.org>
2228
2229         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2230         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2231         (op_name): Handle OP_OBJC_SELF.
2232         * Makefile.in (expprint.o): Add additional depends.
2233
2234 2002-11-18  Adam Fedor  <fedor@gnu.org>
2235
2236         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2237         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2238         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2239         * objc-exp.y: Likewise. 
2240
2241 2002-11-18  Adam Fedor  <fedor@gnu.org>
2242
2243         * gdb/parser-defs.h: (struct objc_class_str): New structure
2244         for parsing ObjC classes.
2245
2246 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2247
2248         * stack.c (frame_relative_level): Copy function from here ...
2249         * frame.c (frame_relative_level): ...to here.
2250
2251 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2252
2253         * frame.h (enum frame_type): Define.
2254         (get_frame_type): Declare.
2255         (struct frame_info): Add field `type'.  Delete field
2256         signal_handler_caller.
2257         (deprecated_set_frame_signal_handler_caller): Declare.
2258         * frame.c (get_frame_type): New function.
2259         (deprecated_set_frame_type): New function.
2260         (create_new_frame): Set the frame's type.
2261         (get_prev_frame): Similar.
2262         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2263         * s390-tdep.c: Ditto.
2264         * m68klinux-nat.c: Ditto.
2265         * ns32k-tdep.c: Ditto.
2266         * x86-64-linux-tdep.c: Ditto.
2267         * vax-tdep.c: Ditto.
2268         * rs6000-tdep.c: Ditto.
2269         * ppc-linux-tdep.c: Ditto.
2270         * i386-interix-tdep.c: Ditto.
2271         * mips-tdep.c: Ditto.
2272         * m68k-tdep.c: Ditto.
2273         * hppa-tdep.c: Ditto.
2274         * ia64-tdep.c: Ditto.
2275         * cris-tdep.c: Ditto.
2276         * arm-tdep.c: Ditto.
2277         * alpha-tdep.c: Ditto.
2278         * i386-tdep.c: Ditto.
2279         * stack.c: Ditto.
2280         * ada-lang.c: Ditto.
2281         * blockframe.c: Update.
2282         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2283         deprecated_set_frame_type instead of signal_handler_caller.
2284         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2285         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2286         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2287
2288 2002-11-18   Klee Dienes  <kdienes@apple.com>
2289
2290         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2291
2292 2002-11-18  Klee Dienes  <kdienes@apple.com>
2293
2294         * buildsym.c (pop_context): Add comment.
2295         
2296 2002-11-18  Klee Dienes  <kdienes@apple.com>
2297
2298         * buildsym.h (pop_context): Convert to function, defined in
2299         buildsym.c.
2300         * buildsym.c: Include gdb_assert.h.
2301         (pop_context): Implement as C function.  Add check for stack
2302         underflow.
2303         * dbxread.c (process_one_symbol): Complain and stop processing
2304         that symbol if we are already at the top of the context stack for
2305         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2306         when processing N_RBRAC.
2307
2308 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2309
2310         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2311         define.
2312         (struct target_waitstatus): Add opaque definition.
2313         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2314         * exec.c (init_exec_ops): Likewise.
2315         * fork-child.c (clone_and_follow_inferior): Remove.
2316         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2317         * inferior.h (clone_and_follow_inferior): Remove prototype.
2318         * infrun.c (follow_fork_mode_both): Remove.
2319         (follow_fork_mode_kind_names): Remove commented out "both".
2320         (follow_inferior_fork): Remove follow_fork_mode_both support.
2321         * inftarg.c (child_clone_and_follow_inferior): Remove.
2322         (child_post_follow_inferior_by_clone): Remove.
2323         (init_child_ops): Don't set to_clone_and_follow_inferior
2324         or to_post_follow_inferior_by_clone.
2325         * target.c (default_clone_and_follow_inferior): Remove.
2326         (cleanup_target): Don't set to_clone_and_follow_inferior
2327         or to_post_follow_inferior_by_clone.
2328         (find_default_clone_and_follow_inferior): Remove.
2329         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2330         (debug_to_clone_and_follow_inferior): Remove.
2331         (debug_to_post_follow_inferior_by_clone): Remove.
2332         (setup_target_debug): Don't set to_clone_and_follow_inferior
2333         or to_post_follow_inferior_by_clone.
2334         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2335         and to_post_follow_inferior_by_clone.
2336         (child_clone_and_follow_inferior): Remove prototype.
2337         (child_post_follow_inferior_by_clone): Remove prototype.
2338         (target_clone_and_follow_inferior): Remove macro.
2339         (target_post_follow_inferior_by_clone): Remove macro.
2340         (find_default_clone_and_follow_inferior): Remove prototype.
2341
2342 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2343
2344         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2345         inferior_has_vforked, and inferior_has_execd instead of
2346         target_has_forked, target_has_vforked, and target_has_execd.
2347         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2348         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2349         (CHILD_WAIT): Define.
2350         (child_wait): Add prototype.
2351         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2352         Add prototype.
2353         (hpux_has_vforked): Likewise, from child_has_vforked.
2354         (hpux_has_execd): Likewise, from child_has_execd.
2355         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2356         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2357         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2358         and hpux_has_syscall_event instead of the target hooks.
2359         * infrun.c (inferior_has_forked, inferior_has_vforked)
2360         (inferior_has_execd): New functions.
2361         * inftarg.c (not_same_real_pid): Remove.
2362         (child_wait): Remove references to not_same_real_pid,
2363         target_has_forked, target_has_vforked, target_has_execd,
2364         and target_has_syscall_event.
2365         (child_has_forked, child_has_vforked, child_has_execd)
2366         (child_has_syscall_event): Remove.
2367         (init_child_ops): Remove references to child_has_forked,
2368         child_has_vforked, child_has_execd, and child_has_syscall_event.
2369         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2370         (hpux_has_vforked): Likewise, from child_has_vforked.
2371         (hpux_has_execd): Likewise, from child_has_execd.
2372         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2373         * target.c (cleanup_target): Remove references to
2374         to_has_forked, to_has_vforked, to_has_execd, and
2375         to_has_syscall_event.
2376         (update_current_target): Likewise.
2377         (setup_target_debug): Likewise.
2378         (debug_to_has_forked): Remove.
2379         (debug_to_has_vforked): Remove.
2380         (debug_to_has_execd): Remove.
2381         (debug_to_has_syscall_event): Remove.
2382         * target.h (struct target_ops): Remove to_has_forked.
2383         to_has_vforked, to_has_execd, and to_has_syscall_event.
2384         (child_has_forked, child_has_vforked, child_has_execd)
2385         (child_has_syscall_event): Remove prototypes.
2386         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2387         prototypes.
2388         (target_has_forked, target_has_vforked, target_has_execd)
2389         (target_has_syscall_event): Remove macros.
2390
2391 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2392
2393         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2394         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2395         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2396         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2397         * target.c (cleanup_target): Remove reference to
2398         to_can_follow_vfork_prior_to_exec.
2399         (update_current_target): Likewise.
2400         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2401         (setup_target_debug): Remove reference to
2402         to_can_follow_vfork_prior_to_exec.
2403         * target.h (struct target_ops): Remove
2404         to_can_follow_vfork_prior_to_exec.
2405         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2406         (target_can_follow_vfork_prior_to_exec): Remove definition.
2407         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2408         define.
2409         * infrun.c (follow_vfork_when_exec): Remove.
2410         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2411         (follow_exec): Likewise.
2412         (handle_inferior_event): Likewise.
2413         (keep_going): Likewise.
2414
2415 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2416
2417         * frame.c (generic_unwind_get_saved_register): Make static.
2418         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2419         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2420         defaults to generic_unwind_get_saved_register.
2421         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2422         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2423         * frv-tdep.c (frv_gdbarch_init): Ditto.
2424         * i386-tdep.c (i386_gdbarch_init): Ditto.
2425         * s390-tdep.c (s390_gdbarch_init): Ditto.
2426         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2427         * v850-tdep.c (v850_gdbarch_init): Ditto.
2428         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2429         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2430         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2431
2432 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2433
2434         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2435         i386-tdep.c.
2436
2437 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2438
2439         * frame.h (sigtramp_saved_pc): Delete declaration.
2440         * blockframe.c (sigtramp_saved_pc): Delete function.
2441         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2442         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2443         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2444         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2445
2446 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2447
2448         * frame.c (frame_pc_unwind): New function.
2449         (frame_saved_regs_pc_unwind): New function.
2450         (frame_register_unwind): Pass unwind_cache instead of
2451         register_unwind_cache.
2452         (set_unwind_by_pc): Add unwind_pc parameter, set.
2453         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2454         (get_prev_frame): Ditto.
2455         * frame.h (frame_pc_unwind_ftype): Declare.
2456         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2457         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2458         (frame_pc_unwind): Declare.
2459         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2460         (struct dummy_frame): Add comment mentioning that values are for
2461         previous frame.
2462         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2463         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2464         (generic_file_frame_chain_valid): Ditto.
2465         * stack.c (frame_info): Ditto.
2466
2467 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2468
2469         * linespec.c (locate_first_half): New function.
2470         (decode_line_1): Move code into locate_first_half.
2471
2472 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2473
2474         * complaints.h: Add comment explaining how to eliminate a
2475         deprecated_complain call.
2476         * complaints.h: Fix spelling errors.
2477
2478 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2479
2480         * printcmd.c: Remove #include "disasm.h".
2481
2482 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2483
2484         * frame.h: Move the most relevant interface functions to the start
2485         of the file.
2486
2487 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2488
2489         * regcache.h (deprecated_registers): Rename registers.
2490         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2491         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2492         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2493         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2494         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2495         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2496         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2497         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2498         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2499         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2500         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2501         * v850ice.c: Update.
2502
2503 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2504
2505         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2506         NULL buffer.
2507
2508 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2509
2510         * regcache.h (deprecated_read_register_bytes): Rename
2511         read_register_bytes.
2512         (deprecated_write_register_bytes): Rename write_register_bytes.
2513         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2514         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2515         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2516         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2517         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2518         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2519         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2520         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2521         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2522         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2523         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2524         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2525         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2526         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2527
2528 2002-11-13  Jim Blandy  <jimb@redhat.com>
2529
2530         * findvar.c (read_var_value): Doc fix.
2531
2532 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2533
2534         * regcache.c (struct regcache): Replace passthough_p with
2535         readonly_p.
2536         (regcache_xmalloc): Initialize readonly_p.
2537         (build_regcache): Initialize readonly_p.
2538         (regcache_save): New function.
2539         (regcache_restore): New function.
2540         (regcache_cpy): Re-implement using regcache_save and
2541         regcache_restore.
2542         (regcache_raw_read): Update.
2543         (regcache_cooked_read): When a read-only cache, checked for cached
2544         pseudo register values.
2545         (regcache_raw_write): Assert that the cache is not read-only.
2546         Remove code handling a non-passthrough cache.
2547         * regcache.h (regcache_save): Declare.
2548         (regcache_restore): Declare.
2549
2550 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2551
2552         * regcache.c (struct regcache_descr): Add fields
2553         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2554         (init_legacy_regcache_descr): Compute the size of a cooked
2555         register cache and then assign that to sizeof_raw_registers.  Set
2556         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2557         (init_legacy_regcache_descr): Ditto.
2558
2559 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2560
2561         * regcache.c (register_buffer): Move to near start of file, update
2562         description.
2563         (regcache_raw_read): Use.
2564         (regcache_raw_write): Use.
2565         (struct regcache): Rename raw_registers to registers and
2566         raw_register_valid_p to register_valid_p.
2567         (regcache_xmalloc): Update.
2568         (regcache_xfree): Update.
2569         (register_buffer): Update.
2570         (regcache_cpy): Update.
2571         (regcache_cpy_no_passthrough): Update.
2572         (regcache_valid_p): Update.
2573         (deprecated_grub_regcache_for_registers): Update.
2574         (deprecated_grub_regcache_for_register_valid): Update.
2575         (set_register_cached): Update.
2576         (regcache_raw_write): Update.
2577
2578 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2579
2580         * p-exp.y (name_not_typename): Use copy_name to
2581         set current_type variable for fields of THIS.
2582
2583 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2584
2585         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2586         * monitor.c (init_base_monitor_ops): Likewise.
2587         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2588         * remote-array.c (init_array_ops): Likewise.
2589         * remote-e7000.c (init_e7000_ops): Likewise.
2590         * remote-es.c (init_es1800_ops): Likewise.
2591         (init_es1800_child_ops): Likewise.
2592         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2593         * remote-sim.c (init_gdbsim_ops): Likewise.
2594         * remote-st.c (init_st2000_ops): Likewise.
2595         * sol-thread.c (init_sol_core_ops): Likewise.
2596         (init_sol_thread_ops): Likewise.
2597         * v850ice.c (init_850ice_ops): Likewise.
2598         * win32-nat.c (init_child_ops): Likewise.
2599         * wince.c (init_child_ops): Likewise.
2600
2601 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2602
2603         * utils.c (gdb_realpath): Make rp a constant pointer.
2604
2605 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2606
2607         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2608         a constant buffer; cannonicalize_file_name(); realpath() with a
2609         pathconf() defined buffer, xstrdup().
2610
2611 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2612
2613         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2614         to hang2.C; hang3.c to hang3.C.
2615
2616 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2617
2618         * findvar.c (read_var_value): Reenable TLS code.
2619
2620 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2621             Jim Blandy  <jimb@redhat.com>
2622         
2623         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2624         * target.c (update_current_target): Add
2625         to_get_thread_local_address.
2626         * target.h (to_get_thread_local_address): Export.
2627         (target_get_thread_local_address): Define.
2628         (target_get_thread_local_address_p): Define.
2629         * thread-db.c: Include solib-svr4.h.
2630         (td_thr_tls_get_addr_p): Define.
2631         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2632         (thread_db_get_thread_local_address): New function.
2633         (init_thread_db_ops): Initialize to_get_thread_local_address.
2634         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2635         * configure: Regenerate.
2636         * config.in: Regenerate.
2637
2638 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2639
2640         * linespec.c (set_flags): New function.
2641         (decode_line_1): Move code into set_flags.
2642
2643 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2644
2645         * linespec.c (decode_line_1): Move chunks of code to separate
2646         functions.
2647         (initialize_defaults): New function.
2648         (decode_indirect): New function.
2649
2650 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2651
2652         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2653         instead of void_code_ptr.
2654         (sigtramp_saved_pc): Ditto.
2655
2656         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2657         i386_fp_regnum_p.
2658
2659 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2660
2661         * gdbtypes.h (struct main_type): Move artificial flag out of
2662         loc.  New member of ``struct field'' named static_kind.  Reduce
2663         overloaded meaning of bitsize.
2664         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2665         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2666         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2667
2668         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2669         new fields.
2670         (template_to_fixed_record_type, template_to_static_fixed_type)
2671         (to_record_with_fixed_variant_part): Likewise.
2672         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2673         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2674         * dwarfread.c (struct_type, enum_type): Likewise.
2675         * hpread.c (hpread_read_enum_type)
2676         (hpread_read_function_type, hpread_read_doc_function_type)
2677         (hpread_read_struct_type): Likewise.
2678         * mdebugread.c (parse_symbol): Likewise.
2679
2680 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2681
2682         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2683         * stack.c (print_frame_info_base): Update.
2684         (print_frame_info_base, frame_info): Update.
2685         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2686         (sparc_frame_saved_pc): Update.
2687         * ada-lang.c (find_printable_frame): Update.
2688         * breakpoint.c (deprecated_frame_in_dummy): Update.
2689         
2690 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2691
2692         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2693         defined.
2694         (regmap): Extend to cover all registers.
2695         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2696         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2697         definitions.
2698         (fetch_register, sore_register): Simplify.
2699         (old_fetch_inferior_registers, old_store_inferior_registers):
2700         Remove functions.
2701         (cannot_fetch_register, cannot_store_register): Change
2702         implementation to use regmap array to decide which registers
2703         cannot be fetched/stored.  This removes $orig_eax from the
2704         registers that cannot be fetched/stored.
2705         (fetch_inferior_registers): Call fetch_register directly instead
2706         of calling old_fetch_inferior_registers.
2707         (store_inferior_registers): Call store_register directly instead
2708         of calling old_store_inferior_registers.
2709         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2710         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2711         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2712
2713 2002-11-09  Klee Dienes  <kdienes@apple.com>
2714
2715         * i387-tdep.c (i387_supply_register): When called with NULL as a
2716         buffer, mark the register as not provided (to mirror the behavior
2717         of supply_register).
2718         (i387_supply_fxsave): Ditto.
2719         (i387_supply_fsave): Ditto (inherits the behavior from
2720         i387_supply_register).
2721
2722 2002-11-09  Klee Dienes  <kdienes@apple.com>
2723
2724         * blockframe.c (sigtramp_saved_pc): Use
2725         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2726         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2727         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2728         
2729 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2730
2731         * frame.c (get_prev_frame): Test prev_p to identify a previously
2732         unwound frame.  Initialize prev_p.
2733         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2734         comment.
2735
2736 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2737
2738         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2739         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2740         more comments.  Zap dead code.
2741
2742 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2743
2744         * infcmd.c (print_vector_info, print_float_info): Move code that
2745         checks whether the target has any registers and whether there is a
2746         selected frame up, such that it is also used if a target provides
2747         multi-arch definitions of these functions.
2748
2749 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2750
2751         * Makefile.in (DESTDIR): Define.
2752         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2753         prefix.
2754
2755         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2756         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2757
2758 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2759
2760         * i386-linux-tdep.c: Include "reggroups.h".
2761         (i386_linux_register_reggroup_p): New function.
2762         (i386_linux_init_abi): Set register_reggroup_p to
2763         i386_linux_register_reggroup_p.
2764         * i386-tdep.h (i386_register_reggroup_p): Declare.
2765         * i386-tdep.c: Include "reggroups.h".
2766         (i386_init_reggroups): New function.
2767         (i386_add_reggroups): New function.
2768         (i386_register_reggroup_p): New function.
2769         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2770         (_initialize_i386_tdep): Call i386_init_reggroups.
2771         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2772         specific reggroups.
2773
2774 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2775
2776         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2777         request that's available in *BSD.
2778
2779         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2780
2781         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2782         FDOFF_REGNUM.
2783
2784 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2785
2786         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2787         * dummy-frame.c (find_dummy_frame): Rename
2788         generic_find_dummy_frame, make static.  Return the dummy frame
2789         instead of the regcache.
2790         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2791         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2792         (dummy_frame_register_unwind): Rename
2793         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2794         * dummy-frame.h (dummy_frame_register_unwind): Rename
2795         generic_call_dummy_register_unwind.
2796
2797 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2798
2799         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2800         except the inclusion of "i386/tm-i386.h", to...
2801         * config/i386/nm-i386v42mp.h: ...here.
2802         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2803
2804 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2805
2806         * Makefile.in (frame.o): Update dependencies.
2807         * blockframe.c (current_frame, frame_obstack_alloc)
2808         (frame_saved_regs_zalloc, get_current_frame)
2809         (set_current_frame, create_new_frame)
2810         (set_unwind_by_pc, get_next_frame)
2811         (flush_cached_frames, reinit_frame_cache)
2812         (frame_saved_regs_register_unwind)
2813         (deprecated_generic_get_saved_register)
2814         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2815         (_initialize_blockframe): Move frame code from here...
2816         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2817         "annotate.h" and "dummy-frame.h".
2818         (_initialize_frame): New function.
2819
2820 2002-11-08  Jim Blandy  <jimb@redhat.com>
2821
2822         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2823         when we finish a function a context.
2824         * buildsym.h (outermost_context_p): New macro.
2825         (Bug analyzed by David Edelsohn.)
2826
2827 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2828
2829         * blockframe.c: Include "dummy-frame.h".
2830         (struct dummy_frame, dummy_frame_stack)
2831         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2832         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2833         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2834         (generic_save_call_dummy_addr, generic_pop_current_frame)
2835         (generic_pop_dummy_frame, generic_fix_call_dummy)
2836         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2837         dummy frame code from here...
2838         * dummy-frame.c: ...to here.  New file.
2839         * dummy-frame.h: New file.
2840         (generic_call_dummy_register_unwind): Declare.
2841         (generic_find_dummy_frame): Declare.
2842         * Makefile.in (SFILES): Add dummy-frame.c.
2843         (dummy-frame.o): Specify dependencies.
2844         (dummy_frame_h): Define.
2845         (COMMON_OBS): Add dummy-frame.o.
2846         (blockframe.o): Update dependencies.
2847
2848 2002-11-08  Jim Blandy  <jimb@redhat.com>
2849
2850         * dwarf2read.c (read_func_scope): Restore local_symbols and
2851         param_symbols after we finish the function context.  (Based on a
2852         patch from David Edelsohn.)
2853
2854 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2855
2856         * linespec.c (symbol_found): New function.
2857         (minsym_found): New function.
2858         (decode_line_1): Separate out some code into separate functions.
2859
2860 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2861
2862         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2863         the benefit of the interix target.
2864         * i386-tdep.h (i386_frameless_signal_p): Declare.
2865
2866 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2867
2868         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2869         declaration that snuck in from change below.
2870
2871 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2872
2873         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2874         all callers.
2875         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2876         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2877         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2878         (i386_mxcsr_regnum_p): new function.  Use instead of
2879         MXCSR_REGNUM_P.
2880         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2881         (i386_sse_regnum_p): Declare.
2882         (i386_mxcsr_regnum_p): Declare.
2883         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2884         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2885         (IS_FP_REGNUM): Update definition.
2886         (IS_FPU_CTRL_REGNUM): Update definition..
2887         (IS_SSE_REGNUM): Update definition..
2888         * i386v-nat.c (register_u_addr): Update.
2889         * go32-nat.c (fetch_register): Update.
2890         (store_register): Update.
2891
2892 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2893
2894         Preparation work to convert the hppa targets to multiarch partial.
2895
2896         * hppa-tdep.c: Add new functions replacing macro bodies from
2897         config/pa/tm-hppa.h. These function will be used to initialize
2898         the gdbarch structure. Import some comments from tm-hppa.h,
2899         and place them where appropriate, to avoid loosing them when
2900         we cleanup this file.
2901         (hppa_reg_struct_has_addr): New function.
2902         (hppa_inner_than): New function.
2903         (hppa_stack_align): New function.
2904         (hppa_pc_requires_run_before_use): New function.
2905         (hppa_instruction_nullified): New function.
2906         (hppa_register_byte): New function.
2907         (hppa_register_virtual_type): New function.
2908         (hppa_store_struct_return): New function.
2909         (hppa_cannot_store_register): New function.
2910         (hppa_frame_args_address): New function.
2911         (hppa_frame_locals_address): New function.
2912         (hppa_smash_text_address): New function.
2913         (hppa_coerce_float_to_double): New function. Requires the inclusion
2914         of "language.h".
2915
2916         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2917
2918         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2919         gdbarch-eligible macro to a call to the new associated function
2920         created in hppa-tdep.c.
2921         (INNER_THAN): Likewise.
2922         (STACK_ALIGN): Likewise.
2923         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2924         (INSTRUCTION_NULLIFIED): Likewise.
2925         (REGISTER_BYTE): Likewise.
2926         (REGISTER_VIRTUAL_TYPE): Likewise.
2927         (STORE_STRUCT_RETURN): Likewise.
2928         (CANNOT_STORE_REGISTER): Likewise.
2929         (FRAME_ARGS_ADDRESS): Likewise.
2930         (FRAME_LOCALS_ADDRESS): Likewise.
2931         (SMASH_TEXT_ADDRESS): Likewise.
2932         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2933         (ABOUT_TO_RETURN): Delete, as no longer used.
2934
2935 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2936
2937         * printcmd.c (disassemble_command): Remove obsolete function.
2938         (_initialize_printcmd): Do not create disassemble command here.
2939         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2940         disassemble command.
2941         (init_cli_cmds): Create disassemble command here instead.
2942
2943 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2944
2945         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2946
2947 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2948
2949         * regcache.h (regcache_cooked_read_using_offset_hack)
2950         (regcache_cooked_write_using_offset_hack): Delete declarations.
2951         (register_changed): Delete declaration.
2952         * regcache.c (regcache_cooked_read_using_offset_hack)
2953         (regcache_cooked_write_using_offset_hack): Delete functions.
2954         (cooked_xfer_using_offset_hack): Delete function.
2955         (register_changed): Delete function.
2956
2957 2002-11-07  Jim Blandy  <jimb@redhat.com>
2958
2959         * macroscope.c: #include "complaints.h".
2960         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2961         but not in the macro table.
2962         * Makefile.in (macroscope.o): Record dependency.
2963
2964 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2965
2966         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2967
2968 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2969
2970         * regcache.c (deprecated_registers_fetched): Update.
2971         * regcache.h (deprecated_registers_fetched): Rename
2972         registers_fetched.
2973         * remote-vxsparc.c (vx_read_register): Update.
2974         * remote-vxmips.c (vx_read_register): Update.
2975         * remote-vx68.c (vx_read_register): Update.
2976         * irix5-nat.c (fetch_core_registers): Update.
2977         * mipsm3-nat.c (fetch_inferior_registers): Update.
2978         * sun3-nat.c (fetch_inferior_registers): Update.
2979         * symm-nat.c (fetch_inferior_registers): Update.
2980         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2981         (fetch_core_registers): Update.
2982         (fetch_kcore_registers): Update.
2983         * mips-nat.c (fetch_inferior_registers): Update.
2984         * corelow.c (get_core_registers): Update.
2985         * a68v-nat.c (fetch_inferior_registers): Update.
2986
2987 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2988
2989         Put in place the framework necessary for multiarching the hppa targets.
2990         * hppa-tdep.c (hppa_gdbarch_init): New function.
2991         (hppa_dump_tdep): New function.
2992         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2993         tdep structure dumper.
2994         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2995         until the multi-arching conversion has partially been completed.
2996
2997 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2998
2999         * valops.c (value_assign): Merge lval_register case into
3000         lval_reg_frame_relative.  Use frame_register and
3001         regcache_cooked_write instead of get_saved_register and
3002         write_register_bytes.  After flushing the register cache, try to
3003         re-select the selected frame.
3004
3005 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3006
3007         * regcache.h (deprecated_register_valid): Rename register_valid.
3008         * regcache.c: Update.
3009         * ia64-aix-nat.c: Update.
3010         * i386gnu-nat.c: Update.
3011         * alpha-nat.c: Update.
3012         * sparc-nat.c: Update.
3013         * lynx-nat.c: Update.
3014         * remote-mips.c: Update.
3015
3016 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3017
3018         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3019         to end of file, to be more consistent with the pratice followed
3020         by other targets.
3021
3022 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3023
3024         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3025         (print_float_info): Print registers in float_reggroup.
3026         (print_vector_info): Print registers in vector_reggroup.
3027         (default_print_registers_info): When all, print registers in
3028         all_reggroup.  Otherwize, print registers in general_reggroup.
3029         (registers_info): Rewrite.  Add support for register groups.
3030         Eliminate a goto.
3031
3032 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3033
3034         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3035         ages.
3036         (symtab_symbol_info): Remove eons old ifdeffed out code.
3037         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3038         command.
3039
3040 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3041
3042         * c-exp.y: Add missing semi-colons.
3043         * f-exp.y: Add missing semi-colons.
3044         * m2-exp.y: Add missing semi-colons.
3045         * p-exp.y: Add missing semi-colons.
3046         Add empty action to start rule to avoid a type clash error when
3047         building with bison >= 1.50.
3048
3049 2002-11-06  Jim Blandy  <jimb@redhat.com>
3050
3051         * macrotab.h (struct macro_source_file): Doc fix.
3052
3053 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3054
3055         * varobj.c (child_exists, cplus_number_of_children): Change
3056         STREQ macro references to strcmp.
3057         (cplus_name_of_child): Change code to handle the fact that
3058         fields are not necessarily contiguous with regards to their 
3059         access control. This is a fix for PR gdb/792.
3060
3061 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3062
3063         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3064         * gdbarch.h, gdbarch.c: Regnerate.
3065         * frame.h (frame_register): Declare.
3066         * frame.c (frame_register): New function.
3067         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3068         GET_SAVED_REGISTER, otherwize call
3069         generic_unwind_get_saved_register.
3070         (frame_register_read): Use frame_register instead of
3071         get_saved_register.
3072
3073 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3074         
3075         From Jim Ingham  <jingham@apple.com>:
3076         * event-top.c (gdb_disable_readline): New function.
3077         (_initialize_event_loop): Move comment.
3078
3079 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3080
3081         * event-loop.c (start_event_loop): Add comment.
3082         Update copyright.
3083
3084 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3085
3086         * infcmd.c (default_print_registers_info): Do not call
3087         PRINT_REGISTER_HOOK.
3088
3089 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3090
3091         * sparc-tdep.c (sparc_print_register_hook): Make static.
3092         (sparc_print_registers_info): New function.
3093         (sparc_do_registers_info): New function.
3094         (sparclet_print_registers_info): New function.
3095         (sparclet_do_registers_info): New function.
3096         (do_sparc_print_registers_info): New function.
3097         (sparc_print_registers): New static function, clone of infcmd.c's
3098         default_print_registers_info.
3099         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3100         (sparclet_do_registers_info): Declare.
3101         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3102         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3103         Re-define.
3104         (sparc_do_registers_info): Declare.
3105         (PRINT_REGISTER_HOOK): Delete macro.
3106         (sparc_print_register_hook): Delete declaration.
3107
3108 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3109
3110         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3111         functions.
3112         (lookup_symbol_aux_local): New function.
3113         (lookup_symbol_aux_symtabs): New function.
3114         (lookup_symbol_aux_psymtabs): New function.
3115
3116 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3117
3118         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3119         previous values of 'objfile' and 'block'.
3120
3121 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3122
3123         * values.c (value_change_enclosing_type): Set 
3124         enclosing_type field correctly also for the case where 
3125         more memory needs to be allocated.
3126
3127 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3128
3129         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3130         of puts_filtered.
3131
3132         * i387-tdep.c (i387_print_float_info): Replace calls to
3133         register_read and deprecated_read_register_gen with calls to
3134         frame_register_read, and make the necessary adjustments to the
3135         surrounding code.
3136
3137 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3138
3139         * gdbarch.sh (register_reggroup_p): Allow default value.
3140         * gdbarch.h, gdbarch.c: Regenerate.
3141
3142 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3143
3144         * regcache.h: Add coment indicating replacements for deprecated
3145         functions.
3146
3147 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3148
3149         * reggroups.h, reggroups.c: New files.
3150         * regcache.c: Include "reggroups.h".
3151         (enum regcache_dump_what): Add `regcache_dump_groups'.
3152         (regcache_dump): Contract size of the "Type" column.  When
3153         specified, dump the register's groups.
3154         (maintenance_print_register_groups): New function.
3155         (_initialize_regcache): Add command `maint print register-groups'.
3156         * Makefile.in (COMMON_OBS): Add reggroups.o
3157         (SFILES): Add reggroups.c.
3158         (reggroups_h): Define.
3159         (regcache.o, gdbarch.o): Update dependencies.
3160         (reggroups.o): Specify dependencies.
3161         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3162         Add opaque declaration for `struct reggroup' in generated .h file.
3163         Include "reggroups.h" in generated .c file.
3164         gdbarch.h, gdbarch.c: Re-generate.
3165
3166 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3167
3168         * regcache.h (deprecated_read_register_gen): Rename
3169         read_register_gen.
3170         (deprecated_write_register_gen): Rename write_register_gen.
3171         * i387-tdep.c: Update.
3172         * x86-64-linux-nat.c: Update
3173         * wince.c: Update.
3174         * thread-db.c: Update.
3175         * win32-nat.c: Update.
3176         * mips-tdep.c: Update.
3177         * d10v-tdep.c: Update.
3178         * cris-tdep.c: Update.
3179         * remote-sim.c: Update.
3180         * remote-rdi.c: Update.
3181         * remote-rdp.c: Update.
3182         * frame.c: Update.
3183         * target.c: Update.
3184         * blockframe.c: Update.
3185         * x86-64-tdep.c: Update.
3186         * xstormy16-tdep.c: Update.
3187         * sh-tdep.c: Update.
3188         * s390-tdep.c: Update.
3189         * rs6000-tdep.c: Update.
3190         * sparc-tdep.c: Update.
3191         * i386-tdep.c: Update.
3192         * dwarf2cfi.c: Update.
3193         * regcache.c: Update.
3194
3195 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3196
3197         New interix-specific files:
3198         * config/i386/nm-interix.h: New file.
3199         * config/i386/interix.mh: New file.
3200         * config/i386/interix.mt: New file.
3201         * i386-interix-nat.c: New file.
3202         * i386-interix-tdep.c: New file.
3203
3204 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3205
3206         * frame.h (deprecated_generic_get_saved_register): Rename
3207         generic_get_saved_register.
3208         * blockframe.c (deprecated_generic_get_saved_register): Update.
3209         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3210         (xstormy16_frame_saved_register): Update.
3211         * sh-tdep.c (sh_gdbarch_init): Update.
3212         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3213         * ia64-tdep.c (ia64_get_saved_register): Update.
3214         * cris-tdep.c (cris_gdbarch_init): Update.
3215         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3216         * arm-tdep.c (arm_gdbarch_init): Update.
3217
3218 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3219
3220         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3221
3222 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3223
3224         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3225         trampolines in sigaction.
3226
3227 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3228
3229         * h8300-tdep.c: Include "gdb_assert.h".
3230         (h8300_print_register): Add gdbarch, file and frame parameters.
3231         Use frame_read_unsigned_register to read the register's value.
3232         Use fprintf_filtered to display output.
3233         (h8300_print_registers_info): Replace h8300_do_registers_info.
3234         (h8300_gdbarch_init): Set print_registers_info.
3235
3236 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3237
3238         * frame.c (frame_read_unsigned_register): New function.
3239         (frame_read_signed_register): New function.
3240         * frame.h (frame_read_unsigned_register): Declare.
3241         (frame_read_signed_register): Declare.
3242
3243 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3244
3245         * h8500-tdep.c (h8500_print_registers_info): New static function,
3246         clone of infcmd.c's default_print_registers_info.
3247         (h8500_do_registers_info): New funtion.
3248         (h8500_print_register_hook): Rename print_register_hook, make
3249         static.
3250
3251         * config/h8500/tm-h8500.h: Update copyright.
3252         (DEPRECATED_DO_REGISTERS_INFO): Define.
3253         (h8500_do_registers_info: Declare.
3254         (PRINT_REGISTER_HOOK): Delete macro.
3255         (print_register_hook): Delete function.
3256
3257 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3258
3259         * z8k-tdep.c (z8k_print_register_hook): Make static.
3260         (z8k_print_registers_info): New static function, clone of
3261         infcmd.c's default_print_registers_info.
3262         (z8k_do_registers_info): New function.  Wrap
3263         z8k_print_registers_info.
3264         * config/z8k/tm-z8k.h: Update copyright.
3265         (PRINT_REGISTER_HOOK): Delete macro.
3266         (z8k_print_register_hook): Delete declaration.
3267         (DEPRECATED_DO_REGISTERS_INFO): Define.
3268         (z8k_do_registers_info): Declare.
3269
3270 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3271
3272         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3273         as this is already provided by value.h, and was actually causing
3274         a compilation error because of a conflict in parameter type
3275         declaration due to a missing const keyword.
3276         (low_text_segment_addres): Fix a compilation warning.
3277
3278 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3279
3280         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3281         registers without a name.
3282         (mips_linux_cannot_store_register): Don't store registers without
3283         a name.
3284
3285 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3286
3287         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3288         out.)
3289         * symtab.h: Delete prototype for find_addr_symbol.
3290
3291 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3292
3293         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3294         DO_REGISTERS_INFO.
3295         gdbarch.h, gdbarch.c: Re-generate.
3296         * infcmd.c (default_print_registers_info): Update reference.
3297         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3298         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3299         * sh-tdep.c (sh_gdbarch_init): Ditto.
3300         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3301         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3302
3303 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3304
3305         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3306         cfi_init_extra_frame_info.
3307         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3308         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3309
3310         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3311         target where necessary.  Add more comments and remove the ones
3312         that don't provide any useful information.
3313
3314         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3315         deprecated_read_register_dummy with
3316         frame_unwind_unsigned_register.
3317
3318         * i386-tdep.c (i386_extract_struct_value_address): Use
3319         regcache_raw_read_unsigned instead of
3320         regcache_cooked_read_unsigned since we know that the register
3321         we're reading isn't a pseudo register.  Rename variable 'val' into
3322         the more descriptive 'addr'.
3323
3324         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3325         (x86_64_push_return_address): Add comment.
3326         (x86_64_pop_frame): Make static.
3327         (examine_argument): Clarify comment.
3328         (x86_64_skip_prologue): Make prolog_expact variable static.
3329
3330         * dwarf2cfi.c: Fix some formatting problems.
3331         (context_cpy, read_encoded_pointer): Clarify comments.
3332
3333         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3334         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3335         i386 target back into x86_64_gdbarch_init.  Add some comments and
3336         remove meaningless ones.
3337
3338 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3339
3340         * complaints.h (struct deprecated_complaint): Rename `struct
3341         complaint'.
3342         * complaints.c (complain): Update.
3343         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3344         incorrect comment indicating that "symfile.h" was being included
3345         for the `struct complaint' definition.
3346         * remote-vx.c: Update.
3347         * objc-lang.c: Update.
3348         * xcoffread.c: Update.
3349         * hpread.c: Update.
3350         * mdebugread.c: Update.
3351         * stabsread.c: Update.
3352         * dwarf2read.c: Update.
3353         * dwarfread.c: Update.
3354         * elfread.c: Update.
3355         * coffread.c: Update.
3356         * stabsread.h: Update.
3357         * dbxread.c: Update.
3358         * buildsym.c: Update.
3359         * gdbtypes.c: Update.
3360         * macrotab.c: Update.
3361
3362 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3363
3364         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3365         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3366         (x86_64_init_abi): ...new function.
3367
3368         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3369         * i386v-nat.c: Include "i386-tdep.h".
3370
3371 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3372
3373         * gdbtypes.c (address_space_name_to_int): Update.
3374         (address_space_int_to_name): Update.
3375         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3376         multi-arch predicate.
3377         (address_class_name_to_type_flags): Ditto.
3378         * gdbarch.h, gdbarch.c: Re-generate.
3379         
3380         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3381
3382 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3383
3384         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3385
3386 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3387
3388         * symtab.h (INIT_SAL): Delete macro.
3389         (init_sal): Export.
3390         * symtab.c (init_sal): New function.
3391
3392         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3393         to init_sal function call.
3394         (find_sal_from_funcs_and_line): Ditto.
3395         (all_sals_for_line): Ditto. 
3396         * breakpoint.c (create_internal_breakpoint): Ditto. 
3397         (create_fork_vfork_event_catchpoint): Ditto. 
3398         (create_exec_event_catchpoint): Ditto. 
3399         (parse_breakpoint_sals): Ditto. 
3400         (watch_command_1): Ditto. 
3401         (handle_gnu_4_16_catch_command): Ditto.
3402         (clear_command): Ditto. 
3403         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3404         * infcmd.c (run_stack_dummy): Ditto. 
3405         * infrun.c (process_event_stop_test): Ditto.
3406         (check_sigtramp2): Ditto.
3407         (step_over_function): Ditto. 
3408         * linespec.c (decode_line_2): Ditto. 
3409         (decode_line_1): Ditto. 
3410         * source.c (line_info): Ditto. 
3411         * symtab.c (find_pc_sect_line): Ditto.
3412
3413 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3414
3415         * dwarf2cfi.c (struct context)
3416         (struct context_reg): Moved to dwarf2cfi.h
3417         (context_alloc, frame_state_alloc, context_cpy):
3418         Made extern instead of static, removed prototypes.
3419         * dwarf2cfi.h (struct context)
3420         (struct context_reg): New, moved from dwarf2cfi.c
3421         (context_alloc, frame_state_alloc, context_cpy):
3422         New prototypes.
3423         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3424         Changed from static to extern.
3425         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3426         (LINUX_SIGCONTEXT_FP_OFFSET)
3427         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3428         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3429         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3430         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3431         set_gdbarch_*() calls now use x86-64 specific functions 
3432         instead of DWARF2 CFI ones.
3433         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3434         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3435         (x86_64_init_extra_frame_info): New prototypes.
3436         
3437 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3438
3439         * linespec.c: #include "parser-defs.h".
3440         Delete prototype for find_template_name_end.
3441         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3442
3443 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3444
3445         * NEWS: add recent mi fixes.
3446         * varobj.c (struct varobj): Add new "updated" flag.
3447         (new_variable): Default "updated" flag to 0.
3448         (varobj_set_value): Set "updated" flag to 1 if value
3449         changes.
3450         (varobj_update): Check varobj "updated" flag before
3451         comparing old and refreshed values.  Fix for
3452         PR gdb/702.
3453
3454 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3455
3456         * parse.c (parse_exp_1): Use BLOCK_START.
3457         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3458         SYMBOL_BLOCK_VALUE.
3459         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3460
3461 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3462
3463         * symtab.c: Delete cplusplus_hint.
3464         Delete prototype for find_template_name_end.
3465
3466 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3467
3468         * symtab.h: Update comment.
3469
3470 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3471
3472         * printcmd.c (address_info): Restore quotes in output.
3473         * valops.c (value_of_local): Restore quotes in error message.
3474
3475 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3476
3477         * symtab.c (symbol_demangled_name): New function.
3478         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3479         turning most of it into a function.
3480         (symbol_demangled_name): Export.
3481
3482 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3483
3484         * valops.c (value_of_local): Restore quotes in error message.
3485
3486 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3487
3488         * symtab.c (symbol_init_language_specific): New function.
3489         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3490         turning most of it into a function.
3491         (symbol_init_language_specific): Export.
3492
3493 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3494
3495         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3496         (dwarf_attr_name): Ditto.
3497         (dwarf_type_encoding_name): Ditto.
3498         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3499         (process_die): Handle DW_TAG_namespace,
3500         DW_TAG_imported_declaration, DW_TAG_imported_module.
3501         (read_namespace): New function.
3502
3503 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3504
3505         * configure.in: Define NEW_PROC_API on Interix too.
3506         * configure: Regenerate.
3507
3508 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3509
3510         * configure: Regenerate using the proper version of autoconf.
3511
3512 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3513
3514         * findvar.c (read_var_value): Temporarily disable TLS code, until
3515         complete TLS support is added.
3516
3517 2002-10-21  Jim Blandy  <jimb@redhat.com>
3518             Elena Zannoni  <ezannoni@redhat.com>
3519
3520         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3521         for thread local storage locations.
3522         (struct symbol): Add objfile field.
3523         (SYMBOL_OBJFILE): Define.
3524         * dwarf2read.c (is_thread_local): New static variable.
3525         (new_symbol): If variable is in thread local fill in address class
3526         and objfile appropriately.
3527         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3528         stack operation.
3529         * printcmd.c (address_info): Print the information for thread
3530         local storage variable.
3531         * findvar.c (read_var_value): In case of thread local variable,
3532         defer to the target vector code to compute address.
3533
3534 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3535
3536         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3537         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3538
3539 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3540
3541         * symtab.h (address_class):  Rename
3542         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3543         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3544         * printcmd.c (address_info): Ditto.
3545         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3546
3547 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3548
3549         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3550         DBREG_DRX macro to acces debug registers.
3551
3552         * Makefile.in (i386obsd-tdep.o): New target.
3553
3554         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3555         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3556
3557         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3558         * config/i386/obsd.mt: New file.
3559         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3560         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3561         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3562         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3563         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3564         * i386obsd-tdep.c: New file.
3565
3566 2002-10-19  Adam Fedor  <fedor@gnu.org>
3567
3568         * objc-exp.y (name_not_typename): Fix invalid comment.  
3569
3570 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3571
3572         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3573         to allocate partial syms and macro byte caches.
3574
3575 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3576
3577         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3578
3579 2002-10-18  Adam Fedor  <fedor@gnu.org>
3580
3581         * stabsread.c (find_name_end): New function.
3582         (define_symbol): Use it.
3583
3584 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3585
3586         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3587         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3588         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3589         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3590
3591 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3592
3593         * symfile.h: Add opaque declaration for struct obstack.
3594         Declare obsavestring to take a const char *.
3595         * symfile.c (obsavestring): Make first argument a const char *.
3596
3597 2002-10-16  Adam Fedor  <fedor@gnu.org>
3598
3599         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3600         names when matching breakpoints in current file.
3601
3602 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3603
3604         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3605         (read_tag_pointer_type): Add address class support.
3606         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3607         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3608         New methods.
3609         * gdbarch.h, gdbarch.c: Regenerate.
3610         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3611         (make_type_with_address_space, recursive_type_dump): Add address
3612         class support.
3613         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3614         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3615         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3616
3617 2002-10-16  Klee Dienes  <kdienes@apple.com>
3618
3619         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3620         to get the last character of a char[] buffer, not
3621         name[sizeof(vptr_name)-1].
3622
3623 2002-10-14  Adam Fedor  <fedor@gnu.org>
3624
3625         * symtab.h: New objc_specific struct.
3626         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3627         (SYMBOL_DEMANGLED_NAME): Likewise.
3628
3629 2002-10-14  Adam Fedor  <fedor@gnu.org>
3630
3631         * symfile.c (init_filename_language_table): Add ObjC file extension.
3632
3633 2002-10-14  Adam Fedor  <fedor@gnu.org>
3634
3635         * utils.c (puts_filtered_tabular): New function.
3636         (fprintf_symbol_filtered): Get ObjC demangled name.
3637         * defs.h (puts_filtered_tabular): Declared.
3638
3639 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3640
3641         * c-lang.h (c_type_print_varspec_prefix): Delete.
3642         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3643         ``need_post_space'' parameter.  Adjust all callers.
3644
3645 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3646  
3647         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3648         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3649         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3650         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3651
3652 2002-10-13  Adam Fedor  <fedor@gnu.org>
3653
3654         * source.c (print_source_lines): Update comments.
3655
3656 2002-10-13  Adam Fedor  <fedor@gnu.org>
3657
3658         * valops.c (value_of_local): New function.
3659         (value_of_this): Use it.
3660         * value.h (value_of_local): Declared.
3661
3662 2002-10-13  Adam Fedor  <fedor@gnu.org>
3663
3664         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3665         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3666
3667 2002-10-12  Adam Fedor  <fedor@gnu.org>
3668
3669         * language.c (binop_result_type): Add language_objc to case.
3670         (integral_type): Likewise.
3671         (character_type): Likewise.
3672         (string_type): Likewise.
3673         (boolean_type): Likewise.
3674         (structured_type): Likewise.
3675         (binop_type_check): Likewise.
3676
3677 2002-10-11  Adam Fedor  <fedor@gnu.org>
3678
3679         * printcmd.c (address_info): Print 'self' for ObjC.
3680
3681 2002-10-11  Adam Fedor  <fedor@gnu.org>
3682
3683         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3684         OP_SELF.
3685
3686 2002-10-11  Adam Fedor  <fedor@gnu.org>
3687
3688         * language.h (CAST_IS_CONVERSION): Add language_objc.
3689
3690 2002-10-11  Adam Fedor  <fedor@gnu.org>
3691
3692         * defs.h (enum language): Add language_objc.
3693
3694 2002-10-11  Klee Dienes  <kdienes@apple.com>
3695
3696         * corefile.c (read_memory_typed_address): New function.
3697         * gdbcore.h (read_memory_typed_address): Add prototype.
3698         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3699         to read a value destined for a CORE_ADDR, not read_memory_integer.
3700         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3701         (f77_get_dynamic_lowerbound): Ditto.
3702
3703 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3704
3705         * utils.c (string_to_core_addr): After turning string into
3706         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3707         which will do necessary sign-extension, etc.
3708
3709 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3710
3711         * c-exp.y (THIS): Delete token and grammar rule.
3712         (yylex): Don't return THIS.
3713         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3714         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3715         * demangle.c (cplus_markers): Update comment.  Put '$'
3716         first.  Remove CPLUS_MARKER.
3717         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3718         * jv-exp.y (THIS): Delete token and grammar rule.
3719         (yylex): Don't return THIS.
3720         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3721         * objc-exp.y (THIS): Delete token and grammar rule.
3722         (yylex): Don't return THIS.
3723         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3724         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3725         (read_member_functions): Likewise for opname.
3726         (read_tilde_fields): Use is_cplus_marker.
3727
3728         * defs.h (CPLUS_MARKER): Don't define.
3729         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3730         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3731         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3732         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3733         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3734
3735         * config/i386/tm-i386v4.h: Delete file.
3736         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3737         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3738         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3739         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3740         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3741         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3742         * config/i386/i386v4.mt (TM_FILE): Likewise.
3743         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3744
3745 2002-10-10  Marko Mlinar  <markom@opencores.org>
3746
3747         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3748         accidentially not commited 2002-10-09
3749         * gdbarch.h, gdbarch.c: Re-generate.
3750
3751 2002-10-09  Marko Mlinar  <markom@opencores.org>
3752
3753         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3754         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3755         * gdbarch.h, gdbarch.c: Re-generate.
3756
3757 2002-10-08  Petr Sorfa <petrs@caldera.com>
3758
3759         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3760
3761         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3762         so we can work on more than one compilation unit at a time.  This
3763         helps prepare GDB to handle inter-CU die references.
3764         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3765         the code to be defined before struct comp_unit_head.
3766         (comp_unit_head): Added new members - offset, cu_head,
3767         begin_die, next and dwarf2_abbrevs.
3768         (dwarf2_abbrevs): Removed single static var; now member of
3769         struct comp_unit_head.
3770         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3771         members.
3772         (psymtab_to_symtab_1): Changed to work with the new
3773         struct comp_unit_head.
3774         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3775         constructs the dwarf2_abbrevs[] inside the cu_header.
3776         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3777         dwarf2_abbrev table to clean up.
3778         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3779         handling of dwarf2_abbrevs inside the cu_header.
3780         (read_partial_die): Now supports the call to the new
3781         dwarf2_lookup_abbrev.
3782         (read_full_die): Now supports the call to the new
3783         dwarf2_lookup_abbrev.
3784
3785 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3786
3787         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3788         insure that shell variables, such as "transformed_name" are propagated
3789         to later shell statements in rule.
3790
3791 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3792
3793         * config/i386/nm-i386sco.h: Add protection against
3794         multiple-inclusion.  Include "i386/nm-i386v.h".
3795         (REGISTER_U_ADDR): Remove define.
3796         (i386_register_u_addr): Remove prototype.
3797
3798 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3799
3800         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3801         before treating it as a single-step event.
3802
3803 2002-10-03  Adam Fedor  <fedor@gnu.org>
3804
3805         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3806         (objc_demangle): Remove assignment in if statements, Replace
3807         free with xfree.
3808         (add_msglist): Likewise.
3809         (end_msglist): Likewise.
3810         (complare_selectors): Likewise.
3811         (selectors_info): Likewise.
3812         (compare_classes): Likewise.
3813         (classes_info): Likewise.
3814         (print_object_command): Likewise.
3815         (find_objc_msgcall_submethod): Replace PTR with void *.
3816         * objc-lang.h: Remove check for __STDC__.
3817
3818 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3819
3820         * ui-out.h (ui_out_field_fmt_int): New prototype.
3821         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3822         of field width and alignment.
3823         * stack.c (print_frame_info_base): When printing frame level, use
3824         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3825         PR gdb/192
3826
3827 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3828
3829         * MAINTAINERS: Add self to Write After Approval list.
3830
3831 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3832
3833         * infcmd.c (interrupt_target_command_wrapper): Delete.
3834         (interrupt_target_command): Make non static.
3835         (nofp_registers_info): Make static.
3836         * stack.c (return_command_wrapper): Delete.
3837         (return_command): Make non static.
3838
3839 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3840
3841         * event-top.c (gdb_setup_readline): New function. Code moved from
3842         _initialize_event_loop().
3843         (_initialize_event_loop): Call gdb_setup_readline().
3844
3845 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3846
3847         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3848         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3849         * gdbarch.h, gdbarch.c: Re-generate.
3850
3851 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3852
3853         Fix PR gdb/778
3854         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3855         before recursing.
3856         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3857         of fill_in_vptr_fieldno.
3858
3859 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3860
3861         * inferior.h (registers_info, stepi_command, nexti_command,
3862         continue_command, interrupt_target_command): Export from infcmd.c.
3863         * frame.h (args_info, selected_frame_level_changed_hook,
3864         return_command): Export from stack.c.
3865         * v850ice.c (stepi_command, nexti_command, continue_command): use
3866         prototypes from inferior.h.
3867         * tracepoint.c (registers_info, args_info, locals_info): Use
3868         prototypes from frame.h and inferior.h.
3869         * Makefile.in (mi-main.o): Add dependency on frame.h.
3870
3871 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3872
3873         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3874         value in register 3 adjusted by ppc_gp0_regnum.
3875
3876         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3877
3878 2002-10-02  Marko Mlinar <markom@opencores.org>
3879
3880         * MAINTAINERS: Add myself to the Write After Approval list.
3881
3882 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3883
3884         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3885         of the section for the N64 ABI, fixed.
3886
3887         * config/mips/tm-irix6.h: Include solib.h.
3888
3889 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3890
3891         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3892         GNU operators.
3893
3894 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3895
3896         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3897         and that "mi0" syntax has been removed.
3898
3899 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3900
3901         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3902         * ppc-sysv-tdep.c: #include "gdb_string.h".
3903         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3904         pacify GCC.
3905
3906 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3907
3908         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3909         "vrsave"'s register number.
3910
3911 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3912
3913         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3914         use frame_unwind_signed_register to obtain the PC.
3915         (mips_frame_chain): Handle a generic dummy frame.
3916         (mips_init_extra_frame_info): When a generic dummy frame, don't
3917         re-compute the frame base.
3918         (mips_pop_frame): Handle generic dummy frames.
3919         (mips_gdbarch_init): When generic dummy frames, set
3920         use_generic_dummy_frames, push_dummy_frame to
3921         generic_push_dummy_frame, pc_in_call_dummy to
3922         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3923         generic_save_dummy_frame_tos.
3924
3925 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3926
3927         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3928         against TOP when TOP was explictly set.
3929         (generic_push_dummy_frame): Set TOP to zero.
3930
3931 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3932
3933         * event-loop.c (start_event_loop): Rename variable 'result' to
3934         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3935
3936 2002-09-30  Keith Seitz  <keiths@redhat.com>
3937
3938         * gdb-events.sh (selected_thread_changed): New event.
3939         * gdb-events.c: Regenerated.
3940         * gdb-events.h: Regenerated.
3941
3942 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3943
3944         * MAINTAINERS: Add self to Write After Approval list.
3945
3946 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3947
3948         * disasm.c: New file.  
3949         * disasm.h: New file.  
3950         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3951         (compare_lines): Ditto.
3952         (dump_insns): Ditto.
3953         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3954         argument.
3955         (do_assembly_only): Ditto.
3956         (do_disassembly): Renamed to gdb_disassembly and moved to
3957         disasm.c.  Sdded uiout argument.
3958         * Makefile.in: Add new files.  Reorder SFILES list. Update
3959         dependencies.  Include libgdb.a later in the insight executable.
3960
3961 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3962
3963         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3964         bfd/elf64-alpha-fbsd.c.
3965
3966 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3967
3968         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3969         i386gnu-tdep.c.
3970
3971 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3972
3973         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3974         __FUNCTION__.
3975         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3976         function name.
3977         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3978         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3979         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3980         (S_msg_sig_post_reply): Ditto.
3981         
3982 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3983
3984         * sh-tdep.c (sh_use_struct_convention): Use definition according
3985         to ABI.
3986         (sh_push_arguments): Store in register with correct endianess.
3987         (sh_default_store_return_value): Ditto.
3988         (sh_gdbarch_init): Set sizeof long double to 8.
3989
3990 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3991
3992         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3993         Fix some whitespace problems.
3994
3995 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3996
3997         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3998         (mcore-tdep.o): Ditto.
3999         (ns32k-tdep.o): Ditto.
4000         (ns32knbsd-tdep.o): Ditto.
4001         (sh3-rom.o): Ditto.
4002         (vax-tdep.o): Ditto.
4003         * cris-tdep.c: #include "gdb_string.h"
4004         * mcore-tdep.c: Ditto.
4005         * ns32k-tdep.c: Ditto.
4006         * ns32knbsd-tdep.c: Ditto.
4007         * sh3-rom.c: Ditto.
4008         * vax-tdep.c: Ditto.
4009
4010 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4011
4012         * config/djgpp/fnchange.lst: Add entries for
4013         gdb/testsuite/gdb.c++/m-static files.
4014
4015 2002-09-27  Jim Wilson  <wilson@redhat.com>
4016
4017         * MAINTAINERS: Add myself to the Write After Approval list.
4018
4019 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4020
4021         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4022
4023
4024 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4025
4026         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4027         frame.
4028
4029 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4030
4031         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4032         (rs6000_struct_return_address): Delete variable.
4033         (rs6000_store_struct_return): Update.
4034         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4035         deprecated_extract_struct_value_address.
4036         (rs6000_frame_align): New function.
4037         (rs6000_gdbarch_init): Set frame_align.
4038
4039 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4040
4041         From Grace Sainsbury <graces@redhat.com>:
4042         * Makefile.in (gdbtk-main.o): New target.
4043         (gdb.o): New target.
4044         (main_h): Define.
4045         (main.o): Update dependencies.
4046         (gdb$(EXEEXT)): Add gdb.o.
4047         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4048         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4049         (SUBDIR_GDBTK_CLEAN): Set.
4050         (install-gdbtk): Install the insight binary.
4051         (uninstall-gdbtk): New target.
4052         (all-gdbtk, clean-gdbtk): New rule.
4053         * top.c (use_windows): Default to zero.
4054         * main.c: Include "main.h".
4055         (main): Delete.
4056         (struct captured_main_args): Delete.
4057         (gdb_main): New function.
4058         * main.h: New file.
4059         * gdb.c: New File.
4060
4061 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4062
4063         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4064         (frame_map_regnum_to_name): New function.
4065         (frame_map_name_to_regnum): New function.
4066         * frame.h (frame_map_name_to_regnum): Declare.
4067         (frame_map_regnum_to_name): Declare.
4068         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4069         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4070         * parse.c: Do not include "builtin-regs.h".
4071         (target_map_name_to_register): Delete function.
4072         (write_dollar_variable): Use frame_map_name_to_regnum.
4073         * parser-defs.h (target_map_name_to_register): Delete declaration.
4074         * expprint.c: Include "frame.h".
4075         (print_subexp): Use frame_map_regnum_to_name.
4076         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4077         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4078
4079 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4080
4081         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4082         wasn't saved, and the next innermost frame is a dummy, return the
4083         dummy frame's link register.
4084
4085 2002-09-24  Jim Blandy  <jimb@redhat.com>
4086
4087         Fix from Paul Breed:
4088         * main.c (captured_main): Add a `break' after the case for 'b'.
4089
4090 2002-09-24  Keith Seitz  <keiths@redhat.com>
4091
4092         * varobj.c (c_type_of_child): Use get_target_type instead
4093         of TYPE_TARGET_TYPE.
4094
4095 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4096
4097         * source.c (get_current_or_default_source_symtab_and_line): Remove
4098         function.
4099         (set_default_source_symtab_and_line): New function. Attempts to
4100         determine a source file to list lines from if one is not currently
4101         defined.
4102         (get_current_source_symtab_and_line): Initialize sal.pc and
4103         sal.end fields.
4104         (set_current_source_symtab_and_line): Mark argument as const.
4105         * source.h: Update declarations and comments.
4106         * linespec.c (decode_line_1): Replace call to removed routine above.
4107         * stack.c (print_frame_info_base): Ditto.
4108         * cli/cli-cmds.c (edit_command): Ditto.
4109         (list_command): Ditto.
4110
4111 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4112
4113         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4114         sal.pc and sal.end fields.
4115         (get_current_or_default_source_symtab_and_line): Ditto.
4116         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4117         so we do not cause a new source symtab to be searched for (reverting an
4118         unintentional change from the 2002-09-20 patch).
4119         * scm-lang.c (scm_unpac): Ditto.
4120
4121 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4122
4123         * complaints.c (symfile_explanations): Remove new-line from
4124         ``isolated_message''.
4125         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4126         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4127
4128 2002-09-20  Nick Clifton  <nickc@redhat.com>
4129         
4130         * NEWS: Announce that V850EA ISA is no longer supported.
4131         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4132
4133 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4134
4135         * Makefile.in (c-lang.o): Correct dependencies.
4136         (utils.o): Gather dependencies.
4137         (charset.o): Move.
4138         * c-lang.c: #include "gdb_string.h"
4139
4140 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4141
4142         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4143         * cli/cli-cmds.c (list_command): New function.  Implements the new
4144         cli edit command.
4145         (_init_cli_cmds): Add new command definition.
4146         * gdb.1: Document edit command.
4147         * doc/gdb.texinfo: Document edit command.
4148
4149 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4150
4151         * source.c: Make global variables current_source_symtab and
4152         current_source_line static.
4153         (list_command): Moved to cli/cli-cmds.c.
4154         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4155         (get_first_line_listed): New accessor function.
4156         (get_lines_to_list): New accessor function.
4157         (get_current_source_symtab_and_line): New function. Retrieves the
4158         position in the source code that we consider current.
4159         (get_current_or_default_source_symtab_and_line): New function.
4160         Like the above but attempts to determine a default position if one
4161         is not currently defined.
4162         (set_current_source_symtab_and_line): New function. Sets the source
4163         code position considered current and returns the previously set one.
4164         (clear_current_source_symtab_and_line): Reset stored information about
4165         a current source line.
4166         (_initialize_source): Remove registration for the "list" command and
4167         its alias.
4168         * source.h: Add declarations for the new functions above.
4169         * symtab.h: Remove declarations for the global variables mentioned
4170         above.
4171         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4172         obtain current source line.
4173         * linespec.c (decode_line_1): Ditto.
4174         * macroscope.c (default_macro_scope): Ditto.
4175         * scm-lang.c (scm_unpac): Ditto.
4176         * stack.c (print_frame_info_base): Ditto.
4177         * symfile.c (clear_symtab_users): Ditto.
4178         * symtab.c (decode_line_spec): Ditto.
4179         * cli/cli-cmds.c (list_command): Moved here from source.c.
4180         (ambiguous_line_spec): Moved here from source.c.
4181         (_init_cli_cmds): Add definition for "list" and its alias.
4182         * Makefile.in: Update dependencies.
4183
4184 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4185
4186         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4187         with what gcc thinks is correct.
4188
4189 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4190
4191         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4192         multiple register push instruction.
4193
4194 2002-09-19  Jim Blandy  <jimb@redhat.com>
4195
4196         Add support for distinct host and target character sets.
4197         * charset.c, charset.h: New files.
4198         * c-exp.y: #include "charset.h".
4199         (yylex): Convert character and string literals to the target
4200         character set, before returning them as the semantic value of the
4201         token.
4202         * c-lang.c: #include "charset.h".
4203         (c_emit_char): Use charset-specific methods to recognize
4204         characters with backslash escape forms, to decide which characters
4205         to print literally and which to print using numeric escape
4206         sequences, and to convert target characters to host characters
4207         before printing.
4208         * utils.c: #include "charset.h".
4209         (no_control_char_error): New function.
4210         (parse_escape): Use charset-specific methods to recognize
4211         backslash escapes, parse `control character' notation, and convert
4212         characters from the host character set to the target character set.
4213         * configure.in: Set the default host character set.
4214         Check where to find iconv, and what its argument types might be.
4215         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4216         * Makefile.in (SFILES): List charset.c.
4217         (COMMON_OBS): List charset.o.   
4218         (charset.o): New rule.
4219         (charset_h): New header dependency variable.
4220         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4221         (LIBICONV): New variable, set by configure.
4222         (CLIBS): Include $(LIBICONV) here.
4223         * aclocal.m4, config.in, configure: Regenerated.
4224
4225 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4226
4227         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4228         bison 1.35 warning.
4229
4230 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4231
4232         * gdb_mbuild.sh: New file.
4233
4234 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4235
4236         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4237
4238 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4239
4240         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4241         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4242         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4243         valops.c, value.h: Revert previous change.
4244         
4245 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4246
4247         Preliminary support for Objective-C:
4248         * defs.h (language_objc): New enum value.
4249         (puts_filtered_tabular): Declaration only, exported from utils.c.
4250         (skip_quoted): Delete, declared in completer.h.
4251         * c-exp.y: Include completer.h.
4252         * p-exp.y: Ditto.
4253         * jv-exp.y: Ditto.
4254         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4255         New operator enum values.
4256         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4257         * language.c (binop_result_type): Handle language_objc case.
4258         (integral_type, character_type, string_type, boolean_type,
4259         structured_type, binop_type_check): Ditto.
4260         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4261         (struct objc_specific): Add to general_symbol_info.
4262         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4263         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4264         * parser-defs.h (struct objc_class_str): New struct type.
4265         (start_msglist, end_msglist, add_msglist): Declaration only,
4266         exported from objc-lang.c.
4267         * value.h (value_of_local, value_nsstring, 
4268         call_function_by_hand_expecting_type): Exported from valops.c.
4269         * valops.c (find_function_addr): Export.
4270         (call_function_by_hand_expecting_type): New function.
4271         (value_of_local): New function.
4272         * symfile.c (init_filename_language_table): Add ".m" extension
4273         for Objective-C.
4274         * utils.c (puts_filtered_tabular): New function.
4275         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4276         (set/show demangle): Extend help-string to refer to ObjC.
4277         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4278         * stabsread.c (symbol_reference_defined): Objective-C symbols
4279         may contain colons: make allowances when scanning stabs strings
4280         for colons.
4281         (objc_find_colon): New function.
4282         * printcmd.c (address_info): If language == objc then print
4283         "self" instead of "this".
4284         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4285         OP_NSSTRING, and OP_SELF.
4286         (prefixify_subexp): Ditto.
4287         * source.c (print_source_lines): Mention objc in comment.
4288         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4289         method names.
4290
4291 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4292
4293         * complaints.h: Update copyright.
4294         (struct complaints): Declare.
4295         (struct complaint): Make `message' constant.
4296         (internal_complaint): Declare.
4297         (complaint): Declare.
4298         (complaint_root): Delete declaration.
4299         (symfile_complaints): Delete declaration.
4300         (struct complaints): Add opaque declaration.
4301         (clear_complaints): Add a complaints parameter.
4302         * complaints.c: Update copyright.
4303         (enum complaint_series): Define.
4304         (complaint_root): Delete.
4305         (struct complaints): Define.
4306         (complaint_sentinel, symfile_complaint_book): New variables.
4307         (symfile_explanations, symfile_complaints): New variables.
4308         New variables.
4309         (get_complaints): New function.
4310         (vcomplaint): New function.
4311         (complaint): New function.
4312         (internal_complaint): New function.
4313         (complain): Call vcomplain with symfile_complaint.
4314         (clear_complaints): Rewrite.
4315         (_initialize_complaints): Use add_setshow_command.
4316         * Makefile.in (complaints.o): Update dependencies.
4317         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4318         to call to clear_complaints.
4319         (new_symfile_objfile, reread_symbols): Ditto.
4320         (oldsyms_complaint): Delete.
4321         (empty_symtab_complaint, unknown_option_complaint): Delete.
4322         (free_named_symtabs): Use complaint instead of complain.
4323
4324 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4325
4326         Contributed by Apple Computer, Inc.  Merged with current sources
4327         by Adam Fedor <fedor@doc.com> [cagney].
4328         
4329         * objc-lang.c: First clean-up round: comments, indentation.
4330         * objc-lang.h: Ditto.
4331         * objc-lang.y: Ditto.
4332
4333 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4334
4335         * maint.c (maintenance_internal_error): Print the parameter as the
4336         error message.
4337         (maintenance_internal_warning): New function.
4338         (_initialize_maint_cmds): Add command `maint internal-warning'.
4339
4340         * defs.h (internal_warning, internal_vwarning): Declare.
4341         * utils.c (struct internal_problem): Define.
4342         (internal_vproblem): New function.
4343         (internal_warning): New function.
4344         (internal_vwarning): New function.
4345         (internal_warning_problem, internal_error_problem): New variables.
4346         (internal_verror): Just call internal_vproblem.
4347
4348 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4349
4350         * objc-lang.c: New file, support for Objective-C.
4351         Preliminary check-in, not yet integrated into gdb.
4352         * objc-lang.h: New file.
4353         * objc-exp.y:  New file.
4354
4355 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4356
4357         * infrun.c (signal_stop_update): Convert definition to ISO C.
4358         (signal_print_update): Ditto.
4359         (signal_pass_update): Ditto.
4360         * inflow.c (terminal_save_ours): Ditto.
4361
4362         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4363         comments.
4364         
4365         * config/djgpp/fnchange.lst: Handle name clashes between
4366         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4367         bfd/coff-tic80.c.
4368
4369         * i386-linux-tdep.h: Fix tipo.
4370
4371 2002-09-18  Adam Fedor  <fedor@gnu.org>
4372
4373         * MAINTAINERS: Add myself to the Write After Approval list.
4374
4375 2002-09-18  Jim Blandy  <jimb@redhat.com>
4376
4377         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4378         texthigh and textlow to reader-specific structs caused
4379         objfile_relocate to miss them.  This is fixable, but the work that
4380         the change was supposed to prepare GDB for never got done anyway.
4381
4382 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4383
4384         * MAINTAINERS: Alphabetize Write After Approval list.
4385
4386 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4387
4388         Fix PR gdb/709
4389         * values.c (value_static_field): Call read_var_value.
4390
4391 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4392
4393         * valops.c (hand_function_call): Align the initial stack pointer
4394         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4395         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4396         return value.
4397         * mips-tdep.c (mips_frame_align): New function.
4398         (mips_gdbarch_init): Set frame_align.
4399         * gdbarch.sh (FRAME_ALIGN): New method.
4400         * gdbarch.h, gdbarch.c: Re-generate.
4401
4402 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4403
4404         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4405         registers.
4406
4407 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4408
4409         * NEWS: Mention that MIPS $fp behavior changed.
4410         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4411         reference to FP_REGNUM.
4412         (mipsnbsd_cannot_store_register): Ditto.
4413         * mips-linux-nat.c: Update copyright.
4414         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4415         (mips_linux_cannot_store_register): Ditto.
4416         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4417         * config/mips/tm-mips.h: Update copyright.
4418         (FP_REGNUM): Delete macro.
4419         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4420         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4421         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4422         (mips_r3041_reg_names, mips_r3051_reg_names)
4423         (mips_r3081_reg_names): Replace "fp" with "".
4424         Fix PR gdb/480.
4425
4426 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4427
4428         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4429         generic_read_register_dummy() (PR gdb/703).
4430         (avr_push_return_address): #if 0 out unused vars.
4431         (avr_gdbarch_init): Enable use of avr_push_return_address().
4432
4433 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4434
4435         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4436         RTE will take care of it.
4437
4438 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4439
4440         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4441         invalid, return SP_REGNUM.
4442
4443 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4444
4445         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4446         point registers without sign extension.
4447
4448 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4449
4450         * blockframe.c (deprecated_read_register_dummy): Rename
4451         generic_read_register_dummy.
4452         * frame.c (frame_unwind_signed_register): New function.
4453         (frame_unwind_unsigned_register): New function.
4454         * frame.h (frame_unwind_signed_register): Declare.
4455         (frame_unwind_unsigned_register): Declare.
4456         (deprecated_read_register_dummy): Rename
4457         generic_read_register_dummy.
4458
4459         * h8300-tdep.c (h8300_frame_chain): Update.
4460         (h8300_frame_saved_pc): Update.
4461         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4462         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4463         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4464         (s390_frame_chain): Update.
4465         * v850-tdep.c (v850_find_callers_reg): Update.
4466         (v850_frame_saved_pc): Update.
4467         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4468         (m32r_find_callers_reg): Update.
4469         (m32r_frame_saved_pc): Update.
4470         * sh-tdep.c (sh_find_callers_reg): Update.
4471         (sh64_get_saved_pr): Update.
4472         (sh_init_extra_frame_info): Update.
4473         (sh_init_extra_frame_info): Update.
4474         (sh64_init_extra_frame_info): Update.
4475         (sh64_init_extra_frame_info): Update.
4476         * mcore-tdep.c (mcore_find_callers_reg): Update.
4477         (mcore_frame_saved_pc): Update.
4478         (mcore_init_extra_frame_info): Update.
4479         * i386-tdep.c (i386_frame_saved_pc): Update.
4480         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4481         (ia64_init_extra_frame_info): Update.
4482         (ia64_init_extra_frame_info): Update.
4483         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4484         * cris-tdep.c (cris_init_extra_frame_info): Update.
4485         * avr-tdep.c (avr_frame_chain): Update.
4486         (avr_init_extra_frame_info): Update.
4487         (avr_frame_saved_pc): Update.
4488         * arm-tdep.c (arm_find_callers_reg): Update.
4489         (arm_init_extra_frame_info): Update.
4490         (arm_frame_saved_pc): Update.
4491
4492 2002-09-17  Tom Tromey  <tromey@redhat.com>
4493
4494         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4495         is "'".
4496
4497 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4498
4499         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4500         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4501         NEXT_PROLOGUE_INSN.
4502         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4503         NEXT_PROLOGUE_INSN.
4504
4505 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4506
4507         * osfsolib.c: Remove file, replaced by solib-osf.c.
4508         * Makefile.in: Remove compilation rules for osfsolib.c.
4509
4510 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4511
4512         * cp-valprint.c (cp_print_class_method): Correct args to
4513         check_stub_method_group.
4514
4515 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4516
4517         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4518         `set architecture'.  Unify naming convention of functions.
4519         (h8300_skip_prologue): Improve prologue analysis.
4520         (h8300_push_arguments): Rewritten to more closely match GCC's
4521         bizarre argument-passing behavior, along with the comment describing
4522         said behavior.
4523         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4524         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4525         sim, remote-e7000.c, remote-hms.c and remote.c
4526
4527 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4528
4529         * i386-tdep.c (gdb_print_insn_i386): Removed.
4530         (i386_print_insn): New function.
4531         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4532         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4533         tm_print_insn_info.
4534
4535 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4536
4537         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4538         zero.
4539
4540 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4541
4542         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4543         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4544         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4545
4546 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4547
4548         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4549
4550 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4551
4552         * gdbtypes.c (check_stub_method): Make static.
4553         (check_stub_method_group): New function.
4554         * gdbtypes.h: Update prototypes.
4555         * cp-support.c: New file.
4556         * cp-support.h: New file.
4557
4558         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4559         (update_method_name_from_physname): New function.
4560         (read_member_functions): Correct method names for operators
4561         and v3 constructors/destructors.  Separate v2 constructors and
4562         destructors.
4563         * Makefile.in (stabsread.o): Update dependencies.
4564         (SFILES): Add cp-support.c.
4565         (COMMON_OBS): Add cp-support.o.
4566         (cp_support_h, cp-support.o): Add.
4567
4568         * cp-valprint.c (cp_print_class_method): Call
4569         check_stub_method_group instead of check_stub_method.  Remove
4570         extraneous QUITs.
4571         * p-valprint.c (pascal_object_print_class_method): Likewise.
4572         * valops.c (search_struct_method): Likewise.
4573         (find_method_list, value_struct_elt_for_reference): Likewise.
4574
4575 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4576
4577         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4578         * gdbarch.h, gdbarch.c: Regenerate.
4579
4580 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4581
4582         * frame.c (find_saved_register): Delete function.
4583         * frame.h (find_saved_register): Delete declaration.
4584         Fix PR gdb/631.
4585
4586 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4587
4588         * mips-tdep.c (read_next_frame_reg): Re-hack using
4589         frame_register_unwind.
4590
4591 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4592
4593         * mips-tdep.c (mips_get_saved_register): Re-hack using
4594         frame_register_unwind.
4595
4596 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4597
4598         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4599         vector. Will be useful for Interix.  
4600         * gdbarch.h, gdbarch.c: Regenerate.
4601
4602         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4603         name of the malloc function by NAME_OF_MALLOC.
4604
4605 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4606
4607         * value.h (find_function_in_inferior): Add const keyword to
4608         one of the parameters. Allows us to invoke this function with
4609         a const char *.
4610         * valops.c (find_function_in_inferior): Likewise.
4611
4612 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4613
4614         * exec.c (xfer_memory): Fix compilation warning with old versions
4615         of GCC.
4616         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4617
4618 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4619
4620         * symtab.h: Run through gdb_indent.h.
4621         Add 2002 to Copyright year list.
4622
4623 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4624
4625         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4626         mach constants.
4627         * MAINTAINERS: Add myself to write after approval list.
4628
4629 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4630
4631         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4632
4633 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4634
4635         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4636         Interix.
4637
4638 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4639
4640         * procfs.c (do_detach): Clear current signal, not just fault.
4641         Corrects problem with breakpoint trap signal leaking to detached
4642         process on Tru64.
4643
4644 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4645
4646         * buildsym.c (finish_block): Protect against null pointer.
4647
4648 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4649
4650         * infcmd.c (default_print_registers_info): Send all output to
4651         ``file'' instead of ``gdb_stdout''.
4652
4653 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4654
4655         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4656         LONGEST, and use signed register read (addresses are sign-
4657         extended for mips).
4658
4659 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4660
4661         * event-loop.c (gdb_do_one_event): Make public.
4662         * event-loop.h (gdb_do_one_event): Declare.
4663
4664 2002-09-10  Jeff Law  <law@redhat.com>
4665
4666         * infttrace.c (child_resume): Simplify and rework to avoid
4667         TT_PROC_CONTINUE.
4668
4669 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4670
4671         * printcmd.c (print_scalar_formatted): "len" is the number of
4672         target bytes, NOT the number of target bits.
4673
4674 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4675
4676         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4677         * top.c (init_main): Set rl_terminal_name.
4678
4679 2002-09-08  Aidan Skinner <aidan@velvet.net>
4680
4681         * ada-lang.c (ada_array_bound, ada_type_match,
4682         _initialize_ada_language): Fix K&R definitions.
4683         * ada-tasks.c (get_current_task): Fix K&R definitions.
4684         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4685                         
4686 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4687
4688         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4689         Add XP.
4690
4691 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4692
4693         * i386-tdep.c (i386_register_virtual_type,
4694         i386_register_convertible, i386_register_convert_to_virtual,
4695         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4696         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4697         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4698         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4699         Don't set push_arguments twice.
4700
4701         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4702         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4703         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4704         sigtramp_end to NULL.
4705         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4706         defines.
4707         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4708
4709         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4710         whitespace.
4711
4712         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4713         * gdbarch.h, gdbarch.c: Re-generate.
4714         * blockframe.c (find_pc_sect_partial_function): Convert to use
4715         SIGTRAMP_START_P predicate.
4716
4717 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4718
4719         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4720         generic_dummy_frame method and old method.  Also distinguish
4721         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4722         (arm_extract_return_value): Use new regcache method.
4723
4724         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4725         adjustment that doesn't conform to the ABI.
4726         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4727         saved regcache, not from current regcache.
4728
4729 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4730
4731         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4732         * README: Update.
4733
4734 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4735
4736         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4737         if arm_apcs_32 is false.
4738
4739 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4740
4741         GDB 5.3 branch created.
4742
4743 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4744
4745         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4746         generic_unwind_get_saved_register.
4747
4748 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4749
4750         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4751         argument (PR gdb/653).  Update call to smash_to_method_type.
4752         (read_structure_scope): Update call to dwarf2_add_member_fn.
4753
4754 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4755
4756         * x86-64-linux-tdep.c: Include gdb_string.h
4757         * x86-64-linux-nat.c: Ditto.
4758
4759 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4760
4761         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4762         when YYDEBUG is set to 1.  
4763         * c-exp.y: Likewise.
4764         * f-exp.y: Likewise.
4765         * jv-exp.y: Likewise.
4766         * m2-exp.y: Likewise.
4767         * p-exp.y: Likewise.
4768
4769 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4770
4771         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4772         dependency list.
4773         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4774         solib_svr4_fetch_link_map_offsets to
4775         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4776         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4777         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4778         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4779         solib-svr4.o, and solib-legacy.o.
4780         * config/i386/tm-nbsd.h: Include solib.h.
4781
4782 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4783
4784         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4785         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4786         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4787         comment noting that this needs its own target configuration.
4788         * config/i386/nbsd.mt: New file.
4789         * config/i386/nbsdaout.mt: Remove.
4790         * config/i386/nbsdelf.mt: Ditto.
4791         * config/i386/tm-nbsdaout.h: Ditto. 
4792
4793 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4794
4795         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4796         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4797         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4798         tdep->sigtramp_end.
4799         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4800         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4801         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4802
4803 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4804
4805         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4806         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4807         * i386-tdep.h (i386bsd_init_abi): New prototype.
4808         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4809         function declaration.
4810         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4811         for NetBSD-a.out or NetBSD-ELF.
4812         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4813         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4814         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4815         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4816         and nbsd-tdep.h.
4817         (i386nbsd_pc_in_sigtramp): New function.
4818         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4819         i386nbsd_pc_in_sigtramp.
4820         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4821         and i386nbsdelf_init_abi OS ABI handlers.
4822         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4823         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4824
4825 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4826
4827         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4828         registers if the target really has them.
4829
4830 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4831
4832         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4833         than nbsd-tdep.h.
4834
4835 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4836
4837         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4838         list.
4839         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4840         (alphanbsd_skip_sigtramp_frame): New functions. 
4841         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4842         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4843         to alphanbsd_sigcontext_addr. 
4844
4845 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4846
4847         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4848         list.
4849         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4850         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4851         nbsd_pc_in_sigtramp. 
4852         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4853         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4854         * nbsd-tdep.c: Include gdb_string.h.
4855         (nbsd_pc_in_sigtramp): New function. 
4856         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4857         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4858         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4859         ppcnbsd_pc_in_sigtramp. 
4860         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4861         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4862         shnbsd_pc_in_sigtramp. 
4863         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4864         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4865         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4866
4867 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4868
4869         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4870         watchpoints to NULL.
4871         (insert_breakpoints): set val field of watchpoints if NULL.
4872
4873
4874 2002-08-29  Jim Blandy  <jimb@redhat.com>
4875
4876         * symtab.c (lookup_symbol_aux): In the cases where we find a
4877         minimal symbol of an appropriate name and use its address to
4878         select a symtab to read and search, use `name' (as passed to us)
4879         as the demangled name when searching the symtab's global and
4880         static blocks, not the minsym's name.
4881
4882 2002-08-29  Keith Seitz  <keiths@redhat.com>
4883
4884         * stack.c (print_frame_info_base): Always set current_source_symtab
4885         and current_source_line.
4886
4887 2002-08-29  Donn Terry  <donnte@microsoft.com>
4888
4889         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4890
4891 2002-08-28  Keith Seitz  <keiths@redhat.com>
4892
4893         * stack.c (select_frame): Add FIXME concerning selected-frame
4894         events.
4895         (select_frame_command): Send selected-frame-level-changed
4896         event notification, but only if the level actually changed.
4897         (up_silently_base): Add selected-frame-level-changed event
4898         notification.
4899         (down_silently_base): Likewise.
4900
4901 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4902
4903         * Makefile.in: Update dependencies for all gdb/*.c files.
4904
4905 2002-08-27  Tom Tromey  <tromey@redhat.com>
4906
4907         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4908         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4909         Update dependencies.
4910         * i387-tdep.c: Include gdb_string.h.
4911         * osabi.c: Likewise.
4912         * i386-linux-nat.c: Likewise.
4913         * lin-lwp.c: Likewise.
4914         * ax-gdb.c: Likewise.
4915         * signals/signals.c: Likewise.
4916         * jv-valprint.c: Likewise.
4917         * p-lang.c: Likewise.
4918         * c-valprint.c: Likewise.
4919         * cp-abi.c: Likewise.
4920
4921 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4922
4923         * cli/cli-script.h (copy_command_lines): Export.
4924         * breakpoint.c: Include cli/cli-script.h.
4925         * Makefile.in (breakpoint.o): Update dependencies.
4926
4927 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4928
4929         * breakpoint.c (insert_breakpoints): Protect all references
4930         to 'process_warning'.  Shorten long lines.
4931
4932 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4933
4934         * cli/cli-script.c (copy_command_lines): New function.
4935         * defs.h (copy_command_lines): Export.
4936         * testsuite/gdb.base/commands.exp: New tests for commands
4937         attached to a temporary breakpoint, and for commands that
4938         delete the breakpoint they are attached to.
4939         
4940 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4941
4942         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4943         pointer to the breakpoint commands struct, make a new copy
4944         of the struct and point to that.
4945         (bpstat_clear): Free the commands struct.
4946         (bpstat_clear_actions): Free the commands struct.
4947         (bpstat_do_actions): Free the command actions.  Also execute
4948         the local cleanups, instead of deleting them.
4949         (delete_breakpoint): Leave the commands field of the bpstat
4950         chain alone -- it will be freed later.
4951
4952 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4953
4954         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4955         deleted in 2002-08-20 commit.  This function is still used by
4956         ppc-linux-nat.c.
4957
4958 2002-08-26  Keith Seitz  <keiths@redhat.com>
4959
4960         * gdb-events.sh: Add selected-frame-level-changed event.
4961         * gdb-events.c: Regenerated.
4962         * gdb-events.h: Regenerated.
4963         
4964 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4965
4966         Fix PR gdb/393:
4967         * inflow.c (terminal_save_ours): New function to save terminal
4968         settings.
4969         * inferior.h (terminal_save_ours): Declare.
4970         * target.c (debug_to_terminal_save_ours): New function.
4971         (cleanup_target): Defaults to_terminal_save_ours.
4972         (update_current_target): Inherit to_terminal_save_ours.
4973         (setup_target_debug): Set to_terminal_save_ours.
4974         * target.h (target_terminal_save_ours): New to save terminal settings.
4975         (target_ops): New member to_terminal_save_ours.
4976         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4977         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4978         * inftarg.c (init_child_ops): Likewise.
4979         * m3-nat.c (init_m3_ops): Likewise.
4980         * procfs.c (init_procfs_ops): Likewise.
4981         * wince.c (init_child_ops): Likewise.
4982         * win32-nat.c (init_child_ops): Likewise.
4983         * sol-thread.c (init_sol_thread_ops): Likewise.
4984
4985 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4986
4987         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4988         use regcache_* functions.
4989         (i386_gdbarch_init): Set store_return_value instead of
4990         deprecated_store_return_value.
4991
4992         * regcache.c (regcache_raw_write_signed,
4993         regcache_raw_write_unsigned): New functions.
4994         * regcache.h (regcache_raw_write_signed,
4995         regcache_raw_write_unsigned): New prototypes.
4996
4997 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4998
4999         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5000         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5001         source file dependencies.  Cleanup corresponding generator rules.
5002
5003 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5004
5005         * regcache.h (register_offset_hack): Declare.
5006         (regcache_cooked_read_using_offset_hack): Declare.
5007         (regcache_cooked_write_using_offset_hack): Declare.
5008
5009         * regcache.c (register_offset_hack): New function.
5010         (regcache_cooked_read_using_offset_hack): New function.
5011         (regcache_cooked_write_using_offset_hack): New function.
5012         (regcache_dump): Check that the registers, according to their
5013         offset, are packed hard against each other.
5014         (cooked_xfer_using_offset_hack): New function.
5015
5016 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5017
5018         * regcache.c (struct regcache_descr): Add field register_type.
5019         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5020         in as a parameter
5021         (init_regcache_descr): Initialize register_type.  Pass the descr
5022         to init_legacy_regcache_descr.  Use register_type instead of
5023         REGISTER_VIRTUAL_TYPE.
5024         (register_type): New function.
5025         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5026         * regcache.h (register_type): Declare.
5027
5028 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5029
5030         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5031         instead of deprecated_store_return_value.  Fix fallout from
5032         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5033
5034 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5035
5036         * regcache.c (max_register_size): New function.
5037         (init_legacy_regcache_descr): Ensure that max_register_size is
5038         large enough for REGISTER_VIRTUAL_SIZE.
5039         * regcache.h (max_register_size): Declare.
5040
5041 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5042
5043         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5044         store_return_value.
5045         (e500_extract_return_value): Change type of valbuf pointer to
5046         void.
5047
5048 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5049
5050         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5051         workaround.
5052
5053         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5054         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5055         long long) to prevent compiler warning on 64-bit systems.
5056
5057 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5058
5059         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5060         (DEPRECATED_STORE_RETURN_VALUE): New method.
5061         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5062         * gdbarch.h, gdbarch.c: Re-generate.
5063
5064         * values.c (set_return_value): Pass current_regcache to
5065         STORE_RETURN_VALUE.
5066         * arch-utils.h (legacy_store_return_value): Declare.
5067         * arch-utils.c (legacy_store_return_value): New function.
5068         (legacy_extract_return_value): Update parameters.
5069
5070         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5071         STORE_RETURN_VALUE.
5072         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5073         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5074         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5075         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5076         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5077         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5078         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5079         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5080         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5081         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5082
5083         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5084         * i386-tdep.c (i386_extract_return_value): Update.
5085         * arch-utils.c (legacy_extract_return_value): Update.
5086         * frv-tdep.c (frv_gdbarch_init): Update.
5087         * cris-tdep.c (cris_gdbarch_init): Update.
5088         * d10v-tdep.c (d10v_gdbarch_init): Update.
5089         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5090         * m68k-tdep.c (m68k_gdbarch_init): Update.
5091         * mcore-tdep.c (mcore_gdbarch_init): Update.
5092         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5093         * s390-tdep.c (s390_gdbarch_init): Update.
5094         * sparc-tdep.c (sparc_gdbarch_init): Update.
5095         * sh-tdep.c (sh_gdbarch_init): Update.
5096         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5097         * v850-tdep.c (v850_gdbarch_init): Update.
5098         * avr-tdep.c (avr_gdbarch_init): Update.
5099         * ia64-tdep.c (ia64_gdbarch_init): Update.
5100         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5101         * vax-tdep.c (vax_gdbarch_init): Update.
5102         * alpha-tdep.c (alpha_gdbarch_init): Update.
5103         * arm-tdep.c (arm_gdbarch_init): Update.
5104         * mips-tdep.c (mips_gdbarch_init): Update.
5105         * i386-tdep.c (i386_gdbarch_init): Update.
5106
5107 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5108
5109         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5110         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5111
5112 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5113
5114         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5115         problems.
5116
5117 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5118
5119         * infrun.c (handle_inferior_event): Move a comment outside of a
5120         function call, in order to avoid indent reformatting this part
5121         of the code in an unreadable way.
5122
5123 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5124
5125         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5126         when breakpoints fail. Move general breakpoint error messages to
5127         insert_breakpoints.  
5128         * breakpoint.c (insert_breakpoints): Change warnings when
5129         breakpoints are nto inserted to specify the type. Remove call to
5130         memory_error when hardware breakpoints can't be inserted. Remove
5131         multiple calls to warning so all messages are sent to the user at
5132         once.
5133         (delete_breakpoints): Make insert error messsages more explicit.
5134
5135 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5136
5137         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5138         gdbserver/ChangeLog.
5139
5140 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5141
5142         * i386-tdep.c: Include "objfiles.h".
5143         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5144         skip_trampoline_code.
5145         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5146         (CPLUS_MARKER): Define to '.'.
5147
5148         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5149         member.
5150         (linux_corefile_thread_callback): Increase args->num_notes.
5151         (linux_make_note_section): Initialize thread_args.num_notes, and
5152         use it to determine whether notes for any threads were created.
5153
5154 2002-08-23  Donn Terry  <donnte@microsoft.com>
5155
5156         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5157         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5158         and PCUNKILL.
5159         (write_with_trace): Conditionalize out the switch branch handling
5160         PCSHOLD if the corresponding macro is not defined. Likewise for
5161         PRSABORT and PRSTOP.
5162         This change will be needed by the Interix port.
5163
5164 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5165
5166         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5167         write_register wherever possible instead of manipulating the
5168         register bytes directly.
5169         Assign VALUE_CONTENTS to a variable and use that.
5170         The GPR numbers are now dependent on the architecture.
5171         
5172 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5173
5174         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5175         ev_offset fields.
5176         (skip_prologue): Add support for BookE/e500 instructions.
5177         (e500_extract_return_value): New function.
5178         (frame_get_saved_regs): Add support for saving ev registers and
5179         pseudo gpr's.
5180         (e500_store_return_value): New function.
5181         (rs6000_gdbarch_init): Move up default intializations of
5182         deprecated_extract_return_value and store_return_value.  Overwrite
5183         init of store_return_value with e500 specific version.
5184         Set extract_return_value for e500.
5185         
5186 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5187
5188         * blockframe.c (generic_call_dummy_register_unwind): Use
5189         regcache_cooked_read to catch cases in which the variable is
5190         stored in a pseudo register.
5191
5192 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5193
5194         * NEWS: Mention that the i960 has been made obsolete.
5195         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5196         i960-tdep.c
5197         (remote-nrom.o): Obsolete target.
5198         (remote-nindy.o, i960-tdep.o): Ditto.
5199         * remote-nrom.c: Make file obsolete.
5200         * remote-nindy.c, remote-vx960.c: Ditto.
5201         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5202         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5203         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5204         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5205         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5206         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5207         i960-*-vxworks* obsolete.
5208         * MAINTAINERS: Note that the i960 is obsolete.
5209
5210 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5211
5212         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5213         detach to allow reinitialization.
5214
5215 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5216
5217         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5218         attempt).
5219
5220 2002-08-22  Jim Blandy  <jimb@redhat.com>
5221
5222         * coffread.c (coff_symfile_read): Don't try to read the line
5223         number table from disk if the image file doesn't have a symbol
5224         table; we'll never actually look at the info anyway, and Windows
5225         ships DLL's with bogus file offsets for the line number data.
5226
5227 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5228
5229         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5230         an e500 executable.
5231
5232 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5233
5234         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5235         (MSYMBOL_SIZE): Replace macro with function.
5236         (DEFAULT_MIPS_TYPE): Delete unused macro.
5237         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5238         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5239
5240 2002-08-21  Jim Blandy  <jimb@redhat.com>
5241
5242         * valops.c (value_cast): Simplify and correct logic for doing a
5243         static cast from a pointer to a base class to a pointer to a
5244         derived class.
5245
5246 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5247
5248         * infcmd.c (default_print_registers_info): Replace
5249         do_registers_info.
5250         (registers_info): Use gdbarch_print_registers_info instead of
5251         DO_REGISTERS_INFO.
5252         * inferior.h (default_print_registers_info): Replace
5253         do_registers_info.
5254         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5255         (DO_REGISTERS_INFO): Change to a predicate function.
5256         * gdbarch.h, gdbarch.c: Regenerate.
5257         
5258 2002-08-21  Keith Seitz  <keiths@redhat.com>
5259
5260         * gdb-events.sh: Add target-changed event.
5261         * gdb-events.c: Regenerated.
5262         * gdb-events.c: Regenerated.
5263         * valops.c (value_assign): Add target-changed event notification
5264         to inlval_register, lval_memory, and lval_reg_frame_relative.
5265
5266 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5267
5268         * NEWS: Add an entry regarding the improvement of the next/step
5269         operation on Alpha Tru64 multi-processor machines.
5270
5271 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5272
5273         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5274         directores.
5275         * Makefile.in: Update all _h macro definitions.
5276         * Makefile.in (install-gdbtk): Move to install section.
5277         (rdi-share/libangsd.a): Move to end of file.
5278
5279 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5280
5281         * frame.c (frame_register_unwind): When a register, set addrp to
5282         the register's byte.
5283
5284 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5285
5286         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5287         used locally, so move them from the target machine header to here.
5288         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5289         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5290         Make static.
5291         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5292
5293 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5294
5295         * NEWS: Mention that the Apollo line was made obsolete.
5296         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5297         m68*-hp-hpux* obsolete.
5298         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5299         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5300         * buildsym.c (make_blockvector): Make static.
5301         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5302         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5303         (ALLDEPFILES): Remove dstread.c.
5304         (dstread.o): Obsolete make rule.
5305         * dstread.c: Makefile obsolete.
5306         * dst.h: Ditto.
5307         * config/m68k/hp300hpux.mt: Ditto.
5308         * config/m68k/hp300hpux.mh: Ditto.
5309         * config/m68k/hp300bsd.mt: Ditto.
5310         * config/m68k/hp300bsd.mh: Ditto.
5311         * config/m68k/apollo68b.mt: Ditto.
5312         * config/m68k/apollo68v.mh: Ditto.
5313         * config/m68k/apollo68b.mh: Ditto.
5314
5315 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5316
5317         * mips-tdep.c (mips_in_return_stub): Make static.
5318         (mips_gdbarch_init): Set in_solib_return_trampoline.
5319         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5320
5321 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5322
5323         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5324         * gdbarch.c, gdbarch.h: Regenerate.
5325         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5326         Add.
5327         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5328
5329 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5330
5331         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5332         (mips_gdbarch_init): Set skip_trampoline_code, 
5333         in_solib_call_trampoline.
5334         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5335         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5336
5337 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5338
5339         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5340
5341         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5342         vector type for ev registers.
5343         (e500_pseudo_register_read): New function.
5344         (e500_pseudo_register_write): New function.
5345         (e500_dwarf2_reg_to_regnum): New function.
5346         (PPC_UISA_NOFP_SPRS): New macro.
5347         (PPC_EV_REGS): New macro.
5348         (PPC_GPRS_PSEUDO_REGS): New macro.
5349         (registers_e500): New register set for e500.
5350         (variants): Add e500 variant.
5351         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5352         before setting architectural dependent variations.  Initialize ev
5353         registers numbers.  Add case for e500 architecture.  Set the
5354         number of pseudo registers.
5355
5356 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5357
5358         * rs6000-tdep.c: Clean up comments.
5359
5360 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5361
5362         * h8300-tdep.c: Re-indent file.
5363
5364 2002-08-20  Jim Blandy  <jimb@redhat.com>
5365
5366         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5367         default for this.
5368
5369 2002-08-20  Keith Seitz  <keiths@redhat.com>
5370
5371         * breakpoints.c (watch_command_1): Use internal breakpoint
5372         when setting a watchpoint_scope breakpoint.
5373
5374 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5375
5376         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5377         (build_builtin_type_vec64i): Ditto.
5378         (build_builtin_type_vec128): Ditto.
5379         (build_builtin_type_vec128i): Ditto.
5380
5381 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5382
5383         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5384         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5385         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5386         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5387         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5388         CALL_DUMMY_ADDRESS): Delete.
5389         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5390         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5391         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5392         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5393         push_return_address.
5394         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5395         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5396         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5397         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5398         mips_n32n64_push_arguments, mips_push_return_address,
5399         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5400         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5401
5402 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5403
5404         * mips-tdep.c (mips_frame_num_args): New function.
5405         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5406         frame_saved_pc, frame_args_address, frame_locals_address, 
5407         frame_num_args, and frame_args_skip.
5408         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5409         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5410         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5411         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5412
5413 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5414
5415         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5416         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5417         * mips-tdep.c (mips_store_struct_return): New function.
5418         (mips_extract_struct_value_address): New function.
5419         (mips_gdbarch_init): Set store_struct_return and
5420         extract_struct_value_address.
5421
5422 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5423
5424         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5425         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5426         (read_file_scope): Check that line_header is nonzero before
5427         decoding macro information.
5428
5429 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5430
5431         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5432         flag the general-purpose registers as floating-point on targets
5433         that don't support the floating-point registers.
5434
5435 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5436
5437         * rs6000-tdep.c (altivec_register_p): Delete.
5438         (rs6000_do_altivec_registers): Delete.
5439         (rs6000_altivec_registers_info): Delete.
5440         (rs6000_do_registers_info): Delete.
5441         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5442         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5443
5444 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5445
5446         * infcmd.c (do_registers_info): Print vector registers in hex
5447         format only.
5448         (print_vector_info): Check that printing registers
5449         makes sense.
5450         (print_float_info): Ditto.
5451
5452 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5453
5454         * mips-tdep.c (mips_gdbarch_init): Update.
5455         (mips_o32_extract_return_value): Rewrite.
5456         (mips_o32_store_return_value): Rewrite.
5457         (mips_o32_xfer_return_value): New function.
5458         (mips_xfer_register): Tweak debug print message.  Allow for
5459         buf_offset when dumping the value transfered.
5460
5461 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5462
5463         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5464         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5465         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5466         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5467         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5468
5469 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5470
5471         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5472
5473 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5474
5475         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5476         register.
5477         (P): New macro to define a register as a pseudo register.
5478         (R, R4, R8, R16, FR32, R64, R0): Updated.
5479         (struct variant): Add new fields for number of pseudo registers
5480         and number of total registers.
5481         (tot_num_registers): New macro replacing....
5482         (num_registers): ...deleted macro.
5483         (num_registers): New function.
5484         (num_pseudo_registers): New function.
5485         (variants): Update all variants to intialize new fields correctly.
5486         Postpone initialization of number of pseudo regs and real regs.
5487         (init_variants): New function.
5488         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5489         registers offsets.
5490
5491 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5492
5493         * valops.c (search_struct_field): Change error message to treat
5494         return value of 0 from value_static_field as meaning that field is
5495         optimized out.
5496         (value_struct_elt_for_reference): Ditto.
5497         * values.c (value_static_field): Treat an unresolved location the
5498         same as a nonexistent symbol.  Fix PR gdb/635.
5499         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5500         enclosed.  Fix PR gdb/574.
5501         * MAINTAINERS: Add self to Write After Approval list.
5502
5503 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5504
5505         * mips-tdep.c (mips_xfer_register): New function.
5506         (mips_n32n64_extract_return_value): Rewrite.
5507         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5508         instead of deprecated_extract_return_value.
5509
5510 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5511
5512         * rs6000-tdep.c (TDEP): Delete macro.
5513         (branch_dest): Replace use of TDEP macro with its body.
5514         (rs6000_pop_frame): Ditto.
5515         (rs6000_push_arguments): Ditto.
5516         (rs6000_skip_trampoline_code): Ditto.
5517         (rs6000_frame_saved_pc): Ditto.
5518         (rs6000_frame_chain): Ditto.
5519         (rs6000_register_name): Ditto.
5520         (rs6000_register_byte): Ditto.
5521         (rs6000_register_raw_size): Ditto.
5522         (rs6000_register_virtual_type): Ditto.
5523         (rs6000_register_convertible): Ditto.
5524         (rs6000_convert_from_func_ptr_addr): Ditto.
5525
5526 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5527
5528         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5529         conditionally.
5530         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5531         MIPS_LINUX_JB_ELEMENT_SIZE.
5532         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5533         for MAX_REGISTER_RAW_SIZE arrays.
5534         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5535         MIPS_LINUX_JB_ELEMENT_SIZE.
5536
5537 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5538
5539         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5540
5541 2002-08-19  Aidan Skinner <aidan@velvet.net>
5542
5543         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5544         ada-valprint.c ada-tasks.c.
5545         (YYFILES): Add ada-exp.y.
5546         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5547         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5548         (ada-exp.tab.o): New target.
5549                 
5550 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5551
5552         * regcache.c (regcache_xfer_part): New function.
5553         (regcache_raw_read_part): New function.
5554         (regcache_raw_write_part): New function.
5555         (regcache_cooked_read_part): New function.
5556         (regcache_cooked_write_part): New function.
5557         * regcache.h (regcache_raw_read_part): Declare.
5558         (regcache_raw_write_part): Declare.
5559         (regcache_cooked_read_part): Declare.
5560         (regcache_cooked_write_part): Declare.
5561
5562 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5563
5564         * remote.c (remote_open_1): Add async_p.
5565         (remote_async_open_1): Delete.
5566         (open_remote_target): Delete.
5567         (remote_open, extended_remote_open): Update calls to remote_open_1.
5568         (remote_async_open, extended_remote_async_open): Call
5569         remote_open_1 instead of remote_async_open_1.
5570
5571 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5572
5573         * blockframe.c: Fix a few coding standard violations.
5574
5575 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5576
5577         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5578         here from ...
5579         * config/i386/tm-i386sco5.h: ... here.  File removed.
5580         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5581
5582         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5583         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5584         (TM_FILE): Set to tm-i386.h.
5585         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5586         * config/i386/tm-i386v.h: Remove file.
5587         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5588         instead of "i386/tm-i386v.h".
5589         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5590         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5591         "i386/tm-i386v.h".
5592         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5593         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5594         "i386/tm-i386.h".
5595
5596 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5597
5598         * config/i386/nm-i386v.h: Add protection against
5599         multiple-inclusion.
5600         (i386_register_u_addr): Remove prototype.
5601         (register_u_addr): New prototype.
5602         (REGISTER_U_ADDR): Redefine accordingly.
5603         * i386v-nat.c: Improve several comments.
5604         (i386_register_u_addr): Change signature and rename to
5605         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5606         ubase variable.
5607
5608 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5609
5610         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5611         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5612         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5613         deprecated_extract_return_value.
5614         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5615         rename mips_o32o64_push_arguments.
5616         (mips_gdbarch_init): Update.
5617         (mips_extract_return_value): Delete.
5618         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5619         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5620         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5621         (mips_n32n64_extract_return_value): Clone
5622         mips_extract_return_value.
5623         (mips_store_return_value): Delete.
5624         (mips_o32_store_return_value): Clone mips_store_return_value.
5625         (mips_o64_store_return_value): Clone mips_store_return_value.
5626         (mips_eabi_store_return_value): Clone mips_store_return_value.
5627         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5628
5629 2002-08-18  Aidan Skinner <aidan@velvet.net>
5630
5631         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5632         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5633                 
5634 2002-08-18  Aidan Skinner <aidan@velvet.net>
5635
5636         * ada-lang.c: Run through gdb_indent.sh.
5637         * ada-lang.h: Run through gdb_indent.sh.
5638         * ada-tasks.c: Run through gdb_indent.sh.
5639         * ada-typeprint.c: Run through gdb_indent.sh.
5640         * ada-valprint.c: Run through gdb_indent.sh.
5641
5642 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5643
5644         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5645         ABI.
5646
5647 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5648
5649         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5650
5651         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5652         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5653
5654         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5655         write_register_gen instead of write_register_bytes.
5656
5657         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5658         i[3456]-*-osf1mk* configurations have been made obsolete.
5659         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5660         i[3456]86-*-osf1mk* hosts obsolete.
5661         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5662         targets obsolete.
5663         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5664         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5665         config/i386/i386m3.mt, config/i386/nm-m3.h,
5666         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5667         config/i386/i386mk.mh, config/i386/i386mk.mt,
5668         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5669         obsolete.
5670         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5671         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5672         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5673
5674 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5675
5676         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5677         (hppa_value_returned_from_stack): Declare.
5678         (hppa_extract_return_value): Declare.
5679         * config/pa/hppa.mt: New file.
5680         * configure.tgt: Recognize hppa*-*-*.
5681         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5682
5683 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5684
5685         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5686         comment.
5687
5688 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5689
5690         * top.c (gdb_rl_operate_and_get_next): Make sure
5691         operate-and-get-next functions correctly even when the history
5692         list is completely filled.
5693
5694 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5695
5696         * MAINTAINERS (Target Instruction Set Architectures): Rename
5697         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5698         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5699         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5700         already listed under Host/Native.
5701
5702         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5703         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5704         mips*-*-*.
5705
5706 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5707
5708         * config/ia64/ia64.mt: New file.
5709         * config/alpha/alpha.mt: New file.
5710         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5711         ia64-linux-gnu.  Mention that ia64-elf is broken.
5712         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5713
5714 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5715
5716         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5717         generic_func_frame_valid instead of func_frame_valid.
5718
5719 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5720
5721         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5722         procfs appears to be broken when debugging on multi-processor
5723         machines. So enable software single stepping in order to avoid
5724         using the procfs interface to do next/step operations, using
5725         internal breakpoints instead.
5726
5727         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5728         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5729         make this pc address equal to the value it would have if the
5730         system stepping capability was used. Also set a new flag used
5731         to ensure that we don't readjust the PC one more time later.
5732
5733         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5734         address by DECR_PC_AFTER_BREAK when software single step is
5735         in use for this architecture, as this has already been taken
5736         care of in handle_inferior_event().
5737
5738 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5739
5740         * infrun.c (handle_inferior_event): Minor reformatting, to make
5741         a rather long condition expression easier to read.
5742
5743 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5744
5745         * Makefile.in (gdbtk.o): Move to end of file.
5746         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5747         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5748         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5749         (gdbtk-wrapper.o, gdbres.o): Ditto.
5750
5751 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5752
5753         * Makefile.in (copying.o): Separate out compile rule.
5754         (hpux-thread.o, procfs.o, signals.o): Ditto.
5755         (v850ice.o, z8k-tdep.o): Ditto.
5756         (tui-file.o): Move to TUI section.
5757         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5758         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5759
5760 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5761
5762         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5763         skip_trampoline_code, for better namespace-proofing.   
5764
5765         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5766
5767 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5768
5769         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5770
5771 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5772
5773         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5774         signal, check whether we hit a breakpoint before checking for a
5775         single step breakpoint. Otherwise, GDB fails to notice that a
5776         breakpoint has been hit when stepping onto a breakpoint.
5777
5778 2002-08-16  Keith Seitz  <keiths@redhat.com>
5779
5780         * gdb-events.sh (clear_gdb_event_hooks): New function.
5781         * gdb-events.c: Regenerate.
5782         * gdb-events.h: Regenerate.
5783
5784 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5785
5786         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5787         not_a_sw_breakpoint.
5788         * breakpoint.h (bpstat_stop_status): Add parameter names.
5789
5790 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5791
5792         * remote.c (remote_insert_hw_breakpoint)
5793         (remote_remove_hw_breakpoint): Fix calculation of length field
5794         for Z-packet.
5795
5796 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5797
5798         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5799         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5800         (supply_fpregset): Ditto.
5801         
5802         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5803         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5804         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5805         (TARGET_READ_SP): Delete.
5806         (DO_REGISTERS_INFO): Delete.
5807         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5808         Delete.
5809         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5810         from macros to functions.
5811
5812         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5813         (mips_register_convertible, mips_register_convert_to_virtual,
5814         mips_register_convert_to_raw): Make static.
5815         (mips_read_sp): New function.
5816         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5817         (mips_do_registers_info): Make static.
5818         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5819         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5820         (mips_register_convert_from_type, mips_register_convert_to_type):
5821         New functions.
5822         (mips_gdbarch_init): Set up function_start_offset, 
5823         register_virtual_size, pc_in_sigtramp.
5824
5825 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5826
5827         * infcmd.c (vector_info): New function.
5828         (_initialize_infcmd): Add command "info vector".
5829         (print_vector_info): New function.
5830
5831         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5832         * gdbarch.h, gdbarch.c: Regenerate.
5833
5834 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5835
5836         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5837         ``print_all''.  Only print vector registers when ``print_all''.
5838
5839 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5840
5841         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5842         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5843
5844         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5845         Add `args' parameter.
5846         * gdbarch.h, gdbarch.c: Regenerate.
5847         
5848         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5849         
5850         * infcmd.c (float_info): Call print_float_info.
5851         (print_float_info): New function.  By default, print the
5852         floating-point registers.
5853
5854         * arch-utils.h (default_print_float_info): Delete declaration.
5855         * arch-utils.c (default_print_float_info): Delete function.
5856         
5857 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5858
5859         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5860         out define.
5861
5862         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5863         FRAME.
5864
5865         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5866         * configure.host: Make i[3456]86-*-aix host obsolete.
5867         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5868         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5869         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5870         config/i386/xm-i386aix.h: Make files obsolete.
5871         * i386aix-nat.c: Make file obsolete.
5872         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5873         (i386aix-nat.o): Make target obsolete.
5874
5875         * config/i386/nm-gnu.h: Removed.
5876         * config/i386/nm-i386gnu.h: New file.
5877         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5878         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5879         Moved here from ...
5880         * config/i386/tm-i386gnu.h: ... here.  Removed.
5881         * config/i386/xm-i386gnu.h: Removed.
5882         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5883         (NAT_FILE): Set to nm-i386gnu.h.
5884         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5885         * i386-tdep.c: New file.
5886         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5887         (i386gnu-tdep.o): Specify dependencies.
5888
5889 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5890
5891         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5892         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5893         Adjust a few comments to reflect reality a bit closer.
5894         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5895         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5896         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5897         target_insert_watchpoint, target_remove_watchpoint):
5898         Move defines to ...
5899         * config/i386/nm-i386sco5.h: ... here.
5900         (kernel_u_size): Add prototype.  Improve a few comments and add
5901         protection against multiple inclusion.
5902         
5903         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5904         out define.
5905
5906         * uw-thread.c (SP_ARG0): Define if not already defined.
5907         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5908
5909         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5910
5911         * config/i386/tm-i386.h: Don't include "regcache.h".
5912
5913         * i387-tdep.h (i387_print_float_info): New prototype.
5914         * i387-tdep.c (print_i387_value, print_i387_ext,
5915         print_i387_status_word, print_i387_control_word): Add `struct
5916         ui_file *' argument and use it for output.
5917         (i387_print_float_info): Renamed from i387_float_info.  Add
5918         `struct gdbarch *' and `struct ui_file *' arguments and use the
5919         latter for output.
5920         * i386-tdep.c: Include "i387-tdep.h".
5921         (i386_gdbarch_init): Set print_float_info.
5922         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5923         (FLOAT_INFO): Remove define.
5924
5925 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5926
5927         * mips-tdep.c (mips_push_arguments): Rename to
5928         mips_eabi_push_arguments, and tune for EABI.
5929         (MIPS_REGS_HAVE_HOME_P): Delete.
5930         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5931         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5932         Delete references to mips_regs_have_home_p.
5933
5934 2002-08-14  Keith Seitz  <keiths@redhat.com>
5935
5936         * Makefile.in (install-gdbtk): Create insight plugin directory.
5937         Install plugins.tcl file.
5938
5939 2002-08-14  Keith Seitz  <keiths@redhat.com>
5940
5941         * configure.in: Move SUBDIRS to near top of the file so that
5942         --enable options may add things to it.
5943         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5944         * configure: Regenerate.
5945
5946 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5947
5948         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5949         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5950         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5951
5952 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5953
5954         * vax-tdep.c (vax_get_saved_register): Delete function.
5955         (vax_gdbarch_init): Update.
5956         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5957         (ns32k_gdbarch_init): Update.
5958         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5959         (alpha_gdbarch_init): Update.
5960
5961 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5962
5963         * regcache.c (init_regcache_descr): Overallocate the
5964         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5965         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5966         nr_raw_registers.
5967         (set_register_cached): Add range checking assertions.  Use
5968         current_regcache.
5969
5970 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5971
5972         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5973         numbers for MMX registers.
5974
5975 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5976
5977         * i386-tdep.c (i386_gdbarch_init): Use
5978         generic_unwind_get_saved_register.
5979
5980 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5981
5982         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5983         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5984         target vector.
5985         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5986         Delete.  Add comment regarding this now-deleted target method.
5987
5988 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5989
5990         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5991         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5992         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5993         real PC and the page number (if it's within the memory bank window).
5994         (m68hc11_pseudo_register_write): Likewise when saving.
5995         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5996         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5997         (m68hc11_register_raw_size): And use 32-bit for it.
5998         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5999         16K memory bank is used by the prog; also use the virtual pc.
6000
6001 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6002
6003         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6004         (m68hc11_gdbarch_init): Install it in gdbarch.
6005         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6006         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6007         (MSYMBOL_SIZE): New for documentation.
6008         (insn_return_kind): Enum to specify how a function returns.
6009         (frame_extra_info): Cleanup and record the return mode.
6010         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6011         register in address computation.
6012         (m68hc11_get_return_insn): New to obtain the return instruction used
6013         by the function.
6014         (m68hc11_frame_init_saved_regs): Take into account the return
6015         instruction used by the function for far and interrupt functions.
6016         (m68hc11_init_extra_frame_info): Take into account page register.
6017         (m68hc11_frame_args_address): Adjust according to the return mode.
6018         (show_regs): Print page register only when it's used.
6019
6020 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6021
6022         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6023         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6024         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6025         registers.
6026         (m68hc11_register_raw_size): Likewise.
6027
6028 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6029
6030         * i386-tdep.c (i386_register_name): Handle mmx registers.
6031         (mmx_regnum_p): New function.
6032         (i386_mmx_names): New array.
6033         (mmx_num_regs): New variable.
6034         (i386_pseudo_register_read): New function.
6035         (i386_pseudo_register_write): New function.
6036         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6037
6038         * regcache.c (regcache_raw_read_unsigned): New function.
6039         (regcache_raw_read_signed): New function.
6040         * regcache.h (regcache_raw_read_unsigned): Declare.
6041         (regcache_raw_read_signed): Declare.
6042
6043 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6044
6045         * regcache.c (regcache_raw_read_as_address): Delete function.
6046         (regcache_cooked_read_signed): New function.
6047         (regcache_cooked_read_unsigned): New function.
6048         * regcache.h (regcache_cooked_read_signed): Declare.
6049         (regcache_cooked_read_unsigned): Declare.
6050         (regcache_raw_read_as_address): Delete declaration.
6051
6052         * blockframe.c (generic_read_register_dummy): Use
6053         regcache_cooked_read_unsigned.
6054         * i386-tdep.c (i386_extract_struct_value_address): Use
6055         regcache_cooked_read_unsigned.
6056
6057 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6058
6059         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6060         double sizes according to ELF ABI flags.
6061         (gdbarch_tdep): Record elf_flags.
6062
6063 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6064
6065         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6066         (m6812_prolog): They can appear in 68HC12 function prologue.
6067         (m68hc11_frame_chain): Cleanup.
6068
6069 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6070
6071         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6072         declarations.
6073         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6074         (i386_linux_register_raw_size): Delete function.
6075         (i386_linux_init_abi): Update.
6076         * i386-tdep.c (i386_register_raw_size): Delete function.
6077         (i386_register_byte): Delete function.
6078         (i386_gdbarch_init): Update.
6079         (i386_register_size): Delete array.
6080         (i386_register_offset): Delete array.
6081
6082         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6083         (REGISTER_RAW_SIZE): Delete macro.
6084         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6085         (REGISTER_BYTE): Delete macro.
6086
6087 2002-08-11  Aidan Skinner <aidan@velvet.net>
6088
6089         * ada-lang.c (ada_lookup_partial_symbol)
6090         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6091         prototype names so that grep ^func works properly.
6092
6093         * ada-lang.c (ada_array_element_type)
6094         (ada_lookup_partial_symbol): Fix typos in parameter list.
6095
6096         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6097         Fix prototype names so that grep ^func works properly.
6098         
6099 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6100             Elena Zannoni  <ezannoni@redhat.com>
6101             Martin M. Hunt  <hunt@redhat.com>
6102
6103         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6104         (build_builtin_type_vec128i): Set the vector bit.
6105         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6106         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6107         (build_builtin_type_vec64): New function.
6108         (build_builtin_type_vec64i): New function.
6109         (build_gdbtypes): Initialize builtin_type_vec64 and
6110         builtin_type_vec64i.
6111
6112 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6113
6114         * regcache.c (regcache_dump): Compare the register offset
6115         with REGISTER_BYTE.
6116         * arch-utils.c (generic_register_byte): New function.
6117         * arch-utils.h (generic_register_byte): Declare.
6118         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6119         * gdbarch.h, gdbarch.c: Regenerate.
6120
6121 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6122
6123         * regcache.c: Include "gdbcmd.h"
6124         (_initialize_regcache): Add commands "maintenance print
6125         registers", "maintenance print raw-registers" and "maintenance
6126         print cooked-registers".
6127         (enum regcache_dump_what): Define.
6128         (dump_endian_bytes): New function.
6129         (regcache_dump): New function.
6130         (regcache_print): New function.
6131         (maintenance_print_registers): New function.
6132         (maintenance_print_raw_registers): New function.
6133         (maintenance_print_cooked_registers): New function.
6134         * Makefile.in (regcache.o): Update dependencies.
6135
6136 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6137
6138         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6139         (mips_push_arguments): Correct some comments.  Use paddr_nz
6140         for printing addresses in debug output.  Replace static
6141         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6142         (mips_n32n64_push_arguments): New function, cloned from
6143         mips_push_arguments and tuned for the n32/n64 ABI.
6144         (mips_push_register): Buffer needs dynamic allocation.
6145         (mips_print_register): Ditto.
6146         (do_gp_register_row): Ditto.
6147         (mips_store_return_value): Ditto.
6148         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6149
6150 2002-08-09  Don Howard  <dhoward@redhat.com>
6151
6152         * memattr.c (mem_info_command): Print special case of upper bound
6153         as max CORE_ADDR + 1.
6154
6155 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6156
6157         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6158         returns structs by ref if they're too big to fit in two registers.
6159
6160 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6161
6162         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6163         saved regs value.
6164         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6165         mips_find_saved_regs().
6166         (mips_pop_frame): Likewise.
6167
6168 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6169
6170         * blockframe.c (frame_saved_regs_register_unwind): Revise
6171         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6172         frames are in use.
6173
6174 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6175         
6176         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6177         T-packets; the 'a' is not taken as a register number.
6178         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6179         (remote_stopped_data_address): New functions; add to target
6180         vector.
6181         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6182         prototypes to match other implementations of this
6183         function. replace integer argument with pointer -- the length
6184         field in the Z-packet is the length of what is pointed to or 1 if
6185         pointer is null. Add to target vector.
6186         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6187         target vector.
6188
6189         From Mark Salter:
6190         * remote.c (remote_wait): Add support to extract optional
6191         watchpoint information from T-packet. Ignore unrecognized
6192         optional info in T-packet.
6193         (remote_async_wait): Ditto.
6194
6195 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6196
6197         * cli/cli-dump.c: Change fopen modes to use binary open modes
6198         as defined in include/fopen-bin.h throughout.
6199
6200 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6201
6202         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6203
6204 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6205
6206         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6207         assertion failure by returning early after a warning.
6208
6209 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6210
6211         * mips-tdep.c (mips_find_saved_regs): Make static.
6212         (mips_frame_init_saved_regs): New function.
6213         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6214         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6215         (mips_find_saved_regs): Delete declaration.
6216
6217 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6218
6219         * remote.c (remote_wait, remote_async_wait): Change
6220         thread_num from int to ULONGEST.
6221         (unpack_varlen_hex): Change result parameter from
6222         int * to ULONGEST *.
6223
6224 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6225
6226         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6227         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6228         powerpc*-*-*.
6229         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6230
6231 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6232
6233         * gcore.c (override_derive_stack_segment): Delete variable.
6234         (preempt_derive_stack_segment): Delete function.
6235         (derive_stack_segment): Delete function.
6236         (default_derive_stack_segment): Renamed to derive_stack_segment.
6237         (override_derive_heap_segment): Delete variable.
6238         (preempt_derive_heap_segment): Delete function.
6239         (derive_heap_segment): Delete function.
6240         (default_derive_heap_segment): Rename to derive_heap_segment.
6241
6242 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6243
6244         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6245         * mips-tdep.c (mips_EABI_use_struct_convention, 
6246         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6247         New functions.  (mips_use_struct_convention): Delete.
6248         (mips_gdbarch_init): set use_gdbarch_convention.
6249
6250 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6251
6252         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6253         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6254         mips_o32_reg_struct_has_addr): New functions.
6255         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6256
6257 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6258
6259         * regcache.c (pseudo_register): Delete function.
6260         (fetch_register): Delete function.
6261         (store_register): Delete function.
6262         (regcache_raw_read, legacy_read_register_gen): Use
6263         target_fetch_registers instead of fetch_register.
6264         (legacy_write_register_gen, regcache_raw_write): Use
6265         target_store_register instead of store_register.
6266         (write_register_bytes): Ditto.
6267
6268         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6269         (STORE_PSEUDO_REGISTER): Delete.
6270         * gdbarch.h, gdbarch.c: Regenerate.
6271
6272 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6273
6274         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6275         write dump file binary.
6276
6277 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6278
6279         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6280         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6281         (mips_gdbarch_init): Set N32 target to be mips64.
6282
6283 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6284
6285         * frame.c (find_saved_register): Break out of loop once saved
6286         register address is found.  Don't mention sparc in loop comment
6287         anymore.
6288
6289 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6290
6291         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6292         mips_default_saved_regsize to 8.
6293
6294 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6295
6296         * gcore.c: Do not include <sys/procfs.h>.
6297         * Makefile.in (gcore.o): Update dependencies.
6298
6299 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6300
6301         * configure.tgt: Make arc-*-* obsolete.
6302         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6303         * MAINTAINERS: Make arc-elf obsolete.
6304         * arc-tdep.c: Make file obsolete.
6305         * config/arc/arc.mt: Ditto.
6306         * config/arc/tm-arc.h: Ditto.
6307
6308 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6309
6310         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6311
6312 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6313
6314         * mcore-tdep.c (mcore_gdbarch_init): Use
6315         generic_unwind_get_saved_register instead of
6316         generic_get_saved_register.
6317         * v850-tdep.c (v850_gdbarch_init): Ditto.
6318         * frv-tdep.c (frv_gdbarch_init): Ditto.
6319         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6320         * s390-tdep.c (s390_gdbarch_init): Ditto.
6321         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6322         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6323         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6324
6325 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6326
6327         * objfiles.h: Add missing #include "symfile.h"
6328
6329         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6330
6331 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6332
6333         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6334         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6335         of FIELD_BITSIZE.
6336
6337 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6338
6339         * NEWS: Cleanup and nitpick.
6340
6341 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6342
6343         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6344
6345 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6346
6347         * Makefile.in (gdbtk-bp.o): Update dependencies.
6348         (gdbtk-register.o): Ditto.
6349         (gdbtk-varobj.o): Ditto.
6350
6351 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6352
6353         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6354         m68hc11_fetch_pseudo_register.
6355         (m68hc11_pseudo_register_write): Replace
6356         m68hc11_store_pseudo_register.
6357         (m68hc11_gdbarch_init): Update.
6358
6359 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6360
6361         * gdbarch.sh: Include "gdb_string.h".
6362         * gdbarch.c: Regenerate.
6363
6364         * regcache.c: Include "gdb_string.h".
6365         * ax-general.c: Ditto.
6366         * varobj.c: Ditto.
6367         * std-regs.c: Ditto.
6368         * fbsd-proc.c: Ditto.
6369         * thread.c: Ditto.
6370
6371         * Makefile.in (regcache.o): Update dependencies.
6372         (thread.o, gdbarch.o): Ditto.
6373         (ax-general.o, gdbarch.o): Ditto.
6374         (varobj.o, std-regs.o): Ditto.
6375         (fbsd-proc.o): Specify dependencies.
6376
6377 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6378
6379         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6380         regnum.
6381         (regcache_cooked_write): Ditto.
6382
6383 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6384
6385         * regcache.c (regcache_cooked_read): New function.
6386         (regcache_cooked_write): New function.
6387         (read_register_gen): Rewrite using regcache_cooked_read.
6388         (write_register_gen): Rewrite using regcache_cooked_write.
6389
6390         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6391         Declare.
6392
6393 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6394
6395         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6396         Replace the architecture methods register_read and register_write.
6397         * gdbarch.h, gdbarch.c: Regenerate.
6398         * regcache.c (init_regcache_descr): Update.
6399         (read_register_gen): Update.
6400         (write_register_gen): Update.
6401         (supply_register): Update comment.
6402
6403         * sh-tdep.c (sh_gdbarch_init): Update.
6404         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6405         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6406         pointer.  Update code.
6407         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6408         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6409         void pointer.  Update code.
6410         (sh64_register_write): Delete.
6411         (sh4_register_read): Delete.
6412         (sh64_register_read): Delete.
6413         (sh4_register_write): Delete.
6414         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6415         void pointer, `to' parameter a void pointer.
6416         (sh_sh64_register_convert_to_raw): Ditto.
6417
6418 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6419
6420         * mips-tdep.c (mips_register_virtual_type): Use architecture
6421         invariant return values.
6422
6423 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6424
6425         * linux-proc.c: Include "gdb_string.h".
6426         * Makefile.in (linux-proc.o): Update dependency list.
6427
6428 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6429
6430         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6431         comment.
6432
6433 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6434
6435         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6436         to_insert_watchpoint, to_remove_watchpoint,
6437         to_stopped_by_watchpoint, to_stopped_data_address,
6438         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6439         target vecctor. Define their corresponding macros so they call
6440         them.
6441         
6442         * target.c: Add default and debug versions of for
6443         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6444         to_insert_watchpoint, to_remove_watchpoint,
6445         to_stopped_by_watchpoint, to_stopped_data_address,
6446         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6447
6448 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6449
6450         * mips-tdep.c (mips_register_virtual_type): New function.
6451         (mips_gdbarch_init): Register mips_register_virtual_type()
6452         with gdbarch machinery.
6453         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6454         this file instead of tm-bigmips.h.
6455         (MIPS_REGSIZE): Delete this macro.
6456         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6457         multiarch version in mips-tdep.c will be found.
6458
6459 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6460
6461         * NEWS: Menion that CHILL has been made obsolete.
6462
6463         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6464         * stabsread.c (read_range_type): Ditto.
6465         * gdbtypes.h: Ditto.
6466         * language.c (binop_type_check): Ditto.
6467         (binop_result_type): Ditto.
6468         (integral_type): Ditto.
6469         (character_type): Ditto.
6470         (string_type): Ditto.
6471         (boolean_type): Ditto.
6472         (structured_type): Ditto.
6473         (lang_bool_type): Ditto.
6474         (binop_type_check): Ditto.
6475         * language.h (_LANG_chill): Ditto.
6476         * dwarfread.c (set_cu_language): Ditto.
6477         * dwarfread.c (CHILL_PRODUCER): Ditto.
6478         * dwarfread.c (handle_producer): Ditto.
6479         * expression.h (enum exp_opcode): Ditto.
6480         * eval.c: Ditto for comments.
6481         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6482         * expprint.c (print_subexp): Ditto.
6483         (print_subexp): Ditto.
6484         * valops.c (value_cast): Ditto.
6485         (search_struct_field): Ditto.
6486         * value.h (COERCE_VARYING_ARRAY): Ditto.
6487         * symfile.c (init_filename_language_table): Ditto.
6488         (add_psymbol_with_dem_name_to_list): Ditto.
6489         * valarith.c (value_binop): Ditto.
6490         (value_neg): Ditto.
6491         * valops.c (value_slice): Ditto.
6492         * symtab.h (union language_specific): Ditto.
6493         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6494         (SYMBOL_DEMANGLED_NAME): Ditto.
6495         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6496         * defs.h (enum language): Ditto.
6497         * symtab.c (got_symtab): Ditto.
6498         * utils.c (fprintf_symbol_filtered): Ditto.
6499
6500         * ch-typeprint.c: Make file obsolete.
6501         * ch-valprint.c: Make file obsolete.
6502         * ch-lang.h: Make file obsolete.
6503         * ch-exp.c: Make file obsolete.
6504         * ch-lang.c: Make file obsolete.
6505
6506         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6507         CHILL_LIB.
6508         (TARGET_FLAGS_TO_PASS): Ditto.
6509         (CHILLFLAGS): Obsolete.
6510         (CHILL): Obsolete.
6511         (CHILL_FOR_TARGET): Obsolete.
6512         (CHILL_LIB): Obsolete.
6513         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6514         ch-valprint.c.
6515         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6516         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6517         ch-lang.o.
6518         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6519         targets.
6520
6521 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6522
6523         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6524         This does not change anything at the moment, but will be helpful
6525         later when full Ada support is integrated.
6526
6527 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6528
6529         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6530         help message.
6531
6532 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6533
6534         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6535         and save it in a local variable.  Use variable in later test.
6536
6537 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6538
6539         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6540         test.  (Thanks to Daniel Jacobowitz.)
6541         
6542 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6543
6544         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6545         (mips_abi_strings): Add "n64".
6546         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6547
6548 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6549
6550         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6551         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6552
6553 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6554
6555         * utils.c (host_pointer_to_address, address_to_host_pointer):
6556         Use gdb_assert() instead of explicit call to internal_error().
6557
6558 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6559
6560         * Makefile.in (rs6000-nat.o): Update dependencies.
6561
6562         From Nicholas Duffek:
6563         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6564         (aix-thread.o): New rule.
6565         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6566         * config/powerpc/aix432.mh: New file.
6567
6568 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6569
6570         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6571         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6572         (fetch_core_registers, ppc_linux_supply_gregset)
6573         (ppc_linux_supply_fpregset): New functions.
6574         (ppc_linux_regset_core_fns): New.
6575         (_initialize_ppc_linux_tdep): Call add_core_fns.
6576         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6577         and ppc_linux_supply_gregset.
6578         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6579         (supply_fpregset): Call ppc_linux_supply_fpregset.
6580         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6581         corelow.o.
6582         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6583
6584 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6585
6586         * symtab.c (lookup_symbol): Demangle before lowercasing.
6587
6588 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6589
6590         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6591         declaration.
6592         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6593         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6594         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6595         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6596         "gdb_string.h".
6597         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6598         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6599         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6600         (avr-tdep.o, mon960-rom.o): Ditto.
6601         (aout_stabs_gnu_h): Define.
6602         (symtab_h): Remove $(gdb_obstack_h).
6603
6604 2002-07-30  Jim Blandy  <jimb@redhat.com>
6605
6606         Patch from David Carlton <carlton@math.stanford.edu>:
6607         * gdbinit.in: Move the `dir' commands that add GDB's own source
6608         directory to the search path to the end, so that the `gdb' source
6609         directory will be searched first.
6610
6611 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6612
6613         * gdb_obstack.h: New file.
6614         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6615         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6616         * objfiles.h: Include "gdb_obstack.h".
6617         * Makefile.in (gdb_obstack_h): Define.
6618         (symtab_h): Add $(gdb_obstack_h).
6619         (objfiles_h): Add $(gdb_obstack_h).
6620         
6621         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6622         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6623         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6624         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6625         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6626         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6627         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6628         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6629
6630         * Makefile.in (bcache.o): Update dependencies.
6631         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6632         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6633         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6634         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6635         (stabsread.o, symfile.o, symmisc.o): Ditto.
6636         (symtab.o, typeprint.o, macroexp.o): Ditto.
6637         (macrotab.o, mdebugread.o): Ditto.
6638         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6639         (coff_ecoff_h, aout_aout64_h): Define.
6640         (aout_stabs_gnu_h, libaout_h): Define.
6641
6642 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6643
6644         * regcache.c (struct regcache_descr): Rename nr_registers to
6645         nr_cooked_registers.  Revise comments describing the structure
6646         member fields.
6647         (init_regcache_descr): Update.
6648         (init_legacy_regcache_descr): Update.
6649         (read_register_gen, write_register_gen): When a cooked register in
6650         the raw register range, directly access the value from the raw
6651         register cache.
6652
6653 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6654
6655         * z8k-tdep.c: Do not include "obstack.h".
6656         * h8300-tdep.c, h8500-tdep.c: Ditto.
6657         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6658         * valprint.c, v850-tdep.c: Ditto.
6659         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6660         * mn10200-tdep.c: Ditto.
6661
6662         * Makefile.in (z8k-tdep.o): Update dependencies.
6663         (m68hc11-tdep.o, valprint.o): Ditto.
6664         (v850-tdep.o, d10v-tdep.o): Ditto.
6665         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6666         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6667         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6668         (sh_opc_h, gdb_sim_sh_h): Define.
6669         (elf_sh_h, elf_bfd_h): Define.
6670         (opcode_m68hc11_h): Define.
6671         (OPCODES_SRC, OPCODES_DIR): define.
6672         (OPCODES): Use $(OPCODES_DIR).
6673         (gdb_sim_d10v_h): Rename sim_d10v_h.
6674         (gdb_sim_arm_h): Rename sim_arm_h.
6675
6676 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6677
6678         * utils.c (host_pointer_to_address, address_to_host_pointer):
6679         Change internal_error() message to indicate function responsible
6680         for the error.
6681
6682 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6683
6684         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6685         calls to local_hex_string_custom().
6686
6687 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6688
6689         * irix5-nat.c: Move IRIX shared library support from here...
6690         * solib-irix.c: ...to here.  Revised substantially to work with
6691         generic solib framework.
6692
6693         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6694         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6695         * mips-irix-tdep.c: New file.
6696
6697         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6698         (mips-irix-tdep.o, solib-irix.o): New rules.
6699         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6700         solib-irix.o.
6701         * config/mips/irix6.mt (TDEPFILES): Likewise.
6702         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6703
6704 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6705
6706         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6707         disabled (via ``#if 0'') includes.
6708
6709 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6710
6711         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6712         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6713         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6714         Add support for the fpscr register.
6715         * rs6000-nat.c (regmap, fetch_inferior_registers)
6716         (store_inferior_registers, fetch_core_registers): Likewise.
6717
6718 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6719
6720         * rs6000-nat.c (language.h): Include.
6721         (special_regs): Delete this array.
6722         (regmap): New function.
6723         (fetch_register, store_register):  Use regmap() to map gdb
6724         register numbers to ptrace register numbers.  Also, use
6725         outputs from regmap() to make decisions regarding type of
6726         ptrace() call to make.  In particular, don't compare against
6727         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6728         (fetch_inferior_registers, store_inferior_registers): Where
6729         possible, obtain register numbers from tdep struct.  Don't
6730         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6731         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6732         (LAST_UISA_SP_REGNUM): Delete.
6733         
6734 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6735
6736         * rs6000-nat.c (ppc-tdep.h): Include.
6737         (fetch_registers, store_register, fetch_core_registers): Don't
6738         access registers[] directly.  Instead, use supply_register() or
6739         regcache_collect() as appropriate.
6740         (find_toc_address): Format hex address with local_hex_string().
6741
6742 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6743
6744         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6745         bfd/elf32-frv.c.
6746
6747 2002-07-24  Tom Tromey  <tromey@redhat.com>
6748
6749         * jv-exp.y: Marked all strings with _().
6750         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6751         internal_error.
6752         (MethodInvocation, CastExpression, parse_number, yyerror,
6753         java_type_from_name, push_expression_name, yylex): Typo fixes.
6754
6755 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6756
6757         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6758         (tee_file_flush, tee_file_write, tee_file_fputs)
6759         (tee_file_isatty): New.
6760         * ui-file.h (tee_file_new): Add prototype.
6761
6762 2002-07-24  Aidan Skinner <aidan@velvet.net>
6763
6764         * ada-lang.c: Change k&r style function definitions to prototyped
6765         form.
6766         * ada-typeprint.c: Change k&r style function definitions to prototyped
6767         form.
6768         * ada-valprint.c: Change k&r style function definitions to prototyped
6769         form.
6770         
6771 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6772
6773         * README: Remove reference to remote-bug.
6774         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6775         remote-bug.c.
6776         (m88k-nat.o): Delete rule.
6777         (m88k-tdep.o): Delete rule.
6778         (remote-bug.o): Delete rule.
6779         * MAINTAINERS: Mark as obsolete.
6780         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6781         * m88k-tdep.c: Make file obsolete.
6782         * config/m88k/m88k.mh: Ditto.
6783         * config/m88k/delta88v4.mh: Ditto.
6784         * config/m88k/delta88v4.mt: Ditto.
6785         * config/m88k/delta88.mt: Ditto.
6786         * config/m88k/delta88.mh: Ditto.
6787         * remote-bug.c: Ditto.
6788         * config/m88k/tm-delta88.h: Ditto.
6789         * config/m88k/nm-delta88v4.h: Ditto.
6790         * config/m88k/xm-delta88.h: Ditto.
6791         * config/m88k/xm-dgux.h: Ditto.
6792         * config/m88k/tm-m88k.h: Ditto.
6793         * config/m88k/nm-m88k.h: Ditto.
6794         * config/m88k/tm-delta88v4.h: Ditto.
6795         * m88k-nat.c: Ditto.
6796         * cxux-nat.c: Ditto.
6797         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6798         and m88*-*-* obsolete.
6799         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6800         m88*-*-* obsolete.
6801
6802 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6803
6804         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6805         constant.  Same for local pointer variables.
6806         (extract_signed_integer): Ditto.
6807         * defs.h (extract_unsigned_integer): Update.
6808         (extract_signed_integer): Update.
6809
6810 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6811
6812         * regcache.c (regcache_raw_write): Change buf parameter to a
6813         constant void pointer.
6814         (regcache_raw_read): Change buf parameter to a void pointer.
6815         (legacy_write_register_gen): Change myaddr parameter a constant
6816         void pointer.
6817         (supply_register): Change val parameter to a const void pointer.
6818         * regcache.h (regcache_raw_write): Update declaration.
6819         (regcache_raw_read): Update declaration.
6820         (supply_register): Update declaration.
6821
6822 2002-07-24  Tom Tromey  <tromey@redhat.com>
6823
6824         * defs.h (gdb_readline_wrapper): Declare.
6825         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6826         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6827         * top.c (gdb_readline_wrapper): New function.
6828         (command_line_input): Use it.
6829
6830 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6831
6832         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6833         regcache_read and regcache_write.
6834         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6835         * regcache.c: Update.
6836         * sh-tdep.c (sh64_push_arguments): Update comment.
6837         (sh_pseudo_register_read): Update.
6838         (sh_pseudo_register_write): Update.
6839         (sh4_register_read): Update.
6840         (sh4_register_write): Update.
6841         (sh64_pseudo_register_read): Update.
6842         (sh64_pseudo_register_write): Update.
6843         (sh64_register_read): Update.
6844         (sh64_register_write): Update.
6845         * i386-tdep.c (i386_extract_return_value): Update.
6846         (i386_extract_struct_value_address): Update.
6847         (i386_extract_return_value): Update.
6848         * blockframe.c (generic_read_register_dummy): Update.
6849         (generic_call_dummy_register_unwind): Update
6850         * infrun.c (write_inferior_status_register): Update.
6851
6852 2002-07-23  Jim Blandy  <jimb@redhat.com>
6853
6854         * parser-defs.h (expression_context_pc): Make this extern.
6855         (Thanks to Michael Snyder.)
6856
6857 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6858
6859         GDB 5.2.1 released from 5.2 branch.
6860         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6861         * README: Update to mention 5.2.1.
6862
6863 2002-07-23  Mark Salter  <msalter@redhat.com>
6864
6865         * remote.c (remote_read_bytes): Fix check for error.
6866
6867 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6868
6869         * aix-thread.c (language.h): Include.
6870         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6871         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6872         Print newlines at end of debug messages.
6873         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6874         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6875
6876 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6877
6878         * aix-thread.c (ppc-tdep.h): Include.
6879         (special_register_p): New function.
6880         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6881         (store_regs_user_thread): Use register number information from
6882         gdbarch_tdep struct instead of hardcoded offsets relative to
6883         FIRST_UISA_SP_REGNUM.
6884         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6885         special_register_p() instead of using FPLAST_REGNUM and
6886         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6887         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6888         will be MQ's register number.
6889
6890 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6891
6892         * aix-thread.c (ops): Rename to aix_thread_ops.
6893         (base_ops): Rename to base_target.
6894         (ops_attach): Rename to aix_thread_attach.
6895         (ops_detach): Rename to aix_thread_detach.
6896         (ops_resume): Rename to aix_thread_detach.
6897         (ops_wait):   Rename to aix_thread_wait.
6898         (ops_kill):   Rename to aix_thread_kill.
6899         (init_ops):   Rename to init_aix_thread_ops.
6900         (ops_fetch_register): Rename to aix_thread_fetch_register.
6901         (ops_store_register): Rename to aix_thread_store_register.
6902         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6903         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6904         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6905         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6906         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6907         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6908         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6909         (store_regs_lib):  Rename to store_regs_user_thread.
6910         (store_regs_kern): Rename to store_regs_kernel_thread.
6911
6912 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6913
6914         * aix-thread.c (ops_prepare_to_store): Eliminate.
6915         (init_ops): Don't initialize ops.prepare_to_store.
6916         (store_regs_kern): Pre-fetch register buffers from child, 
6917         because some registers may not be in the cache.  Copy
6918         regs from register cache only if they are cached.
6919         (store_regs_lib): Copy regs from register cache only
6920         if they are cached.
6921         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6922         fill_gprs64): Ditto.
6923
6924 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6925
6926         * aix-thread.c (gdb_assert.h): Include.
6927         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6928         register sizes (from register cache) match size of buffer holding
6929         register data.
6930         (fill_sprs32): Change parameter types to match those in the ptrace()
6931         buffer.
6932         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6933         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6934
6935 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6936
6937         * aix-thread.c (supply_sprs64): Cosmetic change.
6938         (supply_sprs32): Cosmetic change.
6939         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6940         (fill_sprs64): Use regcache_collect instead of read_register.
6941         (store_regs_lib): Use regcache_collect instead of 
6942         read_register.  Use fill_sprs32 instead of fill_sprs64,
6943         if debugging a 32-bit architecture.
6944         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6945         out of the register cache, instead of passing a pointer into
6946         the register cache directly to ptrace.  Use regcache_collect
6947         insteaad of read_register.
6948         (ops_prepare_to_store): Use target_read_registers instead
6949         of read_register_bytes.
6950
6951 2002-07-20  Aidan Skinner <aidan@velvet.net>
6952
6953         * MAINTAINERS: Add self under write after approval. 
6954                 
6955 2002-07-20  Aidan Skinner <aidan@velvet.net>
6956
6957         * ada-tasks.c: Change k&r style function definitions to prototyped
6958         form.
6959                 
6960 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6961
6962         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6963         * x86-64-tdep.c: Include "objfiles.h".
6964         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6965         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6966
6967 2002-07-17  Michal Ludvig  <michal@suse.cz>
6968
6969         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6970         (update_context): Initialise cfa variable.
6971
6972 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6973
6974         * aix-thread.c: Shorten some long lines.  
6975         Bring comments into line with code spec.
6976
6977 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6978
6979         * infrun.c: Re-indent using gdb_indent.sh.
6980
6981 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6982
6983         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6984         Leave the indentation temporarily untouched, to minimize the diffs.
6985
6986 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6987
6988         * stabsread.c: Make os9k sections of the code obsolete,
6989         for real this time.
6990         * stabsread.h: Make os9k sections of the code obsolete.
6991
6992 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6993
6994         * linux-low.c (regsets_store_inferior_registers): Add free()
6995         at the end of a loop to prevent memory leak.
6996         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6997         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6998         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6999         line a comment.
7000         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7001
7002 2002-07-17  Jim Blandy  <jimb@redhat.com>
7003
7004         * macrocmd.c (info_macro_command): Remove newline from error
7005         message.
7006
7007 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7008
7009         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7010         (sh_gdbarch_init): Use it for sh-dsp.
7011
7012 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7013
7014         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7015         64-bit DWARF2 format.
7016
7017 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7018
7019         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7020         <sys/proc.h> when not available.
7021
7022 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7023
7024         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7025         * stabsread.c: Make os9k sections of the code obsolete.
7026         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7027         * config/i386/i386os9k.mt: Make file obsolete.
7028         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7029         (COMMON_OBS): Remove os9kread.o
7030         (SFILES): Remove os9kread.c.
7031         (os9kread.o, remote-os9k.o): Make target obsolete.
7032         * remote-os9k.c: Make file obsolete.
7033         * os9kread.c: Make file obsolete.
7034         * Makefile.in
7035
7036 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7037
7038         * NEWS: Mention that the FR30 has been made obsolete.
7039         * fr30-tdep.c: Make file obsolete.
7040         * config/fr30/tm-fr30.h: Ditto.
7041         * config/fr30/fr30.mt: Ditto.
7042         * configure.tgt: Make fr30-*-elf obsolete.
7043         * MAINTAINERS: Make fr30-elf obsolete.
7044
7045 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7046
7047         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7048         found is not inside a section.
7049
7050 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7051
7052         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7053         strerror().
7054         (pdc_realloc): Use xrealloc() instead of realloc().
7055
7056 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7057
7058         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7059         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7060         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7061         macros.
7062
7063 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7064
7065         * aix-thread.c (ptrace_check): Eliminate goto.
7066         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7067         problem.
7068
7069 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7070
7071         * aix-thread.c (gdbcmd.h): Include.
7072         (DEBUG, DBG, DBG2, dbg): Eliminate.
7073         (debug_aix_thread): New static global.
7074         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7075         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7076         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7077         invocations to DBG and DBG2 macros to test against
7078         ``debug_aix_thread'' and call fprintf_unfiltered().
7079         (_initialize_aix_thread): Add new command "set debug aix-thread".
7080
7081 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7082
7083         From Gerhard Tonn <TON@de.ibm.com>:
7084         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7085         instead of supply_register.
7086
7087 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7088
7089         * dwarf2cfi.c: Include "gdb_assert.h".
7090         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7091         non-NULL.
7092         (update_context): Do not use __func__.  Add missing ``break''.
7093         (update_context): Do not use __func__.
7094
7095 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7096
7097         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7098         and its setting.  Set gdbarch instruction printing functions
7099         directly.  For non-rs6000 case use new function
7100         gdb_print_insn_powerpc.
7101         (gdb_print_insn_powerpc): New function.
7102
7103 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7104
7105         * NEWS: Mention that the d30v has been marked obsolete.
7106         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7107         * configure.tgt: Mark d30v-*-* as obsolete.
7108         * d30v-tdep.c: Mark file as obsolete.
7109         * config/d30v/d30v.mt: Ditto.
7110         * config/d30v/tm-d30v.h: Ditto.
7111
7112 2002-07-13  Aidan Skinner <aidan@velvet.net>
7113
7114         * ada-tasks.c (add_task_entry): replace calls to
7115         malloc() with xmalloc
7116         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7117         
7118         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7119         ada_finish_decode_line_1, all_sals_for_line
7120         ada_breakpoint_rewrite): replace calls to free() with xfree()
7121                 
7122 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7123
7124         From Nicholas Duffek (with minor changes by Martin Hunt, 
7125         Louis Hamilton, and Kevin Buettner):
7126         * aix-thread.c: New file.
7127
7128 2002-07-12  Petr Sorfa <petrs@caldera.com>
7129
7130         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7131         complaint for invalid attribute class or form.
7132         (read_func_scope): DW_AT_frame_base
7133         better handling of DW_AT_block*.
7134         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7135         better handling of DW_AT_block*.
7136         (read_common_block): DW_AT_location
7137         better handling of DW_AT_block*.
7138         (read_partial_die): DW_AT_location better handling
7139         of DW_AT_block*.
7140         (new_symbol): DW_AT_external better handling of
7141         DW_AT_block*. Proper initialization of variable
7142         "addr".
7143         (attr_form_is_block): New function that returns true
7144         if the attribute's form is of DW_FORM_block*.
7145
7146 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7147
7148         * valops.c (find_method_list): Remove comment about
7149         removed STATIC_MEMFUNCP argument.
7150         (value_find_oload_method_list): Likewise.
7151
7152 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7153
7154         From Nicholas Duffek:
7155         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7156         target_new_objfile_hook.
7157
7158 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7159
7160         From Nicholas Duffek:
7161         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7162         csect.
7163
7164 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7165
7166         * MAINTAINERS: Mention --enable-sim-build-warnings.
7167         (m68hc11-elf): Disable sim build warnings.
7168         (m32r-elf): Mark as broken obsolete candidate.
7169         (x86_64-linux-gnu): Mark as buildable with -Werror.
7170         (arm-elf): Change -w to ``,'' which enables warnings but not
7171         -Werror.
7172
7173 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7174
7175         * bcache.h: Update copyright.
7176         (struct bstring, struct bcache): Move definition to "bcache.c".
7177         Replaced by opaque declaration.
7178         (bcache_xfree): Replace free_bcache.
7179         (bcache_xmalloc, bcache_memory_used): Declare.
7180         
7181         * bcache.c: Update copyright.
7182         (struct bstring, struct bcache): Moved to here from "bcache.h".
7183         Update comments.
7184         (bcache_xmalloc, bcache_memory_used): New functions.
7185         (bcache_xfree): Replace function free_bcache.
7186         
7187         * Makefile.in (objfiles.o): Add $(bcache_h).
7188         (objfiles_h): Remove $(bcache_h).
7189         (symfile.o): Add $(bcache_h).
7190
7191         * symmisc.c: Update copyright.
7192         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7193         (print_objfile_statistics): Use bcache_memory_used.
7194
7195         * symfile.c: Include "bcache.h".
7196         (reread_symbols): Use bcache_xfree.
7197         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7198         (add_psymbol_to_list): Pass psymbol_cache by value.
7199         (add_psymbol_with_dem_name_to_list): Ditto.
7200
7201         * objfiles.h: Update copyright.
7202         (struct bcache): Declare opaque.  Do not include "bcache.h".
7203         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7204         bcache'' pointers.
7205         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7206
7207         * objfiles.c: Include "bcache.h".  Update copyright.
7208         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7209         macro_cache.
7210         (free_objfile): Use bcache_xfree.
7211
7212 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7213
7214         * monitor.c (monitor_fetch_register): Make name a constant.
7215         (monitor_store_register): Same.
7216
7217 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7218
7219         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7220         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7221         (finish_block) For non-function blocks, hash the symbol table.  For
7222         function blocks, mark the symbol table as unhashed.
7223         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7224         (msymbol_hash_iw): Likewise.
7225         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7226         value.
7227         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7228         (lookup_minimal_symbol): Likewise for both.
7229         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7230         hashtable.
7231         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7232         (ALL_BLOCK_SYMBOLS): Update.
7233         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7234         (struct symbol): Add `hash_next' pointer.
7235         * symtab.c (lookup_block_symbol): Search using the hash table when
7236         possible.
7237         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7238         (search_symbols, find_addr_symbol): Likewise.
7239
7240         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7241         (read_dst_symtab): Likewise.
7242         * jv-lang.c (get_java_class_symtab): Likewise.
7243         * mdebugread.c: Include "gdb_assert.h".
7244         (shrink_block): Assert that the block being modified is not hashed.
7245         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7246         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7247         symbols.
7248         (dump_symtab): Recognize hashed blocks.
7249         * printcmd.c (print_frame_args):  Assert that function blocks do not
7250         have hashed symbol tables.
7251         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7252         (fill_in_ada_prototype, debug_print_block): Likewise.
7253         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7254
7255 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7256
7257         * stack.c (print_frame): Use result of frame_address_in_block()
7258         instead of fi->pc when evaluating symbols.
7259         (backtrace_command_1): Ditto.
7260
7261 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7262
7263         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7264         Make static.
7265
7266         * arm-tdep.c (arm_register_name): Make return type constant.
7267
7268 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7269
7270         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7271         prototype.
7272         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7273         * s390-tdep.c (s390_fp_regnum): Ditto.
7274         (s390_read_fp): Ditto.
7275         (s390_pop_frame): Ditto.
7276         (_initialize_s390_tdep): Ditto.
7277         * remote.c (get_remote_state): Ditto.
7278         * procfs.c (mappingflags): Ditto.
7279         * memattr.c (_initialize_mem): Ditto.
7280         * mcore-tdep.c (mcore_pop_frame): Ditto.
7281         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7282         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7283         * language.c (set_case_str): Ditto.
7284         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7285         * frv-tdep.c (new_variant): Ditto.
7286         (frv_stopped_data_address): Ditto.
7287         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7288         (context_alloc): Ditto.
7289         (frame_state_alloc): Ditto.
7290         (unwind_tmp_obstack_init): Ditto.
7291         (unwind_tmp_obstack_free): Ditto.
7292         (cfi_read_fp): Ditto.
7293         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7294         (cris_pop_frame): Ditto.
7295         * c-lang.c (scanning_macro_expansion): Ditto.
7296         (finished_macro_expansion): Ditto.
7297         (c_preprocess_and_parse): Ditto.
7298         * gdbarch.sh: Ditto.
7299         * gdbarch.h, gdbarch.c: Regenerate.
7300         * config/mn10200/tm-mn10200.h: Adjust indentation.
7301         * target.c: Adjust indentation.
7302         * symtab.h: Adjust indentation.
7303         * stabsread.h: Adjust indentation.
7304         * remote-es.c: Adjust indentation.
7305         * os9kread.c: Adjust indentation.
7306
7307 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7308         
7309         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7310         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7311
7312 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7313         
7314         * NEWS: Mention m68k, mcore multi-arching.  
7315         * MAINTAINERS: Change status of m68k, mcore to reflect
7316         multi-arching.
7317
7318 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7319
7320         * valops.c (find_overload_match): Free oload_syms.
7321
7322 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7323
7324         Define HAVE_SYS_PROC_H if sys/proc.h exists
7325         * configure.in: Add check for sys/proc.h
7326         * config.in: Regenerate.
7327         * configure: Regenerate.
7328
7329 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7330
7331         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7332         #if !GDB_MULTI_ARCH. 
7333
7334 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7335
7336         * config.in, configure: Regenerate.
7337
7338 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7339
7340         * dwarf2cfi.c: Include "gcore.h".
7341         (execute_stack_op): Fix implementation of the
7342         DW_OP_deref and DW_OP_deref_size operators by letting do their
7343         lookup in the target.
7344
7345 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7346
7347         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7348         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7349         tdep->sc_sp_offset.
7350
7351 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7352
7353         Fix PR gdb/595, gdb/602
7354         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7355         Don't call value_cast, just read the vtable pointer; update comments
7356         to match.
7357
7358 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7359
7360         * config/mcore/tm-mcore.h: Remove file.
7361         * config/mcore/mcore.mt: Remove definition of TM_FILE
7362         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7363
7364 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7365
7366         * i386bsd-tdep.c: Include "gdb_string.h".
7367
7368 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7369
7370         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7371         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7372         mcore-tdep.
7373         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7374         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7375         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7376         (RETVAL_REGNUM): Move macros from tm-mcore.h
7377         (mcore_reg_struct_has_addr): New function.
7378         (mcore_gdbarch_init): Added initializations for the macros removed
7379         from tm-mcore.h.
7380
7381 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7382
7383         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7384         traditonal string branding within the ELF header.
7385
7386 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7387
7388         * symtab.c (remove_params): New function.
7389         (make_symbol_overload_list): Use it instead of cplus_demangle.
7390         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7391
7392 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7393
7394         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7395
7396         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7397         New variables.
7398         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7399         and tdep->sigtramp_end.
7400         * i386obsd-nat.c: New file.
7401         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7402
7403         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7404         Don't call get_current_frame().
7405
7406 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7407
7408         * i386-nat.c (child_post_startup_inferior): New function
7409         calling i386_cleanup_dregs if
7410         I386_USE_GENERIC_WATCHPOINTS is defined.
7411         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7412         conditional to acknowledge that i386-nat.c has its
7413         own child_post_startup_inferior function.
7414
7415 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7416
7417         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7418         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7419         instead of MAX_REGISTER_RAW_SIZE.
7420         (i386_extract_return_value, i386_extract_struct_value_address):
7421         Convert to use regcache.
7422         (i386_gdbarch_init): Set max_register_raw_size and
7423         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7424         Set extract_return_value and extract_struct_value_address instead
7425         of their deprecated variants.
7426
7427         Convert i386 target to generic dummy frames.
7428         * i386-tdep.c: Include "symfile.h".
7429         (i386_frameless_signal_p): Consider a function to be frameless if
7430         the pc points at the first instruction of the function.
7431         (i386_frame_chain): Handle (generic) call dummies.
7432         (i386_frame_saved_pc): Likewise.
7433         (i386_frame_init_saved_regs): Remove code dealing with call
7434         dummies on the stack.
7435         (i386_push_dummy_frame): Removed.
7436         (i386_call_dummy_words): Removed.
7437         (i386_fix_call_dummy): Removed.
7438         (i386_push_return_address): New function.
7439         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7440         parameter, and don't call get_current_frame.
7441         (i386_pop_frame): New function.
7442         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7443         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7444         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7445         call_dummy_length to 0, set call_dummy_words to NULL, set
7446         sizeof_call_dummy_words to 0, set fix_call_dummy to
7447         generic_fix_call_dummy, set pc_in_call_dummy to
7448         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7449         generic_push_dummy_frame, set push_return_address to
7450         i386_push_return_address and set frame_chain_valid to
7451         generic_file_frame_chain_valid.
7452
7453 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7454
7455         * gdbarch.sh (struct regcache): Add opaque declaration.
7456         (EXTRACT_RETURN_VALUE): New architecture method.
7457         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7458         * gdbarch.h, gdbarch.c: Regenerate.
7459         * arch-utils.c (legacy_extract_return_value): New function.
7460         * arch-utils.h (legacy_extract_return_value): Declare.
7461         * values.c (value_being_returned): Re-enable code handling
7462         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7463         deprecated_grub_regcache_for_registers call to block handling
7464         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7465         (EXTRACT_RETURN_VALUE): Do not define.
7466
7467 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7468
7469         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7470         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7471         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7472         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7473         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7474         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7475         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7476         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7477         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7478         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7479         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7480         argument so the function fits the prototype in the architecture
7481         vector.
7482         (mcore_pop_frame): Remove argument so the function fits the
7483         prototype. Use get_current_frame instead of the argument.
7484         (mcore_push_arguments): Change type of struct_return so the
7485         function can be used in the architecture vector.
7486         (mcore_store_struct_return): Add.
7487         (mcore_frame_init_saved_regs): Add.
7488         (mcore_gdbarch_init): Add function calls to replace the macros
7489         removed from tm-mcore.h
7490
7491 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7492
7493         * infcmd.c (print_return_value): Remove compatibility code calling
7494         deprecated_grub_regcache_for_registers.
7495         
7496         * values.c: Include "regcache.h".
7497         (value_being_returned): Update.  Use
7498         deprecated_grub_regcache_for_registers to extract the register
7499         buffer address.  
7500         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7501         ``struct regcache''.
7502         * Makefile.in (values.o): Add dependency on $(regcache_h).
7503
7504         * inferior.h (run_stack_dummy): Change type of second parameter to
7505         a ``struct regcache''.
7506         * valops.c (hand_function_call): Change type of retbuf to ``struct
7507         regcache''.  Allocate using regcache_xmalloc, clean using
7508         make_cleanup_regcache_xfree.
7509         * infcmd.c (run_stack_dummy): Update.  Use
7510         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7511
7512         * regcache.c (do_regcache_xfree): New function.
7513         (make_cleanup_regcache_xfree): New function.
7514         * regcache.h (make_cleanup_regcache_xfree): Declare.
7515
7516 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7517
7518         * event-top.c (command_line_handler): Don't read past
7519         beginning of buffer.
7520
7521 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7522         
7523         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7524         struct frame_id. 
7525         (varobj_create): Store frame_id for root.
7526         (varobj_gen_name): Use xasprintf.
7527         (varobj_update): Save and restore frame using get_frame_id() and
7528         frame_find_by_id().
7529         (create_child): Use xasprintf.
7530         (new_root_variable): Initialize frame_id.
7531         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7532         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7533         to prevent memory leak.
7534
7535 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7536
7537         * valops.c (hand_function_call): Move declaration of retbuf to
7538         start of function, allocate using malloc, add a cleanup but before
7539         the inf_status cleanup, cleanup the buffer.  Rename local variable
7540         old_chain to inf_status_cleanup.
7541
7542 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7543
7544         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7545
7546         * cli/cli-decode.c (cmd_func_p): New function.
7547         (cmd_func): New function.
7548
7549         * command.h: Add cmd_func() and cmd_func_p().   
7550         
7551 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7552
7553         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7554         (REGISTER_SIZE): Remove.
7555         (MAX_REGISTER_RAW_SIZE): Remove.
7556         (REGISTER_VIRTUAL_TYPE): Remove.
7557         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7558         (REGISTER_NAME): Remove.
7559         (USE_GENERIC_DUMMY_FRAMES): Remove.
7560         (CALL_DUMMY): Remove.
7561         (CALL_DUMMY_START_OFFSET): Remove.
7562         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7563         (CALL_DUMMY_LOCATION): Remove.
7564         (FIX_CALL_DUMMY): Remove.
7565         (CALL_DUMMY_ADDRESS): Remove.
7566         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7567         (SAVE_DUMMY_FRAME_TOS): Remove.
7568         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7569         (mcore_register_virtual_type): New function.
7570         (mcore_register_byte): New function.
7571         (mcore_register_size): New function.
7572         (mcore_register_name): New function.
7573         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7574         macros removed from tm-mcore.h.
7575         (mcore_dump_tdep): Add.
7576         (_initialize_mcore_tdep): Add gdbarch_register call.
7577
7578 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7579
7580         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7581         frameless_look_for_prologue, such that we actually call this
7582         function.
7583
7584 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7585
7586         * frame.h (frame_address_in_block): New function.
7587
7588         * blockframe.c (frame_address_in_block): New function extracted
7589         from get_frame_block().
7590         (get_frame_block): Use frame_address_in_block().
7591         (block_innermost_frame): Use frame_address_in_block() to match
7592         the frame pc address against the block boundaries rather than
7593         the frame pc directly. This prevents a failure when a frame pc
7594         is actually a return-address pointing immediately after the end
7595         of the given block. 
7596
7597 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7598
7599         * MAINTAINERS: Add self under write after approval. 
7600
7601 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7602
7603         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7604         used in architecture vector. The default is
7605         m68k_local_breakpoint_from_pc.
7606         (m68k_local_breakpoint_from_pc): Add.
7607         (enum): Add register numbers from tm-m68k.h.
7608         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7609         vector.  
7610         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7611         GDB_MULTI_ARCH_PARTIAL.
7612         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7613         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7614         m68k-tdep.c.
7615         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7616         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7617         to enum in m68k-tdep.c
7618
7619 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7620
7621         * solib-osf.c (open_map): Compute the list of shared libraries
7622         loaded by the inferior, rather than the list of libraries loaded
7623         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7624         the wrong shared libraries...
7625
7626 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7627
7628         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7629         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7630         macros.
7631         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7632         Remove functions.
7633         (FRAMELESS_SIGNAL): Remove function.
7634         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7635         i386_linux_saved_pc_after_call): Removed.
7636         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7637         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7638         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7639
7640         * i386-tdep.c (i386_frameless_signal_p): New function.
7641         (i386_frame_chain): Deal with frameless signals.
7642         (i386_sigtramp_saved_sp): New function.
7643         (i386_frame_saved_pc): Deal with frameless signals.
7644         (i386_saved_pc_after_call): Make sure the correct value is
7645         returned just after entry into a sigtramp.
7646         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7647         i386fbsd4_sc_sp_offset): New variables.
7648         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7649         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7650         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7651         similiar to what we already did for sc_pc_offset.
7652         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7653         tdep->sc_sp_offset.
7654
7655         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7656
7657 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7658
7659         * config/i386/tm-x86-64linux.h: New.
7660         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7661         definitions.
7662         * config/i386/nm-x86-64.h: Rename to ...
7663         * config/i386/nm-x86-64linux.h: ... this one.
7664         * config/i386/x86-64linux.mh: Reflect the above change.
7665         
7666 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7667
7668         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7669         with sigcontext_addr.  Add sc_sp_offset.
7670         (i386bsd_sigtramp_saved_pc): Remove prototype.
7671         (i386bsd_sicontext_addr): Add prototype.
7672         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7673         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7674         (i386_svr4_sigtramp_saved_pc): Removed.
7675         (i386_svr4_sigcontext_addr): New function.
7676         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7677         Initialize tdep->sigcontext_addr instead.  Initialize
7678         tdep->sc_pc_offset and tdep->sc_sp_offset.
7679         (i386_gdbarch_init): Likewise.
7680         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7681         any more.
7682         (i386bsd_sigtramp_saved_pc): Remove function.
7683         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7684         Initialize tdep->sigcontext_addr instead.  Initialize
7685         tdep->sc_pc_offset.
7686         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7687         of tdep->sigtramp_saved_pc.
7688         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7689         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7690         instead.
7691
7692         * i386-tdep.c (i386_frameless_function_invocation,
7693         i386_frame_num_args, i386_frame_init_saved_regs,
7694         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7695         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7696         i386_extract_return_value, i386_store_return_value,
7697         i386_extract_struct_value_address, i386_register_virtual_type,
7698         i386_register_convertible, i386_register_convert_to_virtual,
7699         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7700         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7701         static.
7702
7703 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7704
7705         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7706
7707         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7708         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7709         this macro.  Include "value.h".
7710
7711 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7712
7713         * ada-exp.tab.c: remove as it's a generated file
7714         * ada-lex.c: remove as it's a generated file
7715                 
7716 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7717
7718         * config/i386/tm-i386.h (struct frame_info, struct
7719         frame_saved_regs, struct value, struct type): Remove forward
7720         declarations.
7721
7722         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7723         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7724         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7725         (FILL_FPXREGSET): Define.
7726
7727         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7728
7729         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7730         i[3456]86-*-netbsd* case.
7731         * config/i386/tm-obsd.h: Removed.
7732         * config/i386/obsd.mt: Removed.
7733         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7734         core-aout.o.
7735         (MH_CFLAGS): Add -DYYDEBUG=0.
7736
7737         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7738         i386nbsd_sc_pc_offset on OpenBSD too.
7739
7740         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7741         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7742         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7743         define.
7744         * i386bsd-tdep.c: Include "arch-utils.h".
7745         (i386bsd_aout_in_solib_call_trampoline): New function.
7746         (i386bsd_init_abi): Set in_solib_call_trampoline to
7747         i386bsd_aout_in_solib_call_trampoline.
7748         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7749         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7750
7751 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7752
7753         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7754         (struct obstack, struct bcache): Add opaque declarations.
7755         * Makefile.in (macrotab_h): Update
7756
7757 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7758
7759         * blockframe.c (generic_find_dummy_frame): Change return type to
7760         ``struct regcache''.
7761         (struct dummy_frame): Replace field ``registers'' with regcache, a
7762         struct regcache object.
7763         (generic_find_dummy_frame): Update.
7764         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7765         regcache_xmalloc and regcache_cpy.
7766         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7767         regcache_xfree.
7768         (deprecated_generic_find_dummy_frame): Update.
7769         (generic_read_register_dummy): Update.  Use
7770         regcache_read_as_address.
7771         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7772         (generic_get_saved_register): Update.  Use regcache_read.
7773
7774 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7775
7776         * Makefile.in (objfiles_h): Add $(bcache_h).
7777         * objfiles.h: Include "bcache.h".
7778
7779         * Makefile.in (symtab_h): Remove $(bcache_h).
7780         * symtab.h: Do not include "bcache.h".
7781
7782 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7783
7784         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7785         generic_func_frame_chain_valid.
7786
7787 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7788
7789         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7790         * config/i386/tm-fbsd.h: Likewise.
7791
7792 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7793
7794         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7795         generic_unwind_get_saved_register.
7796
7797 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7798
7799         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7800         * regcache.c (supply_register): Add missing argument to
7801         register_buffer call.
7802
7803 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7804
7805         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7806         Solaris /bin/grep does not not like it.  From Peter Schauer.
7807
7808 2002-06-26  Tom Tromey  <tromey@redhat.com>
7809
7810         * command.h (add_setshow_cmd): Declare.
7811         (add_setshow_cmd_full): Declare.
7812         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7813         returns void.  Use add_setshow_cmd_full.
7814         (add_setshow_cmd_full): New function.
7815         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7816         (add_setshow_boolean_cmd): Likewise.
7817
7818 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7819
7820         * config/vax/tm-vax.h: Protect from multiple inclusion.
7821         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7822         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7823         * config/vax/tm-vaxbsd.h: ...here.  New file.
7824         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7825
7826 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7827
7828         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7829         (BELIEVE_PCC_PROMOTION): Remove.
7830         (AP_REGNUM): Move to...
7831         * config/vax/nm-vax.h: ...here.
7832         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7833         (vax_breakpoint_from_pc): New function.
7834         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7835         and gdbarch_believe_pcc_promotion.
7836
7837 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7838
7839         * Makefile.in (vax_tdep_h): Define.  
7840         (vax-tdep.o): Use $(vax_tdep_h).
7841         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7842         (vax_dump_tdep): New function. 
7843         (_initialize_vax_tdep): Register vax_dump_tdep.
7844         * vax-tdep.h: Include osabi.h.     
7845         (struct gdbarch_tdep): New. 
7846
7847 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7848
7849         * frame.h (deprecated_generic_find_dummy_frame): Rename
7850         generic_find_dummy_frame.
7851         * blockframe.c (generic_find_dummy_frame): Make static.
7852         (deprecated_generic_find_dummy_frame): New function.
7853         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7854         generic_find_dummy_frame with deprecated_find_dummy_frame.
7855         (sh64_nofp_frame_init_saved_regs): Ditto.
7856         (sh_fp_frame_init_saved_regs): Ditto.
7857         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7858         (s390_frame_chain): Ditto.
7859         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7860
7861 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7862
7863         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7864         gdbarch vector are at the top.
7865         (NUM_REGS): Remove.
7866         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7867         (FRAME_ARGS_ADDRESS): Remove.
7868         (FRAME_LOCALS_ADDRESS): Remove.
7869         (FRAME_NUM_ARGS): Remove.
7870         (FRAME_ARGS_SKIP): Remove.  
7871         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7872         (m68k_gdbarch_init): Add gdbarch initializations for macros
7873         undefined in tm-m68k.h
7874
7875 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7876
7877         * monitor.h: Add the function regname to monitor_ops
7878         structure. This way NUM_REGS does not have to be a constant.
7879         * monitor.c (monitor_fetch_register): Added support for regname
7880         function. The function is called if the array regnames is NULL.
7881         (monitor_store_register): Same.
7882         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7883         regnames array.
7884         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7885         cpu32bug_cmds.regname to point to new function.
7886         * abug-rom.c (abug_regname): Same as above.
7887         (init_abug_cmds): Same.
7888         * dbug-rom.c (dbug_regname): Same as above.
7889         (init_dbug_cmds): Same.
7890         * remote-est.c (est_regname): Same. 
7891         (init_est_cmds): Same.
7892         * rom68k-rom.c (rom68k_regname): Same. 
7893         (init_rom68k_cmds): Same.
7894
7895 2002-06-25  Tom Tromey  <tromey@redhat.com>
7896
7897         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7898
7899 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7900
7901         * infrun.c (stop_registers): Change variable's type to ``struct
7902         regcache'''.
7903         (xmalloc_inferior_status): Delete function.
7904         (free_inferior_status): Delete function.
7905         (normal_stop): Use regcache_cpy.
7906         (struct inferior_status): Change type of fields ``stop_registers''
7907         and ``registers'' to ``struct regcache''.
7908         (write_inferior_status_register): Use regcache_write.
7909         (save_inferior_status): Instead of calling
7910         xmalloc_inferior_status, allocate the inf_status buffer directly.
7911         Use regcache_dup_no_passthrough and regcache_dup to save the
7912         buffers.
7913         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7914         Replace the stop_registers regcache instead of overriding it.  Use
7915         regcache_xfree.  Instead of calling free_inferior_status, xfree
7916         the buffer directly.
7917         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7918         free_inferior_status, xfree the buffer directly.
7919         (build_infrun): Use regcache_xmalloc.
7920         (_initialize_infrun): Delete redundant call to build_infrun.
7921
7922         * Makefile.in (infcmd.o): Add $(regcache_h).
7923
7924         * infcmd.c: Include "regcache.h".
7925         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7926         obtain the address of `stop_registers' register buffer.
7927         (print_return_value): Ditto.
7928
7929         * inferior.h (struct regcache): Add opaque declaration.
7930         (stop_registers): Change variable's declared type to ``struct
7931         regcache''.
7932
7933 2002-06-24  Tom Tromey  <tromey@redhat.com>
7934
7935         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7936         * target.c (initialize_targets): Fixed typo in
7937         trust-readonly-sections `show' documentation.
7938
7939         * main.c: Marked all strings with _().
7940
7941 2002-06-24  Don Howard  <dhoward@redhat.com>
7942
7943         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7944         that means max CORE_ADDR+1.
7945         (lookup_mem_region): Ditto.
7946         (mem_info_command): Ditto.
7947
7948 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7949
7950         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7951         (REGISTER_BYTES_OK): Remove.
7952         (REGISTER_BYTES): Remove.
7953         (STORE_STRUCT_RETURN): Remove.
7954         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7955         (STORE_RETURN_VALUE): Remove.
7956         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7957         (FRAME_CHAIN): Remove.
7958         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7959         (FRAME_SAVED_PC): Remove.  
7960         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7961         (m68k_store_struct_return): Add.
7962         (m68k_deprecated_extract_return_value): Add.
7963         (m68k_deprecated_extract_struct_value_address): Add.
7964         (m68k_store_return_value): Add.
7965         (m68k_frame_chain): Add.
7966         (m68k_frameless_function_invocation): Add.
7967         (m68k_frame_saved_pc): Add.
7968         (m68k_gdbarch_init): added set_gdbarch calls for new 
7969         functions and deleted macros.
7970
7971 2002-06-23  Tom Tromey  <tromey@redhat.com>
7972
7973         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7974         (ALLDEPFILES): Likewise.
7975         (udiheaders): Removed.
7976         (udip2soc.o): Likewise.
7977         (udi2go32.o): Likewise.
7978         (udr.o): Likewise.
7979         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7980
7981 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7982
7983         * infrun.c (_initialize_infrun): Delete unnecessary call to
7984         build_infrun.
7985
7986         * regcache.h: Update comments describing the regcache_cpy family
7987         of functions.
7988         (regcache_save, regcache_restore): Delete declaration.
7989         (regcache_save_no_passthrough): Delete declaration.
7990         (regcache_restore_no_passthrough): Delete declaration.
7991         * regcache.c (regcache_save): Delete function.
7992         (regcache_save_no_passthrough): Delete function.
7993         (regcache_restore): Delete function.
7994         (regcache_restore_no_passthrough): Delete function.
7995
7996 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7997
7998         * config/m68k/tm-m68k.h: Fix typo.
7999         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8000         (m68k_frame_init_saved_regs): Declare.
8001
8002 2002-06-21  Jim Blandy  <jimb@redhat.com>
8003
8004         Remove some vestiges of Harris 88k support.
8005         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8006         register numbering quirk.
8007         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8008         odd symbols occurring in Harris 88k ELF targets.
8009
8010 2002-06-21  Tom Tromey  <tromey@redhat.com>
8011
8012         * gdb_locale.h: New file.
8013         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8014         (defs_h): Added gdb_locale.h.
8015         * configure, config.in: Rebuilt.
8016         * configure.in (PACKAGE): Define.
8017         * defs.h: Include gdb_locale.h.
8018         * main.c (captured_main): Call setlocale, bindtextdomain,
8019         textdomain.
8020
8021 2002-06-21  Dave Brolley  <brolley@redhat.com>
8022
8023         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8024         * config/frv/frv.mt: New file.
8025         * config/frv/tm-frv.h: New file.
8026         * configure.tgt: Support frv-*-*.
8027         * Makefile.in (frv-tdep.o): New target.
8028         * frv-tdep.c: New file.
8029         * NEWS: Mention frv.
8030
8031 2002-06-21  Dave Brolley  <brolley@redhat.com>
8032
8033         * MAINTAINERS: Add self to "Write After Approval" list.
8034
8035 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8036
8037         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8038         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8039         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8040         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8041         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8042
8043         * m68k-tdep.c: Include arch-utils.h
8044         (m68k_register_raw_size): Add.
8045         (m68k_register_virtual_size): Add.
8046         (m68k_register_virtual_type): Add.
8047         (m68k_register_name): Add.
8048         (m68k_stack_align): Add.
8049         (m68k_register_byte): Add.
8050         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8051         tm-m68k.h.
8052
8053 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8054
8055         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8056         m68k_find_saved_regs.
8057         (m68k_pop_frame): Removed saved_regs structure, and replaced
8058         references to it with frame->saved_regs.
8059         (m68k_gdbarch_init): Added function calls to initialize the
8060         gdbarch structure.
8061         (m68k_fix_call_dummy): Add. 
8062         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8063         (CALL_DUMMY): Remove.
8064         (CALL_DUMMY_LENGTH): Remove.
8065         (CALL_DUMMY_START_OFFSET): Remove.
8066         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8067         (FIX_CALL_DUMMY): Remove.
8068         (PUSH_DUMMY_FRAME): Remove.
8069         (POP_FRAME): Remove.
8070
8071 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8072
8073         * parse.c (parse_fprintf): New function used to avoid calls to
8074         fprintf in bison parser generated debug code.
8075         * parser-defs.h: Declaration of new parse_fprintf function.
8076         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8077         Set YYDEBUG to 1 by default.
8078         Set YYFPRINTF as parse_fprintf.
8079
8080 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8081
8082         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8083         encoding anymore.
8084         (pointer_encoding, enum ptr_encoding): New.
8085         (execute_cfa_program): Take care about pointer encoding.        
8086         (dwarf2_build_frame_info): Only call parse_frame_info for 
8087         .debug_frame and .eh_frame.
8088         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8089         fixed augmentation handling, added relative addressing, 
8090         ignore duplicate FDEs. Added comments.
8091         * dwarf2cfi.c: Reindented.
8092         
8093 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8094
8095         * event-top.c (command_handler): Don't use space_at_cmd_start
8096         unless there is sbrk() on the host. Assign time and space data
8097         to union fields of the appropriate length.
8098
8099 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8100
8101         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8102         x86_64_register_name. Return type changed to 'const char *'.
8103         (x86_64_register_name2nr): Rename to x86_64_register_number.
8104         (x86_64_gdbarch_init): Update to reflect the change.
8105         * x86-64-tdep.h: Ditto.
8106         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8107         (supply_fpregset): Ditto.
8108
8109 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8110
8111         * regcache.h: Update copyright.
8112         (struct regcache, struct gdbarch): Add opaque declarations.
8113         (current_regcache): Declare global variable.
8114         (regcache_read, regcache_write): Add gdbarch parameter.
8115         (regcache_save, regcache_save_no_passthrough)
8116         (regcache_restore, regcache_restore_no_passthrough)
8117         (regcache_dup, regcache_dup_no_passthrough)
8118         (regcache_cpy, regcache_cpy_no_passthrough)
8119         (deprecated_grub_regcache_for_registers)
8120         (deprecated_grub_regcache_for_register_valid)
8121         (regcache_valid_p): Add function declarations.
8122         
8123         * regcache.c: Update copyright.
8124         (regcache_descr_handle): New global variable.
8125         (struct regcache_descr): Define.
8126         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8127         (regcache_descr, xfree_regcache_descr): New functions.
8128         (struct regcache): Define.
8129         (regcache_xmalloc, regcache_xfree): New functions.
8130         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8131         (regcache_dup, regcache_dup_no_passthrough): New functions.
8132         (regcache_valid_p, regcache_read_as_address): New functions.
8133         (deprecated_grub_regcache_for_registers): New function.
8134         (deprecated_grub_regcache_for_register_valid): New function.
8135         (current_regcache): New global variable.
8136         (register_buffer): Add regcache parameter.  Update calls.
8137         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8138         (read_register_gen, write_register_gen): Update register_buffer
8139         call.  Test for legacy_p instead of gdbarch_register_read_p or
8140         gdbarch_register_write_p.
8141         (regcache_collect): Update register_buffer call.
8142         (build_regcache): Rewrite.  Use deprecated grub functions.
8143         (regcache_save, regcache_save_no_passthrough): New functions.
8144         (regcache_restore, regcache_restore_no_passthrough): New
8145         functions.
8146         (_initialize_regcache): Create the regcache_data_handle. Swap
8147         current_regcache global variable.
8148         
8149         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8150         parameter to regcache_read and regcache_write calls.
8151         (sh4_register_read): Ditto.
8152         (sh64_pseudo_register_read): Ditto.
8153         (sh64_register_read): Ditto.
8154         (sh_pseudo_register_write): Ditto.
8155         (sh4_register_write): Ditto.
8156         (sh64_pseudo_register_write): Ditto.
8157         (sh64_register_write): Ditto.
8158
8159         * defs.h (XCALLOC): Define.
8160
8161 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8162
8163         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8164         * m68k-tdep.c (m68k_gdbarch_init): Added.
8165         (m68k_dump_tdep): Added.
8166
8167 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8168
8169         * ada-lang.c (fill_in_ada_prototype): Update comment.
8170
8171 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8172
8173         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8174         MIPS_ABI_LAST.
8175         (mips_abi_string, mips_abi_strings): New.
8176         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8177         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8178         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8179         O32 if no ABI is found.
8180         (mips_dump_tdep): Use mips_abi_strings.
8181         (mips_abi_update): New function.
8182         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8183         ``set mips abi'' and ``show mips abi''.  Check the size of
8184         mips_abi_strings.
8185
8186 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8187
8188         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8189         constant.
8190
8191 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8192
8193         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8194         current frame using only the first stack size adjustment. All
8195         subsequent size adjustments are not considered to be part of
8196         the "static" part of the current frame.
8197         Compute the address of the saved registers relative to the
8198         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8199         in use in this frame.
8200
8201 2002-06-18  Don Howard  <dhoward@redhat.com>
8202  
8203         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8204         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8205         suggesting this solution.
8206
8207 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8208
8209         * config/romp/xm-rtbsd.h: Delete file.
8210         * config/romp/rtbsd.mh: Delete file.
8211
8212 2002-06-18  Keith Seitz  <keiths@redhat.com>
8213
8214         * breakpoint.c (condition_command): Post breakpoint_modify
8215         when a condition is added to an existing breakpoint.
8216         (commands_command): Likewise for commands.
8217         (set_ignore_count): Likewise for ignore counts.
8218         If no tty, do not simply return, still need to send event
8219         notification.
8220         (ignore_command): Only print a newline if the command came
8221         from a tty.
8222         Don't call breakpoints_changed, since this is now properly
8223         handled by set_ignore_count.
8224
8225 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8226
8227         * MAINTAINERS: Note that cris-elf target can be compiled with
8228         -Werror.
8229         * cris-tdep.c (cris_register_name): Make return type constant.
8230         (cris_breakpoint_from_pc): Ditto.
8231
8232 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8233
8234         * frame.h (struct frame_info): Change type of context to 
8235         'struct context'.
8236
8237 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8238
8239         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8240         pointer.
8241         * gdbarch.h, gdbarch.c: Regenerate.
8242         * config/mips/tm-mips.h (mips_register_name): Update.
8243         * i386-tdep.h (i386_register_name): Update.
8244         * mips-tdep.c (mips_register_name): Update
8245         * alpha-tdep.c (alpha_register_name): Update.
8246         * arch-utils.c (legacy_register_name): Update.
8247         * arch-utils.h (legacy_register_name): Update.
8248         * avr-tdep.c (avr_register_name): Update.
8249         * ia64-tdep.c (ia64_register_name): Update.
8250         * i386-tdep.c (i386_register_name): Update.
8251         * sparc-tdep.c (sparc32_register_name): Update.
8252         (sparc64_register_name): Update.
8253         (sparclite_register_name): Update.
8254         (sparclet_register_name): Update.
8255         * sh-tdep.c (sh_generic_register_name): Update.
8256         (sh_sh_register_name): Update.
8257         (sh_sh3_register_name): Update.
8258         (sh_sh3e_register_name): Update.
8259         (sh_sh_dsp_register_name): Update.
8260         (sh_sh3_dsp_register_name): Update.
8261         (sh_sh4_register_name): Update.
8262         (sh_sh64_register_name): Update.
8263         * s390-tdep.c (s390_register_name): Update.
8264         * rs6000-tdep.c (rs6000_register_name): Update.
8265         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8266         (ns32k_register_name_32382): Update.
8267         * d10v-tdep.c (d10v_ts2_register_name): Update.
8268         (d10v_ts3_register_name): Update.
8269         * xstormy16-tdep.c (xstormy16_register_name): Update.
8270         * vax-tdep.c (vax_register_name): Update.
8271         * v850-tdep.c (v850_register_name): Update.
8272         * m68hc11-tdep.c (m68hc11_register_name): Update.
8273         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8274         (am33_register_name): Update.
8275
8276 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8277
8278         * m68k-tdep.c: Reindented.
8279
8280 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8281
8282         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8283         list of predefined types.
8284
8285 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8286
8287         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8288         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8289         REGISTER_CONVERT_TO_RAW): Remove defines.
8290         (i386_register_virtual_type, i386_register_convertible,
8291         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8292         Remove prototypes.
8293         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8294         macros mentioned above.
8295
8296         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8297         (i386lynx_saved_pc_after_call): Remove prototype.
8298         * i386ly-tdep.c: Include "i386-tdep.h".
8299         (i386lynx_saved_pc_after_call): Make static.  Use
8300         read_memory_nobpt instead of read_memory.  Use
8301         read_memory_unsigned_integer instead of read_memory_integer.
8302         (i386lynx_init_abi): New function.
8303         (i386lynx_coff_osabi_sniffer): New function.
8304         (_initialize_i386bsd_tdep): New function.
8305
8306         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8307         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8308         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8309         (i386_fix_call_dummy): Remove prototype.
8310         * i386-tdep.c (i386_call_dummy_words): New variable.
8311         (i386_gdbarch_init): Adjust for removal of the
8312         macros mentioned above.
8313
8314 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8315
8316         * command.h (add_setshow_auto_boolean_cmd): Replace
8317         add_set_auto_boolean_cmd.
8318         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8319         add_set_auto_boolean_cmd.
8320         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8321         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8322         mask-address'' command.
8323         (show_mask_address): Add cmd parameter.
8324         * remote.c (add_packet_config_cmd): Update.  Change type of
8325         set_func and show_func to cmd_sfunc_ftype.
8326         (_initialize_remote): Update `set remote Z-packet'
8327         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8328         (show_remote_protocol_e_packet_cmd): Ditto.
8329         (show_remote_protocol_E_packet_cmd): Ditto.
8330         (show_remote_protocol_P_packet_cmd): Ditto.
8331         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8332         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8333         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8334         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8335         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8336         (show_remote_protocol_Z_packet_cmd): Ditto.
8337         (show_remote_protocol_binary_download_cmd): Ditto.
8338         (show_remote_cmd): Pass NULL to all of above.
8339
8340 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8341
8342         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8343         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8344         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8345         POP_FRAME): Remove defines.
8346         (i386_push_arguments, i386_store_struct_return,
8347         i386_extract_return_value, i386_store_return_value,
8348         i386_extract_struct_value_address, i386_push_dummy_frame,
8349         i386_pop_frame): Renove prototypes.
8350         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8351         macros mentioned above.
8352
8353 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8354
8355         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8356         add_set_boolean_cmd.
8357         (add_setshow_cmd): New function.
8358         * command.h (add_setshow_boolean_cmd): Replace
8359         add_set_boolean_cmd.
8360         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8361         and ``set rdiromatzero''.
8362         * maint.c (_initialize_maint_cmds): Update commented out code.
8363         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8364         * target.c (initialize_targets): Update `set
8365         trust-readonly-sections'.
8366         * remote.c (_initialize_remote): Update `set remotebreak'.
8367
8368 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8369
8370         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8371         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8372         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8373         fit into multi-arch framework.
8374         (i386_breakpoint_from_pc): New function.
8375         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8376         above.
8377
8378         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8379         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8380         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8381         (i386_frameless_function_invocation, i386_frame_num_args,
8382         i386_frame_init_saved_regs): Remove prototypes.
8383         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8384         macros mentioned above.
8385
8386 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8387
8388         * cli/cli-decode.c (set_cmd_cfunc): Update.
8389         (set_cmd_sfunc): Update.
8390         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8391         (set_cmd_sfunc, set_cmd_cfunc): Update.
8392         * cli/cli-decode.h: Update.
8393
8394 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8395
8396         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8397         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8398
8399 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8400
8401         * defs.h (auto_boolean): Declare enum.
8402         * command.h (cmd_auto_boolean): Delete enum.
8403         * mips-tdep.c (mask_address_var): Update.
8404         (mips_mask_address_p): Update.
8405         (show_mask_address): Update.
8406         * remote.c (struct packet_config): Update.
8407         (update_packet_config): Update.
8408         (show_packet_config_cmd): Update.
8409         (packet_ok): Update.
8410         (add_packet_config_cmd): Update.
8411         (_initialize_remote): 
8412         * command.h: Update.
8413         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8414         (do_setshow_command): Update.
8415         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8416         * cli/cli-decode.h: Update.
8417
8418 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8419
8420         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8421         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8422         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8423         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8424         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8425         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8426
8427         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8428         list of DJGPP COFF targets.
8429
8430         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8431         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8432         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8433         (FP0_REGNUM): Remove define.
8434         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8435         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8436         (i386_register_virtual_size): Remove protoype.
8437         * i386-tdep.c (i386_register_virtual_size): Removed.
8438         (i386_extract_return_value, i386_store_return_value): Use
8439         FP0_REGNUM instead of NUM_FREGS to determine whether the
8440         floating-point registers are available.
8441         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8442         Adjust for removal of macros mentioned above.
8443
8444 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8445
8446         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8447         comments.
8448         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8449         Remove prototypes.
8450         (supply_gregset, fill_gregset): Remove use of register keyword and
8451         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8452         NUM_REGS and NUM_FREGS.
8453         (FPREGSET_FSAVE_OFFSET): Remove.
8454         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8455         NUM_FREGS to determine whether the floating-point registers are
8456         available.
8457
8458         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8459         gnu_store_registers): Replace usage of NUM_GREGS with
8460         I386_NUM_GREGS.
8461
8462         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8463         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8464         usage of NUM_GREGS with I386_NUM_GREGS.
8465
8466         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8467
8468         * i386bsd-nat.c: Include "i386-tdep.h".
8469         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8470         I386_NUM_GREGS.
8471
8472         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8473         and associated comment.  They no longer make any sense, since we
8474         don't use this file anymore on Linux.
8475
8476         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8477         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8478         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8479         elements in these arrays.
8480         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8481         MAX_NUM_REGS.
8482
8483 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8484
8485         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8486         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8487
8488 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8489
8490         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8491         EXTRACT_RETURN_VALUE.
8492         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8493         EXTRACT_STRUCT_VALUE_ADDRESS.
8494         * gdbarch.h, gdbarch.c: Regenerate.
8495         
8496         * values.c (value_being_returned): Handle
8497         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8498         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8499
8500         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8501         * arm-tdep.c (arm_gdbarch_init): Update.
8502         * avr-tdep.c (avr_gdbarch_init): Update.
8503         * cris-tdep.c (cris_gdbarch_init): Update.
8504         * d10v-tdep.c (d10v_gdbarch_init): Update.
8505         * ia64-tdep.c (ia64_gdbarch_init): Update.
8506         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8507         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8508         * s390-tdep.c (s390_gdbarch_init): Update.
8509         * sh-tdep.c (sh_gdbarch_init): Update.
8510         * s390-tdep.c (s390_gdbarch_init): Update.
8511         * sparc-tdep.c (sparc_gdbarch_init): Update.
8512         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8513         * v850-tdep.c (v850_gdbarch_init): Update.
8514         * vax-tdep.c (vax_gdbarch_init): Update.
8515         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8516         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8517
8518         * config/arc/tm-arc.h: Update.
8519         * config/d30v/tm-d30v.h: Update.
8520         * config/fr30/tm-fr30.h: Update.
8521         * config/h8300/tm-h8300.h: Update.
8522         * config/h8500/tm-h8500.h: Update.
8523         * config/i386/tm-i386.h: Update.
8524         * config/i386/tm-ptx.h: Update.
8525         * config/i386/tm-symmetry.h: Update.
8526         * config/i960/tm-i960.h: Update.
8527         * config/m32r/tm-m32r.h: Update.
8528         * config/m68k/tm-delta68.h: Update.
8529         * config/m68k/tm-linux.h: Update.
8530         * config/m68k/tm-m68k.h: Update.
8531         * config/m88k/tm-m88k.h: Update.
8532         * config/mcore/tm-mcore.h: Update.
8533         * config/mips/tm-mips.h: Update.
8534         * config/mn10200/tm-mn10200.h: Update.
8535         * config/pa/tm-hppa.h: Update.
8536         * config/pa/tm-hppa64.h: Update.
8537         * config/sparc/tm-sp64.h: Update.
8538         * config/sparc/tm-sparc.h: Update.
8539         * config/sparc/tm-sparclet.h: Update.
8540         * config/z8k/tm-z8k.h: Update.
8541
8542 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8543
8544         * Makefile.in (i386_linux_tdep_h): Define.
8545         (i386_tdep_h, i387_tdep_h): Define.
8546         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8547         $(i386_tdep_h) and $(i387_tdep_h).
8548         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8549
8550 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8551
8552         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8553         Already covered by the default.
8554
8555         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8556         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8557         (i386_gdbarch_init): Initialize long_double_format and long_double
8558         bit.
8559
8560         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8561         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8562         Move these to ...
8563         * config/i386/i386sol2.mh: ... here.
8564         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8565         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8566         (SIGCONTEXT_PC_OFFSET): Remove define.
8567         (IN_SIGTRAMP): Remove define.
8568         * i386-sol2-tdep.c: New file.
8569         
8570         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8571         * config/i386/tm-i386nw.h: Removed.
8572
8573         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8574         USE_STRUCT_CONVENTION): Remove defines.
8575         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8576         (get_longjmp_target): Remove prototype.
8577         (IN_SIGTRAMP): Remove define.
8578         (i386bsd_in_sigtramp): Remove prototype.
8579         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8580         function.  Update comment accordingly
8581         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8582         (FRAME_SAVED_PC): Remove define.
8583         (i386bsd_frame_saved_pc): Remove prototype.
8584         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8585         GET_LONGJMP_TARGET): Remove defines.
8586         (get_longjmp_target): Remove prototype.
8587         (IN_SIGTRAMP): Remove define.
8588         (i386bsd_in_sigtramp): Remove prototype.
8589         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8590         function.  Update comment accordingly
8591         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8592         (FRAME_SAVED_PC): Remove define.
8593         (i386bsd_frame_saved_pc): Remove prototype.
8594         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8595         Remove prototype.
8596         (USE_STRUCT_CONVENTION): Remove prototype.
8597         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8598         declaration.
8599         (_initialize_i386bsd_nat): Revise logic to determine some
8600         constants at compile time when compiling a native GDB.  Warn if
8601         things don't match up with what we expect.
8602         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8603         Remove variables.
8604         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8605         to use date stored in `struct gdbarch_tdep'.
8606         (i386bsd_sigcontext_offset): Remove varaible.
8607         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8608         stored in `struct gdbarch_tdep'.
8609         (i386bsd_frame_saved_pc): Make static.
8610         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8611         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8612         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8613         i386fbsd4_sc_pc_offset): New variables.
8614         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8615         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8616         functions.
8617         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8618         functions.
8619         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8620         Modify the value of i386fbsd_sigtramp_start and
8621         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8622         i386fbsd_sigtramp_end.
8623         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8624         function.
8625
8626         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8627         define to i386-linux-tdep.h.
8628         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8629         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8630         defines.
8631         (i386_linux_register_name, i386_linux_register_byte,
8632         i386_linux_register_raw_size): Remove prototypes.
8633         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8634         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8635         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8636         TARGET_WRITE_PC): Remove defines.
8637         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8638         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8639         i386_linux_write_pc): Remove prototypes.
8640         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8641         (get_longjmp_target): Remove prototype.
8642         * i386-linux-tdep.h: New file.
8643         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8644         * i386-linux-tdep.c: Include "i386-tdep.h" and
8645         "i386-linux-tdep.h".
8646         (i386_linux_register_name, i386_linux_register_byte,
8647         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8648         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8649         Make static.
8650         (i386_linux_init_abi): New function.
8651         (_initialize_i386_linux_tdep): New function.
8652
8653         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8654         (i386_saved_pc_after_call): Remove prototype.
8655         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8656         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8657         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8658         (i386_register_name, i386_stab_reg_to_regnum,
8659         i386_dwarf_reg_to_regnum): Remove prototypes.
8660         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8661         SIZEOF_SSE_REGS): Remove defines.
8662         (REGISTER_BYTES): Remove define.
8663         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8664         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8665         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8666         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8667         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8668         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8669         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8670         (get_longjmp_target): Remove prototype.
8671         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8672         (sigtramp_saved_pc): Remove define.
8673         (i386v4_sigtramp_saved_pc): Remove prototype.
8674         * config/i386/tm-go32.h (FRAME_CHAIN,
8675         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8676         (i386go32_frame_saved_pc): Remove prototype.
8677         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8678         (get_longjmp_target): Remove prototype.
8679         * i386-tdep.h: Include "osabi.h".
8680         (enum i386_abi): Removed.
8681         (enum struct_return): New enum.
8682         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8683         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8684         sc_pc_offset members.
8685         (i386_gdbarch_register_os_abi): Remove prototype.
8686         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8687         I386_SSE_NUM_REGS): New defines.
8688         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8689         I386_SSE_SIZEOF_REGS): New defines.
8690         (i386_register_name, i386_register_byte, i386_register_raw_size):
8691         New prototypes.
8692         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8693         (i386bsd_sigtramp_saved_pc): New prototype.
8694         * i386-tdep.c: Don't include "elf-bfd.h".
8695         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8696         i386_frame_chain, i386_saved_pc_after_call): Make static.
8697         (i386_frame_saved_pc): Rewrite to call architecture dependent
8698         function to deal with signal handlers.  Make static.
8699         (i386go32_frame_saved_pc): Removed.
8700         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8701         Removed.
8702         (i386_get_longjmp_target): New function.
8703         (default_struct_convention, pcc_struct_convention,
8704         reg_struct_convention, valid_conventions, struct_convention): New
8705         variables.
8706         (i386_use_struct_convention): New function.
8707         (i386v4_sigtramp_saved_pc): Renamed to
8708         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8709         (i386_pc_in_sigtramp): New function.
8710         (i386_abi_names): Removed.
8711         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8712         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8713         Removed.
8714         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8715         i386_gdbarch_register_os_abi): Removed.
8716         (struct i386_abi_handler): Removed.
8717         (i386_abi_handler_list): Removed.
8718         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8719         functions.
8720         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8721         i386_nw_init_abi): New functions.
8722         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8723         Use set_gdbarch_xxx() calls instead of relying on macros for a
8724         number of calls.
8725         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8726         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8727         Register the various architecture variants defined in this file.
8728
8729 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8730
8731         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8732         (struct main_type): Remove arg_types member.  Update comments for
8733         struct field.
8734         (TYPE_ARG_TYPES): Remove.
8735         (TYPE_FN_FIELD_ARGS): Update.
8736         (smash_to_method_type): Update prototype.
8737
8738         * c-typeprint.c (cp_type_print_method_args): Take method type
8739         instead of argument list.  Use new argument layout.  Simplify.
8740         (c_type_print_args): Use new argument layout.  Simplify.
8741         (c_type_print_base): Update call to cp_type_print_method_args.
8742         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8743         argument; use die->type instead.  Update call to
8744         smash_to_method_type.
8745         (read_structure_scope): Update call to dwarf2_add_member_fn.
8746         * gdbtypes.c (allocate_stub_method): Update comment.
8747         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8748         Use new argument layout.
8749         (check_stub_method): Use new argument layout.  Don't count
8750         void as an argument.
8751         (print_arg_types): Update comments.  Use new argument layout.
8752         (recursive_dump_type): Don't print arg_types member.
8753         * hpread.c (hpread_read_struct_type): Use new argument layout.
8754         (fixup_class_method_type): Likewise.
8755         (hpread_type_lookup): Likewise.
8756         * stabsread.c (read_type): Update calls to read_args and
8757         smash_to_method_type.
8758         (read_args): Use new argument layout.  Simplify.
8759         * valops.c (typecmp): Use new argument layout.  Update parameters
8760         and comments.  Simplify.
8761         (hand_function_call): Use new argument layout.
8762         (search_struct_method): Update call to typecmp.
8763         (find_overload_match): Use new argument layout.
8764
8765 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8766
8767         * NEWS: Mention multithreaded debug support for gdbserver.
8768
8769 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8770
8771         * MAINTAINERS: Mention NEWS.
8772
8773 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8774
8775         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8776         (struct mips_objfile_private, compare_pdr_entries): New.
8777         (non_heuristic_proc_desc): Read the ".pdr" section if it
8778         is present.
8779
8780 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8781
8782         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8783         (arm_debug): New static variable.
8784         (_initialize_arm_tdep): Add ``set debug arm'' command.
8785
8786 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8787
8788         * Makefile.in (sim_arm_h): Define.
8789         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8790         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8791         (arm_register_sim_regno): New function, map an internal REGNUM
8792         onto a simulator register number.
8793         (arm_gdbarch_init): Set register_sim_regno.
8794
8795 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8796
8797         * MAINTAINERS: Add self.
8798
8799 2002-06-11  Jim Blandy  <jimb@redhat.com>
8800
8801         * source.c (source_info): Mention whether the symtab has
8802         information about preprocessor macros.
8803
8804         Call the command `info macro', not `show macro'.
8805         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8806         Fix error message.
8807         (_initialize_macrocmd): Register `info_macro_command' in
8808         `infolist', not `showlist'.
8809
8810 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8811
8812         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8813         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8814         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8815         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8816         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8817         unconditionally.
8818         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8819         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8820         (_initialize_mips_tdep): Remove dead code.
8821         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8822         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8823         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8824         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8825         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8826         MIPS_LAST_FP_ARG_REGNUM): Remove.
8827
8828 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8829
8830         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8831         (unwind_tmp_obstack_free, parse_frame_info)
8832         (update_context, cfi_read_fp, cfi_write_fp)
8833         (cfi_frame_chain, cfi_init_extra_frame_info)
8834         (cfi_virtual_frame_pointer): Use the above function.
8835         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8836
8837 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8838
8839         * v850-tdep.c (v850_type_is_scalar): New function.
8840         (v850_use_struct_convention): Match current gcc implementation
8841         as close as possible.
8842         (v850_push_arguments): Fix stack_offset handling.  Don't write
8843         struct_addr into register.  This is done by v850_store_struct_return.
8844         (v850_extract_return_value): Care for structs.
8845         (v850_store_return_value): Ditto.
8846         (v850_store_struct_return): Actually write address.
8847
8848 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8849
8850         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8851         without debug information too.
8852
8853 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8854
8855         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8856         Make multi-arch pure.
8857         * gdbarch.h, gdbarch.c: Re-generate.
8858         * arm-tdep.c (arm_print_float_info): Update.
8859         * arch-utils.h (default_print_float_info): Update.
8860         * arch-utils.c (default_print_float_info): Update.
8861         * infcmd.c (float_info): Update call.
8862
8863 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8864
8865         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8866         the front of the initialize list.
8867
8868 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8869
8870         * infrun.c (struct inferior_status): Replace fields
8871         selected_frame_address and selected_level with field
8872         selected_frame_id.
8873         (save_inferior_status): Update.  Use get_frame_id.
8874         (struct restore_selected_frame_args): Delete.
8875         (restore_selected_frame): Update.  Use frame_find_by_id.
8876         (restore_inferior_status): Update.
8877
8878         * breakpoint.h (struct breakpoint): Change type of
8879         watchpoint_frame to frame_id.
8880         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8881         call to get_current_frame.
8882         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8883         get_current_frame.
8884         (watchpoint_check): Use frame_find_by_id.
8885
8886         * frame.h (record_selected_frame): Delete declaration.
8887         * stack.c (record_selected_frame): Delete function.
8888         
8889         * frame.h (struct frame_id): Define.
8890         (get_frame_id): Declare.
8891         (frame_find_by_id): Declare.
8892         * frame.c (frame_find_by_id): New function.
8893         (get_frame_id): New function.
8894
8895 2002-06-10  Andrey Volkov <avolkov@transas.com>
8896
8897         * ser-e7kpc.c: Fix duplicated define and call of 
8898         _initialize_ser_e7000pc
8899             
8900 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8901
8902         * signals/signals.c (target_signal_from_host): Fix #ifdef
8903         SIGRTMIN case.
8904         (do_target_signal_to_host): Likewise.
8905
8906 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8907
8908         * mips-tdep.c (mips_find_abi_section): New function.
8909         (mips_gdbarch_init): Call it.
8910
8911 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8912
8913         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8914         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8915         after Andrew's 2002-06-08 gdbarch change.
8916
8917 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8918
8919         * i386-linux-nat.c (suppy_gregset): Don't supply
8920         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8921         register cache.
8922         (fill_gregset): Don't fetch it under the same circumstances.
8923
8924 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8925
8926         * Makefile.in (callback_h): Define.
8927         (remote_sim_h): Update path to remote-sim.h.
8928         (remote-rdp.o): Add $(callback_h).
8929         (remote-sim.o): Use $(callback_h).
8930         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8931         * remote-rdp.c: Include "gdb/callback.h".
8932
8933 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8934
8935         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8936         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8937
8938 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8939
8940         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8941         * rdi-share/serpardr.c: Ditto.
8942         * rdi-share/unixcomm.c: Ditto.
8943         * rdi-share/serdrv.c: Ditto.
8944         * rdi-share/hostchan.h: Ditto.
8945         * rdi-share/hostchan.c: Ditto.
8946         * rdi-share/host.h: Ditto.
8947         * rdi-share/devsw.c: Ditto.
8948
8949         * objfiles.h: Change type of obj_private to void pointer.
8950         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8951         strcmp instead of STREQ, use LONGEST, do not use PTR
8952         * somsolib.c: Ditto.
8953
8954         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8955         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8956         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8957
8958 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8959
8960         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8961         (default_get_saved_register): Delete function.
8962         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8963         generic_unwind_get_saved_register.
8964         * gdbarch.h, gdbarch.c: Re-generate.
8965         
8966 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8967
8968         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8969         generic_func_frame_chain_valid.
8970         * gdbarch.h, gdbarch.c: Re-generate.
8971         * blockframe.c (generic_func_frame_chain_valid): Only check
8972         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8973         passing FP to PC_IN_CALL_DUMMY.
8974         Fix PR gdb/360.
8975
8976 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8977
8978         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8979         (register_gdbarch_data): Initialize init_p.
8980         (gdbarch_data): Initialize data pointer using the init function.
8981         (init_gdbarch_data): Delete function.
8982         (gdbarch_update_p): Update.
8983         (initialize_non_multiarch): Update.
8984         (struct gdbarch): Add field initialized_p.
8985         * gdbarch.h, gdbarch.c: Re-generate.
8986
8987 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8988
8989         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8990         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8991         better do the things actually here.
8992         * x86-64-tdep.c (x86_64_register_name2nr): New.
8993         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8994         (x86_64_gdbarch_init): Respect the above change.
8995         * x86-64-tdep.h (x86_64_register_name2nr)
8996         (x86_64_register_nr2name): Add prototypes.
8997         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8998
8999 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9000
9001         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9002         Delete extra braces and re-indent.
9003         (d10v_store_return_value): Char return values
9004         must be shifted over by one byte in R0.
9005         (d10v_extract_return_value): Delete extra braces, re-indent.
9006
9007 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9008
9009         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9010         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9011         (d10v_integer_to_address): Rewrite.
9012         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9013         the d10v specific functions which take care of converting to the
9014         correct space.
9015
9016 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9017
9018         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9019         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9020
9021 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9022
9023         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9024         includes.
9025         * config/tm-linux.h: Ditto.
9026         * config/alpha/tm-alphalinux.h: Ditto.
9027         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9028         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9029         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9030         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9031         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9032         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9033         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9034         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9035         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9036         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9037         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9038         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9039         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9040         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9041         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9042         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9043         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9044         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9045         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9046         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9047         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9048         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9049         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9050         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9051         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9052         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9053         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9054         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9055         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9056         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9057         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9058         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9059         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9060         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9061         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9062         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9063         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9064
9065 2002-05-04  Aidan Skinner <aidan@velvet.net>
9066
9067         * ada-exp.tab.c: New file
9068         * ada-exp.y: New file
9069         * ada-lang.c: New file
9070         * ada-lang.h: New file
9071         * ada-lex.c: New file
9072         * ada-lex.l: New file
9073         * ada-tasks.c: New file
9074         * ada-typeprint.c: New file
9075         * ada-valprint.c: New file
9076         
9077 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9078
9079         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9080         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9081
9082 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9083
9084         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9085         insetead of ppc-linux-tdep.o.
9086         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9087         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9088
9089 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9090
9091         2002-05-07 Christian Groessler <chris@groessler.org>
9092         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9093         bit register contents for little endian hosts.
9094
9095 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9096
9097         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9098         any maintainer.
9099
9100 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9101
9102         * gdbarch.h: Regenerate.
9103
9104 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9105
9106         * MAINTAINERS: Add everyone to write-after-approval list.
9107
9108 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9109
9110         * stack.c (frame_info): Use frame_register_unwind instead of
9111         saved_regs.  Mention when the SP is on the stack or in a register.
9112
9113         * frame.h (frame_register_unwind_ftype): Define.  Document.
9114         (struct frame_info): Add field register_unwind and
9115         register_unwind_cache.
9116         (frame_register_unwind): Declare.
9117         (generic_unwind_get_saved_register): Declare.
9118
9119         * frame.c (frame_register_unwind): New function.
9120         (generic_unwind_get_saved_register): New function.
9121
9122         * blockframe.c (generic_call_dummy_register_unwind): New function.
9123         (frame_saved_regs_register_unwind): New function.
9124         (set_unwind_by_pc): New function.
9125         (create_new_frame): New function.
9126         (get_prev_frame): New function.
9127
9128 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9129
9130         * a29k-share/: Delete directory.
9131         * remote-vx29k.c: Delete file.
9132
9133 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9134
9135         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9136         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9137
9138 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9139
9140         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9141         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9142         (sparc64nbsd-nat.o)
9143         (sparcnbsd-nat.o)
9144         (sparcnbsd-tdep.o): New dependency lists.
9145         * NEWS: Note new UltraSPARC NetBSD native configuration.
9146         * configure.host (sparc64-*-netbsd*): New host.
9147         * configure.tgt (sparc-*-netbsdelf*)
9148         (sparc-*-netbsd*): Set gdb_target to nbsd.
9149         (sparc64-*-netbsd*): New target.
9150         * sparc64nbsd-nat.c: New file.
9151         * sparcnbsd-nat.c: New file.
9152         * sparcnbsd-tdep.c: New file.
9153         * sparcnbsd-tdep.h: New file.
9154         * config/sparc/nbsd.mt: New file.
9155         * config/sparc/nbsd64.mh: New file.
9156         * config/sparc/nbsd64.mt: New file.
9157         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9158         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9159         (HOST_IPC): Remove.
9160         * config/sparc/nbsdaout.mt: Remove.
9161         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9162         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9163         (HOST_IPC): Remove.
9164         * config/sparc/nbsdelf.mt: Remove.
9165         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9166         sparc-nat.c compatiblity defines.
9167         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9168         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9169         * config/sparc/tm-nbsd64.h: New file.
9170         * config/sparc/tm-nbsdaout.h: Remove.
9171         * config/sparc/xm-nbsd.h: Remove.
9172
9173 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9174
9175         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9176         * sparc-tdep.c: Include osabi.h.
9177         (gdbarch_tdep): Add osabi member.
9178         (_initialize_sparc_tdep): Use gdbarch_register.
9179         (sparc_gdbarch_init): Use generic OS ABI framework.
9180         (sparc_dump_tdep): New function.
9181
9182 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9183
9184         * corefile.c (do_captured_read_memory_integer): Return non-zero
9185         result.
9186         (safe_read_memory_integer): Copy result of memory read when
9187         status is non-zero.  Also, add comments.
9188
9189 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9190
9191         * Makefile.in (ppc_tdep_h): Define.
9192         (ppc-linux-nat.o)
9193         (ppc-linux-tdep.o)
9194         (rs6000-tdep.o): Use $(ppc_tdep_h).
9195         (ppc-sysv-tdep.o)
9196         (ppcnbsd-nat.o)
9197         (ppcnbsd-tdep.o): New dependency lists.
9198         * ppc-tdep.h: Use generic OS ABI framework.
9199         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9200         (ppc_linux_init_abi): New functions.
9201         (ppc_sysv_abi_broken_use_struct_convention)
9202         (ppc_sysv_abi_use_struct_convention)
9203         (ppc_sysv_abi_push_arguments): Move to...
9204         * ppc-sysv-tdep.c: ...here.
9205         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9206         * rs6000-tdep.c (process_note_abi_tag_sections)
9207         (get_elfosabi): Remove.
9208         (rs6000_gdbarch_init): Use generic OS ABI framework.
9209         (rs6000_dump_tdep): New function.
9210         (_initialize_rs6000_tdep): Use gdbarch_register.
9211         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9212         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9213         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9214         of ppc-linux-tdep.o.
9215         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9216         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9217         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9218         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9219         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9220         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9221
9222 2002-05-29  Jim Blandy  <jimb@redhat.com>
9223
9224         * macroscope.c (default_macro_scope): Put `void' in empty argument
9225         list.
9226
9227 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9228
9229         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9230         * arch-utils.c: Include "sim-regno.h".
9231         * gdbarch.sh: Don't include "sim-regno.h".
9232         * gdbarch.h, gdbarch.c: Regenerate.
9233         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9234         here.
9235         * arch-utils.h (legacy_register_sim_regno): To here.
9236         * remote-sim.c (legacy_register_sim_regno): Move function from
9237         here.
9238         * arch-utils.c (legacy_register_sim_regno): To here.
9239
9240 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9241
9242         * sim-regno.h: New file.
9243         * Makefile.in (sim_regno_h): Define.
9244         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9245         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9246         (legacy_register_sim_regno): New function.
9247         (one2one_register_sim_regno): New function.
9248         (gdbsim_fetch_register): Rewrite.
9249         (gdbsim_store_register): Only store a register when
9250         REGISTER_SIM_REGNO is valid.
9251         * d10v-tdep.c: Include "sim-regno.h".
9252         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9253         (d10v_ts3_register_sim_regno): Ditto.
9254         * gdbarch.sh: Include "sim-regno.h".
9255         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9256         * gdbarch.h, gdbarch.c: Regenerate.
9257         * arch-utils.h (default_register_sim_regno): Delete declaration.
9258         * arch-utils.c (default_register_sim_regno): Delete function.
9259
9260 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9261
9262         * ppcnbsd-nat.c: Rewrite.
9263         * ppcnbsd-tdep.c: New file.
9264         * ppcnbsd-tdep.h: New file.
9265         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9266         solib.o, and solib-svr4.o.
9267         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9268         nbsd-tdep.o, and corelow.o.
9269
9270 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9271
9272         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9273         `tr' and `sed'.  Mention that `broken' targets are not expected to
9274         build.
9275
9276 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9277
9278         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9279         Let PC point right after the prologue before looking up symbols.
9280         
9281 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9282
9283         * i386-tdep.c (i386_register_virtual_type): Return 
9284         builtin_type_vec128i for SSE registers.
9285
9286         * gdbtypes.h (builtin_type_vec128i): Declare.
9287
9288         * gdbtypes.c (build_builtin_type_vec128i): New function.
9289         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9290         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9291         (build_gdbtypes): Initialize new builtin vector types.
9292         (_initialize_gdbtypes): Register new vector types with gdbarch.
9293
9294 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9295
9296         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9297         since it has been multi-arch'd.
9298         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9299         Move Alpha and VAX multi-arch news entries to same section
9300         as other multi-arch news.
9301
9302 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9303
9304         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9305         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9306         static.  Rename some register numbers to put them in ns32k-tdep
9307         private namespace.
9308         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9309         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9310         functions.
9311         (_initialize_ns32k_tdep): Use gdbarch_register.
9312         * ns32k-tdep.h: New file.
9313         * ns32knbsd-tdep.c: New file.
9314         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9315         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9316         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9317         REGISTER_BYTES, REGISTER_BYTE): Remove.
9318         * config/ns32k/tm-ns32k.h: New file.
9319         * config/ns32k/tm-umax.h: Remove.
9320
9321 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9322
9323         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9324         ns32k_store_struct_return, ns32k_extract_return_value,
9325         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9326         functions.
9327         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9328         ns32k_saved_pc_after_call.
9329         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9330         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9331         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9332         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9333         ns32k_extract_struct_value_address.
9334
9335 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9336
9337         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9338         ns32k_fix_call_dummy): New.
9339         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9340         ns32k_call_dummy_words.
9341         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9342         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9343         CALL_DUMMY_NARGS): Remove.
9344         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9345
9346 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9347
9348         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9349         ns32k_frame_saved_pc, ns32k_frame_args_address,
9350         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9351         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9352         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9353         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9354         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9355         (BREAKPOINT): Remove..
9356         (FRAME_CHAIN): Define as ns32k_frame_chain.
9357         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9358         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9359         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9360         (FRAME_FIND_SAVED_REGS): Remove.
9361         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9362         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9363         (POP_FRAME): Define as ns32k_pop_frame.
9364
9365 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9366
9367         * ns32k-tdep.c (ns32k_register_byte_32082,
9368         ns32k_register_byte_32382, ns32k_register_raw_size,
9369         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9370         functions.
9371         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9372         ns32k_register_byte_32382.
9373         * config/ns32k/tm-umax.h: Update copyright years.
9374         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9375         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9376         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9377         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9378         (ns32k_get_enter_addr): Fix prototype.
9379
9380 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9381
9382         * ns32k-tdep.c: Update copyright years.
9383         (ns32k_register_name_32082): New function.
9384         (ns32k_register_name_32382): Ditto.
9385         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9386         (REGISTER_NAME): Define as ns32k_register_name_32382.
9387         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9388         (REGISTER_NAME): Define as ns32k_register_name_32082.
9389
9390 2002-05-24  Jim Blandy  <jimb@redhat.com>
9391
9392         * dwarf2read.c (free_line_header): Use xfree, not free.
9393
9394 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9395
9396         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9397         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9398
9399 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9400
9401         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9402
9403 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9404
9405         From Ross Alexander at NEC Europe:
9406         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9407
9408 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9409
9410         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9411         for input, rather than parse_and_eval_address.  
9412
9413 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9414
9415         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9416         * Makefile.in (sim_d10v_h): Update definition.
9417
9418 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9419
9420         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9421         change `2002-05-22 Michael Snyder' below.
9422         (d10v_push_arguments): Ditto.
9423         (d10v_extract_return_value): Ditto.
9424
9425 2002-05-23  Jim Blandy  <jimb@redhat.com>
9426
9427         * macrotab.c (check_for_redefinition): Don't complain if the new
9428         definition is the same as the previous one.  Take more arguments
9429         to allow the comparison.
9430         (macro_define_object, macro_define_function): Pass more arguments
9431         to check_for_redefinition.
9432
9433 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9434
9435         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9436         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9437         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9438         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9439         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9440         Add a temp variable to save a call (and a memory read).
9441         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9442         if possible (so that PC_IN_CALL_DUMMY will work).
9443
9444 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9445
9446         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9447
9448 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9449
9450         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9451         fde->cie_ptr.
9452         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9453         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9454         so that frames of shared libraries are mapped correctly.
9455         (execute_stack_op): Change type of 'result' from ULONGEST to
9456         CORE_ADDR.
9457         
9458 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9459
9460         * config/alpha/tm-nbsd.h: Include solib.h.
9461
9462 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9463
9464         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9465         assumptions about the host's byte order.
9466
9467 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9468
9469         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9470         to dependency list.
9471         * alphanbsd-tdep.c: Include solib-svr4.h.
9472         * shnbsd-tdep.c: Ditto.
9473
9474 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9475
9476         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9477         nbsd-tdep.h to dependency list.
9478         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9479         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9480         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9481         nbsdaout.mh and nbsdelf.mh consistently.
9482         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9483         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9484         nbsdaout.mt and nbsdelf.mh consistently.
9485         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9486         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9487         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9488         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9489         a.out shared library stuff from here...
9490         * config/nm-nbsdaout.h: ...to here.
9491         * config/tm-nbsd.h: Remove.
9492         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9493         * config/arm/nbsd.mh: Remove.
9494         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9495         nbsd-tdep.o.
9496         * config/arm/nbsdaout.mh: New file. 
9497         * config/arm/nbsdelf.mh: New file.
9498         * config/arm/nm-nbsdaout.h: New file.
9499         * config/i386/nbsd.mh: Remove.
9500         * config/i386/nbsd.mt: Remove.
9501         * config/i386/nbsdaout.mh: New file.
9502         * config/i386/nbsdaout.mt: New file.
9503         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9504         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9505         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9506         i386_register_u_addr): Remove.
9507         * config/i386/nm-nbsdaout.h: New file.
9508         * config/i386/nm-nbsdelf.h: Remove.
9509         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9510         (USE_STRUCT_CONVENTION): Remove.
9511         * config/i386/tm-nbsdaout.h: New file.
9512         * config/i386/tm-nbsdelf.h: Remove.
9513         * config/m68k/nbsd.mh: Remove.
9514         * config/m68k/nbsd.mt: Remove.
9515         * config/m68k/nbsdaout.mh: New file.
9516         * config/m68k/nbsdaout.mt: New file. 
9517         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9518         * config/m68k/nm-nbsdaout.h: New file.
9519         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9520         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9521         * config/ns32k/nbsd.mh: Remove.
9522         * config/ns32k/nbsd.mt: Remove. 
9523         * config/ns32k/nbsdaout.mh: New file.
9524         * config/ns32k/nbsdaout.mt: New file.
9525         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9526         * config/ns32k/nm-nbsdaout.h: New file.
9527         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9528         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9529         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9530         (SVR4_SHARED_LIBS): Remove.
9531         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9532         * config/sparc/nbsd.mh: Remove.
9533         * config/sparc/nbsd.mt: Remove.
9534         * config/sparc/nbsdaout.mh: New file.
9535         * config/sparc/nbsdaout.mt: New file.
9536         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9537         * config/sparc/nbsdelf.mt: New file.
9538         * config/sparc/nm-nbsdaout.h: New file.   
9539         * config/sparc/nm-nbsdelf.h: Remove.
9540         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9541         * config/sparc/tm-nbsdaout.h: New file.
9542
9543 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9544
9545         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9546         mipsnbsd-tdep.c
9547         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9548
9549 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9550
9551         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9552         shnbsd-nat.c.
9553         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9554
9555 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9556
9557         * NEWS: Note new MIPS NetBSD native configuration. 
9558         * configure.host (mips*-*-netbsd*): New host. 
9559         * configure.tgt (mips*-*-netbsd*): New target. 
9560         * mipsnbsd-nat.c: New file.
9561         * mipsnbsd-tdep.c: New file.
9562         * mipsnbsd-tdep.h: New file.
9563         * config/mips/nbsd.mh: New file.
9564         * config/mips/nbsd.mt: New file.
9565         * config/mips/nm-nbsd.h: New file.
9566         * config/mips/tm-nbsd.h: New file.
9567
9568 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9569
9570         * Makefile.in (SFILES): Add osabi.c.
9571         (COMMON_OBS): Add osabi.o.
9572         (osabi.o): New dependency list.
9573         * osabi.c: New file.
9574         * osabi.h: New file.
9575         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9576
9577         * Makefile.in (alpha_tdep_h): Define and use instead of
9578         alpha-tdep.h.
9579         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9580         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9581         Remove.
9582         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9583         * alpha-tdep.h: Include osabi.h.
9584         (alpha_abi): Remove.
9585         (gdbarch_tdep): Use generic OS ABI framework.
9586         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9587         gdbarch_register_osabi.
9588         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9589         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9590         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9591
9592         * Makefile.in (sh_tdep_h): Add osabi.h.
9593         * sh-tdep.h (sh_osabi): Remove.
9594         (gdbarch_tdep): Use generic OS ABI framework.
9595         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9596         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9597         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9598         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9599
9600         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9601         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9602         gdbarch_register_osabi.
9603         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9604         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9605         (get_elfosabi): Rename to...
9606         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9607         ABI framework support routines.
9608         (arm_gdbarch_init): Use generic OS ABI framework.
9609         (arm_dump_tdep): Likewise.
9610         (_initialize_arm_tdep): Likewise.
9611         * arm-tdep.h: Include osabi.h.
9612         (arm_abi): Remove.
9613         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9614         osabi member.
9615         (arm_gdbarch_register_os_abi): Remove prototype.
9616         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9617         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9618
9619         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9620         * mips-tdep.c: Include osabi.h.
9621         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9622         OS ABI framework.
9623
9624 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9625
9626         * h8300-tdep.c: Fix formatting.
9627
9628 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9629
9630         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9631         printing vector registers.
9632
9633 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9634
9635         From Fernando Nasser:
9636         * remote.c (remote_async_open_1): Re-throw the exception when the
9637         connection fails.
9638         (remote_cisco_open): Ditto.
9639         (remote_open_1): Ditto.
9640
9641 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9642
9643         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9644         (remote_start_remote): Add uiout parameter.  Pass through to
9645         remote_start_remote_dummy.
9646         (remote_open_1): Use catch_exception instead of catch_errors.
9647         (remote_async_open_1): Ditto.
9648         (remote_cisco_open): Ditto.
9649
9650 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9651
9652         * remote.c (remote_start_remote): Replace PTR with void pointer.
9653         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9654         static.
9655
9656 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9657
9658         * gdb_indent.sh: Allow the script to be run in the sim directory.
9659
9660 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9661
9662         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9663         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9664
9665         * corelow.c (core_open): Only call set_gdbarch_from_file if
9666         exec_bfd is NULL.
9667
9668 2002-05-17  Andrey Volkov <avolkov@transas.com>
9669
9670         * h8300-tdep.c: Add support of EXR register
9671         * config/h8300/tm-h8300.h: Ditto. 
9672         
9673 2002-05-17  Andrey Volkov <avolkov@transas.com>
9674
9675         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9676         
9677 2002-05-17  Andrey Volkov <avolkov@transas.com>
9678
9679         * h8300-tdep.c: Change literal regnums to REGNO.
9680         
9681 2002-05-17  Jim Blandy  <jimb@redhat.com>
9682
9683         * NEWS: Note addition of macro support.
9684
9685         Expand preprocessor macros in C expressions.
9686         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9687         (scan_macro_expansion, scanning_macro_expansion,
9688         finished_macro_expansion): New function declarations.
9689         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9690         variable declarations.
9691         * parser-defs.h (expression_context_pc): New declaration.
9692         * parse.c (expression_context_pc): New variable.
9693         (parse_exp_1): Set expression_context_pc, as well as
9694         expression_context_block.
9695         * c-exp.y (yylex): If we're not already reading the result of a
9696         macro expansion, try to macro-expand the next token.  When we're
9697         done scanning a macro expansion, switch back to the mainline text.
9698         Commas and `if's in a macro's expansion don't terminate the input.
9699         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9700         (macro_original_text, macro_expanded_text,
9701         expression_macro_lookup_func, expression_macro_lookup_baton): New
9702         variables.
9703         (scan_macro_expansion, scanning_macro_expansion,
9704         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9705         c_preprocess_and_parse): New functions.
9706         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9707         c_preprocess_and_parse, instead of c_parse.
9708         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9709         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9710
9711 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9712
9713         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9714         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9715         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9716
9717 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9718
9719         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9720
9721 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9722
9723         * Makefile.in (sh_tdep_h): Define and use.
9724         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9725         register enum): Move to...
9726         * * sh-tdep.h: ...here.
9727         * sh-tdep.c: Include sh-tdep.h.
9728         * sh3-rom.c: Likewise.
9729         * shnbsd-tdep.c: Likewise.
9730
9731 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9732
9733         * arm-tdep.c: Spelling fix in comment.
9734
9735 2002-05-16  Jim Blandy  <jimb@redhat.com>
9736
9737         Add commands for manually expanding macros and showing their
9738         definitions.
9739         * macrocmd.c, macroscope.c, macroscope.h: New files.
9740         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9741         (macroscope_h): New variable.
9742         (HFILES_NO_SRCDIR): Add macroscope.h.
9743         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9744         (macroscope.o, macrocmd.o): New rules.
9745
9746         Teach the Dwarf 2 reader to read macro information.
9747         * dwarf2read.c: #include "macrotab.h".
9748         (dwarf_macinfo_buffer): New variable.
9749         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9750         dwarf_macinfo_size.
9751         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9752         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9753         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9754         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9755         dwarf2_macro_spaces_in_definition): New complaints.
9756         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9757         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9758         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9759         the partial symbol table.
9760         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9761         from what's recorded in the partial symbol table.
9762         (read_file_scope): If the compilation unit has a
9763         `DW_AT_macro_info' attribute, read its macro information.
9764         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9765
9766 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9767
9768         Fix PR gdb/546
9769         * ser-tcp.c: Don't include <netinet/udp.h>.
9770
9771 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9772
9773         * MAINTAINERS: Update my email address.
9774
9775 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9776
9777         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9778         include file of the same name.
9779
9780 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9781
9782         * configure.tgt: Mark v850 as multi-arched.
9783         * config/v850/tm-v850.h: Remove file.
9784         * config/v850/v850.mt: Eliminate TM_FILE.
9785
9786 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9787
9788         * v850-tdep.c: Full multi-arch.
9789         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9790         Define GDB_MULTI_ARCH to 2.
9791
9792 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9793
9794         * p-exp.y (current_type): New static variable.
9795         Carries the type of the expression at the position that is parsed.
9796         (push_current_type, pop_current_type): Two new functions. Used
9797         to store/restore current_type in expression on specific tokens.
9798         (search_field): New static variable. Set to one after parsing a point
9799         as at that point only a FIELDNAME token should be searched.
9800         (FIELDNAME): New token. After a point only a token belonging to 
9801         current_type type definition is allowed.
9802         (all over token rules): reset and change current_type according
9803         to rules.
9804         (exp '[' rule): insert implicit array index field if
9805         exp is a pascal string type.
9806
9807 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9808
9809         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9810         frame info.  Use frame_info's saved_regs instead of matching member
9811         in extra_frame_info throughout.
9812         (v850_frame_init_saved_regs): New function.
9813         (v850_init_extra_frame_info): Move most functionality into
9814         v850_frame_init_saved_regs().
9815         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9816         (v850_frame_find_saved_regs): Remove declaration.
9817         (FRAME_FIND_SAVED_REGS): Remove definition.
9818         (v850_frame_init_saved_regs): Add declaration.
9819         (FRAME_INIT_SAVED_REGS): Add definition.
9820
9821 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9822
9823         * v850-tdep.c: Begin multi-arch'ing v850.
9824         (v850_target_architecture_hook): Remove function.
9825         (v850_gdbarch_init): New function.  Add code previously in
9826         v850_target_architecture_hook().
9827         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9828         Call register_gdbarch_init() instead.
9829
9830 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9831
9832         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9833         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9834         (fixup_class_method_type): Likewise.
9835
9836 2002-05-15  Jim Blandy  <jimb@redhat.com>
9837
9838         Add macro structures to GDB's symbol tables.  Nobody puts anything
9839         in them yet.
9840         * symtab.h (struct symtab): New member: `macro_table'.
9841         * buildsym.h (pending_macros): New global variable.
9842         * buildsym.c: #include "macrotab.h".
9843         (buildsym_init): Initialize `pending_macros'.
9844         (end_symtab): If we found macro information while reading a CU's
9845         debugging info, do build a symtab structure for it.  Make the
9846         symtab point to the macro information, and clear the
9847         `pending_macros' pointer which held it while we were reading the
9848         debug info.
9849         (really_free_pendings): Free any pending macro table.
9850         * objfiles.h (struct objfile): New member: `macro_cache'.
9851         * objfiles.c (allocate_objfile): Set allocate and free functions
9852         for the macro cache's objstack.
9853         (free_objfile): Empty the macro cache's obstack.
9854         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9855         set new allocate and free functions for it.
9856         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9857         free functions for the macro cache's objstack.  (Why is this
9858         function building its own objfile?)
9859         * symmisc.c (print_objfile_statistics): Print statistics on the
9860         macro bcache.
9861         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9862
9863 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9864
9865         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9866         (REGISTER_U_ADDR): Delete definition.
9867         (arm_register_u_addr): Delete declaration.
9868
9869 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9870
9871         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9872         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9873
9874 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9875
9876         * regcache.c (register_valid): Revise comments refering to "Not
9877         available" and "unavailable".
9878         * frame.c (frame_register_read): Ditto.
9879         * findvar.c (value_of_register): Ditto.
9880
9881 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9882
9883         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9884         (remote-sim.o): Update dependencies.
9885         (d10v-tdep.o): Specify dependencies.
9886         (sim_d10v_h): Define.
9887
9888 2002-05-14  Jim Blandy  <jimb@redhat.com>
9889
9890         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9891         * macrotab.c (macro_lookup_inclusion, find_definition,
9892         new_macro_table): Same.
9893         
9894         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9895         not `! strcmp ()'.  This is a dubious improvement.
9896         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9897
9898         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9899         although it's not necessary, to avoid a warning.
9900
9901 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9902
9903         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9904         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9905         TYPE_INSTANCE_FLAGS.
9906         (struct main_type): New.
9907         (struct type): Move most members to struct main_type.  Change
9908         cv_type and as_type to new type_chain member.  Add instance_flags.
9909         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9910         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9911         (finish_cv_type): Remove prototype.
9912         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9913         Set TYPE_CHAIN.
9914         (alloc_type_instance): New function.
9915         (smash_type): New function.
9916         (make_pointer_type, make_reference_type, make_function_type)
9917         (smash_to_member_type, smash_to_method_type): Call smash_type.
9918         (make_qualified_type): New function.
9919         (make_type_with_address_space): Call make_qualified_type.
9920         (make_cv_type): Likewise.
9921         (finish_cv_type): Remove unnecessary function.
9922         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9923         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9924         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9925         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9926         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9927         * hpread.c (hpread_read_struct_type): Likewise.
9928         * stabsread.c (read_struct_type): Likewise.
9929
9930 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9931
9932         * configure.tgt: Add a catch all sh* target, for cases like
9933         sh[2,3,4]-elf and sh-hms.
9934
9935 2002-05-14  Keith Seitz  <keiths@redhat.com>
9936
9937         * event-loop.c (create_file_handler): Don't do anything but
9938         update data when we are given a fd which we are already
9939         monitoring.
9940
9941 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9942
9943         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9944         (update_context): Use __func__ in warnings.
9945         
9946 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9947
9948         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9949         and tcp_close to net_open and net_close.
9950         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9951         using UDP if requested.  Don't try to disable Nagle on UDP
9952         sockets.
9953         * remote.c (remote_serial_open): New function.  Warn about UDP.
9954         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9955
9956 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9957
9958         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9959
9960 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9961
9962         * configure.tgt: Remove sh-hms target.
9963         * MAINTAINERS: Don't list sh-hms as a separate target.
9964
9965 2002-05-13  Jim Blandy  <jimb@redhat.com>
9966
9967         Add first preprocessor macro-expansion files.
9968         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9969         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9970         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9971         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9972         (COMMON_OBS): Add macrotab.o, macroexp.o.
9973         (macroexp.o, macrotab.o): New rules.
9974
9975 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9976
9977         * config/m88k/tm-m88k.h: Update copyright.
9978         (m88k_target_write_pc): Declare
9979         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9980         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9981         (SHIFT_INST_REGS): Update definition.
9982         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9983         using old definition of TARGET_WRITE_PC.
9984         * regcache.c (generic_target_write_pc): Delete code handling
9985         NNPC_REGNUM.
9986         * gdbarch.sh (NNPC_REGNUM): Delete.
9987         * gdbarch.h, gdbarch.c: Regenerate.
9988
9989 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9990
9991         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9992         builtin reg number.
9993
9994 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9995
9996         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9997         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9998         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9999         access macros.
10000         * c-typeprint.c (cp_type_print_method_args): Likewise.
10001         (c_type_print_args): Likewise.
10002         * d10v-tdep.c (d10v_push_arguments): Likewise.
10003         (d10v_extract_return_value): Likewise.
10004         * expprint.c (print_subexp): Likewise.
10005         * gdbtypes.c (lookup_primitive_typename): Likewise.
10006         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10007         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10008         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10009         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10010         (TYPE_VECTOR): Likewise.
10011         * hpread.c (hpread_read_struct_type)
10012         (fix_static_member_physnames, fixup_class_method_type)
10013         (hpread_type_lookup): Likewise.
10014         * mdebugread.c (parse_symbol, parse_type): Likewise.
10015         * p-lang.c (is_pascal_string_type): Likewise.
10016         * valops.c (hand_function_call): Likewise.
10017         * x86-64-tdep.c (classify_argument): Likewise.
10018
10019         * hpread.c (hpread_read_function_type)
10020         (hpread_read_doc_function_type): Call replace_type.
10021         * dstread.c (create_new_type): Delete.
10022         (decode_dst_structure, process_dst_function): Call alloc_type.
10023         Use type access macros.
10024
10025 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10026
10027         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10028         the're not supported by the current architecture.
10029         (i387_fill_fxsave): Likewise.
10030
10031 2002-05-12  Fred Fish  <fnf@redhat.com>
10032
10033         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10034         sect_index_xxx members to index the first slot in section_offsets
10035         if all of the section_offsets are zero.
10036
10037 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10038
10039         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10040         checked in with last change.
10041
10042 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10043
10044         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10045         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10046         config.sub.
10047
10048 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10049
10050         * Makefile.in: Update dependencies.
10051
10052 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10053
10054         * language.c (local_hex_string_custom): Simplify.  Do not depend
10055         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10056
10057         * memattr.c (mem_info_command): Replace calls to
10058         longest_local_hex_string and longest_local_hex_string_custom.
10059         * buildsym.c (make_blockvector): Ditto.
10060         * solib.c (info_sharedlibrary_command): Ditto.
10061         * tracepoint.c (tracepoints_info): Ditto.
10062         * symtab.c (print_msymbol_info): Ditto.
10063
10064         * language.c (local_hex_string): Delete.
10065         (local_hex_string_custom): Delete.
10066         (longest_local_hex_string): Rename to local_hex_string.
10067         (longest_local_hex_string_custom): Rename to
10068         local_hex_string_custom.
10069         * language.h (local_hex_string): Change parameter type to LONGEST.
10070         (local_hex_string_custom): Ditto.
10071         (longest_local_hex_string): Delete declaration.
10072         (longest_local_hex_string_custom): Ditto.
10073
10074         * solib.c: Update copyright.
10075         * memattr.c: Update copyright.
10076         
10077 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10078
10079         * arch-utils.h (legacy_register_to_value): Declare.
10080         (legacy_value_to_register): Declare.
10081         (legacy_convert_register_p): Declare.
10082         * arch-utils.c (legacy_register_to_value): New function.
10083         (legacy_value_to_register): New function.
10084         (legacy_convert_register_p): New function.
10085
10086         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10087         (VALUE_TO_REGISTER): Define.
10088         (CONVERT_REGISTER_P): Define.
10089         * gdbarch.h, gdbarch.c: Regenerate.
10090
10091         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10092         VALUE_TO_REGISTER.
10093         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10094         CONVERT_REGISTER_P.
10095
10096 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10097             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10098
10099         * Makefile.in: Update dependencies for valops.c.
10100         * valops.c: Include "gdb_assert.h".
10101         (typecmp): Skip THIS parameter to methods.
10102         (find_method_list): Remove static_memfuncp argument,
10103         update callers.  Check for stub methods.
10104         (find_value_oload_method_list): Don't set *static_memfuncp.
10105         (find_overload_match): Don't check for stub methods.  Assert
10106         that methods are not stubbed.  Handle static methods.
10107         (value_find_oload_method_list): Remove static_memfuncp argument.
10108         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10109         to the argument list for static stub methods.
10110         * value.h (value_find_oload_method_list): Update prototype.
10111
10112 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10113
10114         * arch-utils.h (generic_register_size): Declare.
10115         (generic_register_raw_size, generic_register_virtual_size): Delete
10116         declarations.
10117         * arch-utils.c (generic_register_raw_size): Delete.
10118         (generic_register_size): New function.
10119         (generic_register_virtual_size): Delete.
10120
10121         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10122         default generic_register_size.
10123         * gdbarch.h, gdbarch.c: Re-generate.
10124         
10125         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10126         register_virtual_size.
10127         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10128         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10129
10130 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10131
10132         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10133         * gdbarch.h, gdbarch.c: Regenerate.
10134         * gnu-v3-abi.c: Update copyright.
10135         (vtable_address_point_offset): Update.
10136         (gnuv3_rtti_type): Update.
10137         (gnuv3_baseclass_offset): Update.
10138         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10139         (init_fetch_link_map_offsets): Update.
10140         * remote.c (get_remote_state): Update.
10141         
10142 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10143
10144         * TODO: Remove value_headof/value_from_vtable_info comment.
10145         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10146         * values.c (value_headof, value_from_vtable_info): Delete.
10147         * value.h (value_from_vtable_info): Delete prototype.
10148
10149 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10150
10151         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10152         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10153         $(gdb_regex_h).
10154         (gdb_assert_h): Define.
10155         (gdb_wait_h): Define.
10156         (gdb_regex_h): Define.
10157
10158 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10159
10160         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10161         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10162
10163 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10164
10165         * nbsd-tdep.c: Fix comment.
10166
10167 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10168
10169         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10170         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10171         (nbsd-tdep.o): New dependency list.
10172         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10173         nbsd-tdep.h.
10174         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10175         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10176         * nbsd-tdep.c: New file.
10177         * nbsd-tdep.h: New file.
10178         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10179         nbsd-tdep.h.
10180         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10181         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10182         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10183         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10184
10185 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10186
10187         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10188         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10189         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10190         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10191         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10192         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10193
10194 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10195
10196         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10197         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10198         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10199         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10200         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10201         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10202         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10203
10204 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10205
10206         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10207         fetch_elfcore_registers to...
10208         * i386nbsd-tdep.c: ...here.
10209         (i386nbsd_use_struct_convention): Rename to...
10210         (i386nbsd_aout_use_struct_convention): ...this.
10211         (i386nbsd_supply_reg): New function.
10212         (i386nbsd_fill_reg): New function.
10213         (fetch_core_registers): Use i386nbsd_supply_reg.
10214         (fetch_elfcore_registers): Likewise.
10215         (_initialize_i386nbsd_tdep): New function.
10216         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10217         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10218         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10219         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10220         (i386nbsd_aout_use_struct_convention): ...this.
10221
10222 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10223
10224         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10225         (store_inferior_registers): Use shnbsd_fill_reg.
10226         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10227         sh_nbsd_supply_register): Collapse into...
10228         (shnbsd_supply_reg): ...this.
10229         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10230         (shnbsd_fill_reg): ...this.
10231         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10232         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10233         (fetch_core_registers): Use shnbsd_supply_reg.
10234         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10235         (sh_nbsd_core_fns): Rename to...
10236         (shnbsd_core_fns): ...this.
10237         (sh_nbsd_elfcore_fns): Rename to...
10238         (shnbsd_elfcore_fns): ...this.
10239         (sh_nbsd_init_abi): Rename to...
10240         (shnbsd_init_abi): ...this.
10241         (_initialize_sh_nbsd_tdep): Rename to...
10242         (_initialize_shnbsd_tdep): ...this.
10243         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10244         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10245         sh_nbsd_fill_register): Remove prototypes.
10246         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10247
10248 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10249
10250         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10251         (i387-nat.o): Delete dependency list.
10252         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10253         (x86-64-linux-nat.o): Likewise.
10254         * i387-nat.c: Delete file, moving contents to...
10255         * i387-tdep.c: ...here.
10256         * i387-nat.h: Rename...
10257         * i387-tdep.h: ...to this.
10258         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10259         * i386-linux-nat.c: Likewise.
10260         * i386bsd-nat.c: Likewise.
10261         * i386gnu-nat.c: Likewise.
10262         * i386nbsd-nat.c: Likewise.
10263         * i386v4-nat.c: Likewise.
10264         * x86-64-linux-nat.c: Likewise.
10265         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10266         * config/i386/go32.mh (NATDEPFILES): Likewise.
10267         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10268         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10269         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10270         * config/i386/linux.mh (NATDEPFILES): Likewise.
10271         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10272         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10273         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10274         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10275
10276 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10277
10278         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10279         (alphanbsd-nat.o): Remove dependency list.
10280         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10281         * alphanbsd-nat.c: Delete.  Contents moved to...
10282         * alphanbsd-tdep.c: ...here.
10283         (_initialize_alphanbsd_tdep): Register core functions.
10284         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10285
10286 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10287
10288         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10289         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10290         (alphanbsd-nat.o): Likewise.
10291         (alphabsd-tdep.o): New dependency list.
10292         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10293         (fill_gregset): Use alphabsd_fill_reg.
10294         (supply_fpregset): Use alphabsd_supply_fpreg.
10295         (fill_fpregset): Use alphabsd_fill_fpreg.
10296         (fetch_inferior_registers): Use struct reg and struct fpreg
10297         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10298         and alphabsd_supply_fpreg.
10299         (store_inferior_registers): Use struct reg and struct fpreg
10300         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10301         and alphabsd_fill_fpreg.
10302         * alphabsd-tdep.c: New file.
10303         * alphabsd-tdep.h: New file.
10304         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10305         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10306         alphabsd_supply_fpreg.
10307         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10308         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10309
10310 2002-05-11  Eric Christopher  <echristo@redhat.com>
10311
10312         * mips-tdep.c (mips_double_register_type): Fix thinko.
10313         (mips_single_register_type): Ditto.
10314         * MAINTAINERS: Add self.
10315
10316 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10317
10318         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10319         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10320         right thing on architectures with different endianness and/or
10321         integer sizes.
10322
10323 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10324
10325         From Christian Limpach <chris@Pin.LU>
10326         * configure.in: Change sed expression which comments out
10327         NATDEPFILES to also comment out continuation lines.
10328         * configure: Regenerate.
10329
10330 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10331
10332         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10333         big patch.
10334
10335 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10336
10337         * sh-tdep.c: Include correct file.
10338
10339 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10340
10341         New support for sh64-elf (sh5) target.
10342
10343         * configure.tgt: For sh64-elf target, default to sh-elf.
10344
10345         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10346         (struct gdbarch_tdep): Add new fields for new registers and ABI
10347         info.
10348
10349         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10350         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10351         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10352         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10353         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10354         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10355         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10356         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10357         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10358         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10359         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10360         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10361         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10362         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10363         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10364         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10365         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10366         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10367         sign_extend, sh64_nofp_frame_init_saved_regs,
10368         sh64_init_extra_frame_info, sh64_get_saved_register,
10369         sh64_extract_struct_value_address, sh64_pop_frame,
10370         sh64_push_arguments, sh64_extract_return_value,
10371         sh64_store_return_value, sh64_show_media_regs,
10372         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10373         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10374         sh_sh64_register_virtual_type,
10375         sh_sh64_register_convert_to_virtual,
10376         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10377         sh64_register_read, sh64_pseudo_register_write,
10378         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10379         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10380         sh64_do_pseudo_register, sh_compact_do_registers_info,
10381         sh64_do_registers_info, sh_gdbarch_init): New functions.
10382
10383 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10384
10385         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10386
10387 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10388
10389         * linespec.c (decode_line_1): Check for a double quote after
10390         a filename correctly.
10391
10392 2002-05-10  Jim Blandy  <jimb@redhat.com>
10393
10394         Properly track the size of the current objfile's .debug_line section.
10395         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10396         (DWARF_LINE_SIZE): New macro.
10397         (dwarf2_build_psymtabs_hard): Record the line section's size in
10398         the partial symbol table.
10399         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10400         symbol table.
10401
10402 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10403
10404         * ia64-tdep.c: Handle breakpoints on L instruction type
10405         in MLX instruction bundle by moving the breakpoint to
10406         the third slot (X instruction type) as L holds only data.
10407
10408 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10409
10410         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10411         (process_one_symbol): Complain about discarding local symbols
10412         due to a misplaced N_LBRAC entry.
10413
10414 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10415
10416         From Daniel Berlin <dan@cgsoftware.com>
10417         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10418         decrease the depth we are at, in the case of templates.
10419
10420 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10421
10422         * mips-tdep.c (mips_float_register_type): New function.
10423         (mips_double_register_type): New function.
10424         (mips_print_register): Use them.
10425         (do_fp_register_row): Likewise.
10426
10427 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10428
10429         * signals/signals.c (signals): Remove conditional compilation around
10430         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10431         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10432
10433 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10434
10435         * remote-rdp.c (remote_rdp_can_run): Remove.
10436
10437 2002-05-09  Tom Tromey  <tromey@redhat.com>
10438
10439         * jv-valprint.c (java_val_print): Handle `char' as a special case
10440         of TYPE_CODE_INT.
10441
10442 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10443
10444         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10445         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10446         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10447         str r(0123),[sp,#nn].
10448         (arm_skip_prologue): Ditto.  Also make disassembly
10449         order-independent by placing it in a loop.
10450
10451 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10452
10453         * stabsread.c (read_type): Add recognition for new attribute:
10454         "@V;" means that an array type is actually a vector.
10455         This is analogous to the vector flag that's been added to dwarf2.
10456
10457 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10458
10459         * i386-tdep.h (i386_abi): New enum.
10460         (struct gdbarch_tdep): Replace os_ident member with abi.
10461         (i386_gdbarch_register_os_abi): New prototype.
10462         * i386-tdep.c (i386_abi_names): New array.
10463         (process_note_abi_tag_sections): Removed.
10464         (process_note_sections): New function.
10465         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10466         (struct i386_abi_handler): New struct.
10467         (i386_abi_handler_list): New variable.
10468         (i386_gdbarch_register_os_abi): New function.
10469         (i386_gdbarch_init): Adapt for the changes given above.
10470
10471 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10472
10473         * gregset.h: Say "GNU/Linux".
10474
10475 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10476
10477         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10478         (build_gdbtypes): Build builtin_type_v2_float.
10479         (_initialize_gdbtypes): Register new builtin type.
10480
10481 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10482
10483         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10484         (clear_gdbarch_swap): New function.
10485         (initialize_non_multiarch): Call.
10486         (gdbarch_update_p): Before calling init(), swap out and clear the
10487         existing architecture.
10488         * gdbarch.c: Regenerate.
10489
10490 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10491
10492         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10493         alphanbsd-tdep.c.
10494
10495 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10496
10497         * sh-nbsd-nat.c: Rename to...
10498         * shnbsd-nat.c: ...this.
10499         * sh-nbsd-tdep.c: Rename to...
10500         * shnbsd-tdep.c: ...this.
10501         * sh-nbsd-tdep.h: Rename to...
10502         * shnbsd-tdep.h: ...this.
10503         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10504         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10505
10506 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10507
10508         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10509         concatenation for command help messages.
10510
10511 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10512
10513         * NEWS: Note new sh*-*-netbsdelf* configuration.
10514         * configure.host: Set gdb_host_cpu to sh for all sh*.
10515         (sh*-*-netbsdelf*): New host.
10516         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10517         (sh*-*-netbsdelf*): New target.
10518         * sh-nbsd-nat.c: New file.
10519         * sh-nbsd-tdep.c: New file.
10520         * sh-nbsd-tdep.h: New file.
10521         * config/sh/nbsd.mh: New file.
10522         * config/sh/nbsd.mt: New file.
10523         * config/sh/nm-nbsd.h: New file.
10524         * config/sh/tm-nbsd.h: New file.
10525
10526 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10527
10528         * sh-tdep.c (sh_osabi_names): Declare.
10529         (process_note_abi_tag_sections): New function.
10530         (get_elfosabi): Ditto.
10531         (sh_gdbarch_register_os_abi): Ditto.
10532         (sh_dump_tdep): Ditto.
10533         _initialize_sh_tdep): Use gdbarch_register to register
10534         sh_gdbarch_init and sh_dump_tdep.
10535         * config/sh/tm-sh.h (sh_osabi): Declare.
10536         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10537
10538 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10539
10540         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10541         (thumb_scan_prologue): Ditto.
10542         (arm_find_callers_reg): Ditto.
10543         (arm_frame_chain): Ditto.
10544         (arm_init_extra_frame_info): Ditto.
10545         (arm_frame_saved_pc): Ditto.
10546         (arm_pop_frame): Ditto.
10547         (arm_push_return_address): New function.
10548         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10549         call_dummy_location, call_dummy_breakpoint_offset_p,
10550         call_dummy_breakpoint_offset, call_dummy_p,
10551         call_dummy_stack_adjust_p, call_dummy_words,
10552         sizeof_call_dummy_words, call_dummy_start_offset,
10553         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10554         call_dummy_address, push_return_address and push_dummy_frame for
10555         generic dummy frames.
10556
10557 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10558
10559         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10560         size computation for alloca.
10561         (sh_fp_frame_init_saved_regs): Likewise.
10562
10563 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10564
10565         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10566         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10567         * arm-tdep.c (arm_store_return_value): Use them.
10568         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10569         * remote-rdp.c (remote_rdp_fetch_register): Use
10570         ARM_MAX_REGISTER_RAW_SIZE.
10571         (remote_rdp_store_register): Likewise.
10572
10573 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10574
10575         * dwarf2cfi.c: Code cleanup, removed unused variables,
10576         added default labels to switch {} statements.
10577         * x86-64-tdep.c: Ditto.
10578         * x86-64-linux-nat.c: Ditto.
10579
10580 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10581
10582         * solib.h: Protect against multiple inclusion.
10583
10584 2002-05-06  Jim Blandy  <jimb@redhat.com>
10585
10586         Add first preprocessor macro-expansion files.
10587         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10588         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10589         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10590         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10591         (COMMON_OBS): Add macrotab.o, macroexp.o.
10592         (macroexp.o, macrotab.o): New rules.
10593
10594         Separate the job of reading the line number info statement program
10595         header (...expialidocious) out into its own function.
10596         * dwarf2read.c (struct line_head, struct filenames, struct
10597         directories): Replace with...
10598         (struct line_header): New structure, containing the full
10599         contents of the statement program header, including the
10600         include directory and file name tables.
10601         (read_file_scope): If we have line number info, instead of just
10602         calling dwarf_decode_lines to do all the work, call
10603         dwarf_decode_line_header first to get a `struct line_header'
10604         containing the data in the statement program header, and then
10605         pass that to dwarf_decode_lines, which will pick up where that
10606         left off.  Be sure to clean up the `struct line_header' object.
10607         (dwarf_decode_line_header, free_line_header, add_include_dir,
10608         add_file_name): New functions.
10609         (dwarf_decode_lines): Move all the code to read the statement
10610         program header into dwarf_decode_line_header.  Take the line
10611         header it built as the first argument, instead of the offset to
10612         the compilation unit's line number info.  Use the new `struct
10613         line_header' type instead of the old structures.  No need to do
10614         cleanups here now, since we don't allocate anything.
10615         (dwarf2_statement_list_fits_in_line_number_section,
10616         dwarf2_line_header_too_long): New complaints.
10617
10618 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10619
10620         * gdbtypes.c (init_vector_type): New function.
10621         (build_builtin_type_vec128): Simplify the representation of SIMD
10622         registers.
10623         (build_gdbtypes): Initialize new builtin vector types.
10624         (_initialize_gdbtypes): Register new vector types with gdbarch.
10625         (builtin_type_v4_float, builtin_type_v4_int32,
10626         builtin_type_v8_int16, builtin_type_v16_int8,
10627         builtin_type_v2_int32, builtin_type_v4_int16,
10628         builtin_type_v8_int8): New (renamed) SIMD types.
10629
10630 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10631
10632         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10633         (i387_fill_fxsave): Likewise.
10634
10635 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10636
10637         * alpha-tdep.c (alpha_extract_return_value): Don't use
10638         non-constant array size in prototype.
10639
10640 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10641
10642         From Brian Taylor <briant at model dot com>:
10643         * ui-out.c (ui_out_field_core_addr): Use the function
10644         longest_local_hex_string_custom'to format addresses > 32 bits
10645         wide.
10646
10647         * ui-out.c (ui_out_field_core_addr): Update comment.
10648
10649 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10650
10651         * stack.c (select_and_print_frame): Make static.  Delete the
10652         parameter `level'.
10653         (func_command): Update call.
10654         (select_frame_command): Delete code computing the frame level.
10655         * frame.h (select_and_print_frame): Delete declaration.
10656
10657 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10658
10659         * sparc-tdep.c (sparc_get_saved_register): Comment why
10660         get_prev_frame call is safe.
10661
10662 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10663
10664         * frame.h (select_frame): Delete level parameter.
10665         * stack.c (select_frame): Update.  Use frame_relative_level to
10666         obtain the frame's level.
10667         (select_and_print_frame): Update call.
10668         (select_frame_command): Ditto.
10669         (up_silently_base): Ditto.
10670         (down_silently_base): Ditto.
10671         * ocd.c (ocd_start_remote): Ditto.
10672         * remote-rdp.c (remote_rdp_open): Ditto.
10673         * remote-mips.c (mips_initialize): Ditto.
10674         (common_open): Ditto.
10675         * remote-e7000.c (e7000_start_remote): Ditto.
10676         * m3-nat.c (select_thread): Ditto.
10677         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10678         (child_get_current_exception_event): Ditto.
10679         * varobj.c (varobj_create): Ditto.
10680         (varobj_update): Ditto.
10681         (c_value_of_root): Ditto.
10682         * tracepoint.c (finish_tfind_command): Ditto.
10683         * corelow.c (core_open): Ditto.
10684         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10685         * thread.c (info_threads_command): Ditto.
10686         (switch_to_thread): Ditto.
10687         * infrun.c (normal_stop): Ditto.
10688         (restore_selected_frame): Ditto.
10689         (restore_inferior_status): Ditto.
10690         * breakpoint.c (insert_breakpoints): Ditto.
10691         (watchpoint_check): Ditto.
10692         (bpstat_stop_status): Ditto.
10693         (do_enable_breakpoint): Ditto.
10694         * blockframe.c (flush_cached_frames): Ditto.
10695         (reinit_frame_cache): Ditto.
10696
10697 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10698
10699         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10700         maintainer.
10701
10702 2002-05-04  Jim Blandy  <jimb@redhat.com>
10703
10704         * gdbtypes.c (replace_type): Doc fix.
10705
10706 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10707
10708         * valprint.c (strcat_longest): Delete commented out function.
10709         Update copyright.
10710
10711 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10712
10713         * MAINTAINERS: Mark a29k as deleted.
10714         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10715         Move new configurations to the top.
10716         * configure.tgt: Remove a29k.
10717         * config/a29k/tm-vx29k.h: Delete.
10718         * config/a29k/vx29k.mt: Delete.
10719         * config/a29k/tm-a29k.h: Delete.
10720         * config/a29k/a29k-udi.mt: Delete.
10721         * config/a29k/a29k.mt: Delete.
10722         * a29k-tdep.c: Delete.
10723         * remote-udi.c: Delete.
10724         * remote-mm.c: Delete.
10725         * remote-eb.c: Delete.
10726         * remote-adapt.c: Delete.
10727         * Makefile.in: Remove obsolete code.
10728         * config/s390/s390x.mt: Ditto.
10729         * config/s390/s390.mt: Ditto.
10730         * config/sparc/sparclynx.mh: Ditto.
10731         * config/sparc/linux.mh: Ditto.
10732         * config/pa/hppaosf.mh: Ditto.
10733         * config/pa/hppabsd.mh: Ditto.
10734         * config/ns32k/nbsd.mt: Ditto.
10735         * config/mips/vr5000.mt: Ditto.
10736         * config/m68k/sun3os4.mh: Ditto.
10737         * config/m68k/nbsd.mt: Ditto.
10738         * config/m68k/m68klynx.mh: Ditto.
10739         * config/m32r/m32r.mt: Ditto.
10740         * config/i386/x86-64linux.mt: Ditto.
10741         * config/i386/nbsdelf.mt: Ditto.
10742         * config/i386/nbsd.mt: Ditto.
10743         * config/i386/i386lynx.mh: Ditto.
10744
10745 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10746
10747         * target.c (debug_print_register): New function.  Handle oversize
10748         registers.
10749         (debug_to_fetch_registers): Call.
10750         (debug_to_store_registers): Call.
10751
10752 2002-05-03  Jim Blandy  <jimb@redhat.com>
10753
10754         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10755         (read_type): Doc fix.
10756         * gdbtypes.c (replace_type): Doc fix.
10757
10758         * stabsread.c (multiply_defined_struct): New complaint.
10759         (read_struct_type): If the type we were passed isn't empty, or
10760         incomplete, don't read the new struct type into it; complain,
10761         and return the original type unchanged.  Take a new `type_code'
10762         argument, which is the type code for the new type.
10763         (read_type): Rather than storing the type's type code here, pass
10764         it as an argument to read_struct_type, and let that take care of
10765         storing it.  That way, we don't overwrite the original type code,
10766         so read_struct_type can use it to decide whether we're overwriting
10767         something we shouldn't.
10768         (complain_about_struct_wipeout): New function.
10769
10770 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10771
10772         * gdbarch.sh: Assert that gdbarch is non-NULL.
10773         * gdbarch.c: Regenerate.
10774
10775 2002-05-03  Jason Merrill  <jason@redhat.com>
10776
10777         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10778         and return NULL.
10779
10780 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10781
10782         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10783         (x86_64_dwarf2gdb_regno_map_length),
10784         (x86_64_dwarf2_reg_to_regnum): Added.
10785         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10786         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10787         (_initialize_x86_64_tdep): Synced with the change above.
10788         (x86_64_skip_prologue): Reformulated message.
10789
10790 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10791
10792         * f-exp.y: Also use new prev_lexptr variable
10793         to improve error reporting. Based on Michael Snyder
10794         2002-04-24 dated patch to c-exp.y.
10795         * jv-exp.y: Likewise.
10796         * m2-exp.y: Likewise.
10797
10798 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10799
10800         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10801         we are dealing with vectors.
10802
10803 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10804
10805         * config/m68k/tm-nbsd.h: Obvious fix,
10806         correct machine name.
10807
10808 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10809
10810         * p-typeprint.c (pascal_type_print_base): Add support
10811         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10812
10813 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10814
10815         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10816         for fondamental pascal 'char' type.
10817
10818 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10819
10820         * p-lang.h (is_pascal_string_type): Declaration changed,
10821         new sixth argument of type char ** added.
10822         * p-lang.c (is_pascal_string_type): Implementation
10823         changed. Args length_pos, length_size, string_pos, char_size
10824         can now be NULL. New argument arrayname set to the field
10825         name of the char array. Return value set to char array
10826         field index plus one.
10827         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10828         is_pascal_string_type function.
10829
10830 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10831
10832         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10833         <cagney@redhat.com> change.
10834         * gdbarch.c: Regenerate.
10835
10836 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10837
10838         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10839         before probing for a new one.  Detect errorenous gdbarch_init
10840         functions.
10841         * gdbarch.c: Regenerate.
10842
10843 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10844
10845         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10846         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10847         * config/v850/tm-v850.h: Ditto.  Update copyright.
10848
10849 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10850
10851         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10852         current_gdbarch.
10853
10854 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10855
10856         * arm-tdep.c: Whitespace clean-ups.
10857         (arm_skip_prologue): Fix thinko; two lines
10858         should have been removed as part of 4/24 change.
10859
10860 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10861
10862         * rs6000-tdep.c: Added comment describing how fpscr register
10863         numbers were chosen.
10864
10865 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10866
10867         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10868
10869 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10870
10871         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10872         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10873         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10874
10875 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10876
10877         From Louis Hamilton <hamilton@redhat.com>:
10878         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10879         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10880         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10881         not bfd-private xcoff data, to determine wordsize.
10882         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10883
10884 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10885
10886         GDB 5.2 released from 5.2 branch.
10887
10888 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10889
10890         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10891         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10892         (x86_64_register_info_table): Added comments with register numbers.
10893
10894 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10895
10896         * rs6000-tdep.c (rs6000_extract_return_value,
10897         rs6000_store_return_value): Handle returning vectors.
10898         (rs6000_gdbarch_init): Use
10899         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10900         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10901         New function.
10902         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10903         vectors.
10904         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10905         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10906
10907 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10908
10909         * hpread.c (hpread_psymtab_to_symtab_1,
10910         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10911         with fprintf_unfiltered (gdb_stderr,...).
10912
10913 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10914
10915         * remote-array.c (printf_monitor, write_monitor,
10916         array_insert_breakpoint, array_remove_breakpoint ):
10917         Replace fprintf (stderr,...
10918         with fprintf_unfiltered (gdb_stderr,....
10919         * remote-es.c: Likewise.
10920         * remote-os9k.c: Likewise.
10921         * remote-st.c: Likewise.
10922
10923 2002-04-28  Andreas Schwab  <schwab@suse.de>
10924
10925         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10926         linux-proc.o and gcore.o.
10927
10928 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10929
10930         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10931         code without frame pointers.
10932
10933 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10934
10935         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10936         ON_STACK is needed.
10937
10938 2002-04-26  Ben Elliston  <bje@redhat.com>
10939
10940         * target.c (do_xfer_memory): Correct reference to the new option
10941         "trust-readonly-sections".
10942
10943 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10944
10945         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10946         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10947         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10948         vectors.
10949         (read_array_type): Record the fact that this array type is really a
10950         vector (i.e. are passed in by value).
10951
10952 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10953
10954         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10955         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10956         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10957         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10958         * alpha-linux-tdep.c: Include frame.h.
10959         (alpha_linux_sigcontext_addr): New function.
10960         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10961         alpha_linux_sigcontext_addr.
10962         * alpha-osf1-tdep.c: Include gdbcore.h.
10963         (alpha_osf1_sigcontext_addr): New function.
10964         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10965         alpha_osf1_sigcontext_addr.
10966         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10967         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10968
10969 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10970
10971         * stack.c (selected_frame_level):
10972         (select_frame): Do not set selected_frame_level.
10973         * frame.h (selected_frame_level): Delete declaration.
10974
10975 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10976
10977         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10978         convert_from_func_ptr-addr when AIX / PowerOpen.
10979
10980 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10981
10982         * valops.c (hand_function_call): Call
10983         generic_save_call_dummy_addr.
10984         * frame.h (generic_save_call_dummy_addr): Declare.
10985         * blockframe.c (struct dummy_frame): Add fields call_lo and
10986         call_hi.
10987         (generic_find_dummy_frame): Check for PC in range call_lo to
10988         call_hi instead of entry_point_address.
10989         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10990         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10991         (generic_save_call_dummy_addr): New function.
10992
10993 2002-04-24  David S. Miller  <davem@redhat.com>
10994
10995         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10996         sparc_skip_prologue.
10997         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10998         information to find prologue when possible.
10999         (sparc_prologue_frameless_p): Call examine_prologue directly.
11000         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11001         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11002         second argument.
11003         (SKIP_PROLOGUE): Likewise.
11004
11005 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11006
11007         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11008         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11009         indicate that the condition it was testing is always true.
11010         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11011         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11012         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11013
11014 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11015
11016         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11017         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11018         tdep->jb_pc and tdep->jb_elt_size.
11019         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11020         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11021         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11022         * alpha-nat.c (get_longjmp_target): Remove.
11023         (JB_ELEMENT_SIZE): Ditto.
11024         (JB_PC): Ditto.
11025         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11026         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11027         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11028         to alpha_get_longjmp_target.
11029         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11030         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11031         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11032
11033 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11034
11035         * README: Update to GDB 5.2.
11036
11037 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11038
11039         * gdbarch.sh (LC_ALL): Set to `c'.
11040
11041 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11042
11043         * avr-tdep.c: Ran through gdb_indent.sh.
11044
11045 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11046
11047         * MAINTAINERS: Add myself as AVR maintainer.
11048         * NEWS: Note new target avr.
11049
11050 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11051
11052         * Makefile.in: Add support for AVR target.
11053         * configure.tgt: Add support for AVR target.
11054         * avr-tdep.c: New file
11055         * config/avr/avr.mt: New file.
11056
11057 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11058
11059         * MAINTAINERS: Add myself to write-after-approval.
11060
11061 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11062
11063         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11064         with fprintf_unfiltered (gdb_stderr,....
11065
11066 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11067
11068         Fix PR gdb/508.
11069         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11070
11071 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11072
11073         * p-exp.y: Also use new prev_lexptr variable
11074         to improve error reporting. Based on Michael Snyder
11075         2002-04-24 dated patch to c-exp.y.
11076
11077 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11078
11079         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11080         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11081         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11082         to 0.
11083         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11084         and struct value.
11085         (FUNCTION_START_OFFSET): Remove.
11086         (BREAKPOINT): Ditto.
11087
11088 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11089
11090         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11091         * NEWS: Ditto.
11092
11093 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11094
11095         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11096         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11097         alpha_linux_pc_in_sigtramp.
11098         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11099         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11100         alpha_osf1_pc_in_sigtramp.
11101         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11102         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11103         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11104         alphafbsd_pc_in_sigtramp.
11105         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11106         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11107         alphanbsd_pc_in_sigtramp.
11108         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11109         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11110
11111 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11112
11113         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11114
11115 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11116
11117         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11118         alphanbsd-tdep.c.
11119         (alphanbsd-nat.o): New dependency list.
11120         (alphanbsd-tdep.o): Ditto.
11121         * NEWS: Note new native NetBSD/alpha configuration.
11122         * alphanbsd-nat.c: New file.
11123         * alphanbsd-tdep.c: Ditto.
11124         * configure.host (alpha*-*-netbsd*): New host.
11125         * configure.tgt (alpha*-*-netbsd*): New target.
11126         * config/alpha/nbsd.mh: New file.
11127         * config/alpha/nbsd.mt: Ditto.
11128         * config/alpha/nm-nbsd.h: Ditto.
11129         * config/alpha/tm-nbsd.h: Ditto.
11130
11131 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11132
11133         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11134         (alpha-osf1-tdep.o): New dependency list.
11135         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11136         and skip_sigtramp_frame members.
11137         * alpha-linux-tdep.c: Include gdbcore.h.
11138         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11139         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11140         * alpha-osf1-tdep.c: New file.
11141         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11142         alpha-osf1-dep.c.
11143         (alpha_frame_past_sigtramp_frame): New function.
11144         (alpha_dynamic_sigtramp_offset): Ditto.
11145         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11146         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11147         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11148         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11149         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11150         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11151         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11152         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11153         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11154         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11155         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11156         to find_solib_trampoline_target.
11157         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11158         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11159         (SKIP_TRAMPOLINE_CODE): Remove.
11160         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11161         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11162         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11163         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11164         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11165         (PROC_SIGTRAMP_MAGIC): Ditto.
11166         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11167         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11168         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11169         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11170         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11171
11172 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11173
11174         * NEWS: Note that Alpha targets are now multi-arch.
11175
11176 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11177
11178         * parser-defs.h (prev_lexptr): New external variable.
11179         * parse.c (parse_exp_1): Set prev_lexptr to null before
11180         calling the language-specific parser.
11181         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11182         (yyerror): Use prev_lexptr in error reporting.
11183
11184 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11185
11186         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11187         * gregset.h: If FILL_FPXREGSET is defined, provide
11188         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11189         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11190         is defined, call fill_fpxregset.
11191
11192 2002-04-24  Roland McGrath  <roland@frob.com>
11193
11194         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11195         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11196         (supply_gregset, supply_fpregset): New functions.
11197
11198         * gnu-nat.c (gnu_find_memory_regions): New function.
11199         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11200         (gnu_xfer_memory): Add a cast.
11201
11202 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11203
11204         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11205         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11206         of argument regs ("str r(0123), [r11, #-nn"]).
11207         (arm_skip_prologue): Better handling for frameless functions.
11208         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11209         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11210
11211 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11212
11213         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11214         NUM_PSEUDO_REGS can be used.
11215
11216 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11217
11218         * arch-utils.h: Update copyright.
11219
11220         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11221         * gdbarch.h, gdbarch.c: Re-generate.
11222
11223         * inferior.h (IN_SIGTRAMP): Delete definition.
11224         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11225         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11226
11227         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11228         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11229         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11230         (find_proc_framesize): Ditto.
11231         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11232         (alpha_init_extra_frame_info): Ditto.
11233         * infrun.c (handle_inferior_event): Ditto.
11234         (handle_inferior_event): Ditto.
11235         (check_sigtramp2): Ditto.
11236         * blockframe.c (create_new_frame): Ditto.
11237         (get_prev_frame): Ditto.
11238         * ppc-linux-tdep.c: Update comments.
11239         * i386-linux-tdep.c: Update comments.
11240         * breakpoint.c (bpstat_what): Update comment.
11241
11242 2002-04-24  David S. Miller  <davem@redhat.com>
11243
11244         * i960-tdep.c (register_in_window_p): New function.
11245         (i960_find_saved_register): Use it instead of
11246         REGISTER_IN_WINDOW_P.
11247         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11248
11249         * symtab.h (find_stab_function_addr): Kill extern.
11250         * minsyms.c (find_stab_function_addr): Remove from here...
11251         * dbxread.c: ... to here, and mark it static.
11252
11253 2002-04-20  David S. Miller  <davem@redhat.com>
11254
11255         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11256         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11257
11258 2002-04-21  David S. Miller  <davem@redhat.com>
11259
11260         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11261         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11262         (vx_write_register): Likewise.
11263
11264 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11265
11266         * source.c (is_regular_file): New function.
11267         (openp): Check wether file to open is a regular file
11268         to avoid opening directories.
11269
11270 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11271
11272         * findvar.c (extract_signed_integer): Cast printf argument
11273         to suppress format warning.
11274         (extract_unsigned_integer): Likewise.
11275         * infcmd.c (registers_info): Likewise.
11276         * top.c (get_prompt_1): Likewise.
11277         * valops.c (value_assign): Likewise.
11278         * valprint.c (print_decimal): Likewise.
11279
11280 2002-04-22  H.J. Lu  (hjl@gnu.org)
11281
11282         * c-exp.y (typebase): Support
11283
11284         [long|long long|short] [signed|unsigned] [int|]
11285
11286         and
11287
11288         signed [long|long long|short] int
11289
11290 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11291
11292         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11293         and vax-tdep.h.
11294         * vax-tdep.h: New file.
11295         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11296         Make several routines static.
11297         (vax_get_saved_register): New function.
11298         (vax_gdbarch_init): New function.
11299         (_initialize_vax_tdep): Register vax_gdbarch_init.
11300         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11301         Remove macros now under the control of gdbarch.
11302
11303 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11304
11305         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11306         Some whitespace and coding standards tweaks.
11307
11308 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11309
11310         * vax-tdep.c: Include regcache.h.
11311         (vax_call_dummy_words): New.
11312         (sizeof_vax_call_dummy_words): New.
11313         (vax_fix_call_dummy): New function.
11314         (vax_saved_pc_after_call): Ditto.
11315         * config/vax/tm-vax.h: Don't include regcache.h.
11316         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11317         (CALL_DUMMY): Remove.
11318         (CALL_DUMMY_WORDS): Define.
11319         (SIZEOF_CALL_DUMMY_WORDS): Define.
11320         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11321
11322 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11323
11324         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11325
11326 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11327
11328         * vax-tdep.c (vax_frame_chain): New function.
11329         (vax_push_dummy_frame): Ditto.
11330         (vax_pop_frame): Ditto.
11331         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11332         (FRAMELESS_FUNCTION_INVOCATION): Use
11333         generic_frameless_function_invocation_not.
11334         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11335         (POP_FRAME): Use vax_pop_frame.
11336
11337 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11338
11339         * vax-tdep.c (vax_store_struct_return): New function.
11340         (vax_extract_return_value): Ditto.
11341         (vax_store_return_value): Ditto.
11342         (vax_extract_struct_value_address): Ditto.
11343         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11344         vax_store_struct_return.
11345         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11346         (STORE_RETURN_VALUE): Use vax_store_return_value.
11347         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11348
11349 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11350
11351         * vax-tdep.c (vax_frame_saved_pc): New function.
11352         (vax_frame_args_address_correct): Ditto.
11353         (vax_frame_args_address): Ditto.
11354         (vax_frame_locals_address): Ditto.
11355         (vax_frame_num_args): Move code to be in proximity to
11356         other frame-related functions.
11357         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11358         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11359         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11360         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11361         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11362
11363 2002-04-22  H.J. Lu  (hjl@gnu.org)
11364
11365         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11366         includedir.
11367
11368 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11369
11370         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11371         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11372         (FRAME_INIT_SAVED_REGS): New macro.
11373
11374 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11375
11376         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11377
11378 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11379
11380         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11381         where needed.
11382         (fetch_osf_core_registers): Likewise.
11383         (supply_gregset): Likewise.
11384
11385 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11386
11387         * symfile.h (get_section_index): Define.
11388         * symfile.c (get_section_index): New function.
11389         * mdebugread.c (SC_IS_SBSS): New macro.
11390         (SC_IS_BSS): Return true for the scBss storage class only, as
11391         the scSBss storage class refers to the .sbss section.
11392         (parse_partial_symbols): Discard the symbols which associated
11393         section does not exist.
11394         Make sure to use the .sbss section index for symbols which
11395         storage class is scBss, rather than using the .bss section index.
11396
11397 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11398
11399         * vax-tdep.c: Update copyright years.
11400         (vax_register_name): New function.
11401         (vax_register_byte): Ditto.
11402         (vax_register_raw_size): Ditto.
11403         (vax_register_virtual_size): Ditto.
11404         (vax_register_virtual_type): Ditto.
11405         * config/vax/tm-vax.h: Update copyright years.
11406         (REGISTER_NAMES): Remove.
11407         (REGISTER_NAME): Define.
11408         (REGISTER_BYTE): Use vax_register_byte.
11409         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11410         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11411         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11412
11413 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11414
11415         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11416         declaration
11417         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11418
11419 2002-04-21  David S. Miller  <davem@redhat.com>
11420
11421         * arch-utils.c (generic_prologue_frameless_p): Kill
11422         SKIP_PROLOGUE_FRAMELESS_P code.
11423         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11424         references.
11425         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11426         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11427         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11428         references.
11429         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11430         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11431         (sparc_gdbarch_init): Pass it to
11432         set_gdbarch_prologue_frameless_p.
11433
11434 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11435
11436         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11437         (alphabsd-nat.o): New dependency list.
11438
11439 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11440
11441         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11442         alphafbsd-tdep.c.
11443         (alpha-linux-tdep.o): New dependency list.
11444         (alphafbsd-tdep.o): Likewise.
11445
11446 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11447
11448         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11449         to here...
11450         * alpha-tdep.c: ...from here.
11451         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11452
11453 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11454
11455         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11456         prototype from here...
11457         * alpha-tdep.h: ...to here.
11458
11459 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11460
11461         * frame.h (selected_frame_level): Document as deprecated.
11462         (frame_relative_level): Declare.
11463         * stack.c (frame_relative_level): New function.
11464         (selected_frame_level): Document as deprecated.
11465         (select_frame): Do not set the selected_frame_level.
11466
11467         * stack.c (frame_info, record_selected_frame): Update.
11468         (frame_command, current_frame_command): Update.
11469         (up_silently_base, up_command, down_silently_base): Update.
11470         (down_command): Update.
11471         * inflow.c (kill_command): Update.
11472         * tracepoint.c (finish_tfind_command): Update.
11473         * corelow.c (core_open): Update.
11474         * thread.c (info_threads_command): Update.
11475         (do_captured_thread_select): Update.
11476         * infcmd.c (finish_command): Update.
11477         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11478
11479 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11480
11481         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11482
11483 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11484
11485         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11486         type const.
11487
11488 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11489
11490         * alphafbsd-tdep.c: Update copyright years.  Include
11491         alpha-tdep.h.
11492         (alphafbsd_use_struct_convention): Make static.
11493         (alphafbsd_init_abi): New function.
11494         (_initialize_alphafbsd_tdep): New function.
11495         * config/alpha/tm-fbsd.h: Update copyright years.
11496         (USE_STRUCT_CONVENTION): Remove.
11497
11498 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11499
11500         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11501         an Alpha ABI variant.
11502         (alpha_abi_handler_list): Declare.
11503         (alpha_gdbarch_register_os_abi): New function.
11504         (alpha_gdbarch_init): Give registered ABI variant handlers a
11505         chance to tweak the gdbarch once we have set up defaults.
11506         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11507
11508 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11509
11510         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11511         to standard_coerce_float_to_double.
11512         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11513
11514 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11515
11516         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11517         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11518         from gdbarch_tdep rather than a constant.
11519         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11520         the default text address for all Alpha Unix ABIs.
11521         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11522         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11523
11524 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11525
11526         * alpha-tdep.h: New file.  Includes several Alpha target constants
11527         taken from...
11528         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11529         let gdbarch deal with.
11530         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11531         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11532         to dependency list.
11533         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11534         Alpha target register names.
11535         * alphabsd-nat.c: Likewise.
11536         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11537         Alpha target register names.  Make serveral routines static.
11538         (alpha_get_saved_register): New function.
11539         (alpha_abi_names): New.
11540         (process_note_abi_tag_sections): New function.
11541         (get_elfosabi): New function.
11542         (alpha_gdbarch_init): New function.
11543         (alpha_dump_tdep): New function.
11544         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11545
11546 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11547
11548         * frame.c (find_saved_register): Delete #ifdef
11549         HAVE_REGISTER_WINDOWS code.
11550         * config/sparc/tm-sparc.h: Update comments.
11551         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11552
11553 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11554
11555         * i960-tdep.c (i960_find_saved_register): New function.
11556         (i960_get_saved_register): New function.
11557         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11558         (i960_get_saved_register): Declare.
11559         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11560
11561 2002-04-20  David S. Miller  <davem@redhat.com>
11562
11563         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11564
11565 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11566
11567         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11568         instead of NUM_PSEUDO_REGS.
11569
11570 2002-04-20  David S. Miller  <davem@redhat.com>
11571
11572         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11573         GDB_MULTI_ARCH_PARTIAL
11574         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11575         define, let tm-sp64.h do it.
11576
11577 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11578
11579         * frame.c (find_saved_register): Avoid a NULL pointer
11580         dereference and actually walk the frame list.
11581
11582 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11583
11584         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11585         sorted in most most-recent-used order.  Document.
11586         * gdbarch.h, gdbarch.c: Regenerate.
11587
11588 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11589
11590         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11591         instead of ->prev.
11592         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11593         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11594         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11595         instead of ->prev.
11596
11597 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11598
11599         Fix PR gdb/471.
11600         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11601         (build_builtin_type_vec128): Ditto.
11602         (append_composite_type_field): Fix calculation of type length in
11603         union case.
11604
11605 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11606
11607         * config/djgpp/README: Update.
11608
11609         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11610         compiler warnings.
11611
11612 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11613
11614         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11615         (alpha_setup_arbitrary_frame): ...to this.
11616         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11617         for alpha_setup_arbitrary_frame.
11618
11619 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11620
11621         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11622         * gdbarch.h, gdbarch.c: Regenerate.
11623
11624         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11625         * target.h (memory_breakpoint_from_pc): Update declaration.
11626         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11627
11628         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11629         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11630         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11631         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11632         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11633         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11634         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11635         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11636         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11637         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11638         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11639         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11640
11641         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11642         const pointer.
11643         * monitor.c (monitor_insert_breakpoint): Ditto.
11644         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11645
11646         * config/mcore/tm-mcore.h: Update copyright.
11647         * mem-break.c: Ditto.
11648         * xstormy16-tdep.c: Ditto.
11649
11650 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11651
11652         * p-exp.y: Add precedence rule for '^' token.
11653         This removes the shift/reduce conflicts.
11654         Remove the comment concerning these shift/reduce conflicts.
11655
11656 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11657
11658         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11659         (registers_powerpc_nofp): New register set for processors
11660         without floating point unit.
11661
11662 2002-04-18  David S. Miller  <davem@redhat.com>
11663
11664         * MAINTAINERS: Add myself to write-after-approval.
11665
11666 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11667
11668         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11669
11670 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11671
11672         * rs6000-tdep.c (frame_initial_stack_address): Use
11673         frame_register_read to read the alloca_reg.
11674
11675 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11676
11677         * frame.c (find_saved_register): Find saved registers in the next
11678         not prev frame.
11679         Fix PR gdb/365.
11680
11681 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11682
11683         * gdbarch.sh (LANG): Set to ``c''.
11684
11685 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11686
11687         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11688
11689 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11690
11691         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11692         Update copyright.
11693
11694         * hpread.c (hpread_get_lntt): Add declaration.
11695         Also fix PR gdb/391.
11696
11697 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11698
11699         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11700         * aclocal.m4, configure: Re-generate.
11701         Fix PR gdb/391.
11702
11703 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11704
11705         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11706         instead of tm_print_insn.
11707
11708 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11709
11710         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11711
11712 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11713
11714         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11715         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11716         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11717
11718 2002-04-12  Don Howard  <dhoward@redhat.com>
11719
11720         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11721         max_user_call_depth.
11722         (init_cmd_lists): Initialize the new value;
11723         * cli/cli-script.c (execute_user_command): Limit the call depth of
11724         user defined commands.  This avoids a core-dump when user commands
11725         are infinitly recursive.
11726
11727 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11728
11729         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11730         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11731         from tdep struct instead of DEFAULT_LR_SAVE.
11732         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11733         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11734         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11735
11736 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11737
11738         * Remote.c: Spelling fix.
11739         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11740         If no symbol found for "sbrk", try "_sbrk".
11741         (make_output_phdrs): Use bfd_section_name.
11742         (gcore_copy_callback): Use bfd_section_name.
11743         * eval.c: Indentation fix-ups.
11744         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11745         in case it gets applied to an address that is already
11746         in the instruction space.
11747         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11748         * symfile.c: Fix indentation, long lines.
11749         * source.c: White space fix-up.
11750
11751 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11752
11753         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11754         * frame.c (frame_register_read): New function.  Return non-zero on
11755         success.
11756         (read_relative_register_raw_bytes_for_frame): Delete.
11757         (read_relative_register_raw_bytes): Delete.
11758         * frame.h (frame_register_read): Declare.
11759         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11760         * sh-tdep.c: Ditto.
11761         * infcmd.c (do_registers_info): Ditto.
11762         * hppa-tdep.c: Ditto.
11763         * rs6000-tdep.c: Ditto.
11764         * h8500-tdep.c: Ditto.
11765         * mips-tdep.c: Ditto.
11766         * h8300-tdep.c: Ditto.
11767         * z8k-tdep.c: Ditto.
11768
11769 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11770
11771         From Jimi X <jimix@watson.ibm.com>:
11772         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11773         64-bit SysV ABI.
11774
11775 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11776
11777         From Jimi X <jimix@watson.ibm.com>:
11778         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11779         bfd info.
11780
11781 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11782
11783         From Jimi X <jimix@watson.ibm.com>:
11784         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11785         register sets for these processor variants.
11786
11787 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11788
11789         * regformats/reg-ppc.dat: Support FPSCR.
11790
11791 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11792
11793         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11794         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11795         Add fpscr as an invalid/unfetchable register.
11796         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11797         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11798         (fill_fpregset): Add support for register fpscr.
11799         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11800         (fill_gregset): Account for the fact that register ``mq'' might
11801         not exist.
11802         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11803         (registers_power): Add fpscr to register set at slot 71.
11804         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11805         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11806
11807 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11808
11809         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11810         * configure: Regenerate.
11811         * config.in: Regenerate.
11812         * acconfig.h: Add define for _SYSCALL32.
11813         * core-sol2.c: Remove #define _SYSCALL32.
11814         * solib-legacy.c: Remove #define _SYSCALL32.
11815
11816 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11817
11818         * stack.c (select_frame): Cleanup internal error message, do not
11819         use %p.
11820
11821 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11822
11823         * stack.c (select_frame): Check that selected_frame and the
11824         specified level are as expected.
11825         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11826         Update copyright.
11827         * frame.h (struct frame_info): Add field `level'.  Update
11828         copyright.
11829         Work-in-progress PR gdb/464.
11830
11831 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11832
11833         * maint.c (maint_print_section_info): Rename print_section_info.
11834         (print_bfd_section_info, print_objfile_section_info): Update.
11835         * inferior.h (struct gdbarch): Add opaque declaration.
11836         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11837         * gdbarch.h: Regenerate.
11838
11839 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11840
11841         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11842         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11843         (kernel_u_size): Added.
11844         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11845         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11846
11847 2002-04-04  Jim Ingham  <jingham@apple.com>
11848
11849        * valarith.c (find_size_for_pointer_math): New function, either returns
11850        the size for a pointer's target, returns 1 for void *, or errors for
11851        incomplete types.
11852        (value_add, value_sub): use find_size_for_pointer_math.
11853
11854 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11855
11856         * linux-low.c (linux_look_up_symbols): New hook.
11857         (linux_target_ops): Add linux_look_up_symbols.
11858         * remote-utils.c (decode_address): New function.
11859         (look_up_one_symbol): New function.
11860         * server.c (handle_query): Call target look_up_symbols hook.
11861         * server.h (look_up_one_symbol): Add prototype.
11862         * target.h (struct target_ops): Add look_up_symbols hook.
11863
11864 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11865
11866         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11867         override FP_REGNUM with frame->fp.  Update copyright.
11868         * parse.c (num_std_regs, std_regs): Delete.
11869         (target_map_name_to_register): Do not search std_regs.  Update
11870         function description.
11871         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11872         declarations.  Update copyright.
11873         Fix PR gdb/251.
11874
11875 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11876
11877         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11878         after the last symbol in a block.
11879
11880 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11881
11882         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11883         is non zero as a found symbol.
11884
11885 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11886
11887         * findvar.c: Include "builtin-regs.h".
11888         (value_of_register): Call value_of_builtin_reg when applicable.
11889         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11890         (target_map_name_to_register): Call
11891         builtin_reg_map_name_to_regnum.
11892         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11893         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11894         (builtin_regs_h): Define.
11895         (builtin-regs.o): New target.
11896         (findvar.o): Add $(builtin_regs_h).
11897         * builtin-regs.c, builtin-regs.h: New files.
11898         * std-regs.c: New file.
11899         Partial fix for PR gdb/251.
11900
11901 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11902
11903         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11904         it's no longer required.
11905
11906 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11907
11908         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11909
11910 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11911
11912         From Jimi X <jimix@watson.ibm.com>:
11913         * rs6000-tdep.c (rs6000_software_single_step): Use
11914         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11915         and size.  Use target_insert_breakpoint() and
11916         target_remove_breakpoint() to insert and remove breakpoints
11917         instead of explicit memory reads and writes.
11918
11919 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11920
11921         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11922         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11923         ELF_OBJECT_FORMAT ifdef.
11924
11925 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11926
11927         From Jimi X <jimix@watson.ibm.com>:
11928         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11929
11930 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11931
11932         From Jimi X <jimix@watson.ibm.com>:
11933         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11934         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11935
11936 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11937
11938         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11939         s/asprintf/xasprintf/.
11940         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11941
11942 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11943
11944         I believe Jeff Law denies responsability for this one:
11945         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11946         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11947         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11948         Work-around for PR gdb/366.
11949
11950 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11951
11952         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11953         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11954         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11955
11956 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11957
11958         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11959         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11960         information.
11961
11962 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11963
11964         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11965         maintainer.
11966
11967 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11968
11969         * README (Reporting Bugs in GDB): Document the bug web page as the
11970         prefered way of submitting bugs.
11971         Fix PR gdb/402.
11972
11973 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11974
11975         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11976         -1.  Update comment.
11977         * gdbarch.h, gdbarch.c: Re-generate.
11978
11979 2002-04-07  Andreas Schwab  <schwab@suse.de>
11980
11981         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11982         buffer to regcache_collect.
11983
11984 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11985
11986         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11987         * gdbarch.c, gdbarch.h: Re-generate.
11988
11989 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11990
11991         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11992         declaration.  Fix -Werror.
11993
11994 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11995
11996         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11997         * gdbarch.c: Regenerate.
11998
11999 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12000
12001         * breakpoint.c (clear_command): Rewrite middle section to
12002         combine two loops with identical control conditions.
12003         Add a cleanup to eliminate a memory leak.
12004         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12005
12006 2002-04-05  H.J. Lu  (hjl@gnu.org)
12007
12008         * solib-svr4.c (bkpt_names): Add "__start".
12009
12010 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12011
12012         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12013         as test for 64 bit target.
12014
12015 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12016
12017         * h8500-tdep.c (h8500_write_fp): Delete function.
12018         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12019         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12020         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12021         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12022         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12023         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12024         (s390_write_fp):
12025         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12026         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12027         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12028         (d10v_write_fp): Delete function.
12029         * inferior.h (write_fp, generic_target_write_fp): Delete
12030         declarations.
12031         * regcache.c (generic_target_write_fp): Delete function.
12032         (write_fp): Delete function.
12033         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12034         * gdbarch.h, gdbarch.c: Regenerate.
12035         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12036         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12037         (sparc64_write_fp): Delete declaration.
12038         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12039         (h8500_write_fp): Delete declaration.
12040
12041 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12042
12043         * sparc-tdep.c (sparc64_write_fp): Delete.
12044         (sparc_push_dummy_frame): Replace write_fp call with code to store
12045         the FP directly.
12046         (sparc_gdbarch_init): Do not initialize write_fp.
12047
12048 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12049
12050         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12051         clause.
12052
12053 2002-03-29  Jim Blandy  <jimb@redhat.com>
12054
12055         * stack.c (get_selected_block): Add new argument `addr_in_block',
12056         used to return the exact code address we used to select the block,
12057         not just the block.
12058         * blockframe.c (get_frame_block, get_current_block): Same.
12059         * frame.h (get_frame_block, get_current_block,
12060         get_selected_block): Update declarations.
12061         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12062         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12063
12064 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12065
12066         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12067         warning message.
12068
12069 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12070
12071         * utils.c (xfullpath): New function.
12072         * defs.h (xfullpath): Add declaration.
12073         * source.c (openp): Use xfullpath in place of gdb_realpath to
12074         avoid resolving the basename part of filenames when the
12075         associated file is a symbolic link. This fixes a potential
12076         inconsistency between the filenames known to GDB and the
12077         filenames it prints in the annotations.
12078         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12079         to be able to match a filename with either the real filename, or
12080         the name of any symbolic link to this file.
12081         (lookup_partial_symtab): Ditto.
12082
12083 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12084
12085         * breakpoint.c: Add support for hardware breakpoints in overlays.
12086         (overlay_events_enabled): New state variable.
12087         (insert_breakpoints): Use overlay_events_enabled to decide
12088         whether to attempt to set a breakpoint at the overlay load addr.
12089         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12090         (remove_breakpoint): Use overlay_events_enabled to decide
12091         whether breakpoints need to be removed from overlay load addr.
12092         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12093         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12094         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12095         disable_overlay_breakpoints): Update overlay_events_enabled.
12096
12097 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12098
12099         * dwarf2read.c (struct function_range): New.
12100         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12101         (check_cu_functions): New.
12102         (read_file_scope): Initialize global function lists.
12103         Call dwarf_decode_line after processing children.
12104         (read_func_scope): Add to global function list.
12105         (dwarf_decode_lines): Call check_cu_functions everywhere
12106         record_line is called.  Call record_line with a linenumber
12107         of 0 to mark sequence ends.
12108
12109 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12110
12111         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12112         change sync with glibc.
12113
12114 2002-04-03  Jim Blandy  <jimb@redhat.com>
12115
12116         * configure.in: Call AC_C_INLINE.
12117         * configure: Regenerated.
12118
12119 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12120
12121         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12122         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12123
12124 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12125
12126         * NEWS: Mention gcore support on FreeBSD/i386.
12127
12128         * fbsd-proc.c: New file.
12129         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12130         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12131
12132         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12133         while statement.
12134
12135 2002-03-29  Jim Blandy  <jimb@redhat.com>
12136
12137         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12138         unescaped newlines in string literals, but newer ones don't.  So
12139         escape them.
12140
12141 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12142             Andrew Cagney <cagney@redhat.com>
12143
12144         * cli/cli-dump.c: New file.  Dump memory to file,
12145         restore file to memory.
12146         * cli/cli-dump.h: New file.
12147         * Makefile.in: Add rules, dependencies for cli-dump.o.
12148         * NEWS: Mention new commands.
12149
12150 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12151
12152         * symfile.c (symbol_file_add): Move test for null symbols to later.
12153
12154 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12155
12156         From veksler at il.ibm.com:
12157         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12158         the xstrduped original path.
12159         Fix PR gdb/417.
12160
12161 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12162
12163         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12164         * infcmd.c (_initialize_infcmd): Ditto.
12165         * language.c (_initialize_language): Ditto.
12166         * symfile.c (_initialize_symfile): Ditto.
12167         * top.c (_init_main): Ditto.
12168         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12169
12170 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12171
12172         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12173         vector registers handling.
12174         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12175         fields of frame data.
12176         (frame_get_saved_regs): Fill in information for AltiVec registers.
12177
12178 2002-03-27  Jim Blandy  <jimb@redhat.com>
12179
12180         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12181         a function; leave this macro here to invoke that function.
12182         (symbol_init_mangled_name): Declaration for that function.
12183         * symtab.c (symbol_init_mangled_name): New function.
12184
12185 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12186
12187         * valarith.c: Replace strerror with safe_strerror.
12188         * tracepoint.c: Ditto.
12189         * lin-lwp.c: Ditto.
12190         * go32-nat.c: Ditto.
12191         * inflow.c: Ditto.
12192         * gnu-nat.c: Ditto.
12193
12194 2002-03-27  Andreas Schwab  <schwab@suse.de>
12195
12196         * event-top.c (command_line_handler): Remove useless if.
12197
12198 2002-03-27  Andreas Jaeger  <aj@suse.de>
12199
12200         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12201         comment.
12202
12203 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12204
12205         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12206         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12207         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12208         (x86_64_linux_dr_get_status, supply_gregset),
12209         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12210         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12211         (x86_64_register_info_table): Add.
12212         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12213         (x86_64_register_raw_size, x86_64_register_virtual_type),
12214         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12215         general x86_64_register_info_table.
12216         (i386_gdbarch_init): gdbarch_register_bytes is now set
12217         dynamicaly during initialization.
12218         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12219         * gdbserver/linux-x86-64-low.c: Ditto.
12220
12221 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12222
12223         * gdbserver/server.c (main): Call target_signal_to_host_p
12224         and target_signal_to_host on signals received from the remote.
12225         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12226         target_signal_from_host on signals sent to the remote.
12227         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12228         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12229
12230 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12231
12232         * signals/signals.c: Include "server.h" in gdbserver build.
12233         (target_signal_from_name): Don't use STREQ.
12234         (_initialize_signals): Likewise.  Don't include function in
12235         gdbserver build.
12236
12237 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12238
12239         * signals.c: Moved to...
12240         * signals/signals.c: Here.
12241         * Makefile (signals.o): Update.
12242
12243 2002-03-26  Jeff Law (law@redhat.com)
12244
12245         * somread.c (som_symtab_read): Remove some commented out code and
12246         updated related comments.  Do not set the minimal symbol table to
12247         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12248         in a dynamic executable.
12249         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12250         where we are unable to find the minimal symbol for the given
12251         PC value.
12252
12253 2002-03-25  Jeff Law (law@redhat.com)
12254
12255         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12256
12257 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12258
12259         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12260
12261 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12262
12263         * command.h: Update copyright.
12264         (struct cmd_list_element): Replace definition with opaque
12265         declaration.
12266         (enum cmd_types): Document that it will eventually be moved to
12267         cli/cli-decode.h
12268         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12269         (MALLOCED_REPLACEMENT): Delete macro.
12270         * Makefile.in (cli_decode_h): Add $(command_h).
12271         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12272         * top.c: Include "cli/cli-decode.h".
12273         * completer.c: Include "cli/cli-decode.h".
12274         * maint.c: Include "cli/cli-decode.h".
12275         * cli/cli-decode.h: Include "command.h".
12276         (enum command_class): Delete.
12277         (enum cmd_types): Comment out.
12278         (enum cmd_auto_boolean): Delete.
12279         (enum var_types): Delete.
12280
12281 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12282
12283         * cli/cli-decode.c: Include "gdb_assert.h".
12284         (add_set_or_show_cmd): New static function.
12285         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12286         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12287         all fields, such as func, from the set command.
12288
12289 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12290
12291         * MAINTAINERS (sh-elf): Change warning flag to -w.
12292
12293 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12294
12295         * defs.h (error): Add printf format attribute.
12296         * thread-db.c (thread_from_lwp): Fix error format string.
12297         * stack.c (parse_frame_specification): Ditto.
12298         * cli/cli-decode.c (undef_cmd_error): Ditto.
12299         * scm-lang.c (scm_lookup_name): Ditto.
12300         * tracepoint.c (trace_error): Ditto.
12301         * remote-utils.c (usage): Ditto.
12302         * remote.c (compare_sections_command): Ditto.
12303         Fix PR gdb/328.
12304
12305 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12306
12307         * gdbtypes.c (append_composite_type_field): New function.
12308         (init_composite_type): New function.
12309         * gdbtypes.h (append_composite_type_field): Declare.
12310         (init_composite_type): Ditto.
12311
12312 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12313
12314         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12315         function.
12316         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12317         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12318         structure returning convention for SYSV ABI case, but not
12319         for GNU/Linux, FreeBSD, or NetBSD.
12320
12321 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12322
12323         * symtab.h (lookup_block_symbol): Add mangled_name argument
12324         to prototype.
12325
12326         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12327         with new mangled_name argument.
12328         * linespec.c (decode_line_1): Likewise.
12329         * valops (value_of_this): Likewise.
12330         * symtab.c (lookup_transparent_type): Likewise.
12331         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12332         (lookup_symbol): If we are given a mangled name, pass it down
12333         to lookup_symbol_aux.
12334         (lookup_block_symbol): If we are given a mangled name to check
12335         against, only return symbols which match it.
12336
12337 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12338
12339         * win32-nat.c (child_create_inferior): Check for proper shell to use
12340         here, in case the user changes it on the fly.
12341         (_initialize_inftarg): Remove shell path considerations.
12342
12343 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12344
12345         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12346         for gdbarch_max_register_raw_size and max_register_virtual_size.
12347         Adjust copyright year.
12348
12349 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12350
12351          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12352          in a function to cover the entire beginning of the function
12353          as well if it does not already.
12354
12355 2002-03-21  Tom Rix  <trix@redhat.com>
12356
12357         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12358         (rs6000_ptrace64): Renamed from ptrace64.
12359
12360 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12361
12362         * gdbserver/remote-utils.c (remote_open): Don't call
12363         getprotobyname, we're all using TCP here so just use
12364         IPPROTO_TCP.
12365         * gdbserver/gdbreplay.c (remote_open): Ditto.
12366
12367 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12368
12369         * regcache.c (_initialize_regcache): No need to call
12370         build_regcache() at this time; it gets called whenever
12371         the gdbarch changes.
12372
12373 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12374
12375         * sparc-nat.c:  Include sys/param.h where possible.
12376
12377 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12378
12379         Fix PR gdb/422.
12380         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12381         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12382         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12383         complex types.
12384         * stabsread.c (rs6000_builtin_type): Likewise.
12385         (read_sun_floating_type): Likewise.
12386
12387 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12388
12389         * stabsread.c (read_member_functions): Remove skip code for duplicate
12390         constructor/destructor methods.  Use standard parsing for these
12391         methods and just do not chain them to the list of methods after
12392         parsing.
12393
12394 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12395
12396         * coffread.c: Remove redundant static declarations.  Replace
12397         occurrences of `PTR' with `void *'.
12398         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12399         * top.h (quit_cover): Likewise.
12400         * defs.h (catch_errors): Likewise.
12401
12402 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12403
12404         * defs.h (XMALLOC): Define.
12405         * gdb-events.sh (XMALLOC): Delete macro.
12406         * gdb-events.c, gdb-events.h: Regenerate.
12407         * gdbarch.sh (XMALLOC): Delete macro.
12408         * gdbarch.c: Regenerate.
12409         * serial.c (XMALLOC): Delete macro.
12410         * ui-file.c (XMALLOC): Ditto.
12411         * ser-unix.h (XMALLOC): Ditto.
12412         * sh-tdep.c (XMALLOC): Ditto.
12413         * ui-out.c (XMALLOC): Ditto.
12414         * utils.c (XMALLOC): Ditto.
12415         * i386-tdep.c (XMALLOC): Ditto.
12416         * gdb-events.c (XMALLOC): Ditto.
12417         * d10v-tdep.c (XMALLOC): Ditto.
12418         * cli-out.c (XMALLOC): Ditto.
12419
12420         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12421         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12422         * ui-file.c, ui-out.c: Ditto.
12423
12424 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12425
12426         * command.h (struct cmd_list_element): Add field context.
12427         (set_cmd_context, get_cmd_context): Declare.
12428         * cli/cli-decode.h: Ditto.
12429         * cli/cli-decode.c (get_cmd_context): New function.
12430         (set_cmd_context): New function.
12431         (add_cmd): Initialize context.
12432         Part of fixing PR gdb/145 and PR gdb/146.
12433
12434 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12435
12436         * cli/cli-decode.c (cmd_type): New function.
12437         * command.h (cmd_type): Declare.
12438         * infrun.c (set_schedlock_func): Call function cmd_type.
12439         * kod.c (kod_set_os): Call cmd_type.
12440         * cris-tdep.c (cris_version_update): Use function cmd_type.
12441         (cris_mode_update, cris_abi_update): Ditto.
12442
12443         * command.h: (execute_cmd_post_hook): Declare.
12444         (execute_cmd_pre_hook): Declare.
12445         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12446         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12447         functions. Execute pre/post hook while ensuring that afterwords
12448         hook_in is cleared.
12449         * top.c (execute_command): Use execute_cmd_post_hook, and
12450         execute_cmd_pre_hook to execute pre/post commands.
12451         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12452         hook_stop_stub.
12453         (hook_stop_stub): Call execute_cmd_pre_hook.
12454
12455 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12456
12457         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12458         set'' and this leads to a core dump.  Move xstrdup of
12459         operating_system to after check that it is not NULL.
12460
12461 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12462
12463         * kod.c (kod_set_os): Remove unnecessary check that
12464         ``command->type'' is set_cmd.
12465
12466         * valprint.c (set_input_radix): Use input_radix.
12467         (set_output_radix): Use output_radix.
12468         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12469         isn't reverted.
12470
12471 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12472
12473         * value.h (struct value): Delete field ``substring_addr''.  Change
12474         aligner fields to force_doublest_align, force_longest_align,
12475         force_core_addr_align and force_pointer_aligh.
12476
12477         * value.h (struct value): Fix typo in above change.
12478
12479 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12480
12481         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12482         to fix internal_error from ``maintenance print architecture''.
12483
12484 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12485
12486         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12487         for gcc versions after gcc-2.8.1.
12488
12489 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12490
12491         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12492         for method resolution.  Restore adjustment of ``this'' pointer after
12493         calling value_struct_elt, which was accidentally removed during the
12494         HP merge.
12495
12496 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12497
12498         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12499         value_of_register.
12500         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12501         get_saved_register.
12502         * value.h (value_of_register): Update.
12503
12504 2002-03-14  Richard Henderson  <rth@redhat.com>
12505
12506         * configure.in: Detect declaration for canonicalize_file_name.
12507         * utils.c (canonicalize_file_name): Declare, if needed.
12508         (gdb_realpath): Prefer realpath if available and usable.
12509         * config.in, configure: Rebuild.
12510
12511 2002-03-14  Richard Henderson  <rth@redhat.com>
12512
12513         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12514         a constant array bound.
12515
12516         * MAINTAINERS: Add myself to write-after-approval.
12517
12518 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12519
12520         * symfile.c (syms_from_objfile): Return immediately if no syms.
12521         (symbol_file_add): Return immediately if no syms.
12522         (find_sym_fns): Return immediately if no syms.
12523
12524 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12525
12526         * gdbserver/remote-util.c (remote_open): Print remote-side's
12527         IP address when remote debugging over the network.
12528
12529 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12530
12531         * config/sparc/fbsd.mh: Fix copyright.
12532         * config/sparc/fbsd.mt: Likewise.
12533
12534 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12535
12536         * MAINTAINERS: Fix typo in name of gdb warnings option.
12537         (x86-64): Fix formating so that this can be parsed by awk.
12538
12539 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12540
12541         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12542         * defs.h: Include "gdb/signals.h".
12543         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12544
12545 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12546
12547         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12548         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12549         from x86-64-tdep.h
12550
12551 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12552             Don Howard <dhoward@redhat.com>
12553
12554         * mips-tdep.c (ST0_FR): Define.
12555         (mips2_fp_compat): New function, temporarily disabled.
12556         (mips_read_fp_register_single): New function.
12557         (mips_read_fp_register_double): New function.
12558         (mips_print_register): Use them.
12559         (do_fp_register_row): Likewise.
12560
12561 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12562
12563         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12564         approval''.
12565
12566 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12567
12568         * stabsread.c (read_member_functions): Fix is_stub test for
12569         static member functions, improve comment.
12570
12571 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12572
12573         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12574         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12575         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12576         commands that set boolean values.
12577         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12578         (arm_rdi_resume): Always initialize PC.
12579         (arm_rdi_open): Don't use rslt as a boolean.
12580         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12581         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12582         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12583         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12584
12585 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12586
12587         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12588         * configure: Rebuilt.
12589
12590 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12591
12592         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12593         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12594
12595 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12596
12597         * cli/cli-decode.c (set_cmd_completer): New function.
12598         * command.h (set_cmd_completer): Declare.
12599         * cli/cli-decode.h (set_cmd_completer): Ditto.
12600
12601         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12602         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12603         * win32-nat.c (_initialize_inftarg): Ditto.
12604         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12605         * proc-api.c (_initialize_proc_api): Ditto.
12606         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12607         * source.c (_initialize_source): Ditto.
12608         * exec.c (_initialize_exec): Ditto.
12609         * solib.c (_initialize_solib): Ditto.
12610         * top.c (init_main): Ditto.
12611         * tracepoint.c (_initialize_tracepoint): Ditto.
12612         * symfile.c (_initialize_symfile): Ditto.
12613         * printcmd.c (_initialize_printcmd): Ditto.
12614         * infcmd.c (_initialize_infcmd): Ditto.
12615         * corefile.c (_initialize_core): Ditto.
12616
12617 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12618
12619         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12620
12621 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12622
12623         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12624
12625 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12626
12627         * NEWS: Update headings, 5.2 has branched.
12628
12629 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12630
12631         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12632         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12633         (register_addr, REGISTER_RAW_SIZE): Likewise.
12634         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12635         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12636
12637 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12638
12639         * MAINTAINERS (x86-64): Add myself.
12640         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12641         changed value_ptr -> struct value *
12642
12643 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12644
12645         * configure.host (sparc64-*-freebsd): Add.
12646         * configure.tgt: Likewise.
12647         * config/sparc/fbsd.mh: New file.
12648         * config/sparc/fbsd.mt: Likewise.
12649         * config/sparc/nm-fbsd.h: Likewise.
12650         * config/sparc/tm-fbsd.h: Likewise.
12651
12652 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12653
12654         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12655         regformats/reg-s390x.dat.
12656
12657 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12658
12659         * utils.c: Add FIXME explaining true/false problem.
12660
12661 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12662
12663         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12664
12665 2002-02-28  Michael Chastain  <mec@shout.net>
12666
12667         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12668
12669 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12670
12671         * gdbserver/linux-s390-low.c: New file.
12672         * regformats/reg-s390.dat: New file.
12673         * regformats/reg-s390x.dat: New file.
12674         * gdbserver/configure.srv: Add S/390.
12675         * gdbserver/Makefile.in: Add S/390.
12676         * configure.tgt: Enable gdbserver for S/390.
12677
12678 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12679
12680         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12681         first line of the doc string for "info dos", except at the end of
12682         the sentence, since the short help stops at the first period.
12683
12684 2002-02-28  Jason Merrill  <jason@redhat.com>
12685
12686         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12687
12688 2002-02-27  Fred Fish  <fnf@redhat.com>
12689
12690         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12691         comment (dumy -> dummy).
12692
12693 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12694
12695         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12696
12697 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12698
12699       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12700
12701 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12702
12703         * gdbserver/acconfig.h: New file.
12704         * gdbserver/i387-fp.c: New file.
12705         * gdbserver/i387-fp.h: New file.
12706         * gdbserver/linux-x86-64.c: New file.
12707         * regformats/reg-x86-64.dat: New file.
12708         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12709         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12710         * gdbserver/configure.in: Add support for regsets.
12711         * gdbserver/config.in: Regenerate.
12712         * gdbserver/configure: Regenerate.
12713         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12714         * gdbserver/linux-low.h: New file.
12715         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12716         for regsets.
12717         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12718         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12719         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12720         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12721         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12722         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12723         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12724         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12725         * gdbserver/regcache.c (supply_register): New function.
12726         (supply_register_by_name): New function.
12727         (collect_register): New function.
12728         (collect_register_by_name): New function.
12729
12730 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12731
12732         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12733         (config.status): Add configure.srv dependency.
12734         (server_h): Add config.h dependency.
12735
12736 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12737
12738         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12739         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12740         * gdbserver/configure.srv: Change i386-*-linux* to use
12741         reg-i386-linux.o.
12742
12743 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12744
12745         * x86-64-tdep.c: Re-indent.  Update copyright date.
12746
12747 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12748
12749         From Michal Ludvig <mludvig@suse.cz>:
12750         * x86-64-tdep.c (value.h): Delete.
12751         (gdb_assert.h): Include.
12752         (x86_64_register_convert_to_virtual,
12753         x86_64_register_convert_to_raw ): Add check which lets only
12754         floating-point values to be converted.
12755         (value_push): Delete.
12756         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12757         (i386_gdbarch_init): Number of register_bytes fixed.
12758
12759 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12760
12761         * MAINTAINERS: Add x86-64 target.
12762
12763 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12764
12765         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12766         * osfsolib.c (solib_map_sections): Ditto.
12767         * irix5-nat.c (solib_map_sections): Ditto.
12768         * corelow.c (gdb_check_format): Ditto.
12769         * symfile.c (symfile_bfd_open): Ditto.
12770         * solib.c (solib_map_sections): Ditto.
12771         Fix PR gdb/354.
12772
12773 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12774
12775         * remote.c (_initialize_remote): By default, disable ``e'' and
12776         ``E'' step out-of-range packets.
12777
12778 2002-02-26  Andreas Schwab  <schwab@suse.de>
12779
12780         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12781         m68k_linux_frame_saved_pc.
12782         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12783         in_sigtramp.
12784         (SIGCONTEXT_PC_OFFSET): Remove.
12785         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12786         m68k_linux_sigtramp_saved_pc): New functions.
12787         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12788         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12789         (UCONTEXT_PC_OFFSET): Define.
12790         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12791         non-RT and RT signal trampolines.
12792
12793 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12794
12795         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12796         (TARGET_NBPG, STACK_END_ADDR): Delete
12797         (VARIABLES_INSIDE_BLOCK): Delete.
12798
12799 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12800
12801         * utils.c (perror_with_name): Make string parameter constant.
12802         (print_sys_errmsg): Ditto.
12803         (query): Ditto.
12804         * defs.h (perror_with_name): Update.
12805         (print_sys_errmsg): Update.
12806         (query): Update.
12807
12808 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12809
12810         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12811         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12812
12813 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12814
12815         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12816         if it already matches the current architecture from the exec file.
12817         Include arch-utils.h for gdbarch_info_init prototype.
12818         * Makefile.in (rs6000-nat.o): Update dependencies.
12819
12820 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12821
12822         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12823          list of exported variables.
12824
12825 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12826
12827         * gdbserver/configure.srv: New file.
12828         * gdbserver/configure.in: Use configure.srv instead
12829         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12830         from it.
12831         * gdbserver/configure: Regenerated.
12832         * gdbserver/terminal.h: New file.
12833         * gdbserver/Makefile.in: Update for configure changes.  Remove
12834         more unneeded include paths.
12835
12836 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12837
12838         From wiz at danbala:
12839         * config/sparc/tm-sp64.h: Fix grammar and typos.
12840         Fix PR gdb/287.
12841
12842 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12843
12844         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12845         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12846         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12847         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12848         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12849         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12850         * s390-tdep.c: Ditto.
12851         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12852         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12853         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12854         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12855         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12856         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12857         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12858         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12859         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12860         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12861         Fix PR gdb/378.
12862
12863 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12864
12865         * lin-thread.c: Delete file.
12866         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12867         to gdb_proc_service.h.
12868         * configure: Re-generate.
12869
12870         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12871         * serial.c (serial_open): Delete check for "ocd".
12872         Fix PR gdb/349.
12873
12874         * Makefile.in (linux-thread.o): Delete target.
12875         * linux-thread.c: Delete file.
12876
12877         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12878         renamed SH files to be consistent.
12879
12880         * symtab.c (sort_search_symbols): Use xfree.
12881
12882 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12883
12884         * arm-linux-tdep.c (arm_linux_init_abi): Register
12885         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12886         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12887         definition with undef, since we don't want the sysvr4 definition.
12888         (SKIP_TRAMPOLINE_CODE): Likewise.
12889
12890 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12891
12892         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12893
12894         * configure.in: (AC_CHECK_FUNCS) Added test for
12895         canonicalize_file_name Regenerated.
12896         * config.in, configure: Regenerated.
12897         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12898         defined use canonicalize_file_name.
12899
12900 2002-02-23  Michael Chastain  <mec@shout.net>
12901
12902         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12903
12904 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12905
12906         * README: Remove references to cygnus.com.
12907         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12908         dot com'' form.  Remove references to cygnus.com and sourceware.
12909
12910 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12911
12912         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12913         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12914         1003.1-2001 no longer allows "head -1".
12915         * gdb/Makefile.in (version.c): Likewise.
12916         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12917         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12918         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12919
12920 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12921
12922         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12923         * command.h (cmd_cfunc_eq): Declare.
12924         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12925
12926         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12927         ``struct cmd_list_element *''.
12928         * cli/cli-cmds.c (is_complete_command): Update.  Use
12929         cmd_cfunc_eq.
12930         * top.c (execute_command): Pass the command to
12931         is_complete_command.
12932         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12933
12934 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12935
12936         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12937         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12938         architecture defines.
12939         * s390-tdep.c (s390_gdbarch_init): Likewise.
12940
12941 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12942
12943         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12944         (arm_linux_push_arguments): Likewise.
12945         (arm_linux_init_abi): Register them.  Also register linux-specific
12946         call_dummy_words.
12947         (find_minsym_and_objfile): Use strcmp, not STREQ.
12948         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12949         (arm_linux_call_dummy_words): Delete declaration.
12950         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12951         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12952         declarations.
12953         (LOWEST_PC): Delete.
12954
12955 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12956
12957         * maint.c (print_section_info): Do not prepend `0x' to filepos
12958         output, it will be handled by local_hex_string_custom.
12959
12960 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12961
12962         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12963         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12964         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12965
12966 2002-02-22  Jim Blandy  <jimb@redhat.com>
12967
12968         Indicate that the bcache functions don't change the strings
12969         they're passed.
12970         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12971         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12972
12973 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12974
12975         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12976
12977 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12978
12979         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12980         find the complete path to a loaded DLL.
12981
12982 2002-02-21  Fred Fish  <fnf@redhat.com>
12983
12984         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12985         that marks the end of the range of a function, enter a line number
12986         entry that has a line number of zero and a PC offset that matches
12987         the end of the function.  This starts a range of PC's for which no
12988         line number information is known.
12989         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12990         PC's for which no line number info is found (line number is zero)
12991         then we didn't find any valid line information.
12992         * symtab.h: Document use of zero line number entry.
12993
12994 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12995
12996         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12997         (have_ptrace_getvrregs): Define for run time checks.
12998         (gdb_vrregset_t): New type for Altivec register handling.
12999         (fetch_register, store_register): Fetch/store altivec register
13000         when needed.
13001         (fetch_altivec_register, store_altivec_register): New functions.
13002         (supply_vrregset, fill_vrregset): New functions.
13003         (fetch_altivec_registers, store_altivec_registers): New functions.
13004         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13005         registers as well.
13006
13007 2002-02-21  Jiri Smid  <smid@suse.cz>
13008
13009         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13010
13011 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13012
13013         * Makefile.in (armnbsd-nat.o): Update dependencies.
13014         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13015         supply the integer register set.
13016         (supply_fparegset): New function.  Similar for FPA registers.
13017         (fetch_regs, fetch_fp_regs): Use them.
13018         (fetch_core_registers): Likewise.
13019         (fetch_elfcore_registers): New function.
13020         (arm_netbsd_elfcore_fns): New core-file type specification.
13021         (_initialize_arm_netbsd_nat): Register it.
13022
13023 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13024
13025         * armnbsd-nat.c: Include gdbcore.h.
13026         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13027         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13028         'void' to declaration, to shut up ARI.
13029         (fetch_core_registers): Make static.  Rewrite using supply_register.
13030         (arm_netbsd_core_fns): New core-file type specification.
13031         (_initialize_arm_netbsd_nat): New function.
13032
13033 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13034
13035         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13036         value.
13037
13038 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13039
13040         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13041         fails.
13042
13043 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13044
13045         * jv-exp.y (parse_number): Change type of implicit longs
13046         to builtin_type_uint64.
13047
13048 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13049
13050         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13051         to be an integer instead of a `union wait'.
13052
13053 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13054
13055         * mips-linux-nat.c: Call the operating system GNU/Linux.
13056         * mips-linux-tdep.c: Likewise.
13057         * mips-tdep.c: Likewise.
13058
13059 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13060
13061         Fix PR gdb/265.
13062         * jv-exp.y (parse_number): Handle 64-bit integers.
13063
13064 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13065
13066         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13067         AC_STDC_HEADERS to AC_HEADER_STDC.
13068         * gdbserver/configure: Regenerated.
13069
13070 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13071
13072         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13073         is defined.
13074         * sparc-tdep.c (get_longjmp_target): Likewise.
13075
13076 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13077
13078         * News: Add news about ARM and Multi-arch.  Mention the new target
13079         arm*-*-netbsd*.
13080
13081 2002-02-19  Jim Blandy  <jimb@redhat.com>
13082
13083         * stabsread.c (error_type_complaint): Improve error message.
13084
13085 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13086
13087         * gdbserver/README: Update documentation.
13088         * gdbserver/configure.in: Update configury to match documentation.
13089         * gdbserver/Makefile.in: Likewise.
13090         * gdbserver/configure: Regenerated.
13091         * gdbserver/aclocal.m4: New file, generated by aclocal.
13092         * gdbserver/config.in: New file, generated by autoheader.
13093
13094 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13095
13096         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13097         armnbsd-nat.c.
13098
13099 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13100
13101         * arm-tdep.h (enum arm_float_model): New enum.
13102         (struct gdbarch_tdep): Add fp_model.
13103         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13104         up floating-point conversions until we know the floating-point model
13105         in use by the inferior.  Don't complain about being unable to
13106         determine the ABI of the inferior when we don't have one.
13107         (arm_extract_return_value): Support different floating-point models.
13108         (arm_store_return_value): Likewise.
13109         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13110         ARM_FLOAT_SOFT.
13111         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13112
13113 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13114
13115         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13116         of ``current_gdbarch''.
13117
13118 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13119
13120         * armnbsd-nat.c : ANSIfy all function declarations.
13121         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13122         (fetch_inferior_registers): Re-implement in terms of above.
13123         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13124         (store_inferior_registers): Re-implement in terms of above.
13125
13126 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13127
13128         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13129         kernel.
13130         * arm-linux-tdep.c: Likewise.
13131         * config/arm/tm-linux.h: Likewise.
13132
13133 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13134
13135         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13136         * config/arm/nbsd.mt (TM_FILE): Delete.
13137         * config/arm/tm-nbsd.h: Delete.
13138
13139 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13140
13141         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13142         Initialize CALL_DUMMY_LENGTH.
13143
13144 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13145
13146         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13147         function.
13148         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13149         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13150         defines one thing and that is incorrect for this port.
13151         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13152
13153 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13154
13155         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13156
13157 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13158
13159         * win32-nat.c (display_selector): New function. Displays information
13160         about the information returned by GetThreadSelectorEntry API function.
13161         (display_selectors): New function. Displays the infomation of
13162         the selector given as argument, or of CS, DS ans FS selectors
13163         if no argument is given.
13164         ( _initialize_inftarg): Add "w32" as info prefix command.
13165         Add "info w32 selector" as command calling display_selectors.
13166
13167 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13168
13169         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13170         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13171         if not defined.
13172
13173 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13174
13175         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13176
13177 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13178
13179         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13180         (arm_fix_call_dummy): Call it.
13181         (arm_call_dummy_breakpoint_offset): Delete.
13182         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13183         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13184
13185 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13186
13187         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13188         Default to func_frame_chain_valid.
13189         * gdbarch.h, gdbarch.c: Re-generate.
13190         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13191
13192 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13193
13194         * ppc-linux-nat.c: Update copyright.
13195         (fetch_register, store_register): Add tid parameter, don't compute
13196         tid here.
13197         (fetch_ppc_registers, store_ppc_registers): Add tid
13198         parameter. Pass it along to callees.
13199         (fetch_inferior_registers, store_inferior_registers): Compute tid
13200         here, and pass it to calleed functions.
13201         (fill_gregset, supply_fpregset): Clean up formatting.
13202
13203 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13204
13205         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13206         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13207
13208 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13209
13210         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13211         * gdbarch.c gdbarch.h: Regenerate.
13212         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13213         function.
13214         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13215         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13216         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13217
13218         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13219         * arm-tdep.c (arm_get_longjmp_target): New function.
13220         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13221         this to a positive value register arm_get_longjmp_target as the
13222         longjmp handler.
13223         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13224         (arm_linux_init_abi): Set up longjmp description in tdep.
13225         * armnbsd-nat.c (get_longjmp_target): Delete.
13226         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13227         description in tdep.
13228         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13229         (get_longjmp_target): Delete declaration.
13230         (GET_LONGJMP_TARGET): Delete.
13231         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13232         (GET_LONGJMP_TARGET): Delete.
13233
13234 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13235
13236         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13237         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13238         of ``current_gdbarch''.
13239
13240 2002-02-17  Tom Tromey  <tromey@redhat.com>
13241
13242         * cli/cli-cmds.c (compare_strings): New function.
13243         (complete_command): Only print each unique item once.
13244         * completer.h (complete_line): Declare.
13245         * completer.c (complete_line): New function.
13246         (line_completion_function): Use it.
13247
13248 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13249
13250         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13251         * gdbarch.h, gdbarch.c: Re-generate.
13252
13253 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13254
13255         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13256
13257 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13258
13259         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13260         * valops.c (value_arg_coerce): Don't take the address of a reference
13261         to convert an argument to a reference.
13262
13263 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13264
13265         * win32-nat.c (get_image_name): New function.
13266         (handle_load_dll): Use get_image_name function.
13267         (get_child_debug_event): Avoid registering debug events until possibly
13268         execed process is started.
13269         (child_create_inferior): Allow invocation via shell so that command
13270         line redirection, etc.  works ok.
13271         (_initialize_inftarg): Add new command: "set shell" to control whether
13272         a shell is used to start a process.
13273
13274 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13275
13276         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13277         instead of find_register_by_number.
13278         (cannot_store_register): Likewise.
13279
13280 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13281
13282         * dwarf2read.c: Replace fprintf (stderr, ...) by
13283         fprintf_unfiltered (gdb_stderr, ...).
13284
13285 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13286
13287         * gdbserver/gdbserver.1: Document --attach.
13288
13289 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13290
13291         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13292         descriptions.
13293         * arm-tdep.c (arm_default_arm_le_breakpoint)
13294         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13295         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13296         traditional breakpoint defines.
13297         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13298         (arm_gdbarch_init): Initialize new breakpoint variables.
13299         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13300         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13301         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13302         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13303         code out to ...
13304         (arm_netbsd_init_abi_common): ... here; new function.
13305         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13306         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13307         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13308         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13309
13310 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13311
13312         * arm-tdep.h (enum arm_abi): New enum.
13313         (struct gdbarch_tdep): New structure.
13314         (LOWEST_PC): Provide a default.
13315         (arm_gdbarch_register_os_abi): Declare new function.
13316         * arm-tdep.c (arm_abi_names): New array.
13317         (process_note_abi_tag_sections): New function.
13318         (get_elfosabi): New function.
13319         (arm_gdbarch_register_os_abi): New function.
13320         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13321         support for that ABI has been built in, then call the appropriate
13322         configuration routine.  Use gdbarch_num_regs() to get the number
13323         of registers.
13324         (arm_dump_tdep): New function.
13325         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13326         place-holder functions.
13327         (_initialize_arm_tdep): Register them.
13328         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13329
13330         * armnbsd-tdep.c: New file.
13331         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13332         * config/arm/nbsd.mt (TDEPFILES): Add it.
13333         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13334
13335         * armnbsd-nat.c: Include regcache.h.
13336         * Makefile.in (armnbsd-nat.o): Update dependency list.
13337
13338         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13339
13340 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13341
13342         * gdbserver/Makefile.in: Fix typos in target rules.
13343
13344 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13345
13346         Fix part of PR gdb/267.
13347         * linespec.c (find_methods): Handle constructors specially for now.
13348
13349 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13350
13351         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13352         handling.
13353         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13354         standard_coerce_float_to_double().
13355
13356 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13357
13358         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13359         GDBINIT_FILENAME.
13360
13361 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13362
13363         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13364         find_variant_by_name, because it confuses the multiarch
13365         framework. Return NULL if there isn't an architecture with the
13366         user supplied name, instead of forcing a different one without
13367         recording the change with the multiarch machinery.
13368         (find_variant_by_name): Delete.
13369
13370 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13371
13372         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13373         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13374
13375 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13376
13377         * stack.c (print_frame_info_base): When calling
13378         print_frame_info_listing_hook, set current_source_symtab.
13379
13380 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13381
13382         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13383         and remove unused $(INCLUDE_DIR).
13384         Add regcache.c to OBS.
13385         Add generated register protocol files to clean target.
13386         Update dependencies for new objects, obsolete old target code.
13387
13388         * gdbserver/linux-low.c: Remove all platform-specific code to
13389         new files.  Remove various dead code.  Update to use regcache
13390         functionality.
13391         * gdbserver/remote-utils.c (fromhex): Add return statement
13392         to quiet warning.
13393         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13394         constant.
13395         (input_interrupt): Add integer parameter to match prototype
13396         of a signal handler.
13397         (outreg): Use register_data ().
13398         (prepare_resume_reply): Use gdbserver_expedite_regs.
13399         * gdbserver/server.c (main): Dynamically allocate own_buf because
13400         PBUFSIZ is no longer constant.  Use registers_to_string () and
13401         registers_from_string ().
13402         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13403         for error (), fatal (), and warning ().  Update definition of
13404         PBUFSIZ to use regcache functionality.  Add include guard.
13405         * gdbserver/utils.c (fatal): Add missing ``const''.
13406         (warning): New function.
13407
13408         * regformats/regdat.sh: Include "regcache.h" in generated files.
13409         Provide init_registers () function.
13410         * regformats/regdef.h: Add prototype for set_register_cache ().
13411         Add include guard.
13412
13413         * gdbserver/linux-arm-low.c: New file.
13414         * gdbserver/linux-i386-low.c: New file.
13415         * gdbserver/linux-ia64-low.c: New file.
13416         * gdbserver/linux-m68k-low.c: New file.
13417         * gdbserver/linux-mips-low.c: New file.
13418         * gdbserver/linux-ppc-low.c: New file.
13419         * gdbserver/linux-sh-low.c: New file.
13420
13421         * gdbserver/regcache.c: New file.
13422         * gdbserver/regcache.h: New file.
13423
13424         * gdbserver/low-linux.c: Removed obsolete file.
13425
13426 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13427
13428         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13429         * config/i386/linux.mt: Likewise.
13430         * config/ia64/linux.mt: Likewise.
13431         * config/m68k/linux.mh: Likewise.
13432         * config/powerpc/linux.mh: Likewise.
13433         * config/mips/linux.mt: Likewise.
13434
13435         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13436
13437         * config/i386/i386lynx.mh: Mark gdbserver variables
13438         as (currently) obsolete for this target.
13439         * config/i386/nbsd.mt: Likewise.
13440         * config/i386/nbsdelf.mt: Likewise.
13441         * config/m32r/m32r.mt: Likewise.
13442         * config/m68k/m68klynx.mh: Likewise.
13443         * config/m68k/nbsd.mt: Likewise.
13444         * config/m68k/sun3os4.mh: Likewise.
13445         * config/mips/vr5000.mt: Likewise.
13446         * config/ns32k/nbsd.mt: Likewise.
13447         * config/pa/hppabsd.mh: Likewise.
13448         * config/pa/hppaosf.mh: Likewise.
13449         * config/powerpc/nbsd.mt: Likewise.
13450         * config/rs6000/rs6000lynx.mh: Likewise.
13451         * config/s390/s390.mt: Likewise.
13452         * config/s390/s390x.mt: Likewise.
13453         * config/sparc/sparclynx.mh: Likewise.
13454         * config/sparc/sun4os4.mh: Likewise.
13455         * config/i386/x86-64linux.mt: Likewise.
13456         * config/sparc/linux.mh: Likewise.
13457
13458 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13459
13460         * configure.tgt: Configure gdbserver only for known working
13461         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13462         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13463         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13464         * configure: Regenerated.
13465
13466 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13467
13468         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13469
13470         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13471         (default_gcore_mach): Just return 0, work around a problem in bfd.
13472         (default_gcore_target): OK to return NULL if exec_bfd is null.
13473         (make_mem_sec): Use a cast, avoid a warning.
13474
13475         * procfs.c (find_memory_regions_callback): Use a cast instead of
13476         calling host_pointer_to_address (which complains if
13477         sizeof (host pointer) != sizeof (target pointer)).
13478         (procfs_make_note_section): Avoid overflow in psargs string.
13479
13480         * procfs.c (procfs_make_note_section): Make the default
13481         implementation return an error.
13482
13483 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13484
13485         * procfs.c (procfs_make_note_section): Provide a default definition
13486         (for alpha-dec-osf4.0f). Fix typos.
13487
13488 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13489
13490         * linux-proc.c: Add include of regcache.h.
13491         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13492
13493 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13494
13495         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13496         * memattr.c (create_mem_region): Disallow useless empty region.
13497         Regions are half-open intervals, so allow [A..B) [B..C) as
13498         non-overlapping.
13499
13500 2002-02-13  Michael Chastain <mec@shout.net>
13501
13502         * defs.h: Kill CONST_PTR.
13503         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13504         * c-lang.c (c_builtin_types): Likewise.
13505         * ch-lang.c (ch_builtin_types): Likewise.
13506         * f-lang.c (f_builtin_types): Likewise.
13507         * language.c (unknown_builtin_types): Likewise.
13508         * m2-lang.c (m2_builtin_types): Likewise.
13509         * p-lang.c (pascal_builtin_types): Likewise.
13510         * scm-lang.c (c_builtin_types): Likewise.
13511
13512 2002-02-13  Keith Seitz  <keiths@redhat.com>
13513
13514         * arm-tdep.h (arm_get_next_pc): Add declaration.
13515
13516 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13517
13518         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13519         with other related struct-returning functions.
13520         (arm_extract_struct_value_address): New function.
13521         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13522         initialize float_format, double_format and long_double_format as
13523         appropriate to the endianness of the target.
13524         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13525         (arm_use_struct_convention): Delete declaration.
13526         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13527
13528 2002-02-13  Keith Seitz  <keiths@redhat.com>
13529
13530         * defs.h (core_addr_to_string_nz): New function.
13531
13532 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13533
13534         Apply missing bits of 2002-01-15 patch.
13535         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13536         (fill_fpregset): Use i387_fill_fsave.
13537
13538 2002-02-12  Keith Seitz  <keiths@redhat.com>
13539
13540         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13541         (core_addr_to_string_nz): New function.
13542
13543 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13544
13545         * arm-linux-nat.c: Really include arm-tdep.h.
13546         * config/arm/tm-linux.h (struct type, struct value): Declare.
13547
13548 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13549
13550         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13551         (gcore section): Ifdef for Solaris and Unixware only.
13552         (procfs_do_thread_registers): Unixware needs one lwpstatus
13553         per thread (not one prstatus or pstatus).
13554         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13555         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13556         once before iterating over threads.
13557
13558 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13559
13560         * arm-tdep.h: New file.
13561         * arm-tdep.c: Include arm-tdep.h.
13562         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13563         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13564         (arm_print_float_info, arm_register_type, convert_to_extended)
13565         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13566         (arm_extract_return_value, arm_register_name): Make static.
13567         (arm_software_single_step): Similarly.  Fix types in declaration.
13568         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13569         (arm_store_return_value, arm_store_struct_return): New functions.
13570         (arm_gdbarch_init): Register the above functions.  Also register
13571         call_dummy_start_offset, sizeof_call_dummy_words,
13572         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13573         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13574         max_register_virtual_size, register_size.  Set up
13575         prologue_cache.saved_regs here, rather than ...
13576         (_initialize_arm_tdep): ... here.
13577         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13578         declarations.
13579         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13580         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13581         (arm_print_float_info, arm_register_type, convert_to_extended)
13582         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13583         (arm_extract_return_value, arm_register_name): Delete declarations.
13584         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13585         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13586         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13587         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13588         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13589         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13590         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13591         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13592         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13593         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13594         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13595         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13596         interface.
13597         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13598         * remote-rdi.c remote-rdp.c: Likewise.
13599         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13600         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13601         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13602         definition.
13603
13604         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13605         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13606         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13607         from non-ARM_ prefixed definitions.
13608         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13609         all uses of above.
13610         * remote-rdi.c remote-rdp.c: Likewise.
13611         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13612
13613 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13614
13615         * arm-tdep.c (arm_frameless_function_invocation)
13616         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13617         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13618         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13619         (arm_pop_frame, arm_get_next_pc): Make static.
13620         (arm_gdbarch_init): Register above in gdbarch structure.
13621         (arm_read_fp): Renamed from arm_target_read_fp.
13622         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13623         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13624         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13625         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13626         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13627         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13628         (arm_pc_is_thumb_dummy): Delete declarations.
13629         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13630         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13631         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13632         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13633
13634 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13635
13636         * symtab.c (compare_search_syms): New function.
13637         (sort_search_symbols): New function.
13638         (search_symbols): Sort symbols after searching rather than
13639         before.
13640
13641 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13642
13643         * NEWS: Linux -> GNU/Linux.
13644
13645 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13646
13647         * gdbarch.sh: For for level one methods, disallow a definition
13648         when partially multi-arched.  Add comments explaining rationale.
13649         * gdbarch.h: Re-generate.
13650
13651 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13652
13653         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13654         multi-arch partial.
13655
13656 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13657
13658         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13659         field.  Use diff -u.
13660         * gdbarch.c: Re-generate.
13661
13662 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13663
13664         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13665         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13666         partial.
13667
13668 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13669
13670         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13671         multi-arch partial.
13672         (PUSH_ARGUMENTS): Switch to using predefault.
13673         * gdbarch.c: Regenerate.
13674
13675 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13676
13677         * valops.c (PUSH_ARGUMENTS): Delete definition.
13678         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13679         partial.  Default to default_push_arguments.
13680         * gdbarch.h, gdbarch.c: Regenerate.
13681
13682 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13683
13684         * defs.h (throw_exception): Rename return_to_top_level.  Update
13685         comments.
13686         * utils.c (error_stream, internal_verror, quit): Ditto.
13687         * top.c (throw_exception, catcher): Ditto.
13688         * sparclet-rom.c (sparclet_load): Ditto.
13689         * remote.c (interrupt_query, minitelnet): Ditto.
13690         * remote-sds.c (interrupt_query): Ditto.
13691         * remote-mips.c (mips_error, mips_kill): Ditto.
13692         * ocd.c (interrupt_query): Ditto.
13693         * monitor.c (monitor_interrupt_query): Ditto.
13694         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13695         * target.h: Update comment.
13696
13697         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13698
13699 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13700
13701         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13702         default_double_format.
13703         * gdbarch.h, gdbarch.c: Re-generate.
13704         * findvar.c (floatformat_unknown): Delete variable definition.
13705         * doublest.h (floatformat_unknown): Delete variable declaration.
13706
13707 2002-02-09  Jim Blandy  <jimb@redhat.com>
13708
13709         * stabsread.c (read_type): Add code to parse Sun's syntax for
13710         prototyped function types.
13711
13712 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13713
13714         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13715         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13716
13717 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13718
13719         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13720         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13721         now _initialize_xcoffsolib gets called again and overrides the
13722         commands from solib.c in a native configuration.
13723
13724 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13725
13726         * doublest.c (store_typed_floating): Don't try to return a value.
13727         Fixes PR gdb/290.
13728
13729 2002-02-08  Jim Blandy  <jimb@redhat.com>
13730
13731         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13732         is prototyped and has no arguments, print its argument list as
13733         `(void)'.
13734
13735 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13736
13737         * MAINTAINERS (write-after-approval): Add myself.
13738         (paper-trail): I've escaped!
13739
13740 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13741
13742         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13743         changes.
13744         (_initialize_check_for_gdb_ini): Ditto.
13745
13746 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13747
13748         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13749         xaprintf -> xasprintf.
13750
13751 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13752
13753         * win32-nat.c: Remove use of printf and sprintf functions.
13754
13755 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13756
13757         * arm-tdep.c (arm_frame_chain_valid): Make static.
13758         (arm_push_arguments): Likewise.
13759         (arm_gdbarch_init): New function.
13760         (_initialize_arm_tdep): Call it.
13761         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13762         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13763         (FRAME_CHAIN_VALID): Delete.
13764         (arm_frame_chain_valid): Delete declaration.
13765         (PUSH_ARGUMENTS): Delete.
13766         (arm_push_arguments): Delete declaration.
13767         (CALL_DUMMY_P): Delete.
13768
13769 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13770             Corinna Vinschen  <vinschen@redhat.com>
13771
13772         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13773         on builtin float types.
13774
13775 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13776
13777         * utils.c: Include <curses.h> before "bfd.h".
13778         * tui/tui-hooks.c: Likewise.
13779         * tui/tui.c: Likewise.
13780         * tui/tuiCommand.c: Likewise.
13781         * tui/tuiData.c: Likewise.
13782         * tui/tuiDataWin.c: Likewise.
13783         * tui/tuiDisassem.c: Likewise.
13784         * tui/tuiGeneralWin.c: Likewise.
13785         * tui/tuiIO.c: Likewise.
13786         * tui/tuiLayout.c: Likewise.
13787         * tui/tuiRegs.c: Likewise.
13788         * tui/tuiSource.c: Likewise.
13789         * tui/tuiSourceWin.c: Likewise.
13790         * tui/tuiStack.c: Likewise.
13791         * tui/tuiWin.c: Likewise.
13792
13793 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13794
13795         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13796         to include space for pseudoregs as well. Update loops accordingly.
13797         (sh_fp_frame_init_saved_regs): Ditto.
13798         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13799
13800 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13801
13802         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13803         Add Richard Earnshaw to Arm maintainers.
13804
13805 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13806
13807         * defs.h (warning_begin): Delete declaration.
13808
13809         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13810         Delete macro.
13811
13812 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13813
13814         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13815         Logic bug, remove misplaced else.
13816
13817 2002-02-07  Klee Dienes  <klee@apple.com>
13818
13819         * fork-inferior.c (fork_inferior): Add '!' to the list of
13820         characters that need to be quoted when building a string for the
13821         shell.  Quote '!' specifically with a backslash, since CSH chokes
13822         when trying to evaluate "str!str".
13823
13824 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13825
13826         * rdi-share/host.h: Only provide a typedef for bool if it is not
13827         defined.
13828
13829 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13830
13831         * breakpoint.h (enum bptype): Add new overlay event bp type.
13832         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13833
13834         * breakpoint.c (create_internal_breakpoint): New function.
13835         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13836         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13837         (create_thread_event_breakpoint): Ditto.
13838         (create_solib_event_breakpoint): Ditto.
13839         (create_overlay_event_breakpoint): New function.
13840         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13841         (update_breakpoints_after_exec): Delete and re-initialize
13842         overlay event breakpoints after an exec.  Add FIXME comment
13843         about longjmp breakpoint.
13844         (print_it_typical): Ignore overlay event breakpoints.
13845         (print_one_breakpoint): Ditto.
13846         (mention): Ditto.
13847         (bpstat_what): Do not stop for overlay event breakpoints.
13848         (delete_breakpoint): Don't delete overlay event breakpoints.
13849         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13850         (breakpoint_re_set): Re-create overlay event breakpoint.
13851
13852         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13853         (overlay_manual_command): Disable overlay breakpoints.
13854         (overlay_off_command): Disable overlay breakpoints.
13855
13856 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13857
13858         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13859         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13860         to here from config/tm-arm.h.
13861         (coff_sym_is_thumb): Make static.
13862         (arm_elf_make_msymbol_special): New function.
13863         (arm_coff_make_msymbol_special): New function.
13864         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13865         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13866         (coff_sym_is_thumb): Delete declaration.
13867         (arm_elf_make_msymbol_special): Declare.
13868         (arm_coff_make_msymbol_special): Declare.
13869         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13870         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13871
13872 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13873
13874         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13875
13876 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13877
13878         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13879         * gdbarch.c gdbarch.h: Regenerate.
13880         * arch-utils.c (default_print_float_info): New function.
13881         * arch-utils.h (default_print_float_info): Prototype it.
13882         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13883         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13884         (PRINT_FLOAT_INFO): Document it.
13885
13886         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13887         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13888         (PRINT_FLOAT_INFO): Define.
13889
13890 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13891
13892         * win32-nat.c (_initialize_check_for_gdb_ini):
13893         Add typecast to sprintf argument to suppress a warning.
13894
13895 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13896
13897         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13898         to allow easier handling of pass state.
13899         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13900         that gives exception name and address.
13901         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13902         and set last_sig value to ourstatus->value.sig. Some missing
13903         exceptions added.
13904         (child_continue): Correctly report continue_status.
13905         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13906         TARGET_SIGNAL_0 (new default value).
13907         (child_resume): consider sig argument passed to decide if
13908         the exception should be passed to debuggee or not.
13909
13910 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13911
13912         * regcache.c (fetch_register): Call target_fetch_register
13913         only if we don't call FETCH_PSEUDO_REGISTER.
13914         (store_register): Call target_store_register only if we
13915         don't call STORE_PSEUDO_REGISTER.
13916
13917 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13918
13919         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13920         ELF_MAKE_MSYMBOL_SPECIAL.
13921         * gdbarch.c, gdbarch.h: Regenerate.
13922         * arch-utils.c (default_make_msymbol_special): New function.
13923         * arch-utils.h (default_make_msymbol_special): Export.
13924         * elfread.c (elf_symtab_read): Compile use of
13925         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13926         multiarched.
13927         * coffread.c (coff_symtab_read): Ditto, for
13928         COFF_MAKE_MSYMBOL_SPECIAL.
13929
13930 2002-02-05  Jim Blandy  <jimb@redhat.com>
13931
13932         * solib-svr4.c (svr4_truncate_ptr): New function.
13933         (svr4_relocate_section_addresses): Do the address arithmetic with
13934         the appropriate truncation for target addresses, even when
13935         CORE_ADDR is larger than a target address.
13936
13937 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13938
13939         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13940         to (int *).
13941
13942 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13943
13944         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13945         code.
13946
13947 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13948
13949         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13950
13951 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13952
13953         * gdbserver/linux-low.c: Remove unused include files.
13954
13955 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13956
13957         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13958         (read_inferior_memory): Use it.
13959         (write_inferior_memory): Likewise.
13960
13961 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13962
13963         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13964         grubbing through sys_errlist.
13965
13966 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13967
13968         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13969
13970 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13971         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13972
13973 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13974
13975         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13976         (do_sfunc, set_cmd_sfunc): New functions.
13977
13978         * command.h (struct cmd_list_element): Add field func.
13979         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13980         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13981         * cli/cli-decode.h: Ditto.
13982
13983         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13984         (help_all, help_cmd_list): Ditto.
13985         (find_cmd, complete_on_cmdlist): Ditto.
13986         * top.c (execute_command): Ditto.
13987
13988         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13989         function.sfunc.
13990
13991         * infcmd.c (notice_args_read): Fix function signature.
13992
13993         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13994         * cli/cli-decode.c (add_set_cmd): Ditto.
13995         * utils.c (initialize_utils): Ditto.
13996         * maint.c (_initialize_maint_cmds): Ditto.
13997         * infrun.c (_initialize_infrun): Ditto.
13998         * demangle.c (_initialize_demangler): Ditto.
13999         * remote.c (add_packet_config_cmd): Ditto.
14000         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14001         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14002         * proc-api.c (_initialize_proc_api): Ditto.
14003         * kod.c (_initialize_kod): Ditto.
14004         * valprint.c (_initialize_valprint): Ditto.
14005         * top.c (init_main): Ditto.
14006         * infcmd.c (_initialize_infcmd): Ditto.
14007         * corefile.c (_initialize_core): Ditto.
14008         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14009         * arch-utils.c (initialize_current_architecture): Ditto.
14010         (_initialize_gdbarch_utils): Ditto.
14011         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14012
14013         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14014         * wince.c (_initialize_inftarg): Ditto.
14015         * symfile.c (_initialize_symfile): Ditto.
14016         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14017         * language.c (_initialize_language): Ditto.
14018         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14019
14020 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14021
14022         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14023
14024 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14025
14026         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14027         Add rules for building the register data files.
14028
14029 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14030
14031         * regformats/regdat.sh: Add braces to the definition of
14032         expedite_regs_${arch}.
14033
14034 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14035
14036         * regformats/regdef.h (struct reg): Add comment describing the
14037         requirements for offset and size fields.
14038
14039 2002-02-04  Andreas Schwab  <schwab@suse.de>
14040
14041         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14042         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14043
14044 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14045
14046         * gdbarch.sh (copyright): Update years in generated header.
14047         (SMASH_TEXT_ADDRESS): Add rule.
14048         * gdbarch.h, gdbarch.c: Re-generate.
14049         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14050         * dbxread.c: Likewise.
14051         * dwarfread.c: Likewise.
14052         * elfread.c: Likewise.
14053         * somread.c: Likewise.
14054
14055         * arm-tdep.c (arm_smash_text_address): New function.
14056         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14057
14058 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14059
14060         Add support for hardware watchpoints on win32 native.
14061         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14062         CONTEXT_DEBUG_REGISTERS.
14063         (dr variable): New variable. Static array containing a local copy
14064         of debug registers.
14065         (debug_registers_changed): New variable.  Reflects when debug registers
14066         are changed and need to be written to inferior.
14067         (debug_registers_used): New variable. Reflects when any debug register
14068         was set, used when new threads are created.
14069         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14070         i386-nat code.
14071         (thread_rec): Set dr array if id is the thread of current_event .
14072         (child_continue, child_resume): Change the debug registers for all
14073         threads if debug_registers_changed.
14074         (child_add_thread): Change the debug registers if debug_registers_used.
14075         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14076         Link nm.h to new nm-cygwin.h file.
14077         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14078         of hardware registers.
14079
14080 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14081
14082         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14083         Restore behavour broken by 2002-01-20 Andrew Cagney
14084         <ac131313@redhat.com> IEEE_FLOAT removal.
14085
14086 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14087
14088         * c-valprint.c (c_val_print): Pass a proper valaddr to
14089         cp_print_class_method.
14090         * valops.c (search_struct_method): If there is only one method
14091         and args is NULL, return that method.
14092
14093 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14094
14095         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14096         accessing tag_name directly.
14097
14098 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14099
14100         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14101         of accessing tag_name directly.
14102
14103 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14104
14105         PR gdb/280
14106         * gdbtypes.c (replace_type): New function.
14107         * gdbtypes.h (replace_type): Add prototype.
14108         * stabsread.c (read_type): Use replace_type.
14109
14110 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14111
14112         * Makefile.in (memattr.o): Add missing dependencies rule.
14113
14114 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14115
14116         * breakpoint.c (break_at_finish_command): Really export.
14117         (break_at_finish_at_depth_command): Ditto.
14118         (tbreak_at_finish_command): Ditto.
14119         * hppa-tdep.c: Include completer.h.
14120         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14121         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14122
14123 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14124
14125         * utils.c (do_write): New function.
14126         (error_stream): Rewrite combining the code from error_begin and
14127         verror.
14128         (verror): Rewrite using error_stream.
14129         (error_begin): Delete function.
14130
14131 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14132
14133         * utils.c (error_begin): Make static.
14134         * defs.h (error_begin): Delete declaration.
14135
14136         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14137         (decode_line_1): Use cplusplus_error instead of error_begin,
14138         cplusplus_hint and return_to_top_level.
14139         * coffread.c (coff_symfile_read): Use error instead of error_begin
14140         and return_to_top_level.
14141         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14142
14143 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14144
14145         * language.h (type_error, range_error): Make string parameter
14146         constant.
14147         * language.c (warning_pre_print): Delete extern declaration.
14148         * dwarfread.c (warning_pre_print): Ditto.
14149         * language.c (type_error, range_error): Rewrite to use verror and
14150         vwarning instead of warning_begin.
14151
14152 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14153
14154         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14155         (set_ignore_count): Move misplaced comment back where it belongs.
14156
14157 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14158
14159         * command.h (NO_FUNCTION): Delete macro.
14160         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14161         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14162         * tracepoint.c (_initialize_tracepoint): Ditto.
14163         * cli/cli-decode.c (add_set_cmd): Ditto.
14164         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14165
14166 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14167
14168         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14169         Update ``this'' pointer when calling virtual functions.
14170
14171 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14172
14173         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14174         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14175
14176 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14177
14178         * regformats/reg-arm.dat: New file.
14179         * regformats/reg-i386.dat: New file.
14180         * regformats/reg-ia64.dat: New file.
14181         * regformats/reg-m68k.dat: New file.
14182         * regformats/reg-mips.dat: New file.
14183         * regformats/reg-ppc.dat: New file.
14184         * regformats/reg-sh.dat: New file.
14185         * regformats/regdef.h: New file.
14186         * regformats/regdat.sh: New file.
14187
14188 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14189
14190         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14191         (arm_frame_args_address, arm_frame_locals_address): New functions.
14192         (arm_frame_num_args): New function.
14193         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14194         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14195         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14196
14197 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14198
14199         * breakpoint.c (break_at_finish_command): Export.
14200         (break_at_finish_at_depth_command): Export.
14201         (tbreak_at_finish_command): Export.
14202         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14203         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14204         "txbreak" commands, which are HPPA specific.
14205
14206         * printcmd.c (disassemble_command): Remove an ancient
14207         artifact of an old merge.
14208
14209         * symfile.h (enum overlay_debugging_state):
14210         Define enum constant values for overlay mode.
14211         * symfile.c (overlay_debugging): Use enums instead of literals.
14212         (overlay_is_mapped, overlay_auto_command,
14213         overlay_manual_command): Ditto.
14214
14215         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14216         breakpoint_here_p, breakpoint_inserted_here_p,
14217         breakpoint_thread_match, bpstat_stop_status,
14218         describe_other_breakpoints, check_duplicates, clear_command):
14219         Coding standard fixes.
14220
14221         * target.c (target_xfer_memory): Add spaces, coding standard.
14222         (do_xfer_memory): Add missing line to trust-readonly
14223         code: check bfd SEC_READONLY flag for section.
14224
14225 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14226
14227         * PROBLEMS: Fix typo, 5.1->5.1.1.
14228
14229 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14230
14231         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14232         data symbols, since we search based on textlow and texthigh.
14233         (find_pc_sect_symtab): Likewise.
14234
14235 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14236
14237         * defs.h (vwarning): Declare.
14238         * utils.c (vwarning): New function.
14239         (warning): Call vwarning.
14240         (warning_begin): Delete function.
14241
14242         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14243         the warning message.
14244         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14245         warning_begin.
14246
14247 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14248
14249         * NEWS: Mention "set trust-readonly-sections" command.
14250         Mention generate-core-file command.
14251
14252 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14253
14254         * target.c: New command, "set trust-readonly-sections on".
14255         (do_xfer_memory): Honor the suggestion to trust readonly sections
14256         by reading them from the object file instead of from the target.
14257         (initialize_targets): Register command "set trust-readonly-sections".
14258
14259 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14260
14261         * parse.c (target_map_name_to_register): Simplify, search regs and
14262         pseudo-regs using a single loop.
14263
14264 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14265
14266         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14267
14268 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14269
14270         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14271         * config/i386/i386v42mp.mh: Add i387-nat.o .
14272         * i386v4-nat.c: Include i387-nat.h.
14273         (supply_fpregset): Use i387_supply_fsave.
14274         (fill_fpregset): Use i387_fill_fsave.
14275
14276 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14277
14278         * arm-tdep.c (arm_call_dummy_words): Define.
14279         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14280         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14281         (CALL_DUMMY_WORDS): Define.
14282         (arm_call_dummy_words): Declare.
14283         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14284         (arm_linux_call_dummy_words): Declare.
14285
14286 2002-01-30  Andreas Schwab  <schwab@suse.de>
14287
14288         * m68klinux-nat.c: Fix last change to use regcache_collect
14289         instead of referencing registers[] directly.
14290
14291 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14292
14293         * parse.c (target_map_name_to_register): Delete code wrapped in
14294         #ifdef REGISTER_NAME_ALIAS_HOOK.
14295
14296 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14297
14298         * regcache.c (legacy_read_register_gen): Need to be able to
14299         read pseudo-register as well as real register.
14300         (legacy_write_register_gen): Ditto.
14301
14302 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14303
14304         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14305         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14306         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14307         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14308         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14309         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14310         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14311         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14312         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14313         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14314         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14315         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14316         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14317         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14318         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14319         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14320         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14321         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14322         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14323         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14324
14325 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14326
14327         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14328         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14329         (initialize_current_architecture): Update target_byte_order using
14330         information from BFD.
14331         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14332         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14333
14334 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14335
14336         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14337         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14338
14339         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14340         #ifdef INVALID_FLOAT.
14341         * infcmd.c (do_registers_info): Ditto.
14342         * values.c (unpack_double): Ditto.  Add comment.
14343
14344         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14345         already commented out.
14346
14347 2002-01-26  Andreas Schwab  <schwab@suse.de>
14348
14349         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14350         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14351         registers and add support for PTRACE_GETREGS.
14352
14353 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14354
14355         GDB 5.1.1 released from 5.1 branch.
14356         * NEWS: Add 5.1.1 news.
14357         * README: Sync with 5.1 branch.
14358
14359 2002-01-23  Fred Fish  <fnf@redhat.com>
14360
14361         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14362         stabstring on initial malloc.  Reallocing will copy it for us,
14363         if necessary.
14364
14365 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14366
14367         * Makefile.in (hpread_h): Delete.
14368         (HFILES_NO_SRCDIR): Remove hpread.h.
14369         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14370         (hpread.o): Update dependencies.
14371         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14372
14373         * hp-psymtab-read.c: Remove file.
14374         * hp-symtab-read.c: Remove file.
14375         * hpread.h: Remove file.
14376
14377         * hpread.c: Merge all contents of hp-psymtab-read.c,
14378         hp-symtab-read.c and hpread.h into this file, as it was prior to
14379         January 1999.
14380
14381         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14382         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14383         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14384         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14385
14386 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14387
14388         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14389         fill_gregset): Call gdbarch_tdep() just once, assign result to
14390         variable and use that, instead of calling the function several
14391         times.
14392
14393 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14394
14395         * configure.host: Accept sparcv9 as alias for sparc64.
14396         * configure.tgt: Likewise.
14397
14398 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14399
14400         * solib-aix5.c (build_so_list_from_mapfile)
14401         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14402         arguments is not reversed.
14403         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14404         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14405
14406 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14407
14408         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14409         modified version of obsolete sh_fetch_pseudo_register.
14410         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14411         (sh4_register_read): New function.
14412         (sh_pseudo_register_write): New function. Renamed and modified
14413         version of obsolete sh_store_pseudo_register.
14414         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14415         (sh4_register_write): New function.
14416         (sh_gdbarch_init): Remove setting of gdbarch function
14417         fetch_pseudo_register and store_pseudo_register. Remove setting of
14418         register_convert_to_raw, register_convert_to_virtual,
14419         register_convertible.
14420         (sh_sh4_register_convertible): Delete. No longer needed. All is
14421         taken care by architecture specific functions
14422         register_read/register_write.
14423         (sh_sh4_register_convert_to_virtual): Make static.
14424         (sh_sh4_register_convert_to_raw): Ditto.
14425
14426 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14427
14428         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14429         (floatformat_is_nan, floatformat_mantissa): Ditto.
14430
14431         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14432         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14433         builtin_type_ieee_double_little,
14434         builtin_type_ieee_double_littlebyte_bigword,
14435         builtin_type_m68881_ext, builtin_type_i960_ext,
14436         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14437         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14438         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14439         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14440
14441 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14442
14443         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14444         parameter.  Set frameless flag if it exists and depended of
14445         whether the scanned function is frameless or not.
14446         (xstormy16_skip_prologue): If function is frameless, return
14447         result of xstormy16_scan_prologue().
14448         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14449         call.
14450
14451 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14452
14453         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14454         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14455         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14456         sh_sh4_register_byte, sh_sh4_register_raw_size,
14457         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14458         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14459         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14460         sh_store_pseudo_register, sh_do_pseudo_register): Call
14461         gdbarch_tdep() just once, assign result to variable and use that,
14462         instead of calling the function several times.
14463
14464 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14465
14466         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14467         macros instead of LAST_FPU_CTRL_REGNUM.
14468         (store_register): Likewise.
14469
14470 2002-01-21  Jim Blandy  <jimb@redhat.com>
14471
14472         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14473         is up-to-date before running the program, not just when a program
14474         exits.
14475
14476 2002-01-21  Fred Fish  <fnf@redhat.com>
14477
14478         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14479         when we have found all instructions we are looking for.
14480
14481 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14482
14483         * arm-tdep.c (arm_register_name): New function.
14484         (arm_registers_names): Make static.
14485         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14486         (arm_register_name): Declare.
14487         (REGISTER_NAME): Use it.
14488
14489 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14490             Kevin Buettner  <kevinb@redhat.com>
14491
14492         Convert arm targets to new FRAME interface.
14493         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14494         (arm_frame_find_save_regs): Delete.
14495         (arm_frame_init_saved_regs): New.
14496         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14497         Allocate extra_info as required.  Convert all uses of fsr.regs
14498         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14499         to use extra_info.
14500         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14501         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14502         (check_prologue_cache, save_prologue_cache): Likewise.
14503         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14504         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14505         (FRAME_FIND_SAVED_REGS): Delete.
14506         (arm_frame_find_saved_regs): Delete prototype.
14507         (arm_frame_init_saved_regs): New prototype.
14508         (FRAME_INIT_SAVED_REGS): Define.
14509
14510 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14511
14512         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14513
14514 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14515
14516         From Jeff Law <law@redhat.com>:
14517         * infttrace.c: Include <sys/pstat.h>.
14518         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14519         exec file if the ttrace equivalent fails.
14520
14521 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14522
14523         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14524         (closeLogFile): Ditto.
14525
14526 2002-01-20  Michael Chastain  <mec@shout.net>
14527
14528         * top.c (print_gdb_version): Bump copyright year to 2002.
14529
14530 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14531
14532         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14533         Zannoni and Eli Zaretskii.
14534
14535 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14536
14537         * buildsym.c: Update copyright years.
14538         * c-typeprint.c: Likewise.
14539         * dwarf2read.c: Likewise.
14540         * f-typeprint.c: Likewise.
14541         * gdbtypes.c: Likewise.
14542         * gdbtypes.h: Likewise.
14543         * hp-symtab-read.c: Likewise.
14544         * hpread.c: Likewise.
14545         * mdebugread.c: Likewise.
14546         * p-typeprint.c: Likewise.
14547
14548 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14549
14550         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14551         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14552         byte-order selectable.
14553         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14554         * arch-utils.c: Ditto.
14555         (set_endian): Ditto.
14556         (set_endian_from_file): Ditto.
14557         * gdbserver/low-sim.c (create_inferior): Ditto.
14558         * gdbarch.sh: Ditto.
14559         * gdbarch.h: Re-generate.
14560         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14561         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14562         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14563         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14564         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14565         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14566         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14567         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14568         macro definition.
14569         * config/mips/tm-wince.h: Remove #undef of macro
14570         TARGET_BYTE_ORDER_SELECTABLE.
14571         * config/sh/tm-wince.h: Ditto.
14572
14573 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14574
14575         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14576         member function fields.  Add accessor macro
14577         TYPE_FN_FIELD_ARTIFICIAL.
14578         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14579         * c-typeprint.c (c_type_print_base): Skip artificial member
14580         functions.
14581
14582 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14583
14584         * f-typeprint.c: Delete unused function f_type_print_args.
14585         * p-typeprint.c: Delete unused function pascal_type_print_args.
14586
14587 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14588
14589         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14590         comment.  Add ``artificial'' to ``union field_location''.
14591
14592         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14593
14594         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14595         * mdebugread.c (parse_symbol): Likewise.
14596         * stabsread.c (define_symbol): Likewise.
14597         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14598         initializing TYPE_FIELD_BITPOS to n (obsolete).
14599         (hpread_doc_function_type): Likewise.
14600         * hpread.c (hpread_function_type): Likewise.
14601
14602 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14603
14604         * configure.in (host_makefile_frag): Only require a host makefile
14605         fragment when a native build.
14606         * configure: Re-generate.
14607
14608 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14609
14610         * doublest.h (floatformat_from_type): Declare.
14611         * doublest.c (floatformat_from_type): New function.
14612         (convert_typed_floating): Use.
14613
14614         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14615         call to function floatformat_from_type.
14616
14617         * gdbarch.sh (IEEE_FLOAT): Delete.
14618         * gdbarch.h, gdbarch.c: Re-generate.
14619         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14620         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14621         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14622         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14623         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14624         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14625         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14626         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14627         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14628         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14629         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14630         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14631
14632         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14633         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14634         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14635         * sh-tdep.c (sh_gdbarch_init): Ditto.
14636         * mips-tdep.c (mips_gdbarch_init): Ditto.
14637         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14638         * cris-tdep.c (cris_gdbarch_init): Ditto.
14639
14640 2002-01-20  Jiri Smid  <smid@suse.cz>
14641
14642         * configure.host, configure.tgt: Support x86-64.
14643         * NEWS: Note new target x86-64.
14644
14645         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14646         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14647         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14648         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14649         x86-64-linux-nat.o): Fix dependencies.
14650
14651 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14652
14653         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14654         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14655         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14656         * config/sparc/xm-sun4os4.h: Delete file.
14657         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14658
14659 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14660
14661         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14662         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14663         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14664         * config/i386/i386lynx.mh (XM_FILE): Delete.
14665         * config/rs6000/xm-rs6000ly.h: Delete file.
14666         * config/sparc/xm-sparclynx.h: Delete file.
14667         * config/m68k/xm-m68klynx.h: Delete file.
14668         * config/i386/xm-i386lynx.h: Delete file.
14669         * config/xm-lynx.h: Delete file.
14670         * config/djgpp/fnchange.lst: Update.
14671
14672 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14673
14674         * alpha-tdep.c (alpha_register_byte): New function.
14675         (alpha_register_raw_size): Ditto.
14676         (alpha_register_virtual_size): Ditto.
14677         (alpha_skip_prologue_internal): Renamed from
14678         alpha_skip_prologue.
14679         (alpha_skip_prologue): New version that calls
14680         alpha_skip_prologue_internal.
14681         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14682         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14683         second argument from alpha_skip_prologue.
14684         (REGISTER_BYTE): Use alpha_register_byte.
14685         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14686         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14687         (FRAMELESS_FUNCTION_INVOCATION): Use
14688         generic_frameless_function_invocation_not.
14689         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14690         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14691
14692 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14693
14694         * config/mips/xm-news-mips.h: Delete file.
14695         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14696
14697         * config/m88k/xm-m88k.h: Delete file.
14698         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14699         * config/m88k/xm-delta88v4.h: Ditto.
14700         * config/m88k/xm-delta88.h: Ditto.
14701
14702         * config/alpha/xm-fbsd.h: Delete file.
14703         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14704
14705         * config/sparc/xm-sparc.h: Delete file.
14706         * Makefile.in (xm-sun4os4.h): Delete dependency.
14707         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14708         * config/sparc/xm-sun4os4.h: Ditto.
14709         * config/sparc/xm-linux.h: Ditto.
14710
14711         * config/i386/xm-windows.h: Delete file.
14712
14713 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14714
14715         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14716         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14717
14718 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14719
14720         * alpha-tdep.c (alpha_call_dummy_words): New.
14721         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14722         (CALL_DUMMY_P): Define.
14723         (CALL_DUMMY_WORDS): Define.
14724         (SIZEOF_CALL_DUMMY_WORDS): Define.
14725
14726 2002-01-19  Per Bothner  <per@bothner.com>
14727
14728         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14729         isn't NULL, which can happen with some gcj-3.x-produced code.
14730
14731 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14732
14733         * alpha-tdep.c (alpha_register_virtual_type): New function.
14734         (alpha_init_frame_pc_first): Ditto.
14735         (alpha_fix_call_dummy): Ditto.
14736         (alpha_store_struct_return): Ditto.
14737         (alpha_extract_struct_value_address): Ditto.
14738         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14739         alpha_register_virtual_type.
14740         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14741         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14742         alpha_extract_struct_value_address.
14743         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14744         (INIT_FRAME_PC): Use init_frame_pc_noop.
14745         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14746
14747 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14748
14749         * i386gnu-nat.c: Include "i386-tdep.h".
14750         (fetch_fpregs): Simplify code dealing with uninitialized floating
14751         point states such that it doesn't require FP7_REGNUM.
14752
14753 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14754
14755         * alpha-tdep.c (frame_extra_info): New.
14756         (alpha_find_saved_regs): Make static.  Use
14757         frame->extra_info.
14758         (alpha_frame_init_saved_regs): New function.
14759         (alpha_frame_saved_pc): Use frame->extra_info.
14760         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14761         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14762         (init_extra_frame_info): Rename to...
14763         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14764         (alpha_print_extra_frame_info): New function.
14765         (alpha_frame_locals_address): Ditto.
14766         (alpha_frame_args_address): Ditto.
14767         (alpha_pop_frame): Use frame->extra_info.
14768         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14769         alpha_frame_args_address.
14770         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14771         (alpha_find_saved_regs): Remove prototype.
14772         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14773         (EXTRA_FRAME_INFO): Remove.
14774         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14775         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14776
14777 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14778
14779         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14780         (alpha_cannot_fetch_register): Ditto.
14781         (alpha_cannot_store_register): Ditto.
14782         (alpha_register_convertible): Ditto.
14783         (alpha_use_struct_convention): Ditto.
14784         * config/alpha/tm-alpha.h: Update copyright years.
14785         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14786         (INNER_THAN): Use core_addr_lessthan.
14787         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14788         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14789         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14790         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14791         (FRAME_CHAIN): Remove unnecessary cast.
14792
14793 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14794
14795         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14796         obsolete.
14797
14798 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14799
14800         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14801         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14802         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14803         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14804         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14805         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14806         * x86-64-linux-nat.c: Ditto.
14807
14808 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14809
14810         * alpha-tdep.c (alpha_register_name): New function.
14811         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14812         (REGISTER_NAME): Define.
14813
14814 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14815
14816         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14817
14818 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14819
14820         * alpha-tdep.c: Update copyright years.
14821         (alpha_next_pc): New function.
14822         (alpha_software_single_step): Ditto.
14823         * config/alpha/tm-alpha.h: Add prototype for
14824         alpha_software_single_step.
14825
14826 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14827
14828         * alphabsd-nat.c: Update copyright years.
14829         (fill_gregset): Use regcache_collect.
14830         (fill_fpregset): Likewise.
14831         (fetch_inferior_registers): Only fetch integer registers
14832         if requested to do so.
14833         (store_inferior_registers): Only store integer registers
14834         if requested to do so.
14835
14836 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14837
14838         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14839         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14840         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14841         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14842         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14843         * config/arm/linux.mh (XDEPFILES): Delete.
14844         * config/arm/nbsd.mh (XDEPFILES): Delete.
14845         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14846         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14847         * config/i386/i386m3.mh (XDEPFILES): Delete.
14848         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14849         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14850         * config/i386/fbsd.mh (XDEPFILES): Delete.
14851         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14852         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14853         * config/i386/i386v4.mh (XDEPFILES): Delete.
14854         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14855         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14856         * config/i386/i386aix.mh (XDEPFILES): Delete.
14857         * config/i386/go32.mh (XDEPFILES): Delete.
14858         * config/i386/cygwin.mh (XDEPFILES): Delete.
14859         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14860         * config/i386/i386mach.mh (XDEPFILES): Delete.
14861         * config/i386/i386v32.mh (XDEPFILES): Delete.
14862         * config/i386/linux.mh (XDEPFILES): Delete.
14863         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14864         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14865         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14866         * config/i386/i386sco.mh (XDEPFILES): Delete.
14867         * config/i386/i386v.mh (XDEPFILES): Delete.
14868         * config/i386/nbsd.mh (XDEPFILES): Delete.
14869         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14870         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14871         * config/i386/symmetry.mh (XDEPFILES): Delete.
14872         * config/i386/obsd.mh (XDEPFILES): Delete.
14873         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14874         * config/ia64/linux.mh (XDEPFILES): Delete.
14875         * config/ia64/aix.mh (XDEPFILES): Delete.
14876         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14877         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14878         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14879         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14880         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14881         * config/m68k/linux.mh (XDEPFILES): Delete.
14882         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14883         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14884         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14885         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14886         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14887         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14888         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14889         * config/m88k/delta88.mh (XDEPFILES): Delete.
14890         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14891         * config/m88k/m88k.mh (XDEPFILES): Delete.
14892         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14893         * config/mips/linux.mh (XDEPFILES): Delete.
14894         * config/mips/irix6.mh (XDEPFILES): Delete.
14895         * config/mips/irix5.mh (XDEPFILES): Delete.
14896         * config/mips/irix4.mh (XDEPFILES): Delete.
14897         * config/mips/irix3.mh (XDEPFILES): Delete.
14898         * config/mips/decstation.mh (XDEPFILES): Delete.
14899         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14900         (NATDEPFILES): Move core-aout.o to here.
14901         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14902         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14903         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14904         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14905         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14906         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14907         * config/pa/hpux11.mh (XDEPFILES): Delete.
14908         * config/powerpc/aix.mh (XDEPFILES): Delete.
14909         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14910         * config/powerpc/linux.mh (XDEPFILES): Delete.
14911         * config/romp/rtbsd.mh: Rename XDEPFILES.
14912         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14913         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14914         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14915         * config/s390/s390.mh (XDEPFILES): Delete.
14916         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14917         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14918         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14919         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14920         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14921         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14922         * config/sparc/linux.mh (XDEPFILES): Delete.
14923         * config/vax/vaxult.mh (XDEPFILES): Delete.
14924         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14925         * Makefile.in (DEPFILES): Remove XDEPFILES.
14926
14927 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14928
14929         * utils.c (internal_verror): Fix comments, default is yes not no.
14930         Update queries to match.  Default to quit and dump core.
14931
14932 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14933
14934         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14935         copyright.
14936         * defs.h, event-top.c, gdbcmd.h: Ditto.
14937         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14938         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14939         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14940         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14941         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14942         * mi/mi-main.c:Ditto.
14943
14944         * stack.c, symfile.c: Update copyright.
14945
14946 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14947
14948         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14949         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14950         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14951         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14952
14953 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14954
14955         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14956         * gdbserver/low-lynx.c (myattach): Likewise.
14957         * gdbserver/low-nbsd.c (myattach): Likewise.
14958         * gdbserver/low-sim.c (myattach): Likewise.
14959         * gdbserver/low-sparc.c (myattach): Likewise.
14960         * gdbserver/low-sun3.c (myattach): Likewise.
14961
14962         * gdbserver/low-linux.c (myattach): New function.
14963
14964         * gdbserver/server.c (attach_inferior): New function.
14965         (main): Handle "--attach".
14966
14967 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14968
14969         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14970         maintainer.
14971
14972 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14973
14974         * c-typeprint.c (is_type_conversion_operator): Add additional
14975         check for non-conversion operators.
14976
14977 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14978
14979         * linux-proc.c: Add "info proc" command, a la procfs.c.
14980         (read_mapping): New function, abstract and re-use code.
14981         (linux_find_memory_regions): Use new func read_mapping.
14982         (linux_info_proc_cmd): New function, implement "info proc".
14983         (_initialize_linux_proc): Add new command "info proc".
14984
14985 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14986
14987         * symfile.c (generic_load): Use bfd_map_over_sections method
14988         instead of manipulating bfd structure members directly.
14989         (add_section_size_callback): New function, bfd sections callback
14990         used by generic_load.
14991         (load_sections_callback): New function, bfd sections callback
14992         used by generic_load.
14993
14994 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14995
14996         [Based on work by Jim Blandy]
14997         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14998         (builtin_type_vec128): Export.
14999         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15000         types.
15001         (builtin_type_vec128): New builtin type for 128 bit vector
15002         registers.
15003         (build_gdbtypes): Initialize builtin_type_v16qi and
15004         builtin_type_v8hi. Create the vec128 register builtin type
15005         structure.
15006         (build_builtin_type_vec128): New function.
15007         (_initialize_gdbtypes): Register builtin_type_v16qi and
15008         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15009         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15010         AltiVec register to new builtin type.
15011
15012 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15013
15014         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15015         to make_cv_type.
15016
15017 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15018
15019         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15020         CLEAN_UP_REGISTER_VALUE.
15021         * regcache.c (supply_register): Update only call.
15022
15023 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15024
15025         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15026         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15027         a29k-*-vxworks* targets as obsolete.
15028
15029 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15030
15031         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15032         until we can resolve portability issues.
15033         * gregset.h: Remove references to fpxregs.
15034         * gcore.c (gcore_command): Initialize note_sec to NULL.
15035
15036 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15037
15038         * signals.c (target_signal_to_name): Rewrite.  Only use
15039         signals[].name when in bounds and non-NULL.
15040
15041 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15042
15043         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15044         * signals.c (target_signal_to_name): Verify that SIG is within the
15045         bounds of the signals array.
15046
15047 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15048
15049         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15050
15051 2002-01-13  Keith Seitz  <keiths@redhat.com>
15052
15053         * stack.c (print_frame_info_base): Print the frame's pc
15054         only if when print_frame_info_listing_hook is not defined.
15055
15056 2002-01-13  Keith Seitz  <keiths@redhat.com>
15057
15058         * varobj.c (varobj_set_value): Make sure that there were no
15059         errors evaluating the object before attempting to set its
15060         value.
15061         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15062         so this offset adjustment is no longer necessary.
15063         (create_child): Don't set the error flag if the child is
15064         a CPLUS_FAKE_CHILD.
15065         (value_of_child): If value_fetch_lazy fails, return NULL
15066         so that callers will be notified that an error occurred.
15067         (c_value_of_variable): Delay check of variable's validity
15068         until later. We actually want all structs and unions to have
15069         the value "{...}".
15070         Do not return "???" for variables which could not be evaluated.
15071         This error condition must be returned to the caller so that it
15072         can get the error condition from gdb.
15073         (cplus_name_of_child): Adjust index for vptr before figuring
15074         out the name of the child.
15075         (cplus_value_of_child): If a child's (real) parent is not valid,
15076         don't even bother trying to give a value for it. Just return
15077         an error. Change all instances in this function.
15078         (cplus_type_of_child): If our parent is one of the "fake"
15079         parents, we need to get at the type of the real parent, and
15080         derive the child's true type using this information.
15081
15082 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15083
15084         From 2002-01-09 John Marshall <johnm@falch.net>:
15085         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15086         sources.redhat.com, and tweak some related URLs which had
15087         suffered from linkrot.
15088
15089 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15090
15091         From Jeff law:
15092         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15093         structures passed in registers.
15094
15095 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15096
15097         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15098         white space which prevented compilation.  Reported by DSK
15099         <dsk@student.unsw.edu.au>.
15100
15101 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15102
15103         * symfile.c (build_section_addr_info_from_section_tab):
15104         Use bfd access method instead of manipulating bfd directly.
15105         (syms_from_objfile): Ditto.
15106         (simple_overlay_update_1): Ditto.
15107         (simple_overlay_update): Ditto.
15108         (generic_load): Ditto.
15109         (overlay_unmapped_address): FIXME comment, bfd access methods.
15110         (sections_overlap): FIXME comment, bfd access methods.
15111         (pc_in_mapped_range): FIXME comment, bfd access methods.
15112         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15113         (section_is_mapped): FIXME comment, bfd access methods.
15114         (section_is_overlay): FIXME comment, bfd access methods.
15115
15116         * symfile.c (generic_load): Whitespace and long line cleanups.
15117         Remove duplicate variable, change several local variables to
15118         more appropriate data types.
15119         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15120
15121 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15122
15123         From Peter Schauer:
15124         * language.c (longest_local_hex_string_custom): Use phex_nz to
15125         convert NUM to a hex string.
15126
15127 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15128
15129         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15130         the function.
15131         Update Copyright year.
15132
15133 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15134
15135         * language.c (longest_raw_hex_string): Delete unused function.
15136
15137 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15138
15139         * MAINTAINERS (write-after-approval): Add myself.
15140         * dwarf2read.c (read_tag_string_type): Handling of
15141         DW_AT_byte_size.
15142         (read_tag_string_type): FORTRAN fix to prevent propagation of
15143         first string size.
15144         (set_cu_language): Handling of DW_LANG_Fortran95
15145
15146 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15147
15148         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15149         GETPID(inferior_ptid).
15150         (store_inferior_registers): Likewise.
15151
15152 2002-01-10  Jason Merrill  <jason@redhat.com>
15153
15154         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15155         Fix DW_OP_minus.
15156
15157 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15158
15159         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15160         and bfd/elf32-sh-nbsd.c.
15161
15162 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15163
15164         * NEWS: Mention --pid and corefile/proc-id behavior change.
15165
15166         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15167         * gcore.c: Include cli/cli-decode.h instead of command.h.
15168
15169         * main.c (captured_main): Add new command line option "--pid".
15170         If the second command line argument (following the symbol-file)
15171         begins with a digit, try to attach to it before trying to open
15172         it as a corefile.
15173         (print_gdb_help): Document the "--pid" argument.
15174
15175 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15176
15177         * completer.c (command_completer): New function.
15178
15179         * completer.h <command_completer>: Add prototype.
15180
15181         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15182         completer for the "help" command.
15183
15184 2002-01-09  Jason Merrill  <jason@redhat.com>
15185
15186         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15187
15188 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15189
15190         * i386-linux-nat.c (fill_fpxregset): Make global.
15191         (store_fpxregset): Ditto.
15192
15193         * gregset.h (gdb_fpxregset_t): Define.
15194         (supply_fpxregset): Prototype.
15195         (fill_fpxregset): Prototype.
15196
15197         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15198
15199 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15200
15201         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15202         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15203         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15204
15205 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15206
15207         * MAINTAINERS: Update target maintainer rules so that any
15208         Maintainer can approve a tested patch for a maintenance-only
15209         target.
15210
15211 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15212
15213         * MAINTAINERS (write-after-approval): Add myself.
15214
15215         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15216         IN_SIGTRAMP.
15217
15218 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15219
15220         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15221         real name of the executable, rather than the /proc name.
15222
15223 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15224
15225         Implement a "generate-core-file" command in gdb, save target state.
15226         * gcore.c: New file.  Implement new command 'generate-core-file'.
15227         Save a corefile image of the current state of the inferior.
15228         * linux-proc.c: Add linux-specific code for saving corefiles.
15229         * target.h (struct target_ops): Add new target vectors for saving
15230         corefiles; to_find_memory_regions and to_make_corefile_notes.
15231         (target_find_memory_regions): New macro.
15232         (target_make_corefile_notes): New macro.
15233         * target.c (update_current_target): Inherit new target methods.
15234         (dummy_find_memory_regions): New place-holder method.
15235         (dummy_make_corefile_notes): New place-holder method.
15236         (init_dummy_target): Initialize new dummy target vectors.
15237         * exec.c (exec_set_find_memory_regions): New function.
15238         Allow the exec_ops vector for memory regions to be taken over.
15239         (exec_make_note_section): New function, target vector method.
15240         * defs.h (exec_set_find_memory_regions): Export prototype.
15241         * procfs.c (proc_find_memory_regions): New function, corefile method.
15242         (procfs_make_note_section): New function, corefile method.
15243         (init_procfs_ops): Set new target vector pointers.
15244         (find_memory_regions_callback): New function.
15245         (procfs_do_thread_registers): New function.
15246         (procfs_corefile_thread_callback): New function.
15247         * sol-thread.c (sol_find_memory_regions): New function.
15248         (sol_make_note_section): New function.
15249         (init_sol_thread_ops): Initialize new target vectors.
15250         * inftarg.c (inftarg_set_find_memory_regions): New function.
15251         Allow to_find_memory_regions vector to be taken over.
15252         (inftarg_set_make_corefile_notes): New function.
15253         Allow to_make_corefile_notes vector to be taken over.
15254         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15255         interface layer if not target_has_execution (may be a corefile).
15256         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15257         * config/sparc/sun4sol2.mh: Ditto.
15258         * config/alpha/alpha-linux.mh: Ditto.
15259         * config/arm/linux.mh: Ditto.
15260         * config/i386/x86-64linux.mh: Ditto.
15261         * config/ia64/linux.mh: Ditto.
15262         * config/m68k/linux.mh: Ditto.
15263         * config/mips/linux.mh: Ditto.
15264         * config/powerpc/linux.mh: Ditto.
15265         * config/sparc/linux.mh: Ditto.
15266
15267 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15268
15269         * arm-linux-nat.c: Remove references to regcache.c internal data
15270         (registers[] and register_valid[]).
15271
15272 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15273
15274         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15275         so that attaching to a pid will automatically read the process's
15276         symbol file and shlibs.
15277         * Makefile.in: Add rule for linux-proc.o.
15278         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15279         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15280         * config/arm/linux.mh: Ditto.
15281         * config/i386/linux.mh: Ditto.
15282         * config/i386/x86-64linux.mh: Ditto.
15283         * config/ia64/linux.mh: Ditto.
15284         * config/m68k/linux.mh: Ditto.
15285         * config/mips/linux.mh: Ditto.
15286         * config/powerpc/linux.mh: Ditto.
15287         * config/sparc/linux.mh: Ditto.
15288
15289 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15290
15291         * win32-nat.c: Add i386-tdep.h dependency.
15292
15293 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15294
15295         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15296         instead of bfd_get_arch_size.  Don't bail out just because
15297         there's no exec_bfd.
15298
15299         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15300         * p-valprint.c (pascal_object_print_value): Ditto.
15301         * somread.c (som_symtab_read): Ditto.
15302         * symfile.c (simple_free_overlay_region_table): Ditto.
15303         * valops.c (value_assign): Ditto.
15304
15305         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15306         use tilde_expand and strerror for opening save-tracepoints file.
15307
15308         * thread-db.c (thread_db_new_objfile): Indendation fix.
15309
15310         * infptrace.c (GDB_MAX_ALLOCA): New define.
15311         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15312         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15313         can be overridden with whatever value is appropriate to the host).
15314         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15315         alloca to allocate potentially large buffer.
15316         * rs6000-nat.c (child_xfer_memory): Ditto.
15317         * symm-nat.c (child_xfer_memory): Ditto.
15318         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15319
15320 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15321
15322         From Nick Clifton  <nickc@redhat.com>
15323         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15324
15325 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15326
15327         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15328         Don't use exec_bfd if it's NULL.
15329
15330 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15331
15332         * valops.c (value_arg_coerce): Fix formatting.
15333
15334 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15335
15336         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15337         * gnu-nat.c: Ditto.
15338
15339 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15340
15341         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15342         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15343         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15344         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15345         z8k-coff have not been multi-arched.  Update z8k-coff build
15346         status.
15347
15348 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15349
15350         * MAINTAINERS: Mark a29k target as obsolete.
15351         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15352         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15353         comments.
15354         * NEWS: Note that a29k targets are obsolete.
15355         * a29k-tdep.c: Mark as obsolete.
15356         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15357         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15358         a29k-*-vxworks* targets as obsolete.
15359         * remote-adapt.c: Obsolete.
15360         * remote-eb.c: Obsolete.
15361         * remote-mm.c: Obsolete.
15362         * remote-udi.c: Obsolete.
15363         * config/a29k/a29k-udi.mt: Obsolete.
15364         * config/a29k/a29k.mt: Obsolete.
15365         * config/a29k/tm-a29k.h: Obsolete.
15366         * config/a29k/tm-vx29k.h: Obsolete.
15367         * config/a29k/vx29k.mt: Obsolete.
15368
15369 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15370
15371         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15372         with BFD_ENDIAN_BIG.
15373
15374 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15375
15376         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15377         * configure, config.in: Re-generate.
15378         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15379         * defs.h: Do not include <endian.h>.
15380
15381 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15382
15383         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15384         * config.in: Regenerate.
15385         * configure.in: Update copyright years.
15386         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15387         * configure: Regenerate.
15388         * i386bsd-nat.c: Update copyright years.
15389         (fill_gregset): Use regcache_collect.
15390         (fetch_inferior_registers): Only fetch integer registers
15391         if requested to do so.  Add support for XMM registers
15392         using PT_GETXMMREGS.
15393         (store_inferior_registers): Only store integer registers
15394         if requested to do so.  Add support for XMM registers
15395         using PT_SETXMMREGS.
15396         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15397         (store_inferior_registers): Remove.
15398         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15399         (fetch_elfcore_registers): New function.
15400         (i386nbsd_elfcore_fns): New.
15401         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15402         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15403         i386bsd-nat.o.
15404         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15405         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15406         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15407         * config/i386/tm-nbsd.h: Update copyright years.
15408         (HAVE_SSE_REGS): Define.
15409         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15410         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15411         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15412         (SIGCONTEXT_PC_OFFSET): Remove.
15413         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15414
15415 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15416
15417         * configure.tgt: Remove powerpc-*-macos* target.
15418         * config/m68k/xm-mpw.h: Delete file.
15419         * config/xm-mpw.h: Delete file.
15420         * ser-mac.c: Delete file.
15421         * mpw-make.sed: Delete file.
15422         * mpw-config.in: Delete file.
15423         * mac-xdep.c: Delete file.
15424         * mac-gdb.r: Delete file.
15425         * mac-defs.h: Delete file.
15426         * mac-nat.c: Delete file.
15427         * config/powerpc/macos.mh: Delete file.
15428         * config/powerpc/macos.mt: Delete file.
15429         * config/powerpc/nm-macos.h: Delete file.
15430         * config/powerpc/tm-macos.h: Delete file.
15431         * source.c (openp, open_source_file): Remove obsolete code.
15432         * top.c (gdb_readline): Ditto.
15433         * utils.c (query): Ditto.
15434         * event-top.c (display_gdb_prompt): Ditto.
15435         * Makefile.in (ser-mac.o): Delete obsolete target.
15436         * NEWS: Update.
15437
15438 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15439
15440         * defs.h (BIG_ENDIAN): Delete macro definition.
15441         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15442         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15443         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15444         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15445         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15446         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15447         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15448         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15449         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15450         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15451         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15452         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15453         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15454         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15455         * gdbarch.c: Re-generate.
15456
15457 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15458
15459         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15460         for core files.
15461
15462 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15463
15464         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15465
15466 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15467
15468         * value.h (value_ptr): Delete typedef.
15469
15470 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15471
15472         * i386nbsd-nat.c: Update copyright years.
15473         Include i386-tdep.h.
15474
15475 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15476
15477         * stabsread.c: Update copyright years.
15478
15479         From Debashis Mahata <debashis.mahata@wipro.com>:
15480         (read_struct_fields): Deal with Sun C compiler erroneous stab
15481         output for structs and unions.
15482         Fix PR gdb/269.
15483
15484 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15485
15486         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15487         prototype.
15488
15489 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15490
15491         * cp-abi.c: Fix whitespace.
15492         (baseclass_offset): New wrapper function.
15493         * cp-abi.h (baseclass_offset): Add prototype.
15494         (struct cp_abi_ops): Add baseclass_offset pointer.
15495
15496         * valops.c (vb_match): Move to...
15497         * gnu-v2-abi.c (vb_match): here.
15498         * valops.c (baseclass_offset): Move to...
15499         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15500
15501         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15502
15503         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15504         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15505         * hpacc-abi.c (init_hpacc_ops): Likewise.
15506
15507 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15508
15509         * valops.c (find_overload_match): Accept obj as a
15510         reference parameter.  Update it before returning.
15511         * value.h (find_overload_match): Update prototype.
15512         * eval.c (evaluate_subexp_standard): Pass object to
15513         find_overload_match by reference.
15514
15515 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15516
15517         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15518         register attribute from value declarations.
15519         * valops.c: Ditto.
15520         * value.h: Ditto.
15521         * scm-lang.c (scm_lookup_name): Ditto.
15522
15523 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15524
15525         Abstract the functionality of iterating over mapped memory
15526         regions into a general purpose iterator function.
15527         * procfs.c (iterate_over_mappings): New function, general purpose
15528         iterator for memory sections.
15529         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15530         (solib_mappings_callback): New function, callback for above.
15531         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15532         (info_mappings_callback): New function, callback for above.
15533
15534         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15535
15536 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15537
15538         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15539         * i386-tdep.c: Include "elf-bfd.h".
15540         (process_note_abi_tag_sections): New function.
15541         (i386_gdbarch_init): Add code to recognize various OS/ABI
15542         combinations.
15543
15544         * maint.c (_initialize_maint_cmds): Add missing \ in
15545         string-literal.
15546
15547 For older changes see ChangeLog-2001
15548 \f
15549 Local Variables:
15550 mode: change-log
15551 left-margin: 8
15552 fill-column: 74
15553 version-control: never
15554 End: